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

 Copyright Google LLC All Rights Reserved.

 Use of this source code is governed by an MIT-style license that can be
 found in the LICENSE file at https://angular.io/license
*/
/*

 (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 ba,baa,caa,na,daa,pa,eaa,sa,wa,xa,ya,gaa,haa,Ga,Ia,iaa,jaa,Ka,kaa,Ma,Na,Oa,laa,Qa,Xa,ab,naa,oaa,qb,paa,rb,sb,tb,wb,xb,qaa,raa,Bb,taa,uaa,Mb,vaa,Rb,waa,xaa,Ob,yaa,zaa,Aaa,Baa,Daa,Caa,Eaa,ec,Faa,gc,ic,kc,tc,xc,zc,Ac,Naa,Oaa,Bc,Dc,Cc,Paa,Qaa,Raa,Saa,Ec,Taa,Gc,Hc,Ic,Uaa,Kc,Lc,Waa,Yaa,Oc,Qc,aba,Rc,Vc,bba,cba,fd,dba,od,qd,gba,hba,ud,mba,Bd,jba,lba,xd,wd,Gd,Hd,nba,Id,oba,Kd,Od,pba,Pd,Rd,Sd,Xd,be,ee,fe,ke,qe,Bba,zba,Aba,Dba,Eba,te,ue,ve,Hba,xe,Iba,Jba,Kba,Mba,Lba,Be,Le,Nba,Pe,Se,Xe,Oba,$e,
af,df,ef,Pba,Qba,Rba,Sba,mf,nf,xf,Vba,Xba,Wba,yf,Af,Yba,zf,Hf,gf,$ba,Zba,Rf,Qf,ff,Tf,aca,Uf,Wf,Xf,bca,dca,fca,gg,hg,ig,jca,lca,kg,mca,jg,qca,eg,hca,sca,pca,nca,oca,tca,rca,lg,kca,og,vca,wca,xca,yca,zca,Aca,Bca,Cca,Dca,Eca,Fca,Gca,Hca,Ica,Jca,Kca,zg,Lca,Pca,Qca,Rca,Wca,Dg,Vca,Sca,Yca,$ca,bda,Fg,dda,Hg,Ig,fda,Kg,Jg,gda,Lg,hda,Mg,Ng,Xg,Zg,ida,$g,jda,kda,ah,Yg,bh,dh,ch,eh,fh,hh,ih,uh,lda,nda,wh,oda,pda,xh,yh,Bh,rda,sda,uda,vda,xda,Ch,yda,Dh,zda,Eh,Ada,Fh,Gh,Bda,Hh,Ih,Jh,Kh,Cda,Mh,Nh,Oh,Ph,mi,ni,Eda,Fda,
Gda,pi,qi,ri,Hda,Ida,Jda,Kda,si,ti,ui,Mda,vi,wi,xi,Oda,Ai,Bi,Pda,Qda,zi,Ci,Nda,yi,Di,Rda,Sda,Ei,Fi,Gi,Vi,Tda,Yi,$i,Q,Xda,Vda,aj,Yda,Wda,$da,Zda,aea,bea,dj,cea,dea,fj,hj,fea,jj,gea,ij,Jj,lj,Kj,Nj,Rj,kea,lea,Pj,mea,nea,Sj,pea,Tj,Vj,Uj,qea,rea,Zj,ak,bk,Wj,Yj,Xj,ek,jea,sea,tea,gk,hk,ik,Oj,Qj,uea,jk,kk,vea,lk,mk,nk,Kk,wea,Lk,xea,Mk,Nk,yea,zea,Aea,Ok,Pk,Qk,Rk,Sk,Tk,S,Uk,Vk,T,Wk,Bea,Xk,Fea,Iea,Cea,Hea,Gea,Eea,Dea,Jea,U,Kea,$k,Nea,al,el,Qea,fl,Sea,Tea,Pea,Uea,hl,Yea,Zea,$ea,il,bfa,cfa,bl,afa,dfa,Xea,ll,ml,
nl,ol,pl,Wl,ffa,gfa,Xl,hfa,Yl,Zl,am,ifa,$l,bm,cm,dm,em,fm,lfa,mfa,ofa,nfa,pfa,im,jm,km,rfa,sfa,tfa,lm,mm,nm,Qm,Tm,Um,Vm,ufa,Wm,wfa,Zm,$m,an,bn,cn,dn,xfa,gn,zfa,fn,en,yfa,Afa,Bfa,jn,Cfa,hn,kn,ln,mn,nn,on,Dfa,pn,Efa,rn,Ffa,Ifa,sn,tn,un,vn,zn,Kfa,An,Bn,Cn,Lfa,Mfa,uo,Nfa,vo,wo,Qfa,Sfa,Ufa,Tfa,Vfa,yo,Wfa,Bo,Fo,Ho,Io,Jo,Zfa,Go,Ko,Lo,Mo,Oo,Po,$fa,Qo,Ro,cga,aga,dga,ega,fga,hga,So,To,Uo,Vo,iga,Wo,kga,lga,mga,nga,oga,Yo,pga,qga,rga,sga,Zo,$o,ap,bp,cp,dp,ep,uga,fp,tga,gp,vga,wga,xga,yga,hp,ip,jp,kp,lp,zga,mp,
np,op,pp,qp,Dga,Aga,tp,Cga,fq,Bga,sp,rp,hq,Fga,jq,iq,oq,pq,rq,Iga,qq,uq,Jga,vq,Gga,Mga,Nga,Oga,yq,zq,Aq,Pga,Bq,Cq,Dq,Eq,Qga,Fq,Gq,Hq,Rga,Sga,Iq,Tga,Jq,Wga,Xga,Yga,Zga,Uga,Kq,Lq,Mq,Nq,aha,Pq,Oq,bha,cha,dha,Tq,eha,Uq,Vq,fha,Wq,hha,Xq,gha,iha,jha,Yq,Br,Cr,Dr,Er,Fr,Gr,kha,Hr,Ir,Jr,lha,nha,oha,Lr,Nr,Mr,Pr,Qr,Rr,qha,rha,Sr,Tr,Ur,tha,uha,xha,vha,yha,Cha,Vr,Bha,zha,Wr,Xr,Dha,Yr,Eha,Zr,Gha,Fha,Hha,Iha,cs,ds,Jha,Kha,Lha,es,fs,Mha,gs,Nha,Oha,Qha,Uha,hs,Vha,Wha,Xha,Yha,Zha,ks,$ha,aia,bia,rs,qs,ps,cia,dia,eia,
ts,us,vs,gia,As,Bs,Cs,hia,Ds,jia,kia,lia,Es,Gs,Hs,Ms,Ns,Qs,nia,pia,oia,qia,ria,Ws,sia,tia,Xs,uia,via,wia,xia,at,Zs,it,jt,kt,yia,zia,Aia,lt,mt,nt,Bia,Cia,Dia,ot,Eia,pt,qt,Fia,Gia,Hia,Iia,Jia,Kia,rt,tt,ut,wt,Nia,xt,zt,Oia,Mia,vt,Pia,At,Bt,Ct,Et,Dt,Qia,Ria,Sia,Ft,Uia,Gt,Wia,Xia,Yia,Zia,$ia,aja,bja,cja,Jt,Kt,Lt,eja,dja,fja,gja,Nt,hja,Ot,ija,jja,Pt,Qt,Rt,kja,St,Tt,lja,Ut,Vt,Wt,Xt,Yt,Zt,$t,au,mja,nja,oja,pja,bu,qja,sja,rja,du,eu,uja,tja,xja,Aja,zja,fu,Bja,Cja,Dja,Fja,Eja,Gja,gu,Hja,Ija,iu,Jja,Kja,Lja,Mja,
ju,Nja,ku,Oja,lu,mu,Qja,nu,Rja,ou,pu,Sja,Tja,qu,tu,Vja,uu,Uja,Wja,Xja,Yja,$ja,vu,aka,yu,zu,cka,dka,gka,hka,Au,Bu,Cu,Du,Eu,Fu,Gu,Hu,Iu,Ju,Ku,Lu,Mu,lka,kka,mka,oka,nka,qka,jka,pka,ika,Nu,Ou,ska,tka,uka,Su,Tu,Uu,Pu,wka,Vu,rka,yka,zka,xka,Wu,Xu,Yu,Zu,Aka,vka,Bka,$u,Cka,Dka,Eka,Fka,Gka,Jka,Kka,Lka,Mka,Nka,Qka,Ska,Uka,Vka,Xka,Wka,jv,Zka,ala,dla,yv,ela,xv,fla,gla,Av,Bv,ila,jla,kla,mla,Hv,nla,ola,Qv,pla,rla,Rv,sla,tla,zla,vla,Tv,Uv,Vv,Wv,Xv,Gla,Yv,Zv,$v,Ila,cw,Jla,Kla,dw,Mla,fw,gw,hw,Nla,Ola,iw,kw,lw,Pla,
mw,Qla,ow,Rla,Sla,pw,qw,rw,Tla,Ula,Vla,Wla,Xla,Yla,Zla,bma,cma,dma,ema,fma,xw,zw,Aw,Bw,Ew,Fw,Gw,hma,Iw,jma,Jw,kma,lma,Kw,mma,nma,Mw,vma,wma,xma,yma,Ama,Bma,Ema,Nw,Gma,Fma,Ow,Ima,Jma,Kma,Lma,Mma,Qw,Rw,Nma,Oma,Sw,Pma,Qma,Tw,Uw,Vw,Rma,Sma,Tma,Uma,Vma,Ww,Wma,Xma,Yma,Zma,Xw,Yw,$ma,ana,bna,cna,dna,ena,Zw,fna,$w,gna,hna,ina,jna,kna,lna,mna,nna,ona,pna,ax,qna,rna,bx,cx,dx,ex,fx,sna,gx,hx,tna,ix,jx,una,kx,lx,mx,vna,wna,nx,xna,yna,zna,Ana,Bna,ox,Cna,Dna,Ena,px,Fna,Gna,Hna,qx,Ina,rx,Jna,sx,tx,ux,vx,wx,xx,Kna,
Lna,yx,Mna,zx,Ax,Bx,Cx,Dx,Ex,Fx,Gx,Nna,Ona,Pna,Qna,Rna,Hx,Sna,Tna,Una,Vna,Ix,Wna,Xna,Yna,Jx,Kx,Lx,Mx,Nx,Ox,Zna,Px,Qx,Rx,Sx,$na,$x,ay,by,aoa,boa,cy,dy,ey,fy,gy,hy,iy,jy,coa,doa,ky,eoa,foa,goa,ly,hoa,ioa,joa,my,koa,ny,oy,py,loa,qy,moa,ry,sy,noa,ty,ooa,uy,poa,qoa,roa,vy,soa,wy,yy,zy,toa,Ay,uoa,By,Cy,Dy,Ey,Hy,Iy,Jy,voa,Ky,Ly,My,woa,Ny,Oy,Py,Qy,xoa,Ry,Sy,Ty,Uy,Vy,yoa,Wy,zoa,Xy,Aoa,Boa,Yy,Zy,Coa,$y,az,bz,Doa,Eoa,Foa,Goa,cz,dz,Hoa,ez,Ioa,Joa,Koa,Loa,Moa,fz,Noa,Ooa,Poa,gz,hz,Qoa,iz,Roa,Soa,jz,Toa,Uoa,Voa,
Woa,kz,lz,mz,nz,Xoa,Yoa,oz,Zoa,$oa,apa,bpa,pz,cpa,dpa,epa,fpa,gpa,hpa,ipa,jpa,kpa,qz,lpa,rz,sz,mpa,npa,tz,opa,ppa,qpa,rpa,spa,tpa,upa,vpa,uz,wpa,xpa,ypa,vz,zpa,Apa,wz,xz,Bpa,Cpa,yz,zz,Dpa,Az,Epa,Bz,Fpa,Cz,Dz,Gpa,Hpa,Ez,Ipa,Jpa,Fz,Kpa,Lpa,Mpa,Npa,Opa,Ppa,Qpa,Rpa,Spa,Tpa,Gz,Upa,Vpa,Hz,Wpa,Iz,Jz,Xpa,Ypa,Kz,Zpa,$pa,Lz,aqa,Mz,bqa,Nz,Oz,Pz,Qz,cqa,Rz,Sz,Tz,Uz,dqa,Vz,Wz,eqa,fqa,Xz,Yz,Zz,gqa,$z,hqa,iqa,jqa,aA,kqa,lqa,mqa,bA,nqa,oqa,cA,dA,pqa,eA,qqa,rqa,fA,sqa,gA,tqa,uqa,vqa,iA,kA,wqa,oA,pA,qA,rA,Aqa,uA,Bqa,
vA,wA,xA,Dqa,Cqa,xqa,yA,Gqa,Jqa,zA,Lqa,Kqa,Mqa,Pqa,Oqa,Sqa,Tqa,Uqa,Vqa,Xqa,bra,Yqa,$qa,ara,JA,IA,cra,LA,MA,NA,era,fra,gra,hra,ira,jra,TA,kra,VA,lra,mra,WA,ora,pra,qra,$A,rra,sra,aB,bB,cB,dB,ura,eB,wra,vra,yra,gB,zra,Dra,Bra,Cra,Era,Fra,Hra,Ira,Gra,Lra,iB,Ura,lB,Vra,Wra,kB,mB,Yra,Zra,csa,bsa,dsa,qB,rB,sB,tB,vB,fsa,hsa,isa,jsa,BB,ksa,lsa,msa,psa,qsa,rsa,osa,ssa,usa,wsa,MB,xsa,PB,NB,SB,TB,zsa,Csa,YB,ZB,$B,aC,Gsa,cC,Isa,Jsa,Ksa,fC,Msa,Nsa,Lsa,Osa,Psa,hC,Qsa,Rsa,Ssa,Usa,kC,Xsa,Ysa,Vsa,Zsa,$sa,bta,ata,
oC,Wsa,eta,fta,tC,dta,gta,hta,uC,vC,ita,kta,xC,lta,mta,ota,qta,AC,rta,sta,tta,uta,vta,wta,xta,yta,CC,zta,EC,Bta,Cta,Dta,Eta,Fta,Gta,JC,Jta,Mta,KC,Nta,Pta,Ita,Qta,Rta,Sta,Kta,Lta,FC,Hta,IC,Ota,HC,GC,Tta,Uta,Vta,Wta,Xta,Yta,dua,Zta,NC,OC,PC,gua,iua,hua,eua,jua,lua,SC,nua,qua,VC,pua,Aua,rua,zua,ZC,Bua,Eua,$C,YC,Cua,Dua,Fua,bD,Hua,Iua,Jua,Kua,Lua,Mua,Nua,Gua,Pua,Qua,Rua,Sua,Tua,Wua,dD,Yua,eD,fD,gD,Zua,$ua,iD,jD,cva,bva,eva,dva,gva,iva,hva,jva,nva,lva,uD,ova,qva,tD,pva,vD,wD,rva,sva,yD,uva,BD,AD,CD,DD,
ED,wva,xva,GD,yva,HD,Ava,Bva,Cva,Eva,Fva,Dva,KD,Hva,Gva,Iva,LD,Kva,MD,Mva,ND,Ova,OD,Nva,PD,QD,Rva,Xva,Zva,Wva,Vva,Yva,TD,$va,hwa,dwa,ewa,fwa,Qva,qwa,swa,pwa,vwa,owa,SD,uwa,cwa,gwa,rwa,awa,Tva,Sva,Uva,VD,nwa,bE,Fwa,Ewa,Jwa,Mwa,Lwa,Owa,dE,eE,Qwa,Rwa,Swa,Twa,Uwa,Vwa,Wwa,gE,Ywa,Zwa,$wa,axa,bxa,cxa,dxa,fxa,gxa,kE,ixa,kxa,jxa,lxa,nxa,oxa,sxa,qxa,uxa,txa,wxa,vxa,lE,Bsa,Exa,Bxa,Gxa,sE,Ixa,Lxa,Mxa,Sxa,Wxa,Xxa,Zxa,Yxa,$xa,yE,bya,xE,Vxa,Uxa,uE,FE,EE,IE,JE,LE,dya,ME,PE,QE,eya,fya,hya,iya,jya,kya,lya,mya,nya,
oya,pya,qya,rya,WE,sya,tya,XE,vya,wya,xya,yya,zya,Cya,Dya,ZE,$E,Eya,aF,Fya,cF,Hya,Gya,eF,fF,gF,hF,Iya,iF,Jya,Kya,Lya,jF,Mya,Qya,Nya,Pya,Oya,kF,lF,Rya,Sya,Tya,Uya,mF,Wya,Zya,Yya,nF,$ya,oF,pF,qF,sF,tF,aza,bza,cza,uF,dza,eza,gza,hza,fza,iza,vF,wF,zF,BF,kza,jza,DF,lza,mza,EF,FF,GF,HF,KF,oza,LF,MF,pza,NF,OF,PF,qza,rza,SF,sza,TF,vza,wza,xza,yza,zza,Aza,Bza,Dza,Fza,YF,Gza,ZF,Hza,Kza,Lza,Mza,aG,bG,Oza,Pza,dG,eG,fG,Rza,gG,hG,iG,Sza,jG,Qza,Tza,kG,Vza,Uza,lG,Xza,mG,nG,pG,Yza,Zza,rG,sG,uG,GG,FG,aAa,tG,dAa,eAa,
hAa,iAa,jAa,lAa,gAa,mAa,nAa,oAa,HG,cAa,fAa,IG,sAa,tAa,QG,uAa,JG,KG,vAa,RG,xAa,AAa,yAa,SG,BAa,TG,DAa,UG,JAa,HAa,EAa,GAa,FAa,WG,XG,YG,ZG,$G,aH,bH,dH,LAa,RAa,fH,hH,gH,TAa,SAa,UAa,WAa,XAa,VAa,YAa,bBa,dBa,cBa,eBa,fBa,gBa,hBa,jBa,iBa,kBa,iH,lBa,mBa,nBa,oBa,pBa,rBa,sBa,jH,qBa,kH,vBa,xBa,lH,mH,nH,yBa,zBa,oH,pH,ABa,BBa,CBa,DBa,EBa,FBa,qH,rH,sH,tH,uH,vH,wH,xH,yH,zH,AH,GBa,HBa,BH,IBa,JBa,KBa,LBa,CH,DH,EH,FH,MBa,GH,HH,IH,NBa,JH,KH,LH,MH,NH,OH,PH,QH,RH,OBa,SH,TH,UH,PBa,VH,WH,XH,YH,QBa,ZH,$H,RBa,aI,SBa,TBa,bI,
UBa,cI,VBa,eI,fI,WBa,gI,hI,iI,dI,jI,kI,lI,YBa,$Ba,aCa,mI,bCa,nI,cCa,pI,dCa,eCa,qI,rI,fCa,iCa,jCa,kCa,lCa,mCa,nCa,gCa,AI,pCa,qCa,rCa,sCa,hCa,uCa,sI,vCa,wCa,BI,xCa,CI,uI,yCa,tI,tCa,DI,BCa,ACa,vI,wI,FI,EI,CCa,GI,DCa,HI,FCa,ECa,II,JI,KI,LI,MI,HCa,ICa,KCa,LCa,OI,PI,NCa,QI,RCa,TCa,VCa,WCa,SI,YCa,ZCa,aDa,bDa,cDa,dDa,eDa,fDa,XI,YI,gDa,iDa,hDa,jDa,kDa,lDa,bJ,dJ,eJ,fJ,gJ,hJ,mDa,iJ,jJ,cJ,oDa,lJ,mJ,nJ,pDa,nDa,rDa,sDa,tDa,uDa,vDa,wDa,xDa,yDa,zDa,ADa,BDa,CDa,DDa,EDa,FDa,GDa,HDa,IDa,JDa,KDa,LDa,MDa,NDa,ODa,PDa,
QDa,oJ,pJ,RDa,qJ,rJ,SDa,TDa,UDa,VDa,WDa,XDa,YDa,sJ,ZDa,$Da,aEa,bEa,tJ,cEa,dEa,eEa,fEa,gEa,uJ,hEa,iEa,jEa,vJ,kEa,yJ,mEa,zJ,AJ,nEa,oEa,pEa,qEa,rEa,sEa,tEa,DJ,EJ,vEa,wEa,xEa,yEa,uEa,zEa,AEa,FJ,GJ,HJ,IJ,DEa,JJ,KJ,MJ,EEa,FEa,GEa,OJ,QJ,HEa,UJ,VJ,IEa,JEa,WJ,KEa,XJ,LEa,ZJ,$J,aK,MEa,NEa,OEa,bK,SJ,cK,dK,eK,PEa,fK,gK,hK,QEa,iK,jK,kK,lK,mK,nK,oK,pK,qK,SEa,TEa,UEa,VEa,vK,rK,wK,WEa,XEa,YEa,ZEa,xK,yK,$Ea,aFa,bFa,tK,cFa,dFa,zK,eFa,gFa,hFa,BK,CK,DK,EK,FK,kFa,GK,IK,JK,lFa,mFa,HK,nFa,oFa,KK,LK,MK,pFa,OK,rFa,PK,sFa,
QK,RK,uFa,vFa,tFa,wFa,SK,TK,xFa,WK,zFa,AFa,XK,YK,BFa,CFa,DFa,EFa,GFa,NK,FFa,IFa,ZK,HFa,JFa,$K,KFa,aL,LFa,MFa,NFa,OFa,PFa,bL,SFa,QFa,RFa,UFa,dL,VFa,WFa,XFa,YFa,ZFa,$Fa,aGa,bGa,eL,dGa,eGa,fGa,hGa,gGa,iGa,jGa,lGa,kGa,mGa,nGa,oGa,pGa,qGa,rGa,sGa,tGa,uGa,vGa,wGa,xGa,yGa,zGa,AGa,BGa,CGa,iL,DGa,jL,kL,FGa,GGa,lL,HGa,mL,IGa,nL,JGa,oL,KGa,LGa,MGa,NGa,pL,OGa,PGa,QGa,qL,rL,sL,tL,uL,RGa,vL,wL,xL,SGa,yL,TGa,UGa,VGa,WGa,zL,XGa,AL,YGa,BL,CL,JCa,ZGa,$Ga,aHa,bHa,cHa,DL,EL,FL,GL,HL,IL,JL,KL,LL,ML,NL,gHa,hHa,iHa,jHa,
kHa,RL,WL,mHa,rHa,wHa,sHa,yHa,zHa,xHa,BHa,CHa,DHa,eM,GHa,IHa,LHa,MHa,NHa,gM,PHa,QHa,UHa,hM,VHa,RHa,WHa,iM,XHa,$Ha,ZHa,dIa,aIa,jM,kM,jIa,kIa,oIa,nIa,mIa,sIa,rIa,uIa,vIa,yIa,wIa,xIa,lIa,zIa,AIa,mM,qIa,BIa,nM,pIa,CIa,DIa,GIa,JIa,HIa,MIa,UIa,TIa,NIa,VIa,PIa,QIa,OIa,ZIa,aJa,cJa,gJa,jJa,kJa,mJa,oJa,qJa,pJa,yJa,sJa,rJa,zJa,CJa,DJa,EJa,FJa,tM,HHa,IJa,GJa,vM,KJa,MJa,OJa,QJa,RJa,PJa,yM,SJa,zM,AM,ZI,BM,FHa,DM,TJa,UJa,VJa,WJa,EM,XJa,YJa,ZJa,FM,GM,$Ja,HM,IM,JM,KM,LM,MM,aKa,bKa,NM,cKa,OM,cL,PM,QM,dKa,RM,eKa,fKa,
JHa,NJa,gKa,SM,$I,NI,oM,iKa,jKa,TM,iIa,lM,kKa,uM,JJa,fJa,eJa,FIa,pM,hJa,lJa,nJa,eIa,AJa,lKa,WIa,RIa,UM,LJa,KHa,nKa,mKa,EIa,iJa,oKa,BJa,qM,fIa,hIa,YHa,dJa,bJa,LIa,IIa,THa,SHa,OHa,YIa,SIa,tJa,bIa,cIa,wJa,xJa,uJa,vJa,$Ia,rKa,pKa,VM,qKa,WM,sKa,XM,YM,dN,uKa,fN,wKa,xKa,yKa,zKa,AKa,BKa,CKa,DKa,hN,kN,EKa,FKa,HKa,GKa,IKa,JKa,KKa,LKa,MKa,NKa,mN,nN,QKa,oN,pN,RKa,SKa,TKa,UKa,qN,rN,sN,VKa,WKa,tN,vN,zN,XKa,AN,BN,CN,DN,EN,FN,GN,HN,IN,JN,KN,YKa,ZKa,LN,MN,NN,ON,PN,QN,$Ka,aLa,RN,VN,dLa,eLa,WN,gLa,fLa,hLa,iLa,YN,ZN,
$N,Y,kLa,aO,pLa,tLa,uLa,vLa,ELa,HLa,MLa,NLa,kMa,lMa,mMa,OLa,PLa,VLa,rMa,ZLa,$La,wMa,uMa,yMa,zMa,vMa,AMa,CNa,HMa,DNa,IMa,JMa,jO,FNa,HNa,JNa,INa,GNa,OMa,eNa,fNa,NNa,PNa,hNa,iNa,kNa,lNa,mNa,WNa,oNa,rNa,yNa,eOa,$Na,aOa,gOa,jOa,iOa,kOa,lOa,tOa,mOa,mO,qOa,zOa,AOa,BOa,COa,DOa,GOa,LOa,oPa,nPa,qO,rO,sO,tO,BO,CO,vPa,EO,DO,xPa,tPa,uPa,yPa,wPa,FO,zPa,APa,GO,BPa,Asa,DPa,CPa,FPa,HPa,JPa,KPa,IPa,LPa,QPa,KO,RPa,SPa,TPa,UPa,VPa,LO,WPa,XPa,YPa,ZPa,$Pa,fQa,iQa,jQa,gQa,MO,NO,hQa,kQa,bQa,lQa,mQa,nQa,dQa,rQa,qQa,pQa,oQa,
sQa,tQa,cQa,uQa,vQa,eQa,wQa,AQa,xQa,yQa,zQa,EQa,CQa,DQa,FQa,GQa,IQa,HQa,LQa,JQa,MQa,KQa,NQa,OQa,PQa,QQa,RQa,SQa,TQa,UQa,VQa,WQa,XQa,YQa,ZQa,aRa,bRa,cRa,$Qa,dRa,eRa,hRa,PO,iRa,SO,UO,jRa,VO,WO,kRa,oRa,qRa,pRa,sRa,ARa,BRa,YO,rRa,nRa,mRa,lRa,cP,ZO,bP,hP,iP,ERa,FRa,jP,gP,JRa,GRa,HRa,KRa,kP,lP,MRa,NRa,nP,oP,pP,qP,rP,ORa,PRa,QRa,sP,tP,vP,SRa,TRa,uP,URa,XRa,YRa,wP,ZRa,zP,$Ra,AP,CP,bSa,BP,DP,cSa,eSa,fSa,gSa,FP,GP,LP,jSa,IP,MP,OP,kSa,PP,KP,NP,lSa,QP,mSa,RP,nSa,HP,JP,hSa,iSa,SP,oSa,pSa,qSa,rSa,sSa,tSa,TP,UP,
vSa,uSa,wSa,xSa,ySa,zSa,VP,WP,XP,YP,ASa,ZP,$P,BSa,aQ,CSa,bQ,cQ,dQ,DSa,ESa,FSa,GSa,HSa,eQ,ISa,JSa,KSa,LSa,MSa,NSa,fQ,OSa,gQ,PSa,QSa,iQ,RSa,jQ,kQ,SSa,TSa,lQ,USa,VSa,ZSa,$Sa,WSa,XSa,YSa,bTa,mQ,nQ,oQ,cTa,dTa,pQ,qQ,eTa,rQ,fTa,hTa,gTa,sQ,iTa,jTa,kTa,lTa,mTa,nTa,pTa,qTa,tQ,rTa,tTa,vTa,uTa,wQ,CTa,yRa,$O,DTa,ETa,FTa,GTa,HTa,ITa,XO,vQ,JTa,KTa,xQ,PTa,QTa,RTa,STa,yQ,WTa,TTa,UTa,YTa,ZTa,$Ta,aUa,XTa,bUa,zQ,AQ,BQ,cUa,dUa,CQ,eUa,fUa,gUa,DQ,NTa,jUa,kUa,iUa,HQ,mUa,zRa,tRa,oUa,IQ,KQ,LQ,MQ,NQ,OQ,JQ,pUa,rUa,RQ,uUa,sUa,
wUa,xUa,vUa,tUa,yUa,zUa,AUa,WQ,BUa,CUa,EUa,FUa,DRa,XQ,GUa,JUa,dP,KUa,LUa,MUa,aP,uRa,wRa,xRa,YQ,ZQ,$Q,aR,NUa,OUa,bR,PUa,cR,dR,QUa,RUa,eR,SUa,TUa,fR,gR,hR,VUa,WUa,iR,XUa,UUa,jR,YUa,ZUa,aVa,cVa,bVa,$Ua,oVa,lVa,rVa,BR,CR,dVa,mVa,yI,zR,FR,sVa,JR,uVa,pR,KR,oR,vVa,yR,NR,AVa,OR,PR,BVa,CVa,DVa,EVa,FVa,GVa,HVa,QR,IVa,NVa,MVa,JVa,LVa,KVa,RR,OVa,SR,PVa,QVa,SVa,TVa,UVa,ZVa,YR,ZR,bWa,$R,aS,cWa,fWa,gWa,hWa,iWa,bS,kWa,oWa,pWa,wWa,zWa,tWa,uWa,BWa,kS,CWa,EWa,DWa,FWa,mS,pS,GWa,lS,HWa,qS,IWa,MWa,JWa,PWa,LWa,gXa,pXa,
KS,qXa,sXa,bXa,xS,rXa,CS,LS,$Wa,uXa,tXa,MS,uS,cXa,wXa,xXa,yXa,AXa,vXa,OS,zXa,DXa,EXa,CXa,QS,GXa,tS,zS,BXa,hXa,KWa,lXa,WS,AS,bT,IS,dT,eT,TXa,UXa,JS,VXa,gT,WXa,XXa,BS,YXa,aXa,ZXa,LXa,yS,TWa,$Xa,RWa,QWa,NWa,iT,bYa,lYa,kYa,nYa,oYa,mT,oT,pT,nT,rT,pYa,qYa,sT,sYa,tYa,vYa,wYa,uYa,xYa,CYa,AYa,EYa,GYa,HYa,JYa,IYa,yT,KYa,NYa,OYa,JT,KT,QYa,MT,RYa,PT,QT,RT,ST,SYa,TT,TYa,XYa,UT,VT,YYa,ZYa,aZa,$Ya,bZa,cZa,dZa,WT,XT,eZa,gZa,hZa,iZa,bU,lZa,kZa,cU,dU,eU,mZa,nZa,oZa,pZa,qZa,sZa,rZa,tZa,fU,vZa,uZa,wZa,xZa,gU,hU,yZa,
AZa,BZa,CZa,DZa,iU,EZa,jU,FZa,kU,lU,HZa,IZa,JZa,GZa,mU,NZa,LZa,MZa,OZa,nU,PZa,QZa,RZa,TZa,SZa,oU,UZa,VZa,WZa,rU,pU,qU,XZa,sU,YZa,ZZa,$Za,b_a,a_a,yU,d_a,e_a,c_a,f_a,zU,g_a,AU,h_a,j_a,i_a,k_a,l_a,m_a,n_a,DU,GU,EU,o_a,HU,IU,q_a,KU,LU,r_a,JU,t_a,MU,OU,u_a,PU,QU,RU,v_a,y_a,x_a,TU,UU,VU,B_a,z_a,A_a,WU,C_a,G_a,E_a,D_a,F_a,XU,I_a,J_a,YU,ZU,N_a,L_a,M_a,$U,P_a,K_a,Q_a,aV,bV,R_a,S_a,T_a,cV,U_a,V_a,W_a,X_a,Y_a,Z_a,$_a,c0a,a0a,d0a,e0a,f0a,g0a,i0a,mV,nV,j0a,lV,rV,sV,m0a,uV,pV,qV,tV,n0a,o0a,vV,u0a,q0a,r0a,v0a,w0a,
t0a,p0a,wV,y0a,x0a,z0a,F0a,zV,I0a,L0a,K0a,J0a,D0a,E0a,A0a,B0a,G0a,AV,BV,N0a,DT,DYa,DV,O0a,Q0a,P0a,H0a,S0a,T0a,U0a,FV,V0a,MV,X0a,Y0a,Z0a,a1a,$0a,b1a,NV,OV,c1a,f1a,g1a,QV,e1a,h1a,i1a,d1a,RV,UV,j1a,k1a,TV,l1a,m1a,n1a,o1a,q1a,p1a,t1a,u1a,r1a,w1a,x1a,s1a,XV,YV,y1a,A1a,ZV,z1a,B1a,D1a,C1a,E1a,$V,F1a,G1a,H1a,aW,bW,J1a,I1a,K1a,L1a,N1a,M1a,O1a,P1a,Q1a,R1a,S1a,U1a,dW,cW,eW,V1a,W1a,T1a,a2a,b2a,c2a,f2a,e2a,d2a,g2a,h2a,fW,gW,i2a,j2a,k2a,l2a,n2a,hW,jW,m2a,o2a,p2a,q2a,r2a,s2a,lW,t2a,u2a,x2a,mW,y2a,w2a,nW,oW,z2a,
A2a,C2a,E2a,B2a,D2a,qW,F2a,H2a,I2a,K2a,L2a,rW,sW,M2a,G2a,e3a,O2a,N2a,tW,uW,g3a,f3a,vW,wW,h3a,i3a,xW,j3a,k3a,l3a,yW,m3a,zW,n3a,AW,o3a,r3a,s3a,t3a,v3a,w3a,x3a,u3a,z3a,y3a,A3a,D3a,DW,F3a,E3a,B3a,C3a,G3a,H3a,EW,FW,I3a,J3a,K3a,L3a,M3a,N3a,P3a,Q3a,Y3a,T3a,U3a,R3a,$3a,LW,a4a,e4a,OW,f4a,b4a,KW,RW,QW,MW,SW,i4a,k4a,j4a,TW,NW,JW,h4a,PW,c4a,g4a,m4a,GW,UW,n4a,o4a,d4a,VW,WW,p4a,XW,YW,ZW,q4a,r4a,t4a,u4a,s4a,$W,w4a,v4a,aX,x4a,bX,cX,y4a,z4a,A4a,B4a,C4a,E4a,G4a,F4a,D4a,dX,H4a,J4a,I4a,eX,fX,K4a,M4a,N4a,gX,L4a,O4a,P4a,
hX,Q4a,iX,lX,kX,S4a,R4a,T4a,mX,nX,U4a,V4a,X4a,W4a,Y4a,Z4a,$4a,pX,a5a,b5a,c5a,d5a,e5a,f5a,h5a,i5a,j5a,g5a,k5a,l5a,m5a,n5a,o5a,tX,p5a,uX,s5a,vX,u5a,wX,t5a,w5a,x5a,v5a,xX,y5a,z5a,A5a,B5a,zX,C5a,D5a,E5a,K5a,P5a,N5a,G5a,CX,M5a,F5a,O5a,R5a,S5a,Q5a,EX,U5a,V5a,W5a,Y5a,Z5a,X5a,$5a,s_a,JX,KX,LX,a6a,NX,c6a,d6a,e6a,OX,f6a,g6a,h6a,i6a,j6a,k6a,b6a,l6a,PX,m6a,r6a,s6a,t6a,RX,u6a,TX,UX,v6a,VX,w6a,SX,x6a,y6a,F6a,ZX,aY,H6a,bY,I6a,z6a,cY,K6a,L6a,N6a,dY,eY,O6a,G6a,fY,Q6a,P6a,gY,D6a,XX,R6a,S6a,T6a,U6a,V6a,A6a,C6a,YX,Y6a,
Z6a,a7a,$6a,iY,kY,lY,d7a,e7a,hY,f7a,b7a,c7a,W6a,g7a,i7a,j7a,p7a,q7a,k7a,oY,jY,X6a,h7a,s7a,w7a,qY,x7a,y7a,u7a,sY,z7a,A7a,r7a,B7a,v7a,C7a,tY,rY,D7a,F7a,E7a,pY,H7a,wY,I7a,uY,xY,vY,yY,J7a,K7a,N7a,M7a,P7a,Q7a,O7a,BY,AY,S7a,T7a,U7a,V7a,W7a,Y7a,X7a,Z7a,DY,EY,$7a,a8a,e8a,b8a,f8a,g8a,c8a,d8a,h8a,i8a,j8a,FY,k8a,m8a,o8a,r8a,p8a,q8a,LY,PY,t8a,QY,u8a,v8a,w8a,RY,y8a,z8a,A8a,x8a,D8a,E8a,SY,TY,F8a,G8a,H8a,sWa,yWa,I8a,K8a,J8a,L8a,VY,WY,M8a,N8a,YY,ZY,XY,O8a,P8a,Q8a,R8a,T8a,X8a,c9a,g9a,cZ,h9a,HY,j9a,k9a,l9a,m9a,n9a,
o9a,p9a,eZ,q9a,fZ,r9a,gZ,t9a,u9a,hZ,v9a,w9a,x9a,y9a,z9a,A9a,B9a,C9a,D9a,E9a,F9a,iZ,H9a,G9a,L9a,M9a,N9a,jZ,kZ,lZ,mZ,nZ,oZ,pZ,O9a,qZ,P9a,Q9a,V9a,Y9a,Z9a,$9a,a$a,uZ,vZ,X9a,U9a,b$a,sZ,R9a,d$a,rZ,tZ,S9a,T9a,wZ,e$a,f$a,W9a,c$a,g$a,i$a,h$a,xZ,n$a,l$a,m$a,j$a,o$a,yZ,k$a,zZ,AZ,p$a,q$a,r$a,BZ,t$a,u$a,CZ,v$a,DZ,w$a,x$a,y$a,z$a,B$a,C$a,J9a,J$a,F$a,A$a,L$a,M$a,G$a,H$a,E$a,I$a,FZ,D$a,K$a,S$a,Q$a,P$a,O$a,N$a,GZ,T$a,GY,HZ,IZ,JZ,U$a,V$a,W$a,KZ,X$a,NY,Y$a,LZ,JY,KY,l8a,NZ,PZ,bab,cab,RZ,OZ,MZ,SZ,$$a,Z$a,aab,TZ,dab,eab,
K9a,IY,fab,QZ,gab,hab,iab,jab,UZ,kab,lab,mab,nab,B8a,C8a,VZ,oab,pab,qab,rab,WZ,uab,sab,vab,xab,tab,zab,Bab,Aab,Dab,ZZ,b_,Gab,Fab,Kab,Iab,Lab,Mab,Hab,Jab,Eab,Nab,Oab,Pab,c_,Qab,s9a,Rab,Sab,d_,Uab,Vab,Wab,Xab,Yab,f_,ebb,dbb,k_,fbb,cbb,ibb,jbb,kbb,mbb,nbb,obb,pbb,qbb,rbb,tbb,ubb,vbb,sbb,n_,e_,wbb,xbb,l_,zbb,lbb,m_,Abb,Bbb,Ebb,Hbb,Fbb,Gbb,Ibb,Cbb,Dbb,Mbb,Kbb,Nbb,Lbb,Obb,Pbb,Jbb,Qbb,Rbb,o_,Sbb,Tbb,Ubb,Vbb,Ybb,Xbb,Wbb,p_,Zbb,acb,bcb,ccb,t_,u_,I9a,dcb,ecb,hcb,gcb,fcb,icb,kcb,lcb,jcb,yab,v_,ncb,ocb,pcb,tcb,
scb,ucb,wcb,R$a,q_,rcb,qcb,vcb,MY,EZ,YZ,zcb,ycb,Acb,Bcb,Ccb,Dcb,$bb,a_,$Z,Ecb,Gcb,Fcb,Hcb,wab,Icb,xcb,Cab,x_,y_,Kcb,z_,Lcb,Mcb,Ncb,Ocb,Pcb,Qcb,Scb,Rcb,Ucb,Vcb,Zcb,Wcb,Ycb,$cb,B_,ddb,bdb,cdb,gdb,hdb,idb,jdb,kdb,A_,ldb,fdb,adb,C_,mdb,Xcb,ndb,D_,pdb,qdb,rdb,odb,E_,udb,tdb,xdb,wdb,vdb,ydb,zdb,F_,Adb,Bdb,Fdb,Cdb,Ddb,Edb,Gdb,Hdb,Idb,Kdb,Jdb,Ldb,Mdb,Ndb,Pdb,Rdb,Qdb,Sdb,Odb,Tdb,Vdb,Xdb,Udb,Ydb,Zdb,aeb,$db,beb,Wdb,J_,ceb,deb,eeb,geb,ieb,jeb,leb,neb,N_,peb,qeb,reb,seb,teb,veb,ueb,yeb,l7a,O_,mY,web,xeb,zeb,
R_,Beb,Aeb,Ceb,Deb,Eeb,Heb,Feb,Keb,S_,Geb,Leb,T_,Peb,V_,W_,Qeb,U_,Reb,X_,Ueb,Teb,Neb,Oeb,Veb,Web,Xeb,Meb,Yeb,Y_,Zeb,Seb,oeb,Q_,afb,nY,bfb,n7a,m7a,cfb,dfb,efb,ffb,gfb,hfb,$_,o7a,ifb,kfb,lfb,mfb,jfb,nfb,ofb,a0,pfb,qfb,rfb,sfb,b0,iFa,tfb,ufb,vfb,d0,yfb,zfb,e0,Bfb,Cfb,Afb,xfb,f0,c0,wfb,i0,h0,Dfb,j0,g0,Hfb,Kfb,Mfb,Nfb,Pfb,Ffb,Lfb,Qfb,Gfb,Rfb,Sfb,Ufb,k0,Vfb,Tfb,m0,Xfb,Yfb,Jfb,Ifb,Wfb,Zfb,Ofb,Efb,o0,egb,bgb,fgb,cgb,agb,ggb,$fb,jgb,p0,kgb,mgb,uK,ogb,qgb,rgb,sgb,t0,tgb,B6a,wgb,u0,H_,xgb,zgb,ugb,GX,n0,Agb,
Bgb,z0,ybb,pgb,y0,q0,Egb,Fgb,Hgb,Ggb,Igb,ygb,w0,Jgb,IX,Kgb,L5a,Mgb,Lgb,mcb,G_,B0,T5a,Ngb,J6a,Ogb,w_a,v0,Pgb,I5a,Qgb,J5a,Rgb,Tgb,Dgb,ngb,Vgb,Ugb,x0,r0,Wgb,C0,DX,Ygb,Zgb,$X,$gb,ahb,bhb,H5a,A0,s_,vgb,chb,Jcb,l0,nhb,jhb,phb,hhb,qhb,ghb,E0,HX,vhb,rhb,thb,shb,xhb,H0,I0,Ahb,zhb,yhb,K0,mhb,O0,Chb,N0,J0,Ehb,Hhb,Ihb,khb,Fhb,R0,Jhb,lhb,Bhb,L0,Khb,G0,Lhb,Mhb,Nhb,U0,V0,Dhb,W0,X0,Ohb,M0,whb,Phb,Qhb,Rhb,Ghb,Shb,P0,Thb,Q0,Uhb,Whb,F0,Y0,uhb,Xhb,Yhb,T0,S0,Zhb,L7a,$hb,aib,bib,Z0,$0,eib,hib,jib,dib,rib,sib,tib,uib,vib,
wib,xib,zib,yib,a1,b1,c1,Aib,Bib,d1,TFa,Cib,Dib,e1,Eib,f1,g1,Fib,CM,h1,rM,Gib,wM,HJa,Hib,gIa,Iib,UK,VK,i1,hKa,Jib,Kib,Lib,j1,Nib,Oib,k1,m1,n1,Rib,Sib,o1,Tib,Pib,Qib,Uib,Vib,Wib,Xib,Yib,p1,$ib,qDa,fL,ajb,bjb,gL,Zib,kJ,cjb,djb,ejb,q1,gjb,BJ,hjb,r1,s1,ijb,t1,jjb,l1,kjb,ljb,yFa,u1,v1,mjb,w1,x1,njb,y1,ojb,z1,A1,pjb,qjb,cGa,B1,rjb,tjb,sjb,C1,ujb,D1,E1,vjb,wjb,xjb,yjb,zjb,Ajb,Cjb,G1,Bjb,Djb,Ejb,Fjb,Gjb,Kjb,Hjb,Ijb,Jjb,Mjb,Ojb,Pjb,Qjb,Njb,H1,Rjb,Sjb,Tjb,Ujb,Vjb,J1,Wjb,K1,L1,M1,Xjb,Yjb,$jb,akb,bkb,ckb,ekb,
dkb,fkb,N1,O1,ikb,gkb,hkb,P1,kkb,lkb,Q1,R1,S1,T1,U1,nkb,V1,okb,pkb,qkb,W1,X1,Y1,rkb,skb,tkb,wkb,vkb,Z1,xkb,ykb,zkb,EHa,ukb,Bkb,Ckb,Ekb,aaa,ma;ba=function(a){return function(){return aaa[a].apply(this,arguments)}};
g.ca=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");};
na=function(a,b){if(b)a:{var c=g.ea;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&ma(c,a,{configurable:!0,writable:!0,value:b})}};
daa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
pa=function(a){return a.raw=a};
g.v=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")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.ra=function(a){return a instanceof Array?a:eaa(g.v(a))};
sa=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.x=function(a,b){a.prototype=faa(b.prototype);a.prototype.constructor=a;if(va)va(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Rf=b.prototype};
wa=function(){this.N=!1;this.D=null;this.B=void 0;this.j=1;this.G=this.K=0;this.Y=this.C=null};
xa=function(a){if(a.N)throw new TypeError("Generator is already running");a.N=!0};
ya=function(a,b){a.C={QX:b,AZ:!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;c!=void 0&&(a.G=c)};
g.Ca=function(a,b,c){a.j=b;a.K=c||0};
g.Da=function(a,b){a.K=b||0;b=a.C.QX;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.AZ?a.j=a.K||a.G:c.Ja!=void 0&&a.G<c.Ja?(a.j=c.Ja,a.C=null):a.j=a.G:a.j=b};
gaa=function(a){this.j=new wa;this.B=a};
haa=function(a,b){xa(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 Ia(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,ya(a.j,h),Ia(a)}a.j.D=null;d.call(a.j,f);return Ia(a)};
Ia=function(a){for(;a.j.j;)try{var b=a.B(a.j);if(b)return a.j.N=!1,{value:b.value,done:!1}}catch(c){a.j.B=void 0,ya(a.j,c)}a.j.N=!1;if(a.j.C){b=a.j.C;a.j.C=null;if(b.AZ)throw b.QX;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
iaa=function(a){this.next=function(b){xa(a.j);a.j.D?b=Ga(a,a.j.D.next,b,a.j.Z):(a.j.Z(b),b=Ia(a));return b};
this.throw=function(b){xa(a.j);a.j.D?b=Ga(a,a.j.D["throw"],b,a.j.Z):(ya(a.j,b),b=Ia(a));return b};
this.return=function(b){return haa(a,b)};
this[Symbol.iterator]=function(){return this}};
jaa=function(a){function b(d){return a.next(d)}
function c(d){return a.throw(d)}
return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
f(a.next())})};
g.H=function(a){return jaa(new iaa(new gaa(a)))};
g.Ja=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
Ka=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};
e[Symbol.iterator]=function(){return e};
return e};
kaa=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{i:e,QM:f}}return{i:-1,QM:void 0}};
Ma=function(a,b,c){if(a==null)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Na=function(a){return a?a:Array.prototype.fill};
Oa=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;d>=0;d--){var e=a[d];if(b.call(c,e,d,a))return{i:d,QM:e}}return{i:-1,QM:void 0}};
Qa=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.Ua;a[0]in c||typeof c.execScript=="undefined"||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
Xa=function(a,b){var c=g.Wa("CLOSURE_FLAGS");a=c&&c[a];return a!=null?a:b};
g.Wa=function(a,b){a=a.split(".");b=b||g.Ua;for(var c=0;c<a.length;c++)if(b=b[a[c]],b==null)return null;return b};
ab=function(a){var b=typeof a;return b!="object"?b:a?Array.isArray(a)?"array":b:"null"};
g.bb=function(a){var b=ab(a);return b=="array"||b=="object"&&typeof a.length=="number"};
g.db=function(a){var b=typeof a;return b=="object"&&a!=null||b=="function"};
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(arguments.length>2){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&&Function.prototype.bind.toString().indexOf("native code")!=-1?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.lb=function(a,b){function c(){}
c.prototype=b.prototype;a.Rf=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
qb=function(a){return a};
paa=function(a){this.j=a};
rb=function(a,b,c){this.D=a;this.C=b;this.fields=c||[];this.j=new Map};
sb=function(a,b){rb.call(this,a,3,b)};
tb=function(a,b){rb.call(this,a,2,b)};
g.ub=function(a){a&&typeof a.dispose=="function"&&a.dispose()};
g.vb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.bb(d)?g.vb.apply(null,d):g.ub(d)}};
g.I=function(){this.Iq=this.Iq;this.Fo=this.Fo};
g.M=function(a,b){a.addOnDisposeCallback(g.jb(g.ub,b))};
wb=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,wb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)};
xb=function(a,b){var c=wb.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(wb,this,d+a[e])};
qaa=function(){};
g.yb=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.B=!1};
g.zb=function(a){return a[a.length-1]};
raa=function(a,b){var c=a.length,d=typeof a==="string"?a.split(""):a;for(--c;c>=0;--c)c in d&&b.call(void 0,d[c],c,a)};
g.Cb=function(a,b,c){b=Bb(a,b,c);return b<0?null:typeof a==="string"?a.charAt(b):a[b]};
Bb=function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
g.Db=function(a,b,c){var d=a.length,e=typeof a==="string"?a.split(""):a;for(--d;d>=0;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
g.Eb=function(a,b){return saa(a,b)>=0};
taa=function(a){if(!Array.isArray(a))for(var b=a.length-1;b>=0;b--)delete a[b];a.length=0};
g.Gb=function(a,b){b=saa(a,b);var c;(c=b>=0)&&g.Fb(a,b);return c};
g.Fb=function(a,b){return Array.prototype.splice.call(a,b,1).length==1};
g.Ib=function(a,b){b=Bb(a,b);b>=0&&g.Fb(a,b)};
uaa=function(a,b){var c=0;raa(a,function(d,e){b.call(void 0,d,e,a)&&g.Fb(a,e)&&c++})};
g.Jb=function(a){return Array.prototype.concat.apply([],arguments)};
g.Kb=function(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
g.Lb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.bb(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.Nb=function(a,b,c,d){Array.prototype.splice.apply(a,Mb(arguments,1))};
Mb=function(a,b,c){return arguments.length<=2?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.db(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.Qb=function(a,b,c){return waa(a,c||Ob,!1,b)};
Rb=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]);m>0?e=l+1:(f=l,h=!m)}return h?e:-e-1};
g.Sb=function(a,b){a.sort(b||Ob)};
xaa=function(a,b){var c=Ob;g.Sb(a,function(d,e){return c(b(d),b(e))})};
g.Wb=function(a,b){if(!g.bb(a)||!g.bb(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};
Ob=function(a,b){return a>b?1:a<b?-1:0};
yaa=function(a,b){return a===b};
g.Xb=function(a,b,c){c=g.Qb(a,b,c);c<0&&g.Nb(a,-(c+1),0,b)};
g.cc=function(a,b,c){var d={};(0,g.Zb)(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])};
Baa=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};
Daa=function(a){var b=g.Wa("window.location.href");a==null&&(a='Unknown Error of type "null/undefined"');if(typeof a==="string")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.Ua.$googDebugFname||b}catch(h){e="Not available",c=!0}b=Caa(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
if(c==null){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";typeof a.toString==="function"&&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}};
Caa=function(a,b){b||(b={});b[Eaa(a)]=!0;var c=a.stack||"";(a=a.cause)&&!b[Eaa(a)]&&(c+="\nCaused by: ",a.stack&&a.stack.indexOf(a.toString())==0||(c+=typeof a==="string"?a:a.message+"\n"),c+=Caa(a,b));return c};
Eaa=function(a){var b="";typeof a.toString==="function"&&(b=""+a);return b+a.stack};
ec=function(a,b){return a.lastIndexOf(b,0)==0};
Faa=function(a,b){var c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c};
g.fc=function(a){return/^[\s\xa0]*$/.test(a)};
gc=function(a){if(!Gaa.test(a))return a;a.indexOf("&")!=-1&&(a=a.replace(Haa,"&amp;"));a.indexOf("<")!=-1&&(a=a.replace(Iaa,"&lt;"));a.indexOf(">")!=-1&&(a=a.replace(Jaa,"&gt;"));a.indexOf('"')!=-1&&(a=a.replace(Kaa,"&quot;"));a.indexOf("'")!=-1&&(a=a.replace(Laa,"&#39;"));a.indexOf("\x00")!=-1&&(a=a.replace(Maa,"&#0;"));return a};
g.hc=function(a,b){return a.indexOf(b)!=-1};
ic=function(a,b){return g.hc(a.toLowerCase(),b.toLowerCase())};
g.lc=function(a,b){var c=0;a=jc(String(a)).split(".");b=jc(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(f[0].length==0&&h[0].length==0)break;c=kc(f[1].length==0?0:parseInt(f[1],10),h[1].length==0?0:parseInt(h[1],10))||kc(f[2].length==0,h[2].length==0)||kc(f[2],h[2]);f=f[3];h=h[3]}while(c==0)}return c};
kc=function(a,b){return a<b?-1:a>b?1:0};
g.oc=function(){var a=g.Ua.navigator;return a&&(a=a.userAgent)?a:""};
tc=function(a){return pc||rc?sc?sc.brands.some(function(b){return(b=b.brand)&&g.hc(b,a)}):!1:!1};
xc=function(a){return g.hc(g.oc(),a)};
zc=function(){return pc||rc?!!sc&&sc.brands.length>0:!1};
Ac=function(){return zc()?!1:xc("Opera")};
Naa=function(){return zc()?!1:xc("Trident")||xc("MSIE")};
Oaa=function(){return zc()?tc("Microsoft Edge"):xc("Edg/")};
Bc=function(){return xc("Firefox")||xc("FxiOS")};
Dc=function(){return xc("Safari")&&!(Cc()||(zc()?0:xc("Coast"))||Ac()||(zc()?0:xc("Edge"))||Oaa()||(zc()?tc("Opera"):xc("OPR"))||Bc()||xc("Silk")||xc("Android"))};
Cc=function(){return zc()?tc("Chromium"):(xc("Chrome")||xc("CriOS"))&&!(zc()?0:xc("Edge"))||xc("Silk")};
Paa=function(){return xc("Android")&&!(Cc()||Bc()||Ac()||xc("Silk"))};
Qaa=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})]||""}};
Raa=function(a){var b=g.oc();if(a==="Internet Explorer"){if(Naa())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),c[1]=="7.0")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=Qaa(c);switch(a){case "Opera":if(Ac())return b(["Version","Opera"]);if(zc()?tc("Opera"):xc("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(zc()?0:xc("Edge"))return b(["Edge"]);if(Oaa())return b(["Edg"]);break;case "Chromium":if(Cc())return b(["Chrome","CriOS","HeadlessChrome"])}return a==="Firefox"&&Bc()||a==="Safari"&&Dc()||a==="Android Browser"&&Paa()||a==="Silk"&&xc("Silk")?(b=c[2])&&b[1]||"":""};
Saa=function(a){if(zc()&&a!=="Silk"){var b=sc.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=Raa(a);if(b==="")return NaN;b=b.split(".")}return b.length===0?NaN:Number(b[0])};
Ec=function(){return pc||rc?!!sc&&!!sc.platform:!1};
Taa=function(){return Ec()?sc.platform==="Android":xc("Android")};
Gc=function(){return xc("iPhone")&&!xc("iPod")&&!xc("iPad")};
Hc=function(){return Gc()||xc("iPad")||xc("iPod")};
Ic=function(){return Ec()?sc.platform==="macOS":xc("Macintosh")};
Uaa=function(){return Ec()?sc.platform==="Windows":xc("Windows")};
Kc=function(a){Kc[" "](a);return a};
Lc=function(a,b){try{return Kc(a[b]),!0}catch(c){}return!1};
Waa=function(a,b){var c=Vaa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
g.Mc=function(a){return Waa(a,function(){return g.lc(Xaa,a)>=0})};
Yaa=function(a){return g.Nc?"webkit"+a:a.toLowerCase()};
Oc=function(a,b){g.yb.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.timeStamp=0;this.j=null;a&&this.init(a,b)};
Qc=function(a){return!(!a||!a[Zaa])};
aba=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Hd=e;this.key=++$aa;this.removed=this.SI=!1};
Rc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Hd=null};
g.Tc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Uc=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Vc=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.Xc=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
bba=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
g.Yc=function(a){for(var b in a)return b};
cba=function(a){for(var b in a)return a[b]};
g.Zc=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.bd=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.dd=function(a,b){return a!==null&&b in a};
g.ed=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
fd=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return c};
dba=function(a,b){return(b=fd(a,b))&&a[b]};
g.gd=function(a){for(var b in a)return!1;return!0};
g.eba=function(a){for(var b in a)delete a[b]};
g.hd=function(a,b,c){return a!==null&&b in a?a[b]:c};
g.id=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.jd=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.kd=function(a){if(!a||typeof a!=="object")return a;if(typeof a.clone==="function")return a.clone();if(typeof Map!=="undefined"&&a instanceof Map)return new Map(a);if(typeof Set!=="undefined"&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var b=Array.isArray(a)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.kd(a[c]);return b};
g.md=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<fba.length;f++)c=fba[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
od=function(a){this.src=a;this.listeners={};this.j=0};
g.pd=function(a,b){var c=b.type;c in a.listeners&&g.Gb(a.listeners[c],b)&&(Rc(b),a.listeners[c].length==0&&(delete a.listeners[c],a.j--))};
qd=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.removed&&f.listener==b&&f.capture==!!c&&f.Hd==d)return e}return-1};
g.vd=function(a,b,c,d,e){if(d&&d.once)return ud(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.vd(a,b[f],c,d,e);return null}c=wd(c);return Qc(a)?a.listen(b,c,g.db(d)?!!d.capture:!!d,e):gba(a,b,c,!1,d,e)};
gba=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var h=g.db(e)?!!e.capture:!!e,l=xd(a);l||(a[yd]=l=new od(a));c=l.add(b,c,d,h,f);if(c.proxy)return c;d=hba();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)iba||(e=h),e===void 0&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(jba(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");kba++;return c};
hba=function(){function a(c){return b.call(a.src,a.listener,c)}
var b=lba;return a};
ud=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)ud(a,b[f],c,d,e);return null}c=wd(c);return Qc(a)?a.VF(b,c,g.db(d)?!!d.capture:!!d,e):gba(a,b,c,!0,d,e)};
mba=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)mba(a,b[f],c,d,e);else d=g.db(d)?!!d.capture:!!d,c=wd(c),Qc(a)?a.Oc(b,c,d,e):a&&(a=xd(a))&&(b=a.eF(b,c,d,e))&&Bd(b)};
Bd=function(a){if(typeof a!=="number"&&a&&!a.removed){var b=a.src;if(Qc(b))g.pd(b.Dm,a);else{var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(jba(c),d):b.addListener&&b.removeListener&&b.removeListener(d);kba--;(c=xd(b))?(g.pd(c,a),c.j==0&&(c.src=null,b[yd]=null)):Rc(a)}}};
jba=function(a){return a in Cd?Cd[a]:Cd[a]="on"+a};
lba=function(a,b){if(a.removed)a=!0;else{b=new Oc(b,this);var c=a.listener,d=a.Hd||a.src;a.SI&&Bd(a);a=c.call(d,b)}return a};
xd=function(a){a=a[yd];return a instanceof od?a:null};
wd=function(a){if(typeof a==="function")return a;a[Dd]||(a[Dd]=function(b){return a.handleEvent(b)});
return a[Dd]};
g.Fd=function(){g.I.call(this);this.Dm=new od(this);this.l7=this;this.sS=null};
Gd=function(a,b,c,d){b=a.Dm.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.removed&&h.capture==c){var l=h.listener,m=h.Hd||h.src;h.SI&&g.pd(a.Dm,h);e=l.call(m,d)!==!1&&e}}return e&&!d.defaultPrevented};
Hd=function(a,b){this.C=a;this.D=b;this.B=0;this.j=null};
nba=function(a,b){a.D(b);a.B<100&&(a.B++,b.next=a.j,a.j=b)};
Id=function(a){return function(){return a}};
g.Jd=function(){};
oba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
Kd=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
Od=function(a){var b=a;return function(){if(b){var c=b;b=null;c()}}};
pba=function(a,b){var c=0;return function(d){g.Ua.clearTimeout(c);var e=arguments;c=g.Ua.setTimeout(function(){a.apply(b,e)},50)}};
Pd=function(a,b){this.j=a===qba&&b||"";this.B=rba};
Rd=function(a){return a instanceof Pd&&a.constructor===Pd&&a.B===rba?a.j:"type_error:Const"};
Sd=function(a){return new Pd(qba,a)};
Xd=function(){if(Td===void 0){var a=null,b=g.Ua.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:qb,createScript:qb,createScriptURL:qb})}catch(c){g.Ua.console&&g.Ua.console.error(c.message)}Td=a}else Td=a}return Td};
g.Yd=function(a){this.X0=a};
g.Zd=function(a){return a instanceof g.Yd&&a.constructor===g.Yd?a.X0:"type_error:TrustedResourceUrl"};
be=function(a){var b=Xd();a=b?b.createScriptURL(a):a;return new g.Yd(a,sba)};
g.ce=function(a){this.Z0=a};
g.de=function(a){if(a instanceof g.ce)return a.Z0;throw Error("");};
ee=function(a){this.xe=a};
fe=function(a){return new ee(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
g.je=function(a,b){b=b===void 0?tba:b;a:if(b=b===void 0?tba:b,!(a instanceof g.ce)){for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof ee&&d.xe(a)){a=new g.ce(a);break a}}a=void 0}return a||g.ge};
ke=function(a){a instanceof g.ce?a=g.de(a):a=uba.test(a)?a:void 0;return a};
g.le=function(a){this.W0=a};
qe=function(a){return a instanceof g.le&&a.constructor===g.le?a.W0:"type_error:SafeStyle"};
Bba=function(a){if(a instanceof g.ce)return'url("'+a.toString().replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof Pd)a=Rd(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 xb("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=g.je(d).toString();return c+f+b+f+e})};
g.re=function(a){this.V0=a};
g.se=function(a){return a instanceof g.re&&a.constructor===g.re?a.V0:"type_error:SafeHtml"};
Dba=function(a){function b(e){Array.isArray(e)?e.forEach(b):(e=e instanceof g.re?e:te(gc(String(e))),d.push(g.se(e).toString()))}
var c=Cba;c=c instanceof g.re?c:te(gc(String(c)));var d=[];a.forEach(b);return te(d.join(g.se(c).toString()))};
Eba=function(a){return Dba(Array.prototype.slice.call(arguments))};
te=function(a){var b=Xd();a=b?b.createHTML(a):a;return new g.re(a,Fba)};
ue=function(){this.j=Gba[0].toLowerCase()};
ve=function(a){this.Y0=a};
Hba=function(a){var b=Xd();return new ve(b?b.createScript(a):a)};
xe=function(a){if(a instanceof ve)return a.Y0;throw Error("");};
Iba=function(a){return qe(a)};
Jba=function(a){var b=g.Ja.apply(1,arguments);if(b.length===0)return be(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return be(c)};
Kba=function(a){for(var b=g.Ja.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.le(c,ye)};
Mba=function(a,b,c,d){a=Lba(a);b=b||g.Ua;c=c instanceof Pd?Rd(c):c||"";return d!==void 0?b.open(a,c,d):b.open(a,c)};
Lba=function(a){a=ke(a);return a!==void 0?a:g.ge.toString()};
g.ze=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Ae=function(a,b){a%=b;return a*b<0?a+b:a};
Be=function(a,b,c){return a+c*(b-a)};
g.Ge=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0};
Le=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Me=function(a,b){this.width=a;this.height=b};
g.Ne=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
g.Oe=function(a,b){b=ke(b);b!==void 0&&(a.href=b)};
Nba=function(a){var b="true".toString(),c=[new ue];if(c.length===0)throw Error("");if(c.map(function(d){if(d instanceof ue)d=d.j;else throw Error("");return d}).every(function(d){return"data-loaded".indexOf(d)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.');
a.setAttribute("data-loaded",b)};
Pe=function(a,b){throw Error(b===void 0?"unexpected value "+a+"!":b);};
g.Re=function(a,b,c){var d=window;a=ke(a);return a!==void 0?d.open(a,b,c):null};
Se=function(a){var b,c;return(a=(c=(b=a.document).querySelector)==null?void 0:c.call(b,"script[nonce]"))?a.nonce||a.getAttribute("nonce")||"":""};
Xe=function(a){var b=Se(a.ownerDocument&&a.ownerDocument.defaultView||window);b&&a.setAttribute("nonce",b)};
g.Ye=function(a,b){a.src=g.Zd(b);Xe(a)};
Oba=function(a,b){return a.parseFromString(g.se(b),"text/xml")};
g.Ze=function(a){return encodeURIComponent(String(a))};
$e=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
af=function(a){return a=gc(a)};
g.cf=function(a){return a==null?"":String(a)};
df=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
ef=function(a){var b=Number(a);return b==0&&g.fc(a)?NaN:b};
Pba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
Qba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Rba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
Sba=function(a){var b=1;a=a.split(":");for(var c=[];b>0&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};
mf=function(a){return a?new ff(gf(a)):Tba||(Tba=new ff)};
nf=function(a,b){return typeof b==="string"?a.getElementById(b):b};
g.of=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.rf=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.pf(document,"*",a,b)};
g.wf=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.pf(c,"*",a,b)[0]||null}return a||null};
g.pf=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,typeof b.split=="function"&&g.Eb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
xf=function(a,b){g.Tc(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:Uba.hasOwnProperty(d)?a.setAttribute(Uba[d],c):ec(d,"aria-")||ec(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Vba=function(a){a=a.document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new g.Me(a.clientWidth,a.clientHeight)};
Xba=function(a){var b=Wba(a);a=a.parentWindow||a.defaultView;return new g.Ge(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Wba=function(a){return a.scrollingElement?a.scrollingElement:g.Nc||a.compatMode!="CSS1Compat"?a.body||a.documentElement:a.documentElement};
yf=function(a){return a?a.parentWindow||a.defaultView:window};
Af=function(a,b,c){var d=arguments,e=document,f=d[1],h=zf(e,String(d[0]));f&&(typeof f==="string"?h.className=f:Array.isArray(f)?h.className=f.join(" "):xf(h,f));d.length>2&&Yba(e,h,d,2);return h};
Yba=function(a,b,c,d){function e(l){l&&b.appendChild(typeof l==="string"?a.createTextNode(l):l)}
for(;d<c.length;d++){var f=c[d];if(!g.bb(f)||g.db(f)&&f.nodeType>0)e(f);else{a:{if(f&&typeof f.length=="number"){if(g.db(f)){var h=typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){h=typeof f.item=="function";break a}}h=!1}g.Zb(h?g.Kb(f):f,e)}}};
g.Bf=function(a){return zf(document,a)};
zf=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)};
g.Cf=function(a){return document.createTextNode(String(a))};
g.Df=function(a,b){a.appendChild(b)};
g.Ef=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
Hf=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.If=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
g.Nf=function(a){var b;if(g.Nc&&(b=a.parentElement))return b;b=a.parentNode;return g.db(b)&&b.nodeType==1?b:null};
g.Of=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
gf=function(a){return a.nodeType==9?a:a.ownerDocument||a.document};
g.Pf=function(a,b){if("textContent"in a)a.textContent=b;else if(a.nodeType==3)a.data=String(b);else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else g.Ef(a),a.appendChild(gf(a).createTextNode(String(b)))};
$ba=function(a){return a.tagName=="A"&&a.hasAttribute("href")||a.tagName=="INPUT"||a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="BUTTON"?!a.disabled&&(!a.hasAttribute("tabindex")||Zba(a)):a.hasAttribute("tabindex")&&Zba(a)};
Zba=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768};
Rf=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return Qf(a,function(e){return(!d||e.nodeName==d)&&(!c||typeof e.className==="string"&&g.Eb(e.className.split(/\s+/),c))},!0)};
Qf=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
ff=function(a){this.j=a||g.Ua.document||document};
Tf=function(a){typeof g.Ua.setImmediate!=="function"||g.Ua.Window&&g.Ua.Window.prototype&&g.Ua.Window.prototype.setImmediate==g.Ua.setImmediate?(Sf||(Sf=aca()),Sf(a)):g.Ua.setImmediate(a)};
aca=function(){var a=g.Ua.MessageChannel;typeof a==="undefined"&&typeof window!=="undefined"&&window.postMessage&&window.addEventListener&&!xc("Presto")&&(a=function(){var e=g.Bf("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l=f.location.protocol=="file:"?"*":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(typeof a!=="undefined"){var b=new a,c={},d=c;b.port1.onmessage=function(){if(c.next!==void 0){c=c.next;var e=c.gX;c.gX=null;e()}};
return function(e){d.next={gX:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.Ua.setTimeout(e,0)}};
Uf=function(a){g.Ua.setTimeout(function(){throw a;},0)};
Wf=function(){this.B=this.j=null};
Xf=function(){this.next=this.scope=this.Fm=null};
g.dg=function(a,b){Yf||bca();cg||(Yf(),cg=!0);cca.add(a,b)};
bca=function(){if(g.Ua.Promise&&g.Ua.Promise.resolve){var a=g.Ua.Promise.resolve(void 0);Yf=function(){a.then(dca)}}else Yf=function(){Tf(dca)}};
dca=function(){for(var a;a=cca.remove();){try{a.Fm.call(a.scope)}catch(b){Uf(b)}nba(eca,a)}cg=!1};
g.fg=function(a){this.j=0;this.N=void 0;this.D=this.B=this.C=null;this.G=this.K=!1;if(a!=g.Jd)try{var b=this;a.call(void 0,function(c){eg(b,2,c)},function(c){eg(b,3,c)})}catch(c){eg(this,3,c)}};
fca=function(){this.next=this.context=this.B=this.C=this.j=null;this.D=!1};
gg=function(a,b,c){var d=gca.get();d.C=a;d.B=b;d.context=c;return d};
hg=function(a){if(a instanceof g.fg)return a;var b=new g.fg(g.Jd);eg(b,2,a);return b};
ig=function(a){return new g.fg(function(b,c){c(a)})};
g.ica=function(a,b,c){hca(a,b,c,null)||g.dg(g.jb(b,a))};
jca=function(a){return new g.fg(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.ica(e,b,c)})};
lca=function(){var a,b,c=new g.fg(function(d,e){a=d;b=e});
return new kca(c,a,b)};
kg=function(a,b){b=gg(b,b);b.D=!0;jg(a,b);return a};
mca=function(a,b){if(a.j==0)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&&d>1)));h=h.next)e||(f=h);e&&(c.j==0&&d==1?mca(c,b):(f?(d=f,d.next==c.D&&(c.D=d),d.next=d.next.next):nca(c),oca(c,e,3,b)))}a.C=null}else eg(a,3,b)};
jg=function(a,b){a.B||a.j!=2&&a.j!=3||pca(a);a.D?a.D.next=b:a.B=b;a.D=b};
qca=function(a,b,c,d){var e=gg(null,null,null);e.j=new g.fg(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);m===void 0&&l instanceof lg?h(l):f(m)}catch(n){h(n)}}:h});
e.j.C=a;jg(a,e);return e.j};
eg=function(a,b,c){a.j==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,hca(c,a.ffa,a.gfa,a)||(a.N=c,a.j=b,a.C=null,pca(a),b!=3||c instanceof lg||rca(a,c)))};
hca=function(a,b,c,d){if(a instanceof g.fg)return jg(a,gg(b||g.Jd,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.db(a))try{var f=a.then;if(typeof f==="function")return sca(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
sca=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)}};
pca=function(a){a.K||(a.K=!0,g.dg(a.F8,a))};
nca=function(a){var b=null;a.B&&(b=a.B,a.B=b.next,b.next=null);a.B||(a.D=null);return b};
oca=function(a,b,c,d){if(c==3&&b.B&&!b.D)for(;a&&a.G;a=a.C)a.G=!1;if(b.j)b.j.C=null,tca(b,c,d);else try{b.D?b.C.call(b.context):tca(b,c,d)}catch(e){uca.call(null,e)}nba(gca,b)};
tca=function(a,b,c){b==2?a.C.call(a.context,c):a.B&&a.B.call(a.context,c)};
rca=function(a,b){a.G=!0;g.dg(function(){a.G&&uca.call(null,b)})};
lg=function(a){wb.call(this,a)};
kca=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};
g.mg=function(a,b){g.Fd.call(this);this.aj=a||1;this.OH=b||g.Ua;this.bX=(0,g.ib)(this.Rea,this);this.QZ=g.kb()};
g.ng=function(a,b,c){if(typeof a==="function")c&&(a=(0,g.ib)(a,c));else if(a&&typeof a.handleEvent=="function")a=(0,g.ib)(a.handleEvent,a);else throw Error("Invalid listener argument");return Number(b)>2147483647?-1:g.Ua.setTimeout(a,b||0)};
og=function(a,b){var c=null;return(new g.fg(function(d,e){c=g.ng(function(){d(b)},a);
c==-1&&e(Error("Failed to schedule timer."))})).Pl(function(d){g.Ua.clearTimeout(c);
throw d;})};
g.pg=function(a){g.I.call(this);this.N=a;this.D=0;this.C=100;this.G=!1;this.B=new Map;this.K=new Set;this.flushInterval=3E4;this.j=new g.mg(this.flushInterval);this.j.listen("tick",this.un,!1,this);g.M(this,this.j)};
vca=function(a){a.j.enabled||a.j.start();a.D++;a.D>=a.C&&a.un()};
wca=function(a,b){return a.K.has(b)?void 0:a.B.get(b)};
xca=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
yca=function(a){this.j=a;this.j.Zj("/client_streamz/bg/fic",{yd:3,xd:"ke"})};
zca=function(a){this.j=a;this.j.Zj("/client_streamz/bg/fiec",{yd:3,xd:"rk"},{yd:3,xd:"ke"},{yd:2,xd:"ec"})};
Aca=function(a){this.j=a;this.j.bE("/client_streamz/bg/fil",{yd:3,xd:"rk"},{yd:3,xd:"ke"})};
Bca=function(a){this.j=a;this.j.Zj("/client_streamz/bg/fcc",{yd:2,xd:"ph"},{yd:3,xd:"ke"})};
Cca=function(a){this.j=a;this.j.bE("/client_streamz/bg/fcd",{yd:2,xd:"ph"},{yd:3,xd:"ke"})};
Dca=function(a){this.j=a;this.j.Zj("/client_streamz/bg/fsc",{yd:3,xd:"rk"},{yd:3,xd:"ke"})};
Eca=function(a){this.j=a;this.j.bE("/client_streamz/bg/fsl",{yd:3,xd:"rk"},{yd:3,xd:"ke"})};
Fca=function(a){this.j=a;this.j.bE("/client_streamz/bg/wrl",{yd:3,xd:"mn"},{yd:2,xd:"ac"},{yd:2,xd:"sc"},{yd:3,xd:"rk"},{yd:3,xd:"mk"})};
Gca=function(a){this.j=a;this.j.bE("/client_streamz/bg/el",{yd:3,xd:"en"},{yd:3,xd:"bk"},{yd:3,xd:"rk"},{yd:3,xd:"mk"})};
Hca=function(a){this.j=a;this.j.Zj("/client_streamz/bg/cec",{yd:2,xd:"ec"},{yd:3,xd:"bk"},{yd:3,xd:"rk"},{yd:3,xd:"mk"})};
Ica=function(a){this.j=a;this.j.Zj("/client_streamz/bg/po/csc",{yd:2,xd:"cs"},{yd:3,xd:"rk"},{yd:3,xd:"mk"})};
Jca=function(a){this.j=a;this.j.Zj("/client_streamz/bg/po/ctav",{yd:3,xd:"av"},{yd:3,xd:"rk"},{yd:3,xd:"mk"})};
Kca=function(a){this.j=a;this.j.Zj("/client_streamz/bg/po/cwsc",{yd:3,xd:"su"},{yd:3,xd:"rk"},{yd:3,xd:"mk"})};
zg=function(){throw Error("Invalid UTF8");};
Lca=function(a,b){b=String.fromCharCode.apply(null,b);return a==null?b:a+b};
Pca=function(a){var b=!1;b=b===void 0?!1:b;if(Mca){if(b&&(Nca?!a.v$():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("Found an unpaired surrogate");a=(Oca||(Oca=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(f<128)d[c++]=f;else{if(f<2048)d[c++]=f>>6|192;else{if(f>=55296&&f<=57343){if(f<=56319&&e<a.length){var h=a.charCodeAt(++e);if(h>=56320&&h<=57343){f=(f-55296)*1024+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};
Qca=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return b.length>1?b:"0"+b}).join("")};
Rca=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.Ag=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);e<128?b[c++]=e:(e<2048?b[c++]=e>>6|192:((e&64512)==55296&&d+1<a.length&&(a.charCodeAt(d+1)&64512)==56320?(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.Bg=function(a,b){b===void 0&&(b=0);Sca();b=Tca[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.Cg=function(a,b){if(Uca&&!b)a=g.Ua.btoa(a);else{for(var c=[],d=0,e=0;e<a.length;e++){var f=a.charCodeAt(e);f>255&&(c[d++]=f&255,f>>=8);c[d++]=f}a=g.Bg(c,b)}return a};
Wca=function(a){var b=[];Vca(a,function(c){b.push(c)});
return b};
Dg=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):g.hc("=.",a[b-1])&&(c=g.hc("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;Vca(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
Vca=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Eg[n];if(p!=null)return p;if(!g.fc(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
Sca();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),l=c(64);if(l===64&&e===-1)break;b(e<<2|f>>4);h!=64&&(b(f<<4&240|h>>2),l!=64&&b(h<<6&192|l))}};
Sca=function(){if(!Eg){Eg={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));Tca[c]=d;for(var e=0;e<d.length;e++){var f=d[e];Eg[f]===void 0&&(Eg[f]=e)}}}};
Yca=function(a){if(!Xca)return g.Bg(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)};
$ca=function(a){return Zca[a]||""};
bda=function(a){if(!Xca)return Dg(a);ada.test(a)&&(a=a.replace(ada,$ca));a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
Fg=function(a){return cda&&a!=null&&a instanceof Uint8Array};
dda=function(a){if(a!==Gg)throw Error("illegal external caller");};
Hg=function(a,b){dda(b);this.j=a;if(a!=null&&a.length===0)throw Error("ByteString should be constructed with non-empty values");};
Ig=function(){return eda||(eda=new Hg(null,Gg))};
fda=function(a){var b=a.j;return b==null?"":typeof b==="string"?b:a.j=Yca(b)};
Kg=function(a){return new Uint8Array(Jg(a)||0)};
Jg=function(a){dda(Gg);var b=a.j;b=b==null||Fg(b)?b:typeof b==="string"?bda(b):null;return b==null?b:a.j=b};
gda=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
Lg=function(){return Error("Failed to read varint, encoding is invalid.")};
hda=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
Mg=function(a){if(typeof a==="string")return{buffer:bda(a),xx:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),xx:!1};if(a.constructor===Uint8Array)return{buffer:a,xx:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),xx:!1};if(a.constructor===Hg)return{buffer:Jg(a)||new Uint8Array(0),xx:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),xx:!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");
};
Ng=function(){return typeof BigInt==="function"};
Xg=function(a){var b=a>>>0;Vg=b;Wg=(a-b)/4294967296>>>0};
Zg=function(a){if(a<0){Xg(0-a);var b=g.v(Yg(Vg,Wg));a=b.next().value;b=b.next().value;Vg=a>>>0;Wg=b>>>0}else Xg(a)};
ida=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=b*4294967296+(a>>>0);return c?-a:a};
$g=function(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else Ng()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+jda(c)+jda(a));return c};
jda=function(a){a=String(a);return"0000000".slice(a.length)+a};
kda=function(){var a=Vg,b=Wg;b&2147483648?Ng()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=g.v(Yg(a,b)),a=b.next().value,b=b.next().value,a="-"+$g(a,b)):a=$g(a,b);return a};
ah=function(a){if(a.length<16)Zg(Number(a));else if(Ng())a=BigInt(a),Vg=Number(a&BigInt(4294967295))>>>0,Wg=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");Wg=Vg=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)),Wg*=1E6,Vg=Vg*1E6+d,Vg>=4294967296&&(Wg+=Math.trunc(Vg/4294967296),Wg>>>=0,Vg>>>=0);b&&(b=g.v(Yg(Vg,Wg)),a=b.next().value,b=b.next().value,Vg=a,Wg=b)}};
Yg=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
bh=function(a,b){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.init(a,void 0,void 0,b)};
dh=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(d<32&&h&128);d>32&&(c|=(h&127)>>4);for(d=3;d<32&&h&128;d+=7)h=e[f++],c|=(h&127)<<d;ch(a,f);if(h<128)return ida(b>>>0,c>>>0);throw Lg();};
ch=function(a,b){a.j=b;if(b>a.C)throw hda(a.C,b);};
eh=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 Lg();ch(a,c);return e};
fh=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];ch(a,a.j+4);return(d<<0|e<<8|f<<16|b<<24)>>>0};
hh=function(a){var b=fh(a);return fh(a)*4294967296+(b>>>0)};
ih=function(a){var b=fh(a),c=fh(a);a=(c>>31)*2+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return d==2047?b?NaN:a*Infinity:d==0?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)};
uh=function(a){for(var b=0,c=a.j,d=c+10,e=a.B;c<d;){var f=e[c++];b|=f;if((f&128)===0)return ch(a,c),!!(b&127)}throw Lg();};
lda=function(a,b){if(b<0)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.C)throw hda(b,a.C-c);a.j=d;return c};
nda=function(a,b){if(b==0)return Ig();var c=lda(a,b);a.DI&&a.G?c=a.B.subarray(c,c+b):(a=a.B,b=c+b,c=c===b?new Uint8Array(0):mda?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return c.length==0?Ig():new Hg(c,Gg)};
wh=function(a,b){if(vh.length){var c=vh.pop();c.init(a,void 0,void 0,b);a=c}else a=new bh(a,b);this.j=a;this.C=this.j.j;this.B=this.D=-1;oda(this,b)};
oda=function(a,b){b=b===void 0?{}:b;a.eP=b.eP===void 0?!1:b.eP};
pda=function(a){var b=a.j;if(b.j==b.C)return!1;a.C=a.j.j;var c=eh(a.j)>>>0;b=c>>>3;c&=7;if(!(c>=0&&c<=5))throw gda(c,a.C);if(b<1)throw Error("Invalid field number: "+b+" (at position "+a.C+")");a.D=b;a.B=c;return!0};
xh=function(a){switch(a.B){case 0:a.B!=0?xh(a):uh(a.j);break;case 1:a=a.j;ch(a,a.j+8);break;case 2:if(a.B!=2)xh(a);else{var b=eh(a.j)>>>0;a=a.j;ch(a,a.j+b)}break;case 5:a=a.j;ch(a,a.j+4);break;case 3:b=a.D;do{if(!pda(a))throw Error("Unmatched start-group tag: stream EOF");if(a.B==4){if(a.D!=b)throw Error("Unmatched end-group tag");break}xh(a)}while(1);break;default:throw gda(a.B,a.C);}};
yh=function(a,b,c){var d=a.j.C,e=eh(a.j)>>>0,f=a.j.j+e,h=f-d;h<=0&&(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};
Bh=function(a){var b=eh(a.j)>>>0;a=a.j;var c=lda(a,b);a=a.B;if(qda){var d=a,e;(e=zh)||(e=zh=new TextDecoder("utf-8",{fatal:!0}));b=c+b;d=c===0&&b===d.length?d:d.subarray(c,b);try{var f=e.decode(d)}catch(n){if(Ah===void 0){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Ah=!0}catch(p){Ah=!1}}!Ah&&(zh=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;f<b;)l=a[f++],l<128?c.push(l):l<224?f>=b?zg():(m=a[f++],l<194||(m&192)!==128?(f--,zg()):c.push((l&31)<<6|m&63)):
l<240?f>=b-1?zg():(m=a[f++],(m&192)!==128||l===224&&m<160||l===237&&m>=160||((e=a[f++])&192)!==128?(f--,zg()):c.push((l&15)<<12|(m&63)<<6|e&63)):l<=244?f>=b-2?zg():(m=a[f++],(m&192)!==128||(l<<28)+(m-144)>>30!==0||((e=a[f++])&192)!==128||((d=a[f++])&192)!==128?(f--,zg()):(l=(l&7)<<18|(m&63)<<12|(e&63)<<6|d&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):zg(),c.length>=8192&&(h=Lca(h,c),c.length=0);f=Lca(h,c)}return f};
rda=function(a){var b=eh(a.j)>>>0;return nda(a.j,b)};
sda=function(a,b){this.B=a>>>0;this.j=b>>>0};
uda=function(a){if(!a)return tda||(tda=new sda(0,0));if(!/^\d+$/.test(a))return null;ah(a);return new sda(Vg,Wg)};
vda=function(a,b){this.B=a>>>0;this.j=b>>>0};
xda=function(a){if(!a)return wda||(wda=new vda(0,0));if(!/^-?\d+$/.test(a))return null;ah(a);return new vda(Vg,Wg)};
Ch=function(){this.j=[]};
yda=function(a,b,c){for(;c>0||b>127;)a.j.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.j.push(b)};
Dh=function(a,b){for(;b>127;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
zda=function(a,b){if(b>=0)Dh(a,b);else{for(var c=0;c<9;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
Eh=function(a,b){a.j.push(b>>>0&255);a.j.push(b>>>8&255);a.j.push(b>>>16&255);a.j.push(b>>>24&255)};
Ada=function(){this.C=[];this.B=0;this.j=new Ch};
Fh=function(a,b){b.length!==0&&(a.C.push(b),a.B+=b.length)};
Gh=function(a,b,c){Dh(a.j,b*8+c)};
Bda=function(a,b,c){c!=null&&(typeof c==="string"&&uda(c),Gh(a,b,1),typeof c==="number"?(a=a.j,Xg(c),Eh(a,Vg),Eh(a,Wg)):(c=uda(c),a=a.j,b=c.j,Eh(a,c.B),Eh(a,b)))};
Hh=function(a,b,c){Gh(a,b,2);Dh(a.j,c.length);Fh(a,a.j.end());Fh(a,c)};
Ih=function(a,b,c,d){this.VM=a;this.WM=b;this.j=c;this.M3=d};
Jh=function(a){return Array.prototype.slice.call(a)};
Kh=function(a){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?Symbol():a};
Cda=function(a,b){Lh(b,(a|0)&-14591)};
Mh=function(a,b){Lh(b,(a|34)&-14557)};
Nh=function(a){return!(!a||typeof a!=="object"||a.j!==Dda)};
Oh=function(a){return a!==null&&typeof a==="object"&&!Array.isArray(a)&&a.constructor===Object};
Ph=function(a,b,c){if(a!=null)if(typeof a==="string")a=a?new Hg(a,Gg):Ig();else if(a.constructor!==Hg)if(Fg(a))a=a.length?new Hg(c?a:new Uint8Array(a),Gg):Ig();else{if(!b)throw Error();a=void 0}return a};
mi=function(a,b,c){if(!Array.isArray(a)||a.length)return!1;var d=Qh(a);if(d&1)return!0;if(!(b&&(Array.isArray(b)?b.includes(c):b.has(c))))return!1;Lh(a,d|1);return!0};
ni=function(a){if(a&2)throw Error();};
Eda=function(a,b){if(typeof b!=="number"||b<0||b>=a.length)throw Error();};
Fda=function(a,b){if(typeof b!=="number"||b<0||b>a.length)throw Error();};
Gda=function(a,b){(b=oi?b[oi]:void 0)&&(a[oi]=Jh(b))};
pi=function(){var a=Error();Baa(a,"incident");Uf(a)};
qi=function(a){a=Error(a);Baa(a,"warning");return a};
ri=function(a){if(a!=null&&typeof a!=="number")throw Error("Value of float/double field must be a number, found "+typeof a+": "+a);return a};
Hda=function(a){if(a==null||typeof a==="number")return a;if(a==="NaN"||a==="Infinity"||a==="-Infinity")return Number(a)};
Ida=function(a){return a.displayName||a.name||"unknown type name"};
Jda=function(a){if(typeof a!=="boolean")throw Error("Expected boolean but got "+ab(a)+": "+a);return a};
Kda=function(a){if(a==null||typeof a==="boolean")return a;if(typeof a==="number")return!!a};
si=function(a){var b=typeof a;return b==="number"?Number.isFinite(a):b!=="string"?!1:Lda.test(a)};
ti=function(a){if(!Number.isFinite(a))throw qi("enum");return a|0};
ui=function(a){return a==null?a:Number.isFinite(a)?a|0:void 0};
Mda=function(a){if(typeof a!=="number")throw qi("int32");if(!Number.isFinite(a))throw qi("int32");return a|0};
vi=function(a){return a==null?a:Mda(a)};
wi=function(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return Number.isFinite(a)?a|0:void 0};
xi=function(a){if(a==null)return a;if(typeof a==="string"){if(!a)return;a=+a}if(typeof a==="number")return Number.isFinite(a)?a>>>0:void 0};
Oda=function(a,b){b=!!b;if(!si(a))throw qi("int64");return typeof a==="string"?yi(a):b?Nda(a):zi(a)};
Ai=function(a){return a==null?a:Oda(a)};
Bi=function(a){return a[0]==="-"?!1:a.length<20?!0:a.length===20&&Number(a.substring(0,6))<184467};
Pda=function(a){return a[0]==="-"?a.length<20?!0:a.length===20&&Number(a.substring(0,7))>-922337:a.length<19?!0:a.length===19&&Number(a.substring(0,6))<922337};
Qda=function(a){if(a<0){Zg(a);var b=$g(Vg,Wg);a=Number(b);return Number.isSafeInteger(a)?a:b}if(Bi(String(a)))return a;Zg(a);return Wg*4294967296+(Vg>>>0)};
zi=function(a){si(a);a=Math.trunc(a);Number.isSafeInteger(a)||(Zg(a),a=ida(Vg,Wg));return a};
Ci=function(a){si(a);a=Math.trunc(a);return a>=0&&Number.isSafeInteger(a)?a:Qda(a)};
Nda=function(a){si(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);Pda(b)?a=b:(Zg(a),a=kda())}return a};
yi=function(a){si(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));Pda(a)||(ah(a),a=kda());return a};
Di=function(a){si(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b)&&b>=0)return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));Bi(a)||(ah(a),a=$g(Vg,Wg));return a};
Rda=function(a){if(a==null)return a;if(si(a)){if(typeof a==="string")return Di(a);if(typeof a==="number")return Ci(a)}};
Sda=function(a){if(a==null||typeof a=="string"||Fg(a)||a instanceof Hg)return a};
Ei=function(a){if(typeof a!=="string")throw Error();return a};
Fi=function(a){if(a!=null&&typeof a!=="string")throw Error();return a};
Gi=function(a){return a==null||typeof a==="string"?a:void 0};
Vi=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Ida(b)+" but got "+(a&&Ida(a.constructor)));return a};
Tda=function(a,b,c){if(a!=null&&typeof a==="object"&&a.SK===Wi)return a;if(Array.isArray(a)){var d=Qh(a),e=d;e===0&&(e|=c&32);e|=c&2;e!==d&&Lh(a,e);return new b(a)}};
Yi=function(a,b){Xi=b;a=new a(b);Xi=void 0;return a};
$i=function(a){switch(typeof a){case "boolean":return Zi||(Zi=[0,void 0,!0]);case "number":return a>0?void 0:a===0?Uda||(Uda=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}};
Q=function(a,b,c){a==null&&(a=Xi);Xi=void 0;if(a==null){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");d=Qh(a);if(d&2048)throw Error("farr");if(d&64)return a;d|=64;if(c&&(d|=512,c!==a[0]))throw Error("mid");a:{c=a;var e=c.length;if(e){var f=e-1;if(Oh(c[f])){d|=256;b=f-(+!!(d&512)-1);if(b>=1024)throw Error("pvtlmt");d=d&-16760833|(b&1023)<<14;break a}}if(b){b=Math.max(b,e-(+!!(d&512)-1));if(b>1024)throw Error("spvt");d=d&-16760833|(b&1023)<<
14}}}Lh(a,d);return a};
Xda=function(a){if(typeof Proxy!=="function")return a;var b=aj(a);if(b)return b;b=new Proxy(a,{set:function(c,d,e){Vda();c[d]=e;return!0}});
Wda(a,b);return b};
Vda=function(){pi()};
aj=function(a){var b;return(b=bj)==null?void 0:b.get(a)};
Yda=function(a){var b;return((b=cj)==null?void 0:b.get(a))||a};
Wda=function(a,b){(bj||(bj=new WeakMap)).set(a,b);(cj||(cj=new WeakMap)).set(b,a)};
$da=function(a,b){return Zda(b)};
Zda=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(mi(a,void 0,0))return}else{if(Fg(a))return Yca(a);if(a instanceof Hg)return fda(a)}}return a};
aea=function(a,b,c){var d=Jh(a),e=d.length,f=b&256?d[e-1]:void 0;e+=f?-1:0;for(b=b&512?1:0;b<e;b++)d[b]=c(d[b]);if(f){b=d[b]={};for(var h in f)b[h]=c(f[h])}Gda(d,a);return d};
bea=function(a,b,c,d,e){if(a!=null){if(Array.isArray(a))a=mi(a,void 0,0)?void 0:e&&Qh(a)&2?a:dj(a,b,c,d!==void 0,e);else if(Oh(a)){var f={},h;for(h in a)f[h]=bea(a[h],b,c,d,e);a=f}else a=b(a,d);return a}};
dj=function(a,b,c,d,e){var f=d||c?Qh(a):0;d=d?!!(f&32):void 0;for(var h=Jh(a),l=0;l<h.length;l++)h[l]=bea(h[l],b,c,d,e);c&&(Gda(h,a),c(f,h));return h};
cea=function(a){return a.SK===Wi?a.toJSON():Zda(a)};
dea=function(a,b,c){c=c===void 0?Mh:c;if(a!=null){if(cda&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=Qh(a);if(d&2)return a;b&&(b=d===0||!!(d&32)&&!(d&64||!(d&16)));return b?(Lh(a,(d|34)&-12293),a):dj(a,dea,d&4?Mh:c,!0,!0)}a.SK===Wi&&(c=a.qa,d=ej(c),a=d&2?a:Yi(a.constructor,fj(c,d,!0)));return a}};
fj=function(a,b,c){var d=c||b&2?Mh:Cda,e=!!(b&32);a=aea(a,b,function(f){return dea(f,e,d)});
gj(a,32|(c?2:0));return a};
hj=function(a){var b=a.qa,c=ej(b);return c&2?Yi(a.constructor,fj(b,c,!1)):a};
fea=function(a,b,c,d){if(!(4&b))return!0;if(c==null)return!1;!d&&c===0&&(4096&b||8192&b)&&(a.constructor[eea]=(a.constructor[eea]|0)+1)<5&&pi();return c===0?!1:!(c&b)};
jj=function(a,b){a=a.qa;return ij(a,ej(a),b)};
gea=function(a,b,c,d){b=d+(+!!(b&512)-1);if(!(b<0||b>=a.length||b>=c))return a[b]};
ij=function(a,b,c,d){if(c===-1)return null;var e=b>>14&1023||536870912;if(c>=e){if(b&256)return a[a.length-1][c]}else{var f=a.length;if(d&&b&256&&(d=a[f-1][c],d!=null)){if(gea(a,b,e,c)&&kj!=null){var h;a=(h=hea)!=null?h:hea={};h=a[kj]||0;h>=4||(a[kj]=h+1,pi())}return d}return gea(a,b,e,c)}};
Jj=function(a,b,c){var d=a.qa,e=ej(d);ni(e);lj(d,e,b,c);return a};
lj=function(a,b,c,d,e){var f=b>>14&1023||536870912;if(c>=f||e&&!iea){var h=b;if(b&256)e=a[a.length-1];else{if(d==null)return h;e=a[f+(+!!(b&512)-1)]={};h|=256}e[c]=d;c<f&&(a[c+(+!!(b&512)-1)]=void 0);h!==b&&Lh(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};
Kj=function(a,b,c){return jea(a,b,c,!1)!==void 0};
Nj=function(a,b,c,d,e){var f=b&2,h=ij(a,b,c,e);Array.isArray(h)||(h=Lj);var l=!(d&2);d=!(d&1);var m=!!(b&32),n=Qh(h);n!==0||!m||f||l?n&1||(n|=1,Lh(h,n)):(n|=33,Lh(h,n));f?(a=!1,n&2||(gj(h,34),a=!!(4&n)),(d||a)&&Object.freeze(h)):(f=!!(2&n)||!!(2048&n),d&&f?(h=Jh(h),d=1,m&&!l&&(d|=32),Lh(h,d),lj(a,b,c,h,e)):l&&n&32&&!f&&Mj(h,32));return h};
Rj=function(a,b,c,d,e,f){var h=a.qa,l=ej(h),m=2&l?1:d;f=!!f;d=kea(h,l,b,e);var n=Qh(d);if(fea(a,n,void 0,f)){if(4&n||Object.isFrozen(d))d=Jh(d),n=Oj(n,l),l=lj(h,l,b,d,e);for(var p=a=0;a<d.length;a++){var q=c(d[a]);q!=null&&(d[p++]=q)}p<a&&(d.length=p);n=lea(n,l);n=(n|20)&-4097;n&=-8193;Lh(d,n);2&n&&Object.freeze(d)}m===1||m===4&&32&n?Pj(n)||(f=n,n|=2,n!==f&&Lh(d,n),Object.freeze(d)):(c=m!==5?!1:!!(32&n)||Pj(n)||!!aj(d),(m===2||c)&&Pj(n)&&(d=Jh(d),n=Oj(n,l),n=Qj(n,l,f),Lh(d,n),l=lj(h,l,b,d,e)),Pj(n)||
(b=n,n=Qj(n,l,f),n!==b&&Lh(d,n)),c&&(d=Xda(d)));return d};
kea=function(a,b,c,d){a=ij(a,b,c,d);return Array.isArray(a)?a:Lj};
lea=function(a,b){a===0&&(a=Oj(a,b));return a|1};
Pj=function(a){return!!(2&a)&&!!(4&a)||!!(2048&a)};
mea=function(a){return Ph(a,!0,!0)};
nea=function(a){return Ph(a,!0,!1)};
Sj=function(a,b){a=a.qa;var c=ej(a),d=ij(a,c,b),e=Ph(d,!0,!!(c&34));e!=null&&e!==d&&lj(a,c,b,e);return e==null?Ig():e};
pea=function(a,b,c){var d=a.qa,e=ej(d);ni(e);if(b==null)return lj(d,e,3),a;b=Yda(b);if(!Array.isArray(b))throw qi();var f=Qh(b),h=f,l=!!(2&f)||Object.isFrozen(b),m=!l&&(void 0===oea||!1);if(fea(a,f))for(f=21,l&&(b=Jh(b),h=0,f=Oj(f,e),f=Qj(f,e,!0)),l=0;l<b.length;l++)b[l]=c(b[l]);m&&(b=Jh(b),h=0,f=Oj(f,e),f=Qj(f,e,!0));f!==h&&Lh(b,f);lj(d,e,3,b);return a};
Tj=function(a,b,c,d){var e=a.qa,f=ej(e);ni(f);lj(e,f,b,(d==="0"?Number(c)===0:c===d)?void 0:c);return a};
Vj=function(a,b,c,d,e){Uj(a.qa,b,c,d,e);return a};
Uj=function(a,b,c,d,e){var f=ej(a);ni(f);a=Nj(a,f,b,2);b=Qh(a);d=c(d,!!(4&b)&&!!(4096&b));e!=void 0?a.splice(e,0,d):a.push(d)};
qea=function(a){return a};
rea=function(a,b,c,d,e,f){ni(ej(a.qa));b=f(a,b,2,void 0,!0);Fda(b,d);f=Qh(b);b[d]=c(e,!!(4&f)&&!!(4096&f));return a};
Zj=function(a,b,c,d){var e=a.qa,f=ej(e);ni(f);if(d==null){var h=Wj(e);if(Xj(h,e,f,c)===b)h.set(c,0);else return a}else f=Yj(e,f,c,b);lj(e,f,b,d);return a};
ak=function(a,b,c,d){var e=ej(a);e=Yj(a,e,c,b);lj(a,e,b,d)};
bk=function(a,b,c){a=a.qa;return Xj(Wj(a),a,ej(a),b)===c?c:-1};
Wj=function(a){if(ck){var b;return(b=a[dk])!=null?b:a[dk]=new Map}if(dk in a)return a[dk];b=new Map;Object.defineProperty(a,dk,{value:b});return b};
Yj=function(a,b,c,d){c.includes(d);var e=Wj(a),f=Xj(e,a,b,c);f!==d&&(f&&(b=lj(a,b,f)),e.set(c,d));return b};
Xj=function(a,b,c,d){var e=a.get(d);if(e!=null)return e;for(var f=e=0;f<d.length;f++){var h=d[f];ij(b,c,h)!=null&&(e!==0&&(c=lj(b,c,e)),e=h)}a.set(d,e);return e};
ek=function(a,b,c,d){var e=ej(a),f=ij(a,e,c,d),h;if(f!=null&&f.SK===Wi)return b=hj(f),b!==f&&lj(a,e,c,b,d),b.qa;if(Array.isArray(f)){var l=Qh(f);l&2?h=fj(f,l,!1):h=f;h=Q(h,b[0],b[1])}else h=Q(void 0,b[0],b[1]);h!==f&&lj(a,e,c,h,d);return h};
jea=function(a,b,c,d){a=a.qa;var e=ej(a),f=ij(a,e,c,d);b=Tda(f,b,e);b!==f&&b!=null&&lj(a,e,c,b,d);return b};
g.fk=function(a,b,c,d){d=d===void 0?!1:d;b=jea(a,b,c,d);if(b==null)return b;a=a.qa;var e=ej(a);if(!(e&2)){var f=hj(b);f!==b&&(b=f,lj(a,e,c,b,d))}return b};
sea=function(a,b,c,d,e,f,h){var l=!!(2&b),m=l?1:2;f=!!f;h&&(h=!l);l=kea(a,b,d,e);var n=Qh(l),p=!!(4&n);if(!p){n=lea(n,b);var q=l,r=b,t=!!(2&n);t&&(r|=2);for(var u=!t,w=!0,A=0,C=0;A<q.length;A++){var F=Tda(q[A],c,r);if(F instanceof c){if(!t){var G=!!(Qh(F.qa)&2);u&&(u=!G);w&&(w=G)}q[C++]=F}}C<A&&(q.length=C);n|=4;n=w?n|16:n&-17;n=u?n|8:n&-9;Lh(q,n);t&&Object.freeze(q)}if(h&&!(8&n||!l.length&&(m===1||m===4&&32&n))){Pj(n)&&(l=Jh(l),n=Oj(n,b),b=lj(a,b,d,l,e));c=l;h=n;for(q=0;q<c.length;q++)n=c[q],r=hj(n),
n!==r&&(c[q]=r);h|=8;h=c.length?h&-17:h|16;Lh(c,h);n=h}m===1||m===4&&32&n?Pj(n)||(b=n,n|=!l.length||16&n&&(!p||32&n)?2:2048,n!==b&&Lh(l,n),Object.freeze(l)):(p=m!==5?!1:!!(32&n)||Pj(n)||!!aj(l),(m===2||p)&&Pj(n)&&(l=Jh(l),n=Oj(n,b),n=Qj(n,b,f),Lh(l,n),b=lj(a,b,d,l,e)),Pj(n)||(a=n,n=Qj(n,b,f),n!==a&&Lh(l,n)),p&&(l=Xda(l)));return l};
tea=function(a,b){a=a.qa;var c=ej(a);return sea(a,c,b,3,void 0,!1,!(2&c))};
gk=function(a,b,c,d){d!=null?Vi(d,b):d=void 0;return Jj(a,c,d)};
hk=function(a,b,c,d,e){e!=null?Vi(e,b):e=void 0;return Zj(a,c,d,e)};
ik=function(a,b,c,d){var e=a.qa,f=ej(e);ni(f);if(d==null)return lj(e,f,c),a;d=Yda(d);if(!Array.isArray(d))throw qi();for(var h=Qh(d),l=h,m=!!(2&h)||!!(2048&h),n=m||Object.isFrozen(d),p=!n&&(void 0===oea||!1),q=!0,r=!0,t=0;t<d.length;t++){var u=d[t];Vi(u,b);m||(u=!!(Qh(u.qa)&2),q&&(q=!u),r&&(r=u))}m||(h|=5,h=q?h|8:h&-9,h=r?h|16:h&-17);if(p||n&&h!==l)d=Jh(d),l=0,h=Oj(h,f),h=Qj(h,f,!0);h!==l&&Lh(d,h);lj(e,f,c,d);return a};
Oj=function(a,b){a=(2&b?a|2:a&-3)|32;return a&=-2049};
Qj=function(a,b,c){32&b&&c||(a&=-33);return a};
uea=function(a,b,c,d,e,f,h){a=a.qa;var l=ej(a);ni(l);b=sea(a,l,c,b,f,!0);f=d!=null?Vi(d,c):new c;h&&(Fda(b,e),Vi(d,c));e!=void 0?b.splice(e,h,f):b.push(f);Qh(f.qa)&2?Mj(b,8):Mj(b,16)};
jk=function(a,b,c,d,e){uea(a,b,c,d,e);return a};
kk=function(a,b){a=jj(a,b);var c;a==null?c=a:si(a)?typeof a==="number"?c=zi(a):c=yi(a):c=void 0;return c};
vea=function(a){a=jj(a,1);var b=b===void 0?!1:b;b=a==null?a:si(a)?typeof a==="string"?yi(a):b?Nda(a):zi(a):void 0;return b};
lk=function(a,b){return a!=null?a:b};
mk=function(a,b){return Gi(jj(a,b))};
nk=function(a,b,c){c=c===void 0?0:c;return lk(wi(jj(a,b)),c)};
Kk=function(a,b){var c=c===void 0?0:c;return lk(xi(jj(a,b)),c)};
wea=function(a,b){var c=c===void 0?0:c;return lk(kk(a,b),c)};
Lk=function(a,b){var c=c===void 0?0:c;a=jj(a,b);a=a==null?a:si(a)?typeof a==="number"?Ci(a):Di(a):void 0;return lk(a,c)};
xea=function(a,b){var c=c===void 0?0:c;a=a.qa;var d=ej(a),e=ij(a,d,b),f=Hda(e);f!=null&&f!==e&&lj(a,d,b,f);return lk(f,c)};
Mk=function(a,b){var c=c===void 0?"":c;return lk(mk(a,b),c)};
Nk=function(a,b){var c=0;c=c===void 0?0:c;return lk(ui(jj(a,b)),c)};
yea=function(a,b,c,d,e){return Rj(a,b,Gi,c,d,e)};
zea=function(a,b,c,d,e){return Rj(a,b,ui,c,d,e)};
Aea=function(a,b,c){a=zea(a,b,3,void 0,!0);Eda(a,c);return a[c]};
Ok=function(a,b,c){return Jj(a,b,c==null?c:Jda(c))};
Pk=function(a,b,c){return Jj(a,b,vi(c))};
Qk=function(a,b,c){if(c!=null){if(typeof c!=="number")throw qi("uint32");if(!Number.isFinite(c))throw qi("uint32");c>>>=0}Jj(a,b,c)};
Rk=function(a,b,c){return Jj(a,b,Ai(c))};
Sk=function(a,b,c){if(c!=null){var d=!!d;if(!si(c))throw qi("uint64");typeof c==="string"?c=Di(c):d?(si(c),c=Math.trunc(c),c>=0&&Number.isSafeInteger(c)?c=String(c):(d=String(c),Bi(d)?c=d:(Zg(c),c=$g(Vg,Wg)))):c=Ci(c)}Jj(a,b,c)};
Tk=function(a,b,c){return Jj(a,b,ri(c))};
S=function(a,b,c){return Jj(a,b,Fi(c))};
Uk=function(a,b,c){return Tj(a,b,Fi(c),"")};
Vk=function(a,b,c){return Jj(a,b,Ph(c,!1,!1))};
T=function(a,b,c){return Jj(a,b,c==null?c:ti(c))};
Wk=function(a,b,c,d){Zj(a,b,c,d==null?d:ti(d))};
Bea=function(a){return a};
Xk=function(a){return a};
Fea=function(a,b,c,d){return Cea(a,b,c,d,Dea,Eea)};
Iea=function(a,b,c,d){return Cea(a,b,c,d,Gea,Hea)};
Cea=function(a,b,c,d,e,f){if(!c.length&&!d)return 0;for(var h=0,l=0,m=0,n=0,p=0,q=c.length-1;q>=0;q--){var r=c[q];d&&q===c.length-1&&r===d||(n++,r!=null&&m++)}if(d)for(var t in d)q=+t,isNaN(q)||(p+=Jea(q),l++,q>h&&(h=q));n=e(n,m)+f(l,h,p);t=m;q=l;r=h;for(var u=p,w=c.length-1;w>=0;w--){var A=c[w];if(!(A==null||d&&w===c.length-1&&A===d)){A=w-b;var C=e(A,t)+f(q,r,u);C<n&&(a=1+A,n=C);q++;t--;u+=Jea(A);r=Math.max(r,A)}}b=e(0,0)+f(q,r,u);b<n&&(a=0,n=b);if(d){q=l;r=h;u=p;t=m;for(var F in d)d=+F,isNaN(d)||
d>=1024||(q--,t++,u-=F.length,h=e(d,t)+f(q,r,u),h<n&&(a=1+d,n=h))}return a};
Hea=function(a,b,c){return c+a*3+(a>1?a-1:0)};
Gea=function(a,b){return(a>1?a-1:0)+(a-b)*4};
Eea=function(a,b){return a==0?0:9*Math.max(1<<32-Math.clz32(a+a/2-1),4)<=b?a==0?0:a<4?100+(a-1)*16:a<6?148+(a-4)*16:a<12?244+(a-6)*16:a<22?436+(a-12)*19:a<44?820+(a-22)*17:52+32*a:40+4*b};
Dea=function(a){return 40+4*a};
Jea=function(a){return a>=100?a>=1E4?Math.ceil(Math.log10(1+a)):a<1E3?3:4:a<10?1:2};
U=function(a,b,c){this.qa=Q(a,b,c)};
Kea=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");gj(b,32);return Yi(a,b)};
$k=function(a){var b=Yk?a.qa:dj(a.qa,cea,void 0,void 0,!1);var c=!Yk;var d=Lea?void 0:a.constructor.zb;var e=ej(c?a.qa:b);if(a=b.length){var f=b[a-1],h=Oh(f);h?a--:f=void 0;var l=+!!(e&512)-1,m=a-l,n=!!Zk&&iea&&!(e&512),p;e=(p=Zk)!=null?p:Xk;e=n?e(m,l,b,f):m;p=(m=n&&m!==e)?Array.prototype.slice.call(b,0,a):b;if(h||m){b:{var q=p;var r=f;h={};n=!1;if(m)for(var t=Math.max(0,e+l);t<q.length;t++){var u=q[t],w=t-l;u==null||mi(u,d,w)||Nh(u)&&u.size===0||(q[t]=void 0,h[w]=u,n=!0)}if(r)for(var A in r)if(t=
+A,isNaN(t))h[A]=r[A];else if(u=r[A],Array.isArray(u)&&(mi(u,d,+A)||Nh(u)&&u.size===0)&&(u=null),u==null&&(n=!0),m&&t<e){n=!0;u=t+l;for(w=q.length;w<=u;w++)q.push(void 0);q[u]=r[t]}else u!=null&&(h[A]=u);if(n){for(var C in h){r=h;break b}r=null}}q=r==null?f!=null:r!==f}m&&(a=p.length);for(var F;a>0;a--){C=a-1;A=p[C];C-=l;if(!(A==null||mi(A,d,C)||Nh(A)&&A.size===0))break;F=!0}if(p!==b||q||F){if(!m&&!c)p=Array.prototype.slice.call(p,0,a);else if(F||q||r)p.length=a;r&&p.push(r)}b=p}return b};
Nea=function(a){return Array.isArray(a)?a[0]instanceof Ih?a:[Mea,a]:[a,void 0]};
al=function(a,b,c){if(Array.isArray(b)){var d=Qh(b);if(d&4)return b;for(var e=0,f=0;e<b.length;e++){var h=a(b[e]);h!=null&&(b[f++]=h)}f<e&&(b.length=f);c&&(Lh(b,(d|5)&-12289),d&2&&Object.freeze(b));return b}};
el=function(a){var b=a[Oea];if(!b){var c=Pea(a),d=bl(a),e=d.C;b=e?function(f,h){return e(f,h,d)}:function(f,h){for(;pda(h)&&h.B!=4;){var l=h.D,m=d[l];
if(!m){var n=d.extensions;n&&(n=n[l])&&(m=d[l]=Qea(n))}m&&m(h,f,l)||(m=h,l=m.C,xh(m),m.eP?m=void 0:(n=m.j.j-l,m.j.j=l,m=nda(m.j,n)),l=f,m&&(oi||(oi=Symbol()),(n=l[oi])?n.push(m):l[oi]=[m]))}c===cl||c===dl||c.G||(f[Rea||(Rea=Symbol())]=c)};
a[Oea]=b}return b};
Qea=function(a){a=Nea(a);var b=a[0].VM;if(a=a[1]){var c=el(a),d=bl(a).sB;return function(e,f,h){return b(e,f,h,d,c)}}return b};
fl=function(){};
Sea=function(a,b,c){var d=c[1];if(d){var e=d[gl];var f=e?e.sB:$i(d[0]);a[b]=e!=null?e:d}f&&f===Zi?(a.j||(a.j=new Set)).add(b):c[0]&&(a.B||(a.B=new Set)).add(b)};
Tea=function(a,b){return[a.j,!b||b[0]>0?void 0:b]};
Pea=function(a){var b=a[gl];if(b)return b;b=hl(a,a[gl]=new fl,Tea,Tea,Sea);if(!b.extensions&&!b.B&&!b.j){var c=!0,d;for(d in b)isNaN(d)||(c=!1);c?($i(a[0])===Zi?dl?b=dl:(b=new fl,b.sB=$i(!0),b=dl=b):b=cl||(cl=new fl),b=a[gl]=b):b.G=!0}return b};
Uea=function(a,b,c){a[b]=c};
hl=function(a,b,c,d,e){e=e===void 0?Uea:e;b.sB=$i(a[0]);var f=0,h=a[++f];h&&h.constructor===Object&&(b.extensions=h,h=a[++f],typeof h==="function"&&(b.C=h,b.D=a[++f],h=a[++f]));for(var l={};Array.isArray(h)&&typeof h[0]==="number"&&h[0]>0;){for(var m=0;m<h.length;m++)l[h[m]]=h;h=a[++f]}for(m=1;h!==void 0;){typeof h==="number"&&(m+=h,h=a[++f]);var n=void 0;if(h instanceof Ih)var p=h;else p=Vea,f--;if(p.M3){h=a[++f];n=a;var q=f;typeof h=="function"&&(h=h(),n[q]=h);n=h}h=a[++f];q=m+1;typeof h==="number"&&
h<0&&(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};
Yea=function(a){var b=a[Wea];if(!b){var c=il(a);b=function(d,e){return Xea(d,e,c)};
a[Wea]=b}return b};
Zea=function(a){return a.WM};
$ea=function(a,b){var c,d,e=a.WM;return function(f,h,l){return e(f,h,l,d||(d=il(b).sB),c||(c=Yea(b)))}};
il=function(a){var b=a[jl];if(b)return b;b=hl(a,a[jl]={},Zea,$ea);afa(a);return b};
bfa=function(a,b){var c=a.VM;return b?function(d,e,f){return c(d,e,f,b)}:c};
cfa=function(a,b,c){var d=a.VM,e,f;return function(h,l,m){return d(h,l,m,f||(f=bl(b).sB),e||(e=el(b)),c)}};
bl=function(a){var b=a[kl];if(b)return b;Pea(a);b=hl(a,a[kl]={},bfa,cfa);afa(a);return b};
afa=function(a){kl in a&&gl in a&&jl in a&&(a.length=0)};
dfa=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){c=Nea(c);var d=c[0].WM;if(c=c[1]){var e=Yea(c),f=il(c).sB;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}};
Xea=function(a,b,c){for(var d=ej(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(m!=null){var n=l-e,p=dfa(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],f!=null&&(h=dfa(c,e))&&h(b,f,e))}if(a=oi?a[oi]:void 0)for(Fh(b,b.j.end()),c=0;c<a.length;c++)Fh(b,Jg(a[c])||new Uint8Array(0))};
ll=function(a,b){return new Ih(a,b,!1,!1)};
ml=function(a,b){return new Ih(a,b,!0,!1)};
nl=function(a,b,c){lj(a,ej(a),b,c)};
ol=function(a,b,c){b=Hda(b);b!=null&&(Gh(a,c,1),a=a.j,c=efa||(efa=new DataView(new ArrayBuffer(8))),c.setFloat64(0,+b,!0),Vg=c.getUint32(0,!0),Wg=c.getUint32(4,!0),Eh(a,Vg),Eh(a,Wg))};
pl=function(a,b,c){a:if(b!=null){if(si(b)){if(typeof b==="string"){b=yi(b);break a}if(typeof b==="number"){b=zi(b);break a}}b=void 0}b!=null&&(typeof b==="string"&&xda(b),b!=null&&(Gh(a,c,0),typeof b==="number"?(a=a.j,Zg(b),yda(a,Vg,Wg)):(c=xda(b),yda(a.j,c.B,c.j))))};
Wl=function(a,b,c){b=wi(b);b!=null&&b!=null&&(Gh(a,c,0),zda(a.j,b))};
ffa=function(a,b,c){b=Kda(b);b!=null&&(Gh(a,c,0),a.j.j.push(b?1:0))};
gfa=function(a,b,c){b=Gi(b);b!=null&&Hh(a,c,Pca(b))};
Xl=function(a,b,c,d,e){b=b instanceof U?b.qa:Array.isArray(b)?Q(b,d[0],d[1]):void 0;if(b!=null){Gh(a,c,2);c=a.j.end();Fh(a,c);c.push(a.B);e(b,a);e=c.pop();for(e=a.B+a.j.length()-e;e>127;)c.push(e&127|128),e>>>=7,a.B++;c.push(e);a.B++}};
hfa=function(a){return function(){var b=new Ada;Xea(this.qa,b,il(a));Fh(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}};
Yl=function(a){return function(b){return Kea(a,b)}};
Zl=function(a){this.qa=Q(a)};
am=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=ifa(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;h>=12;h-=12,l+=12)c+=$l(a,l),d+=$l(a,l+4),e+=$l(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 jfa.toString(e)};
ifa=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
$l=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
bm=function(a){this.qa=Q(a)};
cm=function(a){this.qa=Q(a)};
dm=function(a){this.qa=Q(a)};
em=function(a){this.qa=Q(a)};
fm=function(a){this.qa=Q(a)};
g.kfa=function(a){var b=new em;b=S(b,1,a.D);for(var c=[],d=0;d<a.fields.length;d++)c.push(a.fields[d].xd);b=pea(b,c,Ei);c=[];d=[];for(var e=g.v(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.zP(f)||[],m=[],n=0;n<l.length;n++){var p=l[n],q=p&&p.j;p=new cm;switch(h){case 3:q=Number(q);Number.isFinite(q)&&Zj(p,1,gm,Ai(q));break;case 2:Zj(p,2,gm,ri(Number(q)))}m.push(p)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new dm;m=gk(n,cm,2,m);n=
[];p=a;q=[];for(var r=0;r<p.fields.length;r++)q.push(p.fields[r].yd);p=q;for(q=0;q<p.length;q++){var t=p[q],u=f[q];r=new bm;switch(t){case 3:Zj(r,1,hm,Fi(String(u)));break;case 2:t=Number(u);Number.isFinite(t)&&Zj(r,2,hm,vi(t));break;case 1:t=u==="true",t=t==null?t:Jda(t),Zj(r,3,hm,t)}n.push(r)}ik(m,bm,1,n);c.push(m)}}ik(b,dm,4,c);return b};
lfa=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a.indexOf("blob:")===0&&(a=a.substring(5));a=a.split("#")[0].split("?")[0];a=a.toLowerCase();a.indexOf("//")==0&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");c!=-1&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if(c!=="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")throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(d!=-1){var e=b.substring(d+1);b=b.substring(0,d);if(c==="http"&&e!=="80"||c==="https"&&e!=="443")a=":"+e}return c+"://"+b+a};
mfa=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;t<64;t+=4)r[t/4]=q[t]<<24|q[t+1]<<16|q[t+2]<<8|q[t+3];for(t=16;t<80;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 u=e[1],w=e[2],A=e[3],C=e[4];for(t=0;t<80;t++){if(t<40)if(t<20){var F=A^u&(w^A);var G=1518500249}else F=u^w^A,G=1859775393;else t<60?(F=u&w|A&(u|w),G=2400959708):(F=u^w^A,G=3395469782);F=((q<<5|q>>>27)&4294967295)+F+C+G+r[t]&4294967295;C=A;A=w;w=(u<<30|u>>>2)&4294967295;u=q;q=F}e[0]=e[0]+q&4294967295;e[1]=e[1]+u&4294967295;e[2]=
e[2]+w&4294967295;e[3]=e[3]+A&4294967295;e[4]=e[4]+C&4294967295}
function c(q,r){if(typeof q==="string"){q=unescape(encodeURIComponent(q));for(var t=[],u=0,w=q.length;u<w;++u)t.push(q.charCodeAt(u));q=t}r||(r=q.length);t=0;if(n==0)for(;t+64<r;)b(q.slice(t,t+64)),t+=64,p+=64;for(;t<r;)if(f[n++]=q[t++],p++,n==64)for(n=0,b(f);t+64<r;)b(q.slice(t,t+64)),t+=64,p+=64}
function d(){var q=[],r=p*8;n<56?c(l,56-n):c(l,64-(n-56));for(var t=63;t>=56;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;t<5;t++)for(var u=24;u>=0;u-=8)q[r++]=e[t]>>u&255;return q}
for(var e=[],f=[],h=[],l=[128],m=1;m<64;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,n8: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}}};
ofa=function(a,b,c){var d=String(g.Ua.location.href);return d&&a&&b?[b,nfa(lfa(d),a,c||null)].join(" "):null};
nfa=function(a,b,c){var d=[],e=[];if((Array.isArray(c)?2:1)==1)return e=[b,a],g.Zb(d,function(l){e.push(l)}),pfa(e.join(" "));
var f=[],h=[];g.Zb(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=f.length==0?[c,b,a]:[f.join(":"),c,b,a];g.Zb(d,function(l){e.push(l)});
a=pfa(e.join(" "));a=[c,a];h.length==0||a.push(h.join(""));return a.join("_")};
pfa=function(a){var b=mfa();b.update(a);return b.n8().toLowerCase()};
im=function(a){this.j=a||{cookie:""}};
jm=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=jc(a[f]),d=e.indexOf("="),d==-1?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
km=function(a){return!!qfa.FPA_SAMESITE_PHASE2_MOD||!(a===void 0||!a)};
rfa=function(a){a=a===void 0?!1:a;var b=g.Ua.__SAPISID||g.Ua.__APISID||g.Ua.__3PSAPISID||g.Ua.__OVERRIDE_SID;km(a)&&(b=b||g.Ua.__1PSAPISID);if(b)return!0;if(typeof document!=="undefined"){var c=new im(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID");km(a)&&(b=b||c.get("__Secure-1PAPISID"))}return!!b};
sfa=function(a,b,c,d){(a=g.Ua[a])||typeof document==="undefined"||(a=(new im(document)).get(b));return a?ofa(a,c,d):null};
tfa=function(a,b){b=b===void 0?!1:b;var c=lfa(String(g.Ua.location.href)),d=[];if(rfa(b)){c=c.indexOf("https:")==0||c.indexOf("chrome-extension:")==0||c.indexOf("chrome-untrusted://new-tab-page")==0||c.indexOf("moz-extension:")==0;var e=c?g.Ua.__SAPISID:g.Ua.__APISID;e||typeof document==="undefined"||(e=new im(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?ofa(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&km(b)&&((b=sfa("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",
a))&&d.push(b),(a=sfa("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&d.push(a))}return d.length==0?null:d.join(" ")};
lm=function(a){this.qa=Q(a)};
mm=function(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.j=function(){return g.kb()};
this.B=this.j()};
nm=function(a){this.qa=Q(a)};
Qm=function(a){this.qa=Q(a)};
g.Rm=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.Sm=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++};
Tm=function(a){this.qa=Q(a)};
Um=function(a){this.qa=Q(a)};
Vm=function(a){this.qa=Q(a)};
ufa=function(a,b){ik(a,Um,1,b)};
Wm=function(a){this.qa=Q(a)};
wfa=function(a,b){b=b===void 0?vfa:b;if(!Xm){var c;a=(c=a.navigator)==null?void 0:c.userAgentData;if(!a||typeof a.getHighEntropyValues!=="function"||a.brands&&typeof a.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));c=(a.brands||[]).map(function(e){var f=new Um;f=S(f,1,e.brand);return S(f,2,e.version)});
ufa(Ok(Ym,2,a.mobile),c);Xm=a.getHighEntropyValues(b)}var d=new Set(b);return Xm.then(function(e){var f=Ym.clone();d.has("platform")&&S(f,3,e.platform);d.has("platformVersion")&&S(f,4,e.platformVersion);d.has("architecture")&&S(f,5,e.architecture);d.has("model")&&S(f,6,e.model);d.has("uaFullVersion")&&S(f,7,e.uaFullVersion);return f}).catch(function(){return Ym.clone()})};
Zm=function(a){this.qa=Q(a)};
$m=function(a){this.qa=Q(a)};
an=function(a){this.qa=Q(a,4)};
bn=function(a){this.qa=Q(a,35)};
cn=function(a){this.qa=Q(a,19)};
dn=function(a){this.qa=Q(a,8)};
xfa=function(a){this.qa=Q(a)};
gn=function(a){g.I.call(this);var b=this;this.componentId="";this.C=[];this.va="";this.pageId=null;this.Da=this.Y=-1;this.experimentIds=null;this.Z=this.G=0;this.Ha=1;this.timeoutMillis=0;this.logSource=a.logSource;this.TE=a.TE||function(){};
this.B=new en(a.logSource,a.Dx);this.network=a.network;this.YB=a.YB||null;this.K=a.qfa||null;this.sessionIndex=a.sessionIndex||null;this.xE=a.xE||!1;this.logger=null;this.withCredentials=!a.FX;this.Dx=a.Dx||!1;this.N=typeof URLSearchParams!=="undefined"&&!!(new URL(fn())).searchParams&&!!(new URL(fn())).searchParams.set;var c=T(new Zm,1,1);yfa(this.B,c);this.D=new g.Rm(1E4,3E5,.1);a=zfa(this,a.YW);this.j=new mm(this.D.getValue(),a);this.ra=new mm(6E5,a);this.xE||this.ra.start();this.Dx||(document.addEventListener("visibilitychange",
function(){document.visibilityState==="hidden"&&b.pP()}),document.addEventListener("pagehide",this.pP.bind(this)))};
zfa=function(a,b){return a.N?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
fn=function(){return"https://play.google.com/log?format=json&hasfast=true"};
en=function(a,b){this.Dx=b=b===void 0?!1:b;this.B=this.locale=null;this.j=new cn;Number.isInteger(a)&&this.j.tH(a);b||(this.locale=document.documentElement.getAttribute("lang"));yfa(this,new Zm)};
yfa=function(a,b){gk(a.j,Zm,1,b);Nk(b,1)||T(b,1,1);a.Dx||(b=hn(a),Mk(b,5)||S(b,5,a.locale));a.B&&(b=hn(a),g.fk(b,Vm,9)||gk(b,Vm,9,a.B))};
Afa=function(a,b){Kj(jn(a),Wm,11)&&(a=kn(a),T(a,1,b))};
Bfa=function(a,b){Kj(jn(a),Wm,11)&&(a=kn(a),Ok(a,2,b))};
jn=function(a){return g.fk(a.j,Zm,1)};
Cfa=function(a){var b=b===void 0?vfa:b;var c=a.Dx?void 0:yf();c?wfa(c,b).then(function(d){a.B=d;d=hn(a);gk(d,Vm,9,a.B);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
hn=function(a){a=jn(a);var b=g.fk(a,Wm,11);b||(b=new Wm,gk(a,Wm,11,b));return b};
kn=function(a){a=hn(a);var b=g.fk(a,Tm,10);b||(b=new Tm,Ok(b,2,!1),gk(a,Tm,10,b));return b};
ln=function(){this.i7=typeof AbortController!=="undefined"};
mn=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.network=null;this.componentId="";this.pageId=this.Mz=this.YB=null};
nn=function(a,b,c,d,e,f,h){a=a===void 0?-1:a;b=b===void 0?"":b;c=c===void 0?"":c;d=d===void 0?!1:d;e=e===void 0?"":e;g.I.call(this);this.logSource=a;this.componentId=b;f?b=f:(a=new mn(a,"0"),a.componentId=b,g.M(this,a),c!==""&&(a.B=c),d&&(a.C=!0),e&&(a.j=e),h&&(a.network=h),b=a.build());this.j=b};
on=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}};
Dfa=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""}};
pn=function(a,b,c){c=c===void 0?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
g.qn=function(a){return(new Efa).Pk(a)};
Efa=function(){};
rn=function(a,b,c){if(b==null)c.push("null");else{if(typeof b=="object"){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),rn(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],typeof f!="function"&&(c.push(e),Ffa(d,c),c.push(":"),rn(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Ffa(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);}}};
Ffa=function(a,b){b.push('"',a.replace(Gfa,function(c){var d=Hfa[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Hfa[c]=d);return d}),'"')};
Ifa=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"}};
sn=function(){};
tn=function(){};
un=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};
vn=function(a){return a?decodeURI(a):a};
g.xn=function(a,b){return b.match(wn)[a]||null};
g.yn=function(a){return vn(g.xn(3,a))};
g.Jfa=function(a){a=a.match(wn);return un(a[1],a[2],a[3],a[4])};
zn=function(a){a=a.match(wn);return un(null,null,null,null,a[5],a[6],a[7])};
Kfa=function(a){var b=a.indexOf("#");return b<0?a:a.slice(0,b)};
An=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(d>=0){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?$e(e):"")}}};
Bn=function(a,b){if(!b)return a;var c=a.indexOf("#");c<0&&(c=a.length);var d=a.indexOf("?");if(d<0||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]};
Cn=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Cn(a,String(b[d]),c);else b!=null&&c.push(a+(b===""?"":"="+g.Ze(b)))};
Lfa=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Cn(a[b],a[b+1],c);return c.join("&")};
g.Dn=function(a){var b=[],c;for(c in a)Cn(c,a[c],b);return b.join("&")};
Mfa=function(a,b){var c=arguments.length==2?Lfa(arguments[1],0):Lfa(arguments,1);return Bn(a,c)};
g.to=function(a,b){b=g.Dn(b);return Bn(a,b)};
uo=function(a,b,c){c=c!=null?"="+g.Ze(c):"";return Bn(a,b+c)};
Nfa=function(a,b,c,d){for(var e=c.length;(b=a.indexOf(c,b))>=0&&b<d;){var f=a.charCodeAt(b-1);if(f==38||f==63)if(f=a.charCodeAt(b+e),!f||f==61||f==38||f==35)return b;b+=e+1}return-1};
vo=function(a,b){var c=a.search(Ofa),d=Nfa(a,0,b,c);if(d<0)return null;var e=a.indexOf("&",d);if(e<0||e>c)e=c;d+=b.length+1;return $e(a.slice(d,e!==-1?e:0))};
wo=function(a,b){for(var c=a.search(Ofa),d=0,e,f=[];(e=Nfa(a,d,b,c))>=0;)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(Pfa,"$1")};
Qfa=function(a,b,c){return uo(wo(a,b),b,c)};
g.xo=function(a){g.Fd.call(this);this.headers=new Map;this.N=a||null;this.C=!1;this.Da=this.j=null;this.Y="";this.B=0;this.D="";this.G=this.Ga=this.Z=this.Ha=!1;this.va=0;this.ra=null;this.La="";this.K=!1};
Sfa=function(a,b,c,d,e,f,h){var l=new g.xo;Rfa.push(l);b&&l.listen("complete",b);l.VF("ready",l.O7);f&&(l.va=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)};
Ufa=function(a,b){a.C=!1;a.j&&(a.G=!0,a.j.abort(),a.G=!1);a.D=b;a.B=5;Tfa(a);yo(a)};
Tfa=function(a){a.Ha||(a.Ha=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Vfa=function(a){if(a.C&&typeof zo!="undefined")if(a.Da[1]&&g.Ao(a)==4&&a.getStatus()==2)a.getStatus();else if(a.Z&&g.Ao(a)==4)g.ng(a.l0,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(Bo(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.B=6;try{var b=g.Ao(a)>2?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";Tfa(a)}}finally{yo(a)}}};
yo=function(a,b){if(a.j){Wfa(a);var c=a.j,d=a.Da[0]?function(){}:null;
a.j=null;a.Da=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Wfa=function(a){a.ra&&(g.Ua.clearTimeout(a.ra),a.ra=null)};
Bo=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=b===0)a=g.xn(1,String(a.Y)),!a&&g.Ua.self&&g.Ua.self.location&&(a=g.Ua.self.location.protocol.slice(0,-1)),b=!Xfa.test(a?a.toLowerCase():"");c=b}return c};
g.Ao=function(a){return a.j?a.j.readyState:0};
g.Co=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.Do=function(a){try{if(!a.j)return null;if("response"in a.j)return a.j.response;switch(a.La){case "":case "text":return a.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in a.j)return a.j.mozResponseArrayBuffer}return null}catch(b){return null}};
g.Yfa=function(a){var b={};a=(a.j&&g.Ao(a)>=2?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.fc(a[c])){var d=Sba(a[c]),e=d[0];d=d[1];if(typeof d==="string"){d=d.trim();var f=b[e]||[];b[e]=f;f.push(d)}}return Vc(b,function(h){return h.join(", ")})};
g.Eo=function(a,b){return a.j?a.j.getResponseHeader(b):null};
Fo=function(){};
Ho=function(a,b,c){this.logger=a;this.event=b;if(c===void 0||c)this.startMillis=Go()};
Io=function(){};
Jo=function(a,b,c,d){c=c===void 0?"":c;g.I.call(this);this.Mi=b;this.C=c;this.B=new Map;this.G=new Map;b=new mn(1828,"0");b.j="22";b.network=new Fo;d&&(c=new Zl,d=pea(c,d,Mda),b.Mz=d);this.K=new nn(1828,"","",!1,"",b.build());this.j=new g.pg(this.K);this.j.C=1E5;d=this.j;d.flushInterval=3E4;d.j.setInterval(3E4);this.Da=new Aca(this.j);this.Ha=new Dca(this.j);this.Ga=new Eca(this.j);this.va=new zca(this.j);this.Z=new Bca(this.j);this.Y=new Cca(this.j);this.errorCount=new Hca(this.j);this.ra=new Gca(this.j);
this.La=new Fca(this.j);this.Sa=new Ica(this.j);this.N=new Jca(this.j);this.Oa=new Kca(this.j);this.D=a?am(a):"";a=new yca(this.j);this.B.set("h",1);this.B.set("u",2);this.B.set("k",3);this.B.set("P",4);this.B.set("p",5);this.G.set(25,1);this.G.set(26,2);this.G.set(27,3);this.G.set(28,4);a.j.jm("/client_streamz/bg/fic",this.Mi);g.M(this,this.K);g.M(this,this.j)};
Zfa=function(a,b){a.D=am(b)};
Go=function(){var a,b,c;return(c=(a=globalThis.performance)==null?void 0:(b=a.now)==null?void 0:b.call(a))!=null?c:Date.now()};
Ko=function(a){this.qa=Q(a)};
Lo=function(a){this.qa=Q(a)};
Mo=function(a){this.qa=Q(a,0,Mo.messageId)};
g.No=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
Oo=function(a){function b(q,r,t){Promise.resolve().then(function(){n.done();d.zg.un();m.resolve({F7:q,uea:r,Orb:t})})}
function c(q,r,t,u){var w="k";r?w="h":t&&(w="u");w!=="k"?u!==0&&d.zg.hB(w,q):d.j<=0?(d.zg.hB(w,q),d.j=Math.floor(Math.random()*200)):d.j--}
g.I.call(this);var d=this;this.j=Math.floor(Math.random()*200);if(a.challenge instanceof Mo){var e=Mk(a.challenge,4);var f=Mk(a.challenge,5)}else e=a.program,f=a.globalName;var h=new g.I;this.addOnDisposeCallback(function(){d.B.then(function(q){q=q.uea;d.zg.un();q==null||q();h.dispose()})});
if(a.m1!==!1)if(a.zg)this.zg=a.zg;else{var l;g.M(h,this.zg=new Jo(f,(l=a.Mi)!=null?l:"_"))}else this.zg=new Io;var m=new g.No;this.B=m.promise;var n=new Ho(this.zg,"t",!1);if(!g.Ua[f])throw this.zg.Gl(25),this.zg.un(),Error("EGOU");if(!g.Ua[f].a)throw this.zg.Gl(26),this.zg.un(),Error("ELIU");try{var p=g.Ua[f].a;n.start();this.C=g.v(p(e,b,!0,a.Psb,c)).next().value;this.yT=m.promise.then(function(){})}catch(q){throw this.zg.Gl(28),this.zg.un(),q;
}};
Po=function(a,b,c){var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;b+=":";c!=null||(c=Error());if(c instanceof Error){this.message=b+c.message;var e;this.stack=(e=c.stack)!=null?e:""}else this.message=b+String(c),this.stack="";Object.setPrototypeOf(this,this.constructor.prototype)};
$fa=function(a){if(!a)return null;a=mk(a,4);return a===null||a===void 0?null:be(a)};
Qo=function(){this.B={};this.j=null};
Ro=function(){Qo.instance||(Qo.instance=new Qo);return Qo.instance};
cga=function(a){var b=Ro();return aga(b,g.fk(a,Ko,1),g.fk(a,Lo,2),Mk(a,3))};
aga=function(a,b,c,d){if(!b&&!c)return Promise.resolve();if(!d)return dga(b,c);var e;(e=a.B)[d]||(e[d]=new Promise(function(f,h){dga(b,c).then(function(){a.j=d;f()},function(l){delete a.B[d];
h(l)})}));
return a.B[d]};
dga=function(a,b){return b?ega(b):a?fga(a):Promise.resolve()};
ega=function(a){return new Promise(function(b,c){var d=g.Bf("SCRIPT"),e=$fa(a);g.Ye(d,e);d.onload=function(){g.If(d);b()};
d.onerror=function(){g.If(d);c(Error("EWLS"))};
(g.of("HEAD")[0]||document.documentElement).appendChild(d)})};
fga=function(a){return new Promise(function(b){var c=g.Bf("SCRIPT");if(a){var d=mk(a,6);d=d===null||d===void 0?null:Hba(d)}else d=null;c.textContent=xe(d);Xe(c);(g.of("HEAD")[0]||document.documentElement).appendChild(c);g.If(c);b()})};
hga=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a[c]+97;if(g.Ua.TextDecoder)b=(new TextDecoder).decode(b);else if(b.length<=8192)b=String.fromCharCode.apply(null,b);else{a="";for(c=0;c<b.length;c+=8192)a+=String.fromCharCode.apply(null,Array.prototype.slice.call(b,c,c+8192));b=a}return gga(b)};
So=function(a){this.qa=Q(a)};
To=function(a){this.qa=Q(a)};
Uo=function(a){this.qa=Q(a)};
Vo=function(a,b,c){this.client=a;this.Hs=b;this.j=c};
iga=function(a,b){try{return globalThis.sessionStorage.setItem(a,b),!0}catch(c){return!1}};
Wo=function(a,b,c,d){b=b===void 0?0:b;c=c===void 0?a.length:c;var e=0;for(d&&(e=Wo(d));b<c;b++)d=typeof a==="string"?a.charCodeAt(b):a[b],e=jga(31,e)+d|0;return e};
kga=function(a,b){return[Wo(a,0,a.length>>1,b),Wo(a,a.length>>1)]};
lga=function(a){var b=g.v(kga(a,Xo));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)};
mga=function(a,b){var c=kga(b);a=new Uint32Array(a.buffer);b=a[0];var d=g.v(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;n<22;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])}};
nga=function(a,b,c,d,e){var f=(4-(Xo.length+c.length)%4)%4,h=new Uint8Array(4+f+Xo.length+4+c.length),l=new DataView(h.buffer),m=0;l.setUint32(m,Math.random()*4294967295);m=m+4+f;h.set(Xo,m);m+=Xo.length;l.setUint32(m,e);h.set(c,m+4);mga(h,d);return a.Jh(b,function(n){return void globalThis.sessionStorage.removeItem(n)})?iga(b,g.Bg(h))?"s":"t":"i"};
oga=function(a,b){var c=globalThis.sessionStorage.getItem(a);if(!c)return["m"];try{var d=Dg(c);mga(d,b)}catch(e){return globalThis.sessionStorage.removeItem(a),["c"]}for(b=4;b<7&&d[b]===0;)b++;for(c=0;c<Xo.length;c++)if(d[b++]!==Xo[c])return globalThis.sessionStorage.removeItem(a),["d"];c=(new DataView(d.buffer)).getUint32(b);return Math.floor(Date.now()/1E3)>=c?(globalThis.sessionStorage.removeItem(a),["e"]):["a",new Uint8Array(d.buffer,b+4)]};
Yo=function(a,b,c){c=c===void 0?[]:c;this.maxItems=a;this.j=b===void 0?0:b;this.B=c};
pga=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new Yo(a);var c=b.split(",");if(c.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Yo(a);b=c.slice(1);b.length===1&&b[0]===""&&(b=[]);c=Number(c[0]);return isNaN(c)||c<0||c>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Yo(a)):new Yo(a,c,b)};
qga=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=pga(a))};
rga=function(a,b,c,d,e){var f=a.index?a.logger.Jo(function(){return nga(a.index,lga(b),c,d,e)},"W"):"u";
a.logger.e_(f)};
sga=function(a,b,c){var d=g.v(a.index?a.logger.Jo(function(){return oga(lga(b),c)},"R"):["u"]),e=d.next().value;
d=d.next().value;a.logger.d_(e);return d};
Zo=function(a){g.I.call(this);var b=this;this.logger=a;this.D=new g.No;this.addOnDisposeCallback(function(){return b.D.reject()})};
$o=function(a,b){var c=setTimeout(function(){a.D.resolve()},b);
a.addOnDisposeCallback(function(){return void clearTimeout(c)})};
ap=function(a,b,c){return a.logger.Jo(function(){return a.dG(b,c)},a.C)};
bp=function(a,b,c,d){Zo.call(this,a);this.G=b;this.N=c;this.C="m";this.B="x";this.K=0;$o(this,d)};
cp=function(a,b,c){Zo.call(this,a);this.G=b;this.C="f";this.B="z";$o(this,c)};
dp=function(a,b,c){Zo.call(this,a);this.G=b;this.C="w";this.B="z";$o(this,c)};
ep=function(a,b){Zo.call(this,a);this.error=b;this.C="e";this.B="y"};
uga=function(a,b){var c=(b(a.error.message)+":"+b(a.error.stack)).substring(0,2048);b=c.length+1;c=tga(c);var d=new Uint8Array(4+c.length);d.set([42,b&127|128,b>>7,a.error.code]);d.set(c,4);return d};
fp=function(a,b,c){Zo.call(this,a);this.G=b;this.clientState=c;this.C="S";this.B="q"};
tga=function(a){return globalThis.TextEncoder?(new TextEncoder).encode(a):g.Ag(a)};
gp=function(a,b,c){g.I.call(this);var d=this;this.logger=a;this.onError=b;this.state=c;this.C=0;this.addOnDisposeCallback(function(){d.j&&(d.j.dispose(),d.j=void 0)})};
vga=function(a,b){var c;return(c=a.j)==null?void 0:ap(c,function(){return hp(a,b)},function(d){var e;
if(a.j instanceof bp&&((e=b.dk)==null?0:e.vM))try{var f;(f=a.cache)==null||rga(f,hp(a,b),d,b.dk.lE,a.G)}catch(h){a.reportError(new Po(24,"ELX:write",h))}})};
wga=function(a,b){var c;if((c=b.dk)!=null&&c.HI)try{var d,e=(d=a.cache)==null?void 0:sga(d,hp(a,b),b.dk.lE);return e?a.logger.Jo(function(){return g.Bg(e,2)},"a"):void 0}catch(f){a.reportError(new Po(23,"RXO:read",f))}};
xga=function(a,b){if(!b.aaa)throw new Po(29,"SDF:notready");return ap(new fp(a.logger,a.C,a.state),function(){return hp(a,b)})};
yga=function(a,b){b=b instanceof Po?b:new Po(5,"TVD:error",b);a.reportError(b);return ap(new ep(a.logger,b),function(){return[]})};
hp=function(a,b){return b.tJ?b.tJ:b.Ar?a.logger.Jo(function(){return b.tJ=tga(b.Ar)},"c"):[]};
ip=function(a){this.qa=Q(a)};
jp=function(a,b,c){this.j=a;this.C=b;this.B=c};
kp=function(a,b,c){c=c===void 0?{}:c;this.Mda=a;this.j=c;this.B=b};
lp=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.B=e};
zga=function(a,b,c){c=c===void 0?{}:c;return new jp(b,a,c)};
mp=function(a){this.qa=Q(a)};
np=function(a){this.qa=Q(a)};
op=function(a){this.qa=Q(a)};
pp=function(a){this.qa=Q(a)};
qp=function(a,b){this.N=a.naa;this.Z=b;this.j=a.xhr;this.C=[];this.G=[];this.K=[];this.D=[];this.B=[];this.N&&Aga(this)};
Dga=function(a,b){g.vd(a.j,"complete",function(){if(Bo(a.j)){var c=g.Co(a.j);if(b&&a.j.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.Z(c)}catch(h){rp(a,new pn(13,"Error when deserializing response data; error: "+h+(", response: "+c)));return}c=on(a.j.getStatus());sp(a,tp(a));c==0?Bga(a,d):rp(a,new pn(c,"Xhr succeeded but the status code is not 200"))}else{c=g.Co(a.j);d=tp(a);if(c){var e=Cga(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;sp(a,d);rp(a,new pn(c,f,e))}})};
Aga=function(a){a.N.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.Z(c)}catch(e){rp(a,new pn(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&Bga(a,d)}if("2"in b)for(b=Cga(a,b["2"]),c=0;c<a.K.length;c++)a.K[c](b)});
a.N.on("end",function(){sp(a,tp(a));for(var b=0;b<a.D.length;b++)a.D[b]()});
a.N.on("error",function(){if(a.B.length!=0){var b=a.j.B;b!==0||Bo(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=on(c);break;default:d=14}sp(a,tp(a));b=Ifa(b)+", error: "+a.j.getLastError();c!=-1&&(b+=", http status code: "+c);rp(a,new pn(d,b))}})};
tp=function(a){var b={},c=g.Yfa(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
Cga=function(a,b){var c=2,d={};try{var e=Ega(b);c=nk(e,1);var f=e.getMessage();tea(e,op).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&a.j.getStatus()===404?(c=5,f="Not Found: "+String(a.j.Y)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
fq=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)};
Bga=function(a,b){for(var c=0;c<a.C.length;c++)a.C[c](b)};
sp=function(a,b){for(var c=0;c<a.G.length;c++)a.G[c](b)};
rp=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
g.gq=function(a){this.K=a.Afa||null;this.G=a.z2||!1;this.B=void 0};
hq=function(a,b){g.Fd.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.ra="GET";this.Y="";this.j=!1;this.N=this.C=this.D=null};
Fga=function(a){a.C.read().then(a.F9.bind(a)).catch(a.iK.bind(a))};
jq=function(a){a.readyState=4;a.D=null;a.C=null;a.N=null;iq(a)};
iq=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
g.kq=function(a){this.j=this.Z=this.G="";this.D=null;this.K=this.B="";this.N=!1;var b;a instanceof g.kq?(this.N=a.N,g.lq(this,a.G),this.Z=a.Z,g.mq(this,a.j),g.nq(this,a.D),this.B=a.B,oq(this,a.C.clone()),this.K=a.K):a&&(b=String(a).match(wn))?(this.N=!1,g.lq(this,b[1]||"",!0),this.Z=pq(b[2]||""),g.mq(this,b[3]||"",!0),g.nq(this,b[4]),this.B=pq(b[5]||"",!0),oq(this,b[6]||"",!0),this.K=pq(b[7]||"")):(this.N=!1,this.C=new qq(null,this.N))};
g.lq=function(a,b,c){a.G=c?pq(b,!0):b;a.G&&(a.G=a.G.replace(/:$/,""))};
g.mq=function(a,b,c){a.j=c?pq(b,!0):b};
g.nq=function(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Bad port number "+b);a.D=b}else a.D=null};
oq=function(a,b,c){b instanceof qq?(a.C=b,Gga(a.C,a.N)):(c||(b=rq(b,Hga)),a.C=new qq(b,a.N))};
g.sq=function(a,b,c){a.C.set(b,c)};
g.tq=function(a){return a instanceof g.kq?a.clone():new g.kq(a)};
pq=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
rq=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,Iga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
Iga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
qq=function(a,b){this.B=this.j=null;this.C=a||null;this.D=!!b};
uq=function(a){a.j||(a.j=new Map,a.B=0,a.C&&An(a.C,function(b,c){a.add($e(b),c)}))};
Jga=function(a,b){uq(a);b=vq(a,b);return a.j.has(b)};
g.Kga=function(a,b,c){a.remove(b);c.length>0&&(a.C=null,a.j.set(vq(a,b),g.Kb(c)),a.B=a.B+c.length)};
vq=function(a,b){b=String(b);a.D&&(b=b.toLowerCase());return b};
Gga=function(a,b){b&&!a.D&&(uq(a),a.C=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Kga(this,e,c))},a));
a.D=b};
g.Lga=function(a){var b="";g.Tc(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.wq=function(a,b,c){if(g.gd(c))return a;c=g.Lga(c);if(typeof a==="string")return uo(a,g.Ze(b),c);g.sq(a,b,c);return a};
g.xq=function(a){g.I.call(this);this.B=a;this.j={}};
Mga=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)Mga(a,b,c[h],d,e,f);else{b=ud(b,c,d||a.handleEvent,e,f||a.B||a);if(!b)return a;a.j[b.key]=b}return a};
Nga=function(){this.C=!0;this.B=0;this.j=""};
Oga=function(a,b,c){a.C=!1;throw Error("The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b);};
yq=function(){this.K=null;this.N=[];this.D=this.B=this.C=this.j=this.Y=0;this.G=null;this.Z=0};
zq=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);};
Aq=function(){this.j=null;this.B=0;this.C=new Nga;this.D=new yq};
Pga=function(a,b,c){a.j="The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
Bq=function(a){return a=="\r"||a=="\n"||a==" "||a=="\t"};
Cq=function(a){this.Y=null;this.K=[];this.D="";this.va=[];this.C=this.B=0;this.N=!1;this.Z=0;this.Da=/[\\"]/g;this.j=this.G=0;this.ra=!(!a||!a.k8)};
Dq=function(a,b,c){a.G=3;a.Y="The stream is broken @"+a.C+"/"+c+". With input:\n"+b;throw Error(a.Y);};
Eq=function(){this.G=this.C=null;this.B=this.j=0;this.D=[];this.K=!1};
Qga=function(a){var b=g.Eo(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new Eq:new Cq:b.startsWith("application/x-protobuf")?(a=g.Eo(a,"Content-Transfer-Encoding"))?a.toLowerCase()=="base64"?new Aq:null:new yq:null};
Fq=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.xq(this);this.Z.listen(this.j,"readystatechange",this.ra)};
Gq=function(a,b){a.D!=b&&(a.D=b,a.N&&a.N())};
Hq=function(a){a.Z.removeAll();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
Rga=function(a){a=this.C=a;var b=(0,g.ib)(this.Qaa,this);a.G=b;a=this.C;b=(0,g.ib)(this.Eca,this);a.N=b;this.B={};this.j={}};
Sga=function(a,b){for(var c={},d=0;d<a.length;c={s_:void 0},d++)c.s_=a[d],b.forEach(function(e){return function(f){try{f(e.s_)}catch(h){}}}(c))};
Iq=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]=[]};
Tga=function(){var a={format:"jspb"};a=a===void 0?{}:a;this.G=a.Gsb||g.Wa("suppressCorsPreflight",a)||!1;this.B=a.withCredentials||g.Wa("withCredentials",a)||!1;this.D=a.Fsb||[];this.K=a.Lsb||[];this.j=a.Qsb;this.C=a.Nsb||!1};
Jq=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Uga(function(h){return new Vga(function(l,m){var n={},p=Wga(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.PJ(),t=n;t=t===void 0?{}:t;l(new kp(q,r,t))})})},a.K).call(a,zga(e,c,d)).then(function(h){return h.Mda})};
Wga=function(a,b,c){var d=b.PJ(),e=b.getMetadata(),f=Xga(a,!0);a=Yga(a,e,f,c+d.getName());c=Zga(f,d.B,!1);Dga(c,e["X-Goog-Encode-Response-If-Executable"]=="base64");b=d.j(b.j);f.send(a,"POST",b);return c};
Xga=function(a,b){b=a.C&&!b;return a.j||b?new g.xo(new g.gq({Afa:a.j,z2:b})):new g.xo};
Yga=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e=b.Authorization;if(e&&$ga.has(e.split(" ")[0])||a.B)c.K=!0;if(a.G)d=g.wq(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
Zga=function(a,b,c){if(c){a.isActive();c=new Fq(a);var d=new Rga(c)}return new qp({xhr:a,naa:d},b)};
Uga=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
Kq=function(){this.j=new Tga;this.B="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
Lq=function(a){g.I.call(this);this.owner=a;this.signals=new Set;a&&g.M(a,this)};
Mq=function(a,b){a.signals.has(b);return b};
Nq=function(a){g.I.call(this);this.cX=a;this.slots=new Map;this.iC=new Set;this.WY=!1};
aha=function(a,b){a.Na()||a.slots.set(b,{slotId:b,slot:void 0,CX:function(){return a.slots.delete(b)}})};
Pq=function(a,b){new Promise(function(c){Oq(function(){a.cX&&(a.OZ=b,a.WY=!0);for(var d=g.v(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){Uf(h)}}d=g.v(a.iC);for(e=d.next();!e.done;e=d.next())e.value.resolve(b);a.iC.clear();c()})})};
Oq=function(a){Qq.push(a);bha()};
bha=function(){var a,b;g.H(function(c){switch(c.j){case 1:if(Rq)return c.return();g.Ba(c,2,3);Rq=!0;a=cha(0);case 5:if(!(a<Qq.length)){c.Ja(3);break}return g.z(c,Promise.resolve(),8);case 8:a=cha(a);c.Ja(5);break;case 3:g.Ea(c);Qq.length=0;Rq=!1;g.Fa(c,0);break;case 2:b=g.Da(c),Uf(b),c.Ja(3)}})};
cha=function(a){for(var b=a+100;a<b&&a<Qq.length;)try{Qq[a++]()}catch(c){Uf(c)}return a};
dha=function(a,b){if(a.Na())b();else{var c=Sq.get(a);if(c)c.push(b);else{var d=[b];Sq.set(a,d);a.addOnDisposeCallback(function(){for(var e=g.v([].concat(g.ra(d))),f=e.next();!f.done;f=e.next())f=f.value,f();Sq.delete(a)})}}};
Tq=function(a,b,c){g.I.call(this);this.N=a;this.milliseconds=b;this.Eb=c;this.state=this.D=0};
eha=function(a){return new Tq(!1,a,{hS:function(){},
O_:void 0})};
Uq=function(a){wb.call(this,a);this.name="TimerCancelledError"};
Vq=function(a){wb.call(this,a);this.name="TimerDisposedError"};
fha=function(a){var b=new Kq,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new Vo(b,a,function(){return c})};
Wq=function(a){var b,c;gp.call(this,a.Yrb?new Io:new Jo(void 0,(b=a.Mi)!=null?b:"_",a.Hs,a.Mz),(c=a.onError)!=null?c:function(){},1);
this.D=new g.No;this.B=void 0;this.hA=a.hA;this.PR=a.PR;var d;this.onEvent=(d=a.onEvent)!=null?d:function(){}};
hha=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A;return g.H(function(C){switch(C.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.Rm(c,6E5,.25,2),e={},f=1;case 2:if(!(f<=2)){C.Ja(4);break}g.Ba(C,5);a.state=3;a.C=f-1;return g.z(C,a.B&&f===1?a.B:a.ME(f),7);case 7:return h=C.B,a.B=void 0,a.state=4,l=new Ho(a.logger,"b"),g.z(C,cga(h),8);case 8:return a.state=5,a.onEvent(1),e.oO=3,a.logger instanceof Jo&&Zfa(a.logger,Mk(h,5)),e.JI=new Oo({challenge:h,zg:a.logger}),m=Xq(a,12E4).then(function(G){return function(){a.onEvent(G.oO);
return Promise.reject(new Po(15,"MDA:Timeout"))}}(e)),g.z(C,Promise.race([e.JI.yT,
m]),9);case 9:return a.onEvent(2),n=[],a.onEvent(4),e.oO=6,g.z(C,Promise.race([e.JI.snapshot({D3:n}),m]),10);case 10:return p=C.B,a.onEvent(5),q=g.v(n),r=q.next().value,e.T1=r,l.done(),a.state=6,g.z(C,gha(a,a.logger.dR("g",f,a.hA.TX(p)),new Po(10,"BWB:Timeout")),11);case 11:return e.EQ=C.B,a.state=7,t=a.logger.Jo(function(G){return function(){var K=G.EQ;var N=G.JI;var R=G.T1;if(Mk(K,4))N.dispose(),N=new dp(a.logger,Mk(K,4),Kk(K,2)*1E3);else if(Kk(K,3)){if(!R)throw new Po(4,"PMD:Undefined");var da=
R(Kg(Sj(K,1)));if(!(da instanceof Function))throw new Po(16,"APF:Failed");R=Kk(K,2)*1E3;K=new bp(a.logger,da,Kk(K,3),R);a.G=Math.floor((Date.now()+R)/1E3);g.M(K,N);N=K}else N.dispose(),N=new cp(a.logger,Kg(Sj(K,1)),Kk(K,2)*1E3);return N}}(e),"i"),w=u=void 0,(w=(u=a).PR)==null||w.call(u,Kg(Sj(e.EQ,1))),a.state=8,C.return(t);
case 5:A=g.Da(C);b=A instanceof Po?A:A instanceof Vq?new Po(20,"WTO:Disposed",A):A instanceof pn?new Po(11,"EBH:Error",A):new Po(12,"BSO:Unknown",A);a.reportError(b);a:{if(A instanceof pn)switch(A.code){case 2:case 13:case 14:case 4:var F=!0;break a;default:F=!1;break a}F=A instanceof Po?A.code!==20:!0}if(!F)throw b;return g.z(C,Xq(a,d.getValue()),12);case 12:g.Sm(d);case 3:e={oO:void 0,EQ:void 0,JI:void 0,T1:void 0};f++;C.Ja(2);break;case 4:throw b;}})};
Xq=function(a,b){b=eha(b);g.M(a,b);b.start();return b.Z};
gha=function(a,b,c){return Promise.race([b,Xq(a,12E4).then(function(){return Promise.reject(c)})])};
iha=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,hha(a),7);case 7:b=e.B;g.Ca(e,6);break;case 5:c=g.Da(e);if(a.j){a.logger.Gl(13);e.Ja(0);break}a.logger.Gl(14);b=new ep(a.logger,c instanceof Po?c:new Po(14,"SOM:Init",c instanceof Error?c:Error(String(c))));case 6:return d=void 0,(d=a.j)==null||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.Ja(0)}})};
jha=function(a){var b={};g.Zb(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?e!==null&&(c.j(e)||(b[d]=null)):b[d]=c});
uaa(a,function(c){return b[c.event]===null})};
Yq=function(){this.De=0;this.j=!1;this.B=-1;this.yx=!1;this.Ok=0};
Br=function(){this.B=null;this.j=!1};
Cr=function(a){Br.call(this);this.D=a};
Dr=function(){Br.call(this)};
Er=function(){Br.call(this)};
Fr=function(){this.j={};this.B=!0;this.C={}};
Gr=function(a,b,c){a.j[b]||(a.j[b]=new Cr(c));return a.j[b]};
kha=function(a){a.j.queryid||(a.j.queryid=new Er)};
Hr=function(a,b,c){(a=a.j[b])&&a.C(c)};
Ir=function(a,b){if(g.dd(a.C,b))return a.C[b];if(a=a.j[b])return a.getValue()};
Jr=function(a){var b={},c=g.Uc(a.j,function(d){return d.j});
g.Tc(c,function(d,e){d=a.C[e]!==void 0?String(a.C[e]):d.j&&d.B!==null?String(d.B):"";d.length>0&&(b[e]=d)},a);
return b};
lha=function(a){a=Jr(a);var b=[];g.Tc(a,function(c,d){d in Object.prototype||typeof c!="undefined"&&b.push([d,":",c].join(""))});
return b};
nha=function(a){Gr(a,"od",mha);Gr(a,"opac",Kr).j=!0;Gr(a,"sbeos",Kr).j=!0;Gr(a,"prf",Kr).j=!0;Gr(a,"mwt",Kr).j=!0;Gr(a,"iogeo",Kr)};
oha=function(){this.j=this.Mu=null};
Lr=function(){};
Nr=function(){if(!Mr())throw Error();};
Mr=function(){return!(!Or||!Or.performance)};
Pr=function(a){return a?a.passive&&pha()?a:a.capture||!1:!1};
Qr=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Pr(d)),!0):!1};
Rr=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
qha=function(){};
rha=function(){return(pc||rc)&&sc?sc.mobile:!Sr()&&(xc("iPod")||xc("iPhone")||xc("Android")||xc("IEMobile"))};
Sr=function(){return(pc||rc)&&sc?!sc.mobile&&(xc("iPad")||xc("Android")||xc("Silk")):xc("iPad")||xc("Android")&&!xc("Mobile")||xc("Silk")};
Tr=function(a){try{return!!a&&a.location.href!=null&&Lc(a,"foo")}catch(b){return!1}};
Ur=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
tha=function(){var a=[];Ur(sha,function(b){a.push(b)});
return a};
uha=function(a){var b,c;return(c=(b=/https?:\/\/[^\/]+/.exec(a))==null?void 0:b[0])!=null?c:""};
xha=function(){var a=vha("IFRAME"),b={};g.Zb(wha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
vha=function(a,b){b=b===void 0?document:b;return b.createElement(String(a).toLowerCase())};
yha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Tr(a)&&(b=a);return b};
Cha=function(a){a=a||Vr();for(var b=new zha(g.Ua.location.href,!1),c=null,d=a.length-1,e=d;e>=0;--e){var f=a[e];!c&&Aha.test(f.url)&&(c=f);if(f.url&&!f.LQ){b=f;break}}e=null;f=a.length&&a[d].url;b.depth!=0&&f&&(e=a[d]);return new Bha(b,e,c)};
Vr=function(){var a=g.Ua,b=[],c=null;do{var d=a;if(Tr(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new zha(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.Ua;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.LQ=!0);return b};
Bha=function(a,b,c){this.j=a;this.B=b;this.C=c};
zha=function(a,b){this.url=a;this.LQ=!!b;this.depth=null};
Wr=function(){this.C="&";this.B={};this.D=0;this.j=[]};
Xr=function(a,b){var c={};c[a]=b;return[c]};
Dha=function(a,b,c,d,e){var f=[];Ur(a,function(h,l){(h=Yr(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
Yr=function(a,b,c,d,e){if(a==null)return"";b=b||"&";c=c||",$";typeof c=="string"&&(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(Yr(a[h],b,c,d+1,e));return f.join(c[d])}}else if(typeof a=="object")return e=e||0,e<2?encodeURIComponent(Dha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Eha=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};
Zr=function(a,b){this.j=a;this.depth=b};
Gha=function(){function a(l,m){return l==null?m:l}
var b=Vr(),c=Math.max(b.length-1,0),d=Cha(b);b=d.j;var e=d.B,f=d.C,h=[];f&&h.push(new Zr([f.url,f.LQ?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Zr([e.url,2],0));b.url&&b!=f&&h.push(new Zr([b.url,0],a(b.depth,c)));d=g.$r(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=uha(b.url))&&d.push([new Zr([e,1],a(b.depth,c))]);d.push([]);return g.$r(d,function(l){return Fha(c,l)})};
Fha=function(a,b){g.as(b,function(e){return e.depth>=0});
var c=bs(b,function(e,f){return Math.max(e,f.depth)},-1),d=zaa(c+2);
d[0]=a;g.Zb(b,function(e){return d[e.depth+1]=e.j});
return d};
Hha=function(){var a=a===void 0?Gha():a;return a.map(function(b){return Yr(b)})};
Iha=function(a){var b=!1;b=b===void 0?!1:b;Or.google_image_requests||(Or.google_image_requests=[]);var c=vha("IMG",Or.document);b&&(c.attributionSrc="");c.src=a;Or.google_image_requests.push(c)};
cs=function(a){var b="nh";if(a.nh&&a.hasOwnProperty(b))return a.nh;var c=new a;a.nh=c;a.hasOwnProperty(b);return c};
ds=function(){this.B=new qha;this.j=Mr()?new Nr:new Lr};
Jha=function(){es();var a=Or.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&typeof Or.setInterval==="function"&&typeof Or.clearInterval==="function"&&typeof Or.setTimeout==="function"&&typeof Or.clearTimeout==="function")};
Kha=function(){es();return Hha()};
Lha=function(){};
es=function(){var a=cs(Lha);if(!a.j){if(!Or)throw Error("Context has not been set and window is undefined.");a.j=cs(ds)}return a.j};
fs=function(a){this.qa=Q(a)};
Mha=function(a){this.C=a;this.j=-1;this.B=this.D=0};
gs=function(a,b){return function(){var c=g.Ja.apply(0,arguments);if(a.j>-1)return b.apply(null,g.ra(c));try{return a.j=a.C.j.now(),b.apply(null,g.ra(c))}finally{a.D+=a.C.j.now()-a.j,a.j=-1,a.B+=1}}};
Nha=function(a,b){this.B=a;this.C=b;this.j=new Mha(a)};
Oha=function(){this.j={}};
Qha=function(){var a=hs().flags,b=Pha;a=a.j[b.key];if(b.valueType==="proto"){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};
Uha=function(){this.C=void 0;this.B=this.K=0;this.G=-1;this.Lc=new Fr;Gr(this.Lc,"mv",Rha).j=!0;Gr(this.Lc,"omid",Kr);Gr(this.Lc,"epoh",Kr).j=!0;Gr(this.Lc,"epph",Kr).j=!0;Gr(this.Lc,"umt",Kr).j=!0;Gr(this.Lc,"phel",Kr).j=!0;Gr(this.Lc,"phell",Kr).j=!0;Gr(this.Lc,"oseid",Sha).j=!0;var a=this.Lc;a.j.sloi||(a.j.sloi=new Dr);a.j.sloi.j=!0;Gr(this.Lc,"mm",is);Gr(this.Lc,"ovms",Tha).j=!0;Gr(this.Lc,"xdi",Kr).j=!0;Gr(this.Lc,"amp",Kr).j=!0;Gr(this.Lc,"prf",Kr).j=!0;Gr(this.Lc,"gtx",Kr).j=!0;Gr(this.Lc,
"mvp_lv",Kr).j=!0;Gr(this.Lc,"ssmol",Kr).j=!0;Gr(this.Lc,"fmd",Kr).j=!0;Gr(this.Lc,"gen204simple",Kr);this.j=new Nha(es(),this.Lc);this.D=!1;this.flags=new Oha};
hs=function(){return cs(Uha)};
Vha=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof Wr)var e=c;else e=new Wr,Ur(c,function(h,l){var m=e,n=m.D++;h=Xr(l,h);m.j.push(n);m.B[n]=h});
var f=e.Ge(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(es(),Iha(f))}catch(h){}};
Wha=function(a,b,c){c=c===void 0?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};
Xha=function(){var a=a===void 0?g.Ua:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.kb()};
Yha=function(){var a=a===void 0?g.Ua:a;return(a=a.performance)&&a.now?a.now():null};
Zha=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()};
ks=function(){var a=window;this.events=[];this.B=a||g.Ua;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=js()||(b!=null?b:Math.random()<1)};
$ha=function(a){a&&ls&&js()&&(ls.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),ls.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
aia=function(){var a=ms;this.j=ns;this.PX="jserror";this.IT=!0;this.cO=null;this.B=this.gR;this.rd=a===void 0?null:a};
bia=function(a,b,c){var d=os;return gs(hs().j.j,function(){try{if(d.rd&&d.rd.j){var e=d.rd.start(a.toString(),3);var f=b();d.rd.end(e)}else f=b()}catch(l){var h=d.IT;try{$ha(e),h=d.B(a,new ps(qs(l)),void 0,c)}catch(m){d.gR(217,m)}if(!h)throw l;}return f})()};
rs=function(a,b,c,d){return gs(hs().j.j,function(){var e=g.Ja.apply(0,arguments);return bia(a,function(){return b.apply(c,e)},d)})};
qs=function(a){var b=a.toString();a.name&&b.indexOf(a.name)==-1&&(b+=": "+a.name);a.message&&b.indexOf(a.message)==-1&&(b+=": "+a.message);if(a.stack)a:{a=a.stack;var c=b;try{a.indexOf(c)==-1&&(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");break a}catch(e){b=c;break a}b=void 0}return b};
ps=function(a){Wha.call(this,Error(a),{message:a})};
cia=function(){Or&&typeof Or.google_measure_js_timing!="undefined"&&(Or.google_measure_js_timing||ms.disable())};
dia=function(a){os.cO=function(b){g.Zb(a,function(c){c(b)})}};
eia=function(a,b){return bia(a,b)};
ts=function(a,b){return rs(a,b)};
us=function(a,b,c,d){os.gR(a,b,c,d)};
vs=function(){return Date.now()-fia};
gia=function(){var a=hs().C,b=ws>=0?vs()-ws:-1,c=xs?vs()-ys:-1,d=zs>=0?vs()-zs:-1;if(a==947190542)return 100;if(a==79463069)return 200;a=[2E3,4E3];var e=[250,500,1E3];us(637,Error(),.001);var f=b;c!=-1&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}h===void 0&&(h=e[a.length]);return d!=-1&&d>1500&&d<4E3?500:h};
As=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
Bs=function(a){return a.right-a.left};
Cs=function(a,b,c){b instanceof g.Ge?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,typeof c==="number"&&(a.top+=c,a.bottom+=c));return a};
hia=function(a,b,c){var d=new As(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.j=d;this.B=c};
Ds=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};
jia=function(a){var b=a!==a.top,c=a.top===yha(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),bba(iia,function(h){return typeof f[h]==="function"})||(e=1));
return{Ko:f,compatibility:e,yea:d}};
kia=function(){var a=window.document;return a&&typeof a.elementFromPoint==="function"};
lia=function(a,b,c){a&&b!==null&&b!=b.top&&(b=b.top);try{return(c===void 0?0:c)?(new g.Me(b.innerWidth,b.innerHeight)).round():Vba(b||window).round()}catch(d){return new g.Me(-12245933,-12245933)}};
Es=function(a,b,c){try{a&&(b=b.top);var d=lia(a,b,c),e=d.height,f=d.width;if(f===-12245933)return new As(f,f,f,f);var h=Xba(mf(b.document).j),l=h.x,m=h.y;return new As(m,l+f,m+e,l)}catch(n){return new As(-12245933,-12245933,-12245933,-12245933)}};
g.Fs=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
Gs=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.Is=function(a,b,c){if(typeof b==="string")(b=Hs(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Hs(c,d);f&&(c.style[f]=e)}};
Hs=function(a,b){var c=mia[b];if(!c){var d=Pba(b);c=d;a.style[d]===void 0&&(d=(g.Nc?"Webkit":Js?"Moz":g.Ks?"ms":null)+Rba(d),a.style[d]!==void 0&&(c=d));mia[b]=c}return c};
g.Ls=function(a,b){var c=a.style[Pba(b)];return typeof c!=="undefined"?c:a.style[Hs(a,b)]||""};
Ms=function(a,b){var c=gf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Ns=function(a,b){return Ms(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Ps=function(a,b,c){if(b instanceof g.Ge){var d=b.x;b=b.y}else d=b,b=c;a.style.left=g.Os(d,!1);a.style.top=g.Os(b,!1)};
Qs=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
nia=function(a){var b=gf(a),c=Ns(a,"position"),d=c=="fixed"||c=="absolute";for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(a.nodeType==11&&a.host&&(a=a.host),c=Ns(a,"position"),d=d&&c=="static"&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||c=="fixed"||c=="absolute"||c=="relative"))return a;return null};
g.Rs=function(a){var b=gf(a),c=new g.Ge(0,0);if(a==(b?gf(b):document).documentElement)return c;a=Qs(a);b=Xba(mf(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
pia=function(a,b){var c=new g.Ge(0,0),d=yf(gf(a));if(!Lc(d,"parent"))return c;do{var e=d==b?g.Rs(a):oia(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.Ss=function(a,b){a=qia(a);b=qia(b);return new g.Ge(a.x-b.x,a.y-b.y)};
oia=function(a){a=Qs(a);return new g.Ge(a.left,a.top)};
qia=function(a){if(a.nodeType==1)return oia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Ge(a.clientX,a.clientY)};
g.Ts=function(a,b,c){if(b instanceof g.Me)c=b.height,b=b.width;else if(c==void 0)throw Error("missing height argument");a.style.width=g.Os(b,!0);a.style.height=g.Os(c,!0)};
g.Os=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a};
g.Us=function(a){var b=ria;if(Ns(a,"display")!="none")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};
ria=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Nc&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=Qs(a),new g.Me(a.right-a.left,a.bottom-a.top)):new g.Me(b,c)};
g.Vs=function(a,b){a.style.display=b?"":"none"};
Ws=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
sia=function(a){return new As(a.top,a.right,a.bottom,a.left)};
tia=function(a){var b=a.top||0,c=a.left||0;return new As(b,c+(a.width||0),b+(a.height||0),c)};
Xs=function(a){return a!=null&&a>=0&&a<=1};
uia=function(){var a=g.oc();return a?Ys("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 ic(a,b)})||ic(a,"OMI/")&&!ic(a,"XiaoMi/")?!0:ic(a,"Presto")&&ic(a,"Linux")&&!ic(a,"X11")&&!ic(a,"Android")&&!ic(a,"Mobi"):!1};
via=function(){this.C=!Tr(Or.top);this.isMobileDevice=Sr()||rha();var a=Vr();this.domain=a.length>0&&a[a.length-1]!=null&&a[a.length-1].url!=null?g.yn(a[a.length-1].url)||"":"";this.j=new As(0,0,0,0);this.D=new g.Me(0,0);this.G=new g.Me(0,0);this.N=new As(0,0,0,0);this.frameOffset=new g.Ge(0,0);this.K=0;this.Z=!1;this.B=!(!Or||!jia(Or).Ko);this.update(Or)};
wia=function(a,b){b&&b.screen&&(a.D=new g.Me(b.screen.width,b.screen.height))};
xia=function(a,b){a:{var c=a.j?new g.Me(Bs(a.j),a.j.getHeight()):new g.Me(0,0);b=b===void 0?Or:b;b!==null&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if(f.compatMode=="CSS1Compat"&&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.Me(e,d);break a}catch(t){r=new g.Me(-12245933,-12245933);break a}r=void 0}a.G=r};
at=function(){var a=Zs();if(a.K>0||a.Z)return!0;a=es().B.isVisible();var b=Rr($s)===0;return a||b};
Zs=function(){return cs(via)};
it=function(a){this.C=a;this.B=0;this.j=null};
jt=function(a,b,c){this.C=a;this.Sa=c===void 0?"na":c;this.G=[];this.isInitialized=!1;this.D=new hia(-1,!0,this);this.j=this;this.Z=b;this.ra=this.Y=!1;this.Ga="uk";this.Ha=!1;this.K=!0};
kt=function(a,b){g.Eb(a.G,b)||(a.G.push(b),b.AA(a.j),b.nu(a.D),b.Gq()&&(a.Y=!0))};
yia=function(a){a=a.j;a.AV();a.zV();var b=Zs();b.N=Es(!1,a.C,b.isMobileDevice);xia(Zs(),a.C);a.D.j=a.CY()};
zia=function(a){a.Y=a.G.length?Ys(a.G,function(b){return b.Gq()}):!1};
Aia=function(a){var b=g.Kb(a.G);g.Zb(b,function(c){c.nu(a.D)})};
lt=function(a){var b=g.Kb(a.G);g.Zb(b,function(c){c.AA(a.j)});
a.j!=a||Aia(a)};
mt=function(a,b,c,d){this.element=a;this.j=new As(0,0,0,0);this.D=new As(0,0,0,0);this.B=b;this.Lc=c;this.va=d;this.ra=!1;this.timestamp=-1;this.N=new Ds(b.D,this.element,this.j,new As(0,0,0,0),0,0,vs(),0)};
nt=function(a){this.G=!1;this.j=a;this.D=function(){}};
Bia=function(a,b,c){this.C=c===void 0?0:c;this.B=a;this.j=b==null?"":b};
Cia=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}};
Dia=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};
ot=function(){this.C=0;this.j=[];this.B=!1};
Eia=function(a,b){(0,g.Zb)(b.j,function(c){a.add(c.B,c.j,Cia(c))})};
pt=function(a,b){var c=c===void 0?0:c;var d=d===void 0?!0:d;Ur(b,function(e,f){d&&e===void 0||a.add(f,e,c)});
return a};
qt=function(a){var b=Fia;a.B&&(g.Sb(a.j,function(c,d){return Dia(d,c)?1:Dia(c,d)?-1:0}),a.B=!1);
return bs(a.j,function(c,d){d=b(d);return""+c+(c!=""&&d!=""?"&":"")+d},"")};
Fia=function(a){var b=a.B;a=a.j;return a===""?b:typeof a==="boolean"?a?b:"":Array.isArray(a)?a.length===0?b:b+"="+a.join():b+"="+(g.Eb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Gia=function(a){var b=b===void 0?!0:b;this.j=new ot;a!==void 0&&Eia(this.j,a);b&&this.j.add("v","unreleased",-16)};
Hia=function(a){var b=[],c=[];g.Tc(a,function(d,e){if(!(e in Object.prototype)&&typeof d!="undefined")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)};
Iia=function(a){a=a.toString();es();Iha(a)};
Jia=function(){this.j=0};
Kia=function(a,b,c){(0,g.Zb)(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 ot;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.G);d=cs(Jia);h.add("i",d.j++);h.add("adk",e);pt(h,f);e=new Gia(h);Iia(e)}})};
rt=function(){this.B=this.C=this.D=this.j=0};
tt=function(a){this.B=a=a===void 0?Lia:a;this.j=g.$r(this.B,function(){return new rt})};
ut=function(a,b){return Mia(a,function(c){return c.j},b===void 0?!0:b)};
wt=function(a,b){return vt(a,b,function(c){return c.j})};
Nia=function(a,b){return Mia(a,function(c){return c.C},b===void 0?!0:b)};
xt=function(a,b){return vt(a,b,function(c){return c.C})};
zt=function(a,b){return vt(a,b,function(c){return c.B})};
Oia=function(a){g.Zb(a.j,function(b){b.B=0})};
Mia=function(a,b,c){a=g.$r(a.j,function(d){return b(d)});
return c?a:Pia(a)};
vt=function(a,b,c){var d=g.Db(a.B,function(e){return b<=e});
return d==-1?0:c(a.j[d])};
Pia=function(a){return g.$r(a,function(b,c,d){return c>0?d[c]-d[c-1]:d[c]})};
At=function(){this.B=new tt;this.Sa=new rt;this.va=this.N=-1;this.eb=1E3;this.Ya=new tt([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Ga=this.Da=-1};
Bt=function(a,b){return Nia(a.B,b===void 0?!0:b)};
Ct=function(a,b,c,d){var e=e===void 0?!1:e;c=rs(d,c);Qr(a,b,c,{capture:e})};
Et=function(a,b){b=Dt(b);return b===0?0:Dt(a)/b};
Dt=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Qia=function(a,b){if(!a||!b)return!1;for(var c=0;a!==null&&c++<100;){if(a===b)return!0;try{if(a=g.Nf(a)||a){var d=gf(a),e=d&&yf(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
Ria=function(a,b,c){if(!a||!b)return!1;b=Cs(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Tr(window.top)&&window.top&&window.top.document&&(window=window.top);if(!kia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=gf(c))&&b.defaultView&&b.defaultView.frameElement)&&Qia(b,a);var d=a===c;a=!d&&a&&Qf(a,function(e){return e===c});
return!(b||d||a)};
Sia=function(a,b,c,d){return Zs().C?!1:Bs(a)<=0||a.getHeight()<=0?!0:c&&d?eia(208,function(){return Ria(a,b,c)}):!1};
Ft=function(a,b,c){g.I.call(this);this.position=Tia.clone();this.PK=this.SJ();this.bR=-2;this.timeCreated=Date.now();this.M2=-1;this.kq=b;this.FK=null;this.DE=!1;this.gL=null;this.opacity=-1;this.requestSource=c;this.Yea=!1;this.hR=function(){};
this.g3=function(){};
this.hk=new oha;this.hk.Mu=a;this.hk.j=a;this.wu=!1;this.Mw={rR:null,qR:null};this.e2=!0;this.HH=null;this.MA=this.u$=!1;hs().K++;this.ri=this.PP();this.H2=-1;this.cg=null;this.hasCompleted=this.r$=!1;this.Lc=new Fr;nha(this.Lc);Uia(this);this.requestSource==1?Hr(this.Lc,"od",1):Hr(this.Lc,"od",0)};
Uia=function(a){a=a.hk.Mu;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Via&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Qba()):!!a.getAttribute("data-"+Qba());b&&(Zs().B=!0)};
Gt=function(a,b){b!=a.MA&&(a.MA=b,a=Zs(),b?a.K++:a.K>0&&a.K--)};
Wia=function(a,b){if(a.cg){if(b.getName()===a.cg.getName())return;a.cg.dispose();a.cg=null}b=b.create(a.hk.j,a.Lc,a.Gq());if(b=b!=null&&b.qN()?b:null)a.cg=b};
Xia=function(a,b,c){if(!a.FK||a.kq==-1||b.B===-1||a.FK.B===-1)return 0;a=b.B-a.FK.B;return a>c?0:a};
Yia=function(a,b,c){if(a.cg){a.cg.Et();var d=a.cg.N,e=d.D,f=e.j;if(d.K!=null){var h=d.C;a.gL=new g.Ge(h.left-f.left,h.top-f.top)}f=a.qM()?Math.max(d.j,d.G):d.j;h={};e.volume!==null&&(h.volume=e.volume);e=a.rY(d);a.FK=d;a.Ua(f,b,c,!1,h,e,d.Z)}};
Zia=function(a){if(a.DE&&a.HH){var b=Ir(a.Lc,"od")==1,c=Zs().j,d=a.HH,e=a.cg?a.cg.getName():"ns",f=a.gL,h=new g.Me(Bs(c),c.getHeight());c=a.qM();a={Gea:e,gL:f,xfa:h,qM:c,De:a.ri.De,sfa:b};if(b=d.B){b.Et();e=b.N;f=e.D.j;var l=h=null;e.K!=null&&f&&(h=e.C,h=new g.Ge(h.left-f.left,h.top-f.top),l=new g.Me(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.G):e.j;c={Gea:b.getName(),gL:h,xfa:l,qM:c,sfa:!1,De:e}}else c=null;c&&Kia(d,a,c)}};
$ia=function(a,b,c){b&&(a.hR=b);c&&(a.g3=c)};
g.Ht=function(){};
g.It=function(a){return{value:a,done:!1}};
aja=function(){this.D=this.j=this.C=this.B=this.G=0};
bja=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};
cja=function(){Yq.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
Jt=function(a){return Xs(a.volume)&&a.volume>0};
Kt=function(a,b,c,d){c=c===void 0?!0:c;d=d===void 0?function(){return!0}:d;
return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return dja(f,b,c)}};
Lt=function(a,b){return function(c){return b(c)?c[a]:void 0}};
eja=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c]===b.e||a[c]===void 0&&!b.hasOwnProperty("e"))return!0;return!1}};
dja=function(a,b,c){return c===void 0||c?g.Mt(a,function(d,e){return g.Eb(b,e)}):g.$r(b,function(d,e,f){return a.slice(e>0?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})};
fja=function(){this.B=this.j=""};
gja=function(){};
Nt=function(a,b){var c={};if(a!==void 0)if(b!=null)for(var d in b){var e=b[d];d in Object.prototype||e!=null&&(c[d]=typeof e==="function"?e(a):a[e])}else g.md(c,a);return qt(pt(new ot,c))};
hja=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)this.B[b][1]>0&&(this.j[b]=0);this.C=0};
Ot=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];d>0&&a.j[b]==0&&(a.j[b]=1)};
ija=function(a){var b=g.bd(a.B),c=0,d;for(d in a.j)g.Eb(b,d)&&a.j[d]==1&&(c+=a.B[d][1],a.j[d]=2);return c};
jja=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(d==1||d==2)b+=a.B[c][1]}return b};
Pt=function(){this.j=this.B=0};
Qt=function(){At.call(this);this.C=new rt;this.Oa=this.Y=this.Ha=0;this.Z=-1;this.ib=new rt;this.G=new rt;this.j=new tt;this.K=this.D=-1;this.ra=new rt;this.eb=2E3;this.La=new Pt;this.Xa=new Pt;this.Wa=new Pt};
Rt=function(a,b,c){var d=a.Oa;xs||c||a.Z==-1||(d+=b-a.Z);return d};
kja=function(){this.C=!1};
St=function(a,b){this.C=!1;this.D=a;this.Y=b;this.G=0};
Tt=function(a,b){St.call(this,a,b);this.N=[]};
lja=function(){};
Ut=function(){};
Vt=function(a,b,c,d){mt.call(this,a,b,c,d)};
Wt=function(a,b,c){mt.call(this,null,a,b,c);this.K=a.isActive();this.G=0};
Xt=function(a){return[a.top,a.left,a.bottom,a.right]};
Yt=function(a,b,c,d,e,f){f=f===void 0?new Ut:f;Ft.call(this,b,c,d);this.wS=e;this.bP=0;this.zi={};this.Pg=new hja;this.B3={};this.gj="";this.eb=null;this.Ab=!1;this.j=[];this.xs=f.B();this.K=f.C();this.D=null;this.C=-1;this.Sa=this.Y=void 0;this.va=this.ra=0;this.Ga=-1;this.ib=this.Ya=!1;this.Ha=this.Z=this.B=this.LC=this.Kb=0;new tt;this.La=this.Wa=0;this.Xa=-1;this.Ck=0;this.N=g.Jd;this.Da=[this.SJ()];this.Qb=2;this.Xy={};this.Xy.pause="p";this.Xy.resume="r";this.Xy.skip="s";this.Xy.mute="m";this.Xy.unmute=
"um";this.Xy.exitfullscreen="ef";this.G=null;this.rb=this.Cb=!1;this.Lb=Math.floor(Date.now()/1E3-1704067200);this.Oa=0};
Zt=function(a){a.hasCompleted=!0;a.Ck!=0&&(a.Ck=3)};
$t=function(a){return a===void 0?a:Number(a)?Ws(a,3):0};
au=function(a,b){return a.Da[b!=null&&b<a.Da.length?b:a.Da.length-1]};
mja=function(a){var b=!!Ir(hs().Lc,"umt");return a.Y||!b&&!a.Sa?0:1};
nja=function(a,b){a.Eo()?b=0:a.kq==-1?b=0:(b-=a.kq,b=b>Math.max(1E4,a.C/3)?0:b);var c=a.N(a)||{};c=c.currentTime!==void 0?c.currentTime:a.ra;var d=c-a.ra,e=0;d>=0?(a.va+=b,a.La+=Math.max(b-d,0),e=Math.min(d,a.va)):a.Wa+=Math.abs(d);d!=0&&(a.va=0);a.Xa==-1&&d>0&&(a.Xa=zs>=0?vs()-zs:-1);a.ra=c;return e};
oja=function(a,b){Ys(a.K,function(c){return c.D==b.D})||a.K.push(b)};
pja=function(a){var b=wt(a.Aj().j,1);return bu(a,b)};
bu=function(a,b,c){return b>=15E3?!0:a.Ya?(c===void 0?0:c)?!0:a.C>0?b>=a.C/2:a.Ga>0?b>=a.Ga:!1:!1};
qja=function(a){var b=Ws(a.ri.De,2),c=a.Pg.C,d=a.ri,e=au(a),f=$t(e.D),h=$t(e.K),l=$t(d.volume),m=Ws(e.N,2),n=Ws(e.va,2),p=Ws(d.De,2),q=Ws(e.Da,2),r=Ws(e.Ga,2);d=Ws(d.Ok,2);a=a.au().clone();a.round();e=Bt(e,!1);return{wfa:b,xF:c,TK:f,JK:h,eE:l,UK:m,LK:n,De:p,WK:q,MK:r,Ok:d,position:a,YK:e}};
sja=function(a,b){rja(a.j,b,function(){return{wfa:0,xF:void 0,TK:-1,JK:-1,eE:-1,UK:-1,LK:-1,De:-1,WK:-1,MK:-1,Ok:-1,position:void 0,YK:[]}});
a.j[b]=qja(a)};
rja=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
du=function(a,b,c){var d=a.B3[b];if(d!=null)return d;d=tja(a,b);var e=fd(cu,function(f){return f==b});
a=uja(a,d,d,c,vja[cu[e]]);b=="fully_viewable_audible_half_duration_impression"&&(a.std="csm");return a};
eu=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
uja=function(a,b,c,d,e){if(a.wu)return{"if":0,vs:0};var f=a.au().clone();f.round();var h=Zs(),l=hs(),m=a.Aj(),n=a.cg?a.cg.getName():"ns",p={};p["if"]=h.C?1:void 0;p.sdk=a.D?a.D:void 0;p.t=a.timeCreated;p.p=[f.top,f.left,f.bottom,f.right];p.tos=ut(m.B,!1);p.mtos=Bt(m);p.mcvt=m.Sa.C;p.ps=void 0;f=Rt(m,vs(),a.Eo());p.vht=f;p.mut=m.ib.C;p.a=$t(a.ri.volume);p.mv=$t(m.K);p.fs=a.MA?1:0;p.ft=m.ra.j;p.at=m.G.j;p.as=m.D>0?1:0;p.atos=ut(m.j);p.ssb=ut(m.Ya,!1);p.amtos=Nia(m.j,!1);p.uac=a.Kb;p.vpt=m.C.j;n=="nio"&&
(p.nio=1,p.avms="nio");p.gmm="4";p.gdr=bu(a,m.C.j,!0)?1:0;p.efpf=a.Qb;if(n=="gsv"||n=="nis")n=a.cg,n.G>0&&(p.nnut=n.G);p.tcm=mja(a);p.nmt=a.Wa;p.bt=a.La;p.pst=a.Xa;p.vpaid=a.Y;p.dur=a.C;p.vmtime=a.ra;p.is=a.Pg.C;a.j.length>=1&&(p.i0=a.j[0].xF,p.a0=[a.j[0].eE],p.c0=[a.j[0].De],p.ss0=[a.j[0].Ok],n=a.j[0].position,p.p0=n?Xt(n):void 0);a.j.length>=2&&(p.i1=a.j[1].xF,p.a1=eu(a.j[1].TK,a.j[1].eE,a.j[1].JK),p.c1=eu(a.j[1].UK,a.j[1].De,a.j[1].LK),p.ss1=eu(a.j[1].WK,a.j[1].Ok,a.j[1].MK),n=a.j[1].position,
p.p1=n?Xt(n):void 0,p.mtos1=a.j[1].YK);a.j.length>=3&&(p.i2=a.j[2].xF,p.a2=eu(a.j[2].TK,a.j[2].eE,a.j[2].JK),p.c2=eu(a.j[2].UK,a.j[2].De,a.j[2].LK),p.ss2=eu(a.j[2].WK,a.j[2].Ok,a.j[2].MK),n=a.j[2].position,p.p2=n?Xt(n):void 0,p.mtos2=a.j[2].YK);a.j.length>=4&&(p.i3=a.j[3].xF,p.a3=eu(a.j[3].TK,a.j[3].eE,a.j[3].JK),p.c3=eu(a.j[3].UK,a.j[3].De,a.j[3].LK),p.ss3=eu(a.j[3].WK,a.j[3].Ok,a.j[3].MK),n=a.j[3].position,p.p3=n?Xt(n):void 0,p.mtos3=a.j[3].YK);p.cs=jja(a.Pg);b&&(p.ic=ija(a.Pg),p.dvpt=m.C.B,p.dvs=
zt(m.B,.5),p.dfvs=zt(m.B,1),p.davs=zt(m.j,.5),p.dafvs=zt(m.j,1),c&&(m.C.B=0,Oia(m.B),Oia(m.j)),a.us()&&(p.dtos=m.Ha,p.dav=m.Y,p.dtoss=a.bP+1,c&&(m.Ha=0,m.Y=0,a.bP++)),p.dat=m.G.B,p.dft=m.ra.B,c&&(m.G.B=0,m.ra.B=0));p.ps=[h.G.width,h.G.height];p.bs=[Bs(h.j),h.j.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.LC&&(p.vds=a.LC);if(a.K.length>0||a.xs)b=g.Kb(a.K),a.xs&&b.push(a.xs),p.pings=g.$r(b,function(q){return q.toString()});
b=g.$r(g.Mt(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.Ha&&(p.vmiec=a.Ha);p.avms=a.cg?a.cg.getName():"ns";a.cg&&g.md(p,a.cg.Wt());d?(p.c=Ws(a.ri.De,2),p.ss=Ws(a.ri.Ok,2)):p.tth=vs()-wja;p.mc=Ws(m.va,2);p.nc=Ws(m.N,2);p.mv=$t(m.K);p.nv=$t(m.D);p.lte=Ws(a.bR,2);d=au(a,e);Bt(m);p.qmtos=Bt(d);p.qnc=Ws(d.N,2);p.qmv=$t(d.K);p.qnv=$t(d.D);p.qas=d.D>0?1:0;p.qi=a.gj;p.avms||(p.avms="geo");p.psm=m.La.j;p.psv=m.La.getValue();p.psfv=m.Xa.getValue();p.psa=m.Wa.getValue();l=lha(l.Lc);l.length&&(p.veid=l);a.G&&g.md(p,
bja(a.G));p.avas=a.GJ();p.vs=a.FY();p.co=xja(a);return p};
tja=function(a,b){if(g.Eb(yja,b))return!0;var c=a.zi[b];return c!==void 0?(a.zi[b]=!0,!c):!1};
xja=function(a){var b=a.Oa.toString(10).padStart(2,"0");b=""+a.Lb+b;a.Oa<99&&a.Oa++;return b};
Aja=function(){this.j={};var a=yf();fu(this,a,document);var b=zja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)fu(this,c,c.document);fu(this,a.top,a.top.document)}}catch(d){}};
zja=function(){var a=document.documentElement;try{if(!Tr(yf().top))return"2";var b=[],c=yf(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&b.length!=0?"1":"0"}catch(d){return"2"}};
fu=function(a,b,c){Ct(c,"mousedown",function(){return Bja(a)},301);
Ct(b,"scroll",function(){return Cja(a)},302);
Ct(c,"touchmove",function(){return Dja(a)},303);
Ct(c,"mousemove",function(){return Eja(a)},304);
Ct(c,"keydown",function(){return Fja(a)},305)};
Bja=function(a){g.Tc(a.j,function(b){b.C>1E5||++b.C})};
Cja=function(a){g.Tc(a.j,function(b){b.j>1E5||++b.j})};
Dja=function(a){g.Tc(a.j,function(b){b.j>1E5||++b.j})};
Fja=function(a){g.Tc(a.j,function(b){b.B>1E5||++b.B})};
Eja=function(a){g.Tc(a.j,function(b){b.D>1E5||++b.D})};
Gja=function(){this.j=[];this.B=[]};
gu=function(a,b){return g.Cb(a.j,function(c){return c.gj==b})};
Hja=function(a,b){return b?g.Cb(a.j,function(c){return c.hk.Mu==b}):null};
Ija=function(a,b){return g.Cb(a.B,function(c){return c.Vp()==2&&c.gj==b})};
iu=function(){var a=hu;return a.j.length==0?a.B:a.B.length==0?a.j:g.Jb(a.B,a.j)};
Jja=function(a,b){a=b.Vp()==1?a.j:a.B;var c=Bb(a,function(d){return d==b});
return c!=-1?(a.splice(c,1),b.cg&&b.cg.rI(),b.dispose(),!0):!1};
Kja=function(a){var b=hu;if(Jja(b,a)){switch(a.Vp()){case 0:var c=function(){return null};
case 2:c=function(){return Ija(b,a.gj)};
break;case 1:c=function(){return gu(b,a.gj)}}for(var d=c();d;d=c())Jja(b,d)}};
Lja=function(a){var b=hu;a=g.Mt(a,function(c){return!Hja(b,c.hk.Mu)});
b.j.push.apply(b.j,g.ra(a))};
Mja=function(a){var b=[];g.Zb(a,function(c){Ys(hu.j,function(d){return d.hk.Mu===c.hk.Mu&&d.gj===c.gj})||(hu.j.push(c),b.push(c))})};
ju=function(){this.j=this.B=null};
Nja=function(a,b){function c(d,e){b(d,e)}
if(a.B==null)return!1;a.j=g.Cb(a.B,function(d){return d!=null&&d.BV()});
a.j&&(a.j.init(c)?yia(a.j.j):b(a.j.j.nA(),a.j));return a.j!=null};
ku=function(a){a=Oja(a);nt.call(this,a.length?a[a.length-1]:new jt(Or,0));this.C=a;this.B=null};
Oja=function(a){if(!a.length)return[];a=(0,g.Mt)(a,function(c){return c!=null&&c.xD()});
for(var b=1;b<a.length;b++)kt(a[b-1],a[b]);return a};
lu=function(a,b,c,d){mt.call(this,a,b,c,d);this.Y=this.Z=this.G=this.K=this.C=null};
mu=function(a){return a.C&&a.C.takeRecords?a.C.takeRecords():[]};
Qja=function(a){if(!a.element)return!1;var b=a.element,c=a.B.j.C,d=hs().j.j;a.C=new c.IntersectionObserver(gs(d,function(e){return nu(a,e)}),Pja);
d=gs(d,function(){a.C.unobserve(b);a.C.observe(b);nu(a,mu(a))});
c.ResizeObserver?(a.K=new c.ResizeObserver(d),a.K.observe(b)):c.MutationObserver&&(a.G=new g.Ua.MutationObserver(d),a.G.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.C.observe(b);nu(a,mu(a));return!0};
nu=function(a,b){try{if(b.length){a.Z||(a.Z=vs());var c=Rja(b),d=pia(a.element,a.B.j.C),e=d.x,f=d.y;a.j=new As(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=sia(c.intersectionRect);a.D=Cs(h,a.j.left-h.left,a.j.top-h.top)}}catch(l){a.rI(),us(299,l)}};
Rja=function(a){return bs(a,function(b,c){return b.time>c.time?b:c},a[0])};
ou=function(a){a=a===void 0?Or:a;nt.call(this,new jt(a,2))};
pu=function(){var a=Sja();jt.call(this,Or.top,a,"geo")};
Sja=function(){hs();var a=Zs();return a.C||a.B?0:2};
Tja=function(){};
qu=function(){this.done=!1;this.j={m7:0,HW:0,bsb:0,IX:0,wQ:-1,Y7:0,X7:0,Z7:0,Eea:0};this.G=null;this.K=!1;this.C=null;this.N=0;this.B=new it(this)};
tu=function(){var a=ru;a.K||(a.K=!0,Uja(a,function(){return a.D.apply(a,g.ra(g.Ja.apply(0,arguments)))}),a.D())};
Vja=function(){cs(Tja);var a=cs(ju);a.j!=null&&a.j.j?yia(a.j.j):Zs().update(Or)};
uu=function(a,b,c){if(!a.done&&(a.B.cancel(),b.length!=0)){a.C=null;try{Vja();var d=vs();hs().G=d;if(cs(ju).j!=null)for(var e=0;e<b.length;e++)Yia(b[e],d,c);for(d=0;d<b.length;d++)Zia(b[d]);++a.j.IX}finally{c?g.Zb(b,function(f){f.ri.De=0}):a.B.schedule()}}};
Uja=function(a,b){if(!a.G){b=rs(142,b);es();var c;$s.visibilityState?c="visibilitychange":$s.mozVisibilityState?c="mozvisibilitychange":$s.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Qr($s,c,b,{capture:!1})&&(a.G=b)}};
Wja=function(){var a=cs(ju);if(a.j!=null){var b=a.j;g.Zb(iu(),function(c){return Wia(c,b)})}};
Xja=function(a,b){a=a.N;xs&&(a+=b-ys);return a};
Yja=function(a){a=a===void 0?function(){return{}}:a;
os.PX="av-js";ns.j=.01;dia([function(b){var c=hs(),d={};d=(d.bin=c.B,d.type="error",d);c=Jr(c.Lc);if(!ru.C){var e=ru,f=Or.document,h=ws>=0?vs()-ws:-1,l=vs();e.j.wQ==-1&&(h=l);var m=Zs(),n=hs(),p=Jr(n.Lc),q=iu();try{if(q.length>0){var r=m.j;r&&(p.bs=[Bs(r),r.getHeight()]);var t=m.G;t&&(p.ps=[t.width,t.height]);Or.screen&&(p.scs=[Or.screen.width,Or.screen.height])}else p.url=encodeURIComponent(Or.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512)));
p.tt=h;p.pt=ws;p.bin=n.B;Or.google_osd_load_pub_page_exp!==void 0&&(p.olpp=Or.google_osd_load_pub_page_exp);p.deb=[1,e.j.m7,e.j.HW,e.j.IX,e.j.wQ,0,e.B.B,e.j.Y7,e.j.X7,e.j.Z7,e.j.Eea,-1].join(";");p.tvt=Xja(e,l);m.B&&(p.inapp=1);if(Or!==null&&Or!=Or.top){q.length>0&&(p.iframe_loc=encodeURIComponent(Or.location.href.substring(0,512)));var u=m.N;p.is=[Bs(u),u.getHeight()]}}catch(w){p.error=1}ru.C=p}r=g.jd(ru.C);t=hs().j;Ir(t.C,"prf")==1?(u=new fs,e=t.j,f=0,e.j>-1&&(f=e.C.j.now()-e.j),u=Tj(u,1,ri(e.D+
f),0),e=t.j,u=Tj(u,5,vi(e.j>-1?e.B+1:e.B),0),u=Tj(u,2,Ai(t.B.j.C()),"0"),u=Tj(u,3,Ai(t.B.j.B()),"0"),t=Tj(u,4,Ai(t.B.j.j()),"0"),u={},t=(u.pf=g.Bg(t.j()),u)):t={};g.md(r,t);g.md(b,d,c,r,a())}])};
$ja=function(){var a=Zja||Or;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("&")};
vu=function(){var a="youtube.player.web_20240707_00_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20240707_00_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20240707_00_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20240707_00_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(((b=a)==null?void 0:b.length)==2)return a[1];a="youtube.player.web_20240707_00_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return((c=a)==null?void 0:c.length)==3?"20"+a[1]+a[2]:null};
aka=function(){return"av.default_js".includes("ima_html5_sdk")?{Kp:"ima",Op:null}:"av.default_js".includes("ima_native_sdk")?{Kp:"nima",Op:null}:"av.default_js".includes("admob-native-video-javascript")?{Kp:"an",Op:null}:"youtube.player.web_20240707_00_RC00".includes("cast_js_sdk")?{Kp:"cast",Op:vu()}:"youtube.player.web_20240707_00_RC00".includes("youtube.player.web")?{Kp:"yw",Op:vu()}:"youtube.player.web_20240707_00_RC00".includes("outstream_web_client")?{Kp:"out",Op:vu()}:"youtube.player.web_20240707_00_RC00".includes("drx_rewarded_web")?
{Kp:"r",Op:vu()}:"youtube.player.web_20240707_00_RC00".includes("gam_native_web_video")?{Kp:"n",Op:vu()}:"youtube.player.web_20240707_00_RC00".includes("admob_interstitial_video")?{Kp:"int",Op:vu()}:{Kp:"j",Op:null}};
yu=function(a,b){var c={sv:"962"};wu!==null&&(c.v=wu);c.cb=bka;c.nas=hu.j.length;c.msg=a;b!==void 0&&(a=cka(b))&&(c.e=xu[a]);return c};
zu=function(a){return ec(a,"custom_metric_viewable")};
cka=function(a){var b=zu(a)?"custom_metric_viewable":a.toLowerCase();return fd(cu,function(c){return c==b})};
dka=function(){this.j=void 0;this.B=!1;this.C=0;this.D=-1;this.G="tos"};
gka=function(a){try{var b=a.split(",");return b.length>g.bd(eka).length?null:bs(b,function(c,d){d=d.toLowerCase().split("=");if(d.length!=2||fka[d[0]]===void 0||!fka[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
hka=function(a,b){if(a.j==void 0)return 0;switch(a.G){case "mtos":return a.B?xt(b.j,a.j):xt(b.B,a.j);case "tos":return a.B?wt(b.j,a.j):wt(b.B,a.j)}return 0};
Au=function(a,b,c,d){St.call(this,b,d);this.N=a;this.Z=c};
Bu=function(){};
Cu=function(a){St.call(this,"fully_viewable_audible_half_duration_impression",a)};
Du=function(a){this.j=a};
Eu=function(a,b){St.call(this,a,b)};
Fu=function(a){Tt.call(this,"measurable_impression",a)};
Gu=function(){Du.apply(this,arguments)};
Hu=function(a,b,c){Wt.call(this,a,b,c)};
Iu=function(a){a=a===void 0?Or:a;nt.call(this,new jt(a,2))};
Ju=function(a,b,c){Wt.call(this,a,b,c)};
Ku=function(a){a=a===void 0?Or:a;nt.call(this,new jt(a,2))};
Lu=function(){jt.call(this,Or,2,"mraid");this.La=0;this.va=this.Da=!1;this.N=null;this.B=jia(this.C);this.D.j=new As(0,0,0,0);this.Oa=!1};
Mu=function(a,b,c){a.tv("addEventListener",b,c)};
lka=function(a){hs().D=!!a.tv("isViewable");Mu(a,"viewableChange",ika);a.tv("getState")==="loading"?Mu(a,"ready",jka):kka(a)};
kka=function(a){typeof a.B.Ko.AFMA_LIDAR==="string"?(a.Da=!0,mka(a)):(a.B.compatibility=3,a.N="nc",a.yj("w"))};
mka=function(a){a.va=!1;var b=Ir(hs().Lc,"rmmt")==1,c=!!a.tv("isViewable");(b?!c:1)&&es().setTimeout(ts(524,function(){a.va||(nka(a),us(540,Error()),a.N="mt",a.yj("w"))}),500);
oka(a);Mu(a,a.B.Ko.AFMA_LIDAR,pka)};
oka=function(a){var b=Ir(hs().Lc,"sneio")==1,c=a.B.Ko.AFMA_LIDAR_EXP_1!==void 0,d=a.B.Ko.AFMA_LIDAR_EXP_2!==void 0;(b=b&&d)&&(a.B.Ko.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Ko.AFMA_LIDAR_EXP_1=!b)};
nka=function(a){a.tv("removeEventListener",a.B.Ko.AFMA_LIDAR,pka);a.Da=!1};
qka=function(a,b){if(a.tv("getState")==="loading")return new g.Me(-1,-1);b=a.tv(b);if(!b)return new g.Me(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Me(-1,-1):new g.Me(a,b)};
jka=function(){try{var a=cs(Lu);a.tv("removeEventListener","ready",jka);kka(a)}catch(b){us(541,b)}};
pka=function(a,b){try{var c=cs(Lu);c.va=!0;var d=a?new As(a.y,a.x+a.width,a.y+a.height,a.x):new As(0,0,0,0);var e=vs(),f=at();var h=new hia(e,f,c);h.j=d;h.volume=b;c.nu(h)}catch(l){us(542,l)}};
ika=function(a){var b=hs(),c=cs(Lu);a&&!b.D&&(b.D=!0,c.Oa=!0,c.N&&c.yj("w",!0))};
Nu=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.K=(a.start=this.b$,a.firstquartile=this.W9,a.midpoint=this.Y9,a.thirdquartile=this.c$,a.complete=this.T9,a.error=this.U9,a.pause=this.vS,a.resume=this.C1,a.skip=this.a$,a.viewable_impression=this.Wp,a.mute=this.JC,a.unmute=this.JC,a.fullscreen=this.X9,a.exitfullscreen=this.V9,a.fully_viewable_audible_half_duration_impression=this.Wp,a.measurable_impression=this.Wp,a.abandon=this.vS,a.engagedview=this.Wp,a.impression=this.Wp,a.creativeview=
this.Wp,a.progress=this.JC,a.custom_metric_viewable=this.Wp,a.bufferstart=this.vS,a.bufferfinish=this.C1,a.audio_measurable=this.Wp,a.audio_audible=this.Wp,a);a={};this.N=(a.overlay_resize=this.Z9,a.abandon=this.lQ,a.close=this.lQ,a.collapse=this.lQ,a.overlay_unmeasurable_impression=function(b){return du(b,"overlay_unmeasurable_impression",at())},a.overlay_viewable_immediate_impression=function(b){return du(b,"overlay_viewable_immediate_impression",at())},a.overlay_unviewable_impression=function(b){return du(b,
"overlay_unviewable_impression",at())},a.overlay_viewable_end_of_session_impression=function(b){return du(b,"overlay_viewable_end_of_session_impression",at())},a);
hs().B=3;rka(this)};
Ou=function(a,b,c,d){a=a.aH(null,d,!0,b);a.D=c;Lja([a]);return a};
ska=function(a,b,c){jha(b);var d=a.j;g.Zb(b,function(e){var f=g.$r(e.criteria,function(h){var l=gka(h);if(l==null)h=null;else if(h=new dka,l.visible!=null&&(h.j=l.visible/100),l.audible!=null&&(h.B=l.audible==1),l.time!=null){var m=l.timetype=="mtos"?"mtos":"tos",n=Faa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);n=="%"&&(l/=100);h.setTime(l,n,m)}return h});
Ys(f,function(h){return h==null})||oja(c,new Au(e.id,e.event,f,d))})};
tka=function(){var a=[],b=hs();a.push(cs(pu));Ir(b.Lc,"mvp_lv")&&a.push(cs(Lu));b=[new Iu,new Ku];b.push(new ku(a));b.push(new ou(Or));return b};
uka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=vs(),c=hs(),d=Zs();ws=b;c.C=79463069;a.B!=="o"&&(Zja=yha(Or));if(Jha()){ru.j.HW=0;ru.j.wQ=vs()-b;var e=tka(),f=cs(ju);f.B=e;Nja(f,function(){Pu()})?ru.done||(Wja(),kt(f.j.j,a),tu()):d.C?Pu():tu()}else Qu=!0}catch(h){throw hu.reset(),h;
}}};
Su=function(a){ru.B.cancel();Ru=a;ru.done=!0};
Tu=function(a){if(a.B)return a.B;var b=cs(ju).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};
Uu=function(a,b,c){if(a.j==null)return b.LC|=4,!1;a=vka(a.j,c,b);b.LC|=a;return a==0};
Pu=function(){var a=[new ou(Or)],b=cs(ju);b.B=a;Nja(b,function(){Su("i")})?ru.done||(Wja(),tu()):Su("i")};
wka=function(a,b){if(!a.Ab){var c=du(a,"start",at());c=a.wS.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="962";wu!==null&&(d.v=wu);An(c,function(e,f){return d[e]=e=="mtos"||e=="tos"?f:encodeURIComponent(f)});
b=$ja();An(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//pagead2.googlesyndication.com/pagead/gen_204?"+qt(pt(new ot,d));Iia(b);a.Ab=!0}};
Vu=function(a,b,c){uu(ru,[a],!at());sja(a,c);c!=4&&rja(a.Da,c,a.SJ);return du(a,b,at())};
rka=function(a){Yja(function(){var b=xka();a.B!=null&&(b.sdk=a.B);var c=cs(ju);c.j!=null&&(b.avms=c.j.getName());return b})};
yka=function(a,b,c,d){var e=Hja(hu,c);e!==null&&e.gj!==b&&(a.mJ(e),e=null);e||(b=a.aH(c,vs(),!1,b),hu.B.length==0&&(hs().C=79463069),Mja([b]),e=b,e.D=Tu(a),d&&(e.eb=d));return e};
zka=function(a,b){var c=a[b];c!==void 0&&c>0&&(a[b]=Math.floor(c*1E3))};
xka=function(){var a=Zs(),b={},c={},d={};return Object.assign({},(b.sv="962",b),wu!==null&&(c.v=wu,c),(d["if"]=a.C?"1":"0",d.nas=String(hu.j.length),d))};
Wu=function(a){St.call(this,"audio_audible",a)};
Xu=function(a){Tt.call(this,"audio_measurable",a)};
Yu=function(){Du.apply(this,arguments)};
Zu=function(){};
Aka=function(a){this.j=a};
vka=function(a,b,c){a=a.B();if(typeof a==="function"){var d={};var e={};d=Object.assign({},wu!==null&&(d.v=wu,d),(e.sv="962",e.cb=bka,e.e=Bka(b),e));e=du(c,b,at());g.md(d,e);c.B3[b]=e;d=c.Vp()==2?Hia(d).join("&"):c.wS.j(d).j;try{return a(c.gj,d,b),0}catch(f){return 2}}else return 1};
Bka=function(a){var b=zu(a)?"custom_metric_viewable":a;a=fd(cu,function(c){return c==b});
return xu[a]};
$u=function(){Nu.call(this);this.G=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
Cka=function(a,b,c){c=c.opt_configurable_tracking_events;a.j!=null&&Array.isArray(c)&&ska(a,c,b)};
Dka=function(a,b,c){var d=gu(hu,b);d||(d=c.opt_nativeTime||-1,d=Ou(a,b,Tu(a),d),c.opt_osdId&&(d.eb=c.opt_osdId));return d};
Eka=function(a,b,c){var d=gu(hu,b);d||(d=Ou(a,b,"n",c.opt_nativeTime||-1));return d};
Fka=function(a,b){var c=gu(hu,b);c||(c=Ou(a,b,"h",-1));return c};
Gka=function(a){hs();switch(Tu(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};
Jka=function(a,b,c,d){c=c===void 0?{}:c;var e={};g.md(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.aK(b,c);c=f?f.wS:a.VO();if(e.opt_bounds)return c.j(yu("ol",d));if(d!==void 0)if(cka(d)!==void 0)if(Qu)a=yu("ue",d);else if(uka(a),Ru=="i")a=yu("i",d),a["if"]=0;else if(b=a.aK(b,e)){b:{Ru=="i"&&(b.wu=!0);f=e.opt_fullscreen;f!==void 0&&Gt(b,!!f);var h;if(f=!Zs().B)(f=ic(g.oc(),"CrKey")&&!(ic(g.oc(),"CrKey")&&ic(g.oc(),"SmartSpeaker"))||ic(g.oc(),"PlayStation")||ic(g.oc(),"Roku")||uia()||ic(g.oc(),
"Xbox"))||(f=g.oc(),f=ic(f,"AppleTV")||ic(f,"Apple TV")||ic(f,"CFNetwork")||ic(f,"tvOS")),f||(f=g.oc(),f=ic(f,"sdk_google_atv_x86")||ic(f,"Android TV")),f=!f;f&&(es(),f=Rr($s)===0);if(h=f){switch(b.Vp()){case 1:wka(b,"pv");break;case 2:a.RS(b)}Su("pv")}f=d.toLowerCase();if(h=!h)h=Ir(hs().Lc,"ssmol")&&f==="loaded"?!1:g.Eb(Hka,f);if(h&&b.Ck==0){Ru!="i"&&(ru.done=!1);h=e!==void 0?e.opt_nativeTime:void 0;zs=h=typeof h==="number"?h:vs();b.DE=!0;var l=at();b.Ck=1;b.zi={};b.zi.start=!1;b.zi.firstquartile=
!1;b.zi.midpoint=!1;b.zi.thirdquartile=!1;b.zi.complete=!1;b.zi.resume=!1;b.zi.pause=!1;b.zi.skip=!1;b.zi.mute=!1;b.zi.unmute=!1;b.zi.viewable_impression=!1;b.zi.measurable_impression=!1;b.zi.fully_viewable_audible_half_duration_impression=!1;b.zi.fullscreen=!1;b.zi.exitfullscreen=!1;b.bP=0;l||(b.Aj().Z=h);uu(ru,[b],!l)}(h=b.Xy[f])&&Ot(b.Pg,h);Ir(hs().Lc,"fmd")||g.Eb(Ika,f)&&b.xs&&b.xs.B(b,null);switch(b.Vp()){case 1:var m=zu(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),Ir(hs().Lc,"fmd")&&g.Eb(Ika,f)&&b.xs&&b.xs.B(b,null),d!==void 0)){e=yu(void 0,f);g.md(e,d);d=e;break b}d=void 0}b.Ck==3&&a.mJ(b);a=d}else a=yu("nf",d);else a=void 0;else Qu?a=yu("ue"):f?(a=yu(),g.md(a,uja(f,!0,!1,!1))):a=yu("nf");return typeof a==="string"?c.j():c.j(a)};
Kka=function(a,b){b&&(a.C=b)};
Lka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.B,b};
Mka=function(a,b,c){c=c===void 0?{}:c;a=Jka(cs($u),b,c,a);return Lka(a)};
Nka=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}};
Qka=function(a){if(g.fc(g.cf(a)))return!1;if(a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var b=new g.kq(a)}catch(c){return g.Cb(Oka,function(d){return a.search(d)>0})!=null}return b.K.match(Pka)?!0:g.Cb(Oka,function(c){return a.match(c)!=null})!=null};
g.av=function(a,b){return a.replace(Rka,function(c,d){try{var e=g.hd(b,d);if(e==null||e.toString()==null)return c;e=e.toString();if(e==""||!g.fc(g.cf(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
Ska=function(a,b){return Object.is(a,b)};
g.cv=function(a){var b=bv;bv=a;return b};
Uka=function(a){if(a.cj!==void 0){var b=g.dv;g.dv=!0;try{for(var c=g.v(a.cj),d=c.next();!d.done;d=c.next()){var e=d.value;e.ql||g.Tka(e)}}finally{g.dv=b}}};
Vka=function(){var a;return((a=bv)==null?void 0:a.Lt)!==!1};
g.Tka=function(a){a.ql=!0;Uka(a);var b;(b=a.pE)==null||b.call(a,a)};
g.ev=function(a){a&&(a.aL=0);return g.cv(a)};
g.hv=function(a,b){g.cv(b);if(a&&a.xg!==void 0&&a.cn!==void 0&&a.vy!==void 0){if(g.fv(a))for(b=a.aL;b<a.xg.length;b++)g.gv(a.xg[b],a.cn[b]);for(;a.xg.length>a.aL;)a.xg.pop(),a.vy.pop(),a.cn.pop()}};
Xka=function(a,b,c){Wka(a);if(a.cj.length===0&&a.xg!==void 0)for(var d=0;d<a.xg.length;d++)a.cn[d]=Xka(a.xg[d],a,d);a.Ju.push(c);return a.cj.push(b)-1};
g.gv=function(a,b){Wka(a);if(a.cj.length===1&&a.xg!==void 0)for(var c=0;c<a.xg.length;c++)g.gv(a.xg[c],a.cn[c]);c=a.cj.length-1;a.cj[b]=a.cj[c];a.Ju[b]=a.Ju[c];a.cj.length--;a.Ju.length--;b<a.cj.length&&(c=a.Ju[b],a=a.cj[b],g.iv(a),a.cn[c]=b)};
g.fv=function(a){var b,c;return a.OO||((c=a==null?void 0:(b=a.cj)==null?void 0:b.length)!=null?c:0)>0};
g.iv=function(a){a.xg!=null||(a.xg=[]);a.cn!=null||(a.cn=[]);a.vy!=null||(a.vy=[])};
Wka=function(a){a.cj!=null||(a.cj=[]);a.Ju!=null||(a.Ju=[])};
jv=function(){throw Error();};
Zka=function(a){function b(){if(g.dv)throw Error("");if(bv!==null){var d=bv.aL++;g.iv(bv);d<bv.xg.length&&bv.xg[d]!==c&&g.fv(bv)&&g.gv(bv.xg[d],bv.cn[d]);bv.xg[d]!==c&&(bv.xg[d]=c,bv.cn[d]=g.fv(bv)?Xka(c,bv,d):0);bv.vy[d]=c.version}return c.value}
var c=Object.create(Yka);c.value=a;b[g.uv]=c;return b};
ala=function(a,b){Vka()||jv();if(!a.kP(a.value,b)){a.value=b;a.version++;g.vv++;Uka(a);var c;(c=g.$ka)==null||c()}};
g.bla=function(){};
dla=function(a){return Object.create(Object.assign({},g.wv,{Lt:a}))};
yv=function(a){g.Fd.call(this);var b=this;this.G=this.B=0;this.Go=a!=null?a:{Ui:function(e,f){return setTimeout(e,f)},
ek:function(e){clearTimeout(e)}};
var c,d;this.j=(d=(c=window.navigator)==null?void 0:c.onLine)!=null?d:!0;this.C=function(){return g.H(function(e){return g.z(e,xv(b),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.G||this.jf()};
ela=function(){var a=g.zv;yv.instance||(yv.instance=new yv(a));return yv.instance};
xv=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=(e=d)==null?void 0:e.signal,h=!1,g.Ba(l,2,3),d&&(a.B=a.Go.Ui(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.Go.ek(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.Ja(3)}})})};
fla=function(){this.data=[];this.j=-1};
gla=function(a){a.j===-1&&(a.j=a.data.reduce(function(b,c,d){return b+(c?Math.pow(2,d):0)},0));
return a.j};
Av=function(a){a.setAttribute("role","link")};
Bv=function(a,b){Array.isArray(b)&&(b=b.join(" "));b===""||b==void 0?(hla||(b={},hla=(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=hla,"label"in b?a.setAttribute("aria-label",b.label):a.removeAttribute("aria-label")):a.setAttribute("aria-label",b)};
ila=function(a){a=a.getAttribute("aria-label");return a==null||a==void 0?"":String(a)};
g.Cv=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.T5,this)};
jla=function(a){a=a.B;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
kla=function(a){a=a.B;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.Dv=function(a,b,c){g.I.call(this);this.j=a;this.aj=b||0;this.B=c;this.C=(0,g.ib)(this.EV,this)};
g.Ev=function(a,b){a.isActive()||a.start(b)};
g.Fv=function(a){a.stop();a.EV()};
g.Gv=function(a){a.isActive()&&g.Fv(a)};
g.lla=function(a,b){this.j=a[g.Ua.Symbol.iterator]();this.B=b};
mla=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""};
Hv=function(a){return a.classList?a.classList:mla(a).match(/\S+/g)||[]};
g.Iv=function(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.Jv=function(a,b){return a.classList?a.classList.contains(b):g.Eb(Hv(a),b)};
g.Kv=function(a,b){if(a.classList)a.classList.add(b);else if(!g.Jv(a,b)){var c=mla(a);g.Iv(a,c+(c.length>0?" "+b:b))}};
g.Lv=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.Kv(a,e)});
else{var c={};Array.prototype.forEach.call(Hv(a),function(e){c[e]=!0});
Array.prototype.forEach.call(b,function(e){c[e]=!0});
b="";for(var d in c)b+=b.length>0?" "+d:d;g.Iv(a,b)}};
g.Mv=function(a,b){a.classList?a.classList.remove(b):g.Jv(a,b)&&g.Iv(a,Array.prototype.filter.call(Hv(a),function(c){return c!=b}).join(" "))};
g.Nv=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.Mv(a,c)}):g.Iv(a,Array.prototype.filter.call(Hv(a),function(c){return!g.Eb(b,c)}).join(" "))};
g.Ov=function(a,b,c){c?g.Kv(a,b):g.Mv(a,b)};
nla=function(a,b){var c=!g.Jv(a,b);g.Ov(a,b,c)};
g.Pv=function(){g.Fd.call(this);this.j=0;this.endTime=this.startTime=null};
ola=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return typeof c==="string"?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"});
g.Is(a,"transition",b.join(","))};
Qv=function(a,b,c,d,e){g.Pv.call(this);this.B=a;this.G=b;this.K=c;this.D=d;this.N=Array.isArray(e)?e:[e]};
pla=function(a,b,c,d){return new Qv(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
rla=function(a){a=jc(a);if(a=="")return null;var b=String(a.slice(0,4)).toLowerCase();if(("url("<b?-1:"url("==b?0:1)==0)return!a.endsWith(")")||(a?a.split("(").length-1:0)>1||a&&a.split(")"),null;if(a.indexOf("(")>0){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in qla))return null}return a};
Rv=function(a,b){a=g.Ua[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
sla=function(a){var b=g.Ua.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
tla=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Ks&&document.documentMode<10){if(!b[c].call)throw Error("IE Clobbering detected");}else if(typeof b[c]!="function")throw Error("Clobbering detected");return b[c].apply(b,d)};
zla=function(a){if(!a)return ula;var b=document.createElement("div").style;vla(a).forEach(function(c){var d=g.Nc&&c in wla?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");ec(d,"--")||ec(d,"var")||(c=tla(xla,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=rla(c),c!=null&&tla(yla,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return new g.le(b.cssText||"",ye)};
vla=function(a){g.bb(a)?a=g.Kb(a):(a=g.bd(a),g.Gb(a,"cssText"));return a};
g.Sv=function(a){var b,c=b=0,d=!1;a=a.split(Ala);for(var e=0;e<a.length;e++){var f=a[e];g.Bla.test(f)?(b++,c++):Cla.test(f)?d=!0:Dla.test(f)?c++:Ela.test(f)&&(d=!0)}b=c==0?d?1:0:b/c>.4?-1:1;return(b==0?null:b)==-1?"rtl":"ltr"};
g.Fla=function(a){if(a instanceof Tv||a instanceof Uv||a instanceof Vv)return a;if(typeof a.next=="function")return new Tv(function(){return a});
if(typeof a[Symbol.iterator]=="function")return new Tv(function(){return a[Symbol.iterator]()});
if(typeof a.tm=="function")return new Tv(function(){return a.tm()});
throw Error("Not an iterator or iterable.");};
Tv=function(a){this.B=a};
Uv=function(a){this.B=a};
Vv=function(a){Tv.call(this,function(){return a});
this.C=a};
Wv=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};
Xv=function(a,b){if(b==0)return a.j;if(b==1)return a.B;var c=Be(a.j,a.x1,b),d=Be(a.x1,a.x2,b);a=Be(a.x2,a.B,b);c=Be(c,d,b);d=Be(d,a,b);return Be(c,d,b)};
Gla=function(a,b){var c=(b-a.j)/(a.B-a.j);if(c<=0)return 0;if(c>=1)return 1;for(var d=0,e=1,f=0,h=0;h<8;h++){f=Xv(a,c);var l=(Xv(a,c+1E-6)-f)/1E-6;if(Math.abs(f-b)<1E-6)return c;if(Math.abs(l)<1E-6)break;else f<b?d=c:e=c,c-=(f-b)/l}for(h=0;Math.abs(f-b)>1E-6&&h<8;h++)f<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),f=Xv(a,c);return c};
Yv=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Zv=function(a){return(a=a.exec(g.oc()))?a[1]:""};
$v=function(a){return g.lc(Hla,a)>=0};
g.aw=function(a){g.I.call(this);this.K=1;this.C=[];this.D=0;this.j=[];this.B={};this.N=!!a};
Ila=function(a,b,c){g.dg(function(){a.apply(b,c)})};
g.bw=function(a){this.j=a};
cw=function(a){this.j=a};
Jla=function(a){this.data=a};
Kla=function(a){return a===void 0||a instanceof Jla?a:new Jla(a)};
dw=function(a){this.j=a};
g.Lla=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.kb()||!!b&&b>g.kb()};
g.ew=function(a){this.j=a};
Mla=function(){};
fw=function(){};
gw=function(a){this.j=a;this.B=null};
hw=function(a){if(a.j==null)throw Error("Storage mechanism: Storage unavailable");var b;((b=a.B)!=null?b:a.isAvailable())||Uf(Error("Storage mechanism: Storage unavailable"))};
Nla=function(){var a=null;try{a=g.Ua.localStorage||null}catch(b){}gw.call(this,a)};
Ola=function(){var a=null;try{a=g.Ua.sessionStorage||null}catch(b){}gw.call(this,a)};
iw=function(a,b){this.B=a;this.j=b+"::"};
g.jw=function(a){var b=new Nla;return b.isAvailable()?a?new iw(b,a):b:null};
kw=function(a,b){this.j=a;this.B=b};
lw=function(a){this.j=[];if(a)a:{if(a instanceof lw){var b=a.Yn();a=a.Lm();if(this.j.length<=0){for(var c=this.j,d=0;d<b.length;d++)c.push(new kw(b[d],a[d]));break a}}else b=g.bd(a),a=g.Zc(a);for(c=0;c<b.length;c++)this.Jh(b[c],a[c])}};
Pla=function(){lw.apply(this,arguments)};
mw=function(){};
Qla=function(a){var b,c,d=a.length,e=0;for(b=0;b<d;b++){var f=a.charCodeAt(b);if((f&64512)===55296&&b+1<d){var h=a.charCodeAt(b+1);(h&64512)===56320&&(f=65536+(f-55296<<10)+(h-56320),b++)}e+=f<128?1:f<2048?2:f<65536?3:4}var l=new nw.cz(e);for(b=c=0;c<e;b++)f=a.charCodeAt(b),(f&64512)===55296&&b+1<d&&(h=a.charCodeAt(b+1),(h&64512)===56320&&(f=65536+(f-55296<<10)+(h-56320),b++)),f<128?l[c++]=f:(f<2048?l[c++]=192|f>>>6:(f<65536?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};
ow=function(a){for(var b=a.length;--b>=0;)a[b]=0};
Rla=function(a,b,c,d,e){this.w2=a;this.H8=b;this.G8=c;this.u8=d;this.S$=e;this.cZ=a&&a.length};
Sla=function(a,b){this.JX=a;this.oB=0;this.Bv=b};
pw=function(a,b){a.wg[a.pending++]=b&255;a.wg[a.pending++]=b>>>8&255};
qw=function(a,b,c){a.Ei>16-c?(a.vj|=b<<a.Ei&65535,pw(a,a.vj),a.vj=b>>16-a.Ei,a.Ei+=c-16):(a.vj|=b<<a.Ei&65535,a.Ei+=c)};
rw=function(a,b,c){qw(a,c[b*2],c[b*2+1])};
Tla=function(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(--b>0);return c>>>1};
Ula=function(a,b,c){var d=Array(16),e=0,f;for(f=1;f<=15;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[c*2+1],e!==0&&(a[c*2]=Tla(d[e]++,e))};
Vla=function(a){var b;for(b=0;b<286;b++)a.nk[b*2]=0;for(b=0;b<30;b++)a.Qw[b*2]=0;for(b=0;b<19;b++)a.Xi[b*2]=0;a.nk[512]=1;a.Es=a.BC=0;a.Vm=a.matches=0};
Wla=function(a){a.Ei>8?pw(a,a.vj):a.Ei>0&&(a.wg[a.pending++]=a.vj);a.vj=0;a.Ei=0};
Xla=function(a,b,c){Wla(a);pw(a,c);pw(a,~c);nw.Dz(a.wg,a.window,b,c,a.pending);a.pending+=c};
Yla=function(a,b,c,d){var e=b*2,f=c*2;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]};
Zla=function(a,b,c){for(var d=a.Bg[c],e=c<<1;e<=a.Vr;){e<a.Vr&&Yla(b,a.Bg[e+1],a.Bg[e],a.depth)&&e++;if(Yla(b,d,a.Bg[e],a.depth))break;a.Bg[c]=a.Bg[e];c=e;e<<=1}a.Bg[c]=d};
bma=function(a,b,c){var d=0;if(a.Vm!==0){do{var e=a.wg[a.uE+d*2]<<8|a.wg[a.uE+d*2+1];var f=a.wg[a.TQ+d];d++;if(e===0)rw(a,f,b);else{var h=tw[f];rw(a,h+256+1,b);var l=$la[h];l!==0&&(f-=ama[h],qw(a,f,l));e--;h=e<256?uw[e]:uw[256+(e>>>7)];rw(a,h,c);l=vw[h];l!==0&&(e-=ww[h],qw(a,e,l))}}while(d<a.Vm)}rw(a,256,b)};
cma=function(a,b){var c=b.JX,d=b.Bv.w2,e=b.Bv.cZ,f=b.Bv.u8,h,l=-1;a.Vr=0;a.DA=573;for(h=0;h<f;h++)c[h*2]!==0?(a.Bg[++a.Vr]=l=h,a.depth[h]=0):c[h*2+1]=0;for(;a.Vr<2;){var m=a.Bg[++a.Vr]=l<2?++l:0;c[m*2]=1;a.depth[m]=0;a.Es--;e&&(a.BC-=d[m*2+1])}b.oB=l;for(h=a.Vr>>1;h>=1;h--)Zla(a,c,h);m=f;do h=a.Bg[1],a.Bg[1]=a.Bg[a.Vr--],Zla(a,c,1),d=a.Bg[1],a.Bg[--a.DA]=h,a.Bg[--a.DA]=d,c[m*2]=c[h*2]+c[d*2],a.depth[m]=(a.depth[h]>=a.depth[d]?a.depth[h]:a.depth[d])+1,c[h*2+1]=c[d*2+1]=m,a.Bg[1]=m++,Zla(a,c,1);while(a.Vr>=
2);a.Bg[--a.DA]=a.Bg[1];h=b.JX;m=b.oB;d=b.Bv.w2;e=b.Bv.cZ;f=b.Bv.H8;var n=b.Bv.G8,p=b.Bv.S$,q,r=0;for(q=0;q<=15;q++)a.xr[q]=0;h[a.Bg[a.DA]*2+1]=0;for(b=a.DA+1;b<573;b++){var t=a.Bg[b];q=h[h[t*2+1]*2+1]+1;q>p&&(q=p,r++);h[t*2+1]=q;if(!(t>m)){a.xr[q]++;var u=0;t>=n&&(u=f[t-n]);var w=h[t*2];a.Es+=w*(q+u);e&&(a.BC+=w*(d[t*2+1]+u))}}if(r!==0){do{for(q=p-1;a.xr[q]===0;)q--;a.xr[q]--;a.xr[q+1]+=2;a.xr[p]--;r-=2}while(r>0);for(q=p;q!==0;q--)for(t=a.xr[q];t!==0;)d=a.Bg[--b],d>m||(h[d*2+1]!==q&&(a.Es+=(q-h[d*
2+1])*h[d*2],h[d*2+1]=q),t--)}Ula(c,l,a.xr)};
dma=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;f===0&&(l=138,m=3);b[(c+1)*2+1]=65535;for(d=0;d<=c;d++){var n=f;f=b[(d+1)*2+1];++h<l&&n===f||(h<m?a.Xi[n*2]+=h:n!==0?(n!==e&&a.Xi[n*2]++,a.Xi[32]++):h<=10?a.Xi[34]++:a.Xi[36]++,h=0,e=n,f===0?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}};
ema=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;f===0&&(l=138,m=3);for(d=0;d<=c;d++){var n=f;f=b[(d+1)*2+1];if(!(++h<l&&n===f)){if(h<m){do rw(a,n,a.Xi);while(--h!==0)}else n!==0?(n!==e&&(rw(a,n,a.Xi),h--),rw(a,16,a.Xi),qw(a,h-3,2)):h<=10?(rw(a,17,a.Xi),qw(a,h-3,3)):(rw(a,18,a.Xi),qw(a,h-11,7));h=0;e=n;f===0?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}};
fma=function(a){var b=4093624447,c;for(c=0;c<=31;c++,b>>>=1)if(b&1&&a.nk[c*2]!==0)return 0;if(a.nk[18]!==0||a.nk[20]!==0||a.nk[26]!==0)return 1;for(c=32;c<256;c++)if(a.nk[c*2]!==0)return 1;return 0};
xw=function(a,b,c){a.wg[a.uE+a.Vm*2]=b>>>8&255;a.wg[a.uE+a.Vm*2+1]=b&255;a.wg[a.TQ+a.Vm]=c&255;a.Vm++;b===0?a.nk[c*2]++:(a.matches++,b--,a.nk[(tw[c]+256+1)*2]++,a.Qw[(b<256?uw[b]:uw[256+(b>>>7)])*2]++);return a.Vm===a.WF-1};
zw=function(a,b){a.msg=yw[b];return b};
Aw=function(a){for(var b=a.length;--b>=0;)a[b]=0};
Bw=function(a){var b=a.state,c=b.pending;c>a.Le&&(c=a.Le);c!==0&&(nw.Dz(a.output,b.wg,b.MG,c,a.xB),a.xB+=c,b.MG+=c,a.dU+=c,a.Le-=c,b.pending-=c,b.pending===0&&(b.MG=0))};
Ew=function(a,b){var c=a.jl>=0?a.jl:-1,d=a.Hb-a.jl,e=0;if(a.level>0){a.ze.ZO===2&&(a.ze.ZO=fma(a));cma(a,a.CK);cma(a,a.lJ);dma(a,a.nk,a.CK.oB);dma(a,a.Qw,a.lJ.oB);cma(a,a.aX);for(e=18;e>=3&&a.Xi[gma[e]*2+1]===0;e--);a.Es+=3*(e+1)+14;var f=a.Es+3+7>>>3;var h=a.BC+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&c!==-1)qw(a,b?1:0,3),Xla(a,c,d);else if(a.strategy===4||h===f)qw(a,2+(b?1:0),3),bma(a,Cw,Dw);else{qw(a,4+(b?1:0),3);c=a.CK.oB+1;d=a.lJ.oB+1;e+=1;qw(a,c-257,5);qw(a,d-1,5);qw(a,e-4,4);for(f=0;f<e;f++)qw(a,
a.Xi[gma[f]*2+1],3);ema(a,a.nk,c-1);ema(a,a.Qw,d-1);bma(a,a.nk,a.Qw)}Vla(a);b&&Wla(a);a.jl=a.Hb;Bw(a.ze)};
Fw=function(a,b){a.wg[a.pending++]=b};
Gw=function(a,b){a.wg[a.pending++]=b>>>8&255;a.wg[a.pending++]=b&255};
hma=function(a,b){var c=a.n_,d=a.Hb,e=a.Ll,f=a.I_,h=a.Hb>a.qj-262?a.Hb-(a.qj-262):0,l=a.window,m=a.Kv,n=a.Bq,p=a.Hb+258,q=l[d+e-1],r=l[d+e];a.Ll>=a.IY&&(c>>=2);f>a.jc&&(f=a.jc);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.mB=b;e=t;if(t>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&--c!==
0);return e<=a.jc?e:a.jc};
Iw=function(a){var b=a.qj,c;do{var d=a.G3-a.jc-a.Hb;if(a.Hb>=b+(b-262)){nw.Dz(a.window,a.window,b,b,0);a.mB-=b;a.Hb-=b;a.jl-=b;var e=c=a.kK;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Bq[--e],a.Bq[e]=f>=b?f-b:0;while(--c);d+=b}if(a.ze.uj===0)break;e=a.ze;c=a.window;f=a.Hb+a.jc;var h=e.uj;h>d&&(h=d);h===0?c=0:(e.uj-=h,nw.Dz(c,e.input,e.Sx,h,f),e.state.wrap===1?e.Wd=ima(e.Wd,c,h,f):e.state.wrap===2&&(e.Wd=Hw(e.Wd,c,h,f)),e.Sx+=h,e.Uy+=h,c=h);a.jc+=c;if(a.jc+a.Jh>=3)for(d=a.Hb-
a.Jh,a.He=a.window[d],a.He=(a.He<<a.Tr^a.window[d+1])&a.Sr;a.Jh&&!(a.He=(a.He<<a.Tr^a.window[d+3-1])&a.Sr,a.Bq[d&a.Kv]=a.head[a.He],a.head[a.He]=d,d++,a.Jh--,a.jc+a.Jh<3););}while(a.jc<262&&a.ze.uj!==0)};
jma=function(a,b){for(var c;;){if(a.jc<262){Iw(a);if(a.jc<262&&b===0)return 1;if(a.jc===0)break}c=0;a.jc>=3&&(a.He=(a.He<<a.Tr^a.window[a.Hb+3-1])&a.Sr,c=a.Bq[a.Hb&a.Kv]=a.head[a.He],a.head[a.He]=a.Hb);c!==0&&a.Hb-c<=a.qj-262&&(a.We=hma(a,c));if(a.We>=3)if(c=xw(a,a.Hb-a.mB,a.We-3),a.jc-=a.We,a.We<=a.fR&&a.jc>=3){a.We--;do a.Hb++,a.He=(a.He<<a.Tr^a.window[a.Hb+3-1])&a.Sr,a.Bq[a.Hb&a.Kv]=a.head[a.He],a.head[a.He]=a.Hb;while(--a.We!==0);a.Hb++}else a.Hb+=a.We,a.We=0,a.He=a.window[a.Hb],a.He=(a.He<<a.Tr^
a.window[a.Hb+1])&a.Sr;else c=xw(a,0,a.window[a.Hb]),a.jc--,a.Hb++;if(c&&(Ew(a,!1),a.ze.Le===0))return 1}a.Jh=a.Hb<2?a.Hb:2;return b===4?(Ew(a,!0),a.ze.Le===0?3:4):a.Vm&&(Ew(a,!1),a.ze.Le===0)?1:2};
Jw=function(a,b){for(var c,d;;){if(a.jc<262){Iw(a);if(a.jc<262&&b===0)return 1;if(a.jc===0)break}c=0;a.jc>=3&&(a.He=(a.He<<a.Tr^a.window[a.Hb+3-1])&a.Sr,c=a.Bq[a.Hb&a.Kv]=a.head[a.He],a.head[a.He]=a.Hb);a.Ll=a.We;a.U0=a.mB;a.We=2;c!==0&&a.Ll<a.fR&&a.Hb-c<=a.qj-262&&(a.We=hma(a,c),a.We<=5&&(a.strategy===1||a.We===3&&a.Hb-a.mB>4096)&&(a.We=2));if(a.Ll>=3&&a.We<=a.Ll){d=a.Hb+a.jc-3;c=xw(a,a.Hb-1-a.U0,a.Ll-3);a.jc-=a.Ll-1;a.Ll-=2;do++a.Hb<=d&&(a.He=(a.He<<a.Tr^a.window[a.Hb+3-1])&a.Sr,a.Bq[a.Hb&a.Kv]=
a.head[a.He],a.head[a.He]=a.Hb);while(--a.Ll!==0);a.Lx=0;a.We=2;a.Hb++;if(c&&(Ew(a,!1),a.ze.Le===0))return 1}else if(a.Lx){if((c=xw(a,0,a.window[a.Hb-1]))&&Ew(a,!1),a.Hb++,a.jc--,a.ze.Le===0)return 1}else a.Lx=1,a.Hb++,a.jc--}a.Lx&&(xw(a,0,a.window[a.Hb-1]),a.Lx=0);a.Jh=a.Hb<2?a.Hb:2;return b===4?(Ew(a,!0),a.ze.Le===0?3:4):a.Vm&&(Ew(a,!1),a.ze.Le===0)?1:2};
kma=function(a,b){for(var c,d,e,f=a.window;;){if(a.jc<=258){Iw(a);if(a.jc<=258&&b===0)return 1;if(a.jc===0)break}a.We=0;if(a.jc>=3&&a.Hb>0&&(d=a.Hb-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.Hb+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.We=258-(e-d);a.We>a.jc&&(a.We=a.jc)}a.We>=3?(c=xw(a,1,a.We-3),a.jc-=a.We,a.Hb+=a.We,a.We=0):(c=xw(a,0,a.window[a.Hb]),a.jc--,a.Hb++);if(c&&(Ew(a,!1),a.ze.Le===0))return 1}a.Jh=0;return b===
4?(Ew(a,!0),a.ze.Le===0?3:4):a.Vm&&(Ew(a,!1),a.ze.Le===0)?1:2};
lma=function(a,b){for(var c;;){if(a.jc===0&&(Iw(a),a.jc===0)){if(b===0)return 1;break}a.We=0;c=xw(a,0,a.window[a.Hb]);a.jc--;a.Hb++;if(c&&(Ew(a,!1),a.ze.Le===0))return 1}a.Jh=0;return b===4?(Ew(a,!0),a.ze.Le===0?3:4):a.Vm&&(Ew(a,!1),a.ze.Le===0)?1:2};
Kw=function(a,b,c,d,e){this.z9=a;this.R$=b;this.maa=c;this.Q$=d;this.func=e};
mma=function(){this.ze=null;this.status=0;this.wg=null;this.wrap=this.pending=this.MG=this.Zm=0;this.Pd=null;this.oo=0;this.method=8;this.bB=-1;this.Kv=this.wU=this.qj=0;this.window=null;this.G3=0;this.head=this.Bq=null;this.I_=this.IY=this.strategy=this.level=this.fR=this.n_=this.Ll=this.jc=this.mB=this.Hb=this.Lx=this.U0=this.We=this.jl=this.Tr=this.Sr=this.pQ=this.kK=this.He=0;this.nk=new nw.Zq(1146);this.Qw=new nw.Zq(122);this.Xi=new nw.Zq(78);Aw(this.nk);Aw(this.Qw);Aw(this.Xi);this.aX=this.lJ=
this.CK=null;this.xr=new nw.Zq(16);this.Bg=new nw.Zq(573);Aw(this.Bg);this.DA=this.Vr=0;this.depth=new nw.Zq(573);Aw(this.depth);this.Ei=this.vj=this.Jh=this.matches=this.BC=this.Es=this.uE=this.Vm=this.WF=this.TQ=0};
nma=function(a,b){if(!a||!a.state||b>5||b<0)return a?zw(a,-2):-2;var c=a.state;if(!a.output||!a.input&&a.uj!==0||c.status===666&&b!==4)return zw(a,a.Le===0?-5:-2);c.ze=a;var d=c.bB;c.bB=b;if(c.status===42)if(c.wrap===2)a.Wd=0,Fw(c,31),Fw(c,139),Fw(c,8),c.Pd?(Fw(c,(c.Pd.text?1:0)+(c.Pd.pu?2:0)+(c.Pd.extra?4:0)+(c.Pd.name?8:0)+(c.Pd.comment?16:0)),Fw(c,c.Pd.time&255),Fw(c,c.Pd.time>>8&255),Fw(c,c.Pd.time>>16&255),Fw(c,c.Pd.time>>24&255),Fw(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),Fw(c,c.Pd.os&
255),c.Pd.extra&&c.Pd.extra.length&&(Fw(c,c.Pd.extra.length&255),Fw(c,c.Pd.extra.length>>8&255)),c.Pd.pu&&(a.Wd=Hw(a.Wd,c.wg,c.pending,0)),c.oo=0,c.status=69):(Fw(c,0),Fw(c,0),Fw(c,0),Fw(c,0),Fw(c,0),Fw(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),Fw(c,3),c.status=113);else{var e=8+(c.wU-8<<4)<<8;e|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.Hb!==0&&(e|=32);c.status=113;Gw(c,e+(31-e%31));c.Hb!==0&&(Gw(c,a.Wd>>>16),Gw(c,a.Wd&65535));a.Wd=1}if(c.status===69)if(c.Pd.extra){for(e=
c.pending;c.oo<(c.Pd.extra.length&65535)&&(c.pending!==c.Zm||(c.Pd.pu&&c.pending>e&&(a.Wd=Hw(a.Wd,c.wg,c.pending-e,e)),Bw(a),e=c.pending,c.pending!==c.Zm));)Fw(c,c.Pd.extra[c.oo]&255),c.oo++;c.Pd.pu&&c.pending>e&&(a.Wd=Hw(a.Wd,c.wg,c.pending-e,e));c.oo===c.Pd.extra.length&&(c.oo=0,c.status=73)}else c.status=73;if(c.status===73)if(c.Pd.name){e=c.pending;do{if(c.pending===c.Zm&&(c.Pd.pu&&c.pending>e&&(a.Wd=Hw(a.Wd,c.wg,c.pending-e,e)),Bw(a),e=c.pending,c.pending===c.Zm)){var f=1;break}f=c.oo<c.Pd.name.length?
c.Pd.name.charCodeAt(c.oo++)&255:0;Fw(c,f)}while(f!==0);c.Pd.pu&&c.pending>e&&(a.Wd=Hw(a.Wd,c.wg,c.pending-e,e));f===0&&(c.oo=0,c.status=91)}else c.status=91;if(c.status===91)if(c.Pd.comment){e=c.pending;do{if(c.pending===c.Zm&&(c.Pd.pu&&c.pending>e&&(a.Wd=Hw(a.Wd,c.wg,c.pending-e,e)),Bw(a),e=c.pending,c.pending===c.Zm)){f=1;break}f=c.oo<c.Pd.comment.length?c.Pd.comment.charCodeAt(c.oo++)&255:0;Fw(c,f)}while(f!==0);c.Pd.pu&&c.pending>e&&(a.Wd=Hw(a.Wd,c.wg,c.pending-e,e));f===0&&(c.status=103)}else c.status=
103;c.status===103&&(c.Pd.pu?(c.pending+2>c.Zm&&Bw(a),c.pending+2<=c.Zm&&(Fw(c,a.Wd&255),Fw(c,a.Wd>>8&255),a.Wd=0,c.status=113)):c.status=113);if(c.pending!==0){if(Bw(a),a.Le===0)return c.bB=-1,0}else if(a.uj===0&&(b<<1)-(b>4?9:0)<=(d<<1)-(d>4?9:0)&&b!==4)return zw(a,-5);if(c.status===666&&a.uj!==0)return zw(a,-5);if(a.uj!==0||c.jc!==0||b!==0&&c.status!==666){d=c.strategy===2?lma(c,b):c.strategy===3?kma(c,b):Lw[c.level].func(c,b);if(d===3||d===4)c.status=666;if(d===1||d===3)return a.Le===0&&(c.bB=
-1),0;if(d===2&&(b===1?(qw(c,2,3),rw(c,256,Cw),c.Ei===16?(pw(c,c.vj),c.vj=0,c.Ei=0):c.Ei>=8&&(c.wg[c.pending++]=c.vj&255,c.vj>>=8,c.Ei-=8)):b!==5&&(qw(c,0,3),Xla(c,0,0),b===3&&(Aw(c.head),c.jc===0&&(c.Hb=0,c.jl=0,c.Jh=0))),Bw(a),a.Le===0))return c.bB=-1,0}if(b!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(Fw(c,a.Wd&255),Fw(c,a.Wd>>8&255),Fw(c,a.Wd>>16&255),Fw(c,a.Wd>>24&255),Fw(c,a.Uy&255),Fw(c,a.Uy>>8&255),Fw(c,a.Uy>>16&255),Fw(c,a.Uy>>24&255)):(Gw(c,a.Wd>>>16),Gw(c,a.Wd&65535));Bw(a);c.wrap>0&&
(c.wrap=-c.wrap);return c.pending!==0?0:1};
Mw=function(a){if(!(this instanceof Mw))return new Mw(a);a=this.options=nw.assign({level:-1,method:8,chunkSize:16384,Mv:15,X$:8,strategy:0,to:""},a||{});a.raw&&a.Mv>0?a.Mv=-a.Mv:a.A9&&a.Mv>0&&a.Mv<16&&(a.Mv+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.ze=new oma;this.ze.Le=0;var b=this.ze;var c=a.level,d=a.method,e=a.Mv,f=a.X$,h=a.strategy;if(b){var l=1;c===-1&&(c=6);e<0?(l=0,e=-e):e>15&&(l=2,e-=16);if(f<1||f>9||d!==8||e<8||e>15||c<0||c>9||h<0||h>4)b=zw(b,-2);else{e===8&&(e=9);var m=
new mma;b.state=m;m.ze=b;m.wrap=l;m.Pd=null;m.wU=e;m.qj=1<<m.wU;m.Kv=m.qj-1;m.pQ=f+7;m.kK=1<<m.pQ;m.Sr=m.kK-1;m.Tr=~~((m.pQ+3-1)/3);m.window=new nw.cz(m.qj*2);m.head=new nw.Zq(m.kK);m.Bq=new nw.Zq(m.qj);m.WF=1<<f+6;m.Zm=m.WF*4;m.wg=new nw.cz(m.Zm);m.uE=1*m.WF;m.TQ=3*m.WF;m.level=c;m.strategy=h;m.method=d;if(b&&b.state){b.Uy=b.dU=0;b.ZO=2;c=b.state;c.pending=0;c.MG=0;c.wrap<0&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Wd=c.wrap===2?0:1;c.bB=0;if(!pma){d=Array(16);for(f=h=0;f<28;f++)for(ama[f]=h,e=
0;e<1<<$la[f];e++)tw[h++]=f;tw[h-1]=f;for(f=h=0;f<16;f++)for(ww[f]=h,e=0;e<1<<vw[f];e++)uw[h++]=f;for(h>>=7;f<30;f++)for(ww[f]=h<<7,e=0;e<1<<vw[f]-7;e++)uw[256+h++]=f;for(e=0;e<=15;e++)d[e]=0;for(e=0;e<=143;)Cw[e*2+1]=8,e++,d[8]++;for(;e<=255;)Cw[e*2+1]=9,e++,d[9]++;for(;e<=279;)Cw[e*2+1]=7,e++,d[7]++;for(;e<=287;)Cw[e*2+1]=8,e++,d[8]++;Ula(Cw,287,d);for(e=0;e<30;e++)Dw[e*2+1]=5,Dw[e*2]=Tla(e,5);qma=new Rla(Cw,$la,257,286,15);rma=new Rla(Dw,vw,0,30,15);sma=new Rla([],tma,0,19,7);pma=!0}c.CK=new Sla(c.nk,
qma);c.lJ=new Sla(c.Qw,rma);c.aX=new Sla(c.Xi,sma);c.vj=0;c.Ei=0;Vla(c);c=0}else c=zw(b,-2);c===0&&(b=b.state,b.G3=2*b.qj,Aw(b.head),b.fR=Lw[b.level].R$,b.IY=Lw[b.level].z9,b.I_=Lw[b.level].maa,b.n_=Lw[b.level].Q$,b.Hb=0,b.jl=0,b.jc=0,b.Jh=0,b.We=b.Ll=2,b.Lx=0,b.He=0);b=c}}else b=-2;if(b!==0)throw Error(yw[b]);a.header&&(b=this.ze)&&b.state&&b.state.wrap===2&&(b.state.Pd=a.header);if(a.vE){var n;typeof a.vE==="string"?n=Qla(a.vE):uma.call(a.vE)==="[object ArrayBuffer]"?n=new Uint8Array(a.vE):n=a.vE;
a=this.ze;f=n;h=f.length;if(a&&a.state)if(n=a.state,b=n.wrap,b===2||b===1&&n.status!==42||n.jc)b=-2;else{b===1&&(a.Wd=ima(a.Wd,f,h,0));n.wrap=0;h>=n.qj&&(b===0&&(Aw(n.head),n.Hb=0,n.jl=0,n.Jh=0),c=new nw.cz(n.qj),nw.Dz(c,f,h-n.qj,n.qj,0),f=c,h=n.qj);c=a.uj;d=a.Sx;e=a.input;a.uj=h;a.Sx=0;a.input=f;for(Iw(n);n.jc>=3;){f=n.Hb;h=n.jc-2;do n.He=(n.He<<n.Tr^n.window[f+3-1])&n.Sr,n.Bq[f&n.Kv]=n.head[n.He],n.head[n.He]=f,f++;while(--h);n.Hb=f;n.jc=2;Iw(n)}n.Hb+=n.jc;n.jl=n.Hb;n.Jh=n.jc;n.jc=0;n.We=n.Ll=2;
n.Lx=0;a.Sx=d;a.input=e;a.uj=c;n.wrap=b;b=0}else b=-2;if(b!==0)throw Error(yw[b]);this.rpb=!0}};
vma=function(a,b){b=b||{};b.A9=!0;b=new Mw(b);b.push(a,!0);if(b.err)throw b.msg||yw[b.err];return b.result};
wma=function(){var a=g.Ja.apply(0,arguments);return a.length===0?function(b){return b}:a.length===1?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,g.ra(g.Ja.apply(0,arguments))))}})};
xma=function(){var a=g.Ja.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
c=b(c,d);var f={getState:c.getState,dispatch:function(h){return e.apply(null,[h].concat(g.ra(g.Ja.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=wma.apply(null,g.ra(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
yma=function(){return Math.random().toString(36).substring(7).split("").join(".")};
Ama=function(a){Object.keys(a).forEach(function(b){var c=a[b];if(typeof c(void 0,{type:zma})==="undefined")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(typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+yma()})==="undefined")throw Error('The slice reducer for key "'+
b+"\" returned undefined when probed with a random type. Don't try to handle '"+(zma+'\' 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){function d(){if(p)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 l}
function e(t){if(typeof t!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof t+"'");if(p)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 u=!0;n===m&&(n=m.slice());n.push(t);return function(){if(u){if(p)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.");
u=!1;n===m&&(n=m.slice());n.splice(n.indexOf(t),1);m=null}}}
function f(t){if(typeof t!=="object"||t===null)var u=!1;else{for(u=t;Object.getPrototypeOf(u)!==null;)u=Object.getPrototypeOf(u);u=Object.getPrototypeOf(t)===u}if(!u)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(typeof t.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(p)throw Error("Reducers may not dispatch actions.");try{p=!0,l=h(l,t)}finally{p=!1}u=m=n;for(var w=0;w<u.length;w++)(0,u[w])();return t}
if(typeof b==="function"&&typeof c==="function"||typeof c==="function"&&typeof arguments[3]==="function")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.");typeof b==="function"&&typeof c==="undefined"&&(c=b,b=void 0);if(typeof c!=="undefined"){if(typeof c!=="function")throw Error("Expected the enhancer to be a function. Instead, received: '"+
typeof c+"'");return c(Bma)(a,b)}if(typeof a!=="function")throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof a+"'");var h=a,l=b,m=[],n=m,p=!1;f({type:zma});var q={},r=(q.dispatch=f,q.subscribe=e,q.getState=d,q.replaceReducer=function(t){if(typeof t!=="function")throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof t);h=t;f({type:Cma});return r},q[Dma]=function(){var t={};
return t.subscribe=function(u){function w(){u.next&&u.next(d())}
if(typeof u!=="object"||u===null)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof u+"'");w();return{unsubscribe:e(w)}},t[Dma]=function(){return this},t},q);
return r};
Ema=function(a){return a?(a=a.privateDoNotAccessOrElseSafeScriptWrappedValue)?Hba(a):null:null};
Nw=function(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?be(a):null:null};
Gma=function(a){a=Fma(a);return te(a)};
g.Hma=function(a){a=Fma(a);return be(a)};
Fma=function(a){return a===null?"null":a===void 0?"undefined":a};
Ow=function(a){this.qa=Q(a)};
Ima=function(a){var b=String.prototype.split.call(a,""),c=[-1451594444,1301161877,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},
649805386,-1685245837,"catch",681943953,583860904,1296172818,425880877,287270362,315751560,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
function(d,e){d.splice(d.length,0,e)},
1275414153,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},
498111650,1202497635,-1995710382,-1938677291,-889657924,175902055,2017394798,195881378,-1693441371,-1975261179,-248934245,1670929676,-466078905,function(d,e,f,h,l,m){return e(h,l,m)},
-505676905,function(d,e,f,h,l){return e(f,h,l)},
-1965308853,function(d,e){d.length!=0&&(e=(e%d.length+d.length)%d.length,d.splice(0,1,d.splice(e,1,d[0])[0]))},
-333520374,-94023361,-1505266190,-2094368029,function(d){throw d;},
569341060,function(d,e){for(d=(d%e.length+e.length)%e.length;d--;)e.unshift(e.pop())},
1053915394,b,-94023361,function(d,e,f,h,l,m,n,p){return e(f,h,l,m,n,p)},
1597737293,b,null,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)},
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},
-2007431109,-2134753269,-69827996,554723023,1603647478,1083969154,-238723852,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
230292577,function(d){d.reverse()},
1474273583,b,function(d,e){e.push(d)},
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},
-384262400,null,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},
1556991112,function(d,e,f){var h=e.length;d.forEach(function(l,m,n){this.push(n[m]=e[(e.indexOf(l)-e.indexOf(this[m])+m+h--)%e.length])},f.split(""))},
function(d,e){if(e.length!=0){d=(d%e.length+e.length)%e.length;var f=e[0];e[0]=e[d];e[d]=f}},
null,1056973316,function(d,e,f,h,l,m,n,p,q,r){return e(l,m,n,p,q,r)},
50789005,1362852578,-253339780,",55];c[52]=c;","9SsPP"];c[47]=c;c[65]=c;c[70]=c;try{try{c[0]<-4&&(c[8]<-9||(((0,c[48])(c[61],c[64]),c[33])(c[42],c[11]),(0,c[40])(c[20],c[47]),(0,c[73])(c[75]),(0,c[47])(c[56],c[42]),0))&&((((0,c[4])(c[60],(0,c[2])(),c[19]),c[4])(c[56],(0,c[16])(),c[13]),(0,c[54])(c[14],c[56]),c[5])(c[7],c[6]),c[62])(c[1],c[67]),c[28]!==-10&&((0,c[62])(c[56],c[33]),c[5])(c[64],c[-54718+Math.pow(1,1)- -54792]),c[44]>-3?(0,c[45])((0,c[62])(c[75],c[9]),c[47],c[56],c[57]):(0,c[45])((0,c[54])(c[10212-
Math.pow(7,4)-7790],c[61]),c[70],c[Math.pow(1,new Date("1970-01-01T02:45:01.000+02:45")/1E3)*-192+261],c[13]),c[71]>5?((0,c[11])(c[76]),c[42])(c[76]):(0,c[61])((0,c[20])(c[13],(0,c[1])(),c[35]),c[0],c[22],c[66]),c[62]<10&&(0,c[59])(((((0,c[42])(c[17]),c[77])(c[1],c[20]),c[57])(c[5],(0,c[45])(),c[48]),c[Math.pow(2,3)%313+27])(c[5]),c[Math.pow(3,4)+26245-26319],(0,c[57])(c[1],(0,c[59])(),c[Math.pow(8,2)+23958-23980]),c[71],c[60]),c[55]!=5&&(0,c[18])(c[71-Math.pow(7,1)%115],c[47]),c[69]!==-2&&(0,c[7])((0,c[new Date("1970-01-01T07:15:57.000+07:15")/
1E3])((((0,c[72])(c[64],c[17]),((0,c[21])(c[65]),c[0])(c[65],c[3]),c[21])(c[new Date("1969-12-31T22:15:50.000-01:45")/1E3]),c[0])(c[50],c[23]),c[2],(0,c[60])(c[24],c[64]),((0,c[1])(c[26],c[6]),c[19])(c[60],c[20]),(0,c[Math.pow(new Date("1970-01-01T01:30:07.000+01:30")/1E3,5)- -13272-30018])(c[38],c[319%Math.pow(8,5)+-259]),c[0],c[60],c[30])|(0,c[19])(c[65],c[11]),c[21],(0,c[19])(c[69],c[34]),c[19],c[5],c[36])}catch(d){(0,c[Math.pow(5,3)-229- -166])(c[10],(0,c[3])(),c[53]),((0,c[1])(c[60],c[0]),c[4])(c[6],
c[12]),(0,c[4])(c[10],c[46]),(0,c[4])(c[69],c[49]),(0,c[1])(c[31],c[10]),(0,c[4])(c[69],c[74])}try{c[55]!=-3&&((((0,c[1])(c[7],c[10]),c[73])(c[0],c[70]),c[13])(c[78],c[33]),"1")||(0,c[15])(((0,c[56])(c[63],(0,c[76])(),c[41]),c[77])(c[40],c[50]),c[13],c[40],c[45]),(0,c[15])(((0,c[8])(),c[56])(c[63],(0,c[31])(),c[41]),c[77],c[4],c[24])}catch(d){c[70]!=-10&&(c[75]!=6&&((0,c[67])(c[40],c[21]),"undefined")||(0,c[235*Math.pow(5,3)-29298])(c[73],c[69])),c[Math.pow(1,4)+42+-4]>3&&(c[57]==-4?(((0,c[56])(c[4],
(0,c[58])(),c[47]),c[65])(c[73]),c[77])(c[40],c[57]):((0,c[55])(c[38],c[2457-Math.pow(4,2)*149]),c[new Date("1969-12-31T13:45:15.000-10:15")/1E3])((0,c[55])(c[22],c[59]),c[74],c[49],c[73])),c[5]>=297%Math.pow(6,4)+-303&&(c[53]==1&&((0,c[144%Math.pow(3,1)+42])((((0,c[4])(c[67],(0,c[6])(),c[74]),c[4])(c[Math.pow(4,3)*110-7009],(0,c[9])(),c[68]),c[3])(c[50],c[31]),c[4],c[31],(0,c[6])(),c[68]),/,"(),/)||((0,c[3])(c[56],c[26])<=(0,c[13])(c[26]),(0,c[36])((0,c[75])(c[64],c[71]),c[68],c[1],c[71])))}}catch(d){return"enhanced_except_yJsBt-T-_w8_"+
a}return Array.prototype.join.call(b,"")};
g.Pw=function(a){this.name=a};
Jma=function(a){this.qa=Q(a)};
Kma=function(a){this.qa=Q(a)};
Lma=function(a){this.qa=Q(a)};
Mma=function(a){this.qa=Q(a)};
Qw=function(a){this.qa=Q(a)};
Rw=function(a){this.qa=Q(a)};
Nma=function(a){this.qa=Q(a)};
Oma=function(a){this.qa=Q(a)};
Sw=function(a){this.qa=Q(a)};
Pma=function(a){this.qa=Q(a)};
Qma=function(a){this.qa=Q(a)};
Tw=function(a){this.qa=Q(a)};
Uw=function(a){this.qa=Q(a)};
Vw=function(a){this.qa=Q(a)};
Rma=function(a){this.qa=Q(a)};
Sma=function(a){this.qa=Q(a)};
Tma=function(a){this.qa=Q(a)};
Uma=function(a){this.qa=Q(a)};
Vma=function(a){this.qa=Q(a)};
Ww=function(a){this.qa=Q(a)};
Wma=function(a){this.qa=Q(a)};
Xma=function(a){this.qa=Q(a)};
Yma=function(a){this.qa=Q(a)};
Zma=function(a){this.qa=Q(a)};
Xw=function(a){this.qa=Q(a)};
Yw=function(a){this.qa=Q(a)};
$ma=function(a){this.qa=Q(a)};
ana=function(a){this.qa=Q(a)};
bna=function(a){this.qa=Q(a)};
cna=function(a){this.qa=Q(a)};
dna=function(a){this.qa=Q(a)};
ena=function(a){this.qa=Q(a)};
Zw=function(a){this.qa=Q(a)};
fna=function(a){this.qa=Q(a)};
$w=function(a){this.qa=Q(a)};
gna=function(a){this.qa=Q(a)};
hna=function(a){this.qa=Q(a)};
ina=function(a){this.qa=Q(a)};
jna=function(a){this.qa=Q(a)};
kna=function(a){this.qa=Q(a)};
lna=function(a){this.qa=Q(a)};
mna=function(a){this.qa=Q(a)};
nna=function(a){this.qa=Q(a)};
ona=function(a){this.qa=Q(a)};
pna=function(a){this.qa=Q(a)};
ax=function(a){this.qa=Q(a)};
qna=function(a){this.qa=Q(a)};
rna=function(a){this.qa=Q(a)};
bx=function(a){this.qa=Q(a)};
cx=function(a){this.qa=Q(a)};
dx=function(a){this.qa=Q(a)};
ex=function(a){this.qa=Q(a)};
fx=function(a){this.qa=Q(a)};
sna=function(a){this.qa=Q(a)};
gx=function(a){this.qa=Q(a)};
hx=function(a){this.qa=Q(a)};
tna=function(a){this.qa=Q(a)};
ix=function(a){this.qa=Q(a)};
jx=function(a){this.qa=Q(a)};
una=function(a){this.qa=Q(a)};
kx=function(a){this.qa=Q(a)};
lx=function(a){this.qa=Q(a)};
mx=function(a){this.qa=Q(a)};
vna=function(a){this.qa=Q(a)};
wna=function(a){this.qa=Q(a)};
nx=function(a){this.qa=Q(a)};
xna=function(a){this.qa=Q(a)};
yna=function(a){this.qa=Q(a)};
zna=function(a){this.qa=Q(a)};
Ana=function(a){this.qa=Q(a)};
Bna=function(a){this.qa=Q(a)};
ox=function(a){this.qa=Q(a)};
Cna=function(a){this.qa=Q(a)};
Dna=function(a){this.qa=Q(a)};
Ena=function(a){this.qa=Q(a)};
px=function(a){this.qa=Q(a)};
Fna=function(a){this.qa=Q(a)};
Gna=function(a){this.qa=Q(a)};
Hna=function(a){this.qa=Q(a)};
qx=function(a){this.qa=Q(a)};
Ina=function(a){this.qa=Q(a)};
rx=function(a){this.qa=Q(a)};
Jna=function(a,b){return Pk(a,1,b)};
sx=function(a){this.qa=Q(a)};
tx=function(a){this.qa=Q(a)};
ux=function(a){this.qa=Q(a)};
vx=function(a){this.qa=Q(a)};
wx=function(a){this.qa=Q(a)};
xx=function(a){this.qa=Q(a)};
Kna=function(a){this.qa=Q(a)};
Lna=function(a){this.qa=Q(a)};
yx=function(a){this.qa=Q(a)};
Mna=function(a){this.qa=Q(a)};
zx=function(a){this.qa=Q(a)};
Ax=function(a){this.qa=Q(a)};
Bx=function(a){this.qa=Q(a)};
Cx=function(a){this.qa=Q(a)};
Dx=function(a){this.qa=Q(a)};
Ex=function(a){this.qa=Q(a)};
Fx=function(a){this.qa=Q(a)};
Gx=function(a){this.qa=Q(a)};
Nna=function(a){this.qa=Q(a)};
Ona=function(a){this.qa=Q(a)};
Pna=function(a){this.qa=Q(a)};
Qna=function(a){this.qa=Q(a)};
Rna=function(a){this.qa=Q(a)};
Hx=function(a){this.qa=Q(a)};
Sna=function(a){this.qa=Q(a)};
Tna=function(a){this.qa=Q(a)};
Una=function(a){this.qa=Q(a)};
Vna=function(a){this.qa=Q(a)};
Ix=function(a){this.qa=Q(a)};
Wna=function(a){this.qa=Q(a)};
Xna=function(a){this.qa=Q(a)};
Yna=function(a){this.qa=Q(a)};
Jx=function(a){this.qa=Q(a)};
Kx=function(a){this.qa=Q(a)};
Lx=function(a){this.qa=Q(a)};
Mx=function(a){this.qa=Q(a)};
Nx=function(a){this.qa=Q(a)};
Ox=function(a){this.qa=Q(a)};
Zna=function(a){this.qa=Q(a)};
Px=function(a){this.qa=Q(a)};
Qx=function(a){this.qa=Q(a)};
Rx=function(a){this.qa=Q(a)};
Sx=function(a){this.qa=Q(a)};
$na=function(a){this.qa=Q(a)};
$x=function(a){this.qa=Q(a)};
ay=function(a){this.qa=Q(a)};
by=function(a){this.qa=Q(a)};
aoa=function(a){this.qa=Q(a)};
boa=function(a){this.qa=Q(a)};
cy=function(a){this.qa=Q(a)};
dy=function(a){this.qa=Q(a)};
ey=function(a){this.qa=Q(a)};
fy=function(a){this.qa=Q(a)};
gy=function(a){this.qa=Q(a)};
hy=function(a){this.qa=Q(a)};
iy=function(a){this.qa=Q(a)};
jy=function(a){this.qa=Q(a)};
coa=function(a){this.qa=Q(a)};
doa=function(a){this.qa=Q(a)};
ky=function(a){this.qa=Q(a)};
eoa=function(a){this.qa=Q(a)};
foa=function(a){this.qa=Q(a)};
goa=function(a){this.qa=Q(a)};
ly=function(a){this.qa=Q(a)};
hoa=function(a){this.qa=Q(a)};
ioa=function(a){this.qa=Q(a)};
joa=function(a){this.qa=Q(a)};
my=function(a){this.qa=Q(a)};
koa=function(a){this.qa=Q(a)};
ny=function(a){this.qa=Q(a)};
oy=function(a){this.qa=Q(a)};
py=function(a){this.qa=Q(a)};
loa=function(a){this.qa=Q(a)};
qy=function(a){this.qa=Q(a)};
moa=function(a){this.qa=Q(a)};
ry=function(a){this.qa=Q(a)};
sy=function(a){this.qa=Q(a)};
noa=function(a){this.qa=Q(a)};
ty=function(a){this.qa=Q(a)};
ooa=function(a){this.qa=Q(a)};
uy=function(a){this.qa=Q(a)};
poa=function(a){this.qa=Q(a)};
qoa=function(a){this.qa=Q(a)};
roa=function(a){this.qa=Q(a)};
vy=function(a){this.qa=Q(a)};
soa=function(a){this.qa=Q(a)};
wy=function(a){this.qa=Q(a)};
yy=function(a){this.qa=Q(a)};
zy=function(a){this.qa=Q(a)};
toa=function(a){this.qa=Q(a)};
Ay=function(a){this.qa=Q(a)};
uoa=function(a){this.qa=Q(a)};
By=function(a){this.qa=Q(a)};
Cy=function(a){this.qa=Q(a)};
Dy=function(a){this.qa=Q(a)};
Ey=function(a){this.qa=Q(a)};
g.Fy=function(a){this.qa=Q(a)};
g.Gy=function(a){this.qa=Q(a)};
Hy=function(a){this.qa=Q(a)};
Iy=function(a){this.qa=Q(a)};
Jy=function(a){this.qa=Q(a)};
voa=function(a){this.qa=Q(a)};
Ky=function(a){this.qa=Q(a)};
Ly=function(a){this.qa=Q(a)};
My=function(a){this.qa=Q(a)};
woa=function(a){this.qa=Q(a)};
Ny=function(a){this.qa=Q(a)};
Oy=function(a){this.qa=Q(a)};
Py=function(a){this.qa=Q(a)};
Qy=function(a){this.qa=Q(a)};
xoa=function(a){this.qa=Q(a)};
Ry=function(a){this.qa=Q(a)};
Sy=function(a){this.qa=Q(a)};
Ty=function(a){this.qa=Q(a)};
Uy=function(a){this.qa=Q(a)};
Vy=function(a){this.qa=Q(a)};
yoa=function(a){this.qa=Q(a)};
Wy=function(a){this.qa=Q(a)};
zoa=function(a){this.qa=Q(a)};
Xy=function(a){this.qa=Q(a)};
Aoa=function(a){this.qa=Q(a)};
Boa=function(a){this.qa=Q(a)};
Yy=function(a){this.qa=Q(a)};
Zy=function(a){this.qa=Q(a)};
Coa=function(a){this.qa=Q(a)};
$y=function(a){this.qa=Q(a)};
az=function(a){this.qa=Q(a)};
bz=function(a){this.qa=Q(a)};
Doa=function(a){this.qa=Q(a)};
Eoa=function(a){this.qa=Q(a)};
Foa=function(a){this.qa=Q(a)};
Goa=function(a){this.qa=Q(a)};
cz=function(a){this.qa=Q(a)};
dz=function(a){this.qa=Q(a)};
Hoa=function(a){this.qa=Q(a)};
ez=function(a){this.qa=Q(a)};
Ioa=function(a){this.qa=Q(a)};
Joa=function(a){this.qa=Q(a)};
Koa=function(a){this.qa=Q(a)};
Loa=function(a){this.qa=Q(a)};
Moa=function(a){this.qa=Q(a)};
fz=function(a){this.qa=Q(a)};
Noa=function(a){this.qa=Q(a)};
Ooa=function(a){this.qa=Q(a)};
Poa=function(a){this.qa=Q(a)};
gz=function(a){this.qa=Q(a)};
hz=function(a){this.qa=Q(a)};
Qoa=function(a){this.qa=Q(a)};
iz=function(a){this.qa=Q(a)};
Roa=function(a){this.qa=Q(a)};
Soa=function(a){this.qa=Q(a)};
jz=function(a){this.qa=Q(a)};
Toa=function(a){this.qa=Q(a)};
Uoa=function(a){this.qa=Q(a)};
Voa=function(a){this.qa=Q(a)};
Woa=function(a){this.qa=Q(a)};
kz=function(a){this.qa=Q(a)};
lz=function(a){this.qa=Q(a)};
mz=function(a){this.qa=Q(a)};
nz=function(a){this.qa=Q(a)};
Xoa=function(a){this.qa=Q(a)};
Yoa=function(a){this.qa=Q(a)};
oz=function(a){this.qa=Q(a)};
Zoa=function(a){this.qa=Q(a)};
$oa=function(a){this.qa=Q(a)};
apa=function(a){this.qa=Q(a)};
bpa=function(a){this.qa=Q(a)};
pz=function(a){this.qa=Q(a)};
cpa=function(a){this.qa=Q(a)};
dpa=function(a){this.qa=Q(a)};
epa=function(a){this.qa=Q(a)};
fpa=function(a){this.qa=Q(a)};
gpa=function(a){this.qa=Q(a)};
hpa=function(a){this.qa=Q(a)};
ipa=function(a){this.qa=Q(a)};
jpa=function(a){this.qa=Q(a)};
kpa=function(a){this.qa=Q(a)};
qz=function(a){this.qa=Q(a)};
lpa=function(a){this.qa=Q(a)};
rz=function(a){this.qa=Q(a)};
sz=function(a){this.qa=Q(a)};
mpa=function(a){this.qa=Q(a)};
npa=function(a){this.qa=Q(a)};
tz=function(a){this.qa=Q(a)};
opa=function(a){this.qa=Q(a)};
ppa=function(a){this.qa=Q(a)};
qpa=function(a){this.qa=Q(a)};
rpa=function(a){this.qa=Q(a)};
spa=function(a){this.qa=Q(a)};
tpa=function(a){this.qa=Q(a)};
upa=function(a){this.qa=Q(a)};
vpa=function(a){this.qa=Q(a)};
uz=function(a){this.qa=Q(a)};
wpa=function(a){this.qa=Q(a)};
xpa=function(a){this.qa=Q(a)};
ypa=function(a){this.qa=Q(a)};
vz=function(a){this.qa=Q(a)};
zpa=function(a){this.qa=Q(a)};
Apa=function(a){this.qa=Q(a)};
wz=function(a){this.qa=Q(a)};
xz=function(a){this.qa=Q(a)};
Bpa=function(a){this.qa=Q(a)};
Cpa=function(a){this.qa=Q(a)};
yz=function(a){this.qa=Q(a)};
zz=function(a){this.qa=Q(a)};
Dpa=function(a){this.qa=Q(a)};
Az=function(a){this.qa=Q(a)};
Epa=function(a){this.qa=Q(a)};
Bz=function(a){this.qa=Q(a)};
Fpa=function(a){this.qa=Q(a)};
Cz=function(a){this.qa=Q(a)};
Dz=function(a){this.qa=Q(a)};
Gpa=function(a){this.qa=Q(a)};
Hpa=function(a){this.qa=Q(a)};
Ez=function(a){this.qa=Q(a)};
Ipa=function(a){this.qa=Q(a)};
Jpa=function(a){this.qa=Q(a)};
Fz=function(a){this.qa=Q(a)};
Kpa=function(a){this.qa=Q(a)};
Lpa=function(a){this.qa=Q(a)};
Mpa=function(a){this.qa=Q(a)};
Npa=function(a){this.qa=Q(a)};
Opa=function(a){this.qa=Q(a)};
Ppa=function(a){this.qa=Q(a)};
Qpa=function(a){this.qa=Q(a)};
Rpa=function(a){this.qa=Q(a)};
Spa=function(a){this.qa=Q(a)};
Tpa=function(a){this.qa=Q(a)};
Gz=function(a){this.qa=Q(a)};
Upa=function(a){this.qa=Q(a)};
Vpa=function(a){this.qa=Q(a)};
Hz=function(a){this.qa=Q(a)};
Wpa=function(a){this.qa=Q(a)};
Iz=function(a){this.qa=Q(a)};
Jz=function(a){this.qa=Q(a)};
Xpa=function(a){this.qa=Q(a)};
Ypa=function(a){this.qa=Q(a)};
Kz=function(a){this.qa=Q(a)};
Zpa=function(a){this.qa=Q(a)};
$pa=function(a,b){gk(a,lz,1,b)};
Lz=function(a){this.qa=Q(a)};
aqa=function(a,b){return gk(a,lz,1,b)};
Mz=function(a){this.qa=Q(a)};
bqa=function(a,b){return gk(a,lz,2,b)};
Nz=function(a){this.qa=Q(a)};
Oz=function(a){this.qa=Q(a)};
Pz=function(a){this.qa=Q(a)};
Qz=function(a){this.qa=Q(a)};
cqa=function(a){this.qa=Q(a)};
Rz=function(a){this.qa=Q(a)};
Sz=function(a){var b=new Rz;return S(b,1,a)};
Tz=function(a,b){return S(a,2,b)};
Uz=function(a){this.qa=Q(a)};
dqa=function(a){this.qa=Q(a)};
Vz=function(a){this.qa=Q(a)};
Wz=function(a,b){jk(a,68,Rz,b)};
eqa=function(a){this.qa=Q(a)};
fqa=function(a){this.qa=Q(a)};
Xz=function(a){this.qa=Q(a)};
Yz=function(a){this.qa=Q(a)};
Zz=function(a){this.qa=Q(a)};
gqa=function(a){this.qa=Q(a)};
$z=function(a){this.qa=Q(a)};
hqa=function(a){this.qa=Q(a)};
iqa=function(a){this.qa=Q(a)};
jqa=function(a){this.qa=Q(a)};
aA=function(a){this.qa=Q(a)};
kqa=function(a){this.qa=Q(a)};
lqa=function(a){this.qa=Q(a)};
mqa=function(a){this.qa=Q(a)};
bA=function(a){this.qa=Q(a)};
nqa=function(a){this.qa=Q(a)};
oqa=function(a){this.qa=Q(a)};
cA=function(a){this.qa=Q(a)};
dA=function(a){this.qa=Q(a)};
pqa=function(a){this.qa=Q(a)};
eA=function(a){this.qa=Q(a)};
qqa=function(a){this.qa=Q(a)};
rqa=function(a){this.qa=Q(a)};
fA=function(a){this.qa=Q(a,497)};
sqa=function(a){this.qa=Q(a)};
gA=function(a){this.qa=Q(a)};
tqa=function(a){this.qa=Q(a)};
uqa=function(){return g.Wa("yt.ads.biscotti.lastId_")||""};
vqa=function(a){g.Va("yt.ads.biscotti.lastId_",a)};
iA=function(){var a=arguments;a.length>1?hA[a[0]]=a[1]:a.length===1&&Object.assign(hA,a[0])};
g.jA=function(a,b){return a in hA?hA[a]:b};
kA=function(a){var b=hA.EXPERIMENT_FLAGS;return b?b[a]:void 0};
wqa=function(a){lA.forEach(function(b){return b(a)})};
g.nA=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.mA(b)}}:a};
g.mA=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.jA("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),iA("ERRORS",b));wqa(a)};
oA=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.jA("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),iA("ERRORS",f))};
pA=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(f.length===1&&f[0]||f.length===2)try{var h=xqa(f[0]||""),l=xqa(f[1]||"");if(h in c){var m=c[h];Array.isArray(m)?g.Lb(m,l):c[h]=[m,l]}else c[h]=l}catch(r){var n=r,p=f[0],q=String(pA);n.args=[{key:p,value:f[1],query:a,method:yqa===q?"unchanged":q}];zqa.hasOwnProperty(p)||oA(n)}}return c};
qA=function(a){var b=[];g.Tc(a,function(c,d){var e=g.Ze(d);g.Zb(Array.isArray(c)?c:[c],function(f){f==""?b.push(e):b.push(e+"="+g.Ze(f))})});
return b.join("&")};
rA=function(a){a.charAt(0)==="?"&&(a=a.substring(1));return pA(a,"&")};
Aqa=function(a){return a.split(",").map(function(b){return rA(b)})};
g.sA=function(a){return a.indexOf("?")!==-1?(a=(a||"").split("#")[0],a=a.split("?",2),rA(a.length>1?a[1]:a[0])):{}};
g.tA=function(a,b){return Bqa(a,b||{},!0)};
uA=function(a,b){return Bqa(a,b||{},!1)};
Bqa=function(a,b,c){var d=a.split("#",2);a=d[0];d=d.length>1?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=rA(e[1]||"");for(var f in b)if(c||!g.dd(e,f))e[f]=b[f];return g.to(a,e)+d};
vA=function(a){if(!b)var b=window.location.href;var c=g.xn(1,a),d=g.yn(a);c&&d?(a=a.match(wn),b=b.match(wn),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.yn(b)===d&&(Number(g.xn(4,b))||null)===(Number(g.xn(4,a))||null):!0;return a};
wA=function(a){a||(a=document.location.href);a=g.xn(1,a);return a!==null&&a==="https"};
xA=function(a){a=Cqa(a);return a===null?!1:a[0]==="com"&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Dqa=function(a){a=Cqa(a);return a===null?!1:a[1]==="google"?!0:a[2]==="google"?a[0]==="au"&&a[1]==="com"?!0:a[0]==="uk"&&a[1]==="co"?!0:!1:!1};
Cqa=function(a){a=g.yn(a);return a!==null?a.split(".").reverse():null};
xqa=function(a){return a&&a.match(Eqa)?a:$e(a)};
yA=function(a){var b=Fqa;a=a===void 0?uqa():a;var c=Object,d=c.assign,e=Gqa(b);var f=b.j;try{var h=f.screenX;var l=f.screenY}catch(C){}try{var m=f.outerWidth;var n=f.outerHeight}catch(C){}try{var p=f.innerWidth;var q=f.innerHeight}catch(C){}try{var r=f.screenLeft;var t=f.screenTop}catch(C){}try{p=f.innerWidth,q=f.innerHeight}catch(C){}try{var u=f.screen.availWidth;var w=f.screen.availTop}catch(C){}f=[r,t,h,l,u,w,m,n,p,q];h=lia(!1,b.j.top);l={};var A=A===void 0?g.Ua:A;m=new fla;"SVGElement"in A&&"createElementNS"in
A.document&&m.set(0);n=xha();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=gla(m);b=(l.bc=A,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Rr(b.B),l.wgl=!!Or.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
Gqa=function(a){var b={};b.dt=Hqa;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=d===void 0?Or:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=(f=Or.screen)==null?void 0:f.height;var h;b.u_w=(h=Or.screen)==null?void 0:h.width;var l;b.u_ah=(l=Or.screen)==null?void 0:l.availHeight;var m;b.u_aw=(m=Or.screen)==null?void 0:m.availWidth;var n;b.u_cd=(n=Or.screen)==null?void 0:
n.colorDepth}catch(p){}return b};
Jqa=function(){if(!Iqa)return null;var a=Iqa();return"open"in a?a:null};
g.AA=function(a){switch(zA(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
zA=function(a){return a&&"status"in a?a.status:-1};
g.BA=function(a,b){typeof a==="function"&&(a=g.nA(a));return window.setTimeout(a,b)};
g.CA=function(a,b){typeof a==="function"&&(a=g.nA(a));return window.setInterval(a,b)};
g.DA=function(a){window.clearTimeout(a)};
g.EA=function(a){window.clearInterval(a)};
g.FA=function(a){a=Kqa(a);return typeof a==="string"&&a==="false"?!1:!!a};
g.GA=function(a,b){a=Kqa(a);return a===void 0&&b!==void 0?b:Number(a||0)};
Lqa=function(){return g.jA("EXPERIMENTS_TOKEN","")};
Kqa=function(a){return g.jA("EXPERIMENT_FLAGS",{})[a]};
Mqa=function(){for(var a=[],b=g.jA("EXPERIMENTS_FORCED_FLAGS",{}),c=g.v(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.jA("EXPERIMENT_FLAGS",{});d=g.v(Object.keys(c));for(var e=d.next();!e.done;e=d.next())e=e.value,e.startsWith("force_")&&b[e]===void 0&&a.push({key:e,value:String(c[e])});return a};
Pqa=function(a,b,c,d,e,f,h,l){function m(){(n&&"readyState"in n?n.readyState:0)===4&&b&&g.nA(b)(n)}
c=c===void 0?"GET":c;d=d===void 0?"":d;l=l===void 0?!1:l;var n=Jqa();if(!n)return null;"onloadend"in n?n.addEventListener("loadend",m,!1):n.onreadystatechange=m;g.FA("debug_forward_web_query_parameters")&&(a=Nqa(a,window.location.search));n.open(c,a,!0);f&&(n.responseType=f);h&&(n.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(d instanceof FormData));if(e=Oqa(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){oA(q)}}n.send(d);return n};
Oqa=function(a,b){b=b===void 0?{}:b;var c=vA(a),d=g.jA("INNERTUBE_CLIENT_NAME"),e=g.FA("web_ajax_ignore_global_headers_if_set"),f;for(f in Qqa){var h=g.jA(Qqa[f]),l=f==="X-Goog-AuthUser"||f==="X-Goog-PageId";f!=="X-Goog-Visitor-Id"||h||(h=g.jA("VISITOR_DATA"));var m;if(!(m=!h)){if(!(m=c||(g.yn(a)?!1:!0))){m=a;var n;if(n=g.FA("add_auth_headers_to_remarketing_google_dot_com_ping")&&f==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY")&&Dqa(m))m=vn(g.xn(5,m))||"",m=m.split("/"),
m="/"+(m.length>1?m[1]:""),n=m==="/pagead";m=n?!0:!1}m=!m}m||e&&b[f]!==void 0||d==="TVHTML5_UNPLUGGED"&&l||(b[f]=h)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!g.yn(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!g.yn(a)){try{var p=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(q){}p&&(b["X-YouTube-Time-Zone"]=p)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&g.yn(a)||(b["X-YouTube-Ad-Signals"]=
qA(yA()));return b};
Sqa=function(a,b){var c=g.yn(a);g.FA("debug_handle_relative_url_for_query_forward_killswitch")||!c&&vA(a)&&(c=document.location.hostname);var d=vn(g.xn(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=rA(b),f={};g.Zb(Rqa,function(h){e[h]&&(f[h]=e[h])});
return uA(a,f)};
Tqa=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.HA(a,b)};
g.HA=function(a,b){var c=b.format||"JSON";a=Uqa(a,b);var d=Vqa(a,b),e=!1,f=Wqa(a,function(m){if(!e){e=!0;l&&g.DA(l);var n=g.AA(m),p=null,q=400<=m.status&&m.status<500,r=500<=m.status&&m.status<600;if(n||q||r)p=Xqa(a,c,m,b.convertToSafeHtml);n&&(n=Yqa(c,m,p));p=p||{};q=b.context||g.Ua;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&&d>0){var h=b.onTimeout;var l=g.BA(function(){e||(e=!0,f.abort(),g.DA(l),h.call(b.context||g.Ua,f))},d)}return f};
Uqa=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.jA("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=g.tA(a,b);return a};
Vqa=function(a,b){var c=g.jA("XSRF_FIELD_NAME"),d=g.jA("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.jA("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.yn(a)&&!b.withCredentials&&g.yn(a)!==document.location.hostname||b.method!=="POST"||l&&l!=="application/x-www-form-urlencoded"||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);(g.FA("ajax_parse_query_data_only_when_filled")&&f&&Object.keys(f).length>0||f)&&typeof e==="string"&&(e=rA(e),g.md(e,f),e=b.postBodyFormat&&
b.postBodyFormat==="JSON"?JSON.stringify(e):g.Dn(e));f=e||f&&!g.gd(f);!Zqa&&f&&b.method!=="POST"&&(Zqa=!0,g.mA(Error("AJAX request with postData should use POST")));return e};
Xqa=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,oA(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&a.indexOf("json")>=0&&(f.substring(0,5)===")]}'\n"&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?$qa(a):null)e={},g.Zb(a.getElementsByTagName("*"),function(h){e[h.tagName]=ara(h)})}d&&bra(e);
return e};
bra=function(a){if(g.db(a))for(var b in a)b==="html_content"||Faa(b,"_html")?a[b]=te(a[b]):bra(a[b])};
Yqa=function(a,b,c){if(b&&b.status===204)return!0;switch(a){case "JSON":return!!c;case "XML":return Number(c&&c.return_code)===0;case "RAW":return!0;default:return!!c}};
$qa=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null};
ara=function(a){var b="";g.Zb(a.childNodes,function(c){b+=c.nodeValue});
return b};
JA=function(a,b){var c=g.jd(b),d;return(new g.fg(function(e,f){c.onSuccess=function(h){g.AA(h)?e(new cra(h)):f(new IA("Request failed, status="+zA(h),"net.badstatus",h))};
c.onError=function(h){f(new IA("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new IA("Request timed out","net.timeout",h))};
d=g.HA(a,c)})).Pl(function(e){if(e instanceof lg){var f;
(f=d)==null||f.abort()}return ig(e)})};
g.KA=function(a,b,c,d){function e(l,m,n){return l.Pl(function(p){if(m<=0||zA(p.xhr)===403)return ig(new IA("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=h>0?Math.min(h,p):p;return f(n).then(function(){return e(JA(a,b),m-1,q)})})}
function f(l){return new g.fg(function(m){setTimeout(m,l)})}
var h=h===void 0?-1:h;return e(JA(a,b),c-1,d)};
IA=function(a,b,c){wb.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
cra=function(a){this.xhr=a};
LA=function(a){this.j=a===void 0?null:a;this.C=0;this.B=null};
MA=function(a){var b=new LA;a=a===void 0?null:a;b.C=2;b.B=a===void 0?null:a;return b};
NA=function(a){var b=new LA;a=a===void 0?null:a;b.C=1;b.B=a===void 0?null:a;return b};
g.QA=function(a,b,c,d,e){OA||PA.set(""+a,b,{aG:c,path:"/",domain:d===void 0?"youtube.com":d,secure:e===void 0?!1:e})};
g.RA=function(a,b){if(!OA)return PA.get(""+a,b)};
g.dra=function(a,b,c){OA||PA.remove(""+a,b===void 0?"/":b,c===void 0?"youtube.com":c)};
era=function(){if(g.FA("embeds_web_enable_cookie_detection_fix")){if(!g.Ua.navigator.cookieEnabled)return!1}else if(!PA.isEnabled())return!1;if(!PA.isEmpty())return!0;g.FA("embeds_web_enable_cookie_detection_fix")?PA.set("TESTCOOKIESENABLED","1",{aG:60,Wda:"none",secure:!0}):PA.set("TESTCOOKIESENABLED","1",{aG:60});if(PA.get("TESTCOOKIESENABLED")!=="1")return!1;PA.remove("TESTCOOKIESENABLED");return!0};
g.V=function(a,b){if(a)return a[b.name]};
fra=function(a){var b=g.jA("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(zn(a)));return a};
gra=function(a,b){var c={};g.FA("web_api_key_killswitch")&&(g.jA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(b==null?0:b.Authorization)||(c.key=g.jA("INNERTUBE_API_KEY")));g.FA("json_condensed_response")&&(c.prettyPrint="false");return a=uA(a,c)};
hra=function(a,b){var c=c===void 0?{}:c;a={method:b===void 0?"POST":b,mode:vA(a)?"same-origin":"cors",credentials:vA(a)?"same-origin":"include"};b={};for(var d=g.v(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);Object.keys(b).length>0&&(a.headers=b);return a};
ira=function(){var a=/Chrome\/(\d+)/.exec(g.oc());return a?parseFloat(a[1]):NaN};
jra=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.oc());if(!a)return NaN;var b=[];a=g.v(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),c>=0&&b.push(c);return parseFloat(b.join("."))};
TA=function(){return g.SA("android")&&g.SA("chrome")&&!(g.SA("trident/")||g.SA("edge/"))&&!g.SA("cobalt")};
kra=function(){return g.SA("armv7")||g.SA("aarch64")||g.SA("android")};
g.UA=function(){return g.SA("cobalt")};
VA=function(){return g.SA("cobalt")&&g.SA("appletv")};
lra=function(){return g.SA("(ps3; leanback shell)")||g.SA("ps3")&&g.UA()};
mra=function(){return g.SA("(ps4; leanback shell)")||g.SA("ps4")&&g.UA()};
g.nra=function(){return g.UA()&&(g.SA("ps4 vr")||g.SA("ps4 pro vr"))};
WA=function(){var a=/WebKit\/([0-9]+)/.exec(g.oc());return!!(a&&parseInt(a[1],10)>=600)};
ora=function(){var a=/WebKit\/([0-9]+)/.exec(g.oc());return!!(a&&parseInt(a[1],10)>=602)};
pra=function(){return g.SA("iemobile")||g.SA("windows phone")&&g.SA("edge")};
qra=function(){return(XA||YA)&&g.SA("applewebkit")&&!g.SA("version")&&(!g.SA("safari")||g.SA("gsa/"))};
$A=function(){return g.ZA&&g.SA("version/")};
rra=function(){return g.SA("smart-tv")&&g.SA("samsung")};
g.SA=function(a){var b=g.oc();return b?b.toLowerCase().indexOf(a)>=0:!1};
sra=function(){return rfa()||qra()||$A()?!0:g.jA("EOM_VISITOR_DATA")?!1:!0};
aB=function(a,b){return b===void 0||b===null?a:b==="1"||b===!0||b===1||b==="True"?!0:!1};
bB=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
cB=function(a,b){return b===void 0||b===null?a:Number(b)};
dB=function(a,b){return b===void 0||b===null?a:b.toString()};
ura=function(a,b){if(b){if(a==="fullwidth")return Infinity;if(a==="fullheight")return 0}return a&&(b=a.match(tra))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&a>0)?b/a:NaN};
eB=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};
wra=function(a){return vra(a,!1)==="EMBEDDED_PLAYER_MODE_PFL"};
g.fB=function(a){return a==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||a==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1};
vra=function(a,b){b=(b===void 0?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?bB(b,c.embeddedPlayerMode,xra):b};
yra=function(a){wb.call(this,a.message||a.description||a.name);this.isMissing=a instanceof gB;this.isTimeout=a instanceof IA&&a.errorCode=="net.timeout";this.isCanceled=a instanceof lg};
gB=function(){wb.call(this,"Biscotti ID is missing from server")};
zra=function(){if(g.FA("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!sra())return Error("User has not consented - not fetching biscotti id.");var a=g.jA("PLAYER_VARS",{});if(g.hd(a,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(wra(a))return Error("Biscotti id fetching has been disabled for pfl.")};
Dra=function(){var a=zra();if(a!==void 0)return ig(a);hB||(hB=JA("//googleads.g.doubleclick.net/pagead/id",Ara).then(Bra).Pl(function(b){return Cra(2,b)}));
return hB};
Bra=function(a){a=a.xhr.responseText;if(!ec(a,")]}'"))throw new gB;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new gB;a=a.id;vqa(a);hB=NA(a);Era(18E5,2);return a};
Cra=function(a,b){b=new yra(b);vqa("");hB=MA(b);a>0&&Era(12E4,a-1);throw b;};
Era=function(a,b){g.BA(function(){JA("//googleads.g.doubleclick.net/pagead/id",Ara).then(Bra,function(c){return Cra(b,c)}).Pl(g.Jd)},a)};
Fra=function(){try{var a=g.Wa("yt.ads.biscotti.getId_");return a?a():Dra()}catch(b){return ig(b)}};
Hra=function(a){a&&(a.dataset?a.dataset[Gra()]="true":Nba(a))};
Ira=function(a){return a?a.dataset?a.dataset[Gra()]:a.getAttribute("data-loaded"):null};
Gra=function(){return Jra.loaded||(Jra.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))};
Lra=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=Kra+"VisibilityState";if(b in a)return a[b]};
iB=function(a,b){var c;Ys(a,function(d){c=b[d];return!!c});
return c};
Ura=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()};
lB=function(a){var b;g.jB()?kB()==a&&(b=document):b=a;return b&&(a=iB(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
Vra=function(a){return g.Cb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Wra=function(){var a=document;return g.Cb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.jB=function(){return!!iB(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
kB=function(a){a=a===void 0?!1:a;var b=iB(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
mB=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 Xra||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&c.nodeType==3&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;
if(d)try{d=d.nodeName?d:null}catch(e){d=null}else this.type=="mouseover"?d=a.fromElement:this.type=="mouseout"&&(d=a.toElement);this.relatedTarget=d;this.clientX=a.clientX!=void 0?a.clientX:a.pageX;this.clientY=a.clientY!=void 0?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||(this.type=="keypress"?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){}};
Yra=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}};
Zra=function(a,b,c,d){d=d===void 0?{}:d;a.addEventListener&&(b!="mouseenter"||"onmouseenter"in document?b!="mouseleave"||"onmouseenter"in document?b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return fd(nB,function(e){var f=typeof e[4]==="boolean"&&e[4]==!!d,h=g.db(e[4])&&g.db(d)&&g.id(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.oB=function(a,b,c,d){d=d===void 0?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Zra(a,b,c,d);if(e)return e;e=++$ra.count+"";var f=!(b!="mouseenter"&&b!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new mB(l);if(!Qf(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new mB(l);
l.currentTarget=a;return c.call(a,l)};
h=g.nA(h);a.addEventListener?(b=="mouseenter"&&f?b="mouseover":b=="mouseleave"&&f?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),asa()||typeof d==="boolean"?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);nB[e]=[a,b,c,h,d];return e};
csa=function(a){return bsa(a,function(b){return g.Jv(b,"ytp-ad-has-logging-urls")})};
bsa=function(a,b){var c=document.body||document;return g.oB(c,"click",function(d){var e=Qf(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.pB=function(a){a&&(typeof a=="string"&&(a=[a]),g.Zb(a,function(b){if(b in nB){var c=nB[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?asa()||typeof c==="boolean"?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete nB[b]}}))};
dsa=function(a){for(var b in nB)nB[b][0]==a&&g.pB(b)};
qB=function(a){a=a||window.event;var b;a.composedPath&&typeof a.composedPath==="function"?b=a.composedPath():b=a.path;b&&b.length?a=b[0]:(a=a||window.event,a=a.target||a.srcElement,a.nodeType==3&&(a=a.parentNode));return a};
rB=function(a){this.N=a;this.j=null;this.D=0;this.K=null;this.G=0;this.B=[];for(a=0;a<4;a++)this.B.push(0);this.C=0;this.va=g.oB(window,"mousemove",(0,g.ib)(this.Y,this));this.Z=g.CA((0,g.ib)(this.ra,this),25)};
sB=function(a){g.I.call(this);this.N=[];this.rb=a||this};
tB=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
g.uB=function(a,b){for(;a.N.length;){var c=a.N.pop(),d=void 0;b&&esa()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
vB=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.jd(b);this.assets=a.assets||{};this.attrs=a.attrs||g.jd(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||{}};
fsa=function(a){a instanceof vB||(a=new vB(a));return a};
g.xB=function(a,b,c){var d=c&&c>0?c:0;c=d?Date.now()+d*1E3:0;if((d=d?(0,g.wB)():gsa())&&window.JSON){typeof b!=="string"&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.yB=function(a){var b=gsa(),c=(0,g.wB)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if(typeof d!=="string")try{d=c.get(a)}catch(e){}if(typeof d!=="string")return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
hsa=function(){var a=(0,g.wB)();if(a&&(a=a.B("yt-player-quality")))return a.creation};
g.zB=function(a){try{var b=gsa(),c=(0,g.wB)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.AB=function(){return g.yB("yt-remote-session-screen-id")};
isa=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})};
jsa=function(){if(!g.Ua.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Ua.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Ua.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Ua.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Ua.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
BB=function(){this.C2=!0};
ksa=function(){BB.instance||(BB.instance=new BB);return BB.instance};
lsa=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}};
msa=function(){this.j=g.jA("ALT_PREF_COOKIE_NAME","PREF");this.B=g.jA("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.RA(this.j);a&&this.parse(a)};
g.CB=function(){nsa||(nsa=new msa);return nsa};
g.DB=function(a,b){return!!((osa("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
psa=function(a,b){var c="f"+(Math.floor(a/31)+1);a=1<<a%31;var d=osa(c)||0;d=b?d|a:d&~a;d===0?delete EB[c]:(b=d.toString(16),EB[c]=b.toString())};
qsa=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
rsa=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
osa=function(a){a=EB[a]!==void 0?EB[a].toString():null;return a!=null&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
ssa=function(){var a=g.Ua.navigator;return a?a.connection:void 0};
usa=function(){var a=ssa();if(a){var b=tsa[a.type||"unknown"]||"CONN_UNKNOWN";a=tsa[a.effectiveType||"unknown"]||"CONN_UNKNOWN";b==="CONN_CELLULAR_UNKNOWN"&&a!=="CONN_UNKNOWN"&&(b=a);if(b!=="CONN_UNKNOWN")return b;if(a!=="CONN_UNKNOWN")return a}};
wsa=function(){var a=ssa();if(a!=null&&a.effectiveType)return vsa.hasOwnProperty(a.effectiveType)?vsa[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.FB=function(a){var b=g.Ja.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.ra(b))};
g.LB=function(){try{return g.KB(),!0}catch(a){return!1}};
g.KB=function(a){if(g.jA("DATASYNC_ID")!==void 0)return g.jA("DATASYNC_ID");throw new g.FB("Datasync ID not set",a===void 0?"unknown":a);};
MB=function(){this.j=new WeakMap};
g.OB=function(a,b,c){return NB(b,0,c)};
xsa=function(a){var b=g.Wa("yt.scheduler.instance.addImmediateJob");b?b(a):a()};
PB=function(){MB.apply(this,arguments)};
g.QB=function(){PB.instance||(PB.instance=new PB);return PB.instance};
g.RB=function(){return!!g.Wa("yt.scheduler.instance")};
NB=function(a,b,c){c!==void 0&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Wa("yt.scheduler.instance.addJob");return d?d(a,b,c):c===void 0?(a(),NaN):g.BA(a,c||0)};
SB=function(a,b){(a=g.Wa("yt.scheduler.instance.setPriorityThreshold"))&&a(b)};
TB=function(a){this.j=(a=g.jw(a))?new dw(a):null;this.B=document.domain||window.location.hostname};
zsa=function(){var a;return(a=ysa())==null?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
Csa=function(){var a={};for(UB=new Asa(a.handleError===void 0?Bsa:a.handleError,a.logEvent===void 0?g.VB:a.logEvent);WB.length>0;)switch(a=WB.shift(),a.type){case "ERROR":UB.Gl(a.payload);break;case "EVENT":UB.logEvent(a.eventType,a.payload)}};
YB=function(a){XB||(UB?UB.Gl(a):(WB.push({type:"ERROR",payload:a}),WB.length>10&&WB.shift()))};
ZB=function(a,b){XB||(UB?UB.logEvent(a,b):(WB.push({type:"EVENT",eventType:a,payload:b}),WB.length>10&&WB.shift()))};
$B=function(a){if(a.indexOf(":")>=0)throw Error("Database name cannot contain ':'");};
aC=function(a){return a.substr(0,a.indexOf(":"))||a};
g.bC=function(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?Dsa[a]:c;d=d===void 0?Esa[a]:d;e=e===void 0?Fsa[a]:e;g.FB.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.j=e;Object.setPrototypeOf(this,g.bC.prototype)};
Gsa=function(a,b){g.bC.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},Dsa.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Gsa.prototype)};
cC=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=a;this.objectStore=b;Object.setPrototypeOf(this,cC.prototype)};
Isa=function(a,b,c,d){b=aC(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.bC)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if(e.name==="QuotaExceededError")return new g.bC("QUOTA_EXCEEDED",a);if(g.dC&&e.name==="UnknownError")return new g.bC("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof cC)return new g.bC("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&Hsa.some(function(f){return e.message.includes(f)}))return new g.bC("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if(e.name==="AbortError")return new g.bC("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",yL:e.name})];e.level="WARNING";return e};
g.eC=function(a,b,c){var d=zsa();return new g.bC("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})};
Jsa=function(a){if(!a)throw Error();throw a;};
Ksa=function(a){return a};
fC=function(a){this.j=a};
g.gC=function(a){function b(e){if(d.state.status==="PENDING"){d.state={status:"REJECTED",reason:e};e=g.v(d.B);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
function c(e){if(d.state.status==="PENDING"){d.state={status:"FULFILLED",value:e};e=g.v(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)}};
Msa=function(a,b,c,d,e){try{if(a.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof g.gC?Lsa(a,b,f,d,e):d(f)}catch(h){e(h)}};
Nsa=function(a,b,c,d,e){try{if(a.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof g.gC?Lsa(a,b,f,d,e):d(f)}catch(h){e(h)}};
Lsa=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.gC?Lsa(a,b,f,d,e):d(f)},function(f){e(f)})};
Osa=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)};
Psa=function(a){return new Promise(function(b,c){Osa(a,b,c)})};
hC=function(a){return new g.gC(new fC(function(b,c){Osa(a,b,c)}))};
Qsa=function(a,b){return new g.gC(new fC(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
Rsa=function(a,b){this.request=a;this.cursor=b};
Ssa=function(a){return hC(a).then(function(b){return b?new Rsa(a,b):null})};
g.Tsa=function(a){a.cursor.continue(void 0);return Ssa(a.request)};
Usa=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.iC)());this.B=!1};
g.jC=function(a,b,c){a=a.j.createObjectStore(b,c);return new Vsa(a)};
kC=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
g.nC=function(a,b,c){return g.lC(a,[b],{mode:"readwrite",Pb:!0},function(d){return g.mC(d.objectStore(b),c)})};
g.lC=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,t,u,w;return g.H(function(A){switch(A.j){case 1:var C={mode:"readonly",Pb:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof c==="string"?C.mode=c:Object.assign(C,c);e=C;a.transactionCount++;f=e.Pb?3:1;h=0;case 2:if(l){A.Ja(4);break}h++;m=Math.round((0,g.iC)());g.Ba(A,5);n=a.j.transaction(b,e.mode);C=new oC(n);C=Wsa(C,d);return g.z(A,C,7);case 7:return p=A.B,q=Math.round((0,g.iC)()),Xsa(a,m,q,h,void 0,b.join(),e),A.return(p);case 5:r=g.Da(A);t=Math.round((0,g.iC)());
u=Isa(r,a.j.name,b.join(),a.j.version);if((w=u instanceof g.bC&&!u.j)||h>=f)Xsa(a,m,t,h,u,b.join(),e),l=u;A.Ja(2);break;case 4:return A.return(Promise.reject(l))}})};
Xsa=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.bC&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&ZB("QUOTA_EXCEEDED",{dbName:aC(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.bC&&e.type==="UNKNOWN_ABORT"&&(c-=a.C,c<0&&c>=Math.pow(2,31)&&(c=0),ZB("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),Ysa(a,!1,d,f,b,h.tag),YB(e)):Ysa(a,!0,d,
f,b,h.tag)};
Ysa=function(a,b,c,d,e,f){ZB("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
Vsa=function(a){this.j=a};
g.pC=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
Zsa=function(a,b){return g.qC(a,{query:b},function(c){return c.delete().then(function(){return g.rC(c)})}).then(function(){})};
$sa=function(a,b,c){var d=[];return g.qC(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.getValue()),g.rC(e)}).then(function(){return d})};
bta=function(a){return"getAllKeys"in IDBObjectStore.prototype?hC(a.j.getAllKeys(void 0,void 0)):ata(a)};
ata=function(a){var b=[];return g.cta(a,{query:void 0},function(c){b.push(c.cursor.primaryKey);return g.Tsa(c)}).then(function(){return b})};
g.mC=function(a,b,c){return hC(a.j.put(b,c))};
g.qC=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return dta(a).then(function(d){return Qsa(d,c)})};
g.cta=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 Ssa(a).then(function(e){return Qsa(e,c)})};
oC=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.bC;for(var f=b.j.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(m===null)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)}})})};
Wsa=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.v(d).next().value})};
eta=function(a){this.j=a};
fta=function(a,b,c){var d=[];return g.sC(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.getValue()),g.rC(e)}).then(function(){return d})};
g.sC=function(a,b,c){a=a.j.openCursor(b.query===void 0?null:b.query,b.direction===void 0?"next":b.direction);return dta(a).then(function(d){return Qsa(d,c)})};
tC=function(a,b){this.request=a;this.cursor=b};
dta=function(a){return hC(a).then(function(b){return b?new tC(a,b):null})};
g.rC=function(a){a.cursor.continue(void 0);return dta(a.request)};
gta=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new Usa(h.result,{closed:q}));return r}
var h=b!==void 0?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.Oea,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(t){try{if(t.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(h.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&t.dataLoss!=="none"&&ZB("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:aC(a)});var u=f(),w=new oC(h.transaction);
p&&p(u,function(A){return t.oldVersion<A&&t.newVersion>=A},w);
w.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(){ZB("IDB_UNEXPECTEDLY_CLOSED",{dbName:aC(a),dbVersion:t.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
hta=function(a,b,c){c=c===void 0?{}:c;return gta(a,b,c)};
uC=function(a,b){b=b===void 0?{}:b;var c,d,e,f;return g.H(function(h){if(h.j==1)return g.Ba(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.z(h,Psa(c),4);
if(h.j!=2)return g.Ca(h,0);f=g.Da(h);throw Isa(f,a,"",-1);})};
vC=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0};
ita=function(a,b){return new g.bC("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.wC=function(a,b){if(!b)throw g.eC("openWithToken",aC(a.name));return a.open()};
kta=function(a,b){var c;return g.H(function(d){if(d.j==1)return g.z(d,g.wC(jta,b),2);c=d.B;return d.return(g.lC(c,["databases"],{Pb:!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.mC(f,a).then(function(){})})}))})};
xC=function(a,b){var c;return g.H(function(d){if(d.j==1)return a?g.z(d,g.wC(jta,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})};
lta=function(a,b){var c,d;return g.H(function(e){return e.j==1?(c=[],g.z(e,g.wC(jta,b),2)):e.j!=3?(d=e.B,g.z(e,g.lC(d,["databases"],{Pb:!0,mode:"readonly"},function(f){c.length=0;return g.qC(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return g.rC(h)})}),3)):e.return(c)})};
mta=function(a,b){return lta(function(c){return c.publicName===a&&c.userIdentifier!==void 0},b)};
ota=function(){var a,b,c,d;return g.H(function(e){switch(e.j){case 1:a=zsa();if((b=a)==null?0:b.hasSucceededOnce)return e.return(!0);if(yC&&WA()&&!ora()||g.zC)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,kta(d,nta),4);case 4:return g.z(e,xC("yt-idb-test-do-not-use",nta),5);case 5:return e.return(!0);case 2:return g.Da(e),e.return(!1)}})};
qta=function(){if(pta!==void 0)return pta;XB=!0;return pta=ota().then(function(a){XB=!1;var b;if((b=ysa())!=null&&b.j){var c;b={hasSucceededOnce:((c=zsa())==null?void 0:c.hasSucceededOnce)||a};var d;(d=ysa())==null||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
AC=function(){return g.Wa("ytglobal.idbToken_")||void 0};
g.BC=function(){var a=AC();return a?Promise.resolve(a):qta().then(function(b){(b=b?nta:void 0)&&g.Va("ytglobal.idbToken_",b);return b})};
rta=function(a){if(!g.LB())throw a=new g.bC("AUTH_INVALID",{dbName:a}),YB(a),a;var b=g.KB();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
sta=function(a,b,c,d){var e,f,h,l,m,n;return g.H(function(p){switch(p.j){case 1:return f=(e=Error().stack)!=null?e:"",g.z(p,g.BC(),2);case 2:h=p.B;if(!h)throw l=g.eC("openDbImpl",a,b),g.FA("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),YB(l),l;$B(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:rta(a);g.Ba(p,3);return g.z(p,kta(m,h),5);case 5:return g.z(p,hta(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,xC(m.actualName,
h),9);case 9:g.Ca(p,8);break;case 7:g.Da(p);case 8:throw n;}})};
tta=function(a,b,c){c=c===void 0?{}:c;return sta(a,b,!1,c)};
uta=function(a,b,c){c=c===void 0?{}:c;return sta(a,b,!0,c)};
vta=function(a,b){b=b===void 0?{}:b;var c,d;return g.H(function(e){if(e.j==1)return g.z(e,g.BC(),2);if(e.j!=3){c=e.B;if(!c)return e.return();$B(a);d=rta(a);return g.z(e,uC(d.actualName,b),3)}return g.z(e,xC(d.actualName,c),0)})};
wta=function(a,b,c){a=a.map(function(d){return g.H(function(e){return e.j==1?g.z(e,uC(d.actualName,b),2):g.z(e,xC(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
xta=function(a){var b=b===void 0?{}:b;var c,d;return g.H(function(e){if(e.j==1)return g.z(e,g.BC(),2);if(e.j!=3){c=e.B;if(!c)return e.return();$B(a);return g.z(e,mta(a,c),3)}d=e.B;return g.z(e,wta(d,b,c),0)})};
yta=function(a,b){b=b===void 0?{}:b;var c;return g.H(function(d){if(d.j==1)return g.z(d,g.BC(),2);if(d.j!=3){c=d.B;if(!c)return d.return();$B(a);return g.z(d,uC(a,b),3)}return g.z(d,xC(a,c),0)})};
CC=function(a,b){vC.call(this,a,b);this.options=b;$B(a)};
zta=function(a,b){var c;return function(){c||(c=new CC(a,b));return c}};
g.DC=function(a,b){return zta(a,b)};
EC=function(a){return g.wC(Ata(),a)};
Bta=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:d!==void 0?d:(0,g.iC)()},g.z(l,EC(c),2);case 2:return f=l.B,g.z(l,f.clear("hotConfigStore"),3);case 3:return g.z(l,g.nC(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})};
Cta=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:e!==void 0?e:(0,g.iC)()},g.z(m,EC(d),2);case 2:return h=m.B,g.z(m,h.clear("coldConfigStore"),3);case 3:return g.z(m,g.nC(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})};
Dta=function(a){var b,c;return g.H(function(d){return d.j==1?g.z(d,EC(a),2):d.j!=3?(b=d.B,c=void 0,g.z(d,g.lC(b,["coldConfigStore"],{mode:"readwrite",Pb:!0},function(e){return g.sC(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
Eta=function(a){var b,c;return g.H(function(d){return d.j==1?g.z(d,EC(a),2):d.j!=3?(b=d.B,c=void 0,g.z(d,g.lC(b,["hotConfigStore"],{mode:"readwrite",Pb:!0},function(e){return g.sC(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
Fta=function(){return g.H(function(a){return g.z(a,xta("ytGcfConfig"),0)})};
Gta=function(){g.I.call(this);this.B=[];this.j=[];var a=g.Wa("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.ra(a)),this.j=a):(this.j=[],g.Va("yt.gcf.config.hotUpdateCallbacks",this.j))};
JC=function(){var a=this;this.G=!1;this.C=this.D=0;this.K=new Gta;this.wd={nrb:function(){a.G=!0},
qqb:function(){return a.j},
qsb:function(b){FC(a,b)},
Ms:function(b){a.Ms(b)},
jsb:function(b){Hta(a,b)},
X8:function(){return a.coldHashData},
f9:function(){return a.hotHashData},
Iqb:function(){return a.B},
Aqb:function(){return GC()},
Cqb:function(){return HC()},
Bqb:function(){return g.Wa("yt.gcf.config.coldHashData")},
Dqb:function(){return g.Wa("yt.gcf.config.hotHashData")},
Jsb:function(){Ita(a)},
Zrb:function(){a.Ms(void 0);IC(a);delete JC.instance},
nsb:function(b){a.C=b},
wqb:function(){return a.C}}};
Jta=function(){if(!JC.instance){var a=new JC;JC.instance=a}return JC.instance};
Mta=function(a){var b;g.H(function(c){if(c.j==1)return g.FA("start_client_gcf")||g.FA("delete_gcf_config_db")?g.FA("start_client_gcf")?g.z(c,g.BC(),3):c.Ja(2):c.return();c.j!=2&&((b=c.B)&&g.LB()&&!g.FA("delete_gcf_config_db")?(a.G=!0,Ita(a)):(Kta(a),Lta(a)));return g.FA("delete_gcf_config_db")?g.z(c,Fta(),0):c.Ja(0)})};
KC=function(){var a;return(a=HC())!=null?a:g.jA("RAW_HOT_CONFIG_GROUP")};
Nta=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(HC());if(!a.G)return b=g.eC("getHotConfig IDB not initialized"),oA(b),l.return(Promise.reject(b));c=AC();d=g.jA("TIME_CREATED_MS");if(!c){e=g.eC("getHotConfig token error");oA(e);l.Ja(2);break}return g.z(l,Eta(c),3);case 3:if((f=l.B)&&f.timestamp>d)return FC(a,f.config),a.Ms(f.hashData),l.return(HC());case 2:Lta(a);if(!(c&&a.B&&a.hotHashData)){l.Ja(4);break}return g.z(l,Bta(a.B,a.hotHashData,c,d),4);case 4:return a.B?
l.return(HC()):(h=new g.FB("Config not available in ytConfig"),oA(h),l.return(Promise.reject(h)))}})};
Pta=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(GC());if(!a.G)return b=g.eC("getColdConfig IDB not initialized"),oA(b),l.return(Promise.reject(b));c=AC();d=g.jA("TIME_CREATED_MS");if(!c){e=g.eC("getColdConfig");oA(e);l.Ja(2);break}return g.z(l,Dta(c),3);case 3:if((f=l.B)&&f.timestamp>d)return Hta(a,f.config),Ota(a,f.configData),IC(a,f.hashData),l.return(GC());case 2:Kta(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ja(4);break}return g.z(l,Cta(a.j,
a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(GC()):(h=new g.FB("Config not available in ytConfig"),oA(h),l.return(Promise.reject(h)))}})};
Ita=function(a){if(!a.B||!a.j){if(!AC()){var b=g.eC("scheduleGetConfigs");oA(b)}a.D||(a.D=g.zv.Ui(function(){return g.H(function(c){switch(c.j){case 1:return g.Ba(c,2),g.z(c,Nta(a),4);case 4:g.Ca(c,3);break;case 2:g.Da(c);case 3:return g.Ba(c,5),g.z(c,Pta(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))}};
Qta=function(a,b,c){var d,e,f;return g.H(function(h){switch(h.j){case 1:if(!g.FA("start_client_gcf")){h.Ja(0);break}c&&FC(a,c);a.Ms(b);d=AC();if(!d){h.Ja(3);break}if(c){h.Ja(4);break}return g.z(h,Eta(d),5);case 5:e=h.B,c=(f=e)==null?void 0:f.config;case 4:return g.z(h,Bta(c,b,d),3);case 3:if(c)for(var l=c,m=g.v(a.K.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.Aa(h)}})};
Rta=function(a,b,c){var d,e,f,h;return g.H(function(l){if(l.j==1){if(!g.FA("start_client_gcf"))return l.Ja(0);IC(a,b);return(d=AC())?c?l.Ja(4):g.z(l,Dta(d),5):l.Ja(0)}l.j!=4&&(e=l.B,c=(f=e)==null?void 0:f.config);if(!c)return l.Ja(0);h=c.configData;return g.z(l,Cta(c,b,h,d),0)})};
Sta=function(){var a=Jta(),b=(0,g.iC)()-a.C;if(!(a.C!==0&&b<g.GA("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.iC)());return{coldConfigData:b,hotHashData:c,coldHashData:d}}};
Kta=function(a){Hta(a,g.jA("RAW_COLD_CONFIG_GROUP"));IC(a,g.jA("SERIALIZED_COLD_HASH_DATA"));var b;Ota(a,(b=a.j)==null?void 0:b.configData)};
Lta=function(a){FC(a,g.jA("RAW_HOT_CONFIG_GROUP"));a.Ms(g.jA("SERIALIZED_HOT_HASH_DATA"))};
FC=function(a,b){a.B=b;g.Va("yt.gcf.config.hotConfigGroup",a.B||null)};
Hta=function(a,b){a.j=b;g.Va("yt.gcf.config.coldConfigGroup",a.j||null)};
IC=function(a,b){a.coldHashData=b;g.Va("yt.gcf.config.coldHashData",a.coldHashData||null)};
Ota=function(a,b){a.configData=b;g.Va("yt.gcf.config.coldConfigData",a.configData||null)};
HC=function(){return g.Wa("yt.gcf.config.hotConfigGroup")};
GC=function(){return g.Wa("yt.gcf.config.coldConfigGroup")};
Tta=function(){return"INNERTUBE_API_KEY"in hA&&"INNERTUBE_API_VERSION"in hA};
g.LC=function(){return{innertubeApiKey:g.jA("INNERTUBE_API_KEY"),innertubeApiVersion:g.jA("INNERTUBE_API_VERSION"),tK:g.jA("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),xQ:g.jA("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),qZ:g.jA("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.jA("INNERTUBE_CONTEXT_CLIENT_VERSION"),zQ:g.jA("INNERTUBE_CONTEXT_HL"),yQ:g.jA("INNERTUBE_CONTEXT_GL"),rZ:g.jA("INNERTUBE_HOST_OVERRIDE")||"",sZ:!!g.jA("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),AQ:!!g.jA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.jA("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.$ta=function(a){var b={client:{hl:a.zQ,gl:a.yQ,clientName:a.xQ,clientVersion:a.innertubeContextClientVersion,configInfo:a.tK}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.Ua.devicePixelRatio;c&&c!=1&&(b.client.screenDensityFloat=String(c));c=Lqa();c!==""&&(b.client.experimentsToken=c);c=Mqa();c.length>0&&(b.request={internalExperimentFlags:c});Uta(a,void 0,b);Vta(void 0,b);Wta(void 0,b);Xta(a,void 0,b);Yta(void 0,b);g.FA("start_client_gcf")&&Zta(void 0,b);g.jA("DELEGATED_SESSION_ID")&&
!g.FA("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.jA("DELEGATED_SESSION_ID")});!g.FA("fill_delegate_context_in_gel_killswitch")&&(a=g.jA("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.v(Object.entries(rA(g.jA("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.v(h.value);h=l.next().value;l=l.next().value;h==="cbrand"?e.deviceMake=l:h==="cmodel"?e.deviceModel=l:h==="cbr"?
e.browserName=l:h==="cbrver"?e.browserVersion=l:h==="cos"?e.osName=l:h==="cosver"?e.osVersion=l:h==="cplatform"&&(e.platform=l)}b.client=c.call(a,d,e);return b};
Uta=function(a,b,c){a=a.xQ;if(a==="WEB"||a==="MWEB"||a===1||a===2)if(b){c=g.fk(b,yx,96)||new yx;var d=jsa();d=Object.keys(aua).indexOf(d);d=d===-1?null:d;d!==null&&T(c,3,d);gk(b,yx,96,c)}else c&&(c.client.mainAppWebInfo=(d=c.client.mainAppWebInfo)!=null?d:{},c.client.mainAppWebInfo.webDisplayMode=jsa())};
Vta=function(a,b){var c=g.Wa("yt.embedded_player.embed_url");c&&(a?(b=g.fk(a,Cx,7)||new Cx,S(b,4,c),gk(a,Cx,7,b)):b&&(b.thirdParty={embedUrl:c}))};
Wta=function(a,b){var c;if(g.FA("web_log_memory_total_kbytes")&&((c=g.Ua.navigator)==null?0:c.deviceMemory)){var d;c=(d=g.Ua.navigator)==null?void 0:d.deviceMemory;a?Jj(a,95,Ai(c*1E6)):b&&(b.client.memoryTotalKbytes=""+c*1E6)}};
Xta=function(a,b,c){if(a.appInstallData)if(b){var d;c=(d=g.fk(b,wx,62))!=null?d:new wx;S(c,6,a.appInstallData);gk(b,wx,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
Yta=function(a,b){var c=usa();c&&(a?T(a,61,bua[c]):b&&(b.client.connectionType=c));g.FA("web_log_effective_connection_type")&&(c=wsa())&&(a?T(a,94,cua[c]):b&&(b.client.effectiveConnectionType=c))};
dua=function(a,b,c){c=c===void 0?{}:c;var d={};g.jA("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.jA("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.jA("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.SW||g.jA("AUTHORIZATION");b||(a?b="Bearer "+g.Wa("gapi.auth.getToken")().access_token:(a=ksa().UE(MC),g.FA("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d};
Zta=function(a,b){var c=Sta();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(a){var f;b=(f=g.fk(a,wx,62))!=null?f:new wx;d=S(b,1,d);S(d,3,e).Ms(c);gk(a,wx,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},d&&(b.client.configInfo.coldConfigData=d),e&&(b.client.configInfo.coldHashData=e),c&&(b.client.configInfo.hotHashData=c))}};
NC=function(a,b){this.version=a;this.args=b};
OC=function(a,b){this.topic=a;this.j=b};
PC=function(a,b){var c=eua();c&&c.publish.call(c,a.toString(),a,b)};
gua=function(a,b){var c=eua();if(!c)return 0;var d=c.subscribe(a.toString(),function(e,f){var h=g.Wa("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(QC[d])try{if(f&&a instanceof OC&&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.Jv){var n=new l;l.Jv=n.version}var p=l.Jv}catch(q){}if(!p||m.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(l,
g.Kb(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.mA(q)}},fua[a.toString()]?g.RB()?g.zv.Ui(h):g.BA(h,0):h())});
QC[d]=!0;RC[a.toString()]||(RC[a.toString()]=[]);RC[a.toString()].push(d);return d};
iua=function(a,b){var c=gua(a,function(d){b.apply(void 0,arguments);hua(c)});
return c};
hua=function(a){var b=eua();b&&(typeof a==="number"&&(a=[a]),g.Zb(a,function(c){b.unsubscribeByKey(c);delete QC[c]}))};
eua=function(){return g.Wa("ytPubsub2Pubsub2Instance")};
jua=function(a,b,c){c=c===void 0?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&PC("meta_logging_csi_event",{timerName:a,Hsb:b})};
lua=function(){kua||(kua=Nw(g.jA("WORKER_SERIALIZATION_URL")));return kua||void 0};
SC=function(){var a=lua();mua||a===void 0||(mua=new Worker(g.Zd(a),void 0));return mua};
nua=function(){return typeof Worker==="function"&&lua()?!0:!1};
qua=function(){if(nua()&&!oua){var a=function(c){c=c.data;if(c.op==="gzippedGelBatch"){var d=TC.get(c.key);d&&(pua(c.gzippedBatch,d.latencyPayload,d.url,d.options,d.sendFn),TC.delete(c.key))}},b=SC();
b&&(b.addEventListener("message",a),b.onerror=function(){TC.clear()},oua=!0)}};
VC=function(a,b,c,d,e){e=e===void 0?!1:e;var f={startTime:(0,g.iC)(),ticks:{},infos:{}};if(UC)try{var h=rua(b);if(h!=null&&(h>sua||h<tua))d(a,c);else{if(g.FA("gzip_gel_with_worker")&&(g.FA("initial_gzip_use_main_thread")&&!uua||!g.FA("initial_gzip_use_main_thread"))){oua||qua();var l=SC();if(l&&!e){TC.set(vua,{latencyPayload:f,url:a,options:c,sendFn:d});l.postMessage({op:"gelBatchToGzip",serializedBatch:b,key:vua});vua++;return}}var m=vma(wua(b));pua(m,f,a,c,d)}}catch(n){oA(n),d(a,c)}else d(a,c)};
pua=function(a,b,c,d,e){uua=!1;var f=(0,g.iC)();b.ticks.gelc=f;WC++;g.FA("disable_compression_due_to_performance_degredation")&&f-b.startTime>=xua&&(XC++,g.FA("abandon_compression_after_N_slow_zips")?WC===g.GA("compression_disable_point")&&XC>yua&&(UC=!1):UC=!1);zua(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)};
Aua=function(a){var b=b===void 0?!1:b;var c=c===void 0?!1:c;var d=(0,g.iC)(),e={startTime:d,ticks:{},infos:{}},f=b?g.Wa("yt.logging.gzipForFetch",!1):!0;if(UC&&f){if(!a.body)return a;try{var h=c?a.body:typeof a.body==="string"?a.body:JSON.stringify(a.body);f=h;if(!c&&typeof h==="string"){var l=rua(h);if(l!=null&&(l>sua||l<tua))return a;c=b?{level:1}:void 0;f=vma(wua(h),c);var m=(0,g.iC)();e.ticks.gelc=m;if(b){WC++;if((g.FA("disable_compression_due_to_performance_degredation")||g.FA("disable_compression_due_to_performance_degradation_lr"))&&
m-d>=xua)if(XC++,g.FA("abandon_compression_after_N_slow_zips")||g.FA("abandon_compression_after_N_slow_zips_lr")){b=XC/WC;var n=yua/g.GA("compression_disable_point");WC>0&&WC%g.GA("compression_disable_point")===0&&b>=n&&(UC=!1)}else UC=!1;zua(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return oA(p),a}}else return a};
rua=function(a){try{return(new Blob(a.split(""))).size}catch(b){return oA(b),null}};
zua=function(a){g.FA("gel_compression_csi_killswitch")||!g.FA("log_gel_compression_latency")&&!g.FA("log_gel_compression_latency_lr")||jua("gel_compression",a,{sampleRate:.1})};
ZC=function(a){var b=this;this.NI=this.j=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){};
this.BA=function(){};
this.now=Date.now;this.zE=!1;this.wd={msb:function(p){b.Df=p},
Ksb:function(){b.GC()},
J7:function(){b.wO()},
vF:function(p){return g.H(function(q){return g.z(q,b.vF(p),0)})},
bM:function(p,q){return b.bM(p,q)},
eM:function(){b.eM()}};
var c;this.G2=(c=a.G2)!=null?c:100;var d;this.F1=(d=a.F1)!=null?d:1;var e;this.v1=(e=a.v1)!=null?e:2592E6;var f;this.l1=(f=a.l1)!=null?f:12E4;var h;this.E1=(h=a.E1)!=null?h:5E3;var l;this.Df=(l=a.Df)!=null?l:void 0;this.rJ=!!a.rJ;var m;this.XI=(m=a.XI)!=null?m:.1;var n;this.ML=(n=a.ML)!=null?n:10;a.handleError&&(this.handleError=a.handleError);a.BA&&(this.BA=a.BA);a.zE&&(this.zE=a.zE);a.NI&&(this.NI=a.NI);this.gb=a.gb;this.Go=a.Go;this.Nh=a.Nh;this.ph=a.ph;this.sendFn=a.sendFn;this.nS=a.nS;this.yR=
a.yR;YC(this)&&(!this.gb||this.gb("networkless_logging"))&&Bua(this)};
Bua=function(a){YC(a)&&!a.zE&&(a.j=!0,a.rJ&&Math.random()<=a.XI&&a.Nh.N7(a.Df),a.eM(),a.ph.Mh()&&a.GC(),a.ph.listen(a.nS,a.GC.bind(a)),a.ph.listen(a.yR,a.wO.bind(a)))};
Eua=function(a,b){if(!YC(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=Cua(f);(l=Dua(f))&&a.gb&&a.gb("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.gb&&a.gb("nwl_consider_error_code")&&h||a.gb&&!a.gb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.ML)){p.Ja(2);break}if(!a.ph.iM){p.Ja(3);break}return g.z(p,a.ph.iM(),3);case 3:if(a.ph.Mh()){p.Ja(2);break}c(e,f);if(!a.gb||!a.gb("nwl_consider_error_code")||((m=b)==null?void 0:
m.id)===void 0){p.Ja(6);break}return g.z(p,a.Nh.ZS(b.id,a.Df,!1),6);case 6:return p.return();case 2:if(a.gb&&a.gb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.ML)return p.return();a.potentialEsfErrorCounter++;if(((n=b)==null?void 0:n.id)===void 0){p.Ja(8);break}return b.sendCount<a.F1?g.z(p,a.Nh.ZS(b.id,a.Df,!0,l?!1:void 0),12):g.z(p,a.Nh.bA(b.id,a.Df),8);case 12:a.Go.Ui(function(){a.ph.Mh()&&a.GC()},a.E1);
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(l.j==1)return((h=b)==null?void 0:h.id)===void 0?l.Ja(2):g.z(l,a.Nh.bA(b.id,a.Df),2);a.ph.Qx&&a.gb&&a.gb("vss_network_hint")&&a.ph.Qx(!0);d(e,f);g.Aa(l)})};
return b};
$C=function(a,b){a.H3&&!a.ph.Mh()?a.H3(b):a.handleError(b)};
YC=function(a){return!!a.Df||a.NI};
Cua=function(a){var b;return(a=a==null?void 0:(b=a.error)==null?void 0:b.code)&&a>=400&&a<=599?!1:!0};
Dua=function(a){var b;a=a==null?void 0:(b=a.error)==null?void 0:b.code;return!(a!==400&&a!==415)};
Fua=function(){if(aD)return aD();var a={};aD=g.DC("LogsDatabaseV2",{As:(a.LogsRequestsStore={Kn:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.jC(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.pC(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&kC(b,"sapisid");c(9)&&kC(b,"SWHealthLog")},
version:9});return aD()};
bD=function(a){return g.wC(Fua(),a)};
Hua=function(a,b){var c,d,e,f;return g.H(function(h){if(h.j==1)return c={startTime:(0,g.iC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.z(h,bD(b),2);if(h.j!=3)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.jA("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.z(h,g.nC(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.iC)();Gua(c);return h.return(f)})};
Iua=function(a,b){var c,d,e,f,h,l,m,n;return g.H(function(p){if(p.j==1)return c={startTime:(0,g.iC)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.z(p,bD(b),2);if(p.j!=3)return d=p.B,e=g.jA("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.iC)()],l=IDBKeyRange.bound(f,h),m="prev",g.FA("use_fifo_for_networkless")&&(m="next"),n=void 0,g.z(p,g.lC(d,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(q){return g.sC(q.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:l,direction:m},function(r){r.getValue()&&(n=r.getValue(),a==="NEW"&&(n.status="QUEUED",r.update(n)))})}),3);
c.ticks.tc=(0,g.iC)();Gua(c);return p.return(n)})};
Jua=function(a,b){var c;return g.H(function(d){if(d.j==1)return g.z(d,bD(b),2);c=d.B;return d.return(g.lC(c,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.mC(f,h).then(function(){return h})})}))})};
Kua=function(a,b,c,d){c=c===void 0?!0:c;var e;return g.H(function(f){if(f.j==1)return g.z(f,bD(b),2);e=f.B;return f.return(g.lC(e,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",c&&(m.sendCount+=1),d!==void 0&&(m.options.compress=d),g.mC(l,m).then(function(){return m})):g.gC.resolve(void 0)})}))})};
Lua=function(a,b){var c;return g.H(function(d){if(d.j==1)return g.z(d,bD(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})};
Mua=function(a){var b,c;return g.H(function(d){if(d.j==1)return g.z(d,bD(a),2);b=d.B;c=(0,g.iC)()-2592E6;return g.z(d,g.lC(b,["LogsRequestsStore"],{mode:"readwrite",Pb:!0},function(e){return g.qC(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.rC(f)})})}),0)})};
Nua=function(){g.H(function(a){return g.z(a,xta("LogsDatabaseV2"),0)})};
Gua=function(a){g.FA("nwl_csi_killswitch")||jua("networkless_performance",a,{sampleRate:1})};
Pua=function(a){return g.wC(Oua(),a)};
Qua=function(a){var b,c;g.H(function(d){if(d.j==1)return g.z(d,Pua(a),2);b=d.B;c=(0,g.iC)()-2592E6;return g.z(d,g.lC(b,["SWHealthLog"],{mode:"readwrite",Pb:!0},function(e){return g.qC(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.rC(f)})})}),0)})};
Rua=function(a){var b;return g.H(function(c){if(c.j==1)return g.z(c,Pua(a),2);b=c.B;return g.z(c,b.clear("SWHealthLog"),0)})};
g.cD=function(a,b,c,d,e,f,h){e=e===void 0?"":e;f=f===void 0?!1:f;h=h===void 0?!1:h;if(a)if(c&&!g.UA()){if(a){a=g.de(g.je(a));if(a===g.ge.toString()||a.startsWith("data"))a="";else{var l=l===void 0?{}:l;a instanceof g.re?l=a:(a=String(a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),l.Vrb&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;")),l.Urb&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>")),l.Wrb&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>')),
l=te(a));a=g.Ze(g.qn(g.se(l).toString()))}g.fc(a)||(l=Af("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),gf(l).body.appendChild(l))}}else if(e)Pqa(a,b,"POST",e,d);else if(g.jA("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)Pqa(a,b,"GET","",d,void 0,f,h);else{b:{try{var m=new Nka({url:a});if(m.C&&m.B||m.D){var n=vn(g.xn(5,a));var p=!(!n||!n.endsWith("/aclk")||vo(a,"ri")!=="1");break b}}catch(q){}p=!1}p?Sua(a)?(b&&b(),l=!0):l=!1:l=!1;l||Tua(a,b)}};
Sua=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,b===void 0?"":b))return!0}catch(c){}return!1};
Tua=function(a,b){var c=new Image,d=""+Uua++;Vua[d]=c;c.onload=c.onerror=function(){b&&Vua[d]&&b();delete Vua[d]};
c.src=a};
Wua=function(a){var b=g.yn(a);if(!g.FA("update_chrome_api_monitoring_allowed_features")&&b!=="www.googleadservices.com")return a;var c,d,e;return(g.FA("update_chrome_api_monitoring_allowed_features")?(c=document.featurePolicy)==null?0:c.allowedFeatures().includes("attribution-reporting"):typeof((d=document.featurePolicy)==null?void 0:d.features)==="function"&&((e=document.featurePolicy)==null?0:e.features().includes("attribution-reporting")))?a+"&nis=6":a+"&nis=5"};
dD=function(){Xua||(Xua=new TB("yt.offline"));return Xua};
Yua=function(a){if(g.FA("offline_error_handling")){var b=dD().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);dD().set("errors",b,2592E3,!0)}};
eD=function(){this.j=new Map;this.B=!1};
fD=function(){if(!eD.instance){var a=g.Wa("yt.networkRequestMonitor.instance")||new eD;g.Va("yt.networkRequestMonitor.instance",a);eD.instance=a}return eD.instance};
gD=function(){g.Fd.call(this);var a=this;this.B=!1;this.j=ela();this.j.listen("networkstatus-online",function(){if(a.B&&g.FA("offline_error_handling")){var b=dD().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.FB(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.mA(d)}dD().set("errors",{},2592E3,!0)}}})};
Zua=function(){if(!gD.instance){var a=g.Wa("yt.networkStatusManager.instance")||new gD;g.Va("yt.networkStatusManager.instance",a);gD.instance=a}return gD.instance};
g.hD=function(a){a=a===void 0?{}:a;g.Fd.call(this);var b=this;this.j=this.D=0;this.B=Zua();var c=g.Wa("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){$ua(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){$ua(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
$ua=function(a,b){a.rateLimit?a.j?(g.zv.ek(a.D),a.D=g.zv.Ui(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.iC)())},a.rateLimit-((0,g.iC)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.iC)()):a.dispatchEvent(b)};
iD=function(){var a=ZC.call;ava||(ava=new g.hD({wrb:!0,Spb:!0}));a.call(ZC,this,{Nh:{N7:Mua,bA:Lua,sY:Iua,N$:Jua,ZS:Kua,set:Hua},ph:ava,handleError:function(b,c,d){var e,f=d==null?void 0:(e=d.error)==null?void 0:e.code;if(f===400||f===415){var h;oA(new g.FB(b.message,c,d==null?void 0:(h=d.error)==null?void 0:h.code),void 0,void 0,void 0,!0)}else g.mA(b)},
BA:oA,sendFn:bva,now:g.iC,H3:Yua,Go:g.QB(),nS:"publicytnetworkstatus-online",yR:"publicytnetworkstatus-offline",rJ:!0,XI:.1,ML:g.GA("potential_esf_error_limit",10),gb:g.FA,zE:!(g.LB()&&g.yn(document.location.toString())!=="www.youtube-nocookie.com")});this.C=new g.No;g.FA("networkless_immediately_drop_all_requests")&&Nua();yta("LogsDatabaseV2")};
jD=function(){var a=g.Wa("yt.networklessRequestController.instance");a||(a=new iD,g.Va("yt.networklessRequestController.instance",a),g.FA("networkless_logging")&&g.BC().then(function(b){a.Df=b;Bua(a);a.C.resolve();a.rJ&&Math.random()<=a.XI&&a.Df&&Qua(a.Df);g.FA("networkless_immediately_drop_sw_health_store")&&cva(a)}));
return a};
cva=function(a){var b;g.H(function(c){if(!a.Df)throw b=g.eC("clearSWHealthLogsDb"),b;return c.return(Rua(a.Df).catch(function(d){a.handleError(d)}))})};
bva=function(a,b,c,d){d=d===void 0?!1:d;b=g.FA("web_fp_via_jspb")?Object.assign({},b):b;g.FA("use_cfr_monitor")&&dva(a,b);if(g.FA("use_request_time_ms_header"))b.headers&&vA(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.iC)())));else{var e;if((e=b.postParams)==null?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.iC)())}c&&Object.keys(b).length===0?g.cD(a):b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),VC(a,b.postBody,
b,g.HA,d)):VC(a,JSON.stringify(b.postParams),b,Tqa,d):g.HA(a,b)};
eva=function(a,b){g.FA("use_event_time_ms_header")&&vA(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.iC)())));return b};
dva=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){fD().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){fD().requestComplete(a,!0);d(e,f)}};
g.kD=function(a){this.config_=null;a?this.config_=a:Tta()&&(this.config_=g.LC())};
g.lD=function(a,b,c,d){function e(p){try{if((p===void 0?0:p)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?jD().writeThenSend(n,f):jD().sendAndWrite(n,f);else if(d.compress){var q=!d.networklessOptions.writeThenSend;if(f.postBody){var r=f.postBody;typeof r!=="string"&&(r=JSON.stringify(f.postBody));VC(n,r,f,g.HA,q)}else VC(n,JSON.stringify(f.postParams),f,Tqa,q)}else g.FA("web_all_payloads_via_jspb")?g.HA(n,f):Tqa(n,f)}catch(t){if(t.name==="InvalidAccessError")oA(Error("An extension is blocking network request."));
else throw t;}}
!g.jA("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&oA(new g.FB("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.FB("innertube xhrclient not ready",b,c,d),g.mA(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_.rZ;h&&(c=h);var l=a.config_.sZ||!1;h=dua(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_.AQ&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=g.tA(""+c+b,l);g.Wa("ytNetworklessLoggingInitializationOptions")&&
fva.isNwlInitialized?qta().then(function(p){e(p)}):e(!1)};
g.qD=function(a,b,c){var d=g.mD();if(d&&b){var e=d.subscribe(a,function(){function f(){nD[e]&&b.apply&&typeof b.apply=="function"&&b.apply(c||window,h)}
var h=arguments;try{g.oD[a]?f():g.BA(f,0)}catch(l){g.mA(l)}},c);
nD[e]=!0;pD[a]||(pD[a]=[]);pD[a].push(e);return e}return 0};
gva=function(a){var b=g.qD("LOGGED_IN",function(c){a.apply(void 0,arguments);g.rD(b)})};
g.rD=function(a){var b=g.mD();b&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),g.Zb(a,function(c){b.unsubscribeByKey(c);delete nD[c]}))};
g.sD=function(a,b){var c=g.mD();return c?c.publish.apply(c,arguments):!1};
iva=function(a){var b=g.mD();if(b)if(b.clear(a),a)hva(a);else for(var c in pD)hva(c)};
g.mD=function(){return g.Ua.ytPubsubPubsubInstance};
hva=function(a){pD[a]&&(a=pD[a],g.Zb(a,function(b){nD[b]&&delete nD[b]}),a.length=0)};
g.kva=function(a,b,c){jva(a,b,c===void 0?null:c)};
jva=function(a,b,c){c=c===void 0?null:c;var d=lva(a),e=document.getElementById(d),f=e&&Ira(e),h=e&&!f;f?b&&b():(b&&(f=g.qD(d,b),b=""+g.fb(b),mva[b]=f),h||(e=nva(a,d,function(){Ira(e)||(Hra(e),g.sD(d),g.BA(function(){iva(d)},0))},c)))};
nva=function(a,b,c,d){d=d===void 0?null:d;var e=g.Bf("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)};
e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}};
d&&e.setAttribute("nonce",d);g.Ye(e,g.Hma(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
lva=function(a){var b=document.createElement("a");g.Oe(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+df(a)};
uD=function(a){var b=g.Ja.apply(1,arguments);if(!tD(a)||b.some(function(d){return!tD(d)}))throw Error("Only objects may be merged.");
b=g.v(b);for(var c=b.next();!c.done;c=b.next())ova(a,c.value)};
ova=function(a,b){for(var c in b)if(tD(b[c])){if(c in a&&!tD(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});ova(a[c],b[c])}else if(pva(b[c])){if(c in a&&!pva(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);qva(a[c],b[c])}else a[c]=b[c];return a};
qva=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,tD(c)?a.push(ova({},c)):pva(c)?a.push(qva([],c)):a.push(c);return a};
tD=function(a){return typeof a==="object"&&!Array.isArray(a)};
pva=function(a){return typeof a==="object"&&Array.isArray(a)};
vD=function(a){g.I.call(this);this.B=a};
wD=function(a){vD.call(this,!0);this.j=a};
rva=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.ra=null;var d=(0,g.ib)(a,b);this.j=new g.Dv(function(){return d(c.ra)},300);
g.M(this,this.j);this.Y=this.Z=Infinity};
sva=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};
yD=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(a),c=new Uint8Array(a);window.crypto.getRandomValues(c);for(var d=0;d<b.length;d++)b[d]=c[d];return b}catch(f){}b=Array(a);for(c=0;c<a;c++){d=Date.now();for(var e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(Math.random()*256)}if(xD)for(c=1,d=0;d<xD.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^xD.charCodeAt(d),c++;return b};
g.zD=function(a){a=yD(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.tva=function(){return g.$r(yD(16),function(a){return(a&15).toString(16)}).join("")};
uva=function(){var a={};var b=a.lda===void 0?!1:a.lda;a=a.z8===void 0?!0:a.z8;if(g.Wa("_lact",window)==null){var c=parseInt(g.jA("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Va("_lact",c,window);g.Va("_fact",c,window);c==-1&&AD();g.oB(document,"keydown",AD);g.oB(document,"keyup",AD);g.oB(document,"mousedown",AD);g.oB(document,"mouseup",AD);b?g.oB(window,"touchmove",function(){BD("touchmove",200)},{passive:!0}):(g.oB(window,"resize",function(){BD("resize",200)}),a&&g.oB(window,"scroll",
function(){BD("scroll",200)}));
new rB(function(){BD("mouse",100)});
g.oB(document,"touchstart",AD,{passive:!0});g.oB(document,"touchend",AD,{passive:!0})}};
BD=function(a,b){vva[a]||(vva[a]=!0,g.zv.Ui(function(){AD();vva[a]=!1},b))};
AD=function(){g.Wa("_lact",window)==null&&(uva(),g.Wa("_lact",window));var a=Date.now();g.Va("_lact",a,window);g.Wa("_fact",window)==-1&&g.Va("_fact",a,window);(a=g.Wa("ytglobal.ytUtilActivityCallback_"))&&a()};
CD=function(){var a=g.Wa("_lact",window);return a==null?-1:Math.max(Date.now()-a,0)};
DD=function(a){this.name=a};
ED=function(a){this.key=a};
wva=function(){var a=this;this.j=new Map;this.C=new Map;this.B=new Map;this.wd={Kqb:function(){return new Map(a.j)}}};
xva=function(a,b){a.j.set(b.TG,b);var c=a.C.get(b.TG);if(c)try{c.bT(a.resolve(b.TG))}catch(d){c.OS(d)}};
GD=function(a,b,c,d){d=d===void 0?!1:d;if(c.indexOf(b)>-1)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(d.sU!==void 0)var e=d.sU;else if(d.rfa)e=d[FD]?yva(a,d[FD],c):[],e=d.rfa.apply(d,g.ra(e));else if(d.v3){e=d.v3;var f=e[FD]?yva(a,e[FD],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.ra(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.Dsb||a.B.set(b,e);
return e};
yva=function(a,b,c){return b?b.map(function(d){return d instanceof ED?GD(a,d.key,c,!0):GD(a,d,c)}):[]};
HD=function(){zva||(zva=new wva);return zva};
Ava=function(){var a,b;return"h5vcc"in ID&&((a=ID.h5vcc.traceEvent)==null?0:a.traceBegin)&&((b=ID.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in ID&&ID.performance.mark&&ID.performance.measure?2:0};
Bva=function(a){var b=Ava();switch(b){case 1:ID.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:ID.performance.mark(a+"-start");break;case 0:break;default:Pe(b,"unknown trace type")}};
Cva=function(a){var b=Ava();switch(b){case 1:ID.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";ID.performance.mark(c);ID.performance.measure(a,b,c);break;case 0:break;default:Pe(b,"unknown trace type")}};
Eva=function(a){var b=this;var c=c===void 0?0:c;var d=d===void 0?g.QB():d;this.C=c;this.scheduler=d;this.B=new g.No;this.j=a;for(a={mx:0};a.mx<this.j.length;a={EL:void 0,mx:a.mx},a.mx++)a.EL=this.j[a.mx],c=function(e){return function(){e.EL.SQ();b.j[e.mx].PL=!0;b.j.every(function(f){return f.PL===!0})&&b.B.resolve()}}(a),d=NB(c,Dva(this,a.EL)),this.j[a.mx]=Object.assign({},a.EL,{SQ:c,
jobId:d})};
Fva=function(a){var b=Array.from(a.j.keys()).sort(function(d,e){return Dva(a,a.j[e])-Dva(a,a.j[d])});
b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=a.j[c.value],c.jobId===void 0||c.PL||(a.scheduler.ek(c.jobId),NB(c.SQ,10))};
Dva=function(a,b){var c;return(c=b.priority)!=null?c:a.C};
KD=function(a){this.state=a;this.plugins=[];this.C=void 0;this.D={};JD&&Bva(this.state)};
Hva=function(a,b){var c=b.filter(function(e){return Gva(a,e)===10}),d=b.filter(function(e){return Gva(a,e)!==10});
return a.D.zsb?function(){var e=g.Ja.apply(0,arguments);return g.H(function(f){if(f.j==1)return g.z(f,a.Pda.apply(a,[c].concat(g.ra(e))),2);a.U1.apply(a,[d].concat(g.ra(e)));g.Aa(f)})}:function(){var e=g.Ja.apply(0,arguments);
a.Qda.apply(a,[c].concat(g.ra(e)));a.U1.apply(a,[d].concat(g.ra(e)))}};
Gva=function(a,b){var c,d;return(d=(c=a.C)!=null?c:b.priority)!=null?d:0};
Iva=function(a){JD&&a&&Bva(a)};
LD=function(a){JD&&a&&Cva(a)};
Kva=function(a,b,c){Jva&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())};
MD=function(a){KD.call(this,a===void 0?"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(){}}]};
Mva=function(){Lva||(Lva=new MD);return Lva};
ND=function(){var a=this;this.store={};this.j=0;this.B={};this.wd={yqb:function(){return a.j}}};
Ova=function(a,b){var c=Nva(b);if(a.B[c])return a.B[c];var d=Object.keys(a.store)||[];if(d.length<=1&&Nva(b)===d[0])return d;for(var e=[],f=0;f<d.length;f++){var h=d[f].split("/");if(OD(b.auth,h[0])){var l=b.isJspb;OD(l===void 0?"undefined":l?"true":"false",h[1])&&OD(b.cttAuthInfo,h[2])&&(l=b.tier,l=l===void 0?"undefined":JSON.stringify(l),OD(l,h[3])&&e.push(d[f]))}}return a.B[c]=e};
OD=function(a,b){return a===void 0||a==="undefined"?!0:a===b};
Nva=function(a){return[a.auth===void 0?"undefined":a.auth,a.isJspb===void 0?"undefined":a.isJspb,a.cttAuthInfo===void 0?"undefined":a.cttAuthInfo,a.tier===void 0?"undefined":a.tier].join("/")};
PD=function(){this.D=this.j=this.B=0;this.C=!1};
QD=function(){var a=g.Wa("yt.logging.ims");a||(a=new ND,g.Va("yt.logging.ims",a));return a};
Rva=function(){if(nua()&&!Pva){var a=function(c){c=c.data;if(c.op==="serializedGelBatch"){var d=RD.get(c.key);d&&(Qva(c.serializedBatch,d.client,d.resolve,d.networklessOptions,d.isIsolated,d.useVSSEndpoint,d.dangerousLogToVisitorSession,d.requestsOutstanding),RD.delete(c.key))}},b=SC();
b&&(b.addEventListener("message",a),b.onerror=function(){RD.clear()});
Pva=!0}};
Xva=function(a,b){if(a.endpoint==="log_event"){SD(a);var c=TD(a),d=Sva(a.payload)||"",e=Tva(d),f=200;if(e){if(e.enabled===!1&&!g.FA("web_payload_policy_disabled_killswitch"))return;f=Uva(e.tier);if(f===400){Vva(a,b);return}}UD[c]=!0;e={cttAuthInfo:c,isJspb:!1,tier:f};QD().storePayload(e,a.payload);Wva(b,c,!1,e,VD(d))}};
Zva=function(a,b,c){if(b.endpoint==="log_event"){SD(void 0,b);var d=TD(b,!0),e=Tva(a),f=200;if(e){if(e.enabled===!1&&!g.FA("web_payload_policy_disabled_killswitch"))return;f=Uva(e.tier);if(f===400){Yva(a,b,c);return}}UD[d]=!0;e={cttAuthInfo:d,isJspb:!0,tier:f};QD().storePayload(e,$k(b.payload));Wva(c,d,!0,e,VD(a))}};
Wva=function(a,b,c,d,e){function f(){$va({writeThenSend:!0},g.FA("flush_only_full_queue")?b:void 0,c,d.tier)}
c=c===void 0?!1:c;e=e===void 0?!1:e;a&&(WD=new a);a=g.GA("tvhtml5_logging_max_batch_ads_fork")||g.GA("web_logging_max_batch")||100;var h=(0,g.iC)(),l=awa(c,d.tier),m=l.D;e&&(l.C=!0);e=0;d&&(e=QD().getSequenceCount(d));e>=1E3?f():e>=a?bwa||(bwa=cwa(function(){f();bwa=void 0},0)):h-m>=10&&(dwa(c,d.tier),l.D=h)};
Vva=function(a,b){if(a.endpoint==="log_event"){SD(a);var c=TD(a),d=new Map;d.set(c,[a.payload]);var e=Sva(a.payload)||"";b&&(WD=new b);return new g.fg(function(f,h){WD&&WD.isReady()?ewa(d,WD,f,h,{bypassNetworkless:!0},!0,VD(e)):f()})}};
Yva=function(a,b,c){if(b.endpoint==="log_event"){SD(void 0,b);var d=TD(b,!0),e=new Map;e.set(d,[$k(b.payload)]);c&&(WD=new c);return new g.fg(function(f){WD&&WD.isReady()?fwa(e,WD,f,{bypassNetworkless:!0},!0,VD(a)):f()})}};
TD=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(b===void 0?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new gA;c.videoId?d.setVideoId(c.videoId):c.playlistId&&Zj(d,2,XD,Fi(c.playlistId));YD[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),ZD[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
$va=function(a,b,c,d){a=a===void 0?{}:a;c=c===void 0?!1:c;new g.fg(function(e,f){var h=awa(c,d),l=h.C;h.C=!1;gwa(h.B);gwa(h.j);h.j=0;WD&&WD.isReady()?d===void 0&&g.FA("enable_web_tiered_gel")?hwa(e,f,a,b,c,300,l):hwa(e,f,a,b,c,d,l):(dwa(c,d),e())})};
hwa=function(a,b,c,d,e,f,h){var l=WD;c=c===void 0?{}:c;e=e===void 0?!1:e;f=f===void 0?200:f;h=h===void 0?!1:h;var m=new Map,n=new Map,p={isJspb:e,cttAuthInfo:d,tier:f},q={isJspb:e,cttAuthInfo:d};if(d!==void 0)e?(b=g.FA("enable_web_tiered_gel")?QD().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):QD().extractMatchingEntries(q),m.set(d,b),fwa(m,l,a,c,!1,h)):(m=g.FA("enable_web_tiered_gel")?QD().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):QD().extractMatchingEntries(q),n.set(d,m),
ewa(n,l,a,b,c,!1,h));else if(e){b=g.v(Object.keys(UD));for(n=b.next();!n.done;n=b.next())n=n.value,f=g.FA("enable_web_tiered_gel")?QD().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):QD().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),f.length>0&&m.set(n,f),(g.FA("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.FA("web_fp_via_jspb_and_json"))&&delete UD[n];fwa(m,l,a,c,!1,h)}else{m=g.v(Object.keys(UD));for(p=m.next();!p.done;p=m.next())p=p.value,q=g.FA("enable_web_tiered_gel")?QD().smartExtractMatchingEntries({keys:[{isJspb:!1,
cttAuthInfo:p,tier:f},{isJspb:!1,cttAuthInfo:p}],sizeLimit:1E3}):QD().extractMatchingEntries({isJspb:!1,cttAuthInfo:p}),q.length>0&&n.set(p,q),(g.FA("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.FA("web_fp_via_jspb_and_json"))&&delete UD[p];ewa(n,l,a,b,c,!1,h)}};
dwa=function(a,b){function c(){$va({writeThenSend:!0},void 0,a,b)}
a=a===void 0?!1:a;b=b===void 0?200:b;var d=awa(a,b),e=d===iwa||d===jwa?5E3:kwa;g.FA("web_gel_timeout_cap")&&!d.j&&(e=cwa(function(){c()},e),d.j=e);
gwa(d.B);e=g.jA("LOGGING_BATCH_TIMEOUT",g.GA("web_gel_debounce_ms",1E4));g.FA("shorten_initial_gel_batch_timeout")&&$D&&(e=lwa);e=cwa(function(){g.GA("gel_min_batch_size")>0?QD().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=mwa&&c():c()},e);
d.B=e};
ewa=function(a,b,c,d,e,f,h){e=e===void 0?{}:e;var l=Math.round((0,g.iC)()),m=a.size,n=nwa(h);a=g.v(a);var p=a.next();for(h={};!p.done;h={uR:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,gS:void 0,IR:void 0},p=a.next()){var q=g.v(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.kd({context:g.$ta(b.config_||g.LC())});if(!g.bb(q)&&!g.FA("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=ZD[p])&&owa(h.batchRequest,p,q);delete ZD[p];h.dangerousLogToVisitorSession=
p==="visitorOnlyApprovedKey";pwa(h.batchRequest,l,h.dangerousLogToVisitorSession);qwa(e);h.gS=function(r){g.FA("start_client_gcf")&&g.zv.Ui(function(){return g.H(function(t){return g.z(t,rwa(r),0)})});
m--;m||c()};
h.uR=0;h.IR=function(r){return function(){r.uR++;if(e.bypassNetworkless&&r.uR===1)try{g.lD(b,n,r.batchRequest,swa({writeThenSend:!0},r.dangerousLogToVisitorSession,r.gS,r.IR,f)),$D=!1}catch(t){g.mA(t),d()}m--;m||c()}}(h);
try{g.lD(b,n,h.batchRequest,swa(e,h.dangerousLogToVisitorSession,h.gS,h.IR,f)),$D=!1}catch(r){g.mA(r),d()}}};
fwa=function(a,b,c,d,e,f){d=d===void 0?{}:d;var h=Math.round((0,g.iC)()),l={value:a.size},m=new Map([].concat(g.ra(a)));m=g.v(m);for(var n=m.next();!n.done;n=m.next()){var p=g.v(n.value).next().value,q=a.get(p);n=new tqa;var r=b.config_||g.LC(),t=new Fx,u=new zx;S(u,1,r.zQ);S(u,2,r.yQ);T(u,16,r.qZ);S(u,17,r.innertubeContextClientVersion);if(r.tK){var w=r.tK,A=new wx;w.coldConfigData&&S(A,1,w.coldConfigData);w.appInstallData&&S(A,6,w.appInstallData);w.coldHashData&&S(A,3,w.coldHashData);w.hotHashData&&
A.Ms(w.hotHashData);gk(u,wx,62,A)}(w=g.Ua.devicePixelRatio)&&w!=1&&Tk(u,65,w);w=Lqa();w!==""&&S(u,54,w);w=Mqa();if(w.length>0){A=new Bx;for(var C=0;C<w.length;C++){var F=new Ax;S(F,1,w[C].key);Zj(F,2,twa,Fi(w[C].value));jk(A,15,Ax,F)}gk(t,Bx,5,A)}Uta(r,u);Vta(t);Wta(u);Xta(r,u);Yta(u);g.FA("start_client_gcf")&&Zta(u);g.jA("DELEGATED_SESSION_ID")&&!g.FA("pageid_as_header_web")&&(r=new Ex,S(r,3,g.jA("DELEGATED_SESSION_ID")));!g.FA("fill_delegate_context_in_gel_killswitch")&&(w=g.jA("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
(A=g.fk(t,Ex,3)||new Ex,r=t,w=S(A,18,w),gk(r,Ex,3,w));r=u;w=g.v(Object.entries(rA(g.jA("DEVICE",""))));for(A=w.next();!A.done;A=w.next())C=g.v(A.value),A=C.next().value,C=C.next().value,A==="cbrand"?S(r,12,C):A==="cmodel"?S(r,13,C):A==="cbr"?S(r,87,C):A==="cbrver"?S(r,88,C):A==="cos"?S(r,18,C):A==="cosver"?S(r,19,C):A==="cplatform"&&T(r,42,lsa(C));t.Hy(u);gk(n,Fx,1,t);if(u=YD[p])a:{if(u.ue())t=1;else if(u.getPlaylistId())t=2;else break a;gk(n,gA,4,u);u=g.fk(n,Fx,1)||new Fx;r=g.fk(u,Ex,3)||new Ex;
w=new Dx;w.setToken(p);T(w,1,t);jk(r,12,Dx,w);gk(u,Ex,3,r)}delete YD[p];p=p==="visitorOnlyApprovedKey";uwa()||Rk(n,2,h);!p&&(t=g.jA("EVENT_ID"))&&(u=vwa(),r=new sqa,S(r,1,t),Rk(r,2,u),gk(n,sqa,5,r));qwa(d);if(g.FA("jspb_serialize_with_worker")&&(t=SC())&&d.writeThenSend){RD.set(wwa,{client:b,resolve:c,networklessOptions:d,isIsolated:e,useVSSEndpoint:f,dangerousLogToVisitorSession:p,requestsOutstanding:l});t.postMessage({op:"gelBatchToSerialize",batchRequest:$k(n),clientEvents:q,key:wwa});wwa++;break}if(q){t=
[];for(u=0;u<q.length;u++)try{t.push(new fA(q[u]))}catch(G){g.mA(new g.FB("Transport failed to deserialize "+String(q[u])))}q=t}else q=[];q=g.v(q);for(t=q.next();!t.done;t=q.next())jk(n,3,fA,t.value);q={startTime:(0,g.iC)(),ticks:{},infos:{}};n=n.Pk();q.ticks.geljspc=(0,g.iC)();g.FA("log_jspb_serialize_latency")&&jua("gel_jspb_serialize",q,{sampleRate:.1});Qva(n,b,c,d,e,f,p,l)}};
Qva=function(a,b,c,d,e,f,h,l){d=d===void 0?{}:d;l=l===void 0?{value:0}:l;f=nwa(f);d=swa(d,h,function(m){g.FA("start_client_gcf")&&g.zv.Ui(function(){return g.H(function(n){return g.z(n,rwa(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.lD(b,f,"",d);$D=!1};
qwa=function(a){g.FA("always_send_and_write")&&(a.writeThenSend=!1)};
swa=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,Fpb:!!e,headers:{},postBodyFormat:"",postBody:"",compress:g.FA("compress_gel")||g.FA("compress_gel_lr")};uwa()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.iC)())));return a};
pwa=function(a,b,c){uwa()||(a.requestTimeMs=String(b));g.FA("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.jA("EVENT_ID"))&&(c=vwa(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
vwa=function(){var a=g.jA("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*xwa/2));a++;a>xwa&&(a=1);iA("BATCH_CLIENT_COUNTER",a);return a};
owa=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}]};
SD=function(a,b){if(!g.Wa("yt.logging.transport.enableScrapingForTest")){var c=Kqa("il_payload_scraping");if((c!==void 0?String(c):"")==="enable_il_payload_scraping")ywa=[],g.Va("yt.logging.transport.enableScrapingForTest",!0),g.Va("yt.logging.transport.scrapedPayloadsForTesting",ywa),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&&d.length>=1)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(((f=a)==null?void 0:f.payload)[d[e]])}g.Va("yt.logging.transport.scrapedPayloadsForTesting",
c)};
uwa=function(){return g.FA("use_request_time_ms_header")||g.FA("lr_use_request_time_ms_header")};
cwa=function(a,b){return g.FA("transport_use_scheduler")===!1?g.BA(a,b):g.FA("logging_avoid_blocking_during_navigation")||g.FA("lr_logging_avoid_blocking_during_navigation")?g.OB(0,function(){if(Mva().currentState==="none")a();else{var c={};Mva().install((c.none={callback:a},c))}},b):NB(a,0,b)};
gwa=function(a){g.FA("transport_use_scheduler")?g.zv.ek(a):g.DA(a)};
rwa=function(a){var b,c,d,e,f,h,l,m,n,p;return g.H(function(q){return q.j==1?(d=(b=a)==null?void 0:(c=b.responseContext)==null?void 0:c.globalConfigGroup,e=g.V(d,zwa),h=(f=d)==null?void 0:f.hotHashData,l=g.V(d,Awa),n=(m=d)==null?void 0:m.coldHashData,(p=HD().resolve(new ED(JC)))?h?e?g.z(q,Qta(p,h,e),2):g.z(q,Qta(p,h),2):q.Ja(2):q.return()):n?l?g.z(q,Rta(p,n,l),0):g.z(q,Rta(p,n),0):q.Ja(0)})};
awa=function(a,b){b=b===void 0?200:b;return a?b===300?iwa:Bwa:b===300?jwa:Cwa};
Tva=function(a){if(g.FA("enable_web_tiered_gel")){a=Dwa[a||""];var b,c,d,e=HD().resolve(new ED(JC))==null?void 0:(b=KC())==null?void 0:(c=b.loggingHotConfig)==null?void 0:(d=c.eventLoggingConfig)==null?void 0:d.payloadPolicies;if(e)for(b=0;b<e.length;b++)if(e[b].payloadNumber===a)return e[b]}};
Sva=function(a){a=Object.keys(a);a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,Dwa[b])return b};
Uva=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}};
VD=function(a){return a==="gelDebuggingEvent"};
nwa=function(a){return(a===void 0?0:a)&&g.FA("vss_through_gel_video_stats")?"video_stats":"log_event"};
bE=function(a,b,c,d){d=d===void 0?{}:d;var e={},f=Math.round(d.timestamp||(0,g.iC)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=CD();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};d.sequenceGroup&&!g.FA("web_gel_sequence_info_killswitch")&&(a=e.context,b=d.sequenceGroup,b={index:Ewa(b),groupKey:b},a.sequence=b,d.endOfSequence&&delete aE[d.sequenceGroup]);(d.sendIsolatedPayload?Vva:Xva)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},
c)};
Fwa=function(a){$va(void 0,void 0,a===void 0?!1:a)};
Ewa=function(a){aE[a]=a in aE?aE[a]+1:0;return aE[a]};
Jwa=function(a,b){Gwa||(Gwa=!0);Hwa=a;cE=b;Iwa=!1};
g.VB=function(a,b,c){c=c===void 0?{}:c;var d=Kwa;g.jA("ytLoggingEventsDefaultDisabled",!1)&&Kwa===g.kD&&(d=null);if(g.FA("web_all_payloads_via_jspb"))if(c.timestamp||(c.lact=CD(),c.timestamp=(0,g.iC)()),Hwa&&cE){var e=Hwa[a];if(e){e=e(Lwa(b));var f=e[1];(e[0]||!g.FA("jspb_translator_return_completion"))&&f&&cE[a]?(cE[a](f,c,d||void 0),Mwa()):(oA(new g.FB("Unable to call logFn for payload",a)),bE(a,b,d,c))}else{if(!g.FA("web_translate_player_logs"))oA(new g.FB("Unable to translate payload to JSPB",
a));else if(Iwa===!1){var h=!1;e=iua("app_received_payload",function(){h=!0});
PC("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c});if(h)return;hua(e);iua("app_has_initialized",function(){PC("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c})})}bE(a,b,d,c)}}else Nwa.push({payloadName:a,
payload:b,options:c});else bE(a,b,d,c)};
Mwa=function(a){a=a===void 0?!1:a;var b=Nwa;Nwa=[];if(b){b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a?bE(c.payloadName,c.payload,Kwa,c.options):g.VB(c.payloadName,c.payload,c.options)}};
Lwa=function(a){if(!g.FA("jspb_convert_payloads_to_lower_camel")||!g.db(a))return a;for(var b=Object.keys(a),c=0;c<b.length;c++){var d=Owa(b[c]);b[c]!==d&&(a[d]=a[b[c]],delete a[b[c]]);if(typeof a[d]==="object"&&!g.bb(a[d]))a[d]=Lwa(a[d]);else if(g.bb(a[d])){for(var e=a[d],f=[],h=0;h<e.length;h++)f.push(Lwa(e[h]));a[d]=f}}return a};
Owa=function(a){return a.includes("_")?a.toLowerCase().replace(/([_][a-z])/g,function(b){return b.toUpperCase().replace("_","")}):a};
dE=function(a,b,c,d){d=d===void 0?{}:d;var e=Math.round(d.timestamp||(0,g.iC)());Rk(b,1,e<Number.MAX_SAFE_INTEGER?e:0);e=new rqa;if(d.lact)Rk(e,1,isFinite(d.lact)?d.lact:-1);else if(d.timestamp)Rk(e,1,-1);else{var f=CD();Rk(e,1,isFinite(f)?f:-1)}if(d.sequenceGroup&&!g.FA("web_gel_sequence_info_killswitch")){f=d.sequenceGroup;var h=Ewa(f),l=new qqa;Rk(l,2,h);S(l,1,f);gk(e,qqa,3,l);d.endOfSequence&&delete Pwa[d.sequenceGroup]}gk(b,rqa,33,e);(d.sendIsolatedPayload?Yva:Zva)(a,{endpoint:"log_event",payload:b,
cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},c)};
eE=function(a,b,c){c=c===void 0?{}:c;var d=!1;g.jA("ytLoggingEventsDefaultDisabled",!1)&&(d=!0);dE(a,b,d?null:g.kD,c)};
Qwa=function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Pz,72,fE,a);c?dE("visualElementShown",d,c,b):eE("visualElementShown",d,b)};
Rwa=function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Oz,73,fE,a);c?dE("visualElementHidden",d,c,b):eE("visualElementHidden",d,b)};
Swa=function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Nz,78,fE,a);c?dE("visualElementGestured",d,c,b):eE("visualElementGestured",d,b)};
Twa=function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Qz,208,fE,a);c?dE("visualElementStateChanged",d,c,b):eE("visualElementStateChanged",d,b)};
Uwa=function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Lz,156,fE,a);c?dE("screenCreated",d,c,b):eE("screenCreated",d,b)};
Vwa=function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Jz,202,fE,a);c?dE("playbackAssociated",d,c,b):eE("playbackAssociated",d,b)};
Wwa=function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Mz,215,fE,a);c?dE("visualElementAttached",d,c,b):eE("visualElementAttached",d,b)};
gE=function(a){this.j=a};
g.hE=function(a){return new gE({trackingParams:a})};
Ywa=function(a){var b=Xwa++;return new gE({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})};
Zwa=function(a){return g.jA("client-screen-nonce-store",{})[a===void 0?0:a]};
$wa=function(a,b){b=b===void 0?0:b;var c=g.jA("client-screen-nonce-store");c||(c={},iA("client-screen-nonce-store",c));c[b]=a};
axa=function(a){a=a===void 0?0:a;return a===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
bxa=function(a){return g.jA(axa(a===void 0?0:a))};
g.iE=function(a){return(a=bxa(a===void 0?0:a))?new gE({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
cxa=function(){var a=g.jA("csn-to-ctt-auth-info");a||(a={},iA("csn-to-ctt-auth-info",a));return a};
dxa=function(){return Object.values(g.jA("client-screen-nonce-store",{})).filter(function(a){return a!==void 0})};
g.jE=function(a){a=Zwa(a===void 0?0:a);if(!a&&!g.jA("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
fxa=function(a){for(var b=g.v(Object.values(exa)),c=b.next();!c.done;c=b.next())if(g.jE(c.value)===a)return!0;return!1};
gxa=function(a,b,c){var d=cxa();(c=g.jE(c))&&delete d[c];b&&(d[a]=b)};
kE=function(a){return cxa()[a]};
ixa=function(a,b,c,d){c=c===void 0?0:c;if(a!==Zwa(c)||b!==g.jA(axa(c)))if(gxa(a,d,c),$wa(a,c),iA(axa(c),b),b=function(){setTimeout(function(){if(a)if(g.FA("web_time_via_jspb")){var e=new Rpa;S(e,1,hxa);S(e,2,a);var f=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(f,Rpa,111,fE,e);eE("foregroundHeartbeatScreenAssociated",f)}else g.VB("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:hxa,clientScreenNonce:a})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
kxa=function(a,b){var c=c===void 0?!0:c;var d=g.jA("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.yn(window.location.href);e&&d.push(e);e=g.yn(a);if(g.Eb(d,e)||!e&&ec(a,"/"))if(d=document.createElement("a"),g.Oe(d,a),a=d.href)if(a=zn(a),a=Kfa(a))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.jE()},b)),f){var f=parseInt(f,10);isFinite(f)&&f>0&&jxa(a,b,f)}else jxa(a,b)};
jxa=function(a,b,c){a=lxa(a);b=b?g.Dn(b):"";c=c||5;sra()&&g.QA(a,b,c)};
lxa=function(a){for(var b=g.v(mxa),c=b.next();!c.done;c=b.next())a=wo(a,c.value);return"ST-"+df(a).toString(36)};
nxa=function(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
oxa=function(){this.Gt=[];this.ys=[]};
sxa=function(){if(!pxa){var a=pxa=new oxa;a.ys.length=0;a.Gt.length=0;qxa(a,rxa)}return pxa};
qxa=function(a,b){b.ys&&a.ys.push.apply(a.ys,b.ys);b.Gt&&a.Gt.push.apply(a.Gt,b.Gt)};
uxa=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=txa(b);if(e===Infinity)break;var f=e>>3;switch(e&7){case 0:e=txa(b);if(f===2)return e;break;case 1:if(f===2)return;d+=8;break;case 2:e=txa(b);if(f===2)return a.substr(d,e);d+=e;break;case 5:if(f===2)return;d+=4;break;default:return}}while(d<c)};
txa=function(a){var b=a(),c=b&127;if(b<128)return c;b=a();c|=(b&127)<<7;if(b<128)return c;b=a();c|=(b&127)<<14;if(b<128)return c;b=a();return b<128?c|(b&127)<<21:Infinity};
wxa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=vxa(d,a[d],b,c),e>500));d++);d=e}else if(typeof a==="object")for(e in a){if(a[e]){var f=e;var h=a[e],l=b,m=c;f=typeof h!=="string"||f!=="clickTrackingParams"&&f!=="trackingParams"?0:(h=uxa(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?vxa(f+".ve",h,l,m):0;d+=f;d+=vxa(e,a[e],b,c);if(d>500)break}}else c[b]=lE(a),d+=c[b].length;else c[b]=lE(a),d+=c[b].length;return d};
vxa=function(a,b,c,d){c+="."+a;a=lE(b);d[c]=a;return c.length+a.length};
lE=function(a){try{return(typeof a==="string"?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}};
Bsa=function(a){g.mE(a)};
g.nE=function(a){g.mE(a,"WARNING")};
g.mE=function(a,b){var c=c===void 0?{}:c;c.name=g.jA("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.jA("INNERTUBE_CONTEXT_CLIENT_VERSION");var d=b===void 0?"ERROR":b,e=!1;d=d===void 0?"ERROR":d;e=e===void 0?!1:e;if(a){a.hasOwnProperty("level")&&a.level&&(d=a.level);if(g.FA("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(!(xxa>=5)){var h=yxa,l=Daa(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",u=p,w=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var A=0;A<a.args.length&&!(w=wxa(a.args[A],"params."+A,c,w),w>=500);A++);else if(a.hasOwnProperty("params")&&
a.params){var C=a.params;if(typeof a.params==="object")for(var F in C){if(C[F]){var G="params."+F,K=lE(C[F]);c[G]=K;w+=G.length+K.length;if(w>500)break}}else c.params=lE(C)}if(h.length)for(var N=0;N<h.length&&!(w=wxa(h[N],"params.context."+N,c,w),w>=500);N++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);var R={message:m,name:n,lineNumber:r,fileName:t,stack:u,params:c,sampleWeight:1},da=Number(a.columnNumber);isNaN(da)||(R.lineNumber=R.lineNumber+":"+da);if(a.level===
"IGNORED")var oa=0;else a:{for(var qa=sxa(),ha=g.v(qa.ys),ta=ha.next();!ta.done;ta=ha.next()){var P=ta.value;if(R.message&&R.message.match(P.tB)){oa=P.weight;break a}}for(var ua=g.v(qa.Gt),y=ua.next();!y.done;y=ua.next()){var Z=y.value;if(Z.callback(R)){oa=Z.weight;break a}}oa=1}R.sampleWeight=oa;for(var cb=g.v(zxa),La=cb.next();!La.done;La=cb.next()){var $a=La.value;if($a.DL[R.name])for(var Ya=g.v($a.DL[R.name]),Ha=Ya.next();!Ha.done;Ha=Ya.next()){var Ta=Ha.value,ob=R.message.match(Ta.Mj);if(ob){R.params["params.error.original"]=
ob[0];for(var B=Ta.groups,E={},D=0;D<B.length;D++)E[B[D]]=ob[D+1],R.params["params.error."+B[D]]=ob[D+1];R.message=$a.kR(E);break}}}R.params||(R.params={});var J=sxa();R.params["params.errorServiceSignature"]="msg="+J.ys.length+"&cb="+J.Gt.length;R.params["params.serviceWorker"]="false";g.Ua.document&&g.Ua.document.querySelectorAll&&(R.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));Sd("sample").constructor!==Pd&&(R.params["params.fconst"]="true");window.yterr&&
typeof window.yterr==="function"&&window.yterr(R);if(R.sampleWeight!==0&&!Axa.has(R.message)){if(e&&g.FA("web_enable_error_204"))Bxa(d===void 0?"ERROR":d,R);else{var L=d;L=L===void 0?"ERROR":L;if(L==="ERROR"){oE.publish("handleError",R);if(g.FA("record_app_crashed_web")&&Cxa===0&&R.sampleWeight===1)if(Cxa++,g.FA("errors_via_jspb")){var aa=new Hoa;var fa=T(aa,1,1);if(!g.FA("report_client_error_with_app_crash_ks")){var ia=new dz,O=new Vy,ka=new Uy,la=new Ty;var za=S(la,1,R.message);var Sa=gk(ka,Ty,
3,za);var gb=gk(O,Uy,5,Sa);var Ab=gk(ia,Vy,9,gb);gk(fa,dz,4,Ab)}var pb=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(pb,Hoa,20,fE,fa);eE("appCrashed",pb)}else{var Za={appCrashType:"APP_CRASH_TYPE_BREAKPAD"};g.FA("report_client_error_with_app_crash_ks")||(Za.systemHealth={crashData:{clientError:{logMessage:{message:R.message}}}});g.VB("appCrashed",Za)}Dxa++}else L==="WARNING"&&oE.publish("handleWarning",R);if(g.FA("kevlar_gel_error_routing"))a:{var qc=L;if(g.FA("errors_via_jspb")){if(Exa())var ac=
void 0;else{var bc=new My;S(bc,1,R.stack);R.fileName&&S(bc,4,R.fileName);var nc=R.lineNumber&&R.lineNumber.split?R.lineNumber.split(":"):[];nc.length!==0&&(nc.length!==1||isNaN(Number(nc[0]))?nc.length!==2||isNaN(Number(nc[0]))||isNaN(Number(nc[1]))||(Pk(bc,2,Number(nc[0])),Pk(bc,3,Number(nc[1]))):Pk(bc,2,Number(nc[0])));var Wc=new Ty;S(Wc,1,R.message);S(Wc,3,R.name);Pk(Wc,6,R.sampleWeight);qc==="ERROR"?T(Wc,2,2):qc==="WARNING"?T(Wc,2,1):T(Wc,2,0);var Yb=new Sy;Ok(Yb,1,!0);hk(Yb,My,3,pE,bc);var wc=
new Ky;S(wc,3,window.location.href);for(var $c=g.jA("FEXP_EXPERIMENTS",[]),Pc=0;Pc<$c.length;Pc++)wc.B($c[Pc]);var uc=g.jA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!kA("web_disable_gel_stp_ecatcher_killswitch")&&uc)for(var Tb=g.v(Object.keys(uc)),Ub=Tb.next();!Ub.done;Ub=Tb.next()){var zd=Ub.value,rd=new uy;S(rd,1,zd);S(rd,2,String(uc[zd]));wc.j(rd)}var sd=R.params;if(sd)for(var $b=g.v(Object.keys(sd)),Fc=$b.next();!Fc.done;Fc=$b.next()){var Hb=Fc.value,cd=new uy;S(cd,1,"client."+Hb);S(cd,2,
String(sd[Hb]));wc.j(cd)}var Ad=g.jA("SERVER_NAME"),Pb=g.jA("SERVER_VERSION");if(Ad&&Pb){var he=new uy;S(he,1,"server.name");S(he,2,Ad);wc.j(he);var Ud=new uy;S(Ud,1,"server.version");S(Ud,2,Pb);wc.j(Ud)}var Vd=new Uy;gk(Vd,Ky,1,wc);gk(Vd,Sy,2,Yb);gk(Vd,Ty,3,Wc);ac=Vd}var Ce=ac;if(!Ce)break a;var De=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(De,Uy,163,fE,Ce);eE("clientError",De)}else{var Ld=void 0;Ld=Ld===void 0?{}:Ld;if(Exa())var bf=void 0;else{var Qe={stackTrace:R.stack};R.fileName&&
(Qe.filename=R.fileName);var Md=R.lineNumber&&R.lineNumber.split?R.lineNumber.split(":"):[];Md.length!==0&&(Md.length!==1||isNaN(Number(Md[0]))?Md.length!==2||isNaN(Number(Md[0]))||isNaN(Number(Md[1]))||(Qe.lineNumber=Number(Md[0]),Qe.columnNumber=Number(Md[1])):Qe.lineNumber=Number(Md[0]));var Ff={level:"ERROR_LEVEL_UNKNOWN",message:R.message,errorClassName:R.name,sampleWeight:R.sampleWeight};qc==="ERROR"?Ff.level="ERROR_LEVEL_ERROR":qc==="WARNING"&&(Ff.level="ERROR_LEVEL_WARNNING");var Nd={isObfuscated:!0,
browserStackInfo:Qe};Ld.pageUrl=window.location.href;Ld.kvPairs=[];g.jA("FEXP_EXPERIMENTS")&&(Ld.experimentIds=g.jA("FEXP_EXPERIMENTS"));var ie=g.jA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!kA("web_disable_gel_stp_ecatcher_killswitch")&&ie)for(var ad=g.v(Object.keys(ie)),ld=ad.next();!ld.done;ld=ad.next()){var td=ld.value;Ld.kvPairs.push({key:td,value:String(ie[td])})}var Wd=R.params;if(Wd)for(var Vf=g.v(Object.keys(Wd)),qf=Vf.next();!qf.done;qf=Vf.next()){var Gf=qf.value;Ld.kvPairs.push({key:"client."+
Gf,value:String(Wd[Gf])})}var Ee=g.jA("SERVER_NAME"),Vb=g.jA("SERVER_VERSION");Ee&&Vb&&(Ld.kvPairs.push({key:"server.name",value:Ee}),Ld.kvPairs.push({key:"server.version",value:Vb}));bf={errorMetadata:Ld,stackTrace:Nd,logMessage:Ff}}var Fe=bf;if(!Fe)break a;g.VB("clientError",Fe)}if(qc==="ERROR"||g.FA("errors_flush_gel_always_killswitch"))b:{if(g.FA("web_fp_via_jspb")&&(Mwa(!0),Fwa(!0),!g.FA("web_fp_via_jspb_and_json")))break b;Fwa()}}g.FA("suppress_error_204_logging")||Bxa(L,R)}try{Axa.add(R.message)}catch(gh){}xxa++}}}};
Exa=function(){for(var a=g.v(Fxa),b=a.next();!b.done;b=a.next())if(g.SA(b.value.toLowerCase()))return!0;return!1};
Bxa=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.jA("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.v(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.jA("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(b=
g.v(Object.keys(c)),d=b.next();!d.done;d=b.next())d=d.value,a.postParams[d]=c[d];c=g.jA("SERVER_NAME");b=g.jA("SERVER_VERSION");c&&b&&(a.postParams["server.name"]=c,a.postParams["server.version"]=b)}g.HA(g.jA("ECATCHER_REPORT_HOST","")+"/error_204",a)};
Gxa=function(a){var b=g.Ja.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.ra(b))};
sE=function(a){var b=g.V(a,qE);if(b)return b;if((b=g.V(a,Hxa))&&b.commands)return Ixa(b.commands);if((b=g.V(a,Jxa))&&b.commands)return Ixa(b.commands);if((a=g.V(a,Kxa))&&a.identifier&&a.command&&(rE||(rE=[]),!rE.includes(a.identifier)))return rE.push(a.identifier),g.V(a.command,qE)};
Ixa=function(a){if(a.length!==0){var b=[];a=g.v(a);for(var c=a.next();!c.done;c=a.next())(c=sE(c.value))&&b.push(c);return{commandExecutorCommand:{commands:b}}}};
g.tE=function(a,b,c){c===void 0?delete a[b.name]:a[b.name]=c};
Lxa=function(a){for(var b=0,c=0;c<a.length;c++)b=b*31+a.charCodeAt(c),c<a.length-1&&(b%=Math.pow(2,47));return b%1E5};
Mxa=function(a){NC.call(this,1,arguments);this.csn=a};
Sxa=function(a,b,c,d,e,f,h,l){function m(){g.nE(new g.FB("newScreen() parent element does not have a VE - rootVe",b))}
var n=Nxa(),p=new gE({veType:b,youtubeData:f,jspbYoutubeData:void 0});f=uE({},n);e&&(f.cttAuthInfo=e);if(g.FA("il_via_jspb")){e=aqa((new Lz).j(n),p.getAsJspb());c&&c.visualElement?(p=new Zpa,c.clientScreenNonce&&S(p,2,c.clientScreenNonce),$pa(p,c.visualElement.getAsJspb()),h&&T(p,4,Oxa[h]),gk(e,Zpa,5,p)):c&&m();d&&S(e,3,d);if(g.FA("expectation_logging")&&l&&l.screenCreatedLoggingExpectations){c=new tx;l=g.v(l.screenCreatedLoggingExpectations.expectedParentScreens||[]);for(d=l.next();!d.done;d=l.next())d=
d.value,d.screenVeType&&(d=Jna(new rx,d.screenVeType),c.j(d));gk(e,tx,7,c)}Uwa(e,f,a)}else e={csn:n,pageVe:p.getAsJson()},g.FA("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?bE("screenCreated",e,a,f):g.VB("screenCreated",e,f);PC(Pxa,new Mxa(n));
vE.clear();Qxa.clear();Rxa.clear();return n};
g.wE=function(a,b,c,d,e){g.Txa(a,b,c,[d],e===void 0?!1:e)};
g.Txa=function(a,b,c,d,e){e=e===void 0?!1:e;for(var f=uE({cttAuthInfo:kE(b)||void 0},b),h=g.v(d),l=h.next();!l.done;l=h.next()){l=l.value;var m=l.getAsJson();(g.gd(m)||!m.trackingParams&&!m.veType)&&g.nE(Error("Child VE logged with no data"));if(g.FA("no_client_ve_attach_unless_shown")){var n=xE(l,b);if(m.veType&&!Qxa.has(n)&&!Rxa.has(n)&&!e){if(!g.FA("il_attach_cache_limit")||vE.size<1E3){vE.set(n,[a,b,c,l]);return}g.FA("il_attach_cache_limit")&&vE.size>1E3&&g.nE(new g.FB("IL Attach cache exceeded limit"))}l=
xE(c,b);vE.has(l)?Uxa(c,b):Rxa.set(l,!0)}}d=d.filter(function(q){q.csn!==b?(q.csn=b,q=!0):q=!1;return q});
if(g.FA("il_via_jspb")){var p=bqa((new Mz).j(b),c.getAsJspb());g.$r(d,function(q){q=q.getAsJspb();jk(p,3,lz,q)});
b==="UNDEFINED_CSN"?yE("visualElementAttached",f,void 0,p):Wwa(p,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.$r(d,function(q){return q.getAsJson()})},b==="UNDEFINED_CSN"?yE("visualElementAttached",f,c):a?bE("visualElementAttached",c,a,f):g.VB("visualElementAttached",c,f)};
Wxa=function(a,b,c,d,e,f){Vxa(c,b);d=uE({cttAuthInfo:kE(b)||void 0},b);g.FA("il_via_jspb")?(e=(new Pz).j(b),c=c.getAsJspb(),c=gk(e,lz,2,c),c=T(c,4,1),f&&gk(c,Kz,3,f),b==="UNDEFINED_CSN"?yE("visualElementShown",d,void 0,c):Qwa(c,d,a)):(f={csn:b,ve:c.getAsJson(),eventType:1},e&&(f.clientData=e),b==="UNDEFINED_CSN"?yE("visualElementShown",d,f):a?bE("visualElementShown",f,a,d):g.VB("visualElementShown",f,d))};
Xxa=function(a,b,c,d){var e=(d=d===void 0?!1:d)?16:8,f=uE({cttAuthInfo:kE(b)||void 0,endOfSequence:d},b);g.FA("il_via_jspb")?(e=(new Oz).j(b),c=c.getAsJspb(),c=gk(e,lz,2,c),T(c,4,d?16:8),b==="UNDEFINED_CSN"?yE("visualElementHidden",f,void 0,c):Rwa(c,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},b==="UNDEFINED_CSN"?yE("visualElementHidden",f,d):a?bE("visualElementHidden",d,a,f):g.VB("visualElementHidden",d,f))};
Zxa=function(a,b,c,d,e){Yxa(a,b,c,d,e)};
Yxa=function(a,b,c,d,e){var f=void 0;Vxa(c,b);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var h=uE({cttAuthInfo:kE(b)||void 0},b);g.FA("il_via_jspb")?(d=(new Nz).j(b),c=c.getAsJspb(),c=gk(d,lz,2,c),T(c,4,Oxa[f]),e&&gk(c,Kz,3,e),b==="UNDEFINED_CSN"?yE("visualElementGestured",h,void 0,c):Swa(c,h,a)):(e={csn:b,ve:c.getAsJson(),gestureType:f},d&&(e.clientData=d),b==="UNDEFINED_CSN"?yE("visualElementGestured",h,e):a?bE("visualElementGestured",e,a,h):g.VB("visualElementGestured",e,h))};
$xa=function(){var a=yD(16);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
yE=function(a,b,c,d){zE.push({payloadName:a,payload:c,Fu:d,options:b});aya||(aya=iua(Pxa,bya))};
bya=function(a){if(zE){for(var b=g.v(zE),c=b.next();!c.done;c=b.next())if(c=c.value,g.FA("il_via_jspb")&&c.Fu)switch(c.Fu.j(a.csn),c.payloadName){case "screenCreated":Uwa(c.Fu,c.options);break;case "visualElementAttached":Wwa(c.Fu,c.options);break;case "visualElementShown":Qwa(c.Fu,c.options);break;case "visualElementHidden":Rwa(c.Fu,c.options);break;case "visualElementGestured":Swa(c.Fu,c.options);break;case "visualElementStateChanged":Twa(c.Fu,c.options);break;default:g.nE(new g.FB("flushQueue unable to map payloadName to JSPB setter"))}else c.payload&&
(c.payload.csn=a.csn,g.VB(c.payloadName,c.payload,c.options));zE.length=0}aya=0};
xE=function(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b};
Vxa=function(a,b){if(g.FA("no_client_ve_attach_unless_shown")){var c=xE(a,b);Qxa.set(c,!0);Uxa(a,b)}};
Uxa=function(a,b){a=xE(a,b);vE.has(a)&&(b=vE.get(a)||[],g.wE(b[0],b[1],b[2],b[3],!0),vE.delete(a))};
uE=function(a,b){g.FA("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a};
g.AE=function(a,b,c,d){g.nA(Wxa)(void 0,a,b,c,d,void 0)};
g.BE=function(a,b){g.nA(function(){g.Zb(b,function(c){Vxa(c,a);var d=uE({cttAuthInfo:kE(a)||void 0},a);if(g.FA("il_via_jspb")){var e=(new Pz).j(a);c=c.getAsJspb();e=gk(e,lz,2,c);e=T(e,4,4);a==="UNDEFINED_CSN"?yE("visualElementShown",d,void 0,e):Qwa(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},a==="UNDEFINED_CSN"?yE("visualElementShown",d,e):g.VB("visualElementShown",e,d)})})()};
g.CE=function(a,b){g.nA(function(){g.Zb(b,function(c){Xxa(void 0,a,c)})})()};
g.DE=function(a,b,c){g.nA(Zxa)(void 0,a,b,c,void 0)};
FE=function(a,b,c,d,e,f){c=c===void 0?{}:c;this.componentType=a;this.renderer=b===void 0?null:b;this.macros=c;this.layoutId=d;this.interactionLoggingClientData=e;this.j=f;this.id=EE(a)};
EE=function(a){var b=":"+(mw.getInstance().j++).toString(36);return a+b};
g.GE=function(a){a=a===void 0?!1:a;g.I.call(this);this.Ej=new g.aw(a);g.M(this,this.Ej)};
g.HE=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
IE=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
JE=function(){var a="ytp-id-"+cya.toString();cya++;return a};
g.KE=function(a){g.I.call(this);this.Kb={};this.Zd={};this.element=this.createElement(a)};
LE=function(a,b,c,d){if(d.substr(0,2)==="{{")a.Zd[d]=[b,c];else return d};
dya=function(a,b){var c=[];if(!b)return c;b=g.v(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d!=null){var e=d.nodeType;e===1||e===3?c.push(d):d&&typeof d.I==="string"?c.push(a.createElement(d)):d.element?c.push(d.element):typeof d==="string"&&d.indexOf("\n")!==-1?d.split("\n").forEach(function(f,h){h>0&&c.push(g.Bf("BR"));c.push(g.Cf(f))}):c.push(g.Cf(d))}return c};
ME=function(a,b,c,d){if(c==="child"){g.Ef(b);var e;d===void 0?e=void 0:e=!Array.isArray(d)||d&&typeof d.I==="string"?[d]:d;c=dya(a,e);c=g.v(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else c==="style"?g.Is(b,"cssText",d?d:""):d===null||d===void 0?b.removeAttribute(c):(a=d.toString(),c==="href"&&(a=g.de(g.je(a))),b.setAttribute(c,a))};
g.W=function(a){g.KE.call(this,a);this.Ib=!0;this.Z=!1;this.listeners=[]};
g.NE=function(a,b){b?a.show():a.hide()};
g.OE=function(a){g.W.call(this,a);this.Sa=new g.GE;g.M(this,this.Sa)};
PE=function(a,b,c,d,e,f,h){h=h===void 0?null:h;g.OE.call(this,b);this.api=a;this.macros={};this.componentType=c;this.K=this.N=null;this.Cb=h;this.layoutId=d;this.interactionLoggingClientData=e;this.ob=f;this.eb=null;this.eT=new wD(this.element);g.M(this,this.eT);this.rb=this.T(this.element,"click",this.onClick);this.Ha=[];this.Da=new rva(this.onClick,this);g.M(this,this.Da);this.Ab=!1;this.La=this.ra=null};
QE=function(a,b){a=a===void 0?null:a;b=b===void 0?null:b;if(a==null)return g.nE(Error("Got null or undefined adText object")),"";var c=g.cf(a.text);if(!a.isTemplated)return c;if(b==null)return g.nE(Error("Missing required parameters for a templated message")),c;a=g.v(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.v(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
eya=function(a){a=a===void 0?null:a;return a!=null&&(a=a.thumbnail,a!=null&&a.thumbnails!=null&&a.thumbnails.length!=0&&a.thumbnails[0].url!=null)?g.cf(a.thumbnails[0].url):""};
fya=function(a){a=a===void 0?null:a;return a!=null&&(a=a.thumbnail,a!=null&&a.thumbnails!=null&&a.thumbnails.length!=0&&a.thumbnails[0].width!=null&&a.thumbnails[0].height!=null)?new g.Me(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.Me(0,0)};
g.RE=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.v(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.SE=function(a){if(a.simpleText)return a=document.createTextNode(a.simpleText),a;var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];if(d.text){var e=b,f=e.push,h=null;var l=d.text;d.bold&&(h=Af("B",null,h||l));d.italics&&(h=Af("I",null,h||l));d.strikethrough&&(h=Af("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=Af("A",null,h||l),g.Oe(h,d.url),d.target=="TARGET_NEW_WINDOW"&&(h.target="_blank"));l=h||Af("SPAN",null,
l);f.call(e,l)}}return b.length==1?b[0]:Af("SPAN",null,b)};
g.gya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,W:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
hya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",W:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.TE=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{I:"path",W:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.UE=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{I:"path",W:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
iya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",W:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{I:"path",W:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
jya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Jc:!0,W:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
kya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Jc:!0,W:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.VE=function(){return{I:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",W:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
lya=function(){return{I:"svg",W:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",W:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
mya=function(){return{I:"svg",W:{viewBox:"0 0 24 24"},V:[{I:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",W:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
nya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
oya=function(){return{I:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
fill:"white","fill-rule":"evenodd"}}]}};
pya=function(){return{I:"svg",W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{I:"path",W:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",W:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
qya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
rya=function(){return{I:"svg",W:{viewBox:"0 0 24 24"},V:[{I:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",W:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
WE=function(){return{I:"svg",W:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",W:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
sya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Jc:!0,W:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
tya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.uya=function(){return{I:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",W:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
XE=function(){return{I:"svg",W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{I:"path",W:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",W:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}};
vya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
wya=function(){return{I:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",S:"ytp-svg-fill",W:{"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"}}]}};
xya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,W:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
yya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
zya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.Aya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
g.Bya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,W:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
g.YE=function(){return{I:"svg",W:{height:"100%",viewBox:"0 0 16 16",width:"100%"},V:[{I:"path",W:{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"}}]}};
Cya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
Dya=function(){return{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
ZE=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return XE();case "CHECK_BOX":return{I:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",W:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{I:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",
W:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{I:"path",W:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.VE();case "INFO_OUTLINE":return pya();case "REMOVE_CIRCLE":return{I:"svg",W:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",W:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",W:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};
case "SKIP_NEXT":return tya();case "SKIP_NEXT_NEW":return{I:"svg",W:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},V:[{I:"path",W:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return rya();case "DISLIKE":return mya();default:return g.nE(new g.FB("Unexpected icon:",a)),null}};
$E=function(a,b,c,d,e,f,h,l){e=e===void 0?[]:e;h=h===void 0?!1:h;e={I:"button",Ma:["ytp-ad-button"].concat(e)};l!=null&&(e.W={tabindex:l});PE.call(this,a,e,f===void 0?"button":f,b,c,d);this.j=this.B=this.C=null;this.D=h;this.hide()};
Eya=function(a){var b=null;a.j!=null&&(b=[a.j.serviceEndpoint,a.j.navigationEndpoint].filter(function(c){return c!=null}),a.j.command&&(b=b.concat(a.j.command)));
return b||[]};
aF=function(){g.I.call(this);var a=this;this.j=new Map;this.B=csa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.cD(b[c])})};
Fya=function(){bF==null&&(bF=new aF);return bF};
cF=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=Gya(a))){b=Af("SPAN",null,b);break a}b=g.Cf(a)}return b}var c=[];if(a.runs)for(var d=0;d<a.runs.length;d++){var e=a.runs[d];e.text&&c.push(Hya(e,b))}return c.length==1?c[0]:Af("SPAN",null,c)};
Hya=function(a,b){var c=null,d=a.text;b&&(d=Gya(d)||d);a.bold&&(c=Af("B",null,c||d));a.italics&&(c=Af("I",null,c||d));a.strikethrough&&(c=Af("STRIKE",null,c||d));a.navigationEndpoint&&g.V(a.navigationEndpoint,g.dF)&&(b=g.V(a.navigationEndpoint,g.dF),c=Af("A",null,c||d),g.Oe(c,b.url),b.target=="TARGET_NEW_WINDOW"&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),Fya().register(c,a),g.Kv(c,"ytp-ad-has-logging-urls"));
return c||Af("SPAN",null,d)};
Gya=function(a){a=a.split(/(?:\r\n|\r|\n)/g);if(a.length>1){for(var b=[a[0]],c=1;c<a.length;c++)b.push(Af("BR")),b.push(a[c]);return b}return null};
eF=function(a,b,c,d,e,f,h,l){f=f===void 0?!1:f;h=h===void 0?[]:h;PE.call(this,a,{I:"span",Ma:["ytp-ad-hover-text-button"].concat(h)},l===void 0?"ad-hover-text-button":l,b,c,d);this.button=this.B=null;this.G=f;this.D=e;this.hide()};
fF=function(a){return a&&a.thumbnails&&(a.thumbnails||null).length!=0&&a.thumbnails[0].url?g.cf(a.thumbnails[0].url):""};
gF=function(a,b,c,d,e,f){f=f===void 0?!1:f;PE.call(this,a,{I:"img",S:"ytp-ad-image"},"ad-image",b,c,d,e===void 0?null:e);this.j=f;this.hide()};
hF=function(a,b,c,d,e,f){e=e===void 0?[]:e;PE.call(this,a,{I:"div",Ma:["ytp-ad-confirm-dialog-background"],V:[{I:"div",S:"ytp-ad-confirm-dialog-container",V:[{I:"div",Ma:["ytp-ad-confirm-dialog"].concat(e),W:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-confirm-dialog-title",xa:"{{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",xa:"{{cancelLabel}}"},{I:"button",S:"ytp-ad-confirm-dialog-confirm-button",
xa:"{{confirmLabel}}"}]}]}]},{I:"button",Ma:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],V:[{I:"span",S:"ytp-ad-button-icon",V:[g.VE()]}]}]},f===void 0?"confirm-dialog":f,b,c,d);this.Y=this.Fa("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.Fa("ytp-ad-confirm-dialog-cancel-button");this.G=this.Fa("ytp-ad-confirm-dialog-confirm-button");this.va=this.Fa("ytp-ad-confirm-dialog-messages");this.C=null;this.j=new sB;g.M(this,this.j);this.B=null;this.hide()};
Iya=function(a,b){if(b.title){var c=g.RE(b.title);a.updateValue("title",c)}if(b.dialogMessages){c=g.v(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=cF(d.value),a.va.appendChild(d)}b.cancelLabel&&(c=g.RE(b.cancelLabel),a.updateValue("cancelLabel",c),a.j.T(a.D,"click",function(e){return a.sN(e)}));
b.confirmLabel&&(b=g.RE(b.confirmLabel),a.updateValue("confirmLabel",b),a.j.T(a.G,"click",function(e){return a.ER(e)}));
a.j.T(a.Y,"click",function(e){return a.DR(e)})};
iF=function(a,b,c,d,e,f){e=e===void 0?[]:e;f=f===void 0?"toggle-button":f;var h=EE("ytp-ad-toggle-button-input"),l={role:"button","aria-label":"{{tooltipText}}"};a.U().experiments.gb("fix_h5_toggle_button_a11y")&&(l.tabindex="0");a.U().experiments.gb("fix_toggle_button_role_for_ad_components")&&(l.role="checkbox");PE.call(this,a,{I:"div",Ma:["ytp-ad-toggle-button"].concat(e),V:[{I:"label",S:"ytp-ad-toggle-button-label",W:{"for":h},V:[{I:"span",S:"ytp-ad-toggle-button-icon",W:l,V:[{I:"span",S:"ytp-ad-toggle-button-untoggled-icon",
xa:"{{untoggledIconTemplateSpec}}"},{I:"span",S:"ytp-ad-toggle-button-toggled-icon",xa:"{{toggledIconTemplateSpec}}"}]},{I:"input",S:"ytp-ad-toggle-button-input",W:{id:h,type:"checkbox"}},{I:"span",S:"ytp-ad-toggle-button-text",xa:"{{buttonText}}"},{I:"span",S:"ytp-ad-toggle-button-tooltip",xa:"{{tooltipText}}"}]}]},f,b,c,d);this.D=this.Fa("ytp-ad-toggle-button");this.j=this.Fa("ytp-ad-toggle-button-input");this.Fa("ytp-ad-toggle-button-label");this.B=this.Fa("ytp-ad-toggle-button-icon");this.Y=this.Fa("ytp-ad-toggle-button-untoggled-icon");
this.G=this.Fa("ytp-ad-toggle-button-toggled-icon");this.Ga=this.Fa("ytp-ad-toggle-button-text");this.C=null;this.va=!1;this.hide()};
Jya=function(a){a.va&&(a.isToggled()?(g.Vs(a.Y,!1),g.Vs(a.G,!0),a.api.U().experiments.gb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!0)):(g.Vs(a.Y,!0),g.Vs(a.G,!1),a.api.U().experiments.gb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!1)))};
Kya=function(a,b){var c=null;a.C&&(c=(b?[a.C.defaultServiceEndpoint,a.C.defaultNavigationEndpoint]:[a.C.toggledServiceEndpoint]).filter(function(d){return d!=null}));
return c||[]};
Lya=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
jF=function(a){sB.call(this);this.j=a;this.T(this.j,"onAdUxUpdate",this.K)};
Mya=function(a,b,c,d){PE.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",W:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-feedback-dialog-title",V:[{I:"span",xa:"{{title}}"}]},{I:"span",S:"ytp-ad-info-dialog-feedback-options-title",xa:"{{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",
xa:"{{cancelLabel}}"},{I:"button",S:"ytp-ad-feedback-dialog-confirm-button",xa:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",b,c,d);this.D=[];this.j=null;this.G=this.Fa("ytp-ad-feedback-dialog-cancel-button");this.Y=this.Fa("ytp-ad-feedback-dialog-confirm-button");this.va=this.Fa("ytp-ad-info-dialog-feedback-options");this.Ga=this.Fa("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
Qya=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.j=new $E(a.api,a.layoutId,a.interactionLoggingClientData,a.ob,["ytp-ad-feedback-dialog-close-button"],"button"),g.M(a,a.j),a.j.init(EE("button"),c,a.macros),a.j.listen("click",a.R_,a),a.j.Ka(a.element));b.title&&(c=g.RE(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.RE(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&Nya(a,b.reasons);b.cancelLabel&&(c=g.RE(b.cancelLabel),a.updateValue("cancelLabel",
c),g.oB(a.G,"click",function(){return a.R_()}));
b.confirmLabel&&(c=g.RE(b.confirmLabel),a.updateValue("confirmLabel",c),g.oB(a.Y,"click",function(){return Oya(a)}));
b.undoRenderer&&Pya(a,b.undoRenderer)};
Nya=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;if(c==null)g.nE(Error("AdFeedbackReason.reason was not set."));else if(d=d.endpoint,d==null)g.nE(Error("AdFeedbackReason.endpoint was not set."));else{c=new kF(c,d);g.M(a,c);d=a.va;var e=c.Jb();d.appendChild(e);a.D.push(c)}}};
Pya=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new $E(a.api,a.layoutId,a.interactionLoggingClientData,a.ob,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.M(a,a.B),a.B.init(EE("ad-feedback-undo-mute-button"),b,a.macros),a.B.listen("click",a.Oca,a),a.B.Ka(a.Ga)):g.nE(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
Oya=function(a){var b=a.D.filter(function(c){return c.isChecked()});
b.length!==0&&(b=b[0].getCommand(),a.layoutId?a.ob.executeCommand(b,a.layoutId):g.mE(Error("Missing layoutId for ad feedback dialog.")),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.publish("a"),a.hide())};
kF=function(a,b){this.B=b;this.j=new g.OE({I:"label",S:"ytp-ad-feedback-dialog-reason-label",V:[{I:"input",S:"ytp-ad-feedback-dialog-reason-input",W:{type:"radio",name:"feedback-reason-group"}},{I:"span",S:"ytp-ad-feedback-dialog-reason-text",xa:g.RE(a)}]});this.C=this.j.Fa("ytp-ad-feedback-dialog-reason-input")};
lF=function(a,b,c,d){hF.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
Rya=function(a,b,c,d,e){PE.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",W:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-info-dialog-title",xa:"{{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",xa:"{{confirmLabel}}"}]}]}]}]},
"ad-info-dialog",b,c,d);this.j=this.B=null;this.Y=this.Fa("ytp-ad-info-dialog-confirm-button");this.Ya=this.Fa("ytp-ad-info-dialog-mute-container");this.Xa=this.Fa("ytp-ad-info-dialog-message");this.Oa=this.Fa("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.Ga=e;this.G=null;this.Wa=!1;this.va=null;this.hide()};
Sya=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new Mya(a.api,a.layoutId,a.interactionLoggingClientData,a.ob),g.M(a,a.B),a.B.init(EE("ad-feedback-dialog"),b,a.macros),a.B.Ka(a.Ga),a.B.subscribe("a",function(){return a.publish("c")})};
Tya=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new lF(a.api,a.layoutId,a.interactionLoggingClientData,a.ob),g.M(a,a.D),a.D.init(EE("ad-mute-confirm-dialog"),b,a.macros),a.D.Ka(a.Ga),a.D.subscribe("b",function(){return a.publish("c")})};
Uya=function(a){a.j&&a.j.listen("click",a.GV,a);g.oB(a.Y,"click",function(){return a.GV()})};
mF=function(a,b,c,d,e,f){eF.call(this,a,b,c,d,f===void 0?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.j=null;this.C=e;this.hide()};
Wya=function(a,b,c){b=b.dialog&&g.V(b.dialog,Vya)||null;b==null?g.mE(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.j=new Rya(a.api,a.layoutId,a.interactionLoggingClientData,a.ob,a.C),g.M(a,a.j),a.j.init(EE("ad-info-dialog"),b,c),a.j.Ka(a.C),a.j.subscribe("d",function(){return a.publish("f")}),a.j.subscribe("c",function(){return a.publish("e")}))};
Zya=function(a,b,c){a.button==null?g.mE(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.Kv(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&g.V(b.serviceEndpoint,Xya)||null)?(Wya(a,b,c),a.button.listen("click",function(){a.j&&!a.j.Ib&&(a.j.show(),Yya(a))})):a.button.listen("click",function(){return Yya(a)}))};
Yya=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
nF=function(a,b,c,d,e,f){PE.call(this,a,{I:"div",S:"ytp-ad-text"},f===void 0?"ad-text":f,b,c,d,e===void 0?null:e);this.j=null;this.hide()};
$ya=function(a,b){b&&g.Pf(a.element,QE(a.j,b))};
oF=function(a,b,c,d,e,f,h){PE.call(this,a,b,c,d,e,f);this.j=h;g.M(this,this.j);this.Wa=this.Y=-1};
pF=function(a){a.j&&a.Y===-1&&(a.Y=a.j.subscribe("h",a.Uo,a),a.Wa=a.j.subscribe("g",a.Cq,a),a.Uo())};
qF=function(a){a.j!=null&&a.Y!==-1&&(a.j.Uh(a.Y),a.j.Uh(a.Wa),a.Wa=-1,a.Y=-1)};
g.rF=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=d===void 0?b:d;this.j=f;this.onHidden=e;this.delay=new g.Dv(this.tI,0,this);g.M(this,this.delay)};
sF=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
tF=function(a,b,c,d,e,f){oF.call(this,a,{I:"div",S:"ytp-ad-preview-slot"},"ad-preview",b,c,d,e);var h=this;this.Ya=-1;this.D=this.api.U().experiments.gb("enable_modern_skip_button_on_web");this.B=new g.OE({I:"span",S:"ytp-ad-preview-container"});this.D&&this.B.element.classList.add("ytp-ad-preview-container-detached");g.M(this,this.B);this.C=this.D?new nF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,"ytp-ad-preview-text-modern"):new nF(this.api,this.layoutId,this.interactionLoggingClientData,
this.ob,"ytp-ad-preview-text");g.M(this,this.C);this.C.Ka(this.B.element);this.va=this.D?new g.OE({I:"span",S:"ytp-ad-preview-image-modern"}):new g.OE({I:"span",S:"ytp-ad-preview-image"});g.M(this,this.va);this.G=new gF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob);g.M(this,this.G);this.G.Ka(this.va.element);this.va.Ka(this.B.element);this.B.Ka(this.element);this.Ga=new g.rF(this.B,400,!1,100,function(){return h.hide()});
g.M(this,this.Ga);this.Oa=0;this.Xa=!1;this.ib=f;this.hide()};
aza=function(a){a.Ga.show(100);a.show()};
bza=function(a,b,c,d,e,f){oF.call(this,a,{I:"div",Ma:["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 gF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,"ytp-flyout-cta-icon");
g.M(this,this.C);this.C.Ka(this.Fa("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 nF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,"ytp-flyout-cta-headline");g.M(this,this.G);this.G.Ka(this.Fa("ytp-flyout-cta-headline-container"));this.D=new nF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,"ytp-flyout-cta-description");g.M(this,this.D);this.D.Ka(this.Fa("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 $E(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,a);g.M(this,this.B);this.B.Ka(this.Fa("ytp-flyout-cta-action-button-container"));this.B.element.setAttribute("tabIndex","-1");Av(this.B.element);this.va=null;this.Ga=0;this.Oa=f;this.hide()};
cza=function(a,b,c,d,e){PE.call(this,a,{I:"div",S:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",b,c,d,e===void 0?null:e);var f=this;this.j=null;this.C=new iF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,["ytp-ad-instream-user-sentiment-like-button"]);g.M(this,this.C);this.C.Ka(this.element);this.B=new iF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,["ytp-ad-instream-user-sentiment-dislike-button"]);g.M(this,this.B);this.B.Ka(this.element);
this.D=new g.rF(this,400,!1,500,function(){return f.hide()});
g.M(this,this.D);this.hide()};
uF=function(a,b,c,d,e,f){e=e===void 0?0:e;f=f===void 0?!1:f;g.I.call(this);this.B=a;this.C=!1;this.Y=d;this.ra=f;this.K=!1;this.j=null;b>0&&(this.j=new g.Dv(this.TW,b,this),g.M(this,this.j));this.G=new g.Dv(this.TW,c,this);g.M(this,this.G);this.Z=pla(this.B,e,1,d);g.M(this,this.Z);this.N=pla(this.B,0,d,1);g.M(this,this.N);this.D=new sB;g.M(this,this.D)};
dza=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Pe(a,"unknown result type")}};
eza=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:Pe(a,"Unknown method type")}};
gza=function(a,b){var c=1,d=[];try{var e=document.querySelector(".ytp-ad-skip-button-slot");e?getComputedStyle(e).display==="none"?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")}a.isTrusted===!0?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED"):a.isTrusted===!1?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);iA("ISDSTAT",c);fza(c,"i.s_",{Zea:"sk",metadata:b,states:d});return c};
hza=function(a,b){var c=[];b?b.isTrusted===!0?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):b.isTrusted===!1?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");fza(0,"a.s_",{metadata:a,states:c},!1);iA("ASDSTAT",0)};
fza=function(a,b,c,d){d=d===void 0?!0:d;var e,f,h={detected:a===0,source:""+b+((e=c.Zea)!=null?e:"")+((f=c.p7)!=null?f:""),detectionStates:c.states,durationMs:c.o7};c.metadata&&(h.contentCpn=c.metadata.contentCpn,h.adCpn=c.metadata.adCpn);g.VB("biscottiBasedDetection",h);d&&(a=dza(a),b=eza(b),iA("CATSTAT",Number(g.jA("CATSTAT",0))&~(3<<b)|a<<b))};
iza=function(a){return a?"layout:  "+a.layoutType:""};
vF=function(a,b,c){return a?!0:(g.nE(new g.FB("Assertion: "+b,c)),!1)};
wF=function(a,b,c,d,e){d=d===void 0?{}:d;if(!e||Math.random()<5E-4){b=b||null;c=c||null;a=a instanceof Error?a:new g.FB(a);if(a.args)for(var f=g.v(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=iza(c));e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.nE(a)}};
g.xF=function(a,b){this.state=a;this.AB=b};
zF=function(a,b){return g.yF(a.state,b)&&!g.yF(a.AB,b)?1:!g.yF(a.state,b)&&g.yF(a.AB,b)?-1:0};
g.AF=function(a,b){return zF(a,b)>0};
BF=function(a,b,c,d,e,f){oF.call(this,a,{I:"div",S:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.va=null;this.Ga=!1;this.Xa=f;this.G=this.api.U().experiments.gb("enable_modern_skip_button_on_web");this.Ya=!1;this.D=new g.OE({I:"span",Ma:["ytp-ad-skip-button-container"]});this.G&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");g.M(this,this.D);this.D.Ka(this.element);this.B=this.C=null;this.ib=new g.rF(this.D,500,!1,100,function(){return h.hide()});
g.M(this,this.ib);this.Oa=new uF(this.D.element,15E3,5E3,.5,.5,this.G);g.M(this,this.Oa);this.hide()};
kza=function(a){a=a.va&&a.va.adRendererCommands;return(a&&a.clickCommand&&g.V(a.clickCommand,g.CF)&&g.V(a.clickCommand,g.CF).commands||[]).some(function(b){return b.adLifecycleCommand?jza(b.adLifecycleCommand):!1})};
jza=function(a){return a.action==="END_LINEAR_AD"||a.action==="END_LINEAR_AD_PLACEMENT"};
DF=function(a,b,c,d,e,f){oF.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()};
lza=function(a,b){a.D||(a.D=!0,a.B&&(b?a.B.Ga.hide():a.B.hide()),b?(a=a.C,a.ib.show(),a.show()):a.C.show())};
mza=function(a,b,c,d){$E.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
EF=function(a,b,c,d,e,f){PE.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.Fa("ytp-ad-simple-ad-badge");this.hide()};
FF=function(a,b,c,d,e){e=e===void 0?!1:e;FE.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.oM=e};
GF=function(a,b){g.GE.call(this);this.api=a;this.durationMs=b;this.j=null;this.Hd=new sB(this);g.M(this,this.Hd);this.B=nza;this.Hd.T(this.api,"presentingplayerstatechange",this.X5);this.j=this.Hd.T(this.api,"onAdPlaybackProgress",this.Uc)};
HF=function(a){g.GE.call(this);this.j=!1;this.mj=0;this.Hd=new sB(this);g.M(this,this.Hd);this.durationMs=a;this.Ye=new g.mg(100);g.M(this,this.Ye);this.Hd.T(this.Ye,"tick",this.Uc);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.IF=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="";d>0&&(b+=" "+d+" \u0434\u043d.");if(d>0||e>0)b+=" "+e+" \u0447.";b+=" "+f+" \u043c\u0438\u043d.";b+=" "+c+" \u0441\u0435\u043a.";d=b.trim()}else{b="";d>0&&(b+=d+":",e<10&&(b+="0"));if(d>0||e>0)b+=e+":",f<10&&(b+="0");b+=f+":";c<10&&(b+="0");d=b+c}return a>=0?d:"-"+d};
g.JF=function(a){return(!("button"in a)||typeof a.button!=="number"||a.button===0)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)};
KF=function(a,b,c,d,e,f){oF.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()};
oza=function(a,b,c,d){nF.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
LF=function(a,b,c,d){PE.call(this,a,{I:"div",S:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",b,c,d);this.hide()};
MF=function(a,b){this.B=a;this.j=b};
pza=function(a,b){return a.B+b*(a.j-a.B)};
NF=function(a,b,c){return a.j-a.B?g.ze((b-a.B)/(a.j-a.B),0,1):c!=null?c:Infinity};
OF=function(a,b){g.OE.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.M(this,this.B);this.progressBar=this.Fa("ytp-ad-persistent-progress-bar");this.j=-1;this.T(a,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()};
PF=function(a,b,c,d,e,f){PE.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"},{I:"div",S:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",b,c,d);this.Y=f;this.C=this.Fa("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.Fa("ytp-ad-player-overlay-instream-info");this.D=null;qza(this)&&(a=Af("div"),g.Kv(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 oza(this.api,this.layoutId,this.interactionLoggingClientData,this.ob),c.Ka(a),c.init(EE("ad-title"),{text:b.title},this.macros),g.M(this,c)),this.D=a);this.G=this.Fa("ytp-ad-player-overlay-skip-or-preview");
this.Oa=this.Fa("ytp-ad-player-overlay-progress-bar");this.Ga=this.Fa("ytp-ad-player-overlay-instream-user-sentiment");this.va=this.Fa("ytp-ad-player-overlay-ad-disclosure-banner");this.B=e;g.M(this,this.B);this.hide()};
qza=function(a){a=a.api.U();return g.QF(a)&&a.B};
rza=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.to("/sharing_services",a);g.cD(d)};
g.RF=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 a<16?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)};
SF=function(a){this.j=new dw(a)};
sza=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return(g.jA("INNERTUBE_CLIENT_NAME")==="WEB"||g.jA("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a};
TF=function(a){if(g.jA("LOGGED_IN",!0)&&sza()){var b=g.jA("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.yn(window.location.href);c&&b.push(c);c=g.yn(a);g.Eb(b,c)||!c&&ec(a,"/")?(b=zn(a),(b=Kfa(b))?(b=lxa(b),b=(b=g.RA(b)||null)?rA(b):{}):b=null):b=null;b==null&&(b={});c=b;var d=void 0;sza()?(d||(d=g.jA("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&kxa(a,b)}};
g.tza=function(a){var b=b===void 0?{}:b;var c=c===void 0?"":c;var d=d===void 0?window:d;a=g.to(a,b);TF(a);c=g.je(a+c);d=d.location;c=ke(c);c!==void 0&&(d.href=c)};
g.uza=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?!1:c;var d=g.jA("EVENT_ID");d&&(b.ei||(b.ei=d));b&&kxa(a,b);c||(TF(a),g.tza(a))};
g.UF=function(a,b,c,d,e){e=e===void 0?!1:e;c&&kxa(a,c);c=g.je(a);var f=g.de(c);a!=f&&oA(Error("Unsafe window.open URL: "+a));a=f;b=b||df(a).toString(36);try{var h=rA(a);if(g.FA("replace_client_url_parsing_with_server_signal")){if(e){vza(a,b);return}}else if((h==null?void 0:h.ase)==="2"){vza(a,b);return}}catch(l){g.mA(l)}TF(a);g.Re(c,b,d)};
vza=function(a,b){a=Wua(a);TF(a);g.Re(a,b,"attributionsrc")};
wza=function(a){VF=a};
xza=function(a){VF=a&&a.data};
yza=function(a){WF=a};
zza=function(a){WF=a&&a.data};
Aza=function(a){XF=a};
Bza=function(a){XF=a&&a.data};
Dza=function(){Cza=XF=WF=VF=null};
Fza=function(){var a=a===void 0?window.location.href:a;if(g.FA("kevlar_disable_theme_param"))return null;vn(g.xn(5,a));try{var b=g.sA(a).theme;return Eza.get(b)||null}catch(c){}return null};
YF=function(){this.j={};if(this.B=era()){var a=g.RA("CONSISTENCY");a&&Gza(this,{encryptedTokenJarContents:a})}};
Gza=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,typeof b.expirationSeconds==="string")){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},c*1E3);
a.B&&g.QA("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
ZF=function(){this.B=-1;var a=g.jA("LOCATION_PLAYABILITY_TOKEN");g.jA("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=Hza(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
Hza=function(a){return a.localStorage===void 0?new TB("yt-client-location"):a.localStorage};
g.$F=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;var d=g.jA("INNERTUBE_CONTEXT");if(!d)return g.mE(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.kd(d);g.FA("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;e.clientName==="MWEB"&&e.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(e.clientFormFactor=g.jA("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=f===void 0?!1:f;g.CB();var h="USER_INTERFACE_THEME_LIGHT";g.DB(0,165)?h="USER_INTERFACE_THEME_DARK":g.DB(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.FA("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:Fza()||h;e.userInterfaceTheme=f;if(!b){if(f=usa())e.connectionType=f;g.FA("web_log_effective_connection_type")&&(f=wsa())&&(d.client.effectiveConnectionType=f)}var l;if(g.FA("web_log_memory_total_kbytes")&&((l=g.Ua.navigator)==null?0:l.deviceMemory)){var m;l=(m=g.Ua.navigator)==null?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+l*1E6}g.FA("web_gcf_hashes_innertube")&&(f=Sta())&&(m=f.coldConfigData,l=f.coldHashData,f=f.hotHashData,d.client.configInfo=d.client.configInfo||
{},m&&(d.client.configInfo.coldConfigData=m),l&&(d.client.configInfo.coldHashData=l),f&&(d.client.configInfo.hotHashData=f));m=g.sA(g.Ua.location.href);!g.FA("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);e.clientName==="MWEB"||e.clientName==="WEB"?(e.mainAppWebInfo={graftUrl:g.Ua.location.href},g.FA("kevlar_woffle")&&isa.instance&&(m=isa.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=jsa(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):e.clientName==="TVHTML5"&&(!g.FA("web_lr_app_quality_killswitch")&&(m=g.jA("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.jA("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.FA("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!==
"undefined")try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(G){}n=void 0}n&&(e.timeZone=n)}(n=Lqa())?e.experimentsToken=n:delete e.experimentsToken;n=Mqa();YF.instance||(YF.instance=new YF);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:g.Zc(YF.instance.j)});!g.FA("web_prequest_context_killswitch")&&(n=g.jA("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.CB();n=g.DB(0,58);e=e.get("gsml","");d.user=
Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.FA("warm_op_csn_cleanup")?c&&(b=g.jE())&&(d.clientScreenNonce=b):!b&&(b=g.jE())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Wa("yt.mdx.remote.remoteClient_"))d.remoteClient=a;ZF.getInstance().setLocationOnInnerTubeContext(d);try{var p=yA(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.v(Object.entries(p)),t=r.next();!t.done;t=r.next()){var u=g.v(t.value),
w=u.next().value,A=u.next().value;p=w;q=A;a=void 0;(a=d.adSignalsInfo.params)==null||a.push({key:p,value:""+q})}var C;if(g.FA("add_ifa_to_tvh5_requests")&&((C=d.client)==null?void 0:C.clientName)==="TVHTML5"){var F=g.jA("INNERTUBE_CONTEXT");F.adSignalsInfo&&(d.adSignalsInfo.advertisingId=F.adSignalsInfo.advertisingId,d.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",d.adSignalsInfo.limitAdTracking=F.adSignalsInfo.limitAdTracking)}}catch(G){g.mE(G)}return d};
Kza=function(a,b){if(!a)return!1;var c,d=(c=g.V(a,Iza))==null?void 0:c.signal;if(d&&b.My)return!!b.My[d];var e;if((c=(e=g.V(a,Jza))==null?void 0:e.request)&&b.QO)return!!b.QO[c];for(var f in a)if(b.JO[f])return!0;return!1};
Lza=function(a){var b={"Content-Type":"application/json"};g.jA("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.jA("EOM_VISITOR_DATA"):g.jA("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.jA("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.jA("LOGGED_IN",!1);g.jA("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=g.jA("DEBUG_SETTINGS_METADATA"));a!=="cors"&&((a=g.jA("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.jA("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=
a),(a=g.jA("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.jA("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
Mza=function(){this.j={}};
aG=function(){this.mappings=new Mza};
bG=function(a){return function(){return new a}};
Oza=function(a){var b=b===void 0?"UNKNOWN_INTERFACE":b;if(a.length===1)return a[0];var c=Nza[b];if(c){c=new RegExp(c);for(var d=g.v(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var f=[];Object.entries(Nza).forEach(function(h){var l=g.v(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.v(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]};
g.cG=function(a){return"/youtubei/v1/"+Oza(a)};
Pza=function(){};
dG=function(){};
eG=function(){};
fG=function(a){return g.Wa("ytcsi."+(a||"")+"data_")||Qza(a)};
Rza=function(){var a=fG();a.info||(a.info={});return a.info};
gG=function(a){a=fG(a);a.metadata||(a.metadata={});return a.metadata};
hG=function(a){a=fG(a);a.tick||(a.tick={});return a.tick};
iG=function(a){a=fG(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
Sza=function(a){a=iG(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
jG=function(a){var b=fG(a).nonce;b||(b=g.zD(16),fG(a).nonce=b);return b};
Qza=function(a){var b={tick:{},info:{}};g.Va("ytcsi."+(a||"")+"data_",b);return b};
Tza=function(){var a=g.Wa("ytcsi.debug");a||(a=[],g.Va("ytcsi.debug",a),g.Va("ytcsi.reference",{}));return a};
kG=function(a){a=a||"";var b=Uza();if(b[a])return b[a];var c=Tza(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
Vza=function(a){a=a||"";var b=Uza();b[a]&&delete b[a];var c=Tza(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
Uza=function(){var a=g.Wa("ytcsi.reference");if(a)return a;Tza();return g.Wa("ytcsi.reference")};
lG=function(a){return Wza[a]||"LATENCY_ACTION_UNKNOWN"};
Xza=function(a,b){NC.call(this,1,arguments);this.Ye=b};
mG=function(){this.j=0};
nG=function(){mG.instance||(mG.instance=new mG);return mG.instance};
pG=function(a,b){oG[b]=oG[b]||{count:0};var c=oG[b];c.count++;c.time=(0,g.iC)();a.j||(a.j=g.OB(0,function(){var d=(0,g.iC)(),e;for(e in oG)oG[e]&&d-oG[e].time>6E4&&delete oG[e];a&&(a.j=0)},5E3));
return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new g.FB("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||g.nE(c)),!0):!1};
Yza=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
Zza=function(){var a;if(g.FA("csi_use_performance_navigation_timing")||g.FA("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=qG==null?void 0:(a=qG.getEntriesByType)==null?void 0:(b=a.call(qG,"navigation"))==null?void 0:(c=b[0])==null?void 0:(d=c.toJSON)==null?void 0:d.call(c);e?(e.requestStart=rG(e.requestStart),e.responseEnd=rG(e.responseEnd),e.redirectStart=rG(e.redirectStart),e.redirectEnd=rG(e.redirectEnd),e.domainLookupEnd=rG(e.domainLookupEnd),e.connectStart=rG(e.connectStart),
e.connectEnd=rG(e.connectEnd),e.responseStart=rG(e.responseStart),e.secureConnectionStart=rG(e.secureConnectionStart),e.domainLookupStart=rG(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=qG.timing}else a=g.FA("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(qG.timing)):qG.timing;return a};
rG=function(a){return Math.round(sG()+a)};
sG=function(){return(g.FA("csi_use_time_origin")||g.FA("csi_use_time_origin_tvhtml5"))&&qG.timeOrigin?Math.floor(qG.timeOrigin):qG.timing.navigationStart};
uG=function(a,b){tG("_start",a,b)};
GG=function(a,b,c){c=c===void 0?!1:c;if(!g.FA("web_csi_action_sampling_enabled")||!fG(b).actionDisabled)if(g.FA("web_csi_via_jspb")&&!c){c=new Vz;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":T(c,1,X[a[e]]);break;case "clientActionNonce":S(c,2,a[e]);break;case "clientScreenNonce":S(c,4,a[e]);break;case "loadType":S(c,3,a[e]);break;case "isPrewarmedLaunch":Ok(c,92,a[e]);break;case "isFirstInstall":Ok(c,55,a[e]);break;case "networkType":T(c,
5,vG[a[e]]);break;case "connectionType":T(c,26,wG[a[e]]);break;case "detailedConnectionType":T(c,27,xG[a[e]]);break;case "isVisible":Ok(c,6,a[e]);break;case "playerType":T(c,7,yG[a[e]]);break;case "clientPlaybackNonce":S(c,8,a[e]);break;case "adClientPlaybackNonce":S(c,28,a[e]);break;case "previousCpn":S(c,77,a[e]);break;case "targetCpn":S(c,76,a[e]);break;case "isMonetized":Ok(c,9,a[e]);break;case "isPrerollAllowed":Ok(c,16,a[e]);break;case "isPrerollShown":Ok(c,17,a[e]);break;case "adType":S(c,
12,a[e]);break;case "adTypesAllowed":S(c,36,a[e]);break;case "adNetworks":S(c,37,a[e]);break;case "previousAction":T(c,13,X[a[e]]);break;case "isRedSubscriber":Ok(c,14,a[e]);break;case "serverTimeMs":Pk(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":S(c,20,a[e]);break;case "targetVideoId":S(c,78,a[e]);break;case "adBreakType":T(c,21,zG[a[e]]);break;case "isNavigation":Ok(c,25,a[e]);break;case "viewportHeight":Pk(c,29,a[e]);break;case "viewportWidth":Pk(c,30,a[e]);break;
case "screenHeight":Pk(c,84,a[e]);break;case "screenWidth":Pk(c,85,a[e]);break;case "browseId":S(c,31,a[e]);break;case "isCacheHit":Ok(c,32,a[e]);break;case "isSsdai":Ok(c,125,a[e]);break;case "httpProtocol":S(c,33,a[e]);break;case "transportProtocol":S(c,34,a[e]);break;case "searchQuery":S(c,41,a[e]);break;case "isContinuation":Ok(c,42,a[e]);break;case "availableProcessors":Pk(c,43,a[e]);break;case "sdk":S(c,44,a[e]);break;case "isLocalStream":Ok(c,45,a[e]);break;case "navigationRequestedSameUrl":Ok(c,
64,a[e]);break;case "shellStartupDurationMs":Pk(c,70,a[e]);break;case "appInstallDataAgeMs":Pk(c,73,a[e]);break;case "latencyActionError":T(c,71,AG[a[e]]);break;case "actionStep":Pk(c,79,a[e]);break;case "jsHeapSizeLimit":Rk(c,80,a[e]);break;case "totalJsHeapSize":Rk(c,81,a[e]);break;case "usedJsHeapSize":Rk(c,82,a[e]);break;case "sourceVideoDurationMs":Rk(c,90,a[e]);break;case "videoOutputFrames":Rk(c,93,a[e]);break;case "isResume":Ok(c,104,a[e]);break;case "debugTicksExcluded":Ok(c,105,a[e]);break;
case "abandonedPing":Ok(c,113,a[e]);break;case "retries":Pk(c,123,a[e]);break;case "adPrebufferedTimeSecs":Pk(c,39,a[e]);break;case "isLivestream":Ok(c,47,a[e]);break;case "liveStreamMode":T(c,91,BG[a[e]]);break;case "adCpn2":S(c,48,a[e]);break;case "adDaiDriftMillis":Rk(c,49,a[e]);break;case "videoStreamType":T(c,53,CG[a[e]]);break;case "playbackRequiresTap":Ok(c,56,a[e]);break;case "performanceNavigationTiming":Ok(c,67,a[e]);break;case "transactionType":T(c,74,DG[a[e]]);break;case "playerRotationType":T(c,
101,EG[a[e]]);break;case "allowedPreroll":Ok(c,10,a[e]);break;case "shownPreroll":Ok(c,11,a[e]);break;case "getHomeRequestId":S(c,57,a[e]);break;case "getSearchRequestId":S(c,60,a[e]);break;case "getPlayerRequestId":S(c,61,a[e]);break;case "getWatchNextRequestId":S(c,62,a[e]);break;case "getBrowseRequestId":S(c,63,a[e]);break;case "getLibraryRequestId":S(c,66,a[e]);break;case "isTransformerEnabledForFeature":Ok(c,106,a[e]);break;case "sourceVideoFrameCount":Rk(c,109,a[e]);break;default:$za.includes(f)&&
g.mA(new g.FB("Codegen laipb translator asked to translate message field",""+f))}}catch(h){g.mA(Error("Codegen laipb translator failed to set "+f))}}FG(c,b)}else c=kG(b||""),uD(c.info,a),a.loadType&&(c=a.loadType,gG(b).loadType=c),uD(Sza(b),a),c=jG(b),b=fG(b).cttAuthInfo,nG().info(a,c,b)};
FG=function(a,b){if(!g.FA("web_csi_action_sampling_enabled")||!fG(b).actionDisabled){var c=Mk(a,3);c&&(gG(b).loadType=c);kG(b||"").jspbInfo.push(a);c=jG(b);b=fG(b).cttAuthInfo;nG().jspbInfo(a,c,b)}};
aAa=function(){var a,b,c,d;return((d=HD().resolve(new ED(JC))==null?void 0:(a=KC())==null?void 0:(b=a.loggingHotConfig)==null?void 0:(c=b.csiConfig)==null?void 0:c.debugTicks)!=null?d:[]).map(function(e){return Object.values(e)[0]})};
tG=function(a,b,c){if(!g.FA("web_csi_action_sampling_enabled")||!fG(c).actionDisabled){var d=jG(c),e;if(e=g.FA("web_csi_debug_sample_enabled")&&d){(HD().resolve(new ED(JC))==null?0:KC())&&!bAa&&(bAa=!0,tG("gcfl",(0,g.iC)(),c));var f,h,l;e=(HD().resolve(new ED(JC))==null?void 0:(f=KC())==null?void 0:(h=f.loggingHotConfig)==null?void 0:(l=h.csiConfig)==null?void 0:l.debugSampleWeight)||0;if(f=e!==0)b:{f=aAa();if(f.length>0)for(h=0;h<f.length;h++)if(a===f[h]){f=!0;break b}f=!1}f?(e=Lxa(d)%e!==0,fG(c).debugTicksExcludedLogged||
(g.FA("web_csi_via_jspb")?(f=new Vz,f=Ok(f,105,e),FG(f,c)):(f={},f.debugTicksExcluded=e,GG(f,c))),fG(c).debugTicksExcludedLogged=!0):e=!1}if(!e){if(a[0]!=="_"&&(e=a,f=b,qG.mark))if(e.startsWith("mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),f===void 0||g.FA("web_csi_disable_alt_time_performance_mark"))qG.mark(e);else{f-=qG.timeOrigin||qG.timing.navigationStart;try{qG.mark(e,{startTime:f})}catch(m){}}e=kG(c||"");e.tick[a]=b||(0,g.iC)();if(e.callback&&e.callback[a])for(e=g.v(e.callback[a]),f=e.next();!f.done;f=
e.next())f=f.value,f();e=iG(c);e.gelTicks&&(e.gelTicks[a]=!0);f=hG(c);e=b||(0,g.iC)();g.FA("log_repeated_ytcsi_ticks")?a in f||(f[a]=e):f[a]=e;f=fG(c).cttAuthInfo;a==="_start"?(a=nG(),pG(a,"baseline_"+d)||(b={timestamp:b,cttAuthInfo:f},g.FA("web_csi_via_jspb")?(a=new cqa,S(a,1,d),d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA,hk(d,cqa,6,fE,a),eE("latencyActionBaselined",d,b)):g.VB("latencyActionBaselined",{clientActionNonce:d},b))):nG().tick(a,d,b,f);cAa(c);return e}}};
dAa=function(){var a,b=(a=qG.getEntriesByType)==null?void 0:a.call(qG,"mark");b&&b.forEach(function(c){if(c.name.startsWith("mark_")){var d;(d=qG.clearMarks)==null||d.call(qG,c.name)}})};
eAa=function(){switch(Lra()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
hAa=function(a){var b=Zza(),c=sG(),d=g.jA("CSI_START_TIMESTAMP_MILLIS",0);d>0&&!g.FA("embeds_web_enable_csi_start_override_killswitch")&&(c=d);c&&(tG("srt",b.responseStart),a.prerender!==1&&uG(c));a=fAa();a>0&&tG("fpt",a);a=Zza();a.isPerformanceNavigationTiming&&GG({performanceNavigationTiming:!0},void 0);tG("nreqs",a.requestStart,void 0);tG("nress",a.responseStart,void 0);tG("nrese",a.responseEnd,void 0);a.redirectEnd-a.redirectStart>0&&(tG("nrs",a.redirectStart,void 0),tG("nre",a.redirectEnd,void 0));
a.domainLookupEnd-a.domainLookupStart>0&&(tG("ndnss",a.domainLookupStart,void 0),tG("ndnse",a.domainLookupEnd,void 0));a.connectEnd-a.connectStart>0&&(tG("ntcps",a.connectStart,void 0),tG("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=sG()&&a.connectEnd-a.secureConnectionStart>0&&(tG("nstcps",a.secureConnectionStart,void 0),tG("ntcpe",a.connectEnd,void 0));qG&&"getEntriesByType"in qG&&gAa()};
iAa=function(a){function b(f,h,l){h=h.match("_rid")?h.split("_rid")[0]:h;typeof l==="number"&&(l=JSON.stringify(l));f.requestIds?f.requestIds.push({endpoint:h,id:l}):f.requestIds=[{endpoint:h,id:l}]}
var c={};a=g.v(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.v(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};
jAa=function(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;d==="SCRIPT"?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):d==="LINK"&&(c=a.href);Se(window)&&a.setAttribute("nonce",Se(window));return c?(a=qG.getEntriesByName(c))&&a[0]&&(a=a[0],c=sG(),tG("rsf_"+b,c+Math.round(a.fetchStart)),tG("rse_"+b,c+Math.round(a.responseEnd)),a.transferSize!==void 0&&a.transferSize===0)?!0:!1:!1};
lAa=function(){var a=[];if(document.querySelector&&qG&&qG.getEntriesByName)for(var b in kAa)if(kAa.hasOwnProperty(b)){var c=kAa[b];jAa(b,c)&&a.push(c)}return a};
gAa=function(){var a=window.location.protocol,b=qG.getEntriesByType("resource");b=g.Mt(b,function(c){return c.name.indexOf(a+"//fonts.gstatic.com/s/")===0});
(b=bs(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&b.startTime>0&&b.responseEnd>0&&(tG("wffs",rG(b.startTime)),tG("wffe",rG(b.responseEnd)))};
mAa=function(a,b,c){qG&&qG.measure&&(a.startsWith("measure_")||(a="measure_"+a),c?qG.measure(a,b,c):b?qG.measure(a,b):qG.measure(a))};
nAa=function(a){var b=HG("aft",a);if(b)return b;b=g.jA((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=HG(b[d],a);if(e)return e}return NaN};
oAa=function(a,b){g.Va("ytglobal.timing"+(b||"")+"ready_",a)};
HG=function(a,b){if(a=hG(b)[a])return typeof a==="number"?a:a[a.length-1]};
cAa=function(a){var b=HG("_start",a),c=nAa(a),d=g.FA("enable_cow_info_csi")||!pAa;b&&c&&d&&(PC(qAa,new Xza(Math.round(c-b),a)),pAa=!0)};
fAa=function(){if(qG.getEntriesByType){var a=qG.getEntriesByType("paint");if(a=g.Cb(a,function(b){return b.name==="first-paint"}))return rG(a.startTime)}a=qG.timing;
return a.haa?Math.max(0,a.haa):0};
IG=function(a){Qza(a);rAa();dAa();a||(g.jA("TIMING_ACTION")&&iA("PREVIOUS_ACTION",g.jA("TIMING_ACTION")),iA("TIMING_ACTION",""))};
sAa=function(){var a=["pbs","pbu"];g.nA(function(){kG("").info.actionType="watch";a&&iA("TIMING_AFT_KEYS",a);iA("TIMING_ACTION","watch");if(g.FA("web_csi_via_jspb")){var b=g.jA("TIMING_INFO",{}),c=new Vz;b=g.v(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.v(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":Wz(c,Tz(Sz(d),String(e)));break;case "GetGuide_rid":Wz(c,Tz(Sz(d),String(e)));break;case "GetHome_rid":Wz(c,Tz(Sz(d),String(e)));break;case "GetPlayer_rid":Wz(c,
Tz(Sz(d),String(e)));break;case "GetSearch_rid":Wz(c,Tz(Sz(d),String(e)));break;case "GetSettings_rid":Wz(c,Tz(Sz(d),String(e)));break;case "GetTrending_rid":Wz(c,Tz(Sz(d),String(e)));break;case "GetWatchNext_rid":Wz(c,Tz(Sz(d),String(e)));break;case "yt_red":Ok(c,14,!!e);break;case "yt_ad":Ok(c,9,!!e)}}FG(c);c=new Vz;c=Ok(c,25,!0);c=T(c,1,X[lG(g.jA("TIMING_ACTION"))]);(b=g.jA("PREVIOUS_ACTION"))&&T(c,13,X[lG(b)]);(b=g.jA("CLIENT_PROTOCOL"))&&S(c,33,b);(b=g.jA("CLIENT_TRANSPORT"))&&S(c,34,b);(b=g.jE())&&
b!=="UNDEFINED_CSN"&&S(c,4,b);b=eAa();b!==1&&b!==-1||Ok(c,6,!0);b=Rza();(d=gG().loadType==="cold")||(d=b.yt_lt==="cold");if(d&&(S(c,3,"cold"),hAa(b),b=lAa(),b.length>0))for(b=g.v(b),d=b.next();!d.done;d=b.next())d=d.value,e=new dqa,S(e,1,d),jk(c,83,dqa,e);FG(c)}else{c=iAa(g.jA("TIMING_INFO",{}));Object.keys(c).length>0&&GG(c);c={isNavigation:!0,actionType:lG(g.jA("TIMING_ACTION"))};if(b=g.jA("PREVIOUS_ACTION"))c.previousAction=lG(b);if(b=g.jA("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.jA("CLIENT_TRANSPORT"))c.transportProtocol=
b;(b=g.jE())&&b!=="UNDEFINED_CSN"&&(c.clientScreenNonce=b);b=eAa();if(b===1||b===-1)c.isVisible=!0;b=gG().loadType==="cold";d=Rza();b||(b=d.yt_lt==="cold");if(b&&(c.loadType="cold",hAa(Rza()),b=lAa(),b.length>0))for(c.resourceInfo=[],b=g.v(b),d=b.next();!d.done;d=b.next())c.resourceInfo.push({resourceCache:d.value});GG(c)}c=iG();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);b=c.preLoggedGelInfos;c=Sza();d=void 0;for(e=0;e<b.length;e++){var f=b[e];if(f.loadType){d=f.loadType;break}}if(gG().loadType===
"cold"&&(c.loadType==="cold"||d==="cold")){d=hG();e=iG();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var h in d)if(!(h in e))if(typeof d[h]==="number")tG(h,HG(h));else if(g.FA("log_repeated_ytcsi_ticks")){f=g.v(d[h]);for(var l=f.next();!l.done;l=f.next())tG(h.slice(1),l.value)}h={};d=!1;b=g.v(b);for(e=b.next();!e.done;e=b.next())d=e.value,uD(c,d),uD(h,d),d=!0;d&&GG(h)}oAa(!0);h=g.jA("TIMING_ACTION");g.Wa("ytglobal.timingready_")&&h&&JG()&&nAa()&&cAa()})()};
tAa=function(){var a=a===void 0?{}:a;g.nA(function(){JG()&&KG("aa",void 0,void 0);Vza();IG();oAa(!1);a.cttAuthInfo&&(fG().cttAuthInfo=a.cttAuthInfo);iA("TIMING_AFT_KEYS",[]);a.rrb?g.LG({loadType:"hot"}):g.LG({loadType:"warm"});iA("TIMING_ACTION","");delete g.jA("TIMING_INFO",{}).yt_lt;g.nA(uG)(a.startTime,void 0)})()};
QG=function(a,b){b=b===void 0?{}:b;g.nA(function(){uAa(a);var c=b.sampleRate;if(!g.FA("web_csi_action_sampling_enabled")||c===void 0||c<=1)c=!1;else{var d=jG(a);c=Lxa(d)%c!==0}c&&(fG(a).actionDisabled=!0);kG(a||"").info.actionType=a;b.cttAuthInfo&&(fG(a).cttAuthInfo=b.cttAuthInfo);iA(a+"TIMING_ACTION",a);g.nA(uG)(b.startTime,a);c={actionType:lG(a)};b.xrb&&(c.previousAction=lG(g.jA("TIMING_ACTION")));(d=g.jE())&&d!=="UNDEFINED_CSN"&&(c.clientScreenNonce=d);g.LG(c,a);oAa(!0,a)})()};
uAa=function(a){g.nA(function(){JG(a)&&KG("aa",void 0,a);Vza(a);IG(a)})()};
JG=function(a){return g.nA(function(){return RG("_start",a)})()};
g.LG=function(a,b,c){g.nA(GG)(a,b,c===void 0?!1:c)};
KG=function(a,b,c){return g.nA(tG)(a,b,c)};
vAa=function(a){g.nA(mAa)("action_finished",a,void 0)};
RG=function(a,b){return g.nA(function(){var c=hG(b);return a in c})()};
xAa=function(a){if(!g.FA("universal_csi_network_ticks"))return"";a=vn(g.xn(5,a))||"";for(var b=Object.keys(wAa),c=0;c<b.length;c++){var d=b[c];if(a.includes(d))return d}return""};
AAa=function(a){if(!g.FA("universal_csi_network_ticks"))return function(){};
var b=wAa[a];return b?(yAa(b),function(){var c=g.FA("universal_csi_network_ticks")?(c=zAa[a])?yAa(c):!1:!1;return c}):function(){}};
yAa=function(a,b){return g.nA(function(){if(RG(a,b))return!1;KG(a,void 0,b);return!0})()};
SG=function(a,b,c){g.nA(function(){if(!JG(c)||RG(a,c))return!1;KG(a,b,c);return!0})()};
BAa=function(){g.nA(function(){var a=jG();requestAnimationFrame(function(){setTimeout(function(){a===jG()&&KG("ftl",void 0,void 0)},0)})})()};
TG=function(a,b,c,d){this.iP=a;this.ph=b;this.j=c;this.D=d;this.C=void 0;this.B=new Map;a.My||(a.My={});a.My=Object.assign({},CAa,a.My)};
DAa=function(a,b,c,d){if(TG.instance!==void 0){if(d=TG.instance,a=[a!==d.iP,b!==d.ph,c!==d.j,!1,!1,!1,void 0!==d.C],a.some(function(e){return e}))throw new g.FB("InnerTubeTransportService is already initialized",a);
}else TG.instance=new TG(a,b,c,d)};
UG=function(a,b,c){var d=d===void 0?MC:d;var e=EAa(a,b);return e?new g.fg(function(f,h){var l,m,n,p,q;return g.H(function(r){switch(r.j){case 1:return g.z(r,e,2);case 2:l=r.B;m=l.G(b,c,d);if(!m){h(new g.FB("Error: Failed to build request for command.",b));r.Ja(0);break}TF(m.input);p=((n=m.qv)==null?void 0:n.mode)==="cors"?"cors":void 0;if(a.j.C2){q=FAa(a,m.config,p);r.Ja(4);break}return g.z(r,GAa(a,m.config,p),5);case 5:q=r.B;case 4:f(HAa(a,m,q)),g.Aa(r)}})}):ig(new g.FB("Error: No request builder found for command.",
b))};
g.VG=function(a,b,c,d,e){function f(){}
e=e===void 0?{Cw:{identity:MC}}:e;var h=h===void 0?!0:h;f=AAa(xAa(c));b.context||(b.context=g.$F(d,h));return new g.fg(function(l){var m,n,p,q,r;return g.H(function(t){if(t.j==1)return m=fra(c),n=vA(m)?"same-origin":"cors",a.j.C2?(p=FAa(a,e,n),t.Ja(2)):g.z(t,GAa(a,e,n),3);t.j!=2&&(p=t.B);var u=p;q=gra(fra(c),u);r={input:q,qv:hra(q),bq:b,config:e};l(HAa(a,r,p,f));g.Aa(t)})})};
JAa=function(a,b,c){var d;if(b&&!(b==null?0:(d=b.sequenceMetaData)==null?0:d.skipProcessing)&&a.D){d=g.v(IAa);for(var e=d.next();!e.done;e=d.next())e=e.value,a.D[e]&&a.D[e].handleResponse(b,c)}};
HAa=function(a,b,c,d){d=d===void 0?function(){}:d;
var e,f,h,l,m,n,p,q,r,t,u,w,A,C,F,G,K,N,R,da,oa,qa,ha,ta,P,ua,y,Z,cb;return g.H(function(La){switch(La.j){case 1:La.Ja(2);break;case 3:if((e=La.B)&&!e.isExpired())return La.return(Promise.resolve(e.j()));case 2:if(!((f=b)==null?0:(h=f.bq)==null?0:h.context)){La.Ja(4);break}l=b.bq.context;La.Ja(5);break;case 5:m=g.v([]),n=m.next();case 8:if(n.done){La.Ja(4);break}p=n.value;return g.z(La,p.Xrb(l),9);case 9:n=m.next();La.Ja(8);break;case 4:if((q=a.C)==null||!q.ysb(b.input,b.bq)){La.Ja(12);break}return g.z(La,
a.C.vrb(b.input,b.bq),13);case 13:return r=La.B,g.FA("kevlar_process_local_innertube_responses_killswitch")||JAa(a,r,b),La.return(r);case 12:return(w=(u=b.config)==null?void 0:u.Hs)&&a.B.has(w)?t=a.B.get(w):(A=JSON.stringify(b.bq),G=(F=(C=b.qv)==null?void 0:C.headers)!=null?F:{},b.qv=Object.assign({},b.qv,{headers:Object.assign({},G,c)}),K=Object.assign({},b.qv),b.qv.method==="POST"&&(K=Object.assign({},K,{body:A})),((N=b.config)==null?0:N.Jda)&&KG(b.config.Jda),R=function(){return a.ph.fetch(b.input,
K,b.config)},t=R(),w&&a.B.set(w,t)),g.z(La,t,14);
case 14:if((da=La.B)&&"error"in da&&((oa=da)==null?0:(qa=oa.error)==null?0:qa.details))for(ha=da.error.details,ta=g.v(ha),P=ta.next();!P.done;P=ta.next())ua=P.value,(y=ua["@type"])&&KAa.indexOf(y)>-1&&(delete ua["@type"],da=ua);w&&a.B.has(w)&&a.B.delete(w);((Z=b.config)==null?0:Z.Nda)&&KG(b.config.Nda);if(da||(cb=a.C)==null||!cb.Gpb(b.input,b.bq)){La.Ja(15);break}return g.z(La,a.C.urb(b.input,b.bq),16);case 16:da=La.B;case 15:return JAa(a,da,b),d(),La.return(da||void 0)}})};
EAa=function(a,b){a:{a=a.iP;var c,d=(c=g.V(b,Iza))==null?void 0:c.signal;if(d&&a.My&&(c=a.My[d])){var e=c();break a}var f;if((c=(f=g.V(b,Jza))==null?void 0:f.request)&&a.QO&&(f=a.QO[c])){e=f();break a}for(e in b)if(a.JO[e]&&(b=a.JO[e])){e=b();break a}e=void 0}if(e!==void 0)return Promise.resolve(e)};
GAa=function(a,b,c){var d,e,f,h,l,m,n;return g.H(function(p){if(p.j==1){f=((d=b)==null?void 0:(e=d.Cw)==null?void 0:e.identity)||MC;m=(h=b)==null?void 0:(l=h.Cw)==null?void 0:l.sessionIndex;var q=hg(a.j.UE(f,{sessionIndex:m}));return g.z(p,q,2)}n=p.B;return p.return(Promise.resolve(Object.assign({},Lza(c),n)))})};
FAa=function(a,b,c){var d,e=(b==null?void 0:(d=b.Cw)==null?void 0:d.identity)||MC,f;b=b==null?void 0:(f=b.Cw)==null?void 0:f.sessionIndex;a=a.j.UE(e,{sessionIndex:b});return Object.assign({},Lza(c),a)};
WG=function(){};
XG=function(){};
YG=function(a){this.K=a};
ZG=function(){};
$G=function(){};
aH=function(){};
bH=function(){};
g.cH=function(a,b){var c=g.Ja.apply(2,arguments);a=a===void 0?0:a;g.FB.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)};
dH=function(a){this.j=a};
LAa=function(a,b,c){if(a.j){var d=vn(g.xn(5,wo(b,"key")))||"/UNKNOWN_PATH";a.j.start(d)}a=c;g.FA("wug_networking_gzip_request")&&(a=Aua(c));return new window.Request(b,a)};
g.eH=function(a,b){if(!MAa){var c=HD();xva(c,{TG:NAa,v3:dH});var d={JO:{feedbackEndpoint:bG(ZG),modifyChannelNotificationPreferenceEndpoint:bG($G),playlistEditEndpoint:bG(aH),shareEntityEndpoint:bG(YG),subscribeEndpoint:bG(WG),unsubscribeEndpoint:bG(XG),webPlayerShareEntityServiceEndpoint:bG(bH)}},e=ZF.getInstance(),f={};e&&(f.client_location=e);a===void 0&&(a=ksa());b===void 0&&(b=c.resolve(NAa));DAa(d,b,a,f);xva(c,{TG:OAa,sU:TG.instance});MAa=c.resolve(OAa)}return MAa};
RAa=function(){if(!g.FA("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.FA("disable_biscotti_fetch_entirely_for_all_web_clients")&&sra()){var a=g.jA("PLAYER_VARS",{});if(g.hd(a,"privembed",!1)!="1"&&!wra(a)){var b=function(){PAa=!0;"google_ad_status"in window?iA("DCLKSTAT",1):iA("DCLKSTAT",2)};
try{g.kva("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}QAa.push(g.zv.Ui(function(){if(!(PAa||"google_ad_status"in window)){try{if(b){var c=""+g.fb(b),d=mva[c];d&&g.rD(d)}}catch(e){}PAa=!0;iA("DCLKSTAT",3)}},5E3))}}};
fH=function(){var a=Number(g.jA("DCLKSTAT",0));return isNaN(a)?0:a};
hH=function(a,b,c){var d=this;this.network=a;this.B=c;this.j=null;b&&SAa(this,new Promise(function(e){g.OB(0,function(){e(gH(d))},0)}))};
gH=function(a,b){b=b===void 0?0:b;var c,d,e,f,h,l,m,n,p,q,r,t;return g.H(function(u){switch(u.j){case 1:c={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};if(d=Ro().j)c.interpreterHash=d;g.Ba(u,2);return g.z(u,TAa(a,c),4);case 4:e=u.B;if(!e)throw Error("Fetching Attestation challenge returned falsy");if(!e.challenge)throw Error("Missing Attestation challenge");f=e.challenge;h=UAa(f);if("c1a"in h&&(!e.bgChallenge||!e.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Ca(u,3);break;
case 2:l=g.Da(u);g.nE(l);b++;if(b>=5)return g.nE(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),VAa(a,864E5),u.return({challenge:"",yr:{},Yq:void 0,bgChallenge:void 0});m=1E3*Math.pow(2,b-1)+Math.random()*1E3;return u.return(new Promise(function(w){g.OB(0,function(){w(gH(a,b))},m)}));
case 3:n=Number(h.t)||7200;VAa(a,n*1E3);p=void 0;if(!("c1a"in h&&e.bgChallenge)){u.Ja(5);break}q=WAa(e.bgChallenge);g.Ba(u,6);return g.z(u,cga(q),8);case 8:g.Ca(u,7);break;case 6:return r=g.Da(u),g.nE(r),u.return({challenge:f,yr:h,Yq:p,bgChallenge:q});case 7:return g.Ba(u,9),p=new Oo({challenge:q,m1:!0,Mi:"aGIf"}),g.z(u,p.yT,11);case 11:g.Ca(u,5);break;case 9:t=g.Da(u),g.nE(t),p=void 0;case 5:return u.return({challenge:f,yr:h,Yq:p,bgChallenge:q})}})};
TAa=function(a,b){var c;return g.H(function(d){c=a.B;return!c||c.Mh()?d.return(TAa(a.network,b)):d.return(new Promise(function(e){c.VF("publicytnetworkstatus-online",function(){TAa(a.network,b).then(e)})}))})};
SAa=function(a,b){a.j=b};
UAa=function(a){var b={};a=a.split("&");a=g.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value.split("="),c.length===2&&(b[c[0]]=c[1]);return b};
WAa=function(a){var b=new Mo;if(a.interpreterJavascript){var c=Ema(a.interpreterJavascript);c=xe(c).toString();var d=new Ko;S(d,6,c);gk(b,Ko,1,d)}else a.interpreterUrl&&(c=Nw(a.interpreterUrl),c=g.Zd(c).toString(),d=new Lo,S(d,4,c),gk(b,Lo,2,d));a.interpreterHash&&Uk(b,3,a.interpreterHash);a.program&&Uk(b,4,a.program);a.globalName&&Uk(b,5,a.globalName);return b};
XAa=function(a){var b,c,d;return g.H(function(e){if(e.j==1)return g.z(e,Promise.race([a.j,null]),2);b=e.B;var f=gH(a);a.j=f;(c=b)==null||(d=c.Yq)==null||d.dispose();g.Aa(e)})};
VAa=function(a,b){function c(){var e;return g.H(function(f){e=d-Date.now();return e<1E3?g.z(f,XAa(a),0):(NB(c,0,Math.min(e,6E4)),f.Ja(0))})}
var d=Date.now()+b;c()};
YAa=function(a,b){return new Promise(function(c){g.OB(0,function(){c(b())},a)})};
g.ZAa=function(a,b){var c;return g.H(function(d){var e=g.Wa("yt.aba.att");return(c=e?e:hH.instance!==void 0?hH.instance.C.bind(hH.instance):null)?d.return(c("ENGAGEMENT_TYPE_PLAYBACK",a,b)):d.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
g.$Aa=function(){var a;return(a=(a=g.Wa("yt.aba.att2"))?a:hH.instance!==void 0?hH.instance.D.bind(hH.instance):null)?a():Promise.resolve(!1)};
bBa=function(a,b){var c=g.Wa("ytDebugData.callbacks");c||(c={},g.Va("ytDebugData.callbacks",c));if(g.FA("web_dd_iu")||aBa.includes(a))c[a]=b};
dBa=function(a){for(var b="",c=0;c<a.length;c++){var d=a[c];if(c===0)d="M "+d.x.toFixed(1)+","+d.y.toFixed(1);else{var e=cBa(a[c-1],a[c-2],d),f=cBa(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};
cBa=function(a,b,c,d){d=d===void 0?!1:d;b=new eBa(b||a,c||a);return{x:a.x+((d===void 0?0:d)?b.j*-1:b.j)*.2,y:a.y+((d===void 0?0:d)?b.B*-1:b.B)*.2}};
eBa=function(a,b){this.B=this.j=0;this.j=b.x-a.x;this.B=b.y-a.y};
fBa=function(a,b,c){if(!b)return a.length>=1?a[a.length-1]:null;for(var d=g.v(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;b>=0;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]};
gBa=function(a){return{isReady:a.isr.bind(a),dG:function(b){var c=void 0;b.dk&&(c={ca:b.dk.lE,ma:b.dk.k_,at:b.dk.HI,st:b.dk.vM});var d;return a.mawst((d=b.Ar)!=null?d:"",c)},
ready:a.rea.bind(a),start:function(){}}};
hBa=function(){this.state=1;this.Yq=null};
jBa=function(a,b,c,d,e,f){var h=h===void 0?"trayride":h;c?(a.Ic(2),g.kva(c,function(){if(window[h])iBa(a,d,h,e);else{a.Ic(3);var l=lva(c),m=document.getElementById(l);m&&(iva(l),m.parentNode.removeChild(m));g.nE(new g.FB("Unable to load Botguard","from "+c))}},f)):b?(f=g.Bf("SCRIPT"),b instanceof ve?(f.textContent=xe(b),Xe(f)):f.textContent=b,f.nonce=Se(window),document.head.appendChild(f),document.head.removeChild(f),window[h]?iBa(a,d,h,e):(a.Ic(4),g.nE(new g.FB("Unable to load Botguard from JS")))):
g.nE(new g.FB("Unable to load VM; no url or JS provided"))};
iBa=function(a,b,c,d){a.Ic(5);try{var e=new Oo({program:b,globalName:c,m1:g.FA("att_web_record_metrics"),Mi:"aGIf"});e.yT.then(function(){a.Ic(6);d&&d(b)});
a.wT(e)}catch(f){a.Ic(7),f instanceof Error&&g.nE(f)}};
kBa=function(){var a=g.Wa("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null};
iH=function(){hBa.apply(this,arguments)};
lBa=function(){};
mBa=function(a,b,c){for(var d=!1,e=g.v(a.jj.entries()),f=e.next();!f.done;f=e.next())f=g.v(f.value).next().value,f.slotType==="SLOT_TYPE_PLAYER_BYTES"&&f.Za==="core"&&(d=!0);if(d){a:if(!c){a=g.v(a.jj.entries());for(c=a.next();!c.done;c=a.next())if(d=g.v(c.value),c=d.next().value,d=d.next().value,c.slotType==="SLOT_TYPE_IN_PLAYER"&&c.Za==="core"){c=d.layoutId;break a}c=void 0}c?b.hQ(c):wF("No triggering layout ID available when attempting to mute.")}};
nBa=function(a,b){this.El=a;this.Lo=b};
oBa=function(){};
pBa=function(){};
rBa=function(a){g.I.call(this);var b=this;this.md=a;this.j=new Map;jH(this,"commandExecutorCommand",function(c,d,e){qBa(b,c.commands,d,e)});
jH(this,"clickTrackingParams",function(){})};
sBa=function(a,b){jH(a,b.Lr(),function(c,d,e){b.ju(c,d,e)})};
jH=function(a,b,c){a.Na();a.j.get(b)&&g.mE(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
qBa=function(a,b,c,d){b=b===void 0?[]:b;a.Na();var e=[],f=[];b=g.v(b);for(var h=b.next();!h.done;h=b.next())h=h.value,g.V(h,tBa)||g.V(h,uBa)?e.push(h):f.push(h);e=g.v(e);for(b=e.next();!b.done;b=e.next())kH(a,b.value,c,d);f=g.v(f);for(e=f.next();!e.done;e=f.next())kH(a,e.value,c,d)};
kH=function(a,b,c,d){a.Na();b.loggingUrls&&vBa(a,"loggingUrls",b.loggingUrls,c,d);b=g.v(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.v(e.value);e=f.next().value;f=f.next().value;e==="openPopupAction"?a.md.get().ev("innertubeCommand",{openPopupAction:f}):e==="confirmDialogEndpoint"?a.md.get().ev("innertubeCommand",{confirmDialogEndpoint:f}):wBa.hasOwnProperty(e)||vBa(a,e,f,c,d)}};
vBa=function(a,b,c,d,e){if((a=a.j.get(b))&&typeof a==="function")try{a(c,d,e)}catch(f){g.mE(f)}else b=new g.FB("Unhandled field",b),g.nE(b)};
xBa=function(a,b,c){this.Nf=a;this.j=b;this.Pa=c};
lH=function(a){this.value=a};
mH=function(a){this.value=a};
nH=function(a){this.value=a};
yBa=function(a){this.value=a};
zBa=function(a){this.value=a};
oH=function(a){this.value=a};
pH=function(a){this.value=a};
ABa=function(){lH.apply(this,arguments)};
BBa=function(a){this.value=a};
CBa=function(a){this.value=a};
DBa=function(a){this.value=a};
EBa=function(a){this.value=a};
FBa=function(a){this.value=a};
qH=function(a){this.value=a};
rH=function(a){this.value=a};
sH=function(a){this.value=a};
tH=function(a){this.value=a};
uH=function(a){this.value=a};
vH=function(){lH.apply(this,arguments)};
wH=function(a){this.value=a};
xH=function(a){this.value=a};
yH=function(a){this.value=a};
zH=function(a){this.value=a};
AH=function(a){this.value=a};
GBa=function(a){this.value=a};
HBa=function(a){this.value=a};
BH=function(a){this.value=a};
IBa=function(a){this.value=a};
JBa=function(a){this.value=a};
KBa=function(a){this.value=a};
LBa=function(a){this.value=a};
CH=function(a){this.value=a};
DH=function(a){this.value=a};
EH=function(a){this.value=a};
FH=function(a){this.value=a};
MBa=function(a){this.value=a};
GH=function(a){this.value=a};
HH=function(a){this.value=a};
IH=function(a){this.value=a};
NBa=function(a){this.value=a};
JH=function(a){this.value=a};
KH=function(a){this.value=a};
LH=function(a){this.value=a};
MH=function(a){this.value=a};
NH=function(a){this.value=a};
OH=function(a){this.value=a};
PH=function(a){this.value=a};
QH=function(a){this.value=a};
RH=function(a){this.value=a};
OBa=function(a){this.value=a};
SH=function(a){this.value=a};
TH=function(a){this.value=a};
UH=function(a){this.value=a};
PBa=function(a){this.value=a};
VH=function(a){this.value=a};
WH=function(a){this.value=a};
XH=function(a){this.value=a};
YH=function(){lH.apply(this,arguments)};
QBa=function(a){this.value=a};
ZH=function(){lH.apply(this,arguments)};
$H=function(){lH.apply(this,arguments)};
RBa=function(){lH.apply(this,arguments)};
aI=function(){lH.apply(this,arguments)};
SBa=function(){lH.apply(this,arguments)};
TBa=function(a){this.value=a};
bI=function(a){this.value=a};
UBa=function(a){this.value=a};
cI=function(a){this.value=a};
VBa=function(a){this.value=a};
eI=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.v(b);for(c=b.next();!c.done;c=b.next())if(!dI(a.Ca,c.value))return!1;return!0};
fI=function(){return""};
WBa=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}};
gI=function(a,b,c,d){d=d===void 0?!1:d;wb.call(this,a);this.fl=c;this.Bw=d;this.args=[];b&&this.args.push(b)};
hI=function(a,b,c,d){d=d===void 0?!1:d;wb.call(this,a);this.fl=c;this.Bw=d;this.args=[];b&&this.args.push(b)};
iI=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
dI=function(a,b){return a.j.has(b)};
jI=function(a,b){a=a.j.get(b);if(a!==void 0)return a.get()};
kI=function(a){return Array.from(a.j.keys())};
lI=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.v(b);for(c=b.next();!c.done;c=b.next())if(!dI(a.Ca,c.value))return!1;return!0};
YBa=function(a){var b;return((b=XBa.get(a))==null?void 0:b.Qy)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
$Ba=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:ZBa.get(b.Za)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);b.slotPhysicalPosition!==1&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=mI(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.v(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(mI(d.value));
b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.v(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(mI(a.value))}return c};
aCa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:ZBa.get(b.Za)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
mI=function(a,b){var c={type:a.triggerType};b!=null&&(c.category=b);a.triggeringSlotId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.triggeringSlotId);a.triggeringLayoutId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return c};
bCa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.$r(d||[],function(e){return $Ba(a,e)}),b.debugData=Object.assign({},c&&c.length>0?{associatedSlotId:c}:{},d.length>0?{slots:d}:{}));
return b};
nI=function(a,b){return function(c){return cCa(dCa(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.Za,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.Za)}};
cCa=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:$Ba(a,{slotId:b,slotType:c,slotPhysicalPosition:d,Za:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,Ca:new iI([])}),layoutData:aCa(a,{layoutId:m,layoutType:n,Za:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Db:new Map,Ca:new iI([]),Xb:{}})}}};
pI=function(a){this.Ba=a;a=Math.random();var b=this.Ba.get();b=g.oI(b.J.U().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&b>=0&&b<=1?b:0;this.j=a<b};
dCa=function(a){return a.j||a.Ba.get().J.U().L("html5_force_debug_data_for_client_tmp_logs")};
eCa=function(a,b,c,d){g.I.call(this);this.B=b;this.Rb=c;this.Ba=d;this.j=a(this,this,this,this,this);g.M(this,this.j);a=g.v(b);for(b=a.next();!b.done;b=a.next())g.M(this,b.value)};
qI=function(a,b){a.B.add(b)};
rI=function(a,b){a.B.delete(b)};
fCa=function(a,b,c,d){wF(c,b,void 0,void 0,c.Bw);c.fl?a.Rb.lm(d,c.fl,b):wF("adsClientErrorMessage is missing.",b);sI(a,b,!0)};
iCa=function(a,b,c){if(tI(a.j,b))if(uI(a.j,b).D=c?"filled":"not_filled",c===null){a.Rb.Wh("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.v(a.B);for(var d=c.next();!d.done;d=c.next())d.value.Ph(b);sI(a,b,!1)}else{a.Rb.Wh("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);a.Rb.Wh("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);var e,f=(e=c.Py)!=null?e:jI(c.Ca,"metadata_type_sub_layouts");if(f)for(e=g.v(f),f=e.next();!f.done;f=e.next())a.Rb.Wh("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,f.value);
e=g.v(a.B);for(f=e.next();!f.done;f=e.next())f.value.Qh(b);if(tI(a.j,b))if(uI(a.j,b).G)sI(a,b,!1);else{a.Rb.Wh("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{d=a.j;if(!uI(d,b))throw new gI("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!d.uh.Iu.get(b.slotType))throw new gI("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");if(c.layoutExitNormalTriggers.length==
0&&c.layoutExitSkipTriggers.length==0&&c.layoutExitMuteTriggers.length==0&&c.layoutExitUserInputSubmittedTriggers.length==0&&c.Xc.length==0)throw new gI("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");vI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);vI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);vI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);vI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
c.layoutExitUserInputSubmittedTriggers);vI(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Xc)}catch(n){n instanceof gI?a.wf(b,c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.wf(b,c,new gI("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");sI(a,b,!0);return}uI(a.j,b).K=!0;try{var h=a.j,l=uI(h,b),m=h.uh.Iu.get(b.slotType).get().build(h.D,h.B,b,c);m.init();l.layout=c;if(l.C)throw new gI("Already had LayoutRenderingAdapter registered for slot",
void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");l.C=m;wI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);wI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);wI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);wI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);wI(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Xc)}catch(n){gCa(a,b);n instanceof gI?a.wf(b,
c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.wf(b,c,new gI("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");sI(a,b,!0);return}a.Rb.Wh("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);d=g.v(a.B);for(h=d.next();!h.done;h=d.next())h.value.qh(b,c);gCa(a,b);hCa(a,b)}else a=a.Ba.get(),g.xI(a.J.U())||yI(a.J.U())||g.zI(a.J.U())?a=!0:(wF("Composite VOD on legacy path."),a=!1),a&&wF("slot is unscheduled after been fulfilled.",b,
c)}};
jCa=function(a,b,c){b.Za!=="core"&&a.Rb.Wh("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c,void 0)};
kCa=function(a,b,c){a.Rb.Wh("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c,void 0);a=g.v(a.B);for(var d=a.next();!d.done;d=a.next())d.value.qh(b,c)};
lCa=function(a,b,c){a=g.v(a.B);for(var d=a.next();!d.done;d=a.next())d.value.rg(b,c)};
mCa=function(a,b,c){a.Rb.Wh("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c,void 0);a=g.v(a.B);for(var d=a.next();!d.done;d=a.next())d.value.wc(b,c)};
nCa=function(a,b,c,d){a.Rb.Wh(YBa(d),b,c,void 0);a=g.v(a.B);for(var e=a.next();!e.done;e=a.next())e.value.Nc(b,c,d)};
gCa=function(a,b){if(tI(a.j,b)){uI(a.j,b).K=!1;var c=AI;b=uI(a.j,b);var d=[].concat(g.ra(b.Z));taa(b.Z);c(a,d)}};
AI=function(a,b){b.sort(function(f,h){function l(m){wF("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):WBa(f.category,l)-WBa(h.category,l)});
var c=new Map;b=g.v(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,tI(a.j,d.slot))if(uI(a.j,d.slot).K)uI(a.j,d.slot).Z.push(d);else{a.Rb.uN("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",d.slot,d,d.layout);var e=c.get(d.category);e||(e=[]);e.push(d);c.set(d.category,e)}b=g.v(oCa);for(d=b.next();!d.done;d=b.next())e=g.v(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&pCa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&qCa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&rCa(a,
b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&sCa(a,c)};
pCa=function(a,b,c){b=g.v(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&tCa(a.j,d.slot)&&uCa(a,d.slot,d.layout,c)};
qCa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next())sI(a,c.value.slot,!1)};
rCa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(uI(a.j,c.slot).D){case "not_filled":var d=!0;break a;default:d=!1}d&&(a.Rb.Wj("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.NE(c.slot))}};
sCa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.Rb.Wj("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.v(a.B),e=d.next();!e.done;e=d.next())e.value.Oh(c.slot);try{var f=a.j,h=c.slot,l=uI(f,h);if(!l)throw new hI("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!l.B)throw new hI("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if(l.j!=="scheduled")throw new hI("Tried to enter a slot from stage: "+
l.j,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(BI(l))throw new hI("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var m=g.v(CI(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&BI(p))throw new hI("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 hI&&q.fl?(a.Rb.lm("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
q.fl,c.slot),wF(q,c.slot,DI(a.j,c.slot),void 0,q.Bw)):(a.Rb.lm("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c.slot),wF(q,c.slot));sI(a,c.slot,!0);continue}c=uI(a.j,c.slot);c.j!=="scheduled"&&EI(c.slot,c.j,"enterSlot");c.j="enter_requested";c.B.xJ()}};
hCa=function(a,b){if(tI(a.j,b)&&BI(uI(a.j,b))&&DI(a.j,b)&&!tCa(a.j,b)){var c;a.Rb.Wh("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,(c=DI(a.j,b))!=null?c:void 0);a=uI(a.j,b);a.j!=="entered"&&EI(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.C.startRendering(a.layout)}};
uCa=function(a,b,c,d){if(tI(a.j,b)){var e=a.Rb,f=e.Wh,h;var l=((h=XBa.get(d))==null?void 0:h.Fy)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";f.call(e,l,b,c);a=uI(a.j,b);a.j!=="rendering"&&EI(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.C.Jd(c,d)}};
sI=function(a,b,c){if(tI(a.j,b)){a:switch(uI(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(uI(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(uI(a.j,b).G=!0,!c))return;if(BI(uI(a.j,b)))uI(a.j,b).G=!0,vCa(a,b,c);else{a:switch(uI(a.j,b).D){case "fill_requested":c=!0;break a;default:c=!1}if(c)uI(a.j,b).G=!0,tI(a.j,b)&&(a.Rb.Wj("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=uI(a.j,b),b.D="fill_cancel_requested",b.N.vO());else{c=
DI(a.j,b);(d=a.Ba.get().J.U().experiments.gb("h5_enable_layout_unscheduling_events"))&&(c?a.rg(b,c):wF(Error("Layout is null for LayoutUnscheduled event."),b,c,void 0,!1));a.Rb.Wj("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=uI(a.j,b),f=b.slotEntryTrigger,h=e.Da.get(f.triggerId);h&&(h.Sl(f),e.Da.delete(f.triggerId));f=g.v(b.slotFulfillmentTriggers);for(h=f.next();!h.done;h=f.next()){h=h.value;var l=e.ra.get(h.triggerId);l&&(l.Sl(h),e.ra.delete(h.triggerId))}f=g.v(b.slotExpirationTriggers);
for(h=f.next();!h.done;h=f.next())if(h=h.value,l=e.Y.get(h.triggerId))l.Sl(h),e.Y.delete(h.triggerId);e.layout!=null&&(f=e.layout,FI(e,f.layoutExitNormalTriggers),FI(e,f.layoutExitSkipTriggers),FI(e,f.layoutExitMuteTriggers),FI(e,f.layoutExitUserInputSubmittedTriggers),FI(e,f.Xc));e.N=void 0;e.B!=null&&(e.B.release(),e.B=void 0);e.C!=null&&(e.C.release(),e.C=void 0);e=a.j;uI(e,b)&&(e=CI(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);a.Rb.Wj("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
b);a=g.v(a.B);for(e=a.next();!e.done;e=a.next())e=e.value,e.Rh(b),c&&!d&&e.rg(b,c)}}}};
vCa=function(a,b,c){if(tI(a.j,b)&&BI(uI(a.j,b))){var d=DI(a.j,b);if(d&&tCa(a.j,b))uCa(a,b,d,c?"error":"abandoned");else{a.Rb.Wj("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=uI(a.j,b);if(!e)throw new hI("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");e.j!=="enter_requested"&&e.j!=="entered"&&e.j!=="rendering"&&EI(e.slot,e.j,"exitSlot");e.j="exit_requested";if(e.B===void 0)throw e.j="scheduled",new hI("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");e.B.zJ()}catch(f){f instanceof hI&&f.fl?(a.Rb.lm("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",f.fl,b),wF(f,b,void 0,void 0,f.Bw)):(a.Rb.lm("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),wF(f,b))}}}};
wCa=function(a){this.slot=a;this.Da=new Map;this.ra=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"};
BI=function(a){return a.j==="enter_requested"||a.isActive()};
xCa=function(a,b,c,d,e,f){g.I.call(this);this.uh=a;this.C=b;this.G=c;this.D=d;this.B=e;this.Ba=f;this.j=new Map};
CI=function(a,b){return(a=a.j.get(b))?a:new Map};
uI=function(a,b){return CI(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
yCa=function(a){var b=[];a.j.forEach(function(c){c=g.v(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
tI=function(a,b){return uI(a,b)!=null};
tCa=function(a,b){a=uI(a,b);if(b=a.layout!=null)a:switch(a.j){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
DI=function(a,b){(a=uI(a,b))?a.layout!=null&&!a.layout&&wF("Unexpected empty layout",b):wF("Unexpected undefined slotState",b);return(a==null?void 0:a.layout)||null};
BCa=function(a,b,c){if(c.length==0)throw new hI("No "+zCa.get(b)+" triggers found for slot.",void 0,ACa(b));c=g.v(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.uh.zn.get(d.triggerType))throw new hI("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
ACa=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"}};
vI=function(a,b,c){c=g.v(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.uh.zn.get(d.triggerType))throw new gI("No trigger adapter registered for "+zCa.get(b)+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
wI=function(a,b,c,d){d=g.v(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.uh.zn.get(e.triggerType);f.Ml(c,e,b.slot,b.layout?b.layout:null);b.va.set(e.triggerId,f)}};
FI=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.va.get(c.triggerId);d&&(d.Sl(c),a.va.delete(c.triggerId))}};
EI=function(a,b,c){wF("Slot stage was "+b+" when calling method "+c,a)};
CCa=function(a){return GI(a.JB).concat(GI(a.zn)).concat(GI(a.Tt)).concat(GI(a.zv)).concat(GI(a.Iu))};
GI=function(a){var b=[];a=g.v(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.oh&&b.push(c);return b};
DCa=function(a){g.I.call(this);var b=this;this.j=a;this.instance=null;this.addOnDisposeCallback(function(){g.ub(b.instance);b.instance=null})};
HI=function(a){return new DCa(a)};
FCa=function(a){g.I.call(this);this.gh=a;this.j=ECa(this)};
ECa=function(a){var b=new eCa(function(c,d,e,f){return new xCa(a.gh.uh,c,d,e,f,a.gh.Ba)},new Set(CCa(a.gh.uh).concat(a.gh.listeners)),a.gh.Rb,a.gh.Ba);
g.M(a,b);return b};
II=function(a){this.j=a};
JI=function(a,b,c){qBa(a.j(),b,c)};
KI=function(a,b,c,d){(a=a.j())||wF("Could not initiate a command router instance.");kH(a,b,c,d)};
LI=function(){this.listeners=new Set};
MI=function(){};
HCa=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/"+af(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)&&typeof c.push=="function"||(c=b.GoogleTyFxhY=[]);c.push(l);c=mf(e).createElement("SCRIPT");c.type="text/javascript";c.async=!0;a=Jba(GCa,af(a)+".js");g.Ye(c,a);(a=(b.GoogleTyFxhYEET||{})[c.src])?a():e.getElementsByTagName("head")[0].appendChild(c)}};
ICa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.B=c;this.Oe=d;this.Ba=e;this.j=null};
KCa=function(a,b,c,d){a.j&&wF("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.FC?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.B.get(),l=a.slot.slotId,m=nI(a.Oe.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,Za:a.slot.Za,slotEntryTrigger:a.slot.slotEntryTrigger,slotFulfillmentTriggers:a.slot.slotFulfillmentTriggers,slotExpirationTriggers:a.slot.slotExpirationTriggers}),
n=NI(h.B.get(),f,l),p={layoutId:n,layoutType:f,Za:"core"};e={layoutId:n,layoutType:f,Db:new Map,layoutExitNormalTriggers:[new JCa(h.j,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"core",Ca:new iI([new PBa(e)]),Xb:m(p)};iCa(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof lg||fCa(a.callback,a.slot,new hI(e,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
LCa=function(a){if(a.j==null)a.callback.sL(a.slot);else try{a.j.cancel(),a.j=null,a.callback.sL(a.slot)}catch(b){a.j=null,fCa(a.callback,a.slot,new hI(b,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
OI=function(a,b,c,d){!a&&(c===void 0?0:c)&&g.nE(Error("Player URL validator detects invalid url. "+(d===void 0?"":d)+": "+b));return a};
PI=function(a,b){return b&&b.test(a)?!0:!1};
NCa=function(a){return(a=MCa&&MCa.exec(a))?a[0]:""};
QI=function(a){var b=b===void 0?!1:b;return OI(PI(a,OCa),a,b,"Trusted Stream URL")};
g.RI=function(a){var b=b===void 0?!1:b;return OI(PI(a,PCa),a,b,"Trusted Image URL")};
RCa=function(a){var b=b===void 0?!1:b;return OI(PI(a,QCa),a,b,"Trusted Promoted Video Domain URL")};
TCa=function(a){var b=b===void 0?!1:b;return OI(PI(a,SCa),a,b,"Drm Licensor URL")};
VCa=function(a,b){b=b===void 0?!1:b;return OI(PI(a,UCa),a,b,"Captions URL")};
WCa=function(a){a=new g.kq(a);g.lq(a,document.location.protocol);g.mq(a,document.location.hostname);document.location.port&&g.nq(a,document.location.port);return a.toString()};
SI=function(a){a=new g.kq(a);g.lq(a,document.location.protocol);return a.toString()};
g.UI=function(a,b,c){c=c===void 0?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.Jl=0;this.B=XCa++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||TI.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.as(d.thumbnails,function(e){return g.RI(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
YCa=function(a){return a===-0x8000000000000?"BEFORE_MEDIA_START":a===0?"MEDIA_START":a===0x7ffffffffffff?"MEDIA_END":a===0x8000000000000?"AFTER_MEDIA_END":a.toString()};
ZCa=function(a,b){switch(a.style){case TI.CHAPTER_MARKER:return b?8:5;case TI.AD_MARKER:return 6;case TI.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.$Ca=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B};
g.VI=function(a){return"crn_"+a};
g.WI=function(a){return"crx_"+a};
aDa=function(a,b,c,d,e,f,h,l,m){this.slot=b;this.B=c;this.Pa=h;this.Ia=l;this.Gc=m;this.j=new ICa(a,b,d,e,f)};
bDa=function(a){var b;(b=a.Gc)==null||b.get().Yu(jI(a.slot.Ca,"metadata_type_cue_point").identifier)};
cDa=function(a,b,c,d,e,f){this.slot=b;this.B=c;this.j=new ICa(a,b,d,e,f)};
dDa=function(a,b){this.callback=a;this.slot=b};
eDa=function(a,b){return lI(a,b.Md,b.slotType)?!0:!1};
fDa=function(){};
XI=function(a,b,c,d,e,f,h){this.j=a;this.B=b;this.Oe=c;this.Ba=d;this.Pa=e;this.Ia=f;this.Gc=h};
YI=function(){};
gDa=function(a,b,c,d,e,f){this.callback=a;this.slot=b;this.layout=c;this.B=d;this.C=e;this.j=f};
iDa=function(a){if(jI(a.slot.Ca,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var b=hDa(a,a.slot);ZI(a.C.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[b]})}};
hDa=function(a,b){var c=$I(a.j.get(),a.slot.slotType),d=Object,e=d.assign;a=a.slot;if(b.slotEntryTrigger){var f=b.slotId;var h=b.slotEntryTrigger;f=h.triggeringSlotId!=null&&h.triggeringSlotId===f?h.clone(c):h}else f=void 0;return e.call(d,{},a,{slotId:c,slotEntryTrigger:f,slotFulfillmentTriggers:jDa(b.slotId,c,b.slotFulfillmentTriggers),slotExpirationTriggers:jDa(b.slotId,c,b.slotExpirationTriggers)})};
jDa=function(a,b,c){var d=[];c=g.v(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=e.triggeringSlotId!=null&&e.triggeringSlotId===l?e.clone(m):e;h.call(f,l)}return d};
g.aJ=function(a,b){for(var c=g.v(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};
kDa=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
lDa=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.wf(a.slot,b,new gI("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()};
bJ=function(a,b,c,d){g.GE.call(this);this.callback=a;this.C=d;this.j=[];this.B=new kDa(a,b,c)};
dJ=function(a,b,c,d,e,f,h,l){d=d||jI(c.Ca,f);a=cJ(a);var m=Od(function(){e.wc(b,c)});
l.push(h(d,a,c.layoutId,{adsClientData:c.Xb},function(){m()}))};
eJ=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.v(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,b.slotType==="SLOT_TYPE_PLAYER_BYTES"&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.J.sendVideoStatsEngageEvent(1,void 0,2):e?e():wF("Tried to call engagePingCallback but it is null",h,l)}}else wF("Companion AdUxClick received without a layoutId",h,l)};
fJ=function(a){var b,c,d,e,f;return!((b=a.get("active_view_viewable"))==null||!b.length)||!((c=a.get("active_view_measurable"))==null||!c.length)||!((d=a.get("active_view_fully_viewable_audible_half_duration"))==null||!d.length)||!((e=a.get("audio_audible"))==null||!e.length)||!((f=a.get("audio_measurable"))==null||!f.length)};
gJ=function(a){var b,c;return(c=a==null?void 0:(b=a.activeViewTracking)==null?void 0:b.trafficType)!=null?c:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
hJ=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",((b=a.activeViewTracking)==null?void 0:b.activeViewAudioAudiblePings)||[]],["audio_measurable",((c=a.activeViewTracking)==null?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||[]]])};
mDa=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}};
iJ=function(a,b,c,d,e){e=e===void 0?null:e;this.C=a;this.Pa=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,r_:e}};
jJ=function(){return["metadata_type_ad_placement_config"]};
cJ=function(a){var b=a.Pa.get();return kJ(b,a.N)};
oDa=function(a,b,c){c=c===void 0?!1:c;a.j.has(b)?nDa(a,b,[]):a.Zb(b,c)};
lJ=function(a,b,c){for(c=c===void 0?!1:c;a.D<a.B.length;){var d=a.B[a.D];if(d.offsetMilliseconds<=b||c)nDa(a,"progress",[d]),a.D++;else break}};
mJ=function(a,b){return a.j.has(b)};
nJ=function(a){return a.B.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
pDa=function(a,b,c){a.K=b;a.G=c};
nDa=function(a,b,c){var d;qDa(a.Pa.get(),a.layoutId,b,c,(d=a.K)!=null?d:void 0,a.G)};
rDa=function(a,b,c,d,e){FE.call(this,"ads-engagement-panel-layout",a,b,c,d,e)};
sDa=function(a,b,c,d,e,f,h,l){bJ.call(this,a,b,c,d);this.Pa=e;this.vc=f;this.K=l;this.oh=!0;this.D=null;this.G=jI(c.Ca,"metadata_type_linked_player_bytes_layout_id");qI(this.vc(),this);a=jI(c.Ca,"metadata_type_ad_placement_config");this.fb=new iJ(c.Db,this.Pa,a,c.layoutId)};
tDa=function(){var a=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];jJ().forEach(function(b){a.push(b)});
return{Md:a,Je:["LAYOUT_TYPE_PANEL"]}};
uDa=function(a,b,c,d,e){FE.call(this,"banner-image",a,b,c,d,e)};
vDa=function(a,b,c,d,e,f,h,l){bJ.call(this,a,b,c,d);this.Pa=e;this.vc=f;this.K=l;this.oh=!0;this.D=null;this.G=jI(c.Ca,"metadata_type_linked_player_bytes_layout_id");qI(this.vc(),this);this.adPlacementConfig=jI(c.Ca,"metadata_type_ad_placement_config");this.fb=new iJ(c.Db,this.Pa,this.adPlacementConfig,c.layoutId)};
wDa=function(){var a=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];jJ().forEach(function(b){a.push(b)});
return{Md:a,Je:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
xDa=function(a,b,c,d,e){FE.call(this,"action-companion",a,b,c,d,e)};
yDa=function(a,b,c,d,e,f,h,l){bJ.call(this,a,b,c,d);this.Pa=e;this.vc=f;this.K=l;this.oh=!0;this.D=null;this.G=jI(c.Ca,"metadata_type_linked_player_bytes_layout_id");qI(this.vc(),this);a=jI(c.Ca,"metadata_type_ad_placement_config");this.fb=new iJ(c.Db,this.Pa,a,c.layoutId)};
zDa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];jJ().forEach(function(b){a.push(b)});
return{Md:a,Je:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
ADa=function(a,b,c,d,e){FE.call(this,"image-companion",a,b,c,d,e)};
BDa=function(a,b,c,d,e,f,h,l){bJ.call(this,a,b,c,d);this.Pa=e;this.vc=f;this.K=l;this.oh=!0;this.D=null;this.G=jI(c.Ca,"metadata_type_linked_player_bytes_layout_id");qI(this.vc(),this);a=jI(c.Ca,"metadata_type_ad_placement_config");this.fb=new iJ(c.Db,this.Pa,a,c.layoutId)};
CDa=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];jJ().forEach(function(b){a.push(b)});
return{Md:a,Je:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
DDa=function(a,b,c,d,e){FE.call(this,"shopping-companion",a,b,c,d,e)};
EDa=function(a,b,c,d,e,f,h,l){bJ.call(this,a,b,c,d);this.Pa=e;this.vc=f;this.K=l;this.oh=!0;this.D=null;this.G=jI(c.Ca,"metadata_type_linked_player_bytes_layout_id");qI(this.vc(),this);a=jI(c.Ca,"metadata_type_ad_placement_config");this.fb=new iJ(c.Db,this.Pa,a,c.layoutId)};
FDa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];jJ().forEach(function(b){a.push(b)});
return{Md:a,Je:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
GDa=function(a){var b;if(((b=a.adVideoOffset)==null?void 0:b.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var c;return((c=a.adVideoOffset)==null?void 0:c.percent)!=null};
HDa=function(a){var b;if(((b=a.adVideoOffset)==null?void 0:b.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var c;return((c=a.adVideoOffset)==null?void 0:c.milliseconds)!=null&&!isNaN(Number(a.adVideoOffset.milliseconds))};
IDa=function(a,b,c,d){this.Mb=a;this.layoutId=c;this.G=d;this.B=[];this.j=[];this.C=this.D=0;a=g.v(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,c=void 0,(c=b.adVideoOffset)==null?void 0:c.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":GDa(b)?this.B.push(b):wF("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":HDa(b)?this.j.push(b):wF("Invalid AdVideoProgressMillisecondsCommand");break;default:wF("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)})};
JDa=function(a,b,c){c=c===void 0?!1:c;var d=a.G();if(d){for(;a.D<a.B.length;){var e=a.B[a.D];if(e.adVideoOffset.percent*d<=b)a.Mb.get().executeCommand(e.command,a.layoutId),a.D++;else break}for(;a.C<a.j.length;)if(d=a.j[a.C],Number(d.adVideoOffset.milliseconds)<=b||c)a.Mb.get().executeCommand(d.command,a.layoutId),a.C++;else break}};
KDa=function(a,b,c,d,e,f){bJ.call(this,a,b,c,d);this.Pa=e;this.vc=f;this.oh=!0;qI(this.vc(),this);a=jI(c.Ca,"metadata_type_ad_placement_config");this.fb=new iJ(c.Db,this.Pa,a,c.layoutId)};
LDa=function(){var a=["metadata_type_action_companion_ad_renderer"];jJ().forEach(function(b){a.push(b)});
return{Md:a,Je:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
MDa=function(a,b,c,d,e,f,h){this.callback=a;this.slot=b;this.layout=c;this.Ia=d;this.Pa=e;this.Ba=f;this.yb=h;this.j=!1;a=jI(c.Ca,"metadata_type_ad_placement_config");this.fb=new iJ(c.Db,this.Pa,a,c.layoutId)};
NDa=function(a,b,c,d,e,f){bJ.call(this,a,b,c,d);this.Ia=e;this.G=f;this.D=!1};
ODa=function(a,b,c,d,e){FE.call(this,"top-banner-image-text-icon-buttoned",a,b,c,d,e)};
PDa=function(a,b,c,d,e,f){bJ.call(this,a,b,c,d);this.Pa=e;this.vc=f;this.oh=!0;qI(this.vc(),this);a=jI(c.Ca,"metadata_type_ad_placement_config");this.fb=new iJ(c.Db,this.Pa,a,c.layoutId)};
QDa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];jJ().forEach(function(b){a.push(b)});
return{Md:a,Je:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
oJ=function(a,b,c,d,e,f){e=e===void 0?!1:e;f=f===void 0?!1:f;FE.call(this,"ad-action-interstitial",a,b,c,d);this.interactionLoggingClientData=d;this.GT=e;this.oM=f};
pJ=function(a,b,c,d,e){bJ.call(this,a,b,c,d);a=jI(c.Ca,"metadata_type_ad_placement_config");this.fb=new iJ(c.Db,e,a,c.layoutId)};
RDa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];jJ().forEach(function(b){a.push(b)});
return{Md:a,Je:["LAYOUT_TYPE_ENDCAP"]}};
qJ=function(a,b){return eI(a,b.Md,b.Je)?!0:!1};
rJ=function(a,b,c){this.B=a;this.C=b;this.j=c};
SDa=function(a,b,c,d,e){FE.call(this,"ads-engagement-panel",a,b,c,d,e)};
TDa=function(a,b,c,d,e,f,h,l){bJ.call(this,a,b,c,d);this.Pa=e;this.vc=f;this.K=l;this.oh=!0;this.D=null;this.G=jI(c.Ca,"metadata_type_linked_player_bytes_layout_id");qI(this.vc(),this);a=jI(c.Ca,"metadata_type_ad_placement_config");this.fb=new iJ(c.Db,this.Pa,a,c.layoutId)};
UDa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];jJ().forEach(function(b){a.push(b)});
return{Md:a,Je:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
VDa=function(a,b,c,d,e,f,h,l){bJ.call(this,a,b,c,d);this.Pa=e;this.vc=f;this.K=l;this.oh=!0;this.D=null;this.G=jI(c.Ca,"metadata_type_linked_player_bytes_layout_id");qI(this.vc(),this);this.adPlacementConfig=jI(c.Ca,"metadata_type_ad_placement_config");this.fb=new iJ(c.Db,this.Pa,this.adPlacementConfig,c.layoutId)};
WDa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];jJ().forEach(function(b){a.push(b)});
return{Md:a,Je:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
XDa=function(a,b,c,d,e){this.Dc=a;this.Pa=b;this.vc=c;this.j=d;this.yb=e};
YDa=function(a,b,c){FE.call(this,"player-underlay",a,{},b,c);this.interactionLoggingClientData=c};
sJ=function(a,b,c,d){bJ.call(this,a,b,c,d)};
ZDa=function(a){this.Dc=a};
$Da=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Pa=d;this.wi=e;a=jI(this.layout.Ca,"metadata_type_ad_placement_config");this.fb=new iJ(c.Db,this.Pa,a,c.layoutId)};
aEa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];jJ().forEach(function(b){a.push(b)});
return{Md:a,Je:["LAYOUT_TYPE_FORECASTING"]}};
bEa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Pa=d;this.wi=e;a=jI(this.layout.Ca,"metadata_type_ad_placement_config");this.fb=new iJ(c.Db,this.Pa,a,c.layoutId)};
tJ=function(a,b,c,d){this.Ba=a;this.Pa=b;this.wi=c;this.yb=d};
cEa=function(a,b){return dI(a.Ca,"metadata_type_ad_info_ad_metadata")?jI(a.Ca,"metadata_type_ad_info_ad_metadata"):b?{channelId:b.Ul,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(wF("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
dEa=function(a,b){return dI(a.Ca,"metadata_ad_video_is_listed")?jI(a.Ca,"metadata_ad_video_is_listed"):b?b.isListed:(wF("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
eEa=function(a,b,c,d){FE.call(this,"player-overlay-layout",a,{},c,d);this.videoAdDurationSeconds=b;this.interactionLoggingClientData=d};
fEa=function(a,b,c,d,e,f,h,l){bJ.call(this,a,b,c,d);this.Ia=e;this.Pa=f;this.K=h;this.G=l;this.D=!1;this.N=jI(this.layout.Ca,"metadata_type_linked_player_bytes_layout_id")};
gEa=function(a){if(a.layout.renderingContent){var b;return(b=jI(a.layout.Ca,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current}return jI(a.layout.Ca,"metadata_type_player_bytes_callback")};
uJ=function(a,b,c,d,e,f,h,l){bJ.call(this,a,b,c,d);this.Ia=e;this.Pa=f;this.K=h;this.G=l;this.D=!1;this.N=jI(this.layout.Ca,"metadata_type_linked_player_bytes_layout_id")};
hEa=function(){return{Md:["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"],Je:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
iEa=function(a){if(a.layout.renderingContent){var b;return(b=jI(a.layout.Ca,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current}return jI(a.layout.Ca,"metadata_type_player_bytes_callback")};
jEa=function(a,b,c){FE.call(this,"ad-message",a,void 0,b,c)};
vJ=function(a,b,c,d,e,f){bJ.call(this,c,a,b,d);this.Ia=e;this.Ba=f};
kEa=function(){return{Md:["metadata_type_valid_ad_message_renderer"],Je:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
yJ=function(a,b,c,d,e,f,h,l,m){return qJ(c,hEa())||c.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.V(c.renderingContent,wJ)!==void 0?new uJ(a,b,c,d,e,f,h,l):qJ(c,{Md:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Je:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||c.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.V(c.renderingContent,lEa)!==void 0?
new fEa(a,b,c,d,e,f,h,l):qJ(c,RDa())||c.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.V(c.renderingContent,xJ)!==void 0?new pJ(a,b,c,d,f):qJ(c,kEa())?new vJ(b,c,a,d,e,m):qJ(c,{Md:["metadata_type_instream_ad_player_overlay_renderer"],Je:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new NDa(a,b,c,d,e,l):null};
mEa=function(a,b,c,d,e,f){this.Dc=a;this.Ia=b;this.Pa=c;this.B=d;this.j=e;this.Ba=f};
zJ=function(a){return!a.AB.isPlaying()&&a.state.isPlaying()};
AJ=function(a,b,c){return a<b?!1:c!=null?c<=b:a<=b+1};
nEa=function(a,b,c,d,e,f,h){this.callback=a;this.slot=b;this.layout=c;this.Ia=d;this.Pa=e;this.Ba=f;this.yb=h;this.j=!1;a=jI(c.Ca,"metadata_type_ad_placement_config");this.fb=new iJ(c.Db,this.Pa,a,c.layoutId)};
oEa=function(a,b){a.j||(a.fb.Zb(b),a.j=!0)};
pEa=function(a,b,c,d){this.Ia=a;this.Pa=b;this.Ba=c;this.yb=d};
qEa=function(){this.currentState=1;this.j="unknown"};
rEa=function(a,b){if(a.currentState>1){g.nE(new g.FB("Exit already started",{current:a.currentState}));var c=!1}else c=!0;if(!c)return!1;a.currentState=2;a.j=b;return!0};
sEa=function(a,b){var c=new Map;a=g.v(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d.layoutType==="LAYOUT_TYPE_MEDIA")var e="v";else d.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(e=jI(d.Ca,"metadata_type_linked_in_player_layout_type"),e=e==="LAYOUT_TYPE_ENDCAP"||e==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":e==="LAYOUT_TYPE_SURVEY"?"s":e==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):e="u";c.set(d.layoutId,e);e==="u"&&(e={},BJ(b,"uct",(e.c=d.layoutId,e)))}a=b.jg();CJ={contentCpn:a,Ht:c};
d={};BJ(b,"acc",(d.ct=c.size,d.c=a,d))};
tEa=function(){CJ={contentCpn:"",Ht:new Map}};
DJ=function(a){var b;return(b=CJ.Ht.get(a))!=null?b:"u"};
EJ=function(a,b,c){BJ(a,b,c);uEa(a)};
vEa=function(a){var b=a.layoutId,c=a.hs;if(a.Do){var d={};EJ(a.Nf,"slso",(d.ec=b,d.is=c,d.ctp=DJ(b),d))}};
wEa=function(a){var b=a.layoutId,c=a.hs;if(a.Do){var d={};EJ(a.Nf,"slse",(d.ec=b,d.is=c,d.ctp=DJ(b),d))}};
xEa=function(a){var b=a.layoutId,c=a.hs,d=a.Nf;a.Do&&(a={},EJ(d,"sleo",(a.xc=b,a.is=c,a.ctp=DJ(b),a)),uEa(d))};
yEa=function(a){var b=a.cpn,c=a.Nf;a=a.hs;var d=c.jg(),e={};EJ(c,"ce",(e.ec=b,e.ia=b!==d,e.r=CJ.Ht.has(b),e.is=a,e.ctp=DJ(b),e))};
uEa=function(a){if(a.jg()!==CJ.contentCpn){var b={};BJ(a,"ccm",(b.c=CJ.contentCpn,b))}};
zEa=function(a){var b=a.cpn,c=a.Nf;a=a.hs;var d=c.jg(),e={};EJ(c,"cx",(e.xc=b,e.ia=b!==d,e.r=CJ.Ht.has(b),e.is=a,e.ctp=DJ(b),e))};
AEa=function(a,b){this.Nf=a;this.Ba=b};
FJ=function(a){var b=[];if(a){a=g.v(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;d!==void 0&&(d=typeof d==="boolean"?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")};
GJ=function(a,b,c){b=b===void 0?{}:b;this.errorCode=a;this.details=b;this.severity=c===void 0?0:c};
HJ=function(a){return a===1||a===2};
IJ=function(a,b){b=b===void 0?0:b;if(a instanceof GJ)return a;a=a&&a instanceof Error?a:Error(""+a);HJ(b)?g.mE(a):g.nE(a);return new GJ(b===1?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
g.CEa=function(a){return(a=BEa[a.toString()])?a:"LICENSE"};
DEa=function(a,b){function c(){var d=g.Ja.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.ra(d))}
a.addEventListener("playing",c)};
JJ=function(){var a=g.Wa("yt.player.utils.videoElement_");a||(a=g.Bf("VIDEO"),g.Va("yt.player.utils.videoElement_",a));return a};
KJ=function(a){var b=JJ();return!!(b&&b.canPlayType&&b.canPlayType(a))};
MJ=function(a){if(/opus/.test(a)&&g.LJ&&!$v("38")&&!g.UA())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(a);if(/webm/.test(a)&&!mra())return!1;a==='audio/mp4; codecs="mp4a.40.2"'&&(a='video/mp4; codecs="avc1.4d401f"');return!!KJ(a)};
EEa=function(a){try{var b=MJ('video/mp4; codecs="avc1.42001E"')||MJ('video/webm; codecs="vp9"');return(MJ('audio/mp4; codecs="mp4a.40.2"')||MJ('audio/webm; codecs="opus"'))&&(b||!a)||KJ('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
FEa=function(){var a=JJ();return!(!a.webkitSupportsPresentationMode||typeof a.webkitSetPresentationMode!=="function")};
GEa=function(){var a=JJ();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
g.NJ=function(){sB.apply(this,arguments)};
OJ=function(a,b,c,d,e,f){this.sampleRate=a===void 0?0:a;this.numChannels=b===void 0?0:b;this.spatialAudioType=c===void 0?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=d===void 0?!1:d;this.C=e===void 0?0:e;this.B=f===void 0?0:f};
QJ=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||HEa(a,b);this.j=g.PJ[this.quality];this.fps=c||0;this.stereoLayout=!e||d!=null&&d!=="UNKNOWN"&&d!=="RECTANGULAR"?0:e;this.projectionType=d?d==="EQUIRECTANGULAR"&&e===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.PJ[this.quality],a===0?a="\u0410\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430":(b=this.fps,c=this.projectionType,a=a.toString()+(c==="EQUIRECTANGULAR"||c==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||
c==="MESH"?"s":"p")+(b>55?"60":b>49?"50":b>39?"48":"")));this.qualityLabel=a;this.B=l||"";this.primaries=m||""};
HEa=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=RJ[0];for(var d=0;d<RJ.length;d++){var e=RJ[d],f=g.PJ[e];if(c>=Math.floor(f*16/9)*1.3||a>=f*1.3)return b;b=e}return"tiny"};
UJ=function(a,b,c){c=c===void 0?{}:c;this.id=a;this.mimeType=b;c.ub>0||(c.ub=16E3);Object.assign(this,c);a=g.v(this.id.split(";"));this.itag=a.next().value;this.j=a.next().value;this.containerType=SJ(b);this.sb=TJ[this.itag]||""};
VJ=function(a){return a.sb==="9"||a.sb==="("||a.sb==="9h"||a.sb==="(h"};
IEa=function(a){return a.sb==="H"||a.sb==="h"};
JEa=function(a){return a.sb==="9h"||a.sb==="(h"};
WJ=function(a){return a.sb==="1"||a.sb==="1h"};
KEa=function(a){return a.sb==="mac3"||a.sb==="meac3"||a.sb==="m"};
XJ=function(a){return a.sb==="MAC3"||a.sb==="MEAC3"||a.sb==="M"};
g.YJ=function(a){return a.containerType===1};
LEa=function(a){return a.sb==="("||a.sb==="(h"||a.sb==="H"};
ZJ=function(a){return a.mimeType==="application/x-mpegURL"};
$J=function(a,b){return{itag:+a.itag,lmt:b?0:a.lastModified,xtags:a.j||""}};
aK=function(a,b){a=$J(a,b);return a.itag+";"+(a.lmt||0)+";"+a.xtags};
MEa=function(a){var b=navigator.mediaCapabilities;if(b==null||!b.decodingInfo||a.sb==="f")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:a.ub*8||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:a.ub*8||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.B=d})};
NEa=function(a){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(a)};
OEa=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)};
bK=function(a){return a.includes("vtt")||a.includes("text/mp4")};
SJ=function(a){return a.indexOf("/mp4")>=0?1:a.indexOf("/webm")>=0?2:a.indexOf("/x-flv")>=0?3:a.indexOf("/vtt")>=0?4:0};
cK=function(a,b,c,d,e,f){var h=new OJ;b in g.PJ||(b="small");b==="light"&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.PJ[b],d=Math.round(e*16/9));f=new QJ(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new UJ(c,a,{audio:h,video:f})};
dK=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+((c=a.Dw)==null?void 0:c.toFixed(0))+", "+((d=a.ub)==null?void 0:d.toFixed(0))+")"};
eK=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
PEa=function(a,b,c){for(var d=[],e=[],f=0;f<a.length;f++)d.push(a.start(f)),e.push(a.end(f));d.push(b);e.push(c);d.sort(function(h,l){return h-l});
e.sort(function(h,l){return h-l});
return eK(d,e)};
fK=function(a,b,c){b=b===void 0?",":b;c=c===void 0?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)};
gK=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};
hK=function(a,b){return gK(a,b)>=0};
QEa=function(a,b){if(!a)return NaN;b=gK(a,b);return b>=0?a.start(b):NaN};
iK=function(a,b){if(!a)return NaN;b=gK(a,b);return b>=0?a.end(b):NaN};
jK=function(a){return a&&a.length?a.end(a.length-1):NaN};
kK=function(a,b){a=iK(a,b);return a>=0?a-b:0};
lK=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 eK(d,e)};
mK=function(a,b,c,d){g.GE.call(this);var e=this;this.Id=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.RY={error:function(){!e.Na()&&e.isActive&&e.publish("error",e)},
updateend:function(){!e.Na()&&e.isActive&&e.publish("updateend",e)}};
g.HE(this.Id,this.RY);this.dI=this.isActive};
nK=function(a,b,c,d,e,f){g.GE.call(this);var h=this;this.Sb=a;this.yg=b;this.id=c;this.containerType=d;this.sb=e;this.Cg=f;this.WQ=this.PF=this.Kf=null;this.ZI=!1;this.appendWindowStart=this.timestampOffset=0;this.rO=eK([],[]);this.mE=!1;this.OF=[];this.jC=REa?[]:void 0;this.cI=!1;this.Hd=function(m){return h.publish(m.type,h)};
var l;if((l=this.Sb)==null?0:l.addEventListener)this.Sb.addEventListener("updateend",this.Hd),this.Sb.addEventListener("error",this.Hd)};
oK=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
pK=function(a,b){this.resource=a;this.j=b===void 0?!1:b;this.B=!1};
qK=function(a,b,c){c=c===void 0?!1:c;g.I.call(this);this.mediaElement=a;this.Ra=b;this.isView=c;this.N=0;this.G=!1;this.K=!0;this.va=0;this.callback=null;this.ra=!1;this.Ra||(this.yg=this.mediaElement.Jb());this.events=new g.NJ(this);g.M(this,this.events);this.C=new pK(this.Ra?window.URL.createObjectURL(this.Ra):this.yg.webkitMediaSourceURL,!0);a=this.Ra||this.yg;tB(this.events,a,["sourceopen","webkitsourceopen"],this.Cca);tB(this.events,a,["sourceclose","webkitsourceclose"],this.Bca);this.D={updateend:this.Y5}};
SEa=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
TEa=function(a,b){rK(a)?g.dg(function(){b(a)}):a.callback=b};
UEa=function(a,b,c){if(sK){var d;tK(a.mediaElement,{l:"mswssb",sr:(d=a.mediaElement.ea)==null?void 0:uK(d)},!1);g.HE(b,a.D,a);g.HE(c,a.D,a)}a.j=b;a.B=c;g.M(a,b);g.M(a,c)};
VEa=function(a,b,c,d){d=b.mimeType+(d===void 0?"":d);var e=c.mimeType;b=b.sb;c=c.sb;var f;a.Z=(f=a.Ra)==null?void 0:f.addSourceBuffer(e);var h;a.Y=d.split(";")[0]==="fakesb"?void 0:(h=a.Ra)==null?void 0:h.addSourceBuffer(d);a.yg&&(a.yg.webkitSourceAddId("0",e),a.yg.webkitSourceAddId("1",d));f=new nK(a.Z,a.yg,"0",SJ(e),c,!1);d=new nK(a.Y,a.yg,"1",SJ(d),b,!0);UEa(a,f,d)};
vK=function(a){return!!a.j||!!a.B};
rK=function(a){try{return wK(a)==="open"}catch(b){return!1}};
wK=function(a){if(a.Ra)return a.Ra.readyState;switch(a.yg.webkitSourceState){case a.yg.SOURCE_OPEN:return"open";case a.yg.SOURCE_ENDED:return"ended";default:return"closed"}};
WEa=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource};
XEa=function(a){rK(a)&&(a.Ra?a.Ra.endOfStream():a.yg.webkitSourceEndOfStream(a.yg.EOS_NO_ERROR))};
YEa=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Id:a.j,f=a.B.isView()?a.B.Id:a.B,h=new qK(a.mediaElement,a.Ra,!0);h.C=a.C;UEa(h,new mK(e,b,c,d),new mK(f,b,c,d));rK(a)||a.j.Mq(a.j.Fc());return h};
ZEa=function(a){var b;(b=a.j)==null||b.Lz();var c;(c=a.B)==null||c.Lz();a.K=!1};
xK=function(){var a=this;this.OS=this.bT=qaa;this.promise=new g.fg(function(b,c){a.bT=b;a.OS=c})};
yK=function(){g.I.call(this);this.qK=!1;this.resource=null;this.N=this.K=!1;this.D=new g.Fd;this.ea=null;g.M(this,this.D)};
$Ea=function(a){a=a.xA();return a.length<1?NaN:a.end(a.length-1)};
aFa=function(a){!a.B&&SEa()&&(a.C?a.C.then(function(){return aFa(a)}):a.Ff()||(a.B=a.Nr()))};
bFa=function(a){a.B&&(a.B.dispose(),a.B=void 0)};
tK=function(a,b,c){var d;((d=a.ea)==null?0:d.yc())&&a.ea.oa("rms",b,c===void 0?!1:c)};
cFa=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||c>10||(a.play(),g.BA(function(){cFa(a,a.getCurrentTime(),c+1)},500))};
dFa=function(a,b){a.resource&&b!==null&&b.resource===a.resource.resource||(a.resource&&a.resource.dispose(),a.resource=b)};
zK=function(a){return kK(a.Ih(),a.getCurrentTime())};
eFa=function(a,b){if(a.al()===0||a.hasError())return!1;var c=a.getCurrentTime()>0;return b>=0&&(a=a.xA(),a.length||!c)?hK(a,b):c};
gFa=function(a){a.Ff()&&(fFa&&a.ea&&a.ea.Dv("rs_s"),yC&&a.getCurrentTime()>0&&a.seekTo(0),a.XL(),a.load(),dFa(a,null));delete a.C};
hFa=function(a){switch(a.ih()){case 2:return"progressive.net.retryexhausted";case 3:var b;return((b=a.uf())==null?0:b.includes("MEDIA_ERR_CAPABILITY_CHANGED"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}};
g.AK=function(a,b,c){this.hh=b===void 0?null:b;this.seekSource=c===void 0?null:c;this.state=a||64};
BK=function(a,b){return iFa(a,b.getCurrentTime(),(0,g.iC)(),zK(b))};
CK=function(a,b,c,d){if(!(b===a.state&&c===a.hh&&d===a.seekSource||b!==void 0&&(b&128&&!c||b&2&&b&16))){var e;if(e=b)e=b||a.state,e=!!(e&16||e&32);a=new g.AK(b,c,e?d?d:a.seekSource:null)}return a};
DK=function(a,b,c){return CK(a,a.state|b,null,c===void 0?null:c)};
EK=function(a,b){return CK(a,a.state&~b,null,null)};
FK=function(a,b,c,d){return CK(a,(a.state|b)&~c,null,d===void 0?null:d)};
g.yF=function(a,b){return!!(a.state&b)};
g.jFa=function(a,b){return b.state===a.state&&b.hh===a.hh};
kFa=function(a){return a.isPlaying()&&!g.yF(a,16)&&!g.yF(a,32)};
GK=function(a){return g.yF(a,128)?-1:g.yF(a,2)?0:g.yF(a,2048)?3:g.yF(a,64)?-1:g.yF(a,1)&&!g.yF(a,32)?3:g.yF(a,8)?1:g.yF(a,4)?2:-1};
IK=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w){g.I.call(this);var A=this;this.fp=a;this.slot=b;this.layout=c;this.Pa=d;this.yb=e;this.Ta=f;this.Ia=h;this.zc=l;this.Mb=m;this.Dq=n;this.position=q;this.G=r;this.Ba=t;this.qs=u;this.Ug=w;this.oh=!0;this.D=!1;this.lc="not_rendering";this.j=!1;this.B=new qEa;a=jI(this.layout.Ca,"metadata_type_ad_placement_config");this.fb=new iJ(c.Db,this.Pa,a,c.layoutId);var C;a=((C=HK(this))==null?void 0:C.progressCommands)||[];this.C=new IDa(m,a,c.layoutId,function(){return A.rA()})};
JK=function(a){return{layoutId:a.Xw(),hs:a.qs,Nf:a.Ta.get(),Do:a.kf()}};
lFa=function(a,b){return b.layoutId!==a.layout.layoutId?(a.fp.wf(a.slot,b,new gI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+a.layout.layoutId+("and LayoutType: "+a.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
mFa=function(a){a.lc="rendering_start_requested";a.Dq(-1)};
HK=function(a){return jI(a.layout.Ca,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
nFa=function(a){wF("Received layout exit signal when not in layout exit flow.",a.slot,a.layout)};
oFa=function(a){a.kf()&&wF("Unexpected ad player in SSAP",a.slot,a.layout)};
KK=function(a,b){switch(b){case "normal":a.Zb("complete");break;case "skipped":a.Zb("skip");break;case "abandoned":mJ(a.fb,"impression")&&a.Zb("abandon")}};
LK=function(a,b){a.D||(b=new g.xF(b.state,new g.AK),a.D=!0);return b};
MK=function(a,b){zJ(b)?a.Dq(1):g.AF(b,4)&&!g.AF(b,2)&&a.T2();zF(b,4)<0&&!(zF(b,2)<0)&&a.U2()};
pFa=function(a){a.position===0&&(a.zc.get(),a=jI(a.layout.Ca,"metadata_type_ad_placement_config").kind,a={adBreakType:NK(a)},KG("ad_bl"),g.LG(a))};
OK=function(a,b){oDa(a.fb,b,!a.j)};
rFa=function(a){var b;return(((b=HK(a))==null?void 0:b.progressCommands)||[]).findIndex(function(c){return!!g.V(c==null?void 0:c.command,qFa)})!==-1};
PK=function(a,b){var c=jI(a.Ca,"metadata_type_eligible_for_ssap");return c===void 0?(wF("Expected SSAP eligibility in PlayerBytes factory",a),!1):b.kf(c)};
sFa=function(a){switch(a){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return wF("getExitReason: unexpected reason",void 0,void 0,{reason:a}),"error";default:Pe(a,"unexpected transition reason")}};
QK=function(a,b,c){RG(a,c)||SG(a,b,c);RG(a,"video_to_ad")||SG(a,b,"video_to_ad");RG(a,"ad_to_video")||SG(a,b,"ad_to_video");RG(a,"ad_to_ad")||SG(a,b,"ad_to_ad")};
RK=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A){IK.call(this,a,b,c,d,e,f,h,l,n,p,q,r,t,u,w,A);var C=this;this.md=m;this.uo=q;this.xK=!0;this.ZQ=this.mj=0;this.Vz=Od(function(){vEa(JK(C));C.fp.wc(C.slot,C.layout)});
this.Uz=Od(function(){xEa(JK(C));C.lc!=="rendering_stop_requested"&&C.uo(C);C.MO()});
this.Ye=new g.mg(200);this.Ye.listen("tick",function(){C.Uc()});
g.M(this,this.Ye)};
uFa=function(a){a.ZQ=Date.now();tFa(a,a.mj);a.Ye.start()};
vFa=function(a){a.mj=a.rA();a.HC(a.mj/1E3,!0);tFa(a,a.mj)};
tFa=function(a,b){b={current:b/1E3,duration:a.rA()/1E3};a.md.get().ev("onAdPlaybackProgress",b)};
wFa=function(a){RK.call(this,a.fp,a.slot,a.Qf,a.Pa,a.yb,a.Ta,a.Ia,a.zc,a.md,a.Mb,a.Dq,a.uo,a.Pq,a.Ty,a.Ba,a.qs,a.Ug)};
SK=function(a){RK.call(this,a.fp,a.slot,a.Qf,a.Pa,a.yb,a.Ta,a.Ia,a.zc,a.md,a.Mb,a.Dq,a.uo,a.Pq,a.Ty,a.Ba,a.qs,a.Ug)};
TK=function(){SK.apply(this,arguments)};
xFa=function(a){return PK(a.slot,a.Ba.get())?new TK(a):new wFa(a)};
WK=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C,F,G,K,N){IK.call(this,a,b,c,d,e,l,m,p,r,u,w,A,C,F,G,N);var R=this;this.lf=f;this.kd=h;this.Qc=n;this.md=q;this.ag=t;this.uo=w;this.context=K;this.adCpn="";this.KW=0;this.VY=!1;this.Vz=Od(function(){vEa(JK(R));R.fp.wc(R.slot,R.layout)});
this.Uz=Od(function(){xEa(JK(R));R.lc!=="rendering_stop_requested"&&R.uo(R);R.MO()});
this.kf()||(this.RK=new g.Dv(function(){R.dL("load_timeout",new gI("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4),a=UK(this.Ba.get()),F=VK(F.get()),a&&F&&(this.rB=new g.Dv(function(){var da=jI(c.Ca,"metadata_type_preload_player_vars");
da&&R.kd.get().J.preloadVideoByPlayerVars(da,2,300)})))};
zFa=function(a,b){var c=jI(b.Ca,"metadata_type_ad_video_id"),d=jI(b.Ca,"metadata_type_legacy_info_card_vast_extension");c&&d&&a.ag.get().J.U().Oa.add(c,{WI:d});(b=jI(b.Ca,"metadata_type_sodar_extension_data"))&&HCa(a.lf.get(),b);yFa(a.Ia.get(),!1)};
AFa=function(a){yFa(a.Ia.get(),!0);var b;((b=a.shrunkenPlayerBytesConfig)==null?0:b.shouldRequestShrunkenPlayerBytes)&&a.Ia.get().uC(!1)};
XK=function(a){WK.call(this,a.callback,a.slot,a.Qf,a.Pa,a.yb,a.lf,a.kd,a.Ta,a.Ia,a.Qc,a.zc,a.md,a.Mb,a.ag,a.Dq,a.uo,a.Pq,a.Ty,a.Ba,a.qs,a.context,a.Ug)};
YK=function(){XK.apply(this,arguments)};
BFa=function(a){return xFa(Object.assign({},a,{fp:a.callback,Dq:function(){}}))};
CFa=function(a){return new WK(a.callback,a.slot,a.Qf,a.Pa,a.yb,a.lf,a.kd,a.Ta,a.Ia,a.Qc,a.zc,a.md,a.Mb,a.ag,function(b){a.md.get().ev("onAdIntroStateChange",b)},a.uo,a.Pq,a.Ty,a.Ba,a.qs,a.context,a.Ug)};
DFa=function(a){function b(c){a.md.get().UG(c)}
return PK(a.slot,a.Ba.get())?new YK(Object.assign({},a,{Dq:b})):new WK(a.callback,a.slot,a.Qf,a.Pa,a.yb,a.lf,a.kd,a.Ta,a.Ia,a.Qc,a.zc,a.md,a.Mb,a.ag,b,a.uo,a.Pq,a.Ty,a.Ba,a.qs,a.context,a.Ug)};
EFa=function(a){for(var b=a.Qf,c=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],d=g.v(jJ()),e=d.next();!e.done;e=d.next())c.push(e.value);if(qJ(b,{Md:c,Je:["LAYOUT_TYPE_MEDIA_BREAK"]}))return BFa(a);b=a.Qf;c=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];d=g.v(jJ());for(e=d.next();!e.done;e=d.next())c.push(e.value);if(qJ(b,{Md:c,Je:["LAYOUT_TYPE_MEDIA"]}))return dI(a.Qf.Ca,"metadata_type_ad_intro")?CFa(a):DFa(a)};
GFa=function(a){var b=jI(a.Ca,"metadata_type_ad_placement_config").kind,c=jI(a.Ca,"metadata_type_linked_in_player_layout_type");return{cpn:a.layoutId,adType:FFa(c),adBreakType:NK(b)}};
NK=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"}};
FFa=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"}};
IFa=function(a){try{return new HFa(a)}catch(b){}};
ZK=function(a,b,c,d,e,f,h,l,m,n,p){g.I.call(this);this.Fv=a;this.slot=b;this.layout=c;this.Yd=d;this.hf=e;this.Ta=f;this.Gc=h;this.kd=l;this.vc=m;this.Ia=n;this.oh=!0;a=EFa(p);if(!a)throw Error("Invalid params for sublayout");this.Kd=a};
HFa=function(a){ZK.call(this,a.Fv,a.slot,a.layout,a.Yd,a.hf,a.Ta,a.Gc,a.kd,a.vc,a.Ia,a.Hea);this.params=a};
JFa=function(){this.j=1;this.B=new qEa};
$K=function(a,b,c,d,e,f,h,l,m,n,p,q,r){g.I.call(this);this.callback=a;this.Ta=b;this.Gc=c;this.kd=d;this.Ia=e;this.zc=f;this.Oq=h;this.slot=l;this.layout=m;this.Yd=n;this.wi=p;this.vc=q;this.Ba=r;this.oh=!0;this.sx=!1;this.Jg=[];this.zz=-1;this.FQ=!1;this.Lw=new JFa};
KFa=function(a){var b;return(b=a.layout.Py)!=null?b:jI(a.layout.Ca,"metadata_type_sub_layouts")};
aL=function(a){return{Nf:a.Ta.get(),hs:!1,Do:a.kf()}};
LFa=function(a,b,c){if(a.rk()===a.Jg.length-1){var d,e;wF("Unexpected skip requested during the last sublayout",(d=a.Ef())==null?void 0:d.dc(),(e=a.Ef())==null?void 0:e.bb(),{requestingSlot:b,requestingLayout:c})}};
MFa=function(a,b,c){return c.layoutId!==bL(a,b,c)?(wF("onSkipRequested for a PlayerBytes layout that is not currently active",a.dc(),a.bb()),!1):!0};
NFa=function(a){a.rk()===a.Jg.length-1&&wF("Unexpected skip with target requested during the last sublayout")};
OFa=function(a,b,c){return c.renderingContent===void 0&&c.layoutId!==bL(a,b,c)?(wF("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",a.dc(),a.bb(),{requestingSlot:b,requestingLayout:c}),!1):!0};
PFa=function(a,b,c,d){var e=jI(b.bb().Ca,"metadata_type_ad_pod_skip_target");if(e&&e>0&&e<a.Jg.length){a:{for(var f=e;f<a.Jg.length;){if(e===jI(a.Jg[f].bb().Ca,"metadata_type_ad_pod_skip_index")){a=f;break a}f++}a=void 0}if(a===void 0)wF("Skip-to-index was requested but target index was not found",b.dc(),b.bb(),{requestingSlot:c,requestingLayout:d});else return a}else wF("Invalid ad pod skip target index",b.dc(),b.bb(),{requestingSlot:c,requestingLayout:d})};
bL=function(a,b,c){var d=jI(a.bb().Ca,"metadata_type_linked_in_player_layout_id");return d?d:(wF("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.dc(),a.bb(),{requestingSlot:b,requestingLayout:c}),null)};
SFa=function(a,b,c,d){QFa(a,b,c,"skipped",function(){RFa(a,d)})};
QFa=function(a,b,c,d,e){if(!a.FQ){var f=a.Ef();if(f){f.bb().layoutId!==c.layoutId&&wF("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.bb().layoutId});a.FQ=!0;f.Jd(f.bb(),d);f=Object.assign({},aL(a),{layoutId:c.layoutId,layoutExitReason:d});var h=f.layoutId,l=f.layoutExitReason;if(f.Do){var m={};EJ(f.Nf,"wrsx",(m.xc=h,m.ler=l,m.ctp=DJ(h),m))}a.NO(b,c,d);a.FQ=!1;a.jZ?(a.jZ(),a.kf()||TFa(a.zc.get())):e()}else wF("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",
b,c)}};
RFa=function(a,b){if(a.rk()===a.Jg.length-1)a.zz++,cL(a.wi,a.layout,"normal"),a.kf()||TFa(a.zc.get());else a:{if(a.rk()===-1&&(a.callback.wc(a.slot,a.layout),b>0)){wF("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});break a}a.zz=b;b=a.Ef();if(a.rk()>0&&!a.kf()){var c=a.zc.get();c.B=!1;var d={};c.j&&c.videoId&&(d.cttAuthInfo={token:c.j,videoId:c.videoId});QG("ad_to_ad",d)}a.OT(b)}};
UFa=function(a){$K.call(this,a.Fv,a.Ta,a.Gc,a.kd,a.Ia,a.zc,a.Oq,a.slot,a.layout,a.Yd,a.wi,a.vc,a.Ba)};
dL=function(a){$K.call(this,a.Fv,a.Ta,a.Gc,a.kd,a.Ia,a.zc,a.Oq,a.slot,a.layout,a.Yd,a.wi,a.vc,a.Ba)};
VFa=function(){dL.apply(this,arguments);this.Gh=void 0};
WFa=function(a,b,c){b.mA().currentState<2&&(c=sFa(c),b.Jd(b.bb(),c));c=b.mA().j;a.NO(a.slot,b.bb(),c)};
XFa=function(a,b){a.Lw.j===2&&b!==a.jg()&&wF("onClipEntered: unknown cpn",a.slot,a.layout,{cpn:b})};
YFa=function(a,b){var c=a.Ef();c?(c.Jd(c.bb(),b),b=a.rk()+1,b>=0&&b<a.Jg.length?(b=a.Jg[b].bb().layoutId,a.Gc.get().finishSegmentByCpn(c.bb().layoutId,b)):b===a.Jg.length?cL(a.wi,a.layout,"normal"):wF("unexpected index",a.slot,a.layout,{index:b})):wF("exitActiveLayoutAndPlayNext: no active adapter",a.slot,a.layout)};
ZFa=function(a,b){wF(b+": undefined adapter",a.slot,a.layout)};
$Fa=function(a){return PK(a.slot,a.Ba.get())?new VFa(a):new UFa(a)};
aGa=function(a,b,c,d,e,f,h){g.I.call(this);this.callback=a;this.kd=b;this.Ia=c;this.zc=d;this.Kd=e;this.vc=f;this.Ba=h;this.oh=!0;this.sx=!1};
bGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C,F,G,K,N){function R(){var ha=EFa(Object.assign({},qa,{callback:{wc:a.wc.bind(a),Nc:a.Nc.bind(a),gC:function(){},
wf:a.wf.bind(a)},slot:c,Qf:d,uo:function(){cL(h,d,"normal")},
Pq:0,Ty:1,qs:!0}));return ha?new aGa(a,p,r,u,ha,e,F):ha}
function da(){var ha=Object.assign({},qa,{callback:{wc:function(){},
Nc:function(){},
gC:function(){return void cL(h,d,"normal")},
wf:function(){}},
slot:c,Qf:d,uo:function(){},
Pq:0,Ty:1,qs:!0});return IFa({Fv:a,slot:c,layout:d,Yd:f,hf:h,Ta:q,Gc:G,kd:p,vc:e,Ia:r,Hea:ha,context:K})}
function oa(){var ha,ta=(ha=d.Py)!=null?ha:jI(d.Ca,"metadata_type_sub_layouts");ha=$Fa({Fv:a,Ta:q,Gc:G,kd:p,Ia:r,zc:u,Oq:b,slot:c,layout:d,Yd:f,wi:h,vc:e,Ba:F});for(var P=[],ua={nx:0};ua.nx<ta.length;ua={nx:ua.nx},ua.nx++){var y=EFa(Object.assign({},qa,{callback:{wc:ha.t0.bind(ha),Nc:ha.v0.bind(ha),gC:ha.gC.bind(ha),wf:ha.u0.bind(ha)},slot:c,Qf:ta[ua.nx],uo:function(Z){return function(cb){cb.Jd(ta[Z.nx],"normal")}}(ua),
Pq:ua.nx,Ty:ta.length,qs:!1}));if(!y)return;P.push(y)}ha.Jg=P;return ha}
var qa={Pa:l,yb:m,lf:n,kd:p,Ta:q,Ia:r,Qc:t,zc:u,md:w,Mb:A,ag:C,Ba:F,context:K,Ug:N};l=qJ(d,{Md:["metadata_type_sub_layouts"],Je:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||d.Py!==void 0&&d.layoutType==="LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES";m=PK(c,F.get())&&qJ(d,{Md:[],Je:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});n=qJ(d,{Md:[],Je:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]});if(l)return oa();if(m)return da();if(n)return R()};
eL=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Ta=d;this.Gc=e;this.Bf=f;this.Ia=h;this.fb=l;this.Pa=m;this.D=n;this.driftRecoveryMs=jI(this.layout.Ca,"metadata_type_drift_recovery_ms")||null};
dGa=function(a){var b=jI(a.layout.Ca,"metadata_type_layout_enter_ms"),c=jI(a.layout.Ca,"metadata_type_layout_exit_ms");a=a.Bf.get();b=cGa(a.C,b,c);return Math.min(c,b!==null?b:Infinity)};
eGa=function(a,b){var c;fL(a.Pa.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(c=a.Ta.get().Ow)==null?void 0:c.clientPlaybackNonce,adClientData:a.layout.Xb.adClientDataEntry},b)})};
fGa=function(a,b,c,d,e,f,h,l,m,n,p){eL.call(this,a,b,c,d,e,f,h,l,m,n);this.C=p;this.B=this.j=null;a=g.v(this.C);for(b=a.next();!b.done;b=a.next())b=b.value,dI(b.bb().Ca,"metadata_type_survey_overlay")&&(this.B=b.bb().layoutId)};
hGa=function(a,b){var c=gGa(a,b);c||wF("Expected subLRA found by layout ID",a.slot,a.layout,{layoutId:b});a.j={xm:c};c?c.startRendering(c.bb()):b===a.B&&wF("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
gGa=function(a,b){return b==null?null:a.C.find(function(c){return c.bb().layoutId===b})||null};
iGa=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=dI(b.Ca,"metadata_type_survey_overlay"),r,t=((r=jI(a.Ca,"metadata_type_fulfilled_layout"))==null?void 0:jI(r.Ca,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.wF(c,t,2,f,d,e,a.slotId),gL(n,"ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.cE(c,t,2,f,d,e,a.slotId);gL(n,"ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return wF("Unexpected failure to add to playback timeline",
a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&wF("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):wF("Invalid timeline playback ID");d+f>e&&h.VH(p,e-d);return p};
jGa=function(a,b){var c=jI(b.Ca,"metadata_type_sodar_extension_data");if(c)try{HCa(0,c)}catch(d){wF("Unexpected error when loading Sodar",a,b,{error:d})}};
lGa=function(a,b,c,d,e,f){kGa(a,b,new g.xF(c,new g.AK),d,e,!1,f)};
kGa=function(a,b,c,d,e,f,h){f=f===void 0?!0:f;zJ(c)&&AJ(e,0,null)&&(!mJ(a,"impression")&&h&&h(),a.Zb("impression"));mJ(a,"impression")&&(g.AF(c,4)&&!g.AF(c,2)&&a.Th("pause"),zF(c,4)<0&&!(zF(c,2)<0)&&a.Th("resume"),g.AF(c,16)&&e>=.5&&a.Th("seek"),f&&g.AF(c,2)&&mGa(a,c.state,b,d,e))};
mGa=function(a,b,c,d,e,f,h){if(mJ(a,"impression")){var l=Math.abs(d-e)<=1;nGa(a,b,l?d:e,c,d,f,h&&l);l&&a.Zb("complete")}};
nGa=function(a,b,c,d,e,f,h){lJ(a,c*1E3,h);e<=0||c<=0||(b==null?0:g.yF(b,16))||(b==null?0:g.yF(b,32))||(AJ(c,e*.25,d)&&(f&&!mJ(a,"first_quartile")&&f("first"),a.Zb("first_quartile")),AJ(c,e*.5,d)&&(f&&!mJ(a,"midpoint")&&f("second"),a.Zb("midpoint")),AJ(c,e*.75,d)&&(f&&!mJ(a,"third_quartile")&&f("third"),a.Zb("third_quartile")))};
oGa=function(a,b){mJ(a,"impression")&&a.Th(b?"fullscreen":"end_fullscreen")};
pGa=function(a){mJ(a,"impression")&&a.Th("clickthrough")};
qGa=function(a){a.Th("active_view_measurable")};
rGa=function(a){mJ(a,"impression")&&!mJ(a,"seek")&&a.Th("active_view_fully_viewable_audible_half_duration")};
sGa=function(a){mJ(a,"impression")&&!mJ(a,"seek")&&a.Th("active_view_viewable")};
tGa=function(a){mJ(a,"impression")&&!mJ(a,"seek")&&a.Th("audio_audible")};
uGa=function(a){mJ(a,"impression")&&!mJ(a,"seek")&&a.Th("audio_measurable")};
vGa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Gc=d;this.fb=e;this.Ia=f;this.Vs=h;this.yb=l;this.lf=m;this.Ba=n;this.Pa=p;this.Ta=q;this.xK=!0;this.qd=this.lc=null;this.adCpn=void 0};
wGa=function(a,b,c){var d;gL(a.Pa.get(),"ads_qua","cpn."+jI(a.layout.Ca,"metadata_type_content_cpn")+";acpn."+((d=a.Ta.get().Fe(2))==null?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
xGa=function(a,b){var c,d;gL(a.Pa.get(),"ads_imp","cpn."+jI(a.layout.Ca,"metadata_type_content_cpn")+";acpn."+((c=a.Ta.get().Fe(2))==null?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.V((d=jI(a.layout.Ca,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:d.skipOrPreviewRenderer,hL))};
yGa=function(a){return{enterMs:jI(a.Ca,"metadata_type_layout_enter_ms"),exitMs:jI(a.Ca,"metadata_type_layout_exit_ms")}};
zGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){eL.call(this,a,b,c,d,e,h,l,m,n,q);this.Vs=f;this.lf=p;this.yb=r;this.Ba=t;this.qd=this.lc=null};
AGa=function(a,b){var c;gL(a.Pa.get(),"ads_imp","acpn."+((c=a.Ta.get().Fe(2))==null?void 0:c.clientPlaybackNonce)+";clr."+b)};
BGa=function(a,b,c){var d;gL(a.Pa.get(),"ads_qua","cpn."+jI(a.layout.Ca,"metadata_type_content_cpn")+";acpn."+((d=a.Ta.get().Fe(2))==null?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
CGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C,F,G,K){this.vc=a;this.Yd=b;this.wi=c;this.Ta=d;this.Gc=e;this.Ia=f;this.Pa=h;this.Vs=l;this.Bf=m;this.yb=n;this.lf=p;this.kd=q;this.Qc=r;this.zc=t;this.md=u;this.Mb=w;this.ag=A;this.Ba=C;this.j=F;this.context=G;this.Ug=K};
iL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C){this.vc=a;this.Yd=b;this.wi=c;this.Pa=d;this.yb=e;this.lf=f;this.kd=h;this.Ta=l;this.Ia=m;this.Qc=n;this.zc=p;this.md=q;this.Mb=r;this.ag=t;this.Ba=u;this.Gc=w;this.context=A;this.Ug=C};
DGa=function(a,b,c,d){FE.call(this,"survey-interstitial",a,b,c,d)};
jL=function(a,b,c,d,e){bJ.call(this,c,a,b,d);this.Pa=e;a=jI(b.Ca,"metadata_type_ad_placement_config");this.fb=new iJ(b.Db,e,a,b.layoutId)};
kL=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
FGa=function(a,b,c){c=c===void 0?EGa:c;c.width<EGa.width&&(c=EGa);if(a.width<c.width||a.height<c.height)return{UM:3,YH:501,errorMessage:"ad("+kL(c)+") larger than container("+kL(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{UM:3,YH:501,errorMessage:"ad("+kL(c)+") to container("+kL(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{UM:3,YH:501,errorMessage:"ad("+kL(c)+") covers container("+kL(a)+") center."}};
GGa=function(a,b){var c=jI(a.Ca,"metadata_type_ad_placement_config");return new iJ(a.Db,b,c,a.layoutId)};
lL=function(a){return jI(a.Ca,"metadata_type_invideo_overlay_ad_renderer")};
HGa=function(a,b,c,d){FE.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d};
mL=function(a,b,c,d,e,f,h,l,m,n,p,q){bJ.call(this,f,a,b,e);this.Pa=c;this.D=h;this.Ia=l;this.Mb=m;this.Ba=n;this.K=p;this.G=q;this.fb=GGa(b,c)};
IGa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];jJ().forEach(function(b){a.push(b)});
return{Md:a,Je:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
nL=function(a,b,c,d,e,f,h,l,m,n,p,q,r){bJ.call(this,f,a,b,e);this.Pa=c;this.D=h;this.Z=l;this.Ia=m;this.Mb=n;this.Ba=p;this.K=q;this.G=r;this.fb=GGa(b,c)};
JGa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.v(jJ()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Md:a,Je:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
oL=function(a){this.Ia=a;this.j=!1};
KGa=function(a,b,c){FE.call(this,"survey",a,{},b,c)};
LGa=function(a,b,c,d,e,f,h){bJ.call(this,c,a,b,d);this.D=e;this.Ia=f;this.Ba=h};
MGa=function(a,b,c,d,e,f,h,l,m,n){this.Dc=a;this.Ia=b;this.Pa=c;this.D=d;this.yb=e;this.B=f;this.C=h;this.Mb=l;this.Ba=m;this.j=n};
NGa=function(a,b,c,d,e,f,h,l,m,n){this.Dc=a;this.Ia=b;this.Pa=c;this.D=d;this.yb=e;this.B=f;this.C=h;this.Mb=l;this.Ba=m;this.j=n};
pL=function(a,b,c,d,e,f,h,l,m,n){uJ.call(this,a,b,c,d,e,f,h,m);this.In=l;this.Ta=n};
OGa=function(){var a=hEa();a.Md.push("metadata_type_ad_info_ad_metadata");return a};
PGa=function(a,b,c,d,e,f,h){this.Dc=a;this.Ia=b;this.Pa=c;this.B=d;this.In=e;this.j=f;this.Ta=h};
QGa=function(a,b,c,d,e,f,h,l){this.Dc=a;this.Ia=b;this.Pa=c;this.B=d;this.In=e;this.j=f;this.Ba=h;this.Ta=l};
qL=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)};
rL=function(a,b){this.adPodIndex=a;this.j=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};
sL=function(a,b,c){this.Iv=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=c||a(this.triggerType)};
tL=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=c||a(this.triggerType)};
uL=function(a,b,c,d){this.Iv=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=d||a(this.triggerType)};
RGa=function(a){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=a(this.triggerType)};
vL=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)};
wL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
xL=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)};
SGa=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 hI("Invalid layout exit reason: "+
a)}};
yL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
TGa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
UGa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
VGa=function(a){this.triggerId=a;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
WGa=function(a,b,c,d,e){this.Iv=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)};
zL=function(a,b,c,d,e){this.Iv=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=e||a(this.triggerType)};
XGa=function(a,b,c){this.Iv=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
AL=function(a,b,c,d,e){this.j=b;this.slotType=c;this.layoutType=d;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=e||a(this.triggerType)};
YGa=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)};
BL=function(a,b,c){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=c||a(this.triggerType)};
CL=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=c||a(this.triggerType)};
JCa=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)};
ZGa=function(a,b){this.ping=a;this.index=b};
$Ga=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
aHa=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)};
bHa=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
cHa=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)};
DL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=c||a(this.triggerType)};
EL=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
FL=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
GL=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
HL=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
IL=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=c||a(this.triggerType)};
JL=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
KL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=c||a(this.triggerType)};
LL=function(a,b,c,d){this.durationMs=b;this.triggeringLayoutId=c;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=d||a(this.triggerType)};
ML=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
NL=function(a){return(a==null?void 0:a.layoutId)!=null&&(a==null?void 0:a.layoutType)!=null};
gHa=function(a){if(!NL(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.V(a,OL)||g.V(a,PL)||g.V(a,QL)||g.V(a,dHa)||g.V(a,eHa)||g.V(a,fHa)?!0:!1};
hHa=function(a){return(a==null?void 0:a.durationMs)!=null&&(a==null?void 0:a.durationMs)>0};
iHa=function(a){return!!(a.o$&&a.slot&&a.layout)};
jHa=function(a){var b,c=(b=a.config)==null?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||c.kind==null||!a)};
kHa=function(a){if(!NL(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.V(a,xJ)||g.V(a,wJ)||g.V(a,lEa)?!0:!1};
RL=function(a){return a.playerVars!==void 0&&a.pings!==void 0&&a.externalVideoId!==void 0};
WL=function(a){if(!NL(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.V(a,lHa);return b?mHa(b):(b=g.V(a,SL))?RL(b):(b=g.V(a,TL))?b.playerVars!==void 0:(b=g.V(a,xJ))?b.durationMilliseconds!==void 0:g.V(a,UL)||g.V(a,VL)?!0:!1};
mHa=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.V(b,nHa)});
return a.length>0&&a.every(WL)};
rHa=function(a){if(!NL(a.adLayoutMetadata))return!1;if(g.V(a.renderingContent,oHa))return!0;a=g.V(a.renderingContent,XL);return g.V(a==null?void 0:a.sidePanel,pHa)||g.V(a==null?void 0:a.sidePanel,qHa)?!0:!1};
wHa=function(a){var b=a.adSlotMetadata;if((b==null?void 0:b.slotId)===void 0||(b==null?void 0:b.slotType)===void 0||!(sHa(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var c;a=(c=a.fulfillmentContent)==null?void 0:c.fulfilledLayout;return(c=g.V(a,nHa))?WL(c):(c=g.V(a,YL))?rHa(c):(c=g.V(a,tHa))?kHa(c):(c=g.V(a,uHa))?gHa(c):(a=g.V(a,vHa))?NL(a.adLayoutMetadata)?g.V(a.renderingContent,OL)?!0:!1:!1:!1};
sHa=function(a){var b;a=g.V((b=a.fulfillmentContent)==null?void 0:b.fulfilledLayout,YL);var c;return a&&((c=a.adLayoutMetadata)==null?void 0:c.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&a.layoutExitNormalTriggers===void 0};
yHa=function(a,b){var c;if((c=a.questions)==null||!c.length||!a.playbackCommands||(b===void 0||!b)&&a.questions.length!==1)return!1;a=g.v(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=((c=g.V(b,ZL))==null?void 0:c.surveyAdQuestionCommon)||((d=g.V(b,$L))==null?void 0:d.surveyAdQuestionCommon);if(!xHa(e))return!1}return!0};
zHa=function(a){a=((a==null?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;if(a)if(a.playbackCommands&&a.questions&&a.questions.length===1){var c,d=((b=g.V(a.questions[0],ZL))==null?void 0:b.surveyAdQuestionCommon)||((c=g.V(a.questions[0],$L))==null?void 0:c.surveyAdQuestionCommon);b=xHa(d)}else b=!1;else b=!1;return b};
xHa=function(a){if(!a)return!1;a=g.V(a.instreamAdPlayerOverlay,AHa);var b=g.V(a==null?void 0:a.skipOrPreviewRenderer,hL),c=g.V(a==null?void 0:a.adInfoRenderer,aM);return(g.V(a==null?void 0:a.skipOrPreviewRenderer,bM)||b)&&c?!0:!1};
BHa=function(a){return a.linearAds!=null&&NL(a.adLayoutMetadata)};
CHa=function(a){return a.linearAd!=null&&a.adVideoStart!=null};
DHa=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.V(a.ctaButton,g.cM)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.V(a.backgroundImage,dM)&&((b=g.V(a.backgroundImage,dM))==null?0:b.landscape)?!0:!1};
eM=function(a,b,c,d,e,f,h){g.I.call(this);this.Ba=a;this.j=b;this.C=d;this.Ta=e;this.D=f;this.B=h};
GHa=function(a,b,c){var d,e=((d=c.adSlots)!=null?d:[]).map(function(f){return g.V(f,fM)});
c.FC?jI(b.Ca,"metadata_type_allow_pause_ad_break_request_slot_reschedule")?ZI(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId):(a.Ba.get().J.U().L("h5_check_forecasting_renderer_for_throttled_midroll")?(d=c.zw.filter(function(f){var h;
return((h=f.renderer)==null?void 0:h.clientForecastingAdRenderer)!=null}),d.length!==0?EHa(a.B,d,e,b.slotId,c.ssdaiAdsConfig):ZI(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)):ZI(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),FHa(a.D,b)):EHa(a.B,c.zw,e,b.slotId,c.ssdaiAdsConfig)};
IHa=function(a,b,c,d,e,f){var h=a.Ta.get().Fe(1);ZI(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return HHa(a.C.get(),c,d,e,h.clientPlaybackNonce,h.Mp,h.daiEnabled,h,f)},b)};
LHa=function(a,b,c,d,e,f,h){b=JHa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof hI?b:KHa(a,d,e,b,c);return a instanceof hI?a:[a]};
MHa=function(a,b,c,d,e){var f=$I(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new UH({getAdBreakUrl:d.getAdBreakUrl,LS:0,KS:0}),new UBa(!0)];a=b.pauseDurationMs?b.lactThresholdMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new IL(a.j,f),slotFulfillmentTriggers:[new RGa(a.j)],slotExpirationTriggers:[new CL(a.j,e),new FL(a.j,f)],Za:"core",Ca:new iI(d),adSlotLoggingData:c}:new hI("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new hI("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
return a instanceof hI?a:[a]};
NHa=function(a){var b,c;return((b=a.renderer)==null?void 0:(c=b.adBreakServiceRenderer)==null?void 0:c.getAdBreakUrl)!==void 0};
gM=function(a,b,c){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new sL(fI,b,a.id):new hI("Not able to create BeforeContentVideoIdStartedTrigger");else{if(a.layoutIdExitedTrigger){var d;b=(d=a.layoutIdExitedTrigger)!=null&&d.triggeringLayoutId?new yL(fI,a.layoutIdExitedTrigger.triggeringLayoutId,a.id):new hI("Not able to create LayoutIdExitedTrigger")}else{if(a.layoutExitedForReasonTrigger){var e,f;((e=a.layoutExitedForReasonTrigger)==null?0:e.triggeringLayoutId)&&
((f=a.layoutExitedForReasonTrigger)==null?0:f.layoutExitReason)?(b=SGa(a.layoutExitedForReasonTrigger.layoutExitReason),a=b instanceof hI?b:new xL(fI,a.layoutExitedForReasonTrigger.triggeringLayoutId,[b],a.id)):a=new hI("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger){var h;b=(h=a.onLayoutSelfExitRequestedTrigger)!=null&&h.triggeringLayoutId?new BL(fI,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new hI("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a=
a.onNewPlaybackAfterContentVideoIdTrigger?new CL(fI,b,a.id):new hI("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(a.skipRequestedTrigger){var l;b=(l=a.skipRequestedTrigger)!=null&&l.triggeringLayoutId?new DL(fI,a.skipRequestedTrigger.triggeringLayoutId,a.id):new hI("Not able to create SkipRequestedTrigger")}else if(a.slotIdEnteredTrigger){var m;b=(m=a.slotIdEnteredTrigger)!=null&&m.triggeringSlotId?new EL(fI,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new hI("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var n;
b=(n=a.slotIdExitedTrigger)!=null&&n.triggeringSlotId?new FL(fI,a.slotIdExitedTrigger.triggeringSlotId,a.id):new hI("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var p;b=(p=a.surveySubmittedTrigger)!=null&&p.triggeringLayoutId?new KL(fI,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new hI("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new VGa(a.id):new hI("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var q;
b=(q=a.closeRequestedTrigger)!=null&&q.triggeringLayoutId?new tL(fI,a.closeRequestedTrigger.triggeringLayoutId,a.id):new hI("Not able to create CloseRequestedTrigger")}else if(a.slotIdScheduledTrigger){var r;b=(r=a.slotIdScheduledTrigger)!=null&&r.triggeringSlotId?new IL(fI,a.slotIdScheduledTrigger.triggeringSlotId,a.id):new hI("Not able to create SlotIdScheduledTrigger")}else{if(a.mediaTimeRangeTrigger){var t;d=Number((t=a.mediaTimeRangeTrigger)==null?void 0:t.offsetStartMilliseconds);var u;h=Number((u=
a.mediaTimeRangeTrigger)==null?void 0:u.offsetEndMilliseconds);isFinite(d)&&isFinite(h)?(u=h,u===-1&&(u=c),c=d>u?new hI("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:u},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",u===c&&d-500<=u):new Yv(d,u),a=c instanceof hI?c:new zL(fI,b,c,!1,a.id)):a=new hI("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new uL(fI,b,!1,a.id):new hI("Not able to create ContentVideoIdEndedTrigger");
else{if(a.layoutIdEnteredTrigger){var w;b=(w=a.layoutIdEnteredTrigger)!=null&&w.triggeringLayoutId?new wL(fI,a.layoutIdEnteredTrigger.triggeringLayoutId,a.id):new hI("Not able to create LayoutIdEnteredTrigger")}else if(a.timeRelativeToLayoutEnterTrigger){var A;b=(A=a.timeRelativeToLayoutEnterTrigger)!=null&&A.triggeringLayoutId?new LL(fI,Number(a.timeRelativeToLayoutEnterTrigger.durationMs),a.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,a.id):new hI("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(a.onDifferentLayoutIdEnteredTrigger){var C;
b=(C=a.onDifferentLayoutIdEnteredTrigger)!=null&&C.triggeringLayoutId&&a.onDifferentLayoutIdEnteredTrigger.slotType&&a.onDifferentLayoutIdEnteredTrigger.layoutType?new AL(fI,a.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,a.onDifferentLayoutIdEnteredTrigger.slotType,a.onDifferentLayoutIdEnteredTrigger.layoutType,a.id):new hI("Not able to create CloseRequestedTrigger")}else b=new hI("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};
PHa=function(a,b,c,d,e,f,h,l){return b===null?new hI("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[OHa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new iI([new mH(d),new qH(e)]);n=NI(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Za:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Db:new Map,
layoutExitNormalTriggers:[new CL(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"core",Ca:q,Xb:m(r),adLayoutLoggingData:p}})]};
QHa=function(a,b,c,d,e,f,h,l){return b===null?new hI("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:b,TopBannerImageTextIconButtonedLayoutViewModel:d}):[OHa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new iI([new nH(d),new qH(e)]);n=NI(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Za:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
Db:new Map,layoutExitNormalTriggers:[new CL(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"core",Ca:q,Xb:m(r),adLayoutLoggingData:p}})]};
UHa=function(a,b,c,d,e,f){if(!f)for(b=g.v(b),f=b.next();!f.done;f=b.next())f=f.value,hM(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return RHa(p)});
b=[];f=g.v(a);for(var h=f.next(),l={};!h.done;l={Hw:void 0},h=f.next()){l.Hw=h.value;h=g.v(l.Hw.YN);for(var m=h.next(),n={};!m.done;n={Jn:void 0},m=h.next())n.Jn=m.value,m=function(p,q){return function(r){return p.Jn.UO(r,q.Hw.instreamVideoAdRenderer.elementId,p.Jn.XN)}}(n,l),n.Jn.isContentVideoCompanion?b.push(SHa(c,d,e,l.Hw.instreamVideoAdRenderer.elementId,n.Jn.associatedCompositePlayerBytesLayoutId,n.Jn.adSlotLoggingData,m)):a.length>1?b.push(THa(c,d,e,l.Hw.instreamVideoAdRenderer.elementId,n.Jn.adSlotLoggingData,
function(p,q){return function(r){return p.Jn.UO(r,q.Hw.instreamVideoAdRenderer.elementId,p.Jn.XN,p.Jn.associatedCompositePlayerBytesLayoutId)}}(n,l))):b.push(THa(c,d,e,l.Hw.instreamVideoAdRenderer.elementId,n.Jn.adSlotLoggingData,m))}return b};
hM=function(a,b,c){if(b=VHa(b)){b=g.v(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=WHa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.yF=c)}else wF("InstreamVideoAdRenderer without externalVideoId")}};
VHa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.V(a.sandwichedLinearAdRenderer.linearAd,SL);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.v(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.V(c,SL)&&b.push(g.V(c,SL));return b}return null};
RHa=function(a){if(a.instreamVideoAdRenderer===void 0)return wF("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.v(a.YN),c=b.next();!c.done;c=b.next()){c=c.value;if(c.UO===void 0)return!1;if(c.XN===void 0)return wF("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(a.yF===void 0||c.BI===void 0||a.yF!==c.BI&&c.BI!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(a.instreamVideoAdRenderer.elementId===void 0)return wF("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.yF,"matching APSR kind":c.BI}),!1}return!0};
WHa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,yF:void 0,adVideoId:b,YN:[]});return a.get(b)};
iM=function(a,b,c,d,e,f,h,l,m){e?WHa(a,e).YN.push({spb:b,BI:c,isContentVideoCompanion:d,XN:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,UO:m}):wF("Companion AdPlacementSupportedRenderer without adVideoId")};
XHa=function(a){var b,c=(b=jI(a.Ca,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!c)return null;b=jI(a.Ca,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=jI(a.Ca,"metadata_type_content_cpn"),f=jI(a.Ca,"metadata_type_instream_ad_player_overlay_renderer"),h=jI(a.Ca,"metadata_type_player_underlay_renderer"),l=jI(a.Ca,"metadata_type_ad_placement_config"),m=jI(a.Ca,"metadata_type_video_length_seconds");var n=dI(a.Ca,"metadata_type_layout_enter_ms")&&dI(a.Ca,
"metadata_type_layout_exit_ms")?(jI(a.Ca,"metadata_type_layout_exit_ms")-jI(a.Ca,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Rq:d,contentCpn:e,AS:c,ZN:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,QK:n,inPlayerLayoutId:jI(a.Ca,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:jI(a.Ca,"metadata_type_linked_in_player_slot_id")}};
$Ha=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u){d=$I(d,"SLOT_TYPE_PLAYER_BYTES");a=YHa(e,a,h,c,d,m,n);if(a instanceof hI)return a;var w;n=(w=jI(a.Ca,"metadata_type_fulfilled_layout"))==null?void 0:w.layoutId;if(!n)return new hI("Invalid adNotify layout");b=ZHa(n,e,f,c,l,b,m,p,q,r,t,u,h);return b instanceof hI?b:[a].concat(g.ra(b))};
ZHa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=aIa(b,c,d,f,h,l,m,n,p,q,r);if(c instanceof hI)return c;a=bIa(b,a,h,e,c);return a instanceof hI?a:[].concat(g.ra(a.vg),[a.qy])};
dIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=aIa(a,b,c,e,f,l,m,n,p,q,r,t);if(b instanceof hI)return b;a=cIa(a,c,f,h,d,l.hc,b);return a instanceof hI?a:a.vg.concat(a.qy)};
aIa=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=jM(d,c,n);return r instanceof gI?new hI(r):n.J.U().experiments.gb("html5_refactor_in_player_slot_generation")?function(t){var u=new rL(0,[r.Ep]);t=eIa(b,r.layoutId,r.ip,c,kM(r.playerVars,r.bC,f,m,u),r.Ep,e,u,h(t),l.get(r.ip.externalVideoId),q);u=[];if(r.ip.playerOverlay.instreamAdPlayerOverlayRenderer){var w=XHa(t);if(!w)return wF("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,vg:[]};
u=[fIa(a,w.contentCpn,w.Rq,function(C){return lM(b,C.slotId,"core",w,nI(p,C))},w.inPlayerSlotId)].concat(g.ra(u));
if(w.instreamAdPlayerUnderlayRenderer&&gIa(n)){var A=w.instreamAdPlayerUnderlayRenderer;u=[hIa(a,w.contentCpn,w.Rq,function(C){return iIa(b,C.slotId,A,w.adPlacementConfig,w.Rq,nI(p,C))})].concat(g.ra(u))}}return{layout:t,
vg:u}}:function(t){var u=new rL(0,[r.Ep]);
return{layout:eIa(b,r.layoutId,r.ip,c,kM(r.playerVars,r.bC,f,m,u),r.Ep,e,u,h(t),l.get(r.ip.externalVideoId),q),vg:[]}}};
jM=function(a,b,c){if(!a.playerVars)return new gI("No playerVars available in InstreamVideoAdRenderer.");var d,e;if(a.elementId==null||a.playerVars==null||a.playerOverlay==null||((d=a.playerOverlay)==null?void 0:d.instreamAdPlayerOverlayRenderer)==null&&((e=a.playerOverlay)==null?void 0:e.playerOverlayLayoutRenderer)==null||a.pings==null||a.externalVideoId==null)return new gI("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});d=rA(a.playerVars);e=Number(d.length_seconds);
isNaN(e)&&(e=0,wF("Expected valid length seconds in player vars but got NaN"));if(c.kf(b.kind==="AD_PLACEMENT_KIND_START")){if(a.layoutId===void 0)return new gI("Expected server generated layout ID in instreamVideoAdRenderer");b=a.layoutId}else b=a.elementId;return{layoutId:b,ip:a,playerVars:d,bC:a.playerVars,Ep:e}};
kM=function(a,b,c,d,e){a.iv_load_policy=d;b=rA(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){wF(f)}c.hj&&(a.ctrl=c.hj);c.Nj&&(a.ytr=c.Nj);c.Kw&&(a.ytrcc=c.Kw);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.An&&(a.vss_credentials_token_type=c.An),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));e.j>=2&&(a.slot_pos=e.adPodIndex);a.autoplay="1";return a};
jIa=function(a){var b=new Map;a=g.v(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};
kIa=function(a){return a.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"};
oIa=function(a,b,c,d,e,f,h,l,m,n,p){for(var q=[],r=g.v(a),t=r.next();!t.done;t=r.next()){t=t.value;var u;if(u=!sHa(t)){var w=void 0;u=(t==null?void 0:(w=t.adSlotMetadata)==null?void 0:w.slotType)!=="SLOT_TYPE_IN_PLAYER"}if(u){w=kIa(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger;var A=m.kf(w),C=lIa(t,n,d,c.Mp,A);if(C instanceof hI)return C;var F=void 0;u={slotId:t.adSlotMetadata.slotId,slotType:t.adSlotMetadata.slotType,slotPhysicalPosition:(F=t.adSlotMetadata.slotPhysicalPosition)!=null?
F:1,Za:"core",slotEntryTrigger:C.slotEntryTrigger,slotFulfillmentTriggers:C.slotFulfillmentTriggers,slotExpirationTriggers:C.slotExpirationTriggers};if(C=g.V(t.fulfillmentContent.fulfilledLayout,nHa)){if(!WL(C))return new hI("Invalid PlayerBytesAdLayoutRenderer");A=mIa(u,t.adSlotMetadata.triggerEvent,C,b,c,d,e,f,h,l,m,n,a,p,A);if(A instanceof hI)return A;C=[];kIa(t)&&C.push(new cI({Bu:kIa(t)&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));c.hc&&C.push(new $H({}));C.push(new bI(w));t=Object.assign({},
u,{Ca:new iI(C),fulfilledLayout:A.layout,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push.apply(q,g.ra(A.vg));q.push(t)}else if(w=g.V(t.fulfillmentContent.fulfilledLayout,YL),C=A=void 0,((A=w)==null?void 0:(C=A.adLayoutMetadata)==null?void 0:C.layoutType)!=="LAYOUT_TYPE_PANEL_QR_CODE"||t.slotEntryTrigger!==void 0)if(w){if(!rHa(w))return new hI("Invalid PlayerUnderlayAdLayoutRenderer");F=w;var G=d,K=c.Mp;C=f;A=u;w=t.adSlotMetadata.triggerEvent;if(F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE"){var N=
g.V(F.renderingContent,XL);if(N)if(N=g.V(N.sidePanel,qHa)){var R={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,Za:"core"};G=mM(F,G,K);w=G instanceof hI?G:Object.assign({},R,{renderingContent:F.renderingContent,Db:new Map([["impression",N.impressionPings||[]],["resume",N.resumePings||[]]])},G,{Xb:nI(C,A)(R),Ca:new iI([new qH(nM(w))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})}else w=new hI("DismissablePanelTextPortraitImageRenderer is missing");else w=
new hI("SqueezebackPlayerSidePanelRenderer is missing")}else F.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.V(F.renderingContent,oHa)?(N={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,Za:"core"},G=mM(F,G,K),w=G instanceof hI?G:Object.assign({},N,{renderingContent:F.renderingContent,Db:new Map},G,{Xb:nI(C,A)(N),Ca:new iI([new qH(nM(w))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})):w=new hI("CounterfactualRenderer is missing"):F.adLayoutMetadata.layoutType===
"LAYOUT_TYPE_PANEL_QR_CODE"?(N=g.V(F.renderingContent,XL))?g.V(N.sidePanel,pHa)?(N={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,Za:"core"},G=mM(F,G,K),w=G instanceof hI?G:Object.assign({},N,{renderingContent:F.renderingContent,Db:new Map},G,{Xb:nI(C,A)(N),Ca:new iI([new qH(nM(w))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})):w=new hI("QrCodeRenderer is missing"):w=new hI("SqueezebackPlayerSidePanelRenderer is missing"):w=new hI("LayoutType ["+F.adLayoutMetadata.layoutType+
"] is invalid for PlayerUnderlaySlot");if(w instanceof hI)return w;t=Object.assign({},u,{Ca:new iI([]),fulfilledLayout:w,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else if(w=g.V(t.fulfillmentContent.fulfilledLayout,uHa)){if(!gHa(w))return new hI("Invalid AboveFeedAdLayoutRenderer");w=nIa(w,d,c.Mp,f,u,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(w instanceof hI)return w;t=Object.assign({},u,{Ca:new iI([]),fulfilledLayout:w,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});
q.push(t)}else if(w=g.V(t.fulfillmentContent.fulfilledLayout,vHa)){if(!NL(w.adLayoutMetadata)||!g.V(w.renderingContent,OL))return new hI("Invalid BelowPlayerAdLayoutRenderer");w=nIa(w,d,c.Mp,f,u,t.adSlotMetadata.triggerEvent,t.adSlotMetadata.triggeringSourceLayoutId);if(w instanceof hI)return w;t=Object.assign({},u,{Ca:new iI([]),fulfilledLayout:w,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else return new hI("Unable to retrieve a client slot ["+u.slotType+"] from a given AdSlotRenderer")}}return q};
nIa=function(a,b,c,d,e,f,h){var l={layoutId:a.adLayoutMetadata.layoutId,layoutType:a.adLayoutMetadata.layoutType,Za:"core"};b=mM(a,b,c);if(b instanceof hI)return b;c=[];c.push(new qH(nM(f)));f==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&h!==void 0&&c.push(new CH(h));return Object.assign({},l,{renderingContent:a.renderingContent,Db:new Map([["impression",pIa(a)]])},b,{Xb:nI(d,e)(l),Ca:new iI(c),adLayoutLoggingData:a.adLayoutMetadata.adLayoutLoggingData})};
mIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u){var w=mM(c,f,e.Mp);if(w instanceof hI)return w;if(g.V(c.renderingContent,SL)){m=qIa([c],e,m);if(m instanceof hI)return m;if(m.length!==1)return new hI("Only expected one media layout.");a=rIa(a,b,c,w,m[0],void 0,"core",d,f,h,l,n,r,t,u,e.Mp,q);return a instanceof hI?a:{layout:a.layout,vg:a.rf?[a.rf]:[]}}var A=g.V(c.renderingContent,lHa);if(A){if(!NL(c.adLayoutMetadata))return new hI("Invalid ad layout metadata");if(!mHa(A))return new hI("Invalid sequential layout");
A=A.sequentialLayouts.map(function(C){return C.playerBytesAdLayoutRenderer});
a=sIa(a,b,c.adLayoutMetadata,w,A,d,f,e,m,h,l,n,p,q,u,r,t);return a instanceof hI?a:{layout:a.U7,vg:a.vg}}return new hI("Not able to convert a sequential layout")};
sIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A){var C=new uH({current:null}),F=qIa(e,l,m);if(F instanceof hI)return F;m=[];for(var G=[],K=void 0,N=0;N<e.length;N++){var R=e[N];if(g.V(R.renderingContent,SL)){K=rIa(a,b,R,tIa,F[N],UK(r)&&VK(r)?F[N+1]:void 0,"adapter",f,h,n,p,q,w,A,u,l.Mp,t,C);if(K instanceof hI)return K;m.push(K.layout);K.rf&&G.push(K.rf);K=F[N]}else if(g.V(R.renderingContent,TL)){var da=a,oa=p;if(WL(R)){var qa=g.V(R.renderingContent,TL);if(qa&&qa.playerVars!==void 0){var ha={layoutId:R.adLayoutMetadata.layoutId,
layoutType:R.adLayoutMetadata.layoutType,Za:"adapter"};qa=rA(qa.playerVars);qa.autoplay="1";R=Object.assign({},ha,tIa,{renderingContent:R.renderingContent,Ca:new iI([new RH({}),new qH({kind:"AD_PLACEMENT_KIND_START"}),new GH({current:null}),new KH(qa)]),Db:new Map,Xb:nI(oa,da)(ha),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData})}else R=new hI("Invalid ad intro renderer")}else R=new hI("Invalid PlayerBytesAdLayoutRenderer");if(R instanceof hI)return R;m.push(R)}else if(g.V(R.renderingContent,
xJ))if(A){R=uIa(a,R,p,nM(b),K);if(R instanceof hI)return R;m.push(R);R=vIa(w,R,h,l.Mp,p,t,u,C);if(R instanceof hI)return R;if(R)G.push(R);else return new hI("Not able to retrieve InPlayer slot for endcap")}else{a:{da=R.adLayoutMetadata.layoutId;oa=g.v(f);for(ha=oa.next();!ha.done;ha=oa.next()){ha=ha.value;var ta=qa=void 0,P=((qa=ha.renderer)==null?void 0:(ta=qa.linearAdSequenceRenderer)==null?void 0:ta.linearAds)||[];qa=g.v(P);for(ta=qa.next();!ta.done;ta=qa.next())if((ta=g.V(ta.value,xJ))&&ta.inPlayerSlotId!==
void 0&&ta.inPlayerLayoutId!==void 0&&ta.associatedPlayerBytesLayoutId!==void 0&&ta.associatedPlayerBytesLayoutId===da){da={vJ:ta,adPlacementConfig:ha.config.adPlacementConfig};break a}}da=new hI("Not able to find associated InPlayer slot for endcap")}if(da instanceof hI)return da;R=uIa(a,R,p,da.adPlacementConfig,K);if(R instanceof hI)return R;m.push(R);R=wIa(R.layoutId,t,h,da,C,p);if(R instanceof hI)return R;G.push(R)}}b={layoutId:c.layoutId,layoutType:c.layoutType,Za:"core"};return{U7:Object.assign({},
b,d,{Py:m,Db:new Map,Ca:new iI([C]),Xb:nI(p,a)(b)}),vg:G}};
rIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C){if(!WL(c))return new hI("Invalid PlayerBytesAdLayoutRenderer");var F=g.V(c.renderingContent,SL);(F==null?0:F.pings)?F=hJ(F.pings):(F=g.V(c.renderingContent,xJ),F=(F==null?0:F.skipPings)?new Map([["skip",F.skipPings]]):new Map);if(F instanceof hI)return F;h={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,Za:h};a:{var G=c.adLayoutMetadata.layoutId,K=g.V(c.renderingContent,SL);if(K&&RL(K)){var N=[];if(t)N.push(new qH(nM(b)));
else{b:{l=g.v(l);for(b=l.next();!b.done;b=l.next()){b=b.value;var R=VHa(b.renderer)||[],da=g.v(R);for(R=da.next();!R.done;R=da.next())if(R=R.value,R.associatedPlayerBytesLayoutId===G){R.associatedPlayerBytesLayoutId?(l=R.playerOverlay,da=l!==void 0&&l.playerOverlayLayoutRenderer!==void 0&&l.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&l.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,l=l!==void 0&&l.instreamAdPlayerOverlayRenderer!==void 0&&l.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==
void 0&&l.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||da):l=!1;b=l?{instreamVideoAdRenderer:R,adPlacementConfig:b.config.adPlacementConfig}:new hI("Invalid InPlayer shim");break b}}b=new hI("Not able to find associated InPlayer slot")}if(b instanceof hI){f=b;break a}l=b.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;R=b.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var oa;da=(oa=l==null?void 0:l.inPlayerSlotId)!=null?oa:R==null?void 0:R.inPlayerSlotId;
var qa;oa=(qa=l==null?void 0:l.inPlayerLayoutId)!=null?qa:R==null?void 0:R.inPlayerLayoutId;if(da===void 0){f=new hI("InPlayer shim slot id is undefined");break a}if(oa===void 0){f=new hI("InPlayer shim layout id is undefined");break a}N.push(new DH(oa),new FH(da),new PH(e.Aw.adPodIndex),new qH(b.adPlacementConfig));l&&N.push(new xH(l));R&&N.push(new yH(R))}N.push(new rH(e.Aw),new vH(K.externalVideoId),new wH(m),new ZH({impressionCommands:K.impressionCommands,abandonCommands:K.onAbandonCommands,completeCommands:K.completeCommands,
progressCommands:K.adVideoProgressCommands}),new KH(e.fE),new GH({current:null}),new JH(e.hda.Ep),new aI(gJ(K.pings)),new sH(e.Aw.adPodIndex));(e=xIa(G,r))&&N.push(new AH(e));f&&N.push(new LH(f.fE));K.adNextParams&&N.push(new oH(K.adNextParams));K.clickthroughEndpoint&&N.push(new pH(K.clickthroughEndpoint));K.legacyInfoCardVastExtension&&N.push(new YH(K.legacyInfoCardVastExtension));K.sodarExtensionData&&N.push(new MH(K.sodarExtensionData));C&&K.adPodSkipTarget&&K.adPodSkipTarget>0&&(N.push(C),N.push(new tH(K.adPodSkipTarget)));
(f=n.get(K.externalVideoId))&&N.push(new VH(f));f=N}else f=new hI("Invalid vod media renderer")}if(f instanceof hI)return f;a=Object.assign({},h,d,{Db:F,renderingContent:c.renderingContent,Ca:new iI(f),Xb:nI(p,a)(h),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});c=g.V(c.renderingContent,SL);if(!c||!RL(c))return new hI("Invalid meida renderer");q=WHa(q,c.externalVideoId);q.instreamVideoAdRenderer=c;q.yF="AD_PLACEMENT_KIND_START";return t?(m=vIa(r,a,m,w,p,A,u,C),m instanceof hI?m:xIa(a.layoutId,
r)&&m?{layout:Object.assign({},a,{Ca:new iI(f.concat(new GBa(m)))})}:{layout:a,rf:m}):{layout:a}};
uIa=function(a,b,c,d,e){if(!WL(b))return new hI("Invalid PlayerBytesAdLayoutRenderer");var f=g.V(b.renderingContent,xJ);if(!f||f.durationMilliseconds===void 0)return new hI("Invalid endcap renderer");var h={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,Za:"adapter"};d=[new XH(f.durationMilliseconds),new ZH({impressionCommands:void 0,abandonCommands:f.abandonCommands?[{commandExecutorCommand:f.abandonCommands}]:void 0,completeCommands:f.completionCommands}),new qH(d),
new EH("LAYOUT_TYPE_ENDCAP")];if(e){d.push(new sH(e.Aw.adPodIndex-1));d.push(new PH(e.Aw.adPodIndex));var l;d.push(new tH((l=e.adPodSkipTarget)!=null?l:-1))}return Object.assign({},h,tIa,{renderingContent:b.renderingContent,Ca:new iI(d),Db:f.skipPings?new Map([["skip",f.skipPings]]):new Map,Xb:nI(c,a)(h),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData})};
vIa=function(a,b,c,d,e,f,h,l){a=a.filter(function(n){return n.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&n.adSlotMetadata.triggeringSourceLayoutId===b.layoutId});
if(a.length!==0){if(a.length!==1)return new hI("Invalid InPlayer slot association for the given PlayerBytes layout");a=a[0];h=lIa(a,f,c,d,h);if(h instanceof hI)return h;var m;f={slotId:a.adSlotMetadata.slotId,slotType:a.adSlotMetadata.slotType,slotPhysicalPosition:(m=a.adSlotMetadata.slotPhysicalPosition)!=null?m:1,Za:"core",slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers};m=g.V(a.fulfillmentContent.fulfilledLayout,
tHa);if(!m||!kHa(m))return new hI("Invalid InPlayerAdLayoutRenderer");h={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,Za:"core"};c=mM(m,c,d);if(c instanceof hI)return c;d=[];if(m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")d.push.apply(d,g.ra(yIa(a.adSlotMetadata.triggerEvent,b)));else if(m.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")d.push(new qH(nM(a.adSlotMetadata.triggerEvent))),l&&d.push(l);else return new hI("Not able to parse an SDF InPlayer layout");
e=Object.assign({},h,c,{renderingContent:m.renderingContent,Db:new Map,Xb:nI(e,f)(h),Ca:new iI(d),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},f,{fulfilledLayout:e,Ca:new iI([])})}};
yIa=function(a,b){var c=[];c.push(new qH(nM(a)));c.push(new CH(b.layoutId));(a=jI(b.Ca,"metadata_type_player_bytes_callback_ref"))&&c.push(new GH(a));(a=jI(b.Ca,"metadata_type_ad_pod_skip_target_callback_ref"))&&c.push(new uH(a));(a=jI(b.Ca,"metadata_type_remote_slots_data"))&&c.push(new VH(a));(a=jI(b.Ca,"metadata_type_ad_next_params"))&&c.push(new oH(a));(a=jI(b.Ca,"metadata_type_ad_video_clickthrough_endpoint"))&&c.push(new pH(a));(a=jI(b.Ca,"metadata_type_ad_pod_info"))&&c.push(new rH(a));(b=
jI(b.Ca,"metadata_type_ad_video_id"))&&c.push(new vH(b));return c};
wIa=function(a,b,c,d,e,f){function h(n){return oM(b,n)}
var l=d.vJ.inPlayerSlotId,m={layoutId:d.vJ.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Za:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:new wL(h,a),slotFulfillmentTriggers:[new EL(h,l)],slotExpirationTriggers:[new FL(h,l),new CL(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new yL(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Db:new Map,Ca:new iI([new BH(d.vJ),new qH(d.adPlacementConfig),
e]),Xb:nI(f,c)(m),adLayoutLoggingData:d.vJ.adLayoutLoggingData});return Object.assign({},c,{Ca:new iI([new TH(a)])})};
xIa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var d=g.V(c.fulfillmentContent.fulfilledLayout,YL);if(d&&(d=g.V(d.renderingContent,XL))&&d.associatedPlayerBytesLayoutId===a)return c}};
lIa=function(a,b,c,d,e){var f=zIa(gM(a.slotEntryTrigger,c,d),e,a,b);if(f instanceof hI)return f;for(var h=[],l=g.v(a.slotFulfillmentTriggers),m=l.next();!m.done;m=l.next()){m=gM(m.value,c,d);if(m instanceof hI)return m;h.push(m)}h=AIa(h,e,a,b);b=[];a=g.v(a.slotExpirationTriggers);for(e=a.next();!e.done;e=a.next()){e=gM(e.value,c,d);if(e instanceof hI)return e;b.push(e)}return{slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b}};
zIa=function(a,b,c,d){return b&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&a instanceof sL?new qL(function(e){return oM(d,e)},c.adSlotMetadata.slotId):a};
AIa=function(a,b,c,d){return b&&c.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?a.map(function(e){return e instanceof EL?new IL(function(f){return oM(d,f)},c.adSlotMetadata.slotId):e}):a};
mM=function(a,b,c){for(var d=[],e=g.v(a.layoutExitNormalTriggers||[]),f=e.next();!f.done;f=e.next()){f=gM(f.value,b,c);if(f instanceof hI)return f;d.push(f)}e=[];f=g.v(a.layoutExitSkipTriggers||[]);for(var h=f.next();!h.done;h=f.next()){h=gM(h.value,b,c);if(h instanceof hI)return h;e.push(h)}f=[];h=g.v(a.layoutExitMuteTriggers||[]);for(var l=h.next();!l.done;l=h.next()){l=gM(l.value,b,c);if(l instanceof hI)return l;f.push(l)}h=[];a=g.v(a.layoutExitUserInputSubmittedTriggers||[]);for(l=a.next();!l.done;l=
a.next()){l=gM(l.value,b,c);if(l instanceof hI)return l;h.push(l)}return{layoutExitNormalTriggers:d,layoutExitSkipTriggers:e,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:h,Xc:[]}};
qIa=function(a,b,c){for(var d=[],e=g.v(a),f=e.next();!f.done;f=e.next())if(f=g.V(f.value.renderingContent,SL)){if(!RL(f))return new hI("Invalid vod media renderer");d.push(BIa(f))}e=d.map(function(q){return q.Ep});
f=[];for(var h=0,l=0;l<a.length;l++){var m=g.V(a[l].renderingContent,SL);if(m){var n=new rL(h,e),p=kM(d[h].playerVars,d[h].bC,b,c,n);f[l]={Aw:n,adPodSkipTarget:m.adPodSkipTarget,hda:d[h],fE:p};h++}}return f};
BIa=function(a){var b=rA(a.playerVars),c=Number(b.length_seconds);isNaN(c)&&(c=0,wF("Expected valid length seconds in player vars but got NaN"));return{playerVars:b,bC:a.playerVars,Ep:c}};
nM=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"}}};
pIa=function(a){if(g.V(a.renderingContent,QL)){var b;return((b=g.V(a.renderingContent,QL))==null?void 0:b.impressionPings)||[]}if(g.V(a.renderingContent,OL)){var c;return((c=g.V(a.renderingContent,OL))==null?void 0:c.impressionPings)||[]}if(g.V(a.renderingContent,PL)){var d;return((d=g.V(a.renderingContent,PL))==null?void 0:d.impressionPings)||[]}return[]};
CIa=function(a){var b=0;a=g.v(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=g.V(c,ZL)||g.V(c,$L)){var d=void 0;b+=((d=c.surveyAdQuestionCommon)==null?void 0:d.durationMilliseconds)||0}return b};
DIa=function(a){var b,c,d,e,f=((c=g.V((b=a.questions)==null?void 0:b[0],ZL))==null?void 0:c.surveyAdQuestionCommon)||((e=g.V((d=a.questions)==null?void 0:d[0],$L))==null?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.ra(((h=a.playbackCommands)==null?void 0:h.instreamAdCompleteCommands)||[]),g.ra((f==null?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,r,t,u,w,A,C,F,G,K,N,R,da,oa,qa,ha;return{impressionCommands:(l=a.playbackCommands)==null?void 0:l.impressionCommands,errorCommands:(m=a.playbackCommands)==
null?void 0:m.errorCommands,muteCommands:(n=a.playbackCommands)==null?void 0:n.muteCommands,unmuteCommands:(p=a.playbackCommands)==null?void 0:p.unmuteCommands,pauseCommands:(q=a.playbackCommands)==null?void 0:q.pauseCommands,rewindCommands:(r=a.playbackCommands)==null?void 0:r.rewindCommands,resumeCommands:(t=a.playbackCommands)==null?void 0:t.resumeCommands,skipCommands:(u=a.playbackCommands)==null?void 0:u.skipCommands,progressCommands:(w=a.playbackCommands)==null?void 0:w.progressCommands,Jpb:(A=
a.playbackCommands)==null?void 0:A.clickthroughCommands,fullscreenCommands:(C=a.playbackCommands)==null?void 0:C.fullscreenCommands,activeViewViewableCommands:(F=a.playbackCommands)==null?void 0:F.activeViewViewableCommands,activeViewMeasurableCommands:(G=a.playbackCommands)==null?void 0:G.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(K=a.playbackCommands)==null?void 0:K.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(N=a.playbackCommands)==
null?void 0:(R=N.activeViewTracking)==null?void 0:R.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(da=a.playbackCommands)==null?void 0:(oa=da.activeViewTracking)==null?void 0:oa.activeViewAudioMeasurableCommands,endFullscreenCommands:(qa=a.playbackCommands)==null?void 0:qa.endFullscreenCommands,abandonCommands:(ha=a.playbackCommands)==null?void 0:ha.abandonCommands,completeCommands:b}};
GIa=function(a,b,c,d,e,f,h){return function(l,m){return EIa(a,m.slotId,l,f,function(n,p){var q=m.layoutId;n=h(n);return FIa(b,q,p,e,n,"LAYOUT_TYPE_SURVEY",[new KBa(c),d],c.adLayoutLoggingData)})}};
JIa=function(a,b,c,d,e,f,h){if(!HIa(a))return new hI("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[IIa(f,b,c,d,function(m){var n=m.slotId;m=h(m);n=NI(e.B.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Za:"core"},q=new yL(e.j,d);return{layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Db:new Map,layoutExitNormalTriggers:[q],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"core",Ca:new iI([new LBa(l)]),Xb:m(p)}})]};
HIa=function(a){a=g.V(a==null?void 0:a.additionalPlayerOverlay,KIa);if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&b.length!==0?!0:!1};
MIa=function(a,b,c,d,e){var f;if((f=a.playerOverlay)==null||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!zHa(a))return function(){return new hI("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=CIa(h);return l<=0?function(){return new hI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=LIa(m,c,d,function(q){var r=q.slotId;
q=n(q);var t=DIa(h);r=NI(e.B.get(),"LAYOUT_TYPE_SURVEY",r);var u={layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Za:"core"},w=new yL(e.j,d),A=new DL(e.j,r),C=new KL(e.j,r),F=new $Ga(e.j);return{layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Db:new Map,layoutExitNormalTriggers:[w,F],layoutExitSkipTriggers:[A],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[C],Xc:[],Za:"core",Ca:new iI([new JBa(h),new qH(b),new WH(l/1E3),new ZH(t)]),Xb:q(u),adLayoutLoggingData:h.adLayoutLoggingData}});
m=JIa(a,c,p.slotId,d,e,m,n);return m instanceof hI?m:[p].concat(g.ra(m))}};
UIa=function(a,b,c,d,e,f,h){h=h===void 0?!1:h;var l=[];try{var m=[];if(c.renderer.linearAdSequenceRenderer)var n=function(w){w=NIa(w.slotId,c,b,e(w),d,f,h);m=w.Lea;return w.i8};
else if(c.renderer.instreamVideoAdRenderer)n=function(w){var A=w.slotId;w=e(w);var C=h,F=c.config.adPlacementConfig,G=OIa(F),K=G.OX,N=G.RX;G=c.renderer.instreamVideoAdRenderer;var R;if(G==null?0:(R=G.playerOverlay)==null?0:R.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var da=PIa(G,C);R=Math.min(K+da.videoLengthSeconds*1E3,N);C=new rL(0,[da.videoLengthSeconds]);N=da.videoLengthSeconds;var oa=da.playerVars,qa=da.instreamAdPlayerOverlayRenderer,ha=
da.playerOverlayLayoutRenderer,ta=da.adVideoId,P=QIa(c),ua=da.Db;da=da.At;var y=G==null?void 0:G.adLayoutLoggingData;G=G==null?void 0:G.sodarExtensionData;A=NI(b.B.get(),"LAYOUT_TYPE_MEDIA",A);var Z={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Za:"core"};return{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Db:ua,layoutExitNormalTriggers:[new TGa(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"core",Ca:new iI([new wH(d),new JH(N),new KH(oa),new NH(K),
new OH(R),qa&&new xH(qa),ha&&new yH(ha),new qH(F),new vH(ta),new rH(C),new SH(P),G&&new MH(G),new GH({current:null}),new QH({}),new aI(da)].filter(RIa)),Xb:w(Z),adLayoutLoggingData:y}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=SIa(a,d,c.adSlotLoggingData,n);l.push(p);for(var q=g.v(m),r=q.next();!r.done;r=q.next()){var t=r.value,u=t(a,e);if(u instanceof hI)return u;l.push.apply(l,g.ra(u))}}catch(w){return new hI(w,{errorMessage:w.message,AdPlacementRenderer:c,numberOfSurveyRenderers:TIa(c)})}return l};
TIa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return a!=null&&a.length?a.filter(function(b){var c,d;return((c=g.V(b,SL))==null?void 0:(d=c.playerOverlay)==null?void 0:d.instreamSurveyAdRenderer)!=null}).length:0};
NIa=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=OIa(l),n=m.OX,p=m.RX;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(m==null||!m.length)throw new TypeError("Expected linear ads");var q=[],r={A2:n,Pq:0,Iea:q};m=m.map(function(u){return VIa(a,u,r,c,d,l,e,p,h)}).map(function(u,w){w=new rL(w,q);
return u(w)});
var t=m.map(function(u){return u.j8});
return{i8:WIa(c,a,n,t,l,QIa(b),d,p,f),Lea:m.map(function(u){return u.Kea})}};
VIa=function(a,b,c,d,e,f,h,l,m){var n=PIa(g.V(b,SL),m),p=c.A2,q=c.Pq,r=Math.min(p+n.videoLengthSeconds*1E3,l);c.A2=r;c.Pq++;c.Iea.push(n.videoLengthSeconds);var t,u,w=(t=g.V(b,SL))==null?void 0:(u=t.playerOverlay)==null?void 0:u.instreamSurveyAdRenderer;if(n.adVideoId==="nPpU29QrbiU"&&w==null)throw new TypeError("Survey slate media has no survey overlay");return function(A){var C=n.playerVars;A.j>=2&&(C.slot_pos=A.adPodIndex);C.autoplay="1";var F,G;C=n.videoLengthSeconds;var K=n.playerVars,N=n.Db,
R=n.At,da=n.instreamAdPlayerOverlayRenderer,oa=n.playerOverlayLayoutRenderer,qa=n.adVideoId,ha=(F=g.V(b,SL))==null?void 0:F.adLayoutLoggingData;F=(G=g.V(b,SL))==null?void 0:G.sodarExtensionData;G=NI(d.B.get(),"LAYOUT_TYPE_MEDIA",a);var ta={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",Za:"adapter"};A={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",Db:N,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"adapter",Ca:new iI([new wH(h),
new JH(C),new KH(K),new NH(p),new OH(r),new PH(q),new GH({current:null}),da&&new xH(da),oa&&new yH(oa),new qH(f),new vH(qa),new rH(A),F&&new MH(F),w&&new RBa(w),new QH({}),new aI(R)].filter(RIa)),Xb:e(ta),adLayoutLoggingData:ha};C=MIa(g.V(b,SL),f,h,A.layoutId,d);return{j8:A,Kea:C}}};
PIa=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=rA(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=e.instreamAdPlayerOverlayRenderer===void 0?null:e.instreamAdPlayerOverlayRenderer;var f=a.playerOverlay||
{};f=f.playerOverlayLayoutRenderer===void 0?null:f.playerOverlayLayoutRenderer;var h=c.video_id;h||(h=(h=a.externalVideoId)?h:void 0);if(!h)throw new TypeError("Expected valid video id in IVAR");if(b&&d===0){var l;b=(l=XIa[h])!=null?l:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,playerOverlayLayoutRenderer:f,adVideoId:h,Db:a.pings?hJ(a.pings):new Map,At:gJ(a.pings)}};
QIa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||a<=0?null:a};
OIa=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{OX:b,RX:a}};
ZIa=function(a,b,c,d,e,f,h,l,m){var n=c.pings;return n?[YIa(a,f,l,e,function(p){var q=p.slotId;p=m(p);var r=c.adLayoutLoggingData;q=NI(b.B.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",q);var t={layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Za:"core"},u=hJ(n),w=[new CL(b.j,f)],A;var C=n==null?void 0:(A=n.activeViewTracking)==null?void 0:A.identifier;return{layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Db:u,layoutExitNormalTriggers:w,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],
layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"core",Ca:new iI([new qH(d),new aI(gJ(n)),new SBa(C),new JH(h/1E3)]),Xb:p(t),adLayoutLoggingData:r}})]:new hI("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})};
aJa=function(a,b,c,d,e,f,h,l){a=$Ia(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=NI(b.B.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Za:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Db:q,layoutExitNormalTriggers:[new BL(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"core",Ca:new iI([new OBa(e),new qH(c)]),Xb:m(p)}});
return a instanceof hI?a:[a]};
cJa=function(a,b,c,d,e,f,h){return[bJa(a,f,d,function(l){var m=l.slotId;l=h(l);m=NI(b.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",m);var n={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Za:"core"};return{layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Db:new Map,layoutExitNormalTriggers:[new CL(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"core",Ca:new iI([new xH(e),new qH(c)]),Xb:l(n),adLayoutLoggingData:e.adLayoutLoggingData}})]};
gJa=function(a,b,c,d,e,f,h,l){a=dJa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=NI(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=eJa(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,fJa(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=NI(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=eJa(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,fJa(b,n,p))):q.imageOverlayAdContentRenderer?(q=NI(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=fJa(b,n,p),n.push(new LL(b.j,45E3,q)),n=eJa(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new gI("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new gI("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof hI?a:[a]};
jJa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new hI("Expected valid duration for AdActionInterstitialRenderer."):function(p){return hJa(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 iJa(a,q,e,function(r,t){var u=r.slotId;r=h(r);u=NI(b.B.get(),"LAYOUT_TYPE_ENDCAP",
u);return FIa(b,u,t,c,r,"LAYOUT_TYPE_ENDCAP",[new BH(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
kJa=function(a,b,c,d){if(!c.playerVars)return new hI("No playerVars available in AdIntroRenderer.");var e=rA(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=NI(a.B.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Za:"adapter"};return{Qf:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Db:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"adapter",Ca:new iI([new RH({}),
new qH(b),new GH({current:null}),new KH(e)]),Xb:f(l)},Bm:[new xL(a.j,h,["error"])],fk:[],Sz:[],Rz:[]}}};
mJa=function(a,b,c,d,e,f,h,l,m,n){n=n===void 0?!1:n;var p=CIa(e);if(!yHa(e,n))return new hI("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(p<=0)return new hI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=GIa(a,b,e,f,c,d,h);return q instanceof hI?q:function(r){return lJa(b,r.slotId,c,p,e,DIa(e),h(r),q,l,m)}};
oJa=function(a,b,c,d,e,f,h,l){function m(q){return iJa(a,q,d,n)}
function n(q,r){var t=q.slotId;q=h(q);t=NI(b.B.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return FIa(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new IBa(e),f],e.adLayoutLoggingData)}
if(!DHa(e))return new hI("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=e.timeoutSeconds*1E3;return function(q){var r=q.slotId,t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands};q=h(q);r=nJa(b,r,c,p,t,new Map,q,m,void 0,pM(b,c,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));t=new DH(r.zL);q=new sH(l);return{Qf:{layoutId:r.layoutId,layoutType:r.layoutType,Db:r.Db,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:r.Za,Ca:new iI([].concat(g.ra(r.Oz),[t,q])),Xb:r.Xb,adLayoutLoggingData:r.adLayoutLoggingData},Bm:[],fk:r.layoutExitMuteTriggers,Sz:r.layoutExitUserInputSubmittedTriggers,Rz:r.Xc,rf:r.rf}}};
qJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w){a=$I(a,"SLOT_TYPE_PLAYER_BYTES");d=YHa(b,h,d,e,a,n,p);if(d instanceof hI)return d;var A;h=(A=jI(d.Ca,"metadata_type_fulfilled_layout"))==null?void 0:A.layoutId;if(!h)return new hI("Invalid adNotify layout");b=pJa(h,b,c,e,f,m,l,n,q,r,t,u,w);return b instanceof hI?b:[d].concat(g.ra(b))};
pJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=rJa(b,c,d,f,h,l,m,n,p,q,r);sJa(f)?(d=tJa(b,a),a=$I(b.B.get(),"SLOT_TYPE_IN_PLAYER"),f=NI(b.B.get(),"LAYOUT_TYPE_SURVEY",a),l=uJa(b,d,l),b=[].concat(g.ra(l.slotExpirationTriggers),[new tL(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,Za:l.Za},{slotId:a,layoutId:f}),e=a instanceof hI?a:{qy:Object.assign({},
l,{slotExpirationTriggers:b,Ca:new iI([new TH(a.layout)]),adSlotLoggingData:e}),vg:a.vg}):e=bIa(b,a,l,e,c);return e instanceof hI?e:[].concat(g.ra(e.vg),[e.qy])};
yJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=rJa(a,b,c,e,f,h,m,n,p,q,r,t);sJa(e)?(e=vJa(a,c,h,l),e instanceof hI?a=e:(l=$I(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=NI(a.B.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.ra(e.slotExpirationTriggers),[new tL(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,Za:e.Za,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof hI?l:
{qy:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:wJa(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:xJa(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,Za:e.Za,Ca:new iI([new bI(qM(c)),new TH(l.layout),new cI({Bu:a.Bu(c)})]),adSlotLoggingData:d},vg:l.vg})):a=cIa(a,c,h,l,d,m.hc,b);return a instanceof hI?a:a.vg.concat(a.qy)};
sJa=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(g.V(b.value,UL))return!0;return!1};
rJa=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(UK(p)&&VK(p))a:{var u=zJa(d,c,p);if(u instanceof hI)t=u;else{for(var w=0,A=[],C=[],F=[],G=[],K=[],N=[],R=new HH({current:null}),da=new uH({current:null}),oa=!1,qa=[],ha=0,ta=[],P=0;P<d.length;P++){var ua=d[P],y=g.V(ua,SL);if(y){y=jM(y,c,p);if(y instanceof gI){t=new hI(y);break a}var Z=new rL(ha,u),cb=kM(y.playerVars,y.bC,h,n,Z);ha++;ta[P]={renderer:ua,data:y,Aw:Z,fE:cb}}}ha=-1;for(u=0;u<d.length;u++)if(P=d[u],ua=g.V(P,TL)){P=kJa(b,c,ua,
l);if(P instanceof hI){t=P;break a}P=P(r);A.push(P.Qf);C=[].concat(g.ra(P.Bm),g.ra(C));F=[].concat(g.ra(P.fk),g.ra(F));P.rf&&(qa=[P.rf].concat(g.ra(qa)))}else if(g.V(P,SL))ua=ta[u],ha=ua.data,P=ua.Aw,ua=ua.fE,y=ta[u+1],Z=void 0,y&&(Z=y.fE),P=AJa(b,ha.layoutId,ha.ip,c,ua,ha.Ep,f,P,l(r),da,m.get(ha.ip.externalVideoId),Z,q),w++,A.push(P.Qf),C=[].concat(g.ra(P.Bm),g.ra(C)),F=[].concat(g.ra(P.fk),g.ra(F)),oa||(N.push(da),oa=!0),ha=(ha=ha.ip.adPodSkipTarget)&&ha>0?ha:-1;else if(ua=g.V(P,xJ)){P=jJa(a,b,
c,ua,f,w,l,da,ha);if(P instanceof hI){t=P;break a}P=P(r);A.push(P.Qf);C=[].concat(g.ra(P.Bm),g.ra(C));F=[].concat(g.ra(P.fk),g.ra(F));P.rf&&(qa=[P.rf].concat(g.ra(qa)))}else if(ua=g.V(P,UL)){if(t===void 0){t=new hI("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:ua});break a}P=mJa(a,b,c,f,ua,R,l,t,w,rM(p,"supports_multi_step_on_desktop"));if(P instanceof hI){t=P;break a}P=P(r);A.push(P.Qf);P.rf&&qa.push(P.rf);C=[].concat(g.ra(P.Bm),g.ra(C));F=
[].concat(g.ra(P.fk),g.ra(F));G=[].concat(g.ra(P.Sz),g.ra(G));K=[].concat(g.ra(P.Rz),g.ra(K));N=[R].concat(g.ra(N))}else if(P=g.V(P,VL)){P=oJa(a,b,c,f,P,R,l,w);if(P instanceof hI){t=P;break a}P=P(r);A.push(P.Qf);P.rf&&qa.push(P.rf);F=[].concat(g.ra(P.fk),g.ra(F))}else{t=new hI("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Py:A,layoutExitSkipTriggers:C,layoutExitUserInputSubmittedTriggers:G,Xc:K,layoutExitMuteTriggers:F,Oz:N,vg:qa}}}else a:if(w=zJa(d,c,p),w instanceof hI)t=
w;else{A=0;C=[];F=[];G=[];K=[];N=[];R=[];da=new HH({current:null});oa=new uH({current:null});qa=!1;ta=[];ha=-1;u=g.v(d);for(P=u.next();!P.done;P=u.next())if(P=P.value,g.V(P,TL)){P=kJa(b,c,g.V(P,TL),l);if(P instanceof hI){t=P;break a}P=P(r);C.push(P.Qf);F=[].concat(g.ra(P.Bm),g.ra(F));G=[].concat(g.ra(P.fk),g.ra(G));P.rf&&(ta=[P.rf].concat(g.ra(ta)))}else if(g.V(P,SL)){ha=jM(g.V(P,SL),c,p);if(ha instanceof gI){t=new hI(ha);break a}P=new rL(A,w);P=AJa(b,ha.layoutId,ha.ip,c,kM(ha.playerVars,ha.bC,h,
n,P),ha.Ep,f,P,l(r),oa,m.get(ha.ip.externalVideoId),void 0,q);A++;C.push(P.Qf);F=[].concat(g.ra(P.Bm),g.ra(F));G=[].concat(g.ra(P.fk),g.ra(G));qa||(R.push(oa),qa=!0);ha=(ha=ha.ip.adPodSkipTarget)&&ha>0?ha:-1}else if(g.V(P,xJ)){P=jJa(a,b,c,g.V(P,xJ),f,A,l,oa,ha);if(P instanceof hI){t=P;break a}P=P(r);C.push(P.Qf);F=[].concat(g.ra(P.Bm),g.ra(F));G=[].concat(g.ra(P.fk),g.ra(G));P.rf&&(ta=[P.rf].concat(g.ra(ta)))}else if(g.V(P,UL)){if(t===void 0){t=new hI("Composite Survey must already have a Survey Bundle with required metadata.",
{instreamSurveyAdRenderer:g.V(P,UL)});break a}P=mJa(a,b,c,f,g.V(P,UL),da,l,t,A,rM(p,"supports_multi_step_on_desktop"));if(P instanceof hI){t=P;break a}P=P(r);C.push(P.Qf);P.rf&&ta.push(P.rf);F=[].concat(g.ra(P.Bm),g.ra(F));G=[].concat(g.ra(P.fk),g.ra(G));K=[].concat(g.ra(P.Sz),g.ra(K));N=[].concat(g.ra(P.Rz),g.ra(N));R=[da].concat(g.ra(R))}else if(g.V(P,VL)){P=oJa(a,b,c,f,g.V(P,VL),da,l,A);if(P instanceof hI){t=P;break a}P=P(r);C.push(P.Qf);P.rf&&ta.push(P.rf);G=[].concat(g.ra(P.fk),g.ra(G))}else{t=
new hI("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Py:C,layoutExitSkipTriggers:F,layoutExitUserInputSubmittedTriggers:K,Xc:N,layoutExitMuteTriggers:G,Oz:R,vg:ta}}t instanceof hI?r=t:(N=r.slotId,w=t.Py,A=t.layoutExitSkipTriggers,C=t.layoutExitMuteTriggers,F=t.layoutExitUserInputSubmittedTriggers,G=t.Oz,r=l(r),K=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",N=e?e.layoutId:NI(b.B.get(),K,N),R={layoutId:N,layoutType:K,Za:"core"},r={layout:{layoutId:N,layoutType:K,Db:new Map,
layoutExitNormalTriggers:[new BL(b.j,N)],layoutExitSkipTriggers:A,layoutExitMuteTriggers:C,layoutExitUserInputSubmittedTriggers:F,Xc:[],Za:"core",Ca:new iI([new IH(w)].concat(g.ra(G))),Xb:r(R)},vg:t.vg});return r}};
zJa=function(a,b,c){var d=[];a=g.v(a);for(var e=a.next();!e.done;e=a.next())if(e=e.value,g.V(e,SL)){e=jM(g.V(e,SL),b,c);if(e instanceof gI)return new hI(e);d.push(e.Ep)}return d};
CJa=function(a,b,c,d,e,f,h,l){if(!yHa(c,l===void 0?!1:l))return new hI("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=CIa(c);if(m<=0)return new hI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new HH({current:null}),p=GIa(a,b,c,n,d,f,h);return BJa(a,d,f,m,e,function(q,r){var t=q.slotId,u=DIa(c);q=h(q);var w,A=(w=pM(b,d,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?
w:NI(b.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Za:"core"};w=p(A,r);var C=jI(w.Ca,"metadata_type_fulfilled_layout");C||wF("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");u=[new qH(d),new XH(m),new ZH(u),n];C&&u.push(new EH(C.layoutType));return{V$:{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Db:new Map,layoutExitNormalTriggers:[new BL(b.j,A)],layoutExitSkipTriggers:[new DL(b.j,r.layoutId)],
layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new KL(b.j,r.layoutId)],Xc:[],Za:"core",Ca:new iI(u),Xb:q(t)},j$:w}})};
DJa=function(a){if(!CHa(a))return!1;var b=g.V(a.adVideoStart,sM);return b?g.V(a.linearAd,SL)&&iHa(b)?!0:(wF("Invalid Sandwich with notify"),!1):!1};
EJa=function(a){if(a.linearAds==null)return!1;a=g.V(a.adStart,sM);return a?iHa(a)?!0:(wF("Invalid LASR with notify"),!1):!1};
FJa=function(a){if(!BHa(a))return!1;a=g.V(a.adStart,sM);return a?iHa(a)?!0:(wF("Invalid LASR with notify"),!1):!1};
tM=function(a,b,c,d,e,f,h,l,m){this.D=a;this.B=b;this.j=c;this.Ba=d;this.Oe=e;this.C=f;this.Ia=h;this.jk=l;this.loadPolicy=m===void 0?1:m};
HHa=function(a,b,c,d,e,f,h,l,m){var n=[];if(b.length===0&&d.length===0&&c.length===0)return n;b=b.filter(jHa);var p=c.filter(wHa),q=d.filter(jHa),r=new Map,t=jIa(b),u=c.some(function(P){var ua;return(P==null?void 0:(ua=P.adSlotMetadata)==null?void 0:ua.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),w=c.some(function(P){var ua;
return(P==null?void 0:(ua=P.adSlotMetadata)==null?void 0:ua.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),A=c.some(function(P){var ua;
return(P==null?void 0:(ua=P.adSlotMetadata)==null?void 0:ua.slotType)==="SLOT_TYPE_IN_PLAYER"});
c=c.some(function(P){var ua,y;return(P==null?void 0:(ua=P.adSlotMetadata)==null?void 0:ua.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(P==null?void 0:(y=P.adSlotMetadata)==null?void 0:y.slotType)==="SLOT_TYPE_ABOVE_FEED"});
if(u||w||A||c)c=oIa(p,b,l,e,t,a.Oe.get(),a.loadPolicy,r,a.Ba.get(),a.D.get(),A),c instanceof hI?wF(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.ra(c));c=g.v(b);for(w=c.next();!w.done;w=c.next())w=w.value,A=GJa(a,r,w,e,f,h,u,l,t,m,p),A instanceof hI?wF(A,void 0,void 0,{renderer:w.renderer,config:w.config.adPlacementConfig,kind:w.config.adPlacementConfig.kind,contentCpn:e,daiEnabled:h}):n.push.apply(n,g.ra(A));HJa(a.Ba.get())||(f=IJa(a,q,e,l,t,r),n.push.apply(n,g.ra(f)));if(a.C===null||h&&!l.AX){var C,
F,G;a=l.hc&&b.length===1&&((C=b[0].config)==null?void 0:(F=C.adPlacementConfig)==null?void 0:F.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((G=b[0].renderer)==null?void 0:G.adBreakServiceRenderer);if(!n.length&&!a){var K,N,R,da;wF("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":(K=b[0])==null?void 0:(N=K.config)==null?void 0:(R=N.adPlacementConfig)==null?void 0:R.kind,renderer:(da=b[0])==null?void 0:da.renderer})}return n}C=
d.filter(jHa);n.push.apply(n,g.ra(UHa(r,C,a.B.get(),a.C,e,u)));if(!n.length){var oa,qa,ha,ta;wF("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":(oa=b[0])==null?void 0:(qa=oa.config)==null?void 0:(ha=qa.adPlacementConfig)==null?void 0:ha.kind,renderer:(ta=b[0])==null?void 0:ta.renderer})}return n};
IJa=function(a,b,c,d,e,f){function h(r){return nI(a.Oe.get(),r)}
var l=[];b=g.v(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&&DJa(p)?(wF("Found AdNotify with SandwichedLinearAdRenderer"),q=g.V(p.adVideoStart,sM),p=g.V(p.linearAd,SL),hM(f,n,m.config.adPlacementConfig.kind),n=void 0,q=ZHa((n=q)==null?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Ba.get(),a.Oe.get()),q instanceof hI?wF(q):l.push.apply(l,g.ra(q))):
q&&(!q.adLayoutMetadata&&EJa(q)||q.adLayoutMetadata&&FJa(q))&&(wF("Found AdNotify with LinearAdSequenceRenderer"),hM(f,n,m.config.adPlacementConfig.kind),n=void 0,p=pJa((n=g.V(q.adStart,sM))==null?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,NL(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Ba.get()),p instanceof hI?wF(p):l.push.apply(l,g.ra(p)))}return l};
GJa=function(a,b,c,d,e,f,h,l,m,n,p){function q(C){return nI(a.Oe.get(),C)}
var r=c.renderer,t=c.config.adPlacementConfig,u=t.kind,w=c.adSlotLoggingData,A=l.AX&&u==="AD_PLACEMENT_KIND_START";A=f&&!A;if(r.adsEngagementPanelRenderer!=null)return iM(b,c.elementId,u,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,G,K){var N=a.j.get(),R=C.slotId,da=r.adsEngagementPanelRenderer;C=nI(a.Oe.get(),C);return uM(N,R,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new yBa(da),F,G,da.impressionPings,C,r.adsEngagementPanelRenderer.adLayoutLoggingData,K)}),[];
if(r.adsEngagementPanelLayoutViewModel)return iM(b,c.elementId,u,r.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,r.adsEngagementPanelLayoutViewModel.adVideoId,r.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,G,K){var N=a.j.get(),R=C.slotId,da=r.adsEngagementPanelLayoutViewModel;C=nI(a.Oe.get(),C);return JJa(N,R,"LAYOUT_TYPE_PANEL",new zBa(da),F,G,C,r.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,K)}),[];
if(r.actionCompanionAdRenderer!=null){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return PHa(a.B.get(),a.C,a.j.get(),r.actionCompanionAdRenderer,t,w,d,q);iM(b,c.elementId,u,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,G,K){var N=a.j.get(),R=C.slotId,da=r.actionCompanionAdRenderer;C=nI(a.Oe.get(),C);return uM(N,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new mH(da),F,G,da.impressionPings,C,r.actionCompanionAdRenderer.adLayoutLoggingData,K)})}else if(r.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return QHa(a.B.get(),a.C,a.j.get(),r.topBannerImageTextIconButtonedLayoutViewModel,t,w,d,q);
iM(b,c.elementId,u,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,G,K){var N=a.j.get(),R=C.slotId,da=r.topBannerImageTextIconButtonedLayoutViewModel;C=nI(a.Oe.get(),C);return JJa(N,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new nH(da),F,G,C,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,K)})}else if(r.imageCompanionAdRenderer)iM(b,
c.elementId,u,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,G,K){var N=a.j.get(),R=C.slotId,da=r.imageCompanionAdRenderer;
C=nI(a.Oe.get(),C);return uM(N,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new BBa(da),F,G,da.impressionPings,C,r.imageCompanionAdRenderer.adLayoutLoggingData,K)});
else if(r.bannerImageLayoutViewModel)iM(b,c.elementId,u,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,G,K){var N=a.j.get(),R=C.slotId,da=r.bannerImageLayoutViewModel;C=nI(a.Oe.get(),C);return JJa(N,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new CBa(da),F,G,C,r.bannerImageLayoutViewModel.adLayoutLoggingData,K)});
else if(r.shoppingCompanionCarouselRenderer)iM(b,c.elementId,u,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,G,K){var N=a.j.get(),R=C.slotId,da=r.shoppingCompanionCarouselRenderer;C=nI(a.Oe.get(),C);return uM(N,R,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new DBa(da),F,G,da.impressionPings,C,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,K)});
else if(r.adBreakServiceRenderer){if(!NHa(c))return[];if(u==="AD_PLACEMENT_KIND_PAUSE")return MHa(a.B.get(),t,w,c.renderer.adBreakServiceRenderer,d);if(u!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&u!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return LHa(a.B.get(),t,w,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.jk)return new hI("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.hc||wF("Received non-live cue point triggered AdBreakServiceRenderer",
void 0,void 0,{kind:u,adPlacementConfig:t,daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.hc),clientPlaybackNonce:l.clientPlaybackNonce});KJa(a.jk,{adPlacementRenderer:c,contentCpn:d,Mp:e});if(u==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!a.Ia)return new hI("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no playerControlsApiProvider set for interface");e=a.Ia.get().getCurrentTimeSec(1,!1);return LJa(a.B.get(),c.renderer.adBreakServiceRenderer,t,e,d,w,f)}}else{if(r.clientForecastingAdRenderer)return aJa(a.B.get(),
a.j.get(),t,w,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return gJa(a.B.get(),a.j.get(),t,w,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return cJa(a.B.get(),a.j.get(),t,w,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer||r.instreamVideoAdRenderer)&&A)return UIa(a.B.get(),a.j.get(),c,d,q,n,!a.Ba.get().J.U().L("html5_override_ad_video_length_killswitch"));if(r.linearAdSequenceRenderer&&!A){if(h)return[];hM(b,r,u);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!BHa(r.linearAdSequenceRenderer))return new hI("Received invalid LinearAdSequenceRenderer.")}else if(r.linearAdSequenceRenderer.linearAds==
null)return new hI("Received invalid LinearAdSequenceRenderer.");if(g.V(r.linearAdSequenceRenderer.adStart,sM)){wF("Found AdNotify in LinearAdSequenceRenderer");c=g.V(r.linearAdSequenceRenderer.adStart,sM);if(!hHa(c))return new hI("Invalid AdMessageRenderer.");f=r.linearAdSequenceRenderer.linearAds;return qJa(a.D.get(),a.B.get(),a.j.get(),a.Oe.get(),t,w,c,NL(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,f,d,e,l,q,m,a.loadPolicy,a.Ba.get())}return yJa(a.B.get(),
a.j.get(),t,w,r.linearAdSequenceRenderer.linearAds,NL(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,d,e,l,q,m,a.loadPolicy,a.Ba.get(),p)}if(!r.remoteSlotsRenderer||f){if(r.instreamVideoAdRenderer&&!A){if(h)return[];hM(b,r,u);return dIa(a.B.get(),a.j.get(),t,w,r.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.Ba.get(),a.Oe.get(),p)}if(r.instreamSurveyAdRenderer)return CJa(a.B.get(),a.j.get(),r.instreamSurveyAdRenderer,t,w,d,q,rM(a.Ba.get(),"supports_multi_step_on_desktop"));
if(r.sandwichedLinearAdRenderer!=null)return CHa(r.sandwichedLinearAdRenderer)?g.V(r.sandwichedLinearAdRenderer.adVideoStart,sM)?(wF("Found AdNotify in SandwichedLinearAdRenderer"),c=g.V(r.sandwichedLinearAdRenderer.adVideoStart,sM),hHa(c)?(f=g.V(r.sandwichedLinearAdRenderer.linearAd,SL))?$Ha(c,f,t,a.D.get(),a.B.get(),a.j.get(),a.Oe.get(),w,d,e,l,q,m,a.loadPolicy,a.Ba.get()):new hI("Missing IVAR from Sandwich"):new hI("Invalid AdMessageRenderer.")):yJa(a.B.get(),a.j.get(),t,w,[r.sandwichedLinearAdRenderer.adVideoStart,
r.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.Ba.get()):new hI("Received invalid SandwichedLinearAdRenderer.");if(r.videoAdTrackingRenderer!=null)return l=rM(a.Ba.get(),"enable_h5_shorts_ad_terminal_events")&&l.xk,ZIa(a.B.get(),a.j.get(),r.videoAdTrackingRenderer,t,w,d,e,l,q)}}return[]};
vM=function(a,b,c,d,e,f,h,l){g.I.call(this);var m=this;this.B=a;this.C=b;this.Bf=d;this.Ia=e;this.Ba=f;this.Pa=h;this.Gc=l;this.j=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Na()||c.get().removeListener(m)});
d.get().addListener(this);this.addOnDisposeCallback(function(){d.Na()||d.get().removeListener(m)})};
KJa=function(a,b){if(a.j)wF("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.v(a.Bf.get().GM);for(var c=b.next();!c.done;c=b.next())MJa(a,a.j,c.value)}};
MJa=function(a,b,c){var d=a.Ia.get().getCurrentTimeSec(1,!1);a.Ba.get().J.U().yc()&&gL(a.Pa.get(),"sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.Hh.toFixed(3));ZI(a.B.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var e=a.C.get(),f=b.adPlacementRenderer.renderer.adBreakServiceRenderer,h=b.contentCpn,l=b.adPlacementRenderer.adSlotLoggingData,m=wM(a.Ba.get()),n=a.Pa;if(e.Ba.get().J.U().experiments.gb("enable_smearing_expansion_dai")){var p=g.oI(e.Ba.get().J.U().experiments,
"max_prefetch_window_sec_for_livestream_optimization");var q=g.oI(e.Ba.get().J.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={fn:NJa(c),aC:!1,cueProcessedMs:d*1E3};var r=c.startSecs+c.Hh;if(d===0)m.Tn=new Yv(0,r*1E3);else{q=c.startSecs-q;var t=q-d;m.Tn=t<=0?new Yv(q*1E3,r*1E3):new Yv(Math.floor(d+Math.random()*Math.min(t,p))*1E3,r*1E3)}p=m}else p={fn:NJa(c),aC:!1},r=c.startSecs+c.Hh,c.startSecs<=d?m=new Yv((c.startSecs-4)*1E3,r*1E3):(q=Math.max(0,c.startSecs-d-10),m=new Yv(Math.floor(d+
Math.random()*(m?d===0?0:Math.min(q,5):q))*1E3,r*1E3)),p.Tn=m;f=KHa(e,f,h,p,l,[new NBa(c)]);e.Ba.get().J.U().experiments.gb("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.Tn.start/1E3-d,n=c.startSecs-d,(h=h.J.Wc())!=null&&(h=h.uc(),h.qoe&&(h=h.qoe,h.provider.X.L("html5_add_dai_smearing_to_qoe")&&(l=g.xM(h.provider)*1E3,p=h.j.daism||[],p.push("t."+l.toFixed(0)+";smw."+(e*1E3).toFixed(0)+";smo."+(n*1E3).toFixed(0)),h.j.daism=p)))):gL(n.get(),"daism","ct."+Date.now()+";cmt."+d+";smw."+(p.Tn.start/1E3-
d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})};
OJa=function(a){var b,c=(b=jI(a.Ca,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!c)return null;b=jI(a.Ca,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=jI(a.Ca,"metadata_type_content_cpn"),f=jI(a.Ca,"metadata_type_instream_ad_player_overlay_renderer"),h=jI(a.Ca,"metadata_type_player_overlay_layout_renderer"),l=jI(a.Ca,"metadata_type_player_underlay_renderer"),m=jI(a.Ca,"metadata_type_ad_placement_config"),n=jI(a.Ca,"metadata_type_video_length_seconds");
var p=dI(a.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?jI(a.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):dI(a.Ca,"metadata_type_layout_enter_ms")&&dI(a.Ca,"metadata_type_layout_exit_ms")?(jI(a.Ca,"metadata_type_layout_exit_ms")-jI(a.Ca,"metadata_type_layout_enter_ms"))/1E3:void 0;return{Rq:d,contentCpn:e,AS:c,ZN:b,instreamAdPlayerOverlayRenderer:f,playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,QK:p,inPlayerLayoutId:jI(a.Ca,"metadata_type_linked_in_player_layout_id"),
inPlayerSlotId:jI(a.Ca,"metadata_type_linked_in_player_slot_id")}};
QJa=function(a,b){return PJa(a,b)};
RJa=function(a,b){b=PJa(a,b);if(!b)return null;var c;b.QK=(c=jI(a.Ca,"metadata_type_ad_pod_info"))==null?void 0:c.adBreakRemainingLengthSeconds;return b};
PJa=function(a,b){var c,d=(c=jI(a.Ca,"metadata_type_player_bytes_callback_ref"))==null?void 0:c.current;if(!d)return null;c=dEa(a,b);return{n7:cEa(a,b),adPlacementConfig:jI(a.Ca,"metadata_type_ad_placement_config"),q7:c,contentCpn:jI(a.Ca,"metadata_type_content_cpn"),inPlayerLayoutId:jI(a.Ca,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:jI(a.Ca,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:jI(a.Ca,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,
instreamAdPlayerUnderlayRenderer:void 0,QK:void 0,AS:d,Rq:a.layoutId,videoLengthSeconds:jI(a.Ca,"metadata_type_video_length_seconds")}};
yM=function(a,b,c,d,e,f,h,l,m){g.I.call(this);this.D=a;this.K=b;this.G=c;this.C=d;this.j=e;this.B=f;this.Oe=h;this.Ba=l;this.Ta=m;this.oh=!0};
SJa=function(a,b,c){return hIa(a.j.get(),b.contentCpn,b.Rq,function(d){return iIa(a.B.get(),d.slotId,c,b.adPlacementConfig,b.Rq,nI(a.Oe.get(),d))})};
zM=function(a,b,c,d,e,f,h,l){g.I.call(this);this.B=a;this.j=b;this.C=c;this.Ba=d;this.D=e;this.Ta=f;this.Ia=h;this.zc=l};
AM=function(a){g.I.call(this);this.j=a};
ZI=function(a,b,c,d){a.j().Vg(b,d);c=c();a=a.j();a.Rb.xI("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.v(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;d.Rb.Wj("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);d.Rb.Wj("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.fc(c.slotId))throw new hI("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(uI(e,c))throw new hI("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.uh.Tt.has(c.slotType))throw new hI("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.uh.zv.has(c.slotType))throw new hI("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");BCa(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);BCa(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
c.slotFulfillmentTriggers);BCa(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=CI(f,h);if(uI(f,c))throw new hI("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new wCa(c));f.j.set(h,l)}catch(oa){oa instanceof hI&&oa.fl?(d.Rb.lm("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",oa.fl,c),wF(oa,c,void 0,void 0,oa.Bw)):(d.Rb.lm("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
c),wF(oa,c));break a}uI(d.j,c).K=!0;try{var m=d.j,n=uI(m,c),p=c.slotEntryTrigger,q=m.uh.zn.get(p.triggerType);q&&(q.Ml("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Da.set(p.triggerId,q));for(var r=g.v(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var u=t.value,w=m.uh.zn.get(u.triggerType);w&&(w.Ml("TRIGGER_CATEGORY_SLOT_FULFILLMENT",u,c,null),n.ra.set(u.triggerId,w))}for(var A=g.v(c.slotExpirationTriggers),C=A.next();!C.done;C=A.next()){var F=C.value,G=m.uh.zn.get(F.triggerType);G&&(G.Ml("TRIGGER_CATEGORY_SLOT_EXPIRATION",
F,c,null),n.Y.set(F.triggerId,G))}var K=m.uh.Tt.get(c.slotType).get().build(m.C,c);n.N=K;var N=m.uh.zv.get(c.slotType).get().build(m.G,c);N.init();n.B=N}catch(oa){oa instanceof hI&&oa.fl?(d.Rb.lm("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",oa.fl,c),wF(oa,c,void 0,void 0,oa.Bw)):(d.Rb.lm("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),wF(oa,c));sI(d,c,!0);break a}d.Rb.Wj("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Wg(c);for(var R=g.v(d.B),da=R.next();!da.done;da=
R.next())da.value.Wg(c);gCa(d,c)}};
BM=function(a,b,c,d,e){g.I.call(this);var f=this;this.B=a;this.C=b;this.Qc=c;this.context=e;this.j=new Map;d.get().addListener(this);this.addOnDisposeCallback(function(){d.Na()||d.get().removeListener(f)})};
FHa=function(a,b){var c=0x8000000000000;var d=0;for(var e=g.v(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof zL?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):wF("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});d=new Yv(c,d);c="throttledadcuerange:"+b.slotId;a.j.set(c,b);a.Qc.get().addCueRange(c,d.start,d.end,!1,a);CM(a.context.Ba.get())&&(b=d.start,d=d.end,e={},a.context.Qp.Fl("tcrr",(e.cid=c,e.sm=b,e.em=d,e)))};
DM=function(){g.I.apply(this,arguments);this.oh=!0;this.jj=new Map;this.j=new Map};
TJa=function(a,b){a=g.v(a.jj.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
UJa=function(a,b){a=g.v(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.v(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}wF("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.fc(b)),layoutId:b})};
VJa=function(){this.j=new Map};
WJa=function(a,b){this.callback=a;this.slot=b};
EM=function(){};
XJa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c};
YJa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c;this.B=!1;this.j=0};
ZJa=function(a,b,c){this.callback=a;this.slot=b;this.Ia=c};
FM=function(a){this.Ia=a};
GM=function(a){g.I.call(this);this.tN=a;this.Vb=new Map};
$Ja=function(a,b){for(var c=[],d=g.v(a.Vb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof KL&&f.triggeringLayoutId===b&&c.push(e)}c.length?AI(a.tN(),c):wF("Survey is submitted but no registered triggers can be activated.")};
HM=function(a,b,c){GM.call(this,a);var d=this;this.Ba=c;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Na()||b.get().removeListener(d)})};
IM=function(a){g.I.call(this);this.j=a;this.oh=!0;this.Vb=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.K=new Set;this.B=new Set};
JM=function(a){g.I.call(this);this.j=a;this.Vb=new Map};
KM=function(a,b){for(var c=[],d=g.v(a.Vb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&AI(a.j(),c)};
LM=function(a,b,c){g.I.call(this);var d=this;this.j=a;this.context=c;this.Vb=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Na()||b.get().removeListener(d)})};
MM=function(a,b,c,d,e){g.I.call(this);var f=this;this.B=a;this.Qc=b;this.Ia=c;this.Ta=d;this.context=e;this.oh=!0;this.Vb=new Map;this.j=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Na()||c.get().removeListener(f)})};
aKa=function(a,b,c,d,e,f,h,l,m,n){if(a.Ta.get().Fe(1).clientPlaybackNonce!==m)throw new hI("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Vb.set(c.triggerId,{jE:new ML(b,c,d,e),kJ:f});a.Qc.get().addCueRange(f,h,l,n,a);CM(a.context.Ba.get())&&(m={},a.context.Qp.Fl("crr",(m.ca=b,m.tt=c.triggerType,m.st=d.slotType,m.lt=e==null?void 0:e.layoutType,m.cid=f,m.sm=h,m.em=l,m)))};
bKa=function(a,b){a=g.v(a.Vb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;if(b===d.kJ)return c}return""};
NM=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.Na()||b.get().removeListener(c)});
var d;this.j=((d=b.get().Ow)==null?void 0:d.slotId)||null};
cKa=function(a,b){var c=[];a=g.v(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
OM=function(a){g.I.call(this);this.j=a;this.oh=!0;this.Vb=new Map};
cL=function(a,b,c){b=b.layoutId;for(var d=[],e=g.v(a.Vb.values()),f=e.next();!f.done;f=e.next())if(f=f.value,f.trigger instanceof BL){var h;if(h=f.trigger.layoutId===b){h=c;var l=oCa.get(f.category);h=l?l===h:!1}h&&d.push(f)}d.length&&AI(a.j(),d)};
PM=function(a){g.I.call(this);this.j=a;this.oh=!0;this.Vb=new Map};
QM=function(a){g.I.call(this);this.C=a;this.oh=!0;this.Vb=new Map;this.j=new Map;this.B=new Map};
dKa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.v(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c};
RM=function(a){g.I.call(this);this.j=a;this.Vb=new Map};
eKa=function(a,b){for(var c=[],d=g.v(a.Vb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof qL&&e.trigger.slotId===b&&c.push(e);c.length>=1&&AI(a.j(),c)};
fKa=function(a,b){var c={slotId:$I(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Za:"surface",Ca:new iI([])},d=Object,e=d.assign;b=NI(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Db:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"surface",Ca:new iI([]),
Xb:cCa(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.Za,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{o$:!0,slot:c,layout:b})};
JHa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={fn:new Yv(-0x8000000000000,-0x8000000000000),aC:d},c!=null&&(d.Tn=new Yv(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={fn:new Yv(0x7ffffffffffff,0x8000000000000),aC:d},c!=null&&(d.Tn=new Yv(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||wF("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||wF("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);e===-1&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new hI("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={fn:new Yv(a,e),aC:d};if(c!=null){a=Math.max(0,a-c);if(a===e)return d;d.Tn=new Yv(a,e)}return d;
default:return new hI("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}};
NJa=function(a){var b=a.startSecs*1E3;return new Yv(b,b+a.Hh*1E3)};
gKa=function(a){if(!a||!a.adPlacements&&!a.adSlots)return!1;for(var b=g.v(a.adPlacements||[]),c=b.next();!c.done;c=b.next())if(c=c.value)if(c=c.adPlacementRenderer,c!=null&&(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;a=g.v(a.adSlots||[]);for(b=a.next();!b.done;b=a.next()){var d=c=void 0;if(((c=g.V(b.value,fM))==null?void 0:(d=c.adSlotMetadata)==null?void 0:d.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1};
SM=function(a){this.Ba=a;this.B=new Map;this.j=new Map;this.C=new Map};
$I=function(a,b){if(hKa(a.Ba.get())){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.zD(16)};
NI=function(a,b,c){if(hKa(a.Ba.get())){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.zD(16)};
oM=function(a,b){if(hKa(a.Ba.get())){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.zD(16)};
iKa=function(a){var b=[new CH(a.Rq),new MBa(a.AS),new qH(a.adPlacementConfig),new JH(a.videoLengthSeconds),new WH(a.QK)];a.instreamAdPlayerOverlayRenderer&&b.push(new xH(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new yH(a.playerOverlayLayoutRenderer));a.ZN&&b.push(new uH(a.ZN));return b};
jKa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:NI(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h,l,m=c.instreamAdPlayerOverlayRenderer?(h=c.instreamAdPlayerOverlayRenderer)==null?void 0:h.adLayoutLoggingData:(l=c.playerOverlayLayoutRenderer)==null?void 0:l.adLayoutLoggingData;h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Za:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Db:new Map,layoutExitNormalTriggers:[new yL(function(n){return oM(f,
n)},c.Rq)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:b,Ca:d,Xb:e(h),adLayoutLoggingData:m}};
TM=function(a,b){var c=this;this.B=a;this.Ba=b;this.j=function(d){return oM(c.B.get(),d)}};
iIa=function(a,b,c,d,e,f){c=new iI([new zH(c),new qH(d)]);b=NI(a.B.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Za:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Db:new Map,layoutExitNormalTriggers:[new yL(function(h){return oM(a.B.get(),h)},e)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"core",Ca:c,Xb:f(d),adLayoutLoggingData:void 0}};
lM=function(a,b,c,d,e){var f=iKa(d);return jKa(b,c,d,new iI(f),e,a.B.get())};
kKa=function(a,b,c,d,e){var f=iKa(d);f.push(new EBa(d.n7));f.push(new FBa(d.q7));return jKa(b,c,d,new iI(f),e,a.B.get())};
uM=function(a,b,c,d,e,f,h,l,m,n){b=NI(a.B.get(),c,b);var p={layoutId:b,layoutType:c,Za:"core"},q=new Map;h&&q.set("impression",h);h=[new AL(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];n&&h.push(new xL(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Db:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"core",Ca:new iI([d,new qH(f),new CH(e)]),Xb:l(p),adLayoutLoggingData:m}};
JJa=function(a,b,c,d,e,f,h,l,m){b=NI(a.B.get(),c,b);var n={layoutId:b,layoutType:c,Za:"core"},p=[new AL(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];m&&p.push(new xL(a.j,m,["normal"]));return{layoutId:b,layoutType:c,Db:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"core",Ca:new iI([d,new qH(f),new CH(e)]),Xb:h(n),adLayoutLoggingData:l}};
fJa=function(a,b,c){var d=[];d.push(new YGa(a.j,c));b&&d.push(b);return d};
eJa=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Za:"core"};return{layoutId:b,layoutType:c,Db:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new tL(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"core",Ca:new iI([new ABa(d),new qH(e)]),Xb:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
FIa=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,Za:"core"};return{layoutId:b,layoutType:f,Db:new Map,layoutExitNormalTriggers:[new yL(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"core",Ca:new iI([new qH(d)].concat(g.ra(h))),Xb:e(m),adLayoutLoggingData:l}};
pM=function(a,b,c,d){if(a.Ba.get().kf(b.kind==="AD_PLACEMENT_KIND_START"))if(c===void 0)wF("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c};
hJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=nJa(a,b,c,e,f,h,l,m,q,pM(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.Oz;c=new DH(a.zL);d=a.layoutExitSkipTriggers;n>0&&(b.push(c),b.push(new tH(n)),d=[]);b.push(new sH(p));return{Qf:{layoutId:a.layoutId,layoutType:a.layoutType,Db:a.Db,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:a.Za,Ca:new iI(b),Xb:a.Xb,adLayoutLoggingData:a.adLayoutLoggingData},
Bm:d,fk:a.layoutExitMuteTriggers,Sz:a.layoutExitUserInputSubmittedTriggers,Rz:a.Xc,rf:a.rf}};
lJa=function(a,b,c,d,e,f,h,l,m,n){b=nJa(a,b,c,d,f,new Map,h,function(p){return l(p,m)},void 0,pM(a,c,e.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
a=new KL(a.j,b.zL);c=new DH(b.zL);n=new sH(n);return{Qf:{layoutId:b.layoutId,layoutType:b.layoutType,Db:b.Db,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:b.Za,Ca:new iI([].concat(g.ra(b.Oz),[c,n])),Xb:b.Xb,adLayoutLoggingData:b.adLayoutLoggingData},Bm:b.layoutExitSkipTriggers,fk:b.layoutExitMuteTriggers,Sz:[].concat(g.ra(b.layoutExitUserInputSubmittedTriggers),[a]),Rz:b.Xc,rf:b.rf}};
nJa=function(a,b,c,d,e,f,h,l,m,n,p){b=n!=null?n:NI(a.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);n={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Za:"adapter"};l=l(b);var q=jI(l.Ca,"metadata_type_fulfilled_layout");q||wF("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var r=q?q.layoutId:"";c=[new qH(c),new XH(d),new ZH(e)];q&&c.push(new EH(q.layoutType));p&&c.push(new PH(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Db:f,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[new DL(a.j,r)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"adapter",Oz:c,Xb:h(n),adLayoutLoggingData:m,rf:l,zL:r}};
eIa=function(a,b,c,d,e,f,h,l,m,n,p){a=lKa(a,b,"core",c,d,e,f,h,l,m,n,void 0,p);return{layoutId:a.layoutId,layoutType:a.layoutType,Db:a.Db,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,Xc:a.Xc,Za:a.Za,Ca:new iI(a.pX),Xb:a.Xb,adLayoutLoggingData:a.adLayoutLoggingData}};
AJa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=lKa(a,b,"adapter",c,d,e,f,h,l,m,p,q,r);d=b.layoutExitSkipTriggers;e=b.pX;c.adPodSkipTarget&&c.adPodSkipTarget>0&&(e.push(n),e.push(new tH(c.adPodSkipTarget)),d=[]);e.push(new sH(l.adPodIndex));c.isCritical&&(d=[new xL(a.j,b.layoutId,["error"])].concat(g.ra(d)));return{Qf:{layoutId:b.layoutId,layoutType:b.layoutType,Db:b.Db,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:b.Za,
Ca:new iI(e),Xb:b.Xb,adLayoutLoggingData:b.adLayoutLoggingData},Bm:d,fk:b.layoutExitMuteTriggers,Sz:b.layoutExitUserInputSubmittedTriggers,Rz:b.Xc}};
lKa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){var t={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Za:c};e=[new qH(e),new rH(m),new vH(d.externalVideoId),new wH(l),new ZH({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new KH(f),new GH({current:null}),new JH(h)];(f=d.playerOverlay.instreamAdPlayerOverlayRenderer)&&e.push(new xH(f));(h=d.playerOverlay.playerOverlayLayoutRenderer)&&e.push(new yH(h));
q&&e.push(new LH(q));(q=d.playerUnderlay)&&e.push(new zH(q));l=$I(a.B.get(),"SLOT_TYPE_IN_PLAYER");q=(q=f?f.elementId:h==null?void 0:h.layoutId)?q:NI(a.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);e.push(new DH(q));e.push(new FH(l));e.push(new PH(m.adPodIndex));d.adNextParams&&e.push(new oH(d.adNextParams));d.shrunkenPlayerBytesConfig&&e.push(new HBa(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&e.push(new pH(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&e.push(new YH(d.legacyInfoCardVastExtension));
d.sodarExtensionData&&e.push(new MH(d.sodarExtensionData));p&&e.push(new VH(p));e.push(new aI(gJ(d.pings)));m=hJ(d.pings);if(r){a:{r=g.v(r);for(p=r.next();!p.done;p=r.next())if(p=p.value,p.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(f=g.V(p.fulfillmentContent.fulfilledLayout,YL))&&(f=g.V(f.renderingContent,XL))&&f.associatedPlayerBytesLayoutId===b){r=p;break a}r=void 0}r&&e.push(new AH(r))}return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Db:m,layoutExitNormalTriggers:[new BL(a.j,b)],layoutExitSkipTriggers:d.skipOffsetMilliseconds?
[new DL(a.j,q)]:[],layoutExitMuteTriggers:[new DL(a.j,q)],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:c,pX:e,Xb:n(t),adLayoutLoggingData:d.adLayoutLoggingData}};
WIa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return eI(p,[],["LAYOUT_TYPE_MEDIA"])})||wF("Unexpect subLayout type for DAI composite layout");
b=NI(a.B.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Za:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Db:new Map,layoutExitNormalTriggers:[new TGa(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Xc:[],Za:"core",Ca:new iI([new NH(c),new OH(l),new IH(d),new qH(e),new SH(f),new QH({}),new TBa(m)]),Xb:h(n)}};
RIa=function(a){return a!=null};
UM=function(a,b,c){var d=this;this.B=a;this.C=b;this.Ba=c;this.j=function(e){return oM(d.B.get(),e)}};
LJa=function(a,b,c,d,e,f,h){if(!c.highCcvPrefetchConfig)return new hI("AdPlacementConfig for Live Prefetch is missing high_ccv_prefetch_config");c=c.highCcvPrefetchConfig;d*=1E3;var l=[];if(!c.breakLengthMs)return new hI("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var m=g.v(c.breakLengthMs),n=m.next();!n.done;n=m.next())if(n=n.value,Number(n)>0){var p=d+Number(c.startTimeOffsetMs),q=p+Number(c.cacheFetchSmearingDurationMs);p={fn:new Yv(q,q+Number(n)),aC:!1,Tn:new Yv(Math.floor(p+
Math.random()*Number(c.cacheFetchSmearingDurationMs)),q)};q=[];q.push(new VBa({breakLengthMs:Number(n)}));h&&q.push(new QH({}));l.push(KHa(a,b,e,p,f,q))}return l};
KHa=function(a,b,c,d,e,f){f=f===void 0?[]:f;var h=$I(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.Tn&&d.Tn.start!==d.fn.start&&l.push(new zL(a.j,c,new Yv(d.Tn.start,d.fn.start),!1));l.push(new zL(a.j,c,new Yv(d.fn.start,d.fn.end),d.aC));d={getAdBreakUrl:b.getAdBreakUrl,LS:d.fn.start,KS:d.fn.end,cueProcessedMs:d.cueProcessedMs};b=new HL(a.j,h);f=[new UH(d)].concat(g.ra(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:[new CL(a.j,
c),new FL(a.j,h),new GL(a.j,h)],Za:"core",Ca:new iI(f),adSlotLoggingData:e}};
nKa=function(a,b,c){var d=[];c=g.v(c);for(var e=c.next();!e.done;e=c.next())d.push(mKa(a,b,e.value));return d};
mKa=function(a,b,c){return c.triggeringSlotId!=null&&c.triggeringSlotId===a?c.clone(b):c};
EIa=function(a,b,c,d,e){return oKa(a,b,c,d,e)};
iJa=function(a,b,c,d){var e=$I(a.B.get(),"SLOT_TYPE_IN_PLAYER");return oKa(a,e,b,c,d)};
oKa=function(a,b,c,d,e){var f=new wL(a.j,c),h=[new EL(a.j,b)];a=[new FL(a.j,b),new CL(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Za:"core",Ca:new iI([new TH(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}};
BJa=function(a,b,c,d,e,f){var h=$I(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),l=$I(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=NI(a.B.get(),"LAYOUT_TYPE_SURVEY",l);d=VM(a,b,c,d);var n=[new EL(a.j,h)];c=[new FL(a.j,h),new CL(a.j,c),new tL(a.j,m)];if(d instanceof hI)return d;l=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:d,slotFulfillmentTriggers:n,slotExpirationTriggers:c},{slotId:l,layoutId:m});f=l.V$;l=l.j$;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:wJa(a,b,h,d),slotFulfillmentTriggers:xJa(a,b,h,n),slotExpirationTriggers:c,Za:"core",Ca:new iI([new TH(f),new bI(qM(b)),new cI({Bu:a.Bu(b)})]),adSlotLoggingData:e},l]};
qM=function(a){return a.kind==="AD_PLACEMENT_KIND_START"};
fIa=function(a,b,c,d,e){e=e?e:$I(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new wL(a.j,c);var f=[new EL(a.j,e)];a=[new CL(a.j,b),new FL(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Za:"core",Ca:new iI([new TH(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
hIa=function(a,b,c,d){var e=$I(a.B.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new wL(a.j,c);var f=[new EL(a.j,e)];a=[new CL(a.j,b),new FL(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Za:"core",Ca:new iI([new TH(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
YHa=function(a,b,c,d,e,f,h){var l=$I(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=NI(a.B.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=pKa(a,d,f,h,m);if(d instanceof hI)return d;h=[new EL(a.j,l)];e=[new CL(a.j,f),new EL(a.j,e),new JL(a.j,e)];c=nI(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e});a=a.C.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Za:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
Db:new Map,layoutExitNormalTriggers:[new aHa(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new cHa(a.j,m,b.durationMs)],Xc:[new bHa(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Za:"core",Ca:new iI([new QBa(b)]),Xb:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Ca:new iI([new TH(b)])}};
dJa=function(a,b,c,d,e,f){b=VM(a,b,c,d);if(b instanceof hI)return b;var h=b instanceof zL?new XGa(a.j,c,b.j):null;d=$I(a.B.get(),"SLOT_TYPE_IN_PLAYER");var l=[new EL(a.j,d)];a=[new CL(a.j,c),new FL(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a},h);return f instanceof gI?new hI(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a,
Za:"core",Ca:new iI([new TH(f)]),adSlotLoggingData:e}};
bJa=function(a,b,c,d){var e=$I(a.B.get(),"SLOT_TYPE_IN_PLAYER"),f=new sL(a.j,b),h=[new IL(a.j,e)];a=[new CL(a.j,b),new FL(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Za:"core",Ca:new iI([new TH(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:c}};
LIa=function(a,b,c,d){var e=$I(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new wL(a.j,c);var f=[new EL(a.j,e)],h=[new FL(a.j,e),new CL(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new EL(a.j,e)],slotExpirationTriggers:[new CL(a.j,b),new FL(a.j,e)],Za:"core",Ca:new iI([new TH(d(f))])}};
IIa=function(a,b,c,d,e){var f=$I(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new vL(a.j,d,c);d=[new EL(a.j,f)];a=[new CL(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Za:"core",Ca:new iI([new TH(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}};
THa=function(a,b,c,d,e,f){var h=$I(a.B.get(),b);return qKa(a,h,b,new wL(a.j,d),[new CL(a.j,c),new FL(a.j,h),new xL(a.j,d,["error"])],e,f)};
SHa=function(a,b,c,d,e,f,h){var l=$I(a.B.get(),b);return qKa(a,l,b,new xL(a.j,e,["normal"]),[new CL(a.j,c),new FL(a.j,l),new xL(a.j,d,["error"])],f,h)};
OHa=function(a,b,c,d,e){var f=$I(a.B.get(),b);return qKa(a,f,b,new sL(a.j,c),[new CL(a.j,c),new FL(a.j,f)],d,e)};
YIa=function(a,b,c,d,e){c=c?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var f=$I(a.B.get(),c);b=new sL(a.j,b);var h=[new EL(a.j,f)];a=[new FL(a.j,f)];return{slotId:f,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Za:"core",Ca:new iI([new TH(e({slotId:f,slotType:c,slotPhysicalPosition:1,Za:"core",slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:d}};
SIa=function(a,b,c,d){var e=$I(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new UGa(a.j),h=[new IL(a.j,e)];b=[new CL(a.j,b)];var l={slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b};a=a.Ba.get();return!g.zI(a.J.U())&&a.J.U().experiments.gb("enable_pacf_slot_asde_player_byte_h5")||g.zI(a.J.U())&&a.J.U().experiments.gb("enable_pacf_slot_asde_player_byte_h5_TV")?{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Za:"core",Ca:new iI([new TH(d(l)),new QH({})]),adSlotLoggingData:c}:{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Za:"core",Ca:new iI([new TH(d(l)),new QH({})])}};
tJa=function(a,b){return HJa(a.Ba.get())?new xL(a.j,b,["normal","error","skipped"]):new xL(a.j,b,["normal"])};
bIa=function(a,b,c,d,e){b=tJa(a,b);a=uJa(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,Za:a.Za});return e instanceof hI?e:{qy:Object.assign({},a,{Ca:new iI([new TH(e.layout)]),adSlotLoggingData:d}),vg:e.vg}};
cIa=function(a,b,c,d,e,f,h){c=vJa(a,b,c,d);if(c instanceof hI)return c;h=h({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,Za:c.Za});if(h instanceof hI)return h;d=[new bI(qM(b)),new TH(h.layout),new cI({Bu:a.Bu(b)})];f&&d.push(new $H({}));return{qy:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:wJa(a,
b,c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:xJa(a,b,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,Za:c.Za,Ca:new iI(d),adSlotLoggingData:e},vg:h.vg}};
wJa=function(a,b,c,d){return a.Ba.get().kf(qM(b))?new qL(a.j,c):d};
xJa=function(a,b,c,d){return a.Ba.get().kf(qM(b))?[new IL(a.j,c)]:d};
uJa=function(a,b,c){var d=$I(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new EL(a.j,d)];a=[new FL(a.j,d),new CL(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,Za:"core"}};
vJa=function(a,b,c,d){b=VM(a,b,c,d);return b instanceof hI?b:uJa(a,b,c)};
$Ia=function(a,b,c,d,e,f){var h=$I(a.B.get(),"SLOT_TYPE_FORECASTING");b=VM(a,b,c,d);if(b instanceof hI)return b;d=[new EL(a.j,h)];a=[new FL(a.j,h),new CL(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Za:"core",Ca:new iI([new TH(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Za:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}};
rKa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new sL(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=JHa(b,d),a instanceof hI?a:e(a.fn,f);case "AD_PLACEMENT_KIND_END":return new uL(a.j,c,f);default:return new hI("Cannot construct entry trigger",{kind:b.kind})}};
pKa=function(a,b,c,d,e){return rKa(a,b,c,d,function(f,h){return new WGa(a.j,c,f,h,e)})};
VM=function(a,b,c,d){return rKa(a,b,c,d,function(e,f){return new zL(a.j,c,e,f)})};
qKa=function(a,b,c,d,e,f,h){a=[new IL(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,Za:"core",Ca:new iI([new TH(h({slotId:b,slotType:c,slotPhysicalPosition:1,Za:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}};
WM=function(a,b){g.I.call(this);this.Ba=a;this.j=b;this.eventCount=0};
sKa=function(a,b,c,d){WM.call(this,a,b);this.Ba=a;this.Ta=c;this.context=d};
XM=function(){this.j=new Map};
YM=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
dN=function(a){g.I.call(this);this.counter=[0,0,0,0];this.B=new Uint8Array(16);this.j=16;if(!tKa){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;b<256;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);ZM=new Uint8Array(256);$M=YM(256);aN=YM(256);bN=YM(256);cN=YM(256);for(var f=0;f<256;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;ZM[f]=e;b=e<<1^(e>>7&&283);var h=b^e;$M[f]=b<<24|e<<16|e<<8|h;aN[f]=h<<24|$M[f]>>>8;bN[f]=e<<24|aN[f]>>>8;cN[f]=e<<24|bN[f]>>>8}tKa=!0}e=YM(44);for(c=
0;c<4;c++)e[c]=a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;c<44;c++)a=e[c-1],c%4||(a=(ZM[a>>16&255]^d)<<24|ZM[a>>8&255]<<16|ZM[a&255]<<8|ZM[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
uKa=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;h>=0&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;n<40;)h=$M[c>>>24]^aN[d>>16&255]^bN[e>>8&255]^cN[f&255]^b[n++],l=$M[d>>>24]^aN[e>>16&255]^bN[f>>8&255]^cN[c&255]^b[n++],m=$M[e>>>24]^aN[f>>16&255]^bN[c>>8&255]^cN[d&255]^b[n++],f=$M[f>>>24]^aN[c>>16&255]^bN[d>>8&255]^cN[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=ZM[c>>>24]^h>>>24;a[1]=ZM[d>>16&255]^h>>16&255;a[2]=ZM[e>>8&255]^
h>>8&255;a[3]=ZM[f&255]^h&255;h=b[41];a[4]=ZM[d>>>24]^h>>>24;a[5]=ZM[e>>16&255]^h>>16&255;a[6]=ZM[f>>8&255]^h>>8&255;a[7]=ZM[c&255]^h&255;h=b[42];a[8]=ZM[e>>>24]^h>>>24;a[9]=ZM[f>>16&255]^h>>16&255;a[10]=ZM[c>>8&255]^h>>8&255;a[11]=ZM[d&255]^h&255;h=b[43];a[12]=ZM[f>>>24]^h>>>24;a[13]=ZM[c>>16&255]^h>>16&255;a[14]=ZM[d>>8&255]^h>>8&255;a[15]=ZM[e&255]^h&255};
fN=function(){if(!vKa&&!g.zC){if(eN)return eN;var a;eN=(a=window.crypto)==null?void 0:a.subtle;var b,c,d;if(((b=eN)==null?0:b.importKey)&&((c=eN)==null?0:c.sign)&&((d=eN)==null?0:d.encrypt))return eN;eN=void 0}};
wKa=function(){this.B=this.Ft=0;this.j=Array.from({length:gN.length}).fill(0)};
xKa=function(){};
yKa=function(){this.startTimeMs=(0,g.iC)();this.j=!1};
zKa=function(){this.j=new xKa};
AKa=function(a,b,c,d){d=d===void 0?1:d;c>=0&&(b in a.j||(a.j[b]=new wKa),a.j[b].Sh(c,d))};
BKa=function(a,b,c,d,e){var f=(0,g.iC)(),h=e?e(b):void 0,l;e=(l=h==null?void 0:h.Ft)!=null?l:1;if(e!==0){var m;l=(m=h==null?void 0:h.profile)!=null?m:c;AKa(a,l,f-d,e)}return b};
CKa=function(a,b,c,d,e){if(b&&typeof b==="object"){var f=function(h){return BKa(a,h,c,d,e)};
if("then"in b&&typeof b.then==="function")return b.then(f);if("andThen"in b&&typeof b.bk==="function")return b.bk(f)}return BKa(a,b,c,d,e)};
DKa=function(){};
hN=function(a,b){this.Ld=a;this.cipher=this.Ld.exports.AES128CTRCipher_create(b.byteOffset)};
g.iN=function(a){this.D=a};
g.jN=function(a){g.I.call(this);this.B=a};
kN=function(a,b){this.j=new hN(a,b)};
EKa=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;a<64;a++)this.G[a]^=92,this.C[a]^=54;this.reset()};
FKa=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,u,w=0;w<64;)w<16?(d[w]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],u=d[w-7]+d[w-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[w]=u),r=q+lN[w]+u+((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,w++,w<16?(d[w]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=
d[w-2],t=d[w-15],u=d[w-7]+d[w-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[w]=u),r=p+lN[w]+u+((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,w++,w<16?(d[w]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],u=d[w-7]+d[w-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[w]=u),r=n+lN[w]+u+((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,w++,w<16?(d[w]=u=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],u=d[w-7]+d[w-16]+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),d[w]=u),r=m+lN[w]+u+((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),u=q,q=l,l=u,u=p,p=h,h=u,u=n,n=f,f=u,m=e+r,e=r+t,w++;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};
HKa=function(a){var b=new Uint8Array(32),c=64-a.B;a.B>55&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=a.D*8,f=1;f<9;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;c<8;c++)b[c*4]=a.j[c]>>>24,b[c*4+1]=a.j[c]>>>16&255,b[c*4+2]=a.j[c]>>>8&255,b[c*4+3]=a.j[c]&255;GKa(a);return b};
GKa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.N=[];a.N.length=64;a.D=0;a.B=0};
IKa=function(a){this.j=a};
JKa=function(a,b,c){a=new EKa(a.j);a.update(b);a.update(c);b=HKa(a);a.update(a.G);a.update(b);b=HKa(a);a.reset();return b};
KKa=function(a){this.B=a};
LKa=function(a,b,c,d){var e,f,h;return g.H(function(l){switch(l.j){case 1:if(a.j){l.Ja(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))}})};
MKa=function(a,b,c){a.C||(a.C=new IKa(a.B));return JKa(a.C,b,c)};
NKa=function(a,b,c){var d,e;return g.H(function(f){if(f.j==1){d=fN();if(!d)return f.return(MKa(a,b,c));g.Ba(f,3);return g.z(f,LKa(a,b,c,d),5)}if(f.j!=3)return f.return(f.B);e=g.Da(f);g.nE(e);vKa=!0;return f.return(MKa(a,b,c))})};
mN=function(){var a=OKa;var b=b===void 0?[]:b;var c=c===void 0?[]:c;b=wma.apply(null,[xma.apply(null,g.ra(b))].concat(g.ra(c)));this.store=Bma(a,void 0,b)};
g.PKa=function(a,b,c){for(var d=Object.assign({},a),e=g.v(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(l===void 0)delete d[f];else if(h===void 0)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.ra(h),g.ra(l)):l;else if(!Array.isArray(l)&&g.db(l)&&!Array.isArray(h)&&g.db(h))d[f]=g.PKa(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.FB("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,Jrb:h,updateValue:l}),
g.mE(b),a}return d};
nN=function(a){var b=this;a=a===void 0?[]:a;this.j=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
QKa=function(a,b){return a.j.length===0?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
oN=function(a,b){b=g.v(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
pN=function(a,b,c){return a.split(b).xn.split(c).nK};
RKa=function(a){a.D=void 0;a.B=0;a.C=0};
SKa=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.j[a.B].length};
TKa=function(a){if(!a.D){var b=a.j[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D};
UKa=function(a,b,c){b=b===void 0?0:b;c=c===void 0?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));c<0&&(c=a.totalLength-b);a.focus(b);if(!SKa(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);RKa(a);a.focus(b)}d=a.j[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)};
qN=function(a,b,c){a=UKa(a,b===void 0?0:b,c===void 0?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
rN=function(a,b,c){a=qN(a,b===void 0?0:b,c===void 0?-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};
sN=function(a,b){a.focus(b);return a.j[a.B][b-a.C]};
VKa=function(a,b){a.focus(b);return SKa(a,b,4)?TKa(a).getUint32(b-a.C):256*(256*(256*sN(a,b)+sN(a,b+1))+sN(a,b+2))+sN(a,b+3)};
WKa=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
tN=function(a){return String.fromCharCode.apply(null,a)};
vN=function(a){return a.length?uN?uN.decode(a):tN(a):""};
g.xN=function(a){if(!a.length)return"";try{if(uN)return uN.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;e<1024&&b<d;){var f=a[b++];if(f<128)wN[e++]=f;else{if(f<224)f=(f&31)<<6|a[b++]&63;else if(f<240)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(e+1===1024){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;wN[e++]=55296|f>>10;f=56320|f&1023}wN[e++]=f}}f=String.fromCharCode.apply(String,wN);
e<1024&&(f=f.substr(0,e));c.push(f)}return c.join("")};
zN=function(a,b){var c;if((c=yN)==null?0:c.encodeInto)return b=yN.encodeInto(a,b),b.read<a.length?a.length*4:b.written;for(var d=c=0;d<a.length;d++){var e=a.charCodeAt(d);e<128?b[c++]=e:(e<2048?b[c++]=e>>6|192:((e&64512)===55296&&d+1<a.length&&(a.charCodeAt(d+1)&64512)===56320?(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};
XKa=function(a){if(yN)return yN.encode(a);var b=new Uint8Array(Math.ceil(a.length*1.2)),c=zN(a,b);b.length<c&&(b=new Uint8Array(c),c=zN(a,b));b.length>c&&(b=b.subarray(0,c));return b};
AN=function(a){this.j=a;this.pos=0;this.B=-1};
BN=function(a){var b=sN(a.j,a.pos);++a.pos;if(b<128)return b;for(var c=b&127,d=1;b>=128;)b=sN(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
CN=function(a,b){var c=a.B;for(a.B=-1;a.pos+1<=a.j.totalLength;){c<0&&(c=BN(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:BN(a);break;case 1:a.pos+=8;break;case 2:d=BN(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
DN=function(a,b){if(CN(a,b))return BN(a)};
EN=function(a,b){if(CN(a,b))return!!BN(a)};
FN=function(a,b){if(CN(a,b)){b=BN(a);var c=qN(a.j,a.pos,b);a.pos+=b;return c}};
GN=function(a,b){if(a=FN(a,b))return g.xN(a)};
HN=function(a,b,c){if(a=FN(a,b))return c(new AN(new nN([a])))};
IN=function(a,b){for(var c=[];CN(a,b);)c.push(BN(a));return c.length?c:void 0};
JN=function(a,b,c){for(var d=[],e;e=FN(a,b);)d.push(c(new AN(new nN([e]))));return d.length?d:void 0};
KN=function(a,b){a=a instanceof Uint8Array?new nN([a]):a;return b(new AN(a))};
YKa=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};
ZKa=function(a,b){this.Ld=b;this.pos=0;this.B=[];this.j=YKa(a===void 0?4096:a,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)};
LN=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=a.j.length*2;c<b;)c*=2;a.j=YKa(c,a.Ld,a.j.subarray(0,a.pos));a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength)}};
MN=function(a,b){if(b>268435455){LN(a,4);for(var c=b&1073741823,d=0;d<4;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(LN(a,4);b>127;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1};
NN=function(a,b,c){c!==void 0&&(MN(a,b*8),MN(a,c))};
ON=function(a,b,c){c!==void 0&&NN(a,b,c?1:0)};
PN=function(a,b,c){c!==void 0&&(MN(a,b*8+2),b=c.length,MN(a,b),LN(a,b),a.j.set(c,a.pos),a.pos+=b)};
QN=function(a,b,c){c!==void 0&&($Ka(a,b,Math.ceil(Math.log2(c.length*4+2)/7)),LN(a,c.length*1.2),b=zN(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(LN(a,b),b=zN(c,a.j.subarray(a.pos))),a.pos+=b,aLa(a))};
$Ka=function(a,b,c){c=c===void 0?2:c;MN(a,b*8+2);a.B.push(a.pos);a.B.push(c);a.pos+=c};
aLa=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}};
RN=function(a,b,c,d,e){c&&($Ka(a,b,e===void 0?3:e),d(a,c),aLa(a))};
g.SN=function(a,b,c){c=new ZKa(4096,c);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)};
g.TN=function(a){var b=new AN(new nN([Dg(decodeURIComponent(a))]));a=GN(b,2);b=DN(b,4);var c=bLa[b];if(typeof c==="undefined")throw a=new g.FB("Failed to recognize field number",{name:"EntityKeyHelperError",fqb:b}),g.mE(a),a;return{E8:b,entityType:c,entityId:a}};
g.UN=function(a,b){var c=new ZKa;PN(c,2,XKa(a));a=cLa[b];if(typeof a==="undefined")throw b=new g.FB("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.mE(b),b;NN(c,4,a);NN(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.Bg(b))};
VN=function(a,b,c,d){if(d===void 0)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))};
dLa=function(a,b,c,d,e){var f=a[b];if(f==null||!f[c])return a;d=g.PKa(f[c],d,e==="REPEATED_FIELDS_MERGE_OPTION_APPEND");e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
eLa=function(a,b){a=a===void 0?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=(f=e.options)==null?void 0:f.persistenceOption;if(h&&h!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&h!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return d;if(!e.entityKey)return g.mE(Error("Missing entity key")),d;if(e.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!e.payload)return g.mE(new g.FB("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.Yc(e.payload);
return VN(d,l,e.entityKey,e.payload[l])}if(e.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{e=e.entityKey;try{var m=g.TN(e).entityType;l=VN(d,m,e);break a}catch(q){if(q instanceof Error){g.mE(new g.FB("Failed to deserialize entity key",{entityKey:e,oS:q.message}));l=d;break a}throw q;}l=void 0}return l}if(e.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!e.payload)return g.mE(new g.FB("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.Yc(e.payload);var n,p;return dLa(d,l,e.entityKey,
e.payload[l],(n=e.fieldMask)==null?void 0:(p=n.mergeOptions)==null?void 0:p.repeatedFieldsMergeOption)}return d},a);
case "REPLACE_ENTITY":var c=b.payload;return VN(a,c.entityType,c.key,c.D8);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 VN(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,dLa(a,c.entityType,c.key,c.D8,c.zrb);default:return a}};
WN=function(a,b,c){return a[b]?a[b][c]||null:null};
gLa=function(a){var b=a.hours||0;var c=a.minutes||0,d=a.seconds||0;b=d+c*60+b*3600+(a.days||0)*86400+(a.weeks||0)*604800+(a.months||0)*2629800+(a.years||0)*31557600;b<=0?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=b.hours===void 0?0:b.hours;c=b.minutes===void 0?0:b.minutes;a=b.seconds===void 0?0:b.seconds;d=e>0;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(XN)?e.replace(",","\u00a0"):f.includes(XN)?e.replace(",","\u202f"):h.includes(XN)?e.replace(",","."):e;b.push(e)}d=d===void 0?!1:d;c=(["af","be","lt"].includes(XN)||d)&&c<10?fLa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=fLa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(XN)&&(c=".");return b.join(c)};
fLa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
hLa=function(a,b){var c,d;a=((c=a.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(d=c.videoAuthorizationToken)==null?void 0:d.credentialTransferTokens)||[];for(c=0;c<a.length;++c)if(a[c].scope===b)return a[c].token||void 0};
iLa=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};
YN=function(a){return a?function(){try{return a.apply(this,arguments)}catch(b){g.mE(b)}}:a};
ZN=function(a,b,c){if(!g.FA("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)};
$N=function(a,b,c){if(!g.FA("jspb_translator_skip_iteration"))if(Array.isArray(b))for(var d=0;d<b.length;d++)a(c[b[d]]);else a(c[b])};
Y=function(a){g.FA("jspb_translator_log_errors")&&g.mA(a)};
kLa=function(a){var b=new loa,c=0;try{var d=a.eventType;d!==void 0&&(T(b,1,jLa[d]),c++);var e=a.storedEventsCount;e!==void 0&&(Pk(b,2,e),c++);var f=a.expiredEventsCount;f!==void 0&&(Pk(b,3,f),c++);var h=a.averageTimeBetweenDispatchesMs;h!==void 0&&(Pk(b,4,h),c++);var l=a.oldestStoredEventAgeMs;l!==void 0&&(Pk(b,5,l),c++);var m=a.metricIntervalMs;m!==void 0&&(Pk(b,6,m),c++);var n=a.dispatchedEventCount;n!==void 0&&(Pk(b,7,n),c++);var p=a.dispatchAttemptCount;p!==void 0&&(Pk(b,8,p),c++);var q=a.withDiskSpaceMs;
q!==void 0&&(Rk(b,9,q),c++);var r=a.withNetworkMs;r!==void 0&&(Rk(b,10,r),c++);var t=a.foregroundMs;t!==void 0&&(Rk(b,11,t),c++);var u=a.activeMs;u!==void 0&&(Rk(b,12,u),c++);var w=a.condensedPageBcSlackCount;w!==void 0&&(Pk(b,13,w),c++);var A=a.persistedDeleteUsedCount;A!==void 0&&(Pk(b,14,A),c++);var C=a.persistedDeleteCount;C!==void 0&&(Pk(b,15,C),c++);var F=a.eventDisabledCount;F!==void 0&&(Pk(b,16,F),c++);var G=a.identityResolutionErrorCount;G!==void 0&&(Pk(b,17,G),c++);var K=a.exceededMaxRetryCount;
K!==void 0&&(Pk(b,18,K),c++);var N=a.condensedPageBcPersistFailCount;N!==void 0&&(Pk(b,19,N),c++);var R=a.couldNotUnloadPageCount;R!==void 0&&(Pk(b,20,R),c++);var da=a.pageWasCorruptedCount;da!==void 0&&(Pk(b,24,da),c++);var oa=a.badEventIndexCount;oa!==void 0&&(Pk(b,27,oa),c++);var qa=a.serializeErrorCount;qa!==void 0&&(Pk(b,25,qa),c++);var ha=a.payloadInfoNotSetCount;ha!==void 0&&(Pk(b,21,ha),c++);var ta=a.requestEmptyErrorCount;ta!==void 0&&(Pk(b,22,ta),c++);var P=a.clientEventNotSetCount;P!==
void 0&&(Pk(b,23,P),c++);var ua=a.differentIdCount;ua!==void 0&&(Pk(b,26,ua),c++);var y=a.failedWriteCount;y!==void 0&&(Pk(b,28,y),c++);var Z=a.failedReadCount;Z!==void 0&&(Pk(b,29,Z),c++);var cb=a.failedDispatchCount;cb!==void 0&&(Pk(b,30,cb),c++);var La=a.failedFetchCount;La!==void 0&&(Pk(b,31,La),c++);var $a=a.loggingliteLogsMoved;$a!==void 0&&(Pk(b,32,$a),c++);var Ya=a.loggingliteLogsDropped;Ya!==void 0&&(Pk(b,33,Ya),c++);return[c===Object.keys(a).length,b]}catch(Ha){return Y(Ha),[!1,void 0]}};
aO=function(a){var b=new lz,c=0;try{var d=a.trackingParams;d!==void 0&&(b.setTrackingParams(d),c++);var e=a.veType;e!==void 0&&(Pk(b,2,e),c++);var f=a.elementIndex;f!==void 0&&(Pk(b,3,f),c++);var h=a.veCounter;h!==void 0&&(Pk(b,6,h),c++);var l=a.dataElement;if(l){var m=aO(l);m[0]&&(gk(b,lz,7,m[1]),c++)}var n=a.isCounterfactual;n!==void 0&&(Ok(b,5,n),c++);var p=a.youtubeData;if(p){a:{var q=new vx,r=0;try{var t=p.channelData;if(t){b:{var u=new ina,w=0;try{var A=t.externalId;A!==void 0&&(Vk(u,1,A),w++);
var C=[w===Object.keys(t).length,u];break b}catch(Pa){Y(Pa);C=[!1,void 0];break b}}var F=C;F[0]&&(gk(q,ina,2,F[1]),r++)}var G=p.channelItem;if(G){b:{var K=new jna,N=0;try{var R=G.externalId;R!==void 0&&(Vk(K,1,R),N++);var da=[N===Object.keys(G).length,K];break b}catch(Pa){Y(Pa);da=[!1,void 0];break b}}var oa=da;oa[0]&&(gk(q,jna,5,oa[1]),r++)}var qa=p.playlistItem;if(qa){b:{var ha=new xna,ta=0;try{var P=qa.externalPlaylistId;P!==void 0&&(Vk(ha,5,P),ta++);var ua=[ta===Object.keys(qa).length,ha];break b}catch(Pa){Y(Pa);
ua=[!1,void 0];break b}}var y=ua;y[0]&&(gk(q,xna,6,y[1]),r++)}var Z=p.analyticsData;if(Z){b:{var cb=new gna,La=0;try{var $a=Z.tabName;$a!==void 0&&(T(cb,1,lLa[$a]),La++);var Ya=Z.analysisVariant;if(Ya){c:{var Ha=new Yma,Ta=0;try{var ob=Ya.analysisSummary;if(ob){d:{var B=new Rw,E=0;try{var D=ob.type;D!==void 0&&(T(B,1,mLa[D]),E++);var J=ob.eligibility;J!==void 0&&(T(B,2,nLa[J]),E++);var L=ob.sentiment;L!==void 0&&(T(B,3,oLa[L]),E++);var aa=[E===Object.keys(ob).length,B];break d}catch(Pa){Y(Pa);aa=
[!1,void 0];break d}}var fa=aa;fa[0]&&(gk(Ha,Rw,1,fa[1]),Ta++)}var ia=Ya.videoPerformanceVariant;if(ia){var O=pLa(ia);O[0]&&(hk(Ha,Ww,2,bO,O[1]),Ta++)}var ka=Ya.videoOverviewVariant;if(ka){d:{var la=new Wma,za=0;try{var Sa=ka.timePeriod;Sa!==void 0&&(T(la,1,cO[Sa]),za++);var gb=ka.videoPerformanceVariant;if(gb){var Ab=pLa(gb);Ab[0]&&(gk(la,Ww,2,Ab[1]),za++)}var pb=ka.durationTimePeriod;pb!==void 0&&(T(la,3,qLa[pb]),za++);var Za=[za===Object.keys(ka).length,la];break d}catch(Pa){Y(Pa);Za=[!1,void 0];
break d}Za=void 0}var qc=Za;qc[0]&&(hk(Ha,Wma,3,bO,qc[1]),Ta++)}var ac=Ya.channelFluctuationVariant;if(ac){d:{var bc=new Sw,nc=0;try{var Wc=ac.views;Wc!==void 0&&(T(bc,1,dO[Wc]),nc++);var Yb=ac.driver;Yb!==void 0&&(T(bc,2,rLa[Yb]),nc++);var wc=ac.ctr;wc!==void 0&&(T(bc,3,dO[wc]),nc++);var $c=ac.impressions;$c!==void 0&&(T(bc,4,dO[$c]),nc++);var Pc=ac.viewsPerVideo;Pc!==void 0&&(T(bc,5,dO[Pc]),nc++);var uc=[nc===Object.keys(ac).length,bc];break d}catch(Pa){Y(Pa);uc=[!1,void 0];break d}}var Tb=uc;Tb[0]&&
(hk(Ha,Sw,4,bO,Tb[1]),Ta++)}var Ub=Ya.artistOverviewVariant;if(Ub){d:{var zd=new Nma,rd=0;try{var sd=Ub.timePeriod;sd!==void 0&&(T(zd,1,cO[sd]),rd++);var $b=Ub.variantType;$b!==void 0&&(T(zd,2,sLa[$b]),rd++);var Fc=[rd===Object.keys(Ub).length,zd];break d}catch(Pa){Y(Pa);Fc=[!1,void 0];break d}}var Hb=Fc;Hb[0]&&(hk(Ha,Nma,5,bO,Hb[1]),Ta++)}var cd=Ya.monthlySubsVariant;if(cd){var Ad=tLa(cd);Ad[0]&&(hk(Ha,Vw,6,bO,Ad[1]),Ta++)}var Pb=Ya.monthlyRevenueVariant;if(Pb){var he=uLa(Pb);he[0]&&(hk(Ha,Uw,7,
bO,he[1]),Ta++)}var Ud=Ya.holisticMonthlyOverviewVariant;if(Ud){d:{var Vd=new Rma,Ce=0;try{var De=Ud.viewsPerformance;if(De){var Ld=vLa(De);Ld[0]&&(gk(Vd,Tw,1,Ld[1]),Ce++)}var bf=Ud.subsPerformance;if(bf){var Qe=tLa(bf);Qe[0]&&(gk(Vd,Vw,2,Qe[1]),Ce++)}var Md=Ud.revenuePerformance;if(Md){var Ff=uLa(Md);Ff[0]&&(gk(Vd,Uw,3,Ff[1]),Ce++)}var Nd=[Ce===Object.keys(Ud).length,Vd];break d}catch(Pa){Y(Pa);Nd=[!1,void 0];break d}Nd=void 0}var ie=Nd;ie[0]&&(hk(Ha,Rma,8,bO,ie[1]),Ta++)}var ad=Ya.personalizedChannelOverviewVariant;
if(ad){d:{var ld=new Vma,td=0;try{var Wd=ad.timePeriod;Wd!==void 0&&(T(ld,1,cO[Wd]),td++);var Vf=ad.viewsPerformance;if(Vf){var qf=vLa(Vf);qf[0]&&(gk(ld,Tw,2,qf[1]),td++)}var Gf=[td===Object.keys(ad).length,ld];break d}catch(Pa){Y(Pa);Gf=[!1,void 0];break d}Gf=void 0}var Ee=Gf;Ee[0]&&(hk(Ha,Vma,9,bO,Ee[1]),Ta++)}var Vb=Ya.channelNewReturningVariant;if(Vb){d:{var Fe=new Pma,gh=0;try{var Rh=Vb.uniqueViewers;Rh!==void 0&&(T(Fe,1,dO[Rh]),gh++);var Sh=Vb.newViewers;Sh!==void 0&&(T(Fe,2,dO[Sh]),gh++);var Th=
Vb.returningViewers;Th!==void 0&&(T(Fe,3,dO[Th]),gh++);var sf=[gh===Object.keys(Vb).length,Fe];break d}catch(Pa){Y(Pa);sf=[!1,void 0];break d}}var hf=sf;hf[0]&&(hk(Ha,Pma,10,bO,hf[1]),Ta++)}var He=Ya.lowReturningViewersDataStoryVariant;if(He){d:{var Uh=new Sma,vc=0;try{var yc=He.videoListType;yc!==void 0&&(T(Uh,1,wLa[yc]),vc++);var Jc=[vc===Object.keys(He).length,Uh];break d}catch(Pa){Y(Pa);Jc=[!1,void 0];break d}}var mj=Jc;mj[0]&&(hk(Ha,Sma,11,bO,mj[1]),Ta++)}var tf=Ya.weeklyDataStoryVariant;if(tf){d:{var qg=
new Xma,rg=0;try{var Og=tf.dateId;Og!==void 0&&(Qk(qg,1,Og),rg++);var nd=[rg===Object.keys(tf).length,qg];break d}catch(Pa){Y(Pa);nd=[!1,void 0];break d}}var sg=nd;sg[0]&&(hk(Ha,Xma,12,bO,sg[1]),Ta++)}var tg=Ya.monthlyDataStoryVariant;if(tg){d:{var Pg=new Tma,ug=0;try{var Vh=tg.dateId;Vh!==void 0&&(Qk(Pg,1,Vh),ug++);var uf=tg.highlightType;uf!==void 0&&(T(Pg,2,xLa[uf]),ug++);var Te=tg.adviceType;Te!==void 0&&(T(Pg,3,yLa[Te]),ug++);var vg=tg.revenueInsightType;vg!==void 0&&(T(Pg,4,zLa[vg]),ug++);var Wh=
[ug===Object.keys(tg).length,Pg];break d}catch(Pa){Y(Pa);Wh=[!1,void 0];break d}}var Xh=Wh;Xh[0]&&(hk(Ha,Tma,13,bO,Xh[1]),Ta++)}var Ue=Ya.otherFormatsDataStoryVariant;if(Ue){d:{var jh=new Uma,Qg=0;try{var nj=Ue.overlapShorts;nj!==void 0&&(Qk(jh,1,nj),Qg++);var Qd=Ue.overlapChannels;Qd!==void 0&&(Qk(jh,2,Qd),Qg++);var Ve=[Qg===Object.keys(Ue).length,jh];break d}catch(Pa){Y(Pa);Ve=[!1,void 0];break d}}var me=Ve;me[0]&&(hk(Ha,Uma,14,bO,me[1]),Ta++)}var Hi=Ya.audienceWatchesLongformDataStoryVariant;if(Hi){d:{var jf=
new Oma,kf=0;try{var vf=Hi.hasOverlapVideo;vf!==void 0&&(Ok(jf,1,vf),kf++);var Zf=Hi.hasOverlapLivestream;Zf!==void 0&&(Ok(jf,2,Zf),kf++);var Rg=Hi.overlapChannels;Rg!==void 0&&(Qk(jf,3,Rg),kf++);var Ie=[kf===Object.keys(Hi).length,jf];break d}catch(Pa){Y(Pa);Ie=[!1,void 0];break d}}var lf=Ie;lf[0]&&(hk(Ha,Oma,15,bO,lf[1]),Ta++)}var Jf=Ya.contentInspirationDataStoryVariant;if(Jf){d:{var Ii=new Qma,oj=0;try{var om=Jf.hasVideoOverlapData;om!==void 0&&(Ok(Ii,1,om),oj++);var pm=Jf.hasChannelOverlapData;
pm!==void 0&&(Ok(Ii,2,pm),oj++);var ok=Jf.hasSearchTermsData;ok!==void 0&&(Ok(Ii,3,ok),oj++);var pk=[oj===Object.keys(Jf).length,Ii];break d}catch(Pa){Y(Pa);pk=[!1,void 0];break d}}var pj=pk;pj[0]&&(hk(Ha,Qma,16,bO,pj[1]),Ta++)}var We=[Ta===Object.keys(Ya).length,Ha];break c}catch(Pa){Y(Pa);We=[!1,void 0];break c}We=void 0}var Je=We;Je[0]&&(gk(cb,Yma,12,Je[1]),La++)}var $d=Z.cardConfig;if($d){c:{var kh=new $ma,Yh=0;try{var qj=$d.cardType;qj!==void 0&&(T(kh,3,ALa[qj]),Yh++);var ql=$d.legacyMobileCardType;
ql!==void 0&&(T(kh,5,BLa[ql]),Yh++);var Kf=$d.entityType;Kf!==void 0&&(T(kh,4,CLa[Kf]),Yh++);var Zh=$d.tableCardConfig;if(Zh){d:{var Sg=new Yw,$h=0;try{var Ji=Zh.dimension;Ji!==void 0&&(T(Sg,1,eO[Ji]),$h++);var qk=Zh.metrics;qk!==void 0&&($N(Sg.j.bind(Sg),qk,eO),$h++);var rk=[$h===Object.keys(Zh).length,Sg];break d}catch(Pa){Y(Pa);rk=[!1,void 0];break d}}var $f=rk;$f[0]&&(hk(kh,Yw,1,DLa,$f[1]),Yh++)}var rj=$d.keyMetricCardConfig;if(rj){d:{var lh=new Xw,sj=0;try{var mh=rj.metricTabConfigs;mh&&(ZN(lh.j.bind(lh),
mh,ELa),sj++);var Tg=[sj===Object.keys(rj).length,lh];break d}catch(Pa){Y(Pa);Tg=[!1,void 0];break d}}var tj=Tg;tj[0]&&(hk(kh,Xw,2,DLa,tj[1]),Yh++)}var rl=[Yh===Object.keys($d).length,kh];break c}catch(Pa){Y(Pa);rl=[!1,void 0];break c}rl=void 0}var qm=rl;qm[0]&&(gk(cb,$ma,13,qm[1]),La++)}var uj=Z.externalVideoId;uj!==void 0&&(S(cb,15,uj),La++);var sk=Z.videoSid;sk!==void 0&&(Rk(cb,16,sk),La++);var Ed=Z.exploreConfig;if(Ed){c:{var ag=new $w,wg=0;try{var sl=Ed.metrics;sl!==void 0&&($N(ag.j.bind(ag),
sl,eO),wg++);var tk=Ed.dimension;tk!==void 0&&(T(ag,2,eO[tk]),wg++);var uk=Ed.timePeriodType;uk!==void 0&&(T(ag,3,cO[uk]),wg++);var mc=[wg===Object.keys(Ed).length,ag];break c}catch(Pa){Y(Pa);mc=[!1,void 0];break c}}var rm=mc;rm[0]&&(gk(cb,$w,18,rm[1]),La++)}var tl=Z.contentInspirationEntity;if(tl){c:{var ul=new Qw,vj=0;try{var up=tl.video;if(up){d:{var wj=new Mma,xj=0;try{var yj=up.externalVideoId;yj!==void 0&&(S(wj,1,yj),xj++);var vp=[xj===Object.keys(up).length,wj];break d}catch(Pa){Y(Pa);vp=[!1,
void 0];break d}}var En=vp;En[0]&&(hk(ul,Mma,1,fO,En[1]),vj++)}var Zq=tl.kgTopic;if(Zq){d:{var $q=new Lma,ar=0;try{var vl=Zq.kgTopicMid;vl!==void 0&&(S($q,1,vl),ar++);var sm=[ar===Object.keys(Zq).length,$q];break d}catch(Pa){Y(Pa);sm=[!1,void 0];break d}}var vk=sm;vk[0]&&(hk(ul,Lma,2,fO,vk[1]),vj++)}var zj=tl.freeformTopic;if(zj){d:{var ai=new Jma,nh=0;try{var wl=zj.freeformTopic;wl!==void 0&&(S(ai,1,wl),nh++);var wp=zj.languageCode;wp!==void 0&&(S(ai,4,wp),nh++);var xp=zj.isContentGap;xp!==void 0&&
(Ok(ai,2,xp),nh++);var br=zj.isShortsContentGap;br!==void 0&&(Ok(ai,3,br),nh++);var yp=zj.isInVideoIdeaShelf;yp!==void 0&&(Ok(ai,5,yp),nh++);var Fn=[nh===Object.keys(zj).length,ai];break d}catch(Pa){Y(Pa);Fn=[!1,void 0];break d}}var cr=Fn;cr[0]&&(hk(ul,Jma,3,fO,cr[1]),vj++)}var oh=tl.generatedOutline;if(oh){d:{var bi=new Kma,ae=0;try{var ci=oh.feedbackToken;ci!==void 0&&(S(bi,1,ci),ae++);var bg=[ae===Object.keys(oh).length,bi];break d}catch(Pa){Y(Pa);bg=[!1,void 0];break d}}var di=bg;di[0]&&(hk(ul,
Kma,4,fO,di[1]),vj++)}var ph=[vj===Object.keys(tl).length,ul];break c}catch(Pa){Y(Pa);ph=[!1,void 0];break c}ph=void 0}var dr=ph;dr[0]&&(gk(cb,Qw,19,dr[1]),La++)}var tm=[La===Object.keys(Z).length,cb];break b}catch(Pa){Y(Pa);tm=[!1,void 0];break b}tm=void 0}var Gn=tm;Gn[0]&&(gk(q,gna,20,Gn[1]),r++)}var Hn=p.promotionData;if(Hn){b:{var In=new yna,um=0;try{var er=Hn.promotionId;er!==void 0&&(S(In,1,er),um++);var Ki=Hn.placementType;Ki!==void 0&&(T(In,9,FLa[Ki]),um++);var Li=[um===Object.keys(Hn).length,
In];break b}catch(Pa){Y(Pa);Li=[!1,void 0];break b}}var wk=Li;wk[0]&&(gk(q,yna,21,wk[1]),r++)}var xl=p.backstageItem;if(xl){b:{var vm=new hna,wm=0;try{var zp=xl.stanzaId;zp!==void 0&&(S(vm,1,zp),wm++);var Ap=xl.likeCount;Ap!==void 0&&(Rk(vm,7,Ap),wm++);var Bp=xl.backstageId;Bp!==void 0&&(S(vm,9,Bp),wm++);var Jn=xl.wasPostScheduled;Jn!==void 0&&(Ok(vm,14,Jn),wm++);var Kn=[wm===Object.keys(xl).length,vm];break b}catch(Pa){Y(Pa);Kn=[!1,void 0];break b}}var Sc=Kn;Sc[0]&&(gk(q,hna,32,Sc[1]),r++)}var ne=
p.adminSelfieData;if(ne){b:{var qh=new ena,ei=0;try{var Ln=ne.componentId;Ln!==void 0&&(S(qh,1,Ln),ei++);var Cp=ne.componentType;Cp!==void 0&&(S(qh,2,Cp),ei++);var xm=ne.payload;if(xm){c:{var ym=new dna,zm=0;try{var Mn=xm.include;if(Mn){d:{var fr=new ana,Dp=0;try{var xk=Mn.fragmentName;xk!==void 0&&(S(fr,1,xk),Dp++);var fi=[Dp===Object.keys(Mn).length,fr];break d}catch(Pa){Y(Pa);fi=[!1,void 0];break d}}var yk=fi;yk[0]&&(hk(ym,ana,1,GLa,yk[1]),zm++)}var Am=xm.toolboxPage;if(Am){d:{var Bm=new cna,Ep=
0;try{var Aj=Am.fragmentName;Aj!==void 0&&(S(Bm,1,Aj),Ep++);var zk=[Ep===Object.keys(Am).length,Bm];break d}catch(Pa){Y(Pa);zk=[!1,void 0];break d}}var Bj=zk;Bj[0]&&(hk(ym,cna,2,GLa,Bj[1]),zm++)}var Fp=xm.reviewQueuePage;if(Fp){d:{var gr=new bna,yl=0;try{var zl=Fp.queueId;zl!==void 0&&(Pk(gr,1,zl),yl++);var Al=[yl===Object.keys(Fp).length,gr];break d}catch(Pa){Y(Pa);Al=[!1,void 0];break d}}var Bl=Al;Bl[0]&&(hk(ym,bna,3,GLa,Bl[1]),zm++)}var Gp=[zm===Object.keys(xm).length,ym];break c}catch(Pa){Y(Pa);
Gp=[!1,void 0];break c}Gp=void 0}var Hp=Gp;Hp[0]&&(gk(qh,dna,3,Hp[1]),ei++)}var Ak=[ei===Object.keys(ne).length,qh];break b}catch(Pa){Y(Pa);Ak=[!1,void 0];break b}Ak=void 0}var Cl=Ak;Cl[0]&&(gk(q,ena,41,Cl[1]),r++)}var Cm=p.notificationState;if(Cm){b:{var Nn=new Ina,Dm=0;try{var On=Cm.inboxInteractionData;if(On){c:{var Pn=new qx,hr=0;try{var Qn=On.notifications;Qn&&(ZN(Pn.j.bind(Pn),Qn,HLa),hr++);var rh=[hr===Object.keys(On).length,Pn];break c}catch(Pa){Y(Pa);rh=[!1,void 0];break c}}var Dl=rh;Dl[0]&&
(gk(Nn,qx,9,Dl[1]),Dm++)}var El=[Dm===Object.keys(Cm).length,Nn];break b}catch(Pa){Y(Pa);El=[!1,void 0];break b}El=void 0}var xg=El;xg[0]&&(gk(q,Ina,59,xg[1]),r++)}var sh=p.delegationContext;if(sh){b:{var gi=new wna,Mi=0;try{var Em=sh.externalChannelId;Em!==void 0&&(S(gi,1,Em),Mi++);var Fl=sh.externalOwnerId;Fl!==void 0&&(S(gi,3,Fl),Mi++);var Ni=sh.artistId;Ni!==void 0&&(S(gi,4,Ni),Mi++);var Fm=sh.roleType;if(Fm){c:{var hi=new vna,Cj=0;try{var Dj=Fm.channelRoleType;Dj!==void 0&&(Wk(hi,1,ILa,JLa[Dj]),
Cj++);var ir=Fm.artistRoleType;ir!==void 0&&(Wk(hi,2,ILa,KLa[ir]),Cj++);var Ej=Fm.contentOwnerRoleType;Ej!==void 0&&(Wk(hi,3,ILa,LLa[Ej]),Cj++);var Bk=[Cj===Object.keys(Fm).length,hi];break c}catch(Pa){Y(Pa);Bk=[!1,void 0];break c}}var Gl=Bk;Gl[0]&&(gk(gi,vna,5,Gl[1]),Mi++)}var Rn=sh.oacChannelId;Rn!==void 0&&(S(gi,6,Rn),Mi++);var Hl=sh.isInternalUser;Hl!==void 0&&(Ok(gi,8,Hl),Mi++);var Gm=sh.user;Gm!==void 0&&(Ok(gi,10,Gm),Mi++);var Hm=sh.delegationContextSerialized;Hm!==void 0&&(Vk(gi,9,Hm),Mi++);
var Ip=[Mi===Object.keys(sh).length,gi];break b}catch(Pa){Y(Pa);Ip=[!1,void 0];break b}Ip=void 0}var Sn=Ip;Sn[0]&&(gk(q,wna,63,Sn[1]),r++)}var Tn=p.campaignData;if(Tn){b:{var jr=new Gna,Il=0;try{var Un=Tn.campaignName;Un!==void 0&&(S(jr,1,Un),Il++);var Vn=Tn.campaignVersion;Vn!==void 0&&(S(jr,2,Vn),Il++);var Wn=[Il===Object.keys(Tn).length,jr];break b}catch(Pa){Y(Pa);Wn=[!1,void 0];break b}}var Jp=Wn;Jp[0]&&(gk(q,Gna,64,Jp[1]),r++)}var Im=p.scoringEventInfo;if(Im){b:{var Kp=new zna,Lp=0;try{var Mp=
Im.scoringTrackingParams;Mp!==void 0&&(Vk(Kp,1,Mp),Lp++);var Np=[Lp===Object.keys(Im).length,Kp];break b}catch(Pa){Y(Pa);Np=[!1,void 0];break b}}var Jm=Np;Jm[0]&&(gk(q,zna,77,Jm[1]),r++)}var Jl=p.servletData;if(Jl){b:{var Xn=new Ana,Yn=0;try{var Op=Jl.serializedServletEventId;Op!==void 0&&(S(Xn,1,Op),Yn++);var Zn=[Yn===Object.keys(Jl).length,Xn];break b}catch(Pa){Y(Pa);Zn=[!1,void 0];break b}}var kr=Zn;kr[0]&&(gk(q,Ana,83,kr[1]),r++)}var Pp=p.yoodleData;if(Pp){b:{var $n=new Fna,lr=0;try{var oe=Pp.promoId;
oe!==void 0&&(S($n,1,oe),lr++);var we=[lr===Object.keys(Pp).length,$n];break b}catch(Pa){Y(Pa);we=[!1,void 0];break b}}var Ke=we;Ke[0]&&(gk(q,Fna,85,Ke[1]),r++)}var ao=p.videoRestrictionData;if(ao){b:{var bo=new px,Qp=0;try{var co=ao.restrictions;co&&(ZN(bo.j.bind(bo),co,MLa),Qp++);var Km=ao.prechecksPending;Km!==void 0&&(Ok(bo,2,Km),Qp++);var Rp=[Qp===Object.keys(ao).length,bo];break b}catch(Pa){Y(Pa);Rp=[!1,void 0];break b}}var Sp=Rp;Sp[0]&&(gk(q,px,92,Sp[1]),r++)}var Oi=p.creatorMusicData;if(Oi){b:{var ii=
new ix,Pi=0;try{var Tp=Oi.entity;if(Tp){var Up=NLa(Tp);Up[0]&&(gk(ii,hx,1,Up[1]),Pi++)}var Lm=Oi.entities;Lm&&(ZN(ii.j.bind(ii),Lm,NLa),Pi++);var eo=Oi.track;if(eo){var fo=OLa(eo);fo[0]&&(hk(ii,gx,3,gO,fo[1]),Pi++)}var Vp=Oi.artist;if(Vp){c:{var Fj=new qna,Mm=0;try{var Qi=Vp.details;if(Qi){d:{var go=new ax,ho=0;try{var mr=Qi.kgMid;mr!==void 0&&(S(go,1,mr),ho++);var nr=Qi.name;nr!==void 0&&(S(go,2,nr),ho++);var Ri=[ho===Object.keys(Qi).length,go];break d}catch(Pa){Y(Pa);Ri=[!1,void 0];break d}}var Kl=
Ri;Kl[0]&&(gk(Fj,ax,1,Kl[1]),Mm++)}var Gj=[Mm===Object.keys(Vp).length,Fj];break c}catch(Pa){Y(Pa);Gj=[!1,void 0];break c}Gj=void 0}var or=Gj;or[0]&&(hk(ii,qna,5,gO,or[1]),Pi++)}var io=Oi.licensePurchase;if(io){c:{var Wp=new tna,jo=0;try{var pr=io.assetId;pr!==void 0&&(S(Wp,1,pr),jo++);var ko=io.artTrackId;ko!==void 0&&(S(Wp,2,ko),jo++);var Xp=[jo===Object.keys(io).length,Wp];break c}catch(Pa){Y(Pa);Xp=[!1,void 0];break c}}var Ck=Xp;Ck[0]&&(hk(ii,tna,6,gO,Ck[1]),Pi++)}var Si=Oi.claim;if(Si){c:{var Nm=
new rna,Ll=0;try{var yg=Si.assetId;yg!==void 0&&(S(Nm,1,yg),Ll++);var Lf=[Ll===Object.keys(Si).length,Nm];break c}catch(Pa){Y(Pa);Lf=[!1,void 0];break c}}var ji=Lf;ji[0]&&(hk(ii,rna,7,gO,ji[1]),Pi++)}var Om=Oi.collection;if(Om){var Dk=PLa(Om);Dk[0]&&(hk(ii,fx,4,gO,Dk[1]),Pi++)}var Ek=[Pi===Object.keys(Oi).length,ii];break b}catch(Pa){Y(Pa);Ek=[!1,void 0];break b}Ek=void 0}var pe=Ek;pe[0]&&(gk(q,ix,96,pe[1]),r++)}var Mf=p.creatorData;if(Mf){b:{var th=new pna,ki=0;try{var qr=Mf.ttWizardTargetFeature;
qr!==void 0&&(Wk(th,1,QLa,RLa[qr]),ki++);var Fk=Mf.ttWizardTargetLevel;Fk!==void 0&&(Wk(th,2,QLa,SLa[Fk]),ki++);var rr=Mf.simpleWizardDetails;if(rr){var bt=new ona;try{var sr=[0===Object.keys(rr).length,bt]}catch(Pa){Y(Pa),sr=[!1,void 0]}var tr=sr;tr[0]&&(hk(th,ona,3,TLa,tr[1]),ki++)}var Ml=Mf.advancedWizardDetails;if(Ml){c:{var Yp=new mna,lo=0;try{var mo=Ml.isDoubleHop;mo!==void 0&&(Ok(Yp,1,mo),lo++);var Gk=[lo===Object.keys(Ml).length,Yp];break c}catch(Pa){Y(Pa);Gk=[!1,void 0];break c}}var ur=Gk;
ur[0]&&(hk(th,mna,4,TLa,ur[1]),ki++)}var Nl=Mf.blockedWizardDetails;if(Nl){c:{var Ol=new nna,no=0;try{var Hj=Nl.loggableBlockedReason;Hj!==void 0&&(T(Ol,1,ULa[Hj]),no++);var Hk=[no===Object.keys(Nl).length,Ol];break c}catch(Pa){Y(Pa);Hk=[!1,void 0];break c}}var Pm=Hk;Pm[0]&&(hk(th,nna,5,TLa,Pm[1]),ki++)}var oo=[ki===Object.keys(Mf).length,th];break b}catch(Pa){Y(Pa);oo=[!1,void 0];break b}oo=void 0}var po=oo;po[0]&&(gk(q,pna,98,po[1]),r++)}var Pl=p.adstubeData;if(Pl){b:{var vr=new fna,Zp=0;try{var Ug=
Pl.countryTargetingPrefill;if(Ug){c:{var Ql=new Zw,Ij=0;try{var Rl=Ug.prefilledCodes;Rl&&(ZN(Ql.B.bind(Ql),Rl),Ij++);var Sl=Ug.finalCodes;Sl&&(ZN(Ql.j.bind(Ql),Sl),Ij++);var qo=Ug.source;qo!==void 0&&(S(Ql,3,qo),Ij++);var $p=[Ij===Object.keys(Ug).length,Ql];break c}catch(Pa){Y(Pa);$p=[!1,void 0];break c}}var ct=$p;ct[0]&&(gk(vr,Zw,1,ct[1]),Zp++)}var aq=[Zp===Object.keys(Pl).length,vr];break b}catch(Pa){Y(Pa);aq=[!1,void 0];break b}aq=void 0}var bq=aq;bq[0]&&(gk(q,fna,104,bq[1]),r++)}var Tl=p.loggingExpectations;
if(Tl){var Ti=VLa(Tl);Ti[0]&&(gk(q,ux,106,Ti[1]),r++)}var li=p.channelPageVeData;if(li){b:{var Ul=new kna,wr=0;try{var xr=li.isForYouShelf;xr!==void 0&&(Ok(Ul,2,xr),wr++);var ro=[wr===Object.keys(li).length,Ul];break b}catch(Pa){Y(Pa);ro=[!1,void 0];break b}}var Ik=ro;Ik[0]&&(gk(q,kna,107,Ik[1]),r++)}var so=p.shoppingAffiliateData;if(so){b:{var cq=new Bna,dq=0;try{var eq=so.affiliateDeepLinkSource;eq!==void 0&&(T(cq,1,WLa[eq]),dq++);var Ui=[dq===Object.keys(so).length,cq];break b}catch(Pa){Y(Pa);
Ui=[!1,void 0];break b}}var Jk=Ui;Jk[0]&&(gk(q,Bna,109,Jk[1]),r++)}var Vl=p.hashtagSuggestionData;if(Vl){b:{var dt=new nx,kv=0;try{var Tx=Vl.hashtagId;Tx!==void 0&&(S(dt,1,Tx),kv++);var lv=Vl.suggestionSources;lv!==void 0&&($N(dt.j.bind(dt),lv,XLa),kv++);var mv=[kv===Object.keys(Vl).length,dt];break b}catch(Pa){Y(Pa);mv=[!1,void 0];break b}}var nv=mv;nv[0]&&(gk(q,nx,111,nv[1]),r++)}var et=p.componentData;if(et){b:{var Ux=new lna,yr=0;try{var ft=et.standardComponentType;ft!==void 0&&(T(Ux,1,YLa[ft]),
yr++);var zr=[yr===Object.keys(et).length,Ux];break b}catch(Pa){Y(Pa);zr=[!1,void 0];break b}}var Vx=zr;Vx[0]&&(gk(q,lna,121,Vx[1]),r++)}var gt=p.creatorShoppingTaggingData;if(gt){b:{var Ar=new mx,ht=0;try{var Wx=gt.products;Wx&&(ZN(Ar.j.bind(Ar),Wx,ZLa),ht++);var ov=gt.taggedVideos;ov&&(ZN(Ar.B.bind(Ar),ov,$La),ht++);var pv=[ht===Object.keys(gt).length,Ar];break b}catch(Pa){Y(Pa);pv=[!1,void 0];break b}}var Xx=pv;Xx[0]&&(gk(q,mx,122,Xx[1]),r++)}var qv=[r===Object.keys(p).length,q];break a}catch(Pa){Y(Pa);
qv=[!1,void 0];break a}qv=void 0}var Yx=qv;Yx[0]&&(gk(b,vx,8,Yx[1]),c++)}var rv=a.loggingExpectations;if(rv){var Zx=VLa(rv);Zx[0]&&(gk(b,ux,9,Zx[1]),c++)}return[c===Object.keys(a).length,b]}catch(Pa){return Y(Pa),[!1,void 0]}};
pLa=function(a){var b=new Ww,c=0;try{var d=a.views;d!==void 0&&(T(b,1,dO[d]),c++);var e=a.driver;e!==void 0&&(T(b,2,aMa[e]),c++);var f=a.ctr;f!==void 0&&(T(b,3,dO[f]),c++);var h=a.avd;h!==void 0&&(T(b,4,dO[h]),c++);var l=a.impressions;l!==void 0&&(T(b,5,dO[l]),c++);var m=a.videoLength;m!==void 0&&(T(b,6,dO[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
tLa=function(a){var b=new Vw,c=0;try{var d=a.subsGrowth;d!==void 0&&(T(b,1,dO[d]),c++);var e=a.nonSubViews;e!==void 0&&(T(b,2,dO[e]),c++);var f=a.subsAddedPerNonSubViews;f!==void 0&&(T(b,3,dO[f]),c++);var h=a.accountsClosed;h!==void 0&&(T(b,4,dO[h]),c++);var l=a.subsRemovedToAddedRatio;l!==void 0&&(T(b,5,dO[l]),c++);var m=a.videosPublished;m!==void 0&&(T(b,6,dO[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
uLa=function(a){var b=new Uw,c=0;try{var d=a.revenue;d!==void 0&&(T(b,1,dO[d]),c++);var e=a.revenueSource;e!==void 0&&(T(b,2,bMa[e]),c++);var f=a.revenueDrivingMetrics;f!==void 0&&($N(b.j.bind(b),f,cMa),c++);var h=a.revenueChangeReason;h!==void 0&&(T(b,4,dMa[h]),c++);var l=a.revenueChangeFact;l!==void 0&&(T(b,5,eMa[l]),c++);var m=a.driverCountryCode;m!==void 0&&(S(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
vLa=function(a){var b=new Tw,c=0;try{var d=a.views;d!==void 0&&(T(b,1,dO[d]),c++);var e=a.drivers;e!==void 0&&($N(b.j.bind(b),e,fMa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
ELa=function(a){var b=new Zma,c=0;try{var d=a.metric;d!==void 0&&(T(b,1,eO[d]),c++);var e=a.comparisonMetric;e!==void 0&&(T(b,2,eO[e]),c++);var f=a.includeCumulative;f!==void 0&&(Ok(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
HLa=function(a){var b=new Hna,c=0;try{var d=a.attributionTag;d!==void 0&&(S(b,2,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
MLa=function(a){var b=new Ena,c=0;try{var d=a.limitedAds;if(d){a:{var e=new Dna,f=0;try{var h=d.imposer;h!==void 0&&(T(e,1,gMa[h]),f++);var l=[f===Object.keys(d).length,e];break a}catch(C){Y(C);l=[!1,void 0];break a}}d=l;d[0]&&(hk(b,Dna,1,hMa,d[1]),c++)}var m=a.copyright;if(m){a:{var n=new Cna;d=0;try{var p=m.policyType;p!==void 0&&(T(n,1,iMa[p]),d++);var q=m.productTagsBlocked;q!==void 0&&(Ok(n,2,q),d++);var r=[d===Object.keys(m).length,n];break a}catch(C){Y(C);r=[!1,void 0];break a}}m=r;m[0]&&(hk(b,
Cna,2,hMa,m[1]),c++)}var t=a.communityGuidelines;if(t){a:{var u=new ox;m=0;try{var w=t.policyVerticals;w!==void 0&&($N(u.j.bind(u),w,jMa),m++);var A=[m===Object.keys(t).length,u];break a}catch(C){Y(C);A=[!1,void 0];break a}}t=A;t[0]&&(hk(b,ox,3,hMa,t[1]),c++)}return[c===Object.keys(a).length,b]}catch(C){return Y(C),[!1,void 0]}};
NLa=function(a){var b=new hx,c=0;try{var d=a.featuredCollection;if(d){var e=kMa(d);e[0]&&(hk(b,bx,1,hO,e[1]),c++)}var f=a.mood;if(f){var h=lMa(f);h[0]&&(hk(b,dx,2,hO,h[1]),c++)}var l=a.genre;if(l){var m=mMa(l);m[0]&&(hk(b,cx,3,hO,m[1]),c++)}var n=a.track;if(n){var p=OLa(n);p[0]&&(hk(b,gx,4,hO,p[1]),c++)}return[c===Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
kMa=function(a){var b=new bx,c=0;try{var d=a.id;d!==void 0&&(S(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
lMa=function(a){var b=new dx,c=0;try{var d=a.type;d!==void 0&&(T(b,1,nMa[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
mMa=function(a){var b=new cx,c=0;try{var d=a.type;d!==void 0&&(T(b,1,oMa[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
OLa=function(a){var b=new gx,c=0;try{var d=a.artTrackId;d!==void 0&&(S(b,1,d),c++);var e=a.assetId;e!==void 0&&(S(b,2,e),c++);var f=a.details;if(f){var h=new sna;try{var l=[0===Object.keys(f).length,h]}catch(p){Y(p),l=[!1,void 0]}d=l;d[0]&&(gk(b,sna,3,d[1]),c++)}var m=a.parent;if(m){var n=PLa(m);n[0]&&(gk(b,fx,4,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}};
PLa=function(a){var b=new fx,c=0;try{var d=a.featuredCollection;if(d){var e=kMa(d);e[0]&&(hk(b,bx,1,iO,e[1]),c++)}var f=a.mood;if(f){var h=lMa(f);h[0]&&(hk(b,dx,2,iO,h[1]),c++)}var l=a.genre;if(l){var m=mMa(l);m[0]&&(hk(b,cx,3,iO,m[1]),c++)}var n=a.section;if(n){a:{var p=new ex;d=0;try{var q=n.type;q!==void 0&&(T(p,1,pMa[q]),d++);var r=[d===Object.keys(n).length,p];break a}catch(u){Y(u);r=[!1,void 0];break a}}n=r;n[0]&&(hk(b,ex,4,iO,n[1]),c++)}var t=a.dimension;t!==void 0&&(T(b,5,qMa[t]),c++);return[c===
Object.keys(a).length,b]}catch(u){return Y(u),[!1,void 0]}};
VLa=function(a){var b=new ux,c=0;try{var d=a.attachLoggingExpectations;if(d){a:{var e=new sx,f=0;try{var h=d.attachScreenExpectations;h&&(ZN(e.j.bind(e),h,rMa),f++);var l=[f===Object.keys(d).length,e];break a}catch(r){Y(r);l=[!1,void 0];break a}}d=l;d[0]&&(gk(b,sx,1,d[1]),c++)}var m=a.screenCreatedLoggingExpectations;if(m){a:{var n=new tx;d=0;try{var p=m.expectedParentScreens;p&&(ZN(n.j.bind(n),p,rMa),d++);var q=[d===Object.keys(m).length,n];break a}catch(r){Y(r);q=[!1,void 0];break a}}m=q;m[0]&&
(gk(b,tx,2,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(r){return Y(r),[!1,void 0]}};
rMa=function(a){var b=new rx,c=0;try{var d=a.screenVeType;d!==void 0&&(Jna(b,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
ZLa=function(a){var b=new kx,c=0;try{var d=a.taggingSource;d!==void 0&&(T(b,1,sMa[d]),c++);var e=a.id;if(e){a:{var f=new jx;d=0;try{var h=e.docid;h!==void 0&&(Sk(f,1,h),d++);var l=[d===Object.keys(e).length,f];break a}catch(A){Y(A);l=[!1,void 0];break a}}e=l;e[0]&&(gk(b,jx,2,e[1]),c++)}var m=a.skuId;if(m){a:{var n=new una;e=0;try{var p=m.merchantId;p!==void 0&&(Zj(n,1,tMa,Ai(p)),e++);var q=m.youtubeGroupId;q!==void 0&&(Zj(n,2,tMa,Fi(q)),e++);var r=m.rawMerchantOfferId;r!==void 0&&(S(n,3,r),e++);var t=
[e===Object.keys(m).length,n];break a}catch(A){Y(A);t=[!1,void 0];break a}}m=t;m[0]&&(gk(b,una,3,m[1]),c++)}var u=a.userInputUrl;u!==void 0&&(S(b,4,u),c++);var w=a.userSearchQuery;w!==void 0&&(S(b,5,w),c++);return[c===Object.keys(a).length,b]}catch(A){return Y(A),[!1,void 0]}};
$La=function(a){var b=new lx,c=0;try{var d=a.externalVideoId;d!==void 0&&(S(b,1,d),c++);var e=a.products;e&&(ZN(b.j.bind(b),e,ZLa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
wMa=function(a){var b=new Dy,c=0;try{var d=a.segments;d&&(ZN(b.j.bind(b),d,uMa),c++);var e=a.transitions;e&&(ZN(b.B.bind(b),e,vMa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
uMa=function(a){var b=new By,c=0;try{var d=a.type;d!==void 0&&(T(b,1,xMa[d]),c++);var e=a.effects;e&&(ZN(b.v7.bind(b),e,yMa),c++);var f=a.videoInfo;if(f){var h=zMa(f);h[0]&&(gk(b,Ay,3,h[1]),c++)}var l=a.audioInfo;if(l){a:{var m=new toa;d=0;try{var n=l.sourceOffsetMs;n!==void 0&&(Rk(m,1,n),d++);var p=l.sampleRateHz;p!==void 0&&(Pk(m,2,p),d++);var q=l.channelCount;q!==void 0&&(Pk(m,3,q),d++);var r=l.isRemote;r!==void 0&&(Ok(m,4,r),d++);var t=[d===Object.keys(l).length,m];break a}catch(F){Y(F);t=[!1,
void 0];break a}}l=t;l[0]&&(gk(b,toa,4,l[1]),c++)}var u=a.startTimeMs;u!==void 0&&(Rk(b,5,u),c++);var w=a.durationMs;w!==void 0&&(Sk(b,6,w),c++);var A=a.playbackRate;A!==void 0&&(b.setPlaybackRate(A),c++);var C=a.enabled;C!==void 0&&(b.setEnabled(C),c++);return[c===Object.keys(a).length,b]}catch(F){return Y(F),[!1,void 0]}};
yMa=function(a){var b=new uoa,c=0;try{var d=a.effectBaseName;d!==void 0&&(S(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
zMa=function(a){var b=new Ay,c=0;try{var d=a.resolutionWidth;d!==void 0&&(Pk(b,1,d),c++);var e=a.resolutionHeight;e!==void 0&&(Pk(b,2,e),c++);var f=a.frameRate;f!==void 0&&(Tk(b,3,f),c++);var h=a.durationMs;h!==void 0&&(Sk(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
vMa=function(a){var b=new Cy,c=0;try{var d=a.incomingSegment;if(d){var e=uMa(d);e[0]&&(gk(b,By,1,e[1]),c++)}var f=a.outgoingSegment;if(f){var h=uMa(f);h[0]&&(gk(b,By,2,h[1]),c++)}var l=a.durationMs;l!==void 0&&(Sk(b,3,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}};
AMa=function(a){var b=new roa,c=0;try{var d=a.previewWidth;d!==void 0&&(Pk(b,1,d),c++);var e=a.previewHeight;e!==void 0&&(Pk(b,2,e),c++);var f=a.fps;f!==void 0&&(Pk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
CNa=function(a){var b=new tz,c=0;try{var d=a.encryptedVideoId;d!==void 0&&(S(b,1,d),c++);var e=a.cotn;e!==void 0&&(S(b,20,e),c++);var f=a.cpn;f!==void 0&&(S(b,30,f),c++);var h=a.transferStatusType;h!==void 0&&(T(b,38,BMa[h]),c++);var l=a.statusType;l!==void 0&&(T(b,2,CMa[l]),c++);var m=a.failureReason;m!==void 0&&(T(b,3,DMa[m]),c++);var n=a.transferFailureReason;n!==void 0&&(T(b,41,EMa[n]),c++);var p=a.failureExceptionType;p!==void 0&&(S(b,37,p),c++);var q=a.totalFetchedKbytes;q!==void 0&&(Rk(b,4,
q),c++);var r=a.diskAvailableKbytes;r!==void 0&&(Rk(b,5,r),c++);var t=a.totalContentKbytes;t!==void 0&&(Rk(b,21,t),c++);var u=a.alreadyDownloadedKbytes;u!==void 0&&(Rk(b,22,u),c++);var w=a.fetchedFromCacheKbytes;w!==void 0&&(Rk(b,23,w),c++);var A=a.systemHealth;if(A){a:{var C=new dz,F=0;try{var G=A.tag;G!==void 0&&(T(C,1,FMa[G]),F++);var K=A.staticContext;if(K){b:{var N=new Doa,R=0;try{var da=K.displayDensityDpi;da!==void 0&&(Pk(N,1,da),R++);var oa=K.heightPixels;oa!==void 0&&(Pk(N,2,oa),R++);var qa=
K.widthPixels;qa!==void 0&&(Pk(N,3,qa),R++);var ha=K.memoryTotalKbytes;ha!==void 0&&(Rk(N,4,ha),R++);var ta=K.osSdkVersion;ta!==void 0&&(Pk(N,5,ta),R++);var P=K.osIncrementalVersion;P!==void 0&&(S(N,6,P),R++);var ua=K.hardwareArchitecture;ua!==void 0&&(S(N,7,ua),R++);var y=K.appVersionCode;y!==void 0&&(Pk(N,8,y),R++);var Z=K.devicePixelRatio;Z!==void 0&&(Tk(N,9,Z),R++);var cb=K.buildFingerprint;cb!==void 0&&(S(N,10,cb),R++);var La=K.socManufacturer;La!==void 0&&(S(N,11,La),R++);var $a=K.socModel;
$a!==void 0&&(S(N,12,$a),R++);var Ya=K.availableProcessors;Ya!==void 0&&(Pk(N,13,Ya),R++);var Ha=K.cpuCores;Ha!==void 0&&(Pk(N,14,Ha),R++);var Ta=K.heightPoints;Ta!==void 0&&(Pk(N,15,Ta),R++);var ob=K.widthPoints;ob!==void 0&&(Pk(N,16,ob),R++);var B=K.androidMediaPerformanceClass;B!==void 0&&(Pk(N,17,B),R++);var E=[R===Object.keys(K).length,N];break b}catch(nb){Y(nb);E=[!1,void 0];break b}}var D=E;D[0]&&(gk(C,Doa,2,D[1]),F++)}var J=A.dynamicContext;if(J){b:{var L=new Yy,aa=0;try{var fa=J.screenOn;
fa!==void 0&&(Ok(L,1,fa),aa++);var ia=J.deviceRotation;ia!==void 0&&(Pk(L,2,ia),aa++);var O=J.networkType;O!==void 0&&(Pk(L,3,O),aa++);var ka=J.networkCoarseState;ka!==void 0&&(Pk(L,4,ka),aa++);var la=J.chargingStatus;la!==void 0&&(T(L,5,GMa[la]),aa++);var za=J.isInForeground;za!==void 0&&(Ok(L,6,za),aa++);var Sa=J.viewportHeightPixels;Sa!==void 0&&(Pk(L,7,Sa),aa++);var gb=J.viewportWidthPixels;gb!==void 0&&(Pk(L,8,gb),aa++);var Ab=J.hasCoarsePointer;Ab!==void 0&&(Ok(L,9,Ab),aa++);var pb=J.hasFinePointer;
pb!==void 0&&(Ok(L,10,pb),aa++);var Za=J.hasHoverSupport;Za!==void 0&&(Ok(L,11,Za),aa++);var qc=J.deviceFreeStorageMbytes;qc!==void 0&&(Rk(L,12,qc),aa++);var ac=J.deviceStorageQuotaMbytes;ac!==void 0&&(Rk(L,13,ac),aa++);var bc=J.deviceStorageUsageMbytes;bc!==void 0&&(Rk(L,14,bc),aa++);var nc=J.processUptimeMs;nc!==void 0&&(Rk(L,15,nc),aa++);var Wc=J.hasAppShell;Wc!==void 0&&(Ok(L,16,Wc),aa++);var Yb=J.glVersion;Yb!==void 0&&(S(L,17,Yb),aa++);var wc=J.glRenderer;wc!==void 0&&(S(L,18,wc),aa++);var $c=
J.srsDatapushBuildIds;$c&&(ZN(L.B.bind(L),$c,HMa),aa++);var Pc=J.playerDatapushBuildIds;Pc&&(ZN(L.j.bind(L),Pc,IMa),aa++);var uc=J.creationContext;if(uc){c:{var Tb=new Xy,Ub=0;try{var zd=uc.activeFrontendUploadId;zd!==void 0&&(S(Tb,1,zd),Ub++);var rd=uc.inShortsCreation;rd!==void 0&&(Ok(Tb,2,rd),Ub++);var sd=uc.activeEffectLoggingIds;sd&&(ZN(Tb.j.bind(Tb),sd,JMa),Ub++);var $b=uc.activePages;$b!==void 0&&($N(Tb.B.bind(Tb),$b,KMa),Ub++);var Fc=[Ub===Object.keys(uc).length,Tb];break c}catch(nb){Y(nb);
Fc=[!1,void 0];break c}}var Hb=Fc;Hb[0]&&(gk(L,Xy,21,Hb[1]),aa++)}var cd=J.kimonoContext;if(cd){c:{var Ad=new Boa,Pb=0;try{var he=cd.cobaltUserAgent;he!==void 0&&(S(Ad,1,he),Pb++);var Ud=cd.webAppVersion;Ud!==void 0&&(S(Ad,2,Ud),Pb++);var Vd=cd.cobaltVersion;Vd!==void 0&&(S(Ad,3,Vd),Pb++);var Ce=cd.webAppInterface;Ce!==void 0&&(T(Ad,4,LMa[Ce]),Pb++);var De=cd.clientDocumentNonce;De!==void 0&&(S(Ad,5,De),Pb++);var Ld=cd.applicationState;Ld!==void 0&&(T(Ad,6,MMa[Ld]),Pb++);var bf=[Pb===Object.keys(cd).length,
Ad];break c}catch(nb){Y(nb);bf=[!1,void 0];break c}}var Qe=bf;Qe[0]&&(gk(L,Boa,22,Qe[1]),aa++)}var Md=[aa===Object.keys(J).length,L];break b}catch(nb){Y(nb);Md=[!1,void 0];break b}Md=void 0}var Ff=Md;Ff[0]&&(gk(C,Yy,3,Ff[1]),F++)}var Nd=A.serializedPrimesMetric;Nd!==void 0&&(Vk(C,4,Nd),F++);var ie=A.serializedIosPrimesMetric;ie!==void 0&&(Vk(C,6,ie),F++);var ad=A.webMetric;if(ad){b:{var ld=new Foa,td=0;try{var Wd=ad.currentHeapKbytes;Wd!==void 0&&(Pk(ld,1,Wd),td++);var Vf=ad.navigationCount;Vf!==
void 0&&(Pk(ld,2,Vf),td++);var qf=[td===Object.keys(ad).length,ld];break b}catch(nb){Y(nb);qf=[!1,void 0];break b}}var Gf=qf;Gf[0]&&(gk(C,Foa,7,Gf[1]),F++)}var Ee=A.crashData;if(Ee){b:{var Vb=new Vy,Fe=0;try{var gh=Ee.stackTrace;gh!==void 0&&(S(Vb,1,gh),Fe++);var Rh=Ee.screenVeType;Rh!==void 0&&(Pk(Vb,2,Rh),Fe++);var Sh=Ee.compactStackTrace;if(Sh){var Th=jO(Sh);Th[0]&&(gk(Vb,py,3,Th[1]),Fe++)}var sf=Ee.crashTimeMs;sf!==void 0&&(Rk(Vb,4,sf),Fe++);var hf=Ee.clientError;if(hf){c:{var He=new Uy,Uh=0;
try{var vc=hf.errorMetadata;if(vc){d:{var yc=new Ky,Jc=0;try{var mj=vc.exceptionCategory;mj!==void 0&&(T(yc,1,NMa[mj]),Jc++);var tf=vc.serviceTrackingData;if(tf){e:{var qg=new poa,rg=0;try{var Og=tf.innertubeBuildChangelist;Og!==void 0&&(Rk(qg,1,Og),rg++);var nd=tf.innertubeBuildExperimentsSourceVersion;nd!==void 0&&(Rk(qg,2,nd),rg++);var sg=tf.innertubeBuildLabel;sg!==void 0&&(S(qg,3,sg),rg++);var tg=tf.innertubeBuildTimestampSec;tg!==void 0&&(Rk(qg,4,tg),rg++);var Pg=tf.innertubeBuildVariantsChecksum;
Pg!==void 0&&(S(qg,5,Pg),rg++);var ug=tf.innertubeJobName;ug!==void 0&&(S(qg,6,ug),rg++);var Vh=[rg===Object.keys(tf).length,qg];break e}catch(nb){Y(nb);Vh=[!1,void 0];break e}}var uf=Vh;uf[0]&&(gk(yc,poa,2,uf[1]),Jc++)}var Te=vc.pageUrl;Te!==void 0&&(S(yc,3,Te),Jc++);var vg=vc.kvPairs;vg&&(ZN(yc.j.bind(yc),vg,OMa),Jc++);var Wh=vc.experimentIds;Wh&&(ZN(yc.B.bind(yc),Wh),Jc++);var Xh=vc.playerMetadata;if(Xh){e:{var Ue=new Iy,jh=0;try{var Qg=Xh.error;Qg!==void 0&&($N(Ue.j.bind(Ue),Qg,PMa),jh++);var nj=
Xh.stackTrace;nj!==void 0&&(S(Ue,2,nj),jh++);var Qd=[jh===Object.keys(Xh).length,Ue];break e}catch(nb){Y(nb);Qd=[!1,void 0];break e}}var Ve=Qd;Ve[0]&&(gk(yc,Iy,6,Ve[1]),Jc++)}var me=vc.exceptionType;me!==void 0&&(T(yc,7,QMa[me]),Jc++);var Hi=vc.clientScreenNonce;Hi!==void 0&&(S(yc,8,Hi),Jc++);var jf=vc.blocksMethodExecutionInfo;if(jf){e:{var kf=new ooa,vf=0;try{var Zf=jf.methodId;Zf!==void 0&&(Qk(kf,1,Zf),vf++);var Rg=jf.blockTypeId;Rg!==void 0&&(Qk(kf,2,Rg),vf++);var Ie=jf.methodType;Ie!==void 0&&
(T(kf,3,RMa[Ie]),vf++);var lf=jf.requestSize;lf!==void 0&&(Qk(kf,4,lf),vf++);var Jf=jf.responseSize;Jf!==void 0&&(Qk(kf,5,Jf),vf++);var Ii=jf.statusCode;Ii!==void 0&&(Qk(kf,6,Ii),vf++);var oj=jf.containerId;oj!==void 0&&(Qk(kf,7,oj),vf++);var om=jf.moduleIdentifier;om!==void 0&&(S(kf,8,om),vf++);var pm=jf.datapushBuildId;pm!==void 0&&(Sk(kf,9,pm),vf++);var ok=jf.attribution;ok!==void 0&&(T(kf,10,SMa[ok]),vf++);var pk=[vf===Object.keys(jf).length,kf];break e}catch(nb){Y(nb);pk=[!1,void 0];break e}}var pj=
pk;pj[0]&&(gk(yc,ooa,9,pj[1]),Jc++)}var We=vc.mediaEngineMetadata;if(We){e:{var Je=new g.Gy,$d=0;try{var kh=We.client;kh!==void 0&&(Je.Hy(TMa[kh]),$d++);var Yh=We.mdeErrorType;Yh!==void 0&&(T(Je,2,UMa[Yh]),$d++);var qj=We.uploadId;qj!==void 0&&(S(Je,3,qj),$d++);var ql=We.composition;ql&&(ZN(Je.s7.bind(Je),ql,wMa),$d++);var Kf=We.player;if(Kf){f:{var Zh=new Ey,Sg=0;try{var $h=Kf.state;$h!==void 0&&(Zh.Ic(VMa[$h]),Sg++);var Ji=Kf.playbackPositionTimeMs;Ji!==void 0&&(Rk(Zh,2,Ji),Sg++);var qk=[Sg===Object.keys(Kf).length,
Zh];break f}catch(nb){Y(nb);qk=[!1,void 0];break f}}var rk=qk;rk[0]&&(gk(Je,Ey,5,rk[1]),$d++)}var $f=We.exporter;if($f){f:{var rj=new zy,lh=0;try{var sj=$f.settings;if(sj){g:{var mh=new yy,Tg=0;try{var tj=sj.audioChannelCount;tj!==void 0&&(Pk(mh,1,tj),Tg++);var rl=sj.resolutionWidth;rl!==void 0&&(Pk(mh,2,rl),Tg++);var qm=sj.resolutionHeight;qm!==void 0&&(Pk(mh,3,qm),Tg++);var uj=[Tg===Object.keys(sj).length,mh];break g}catch(nb){Y(nb);uj=[!1,void 0];break g}}var sk=uj;sk[0]&&(rj.yh(sk[1]),lh++)}var Ed=
$f.state;Ed!==void 0&&(rj.Ic(WMa[Ed]),lh++);var ag=$f.durationMs;ag!==void 0&&(Sk(rj,3,ag),lh++);var wg=$f.progressMs;wg!==void 0&&(Sk(rj,4,wg),lh++);var sl=[lh===Object.keys($f).length,rj];break f}catch(nb){Y(nb);sl=[!1,void 0];break f}sl=void 0}var tk=sl;tk[0]&&(gk(Je,zy,6,tk[1]),$d++)}var uk=We.projectId;uk!==void 0&&(S(Je,7,uk),$d++);var mc=We.deviceInfo;if(mc){f:{var rm=new wy,tl=0;try{var ul=mc.audioOutputLatencyMs;ul!==void 0&&(Pk(rm,1,ul),tl++);var vj=[tl===Object.keys(mc).length,rm];break f}catch(nb){Y(nb);
vj=[!1,void 0];break f}}var up=vj;up[0]&&(gk(Je,wy,8,up[1]),$d++)}var wj=We.preprocessor;if(wj){f:{var xj=new g.Fy,yj=0;try{var vp=wj.originalVideo;if(vp){var En=zMa(vp);En[0]&&(gk(xj,Ay,1,En[1]),yj++)}var Zq=wj.processedVideo;if(Zq){var $q=zMa(Zq);$q[0]&&(gk(xj,Ay,2,$q[1]),yj++)}var ar=[yj===Object.keys(wj).length,xj];break f}catch(nb){Y(nb);ar=[!1,void 0];break f}ar=void 0}var vl=ar;vl[0]&&(gk(Je,g.Fy,9,vl[1]),$d++)}var sm=We.clientSurface;sm!==void 0&&(T(Je,10,XMa[sm]),$d++);var vk=[$d===Object.keys(We).length,
Je];break e}catch(nb){Y(nb);vk=[!1,void 0];break e}vk=void 0}var zj=vk;zj[0]&&(gk(yc,g.Gy,10,zj[1]),Jc++)}var ai=vc.cameraMetadata;if(ai){e:{var nh=new vy,wl=0;try{var wp=ai.uploadFrontendId;wp!==void 0&&(S(nh,1,wp),wl++);var xp=ai.cameraApiClient;xp!==void 0&&(T(nh,2,YMa[xp]),wl++);var br=ai.cameraConfigs;br&&(ZN(nh.j.bind(nh),br,AMa),wl++);var yp=ai.canFindCamera;yp!==void 0&&(Ok(nh,4,yp),wl++);var Fn=[wl===Object.keys(ai).length,nh];break e}catch(nb){Y(nb);Fn=[!1,void 0];break e}}var cr=Fn;cr[0]&&
(gk(yc,vy,11,cr[1]),Jc++)}var oh=vc.miniAppMetadata;if(oh){e:{var bi=new Hy,ae=0;try{var ci=oh.externalPostId;ci!==void 0&&(S(bi,1,ci),ae++);var bg=oh.postPlayNonce;bg!==void 0&&(S(bi,2,bg),ae++);var di=oh.localReleaseId;di!==void 0&&(Pk(bi,3,di),ae++);var ph=oh.source;ph!==void 0&&(T(bi,4,ZMa[ph]),ae++);var dr=oh.sdkErrorType;dr!==void 0&&(T(bi,5,$Ma[dr]),ae++);var tm=oh.sdkApi;tm!==void 0&&(T(bi,6,aNa[tm]),ae++);var Gn=oh.sdkVersion;Gn!==void 0&&(S(bi,7,Gn),ae++);var Hn=oh.rpcErrorCode;Hn!==void 0&&
(Pk(bi,8,Hn),ae++);var In=[ae===Object.keys(oh).length,bi];break e}catch(nb){Y(nb);In=[!1,void 0];break e}}var um=In;um[0]&&(gk(yc,Hy,12,um[1]),Jc++)}var er=vc.appVersionCode;er!==void 0&&(Pk(yc,13,er),Jc++);var Ki=vc.hatsMetadata;if(Ki){e:{var Li=new qoa,wk=0;try{var xl=Ki.hatsSessionId;xl!==void 0&&(S(Li,1,xl),wk++);var vm=Ki.csn;vm!==void 0&&(S(Li,2,vm),wk++);var wm=Ki.hatsTriggerId;wm!==void 0&&(S(Li,3,wm),wk++);var zp=Ki.hatsStatus;zp!==void 0&&(T(Li,4,bNa[zp]),wk++);var Ap=[wk===Object.keys(Ki).length,
Li];break e}catch(nb){Y(nb);Ap=[!1,void 0];break e}}var Bp=Ap;Bp[0]&&(gk(yc,qoa,14,Bp[1]),Jc++)}var Jn=vc.reelPlaybackError;if(Jn){e:{var Kn=new voa,Sc=0;try{var ne=Jn.reelPlaybackContext;if(ne){f:{var qh=new Jy,ei=0;try{var Ln=ne.videoId;Ln!==void 0&&(qh.setVideoId(Ln),ei++);var Cp=ne.playlistId;Cp!==void 0&&(S(qh,2,Cp),ei++);var xm=ne.playlistIndex;xm!==void 0&&(Qk(qh,3,xm),ei++);var ym=ne.cpn;ym!==void 0&&(S(qh,4,ym),ei++);var zm=ne.playerType;zm!==void 0&&(T(qh,5,cNa[zm]),ei++);var Mn=ne.audioFmt;
Mn!==void 0&&(Pk(qh,6,Mn),ei++);var fr=ne.videoFmt;fr!==void 0&&(Pk(qh,7,fr),ei++);var Dp=[ei===Object.keys(ne).length,qh];break f}catch(nb){Y(nb);Dp=[!1,void 0];break f}}var xk=Dp;xk[0]&&(gk(Kn,Jy,1,xk[1]),Sc++)}var fi=Jn.errorType;fi!==void 0&&(T(Kn,2,dNa[fi]),Sc++);var yk=[Sc===Object.keys(Jn).length,Kn];break e}catch(nb){Y(nb);yk=[!1,void 0];break e}yk=void 0}var Am=yk;Am[0]&&(gk(yc,voa,15,Am[1]),Jc++)}var Bm=[Jc===Object.keys(vc).length,yc];break d}catch(nb){Y(nb);Bm=[!1,void 0];break d}Bm=void 0}var Ep=
Bm;Ep[0]&&(gk(He,Ky,1,Ep[1]),Uh++)}var Aj=hf.stackTrace;if(Aj){d:{var zk=new Sy,Bj=0;try{var Fp=Aj.isObfuscated;Fp!==void 0&&(Ok(zk,1,Fp),Bj++);var gr=Aj.androidStackInfo;if(gr){var yl=eNa(gr);yl[0]&&(hk(zk,Ly,2,pE,yl[1]),Bj++)}var zl=Aj.browserStackInfo;if(zl){e:{var Al=new My,Bl=0;try{var Gp=zl.stackTrace;Gp!==void 0&&(S(Al,1,Gp),Bl++);var Hp=zl.lineNumber;Hp!==void 0&&(Pk(Al,2,Hp),Bl++);var Ak=zl.columnNumber;Ak!==void 0&&(Pk(Al,3,Ak),Bl++);var Cl=zl.filename;Cl!==void 0&&(S(Al,4,Cl),Bl++);var Cm=
[Bl===Object.keys(zl).length,Al];break e}catch(nb){Y(nb);Cm=[!1,void 0];break e}}var Nn=Cm;Nn[0]&&(hk(zk,My,3,pE,Nn[1]),Bj++)}var Dm=Aj.iosStackInfo;if(Dm){e:{var On=new woa,Pn=0;try{var hr=Dm.stackTrace;hr!==void 0&&(S(On,1,hr),Pn++);var Qn=Dm.compactStackTrace;if(Qn){var rh=jO(Qn);rh[0]&&(gk(On,py,2,rh[1]),Pn++)}var Dl=[Pn===Object.keys(Dm).length,On];break e}catch(nb){Y(nb);Dl=[!1,void 0];break e}Dl=void 0}var El=Dl;El[0]&&(hk(zk,woa,4,pE,El[1]),Bj++)}var xg=Aj.multiLanguageStackInfo;if(xg){e:{var sh=
new Ry,gi=0;try{var Mi=xg.languageStackTraces;Mi&&(ZN(sh.j.bind(sh),Mi,fNa),gi++);var Em=[gi===Object.keys(xg).length,sh];break e}catch(nb){Y(nb);Em=[!1,void 0];break e}}var Fl=Em;Fl[0]&&(hk(zk,Ry,5,pE,Fl[1]),Bj++)}var Ni=[Bj===Object.keys(Aj).length,zk];break d}catch(nb){Y(nb);Ni=[!1,void 0];break d}Ni=void 0}var Fm=Ni;Fm[0]&&(gk(He,Sy,2,Fm[1]),Uh++)}var hi=hf.logMessage;if(hi){d:{var Cj=new Ty,Dj=0;try{var ir=hi.message;ir!==void 0&&(S(Cj,1,ir),Dj++);var Ej=hi.level;Ej!==void 0&&(T(Cj,2,gNa[Ej]),
Dj++);var Bk=hi.errorClassName;Bk!==void 0&&(S(Cj,3,Bk),Dj++);var Gl=hi.sourceMethodName;Gl!==void 0&&(S(Cj,4,Gl),Dj++);var Rn=hi.sampleWeight;Rn!==void 0&&(Pk(Cj,6,Rn),Dj++);var Hl=[Dj===Object.keys(hi).length,Cj];break d}catch(nb){Y(nb);Hl=[!1,void 0];break d}}var Gm=Hl;Gm[0]&&(gk(He,Ty,3,Gm[1]),Uh++)}var Hm=[Uh===Object.keys(hf).length,He];break c}catch(nb){Y(nb);Hm=[!1,void 0];break c}Hm=void 0}var Ip=Hm;Ip[0]&&(gk(Vb,Uy,5,Ip[1]),Fe++)}var Sn=[Fe===Object.keys(Ee).length,Vb];break b}catch(nb){Y(nb);
Sn=[!1,void 0];break b}Sn=void 0}var Tn=Sn;Tn[0]&&(gk(C,Vy,9,Tn[1]),F++)}var jr=A.delayedEventMetrics;jr&&(ZN(C.j.bind(C),jr,kLa),F++);var Il=A.iosBatteryMetric;if(Il){b:{var Un=new moa,Vn=0;try{var Wn=Il.sampleDurationMs;Wn!==void 0&&(Rk(Un,1,Wn),Vn++);var Jp=Il.startSample;if(Jp){var Im=hNa(Jp);Im[0]&&(gk(Un,qy,2,Im[1]),Vn++)}var Kp=Il.endSample;if(Kp){var Lp=hNa(Kp);Lp[0]&&(gk(Un,qy,3,Lp[1]),Vn++)}var Mp=[Vn===Object.keys(Il).length,Un];break b}catch(nb){Y(nb);Mp=[!1,void 0];break b}Mp=void 0}var Np=
Mp;Np[0]&&(gk(C,moa,11,Np[1]),F++)}var Jm=A.androidBatteryMetric;if(Jm){b:{var Jl=new hoa,Xn=0;try{var Yn=Jm.sampleDurationMs;Yn!==void 0&&(Rk(Jl,1,Yn),Xn++);var Op=Jm.startSample;if(Op){var Zn=iNa(Op);Zn[0]&&(gk(Jl,ly,2,Zn[1]),Xn++)}var kr=Jm.endSample;if(kr){var Pp=iNa(kr);Pp[0]&&(gk(Jl,ly,3,Pp[1]),Xn++)}var $n=[Xn===Object.keys(Jm).length,Jl];break b}catch(nb){Y(nb);$n=[!1,void 0];break b}$n=void 0}var lr=$n;lr[0]&&(gk(C,hoa,12,lr[1]),F++)}var oe=A.webApiSupport;if(oe){b:{var we=new Eoa,Ke=0;try{var ao=
oe.intersectionObserverPresent;ao!==void 0&&(Ok(we,1,ao),Ke++);var bo=oe.indexedDbPresent;bo!==void 0&&(Ok(we,2,bo),Ke++);var Qp=oe.serviceWorkerPresent;Qp!==void 0&&(Ok(we,3,Qp),Ke++);var co=oe.webSharePresent;co!==void 0&&(Ok(we,4,co),Ke++);var Km=oe.fullScreenApiPresent;Km!==void 0&&(Ok(we,5,Km),Ke++);var Rp=oe.cacheStoragePresent;Rp!==void 0&&(Ok(we,6,Rp),Ke++);var Sp=oe.storageEstimatePresent;Sp!==void 0&&(Ok(we,7,Sp),Ke++);var Oi=oe.storagePersistPresent;Oi!==void 0&&(Ok(we,8,Oi),Ke++);var ii=
oe.webkitTemporaryStoragePresent;ii!==void 0&&(Ok(we,9,ii),Ke++);var Pi=oe.idb2Present;Pi!==void 0&&(Ok(we,10,Pi),Ke++);var Tp=oe.promiseRejectionEventPresent;Tp!==void 0&&(Ok(we,11,Tp),Ke++);var Up=oe.subtleCryptoPresent;Up!==void 0&&(Ok(we,12,Up),Ke++);var Lm=oe.broadcastChannelPresent;Lm!==void 0&&(Ok(we,13,Lm),Ke++);var eo=oe.webLocksApiPresent;eo!==void 0&&(Ok(we,14,eo),Ke++);var fo=oe.supportsP3Color;fo!==void 0&&(Ok(we,15,fo),Ke++);var Vp=oe.supportsRec2020Color;Vp!==void 0&&(Ok(we,16,Vp),
Ke++);var Fj=[Ke===Object.keys(oe).length,we];break b}catch(nb){Y(nb);Fj=[!1,void 0];break b}}var Mm=Fj;Mm[0]&&(gk(C,Eoa,13,Mm[1]),F++)}var Qi=A.cpuProfiling;if(Qi){b:{var go=new ty,ho=0;try{var mr=Qi.profilingSamples;if(mr){var nr=jO(mr);nr[0]&&(gk(go,py,1,nr[1]),ho++)}var Ri=Qi.config;if(Ri){c:{var Kl=new noa,Gj=0;try{var or=Ri.profilingIntervalSec;or!==void 0&&(Tk(Kl,1,or),Gj++);var io=Ri.profilingDurationSec;io!==void 0&&(Tk(Kl,2,io),Gj++);var Wp=Ri.timerType;Wp!==void 0&&(T(Kl,3,jNa[Wp]),Gj++);
var jo=Ri.profilingStartTimeSec;jo!==void 0&&(Tk(Kl,4,jo),Gj++);var pr=Ri.fractionOfRunsToSample;pr!==void 0&&(Tk(Kl,5,pr),Gj++);var ko=[Gj===Object.keys(Ri).length,Kl];break c}catch(nb){Y(nb);ko=[!1,void 0];break c}}var Xp=ko;Xp[0]&&(go.setConfig(Xp[1]),ho++)}var Ck=[ho===Object.keys(Qi).length,go];break b}catch(nb){Y(nb);Ck=[!1,void 0];break b}Ck=void 0}var Si=Ck;Si[0]&&(gk(C,ty,14,Si[1]),F++)}var Nm=A.stallStackTrace;if(Nm){var Ll=jO(Nm);Ll[0]&&(gk(C,py,15,Ll[1]),F++)}var yg=A.memoryUsage;if(yg){b:{var Lf=
new $y,ji=0;try{var Om=yg.totalMemoryUsageBytes;Om!==void 0&&(Rk(Lf,1,Om),ji++);var Dk=yg.classMemoryUsage;Dk&&(ZN(Lf.j.bind(Lf),Dk,kNa),ji++);var Ek=yg.config;if(Ek){c:{var pe=new Coa,Mf=0;try{var th=Ek.maxStartTimeSec;th!==void 0&&(Rk(pe,1,th),Mf++);var ki=Ek.durationTimeSec;ki!==void 0&&(Rk(pe,2,ki),Mf++);var qr=Ek.intervalSec;qr!==void 0&&(Rk(pe,3,qr),Mf++);var Fk=Ek.maxLogCount;Fk!==void 0&&(Rk(pe,4,Fk),Mf++);var rr=Ek.fractionOfRunsToSample;rr!==void 0&&(Tk(pe,5,rr),Mf++);var bt=[Mf===Object.keys(Ek).length,
pe];break c}catch(nb){Y(nb);bt=[!1,void 0];break c}}var sr=bt;sr[0]&&(Lf.setConfig(sr[1]),ji++)}var tr=yg.processUptimeMs;tr!==void 0&&(Rk(Lf,4,tr),ji++);var Ml=yg.foregroundUptimeMs;Ml!==void 0&&(Rk(Lf,8,Ml),ji++);var Yp=yg.viewAllocation;Yp&&(ZN(Lf.C.bind(Lf),Yp,kNa),ji++);var lo=yg.entityStoreCount;lo!==void 0&&(Pk(Lf,6,lo),ji++);var mo=yg.entityStoreBytes;mo!==void 0&&(Rk(Lf,7,mo),ji++);var Gk=yg.emlTemplateStoreBytes;Gk!==void 0&&(Rk(Lf,10,Gk),ji++);var ur=yg.jsVmStatistics;ur&&(ZN(Lf.B.bind(Lf),
ur,lNa),ji++);var Nl=[ji===Object.keys(yg).length,Lf];break b}catch(nb){Y(nb);Nl=[!1,void 0];break b}Nl=void 0}var Ol=Nl;Ol[0]&&(gk(C,$y,16,Ol[1]),F++)}var no=A.networkEvents;no&&(ZN(C.B.bind(C),no,mNa),F++);var Hj=A.threadUtilization;if(Hj){b:{var Hk=new cz,Pm=0;try{var oo=Hj.userJourney;oo!==void 0&&(S(Hk,1,oo),Pm++);var po=Hj.type;po!==void 0&&(T(Hk,2,nNa[po]),Pm++);var Pl=Hj.threadPoolStats;Pl&&(ZN(Hk.j.bind(Hk),Pl,oNa),Pm++);var vr=Hj.totalThreadCount;vr!==void 0&&(Pk(Hk,4,vr),Pm++);var Zp=Hj.statsGenerateDurationMs;
Zp!==void 0&&(Rk(Hk,5,Zp),Pm++);var Ug=[Pm===Object.keys(Hj).length,Hk];break b}catch(nb){Y(nb);Ug=[!1,void 0];break b}}var Ql=Ug;Ql[0]&&(gk(C,cz,18,Ql[1]),F++)}var Ij=A.androidBackgroundTask;if(Ij){b:{var Rl=new ry,Sl=0;try{var qo=Ij.tag;qo!==void 0&&(S(Rl,1,qo),Sl++);var $p=Ij.isKnownTask;$p!==void 0&&(Ok(Rl,2,$p),Sl++);var ct=Ij.result;ct!==void 0&&(T(Rl,3,pNa[ct]),Sl++);var aq=Ij.durationMs;aq!==void 0&&(Rk(Rl,4,aq),Sl++);var bq=[Sl===Object.keys(Ij).length,Rl];break b}catch(nb){Y(nb);bq=[!1,
void 0];break b}}var Tl=bq;Tl[0]&&(gk(C,ry,19,Tl[1]),F++)}var Ti=A.distributiveProfilingSpan;if(Ti){b:{var li=new Wy,Ul=0;try{var wr=Ti.spanId;wr!==void 0&&(T(li,1,qNa[wr]),Ul++);var xr=Ti.sampleRate;xr!==void 0&&(Tk(li,2,xr),Ul++);var ro=Ti.spanDurationMs;ro!==void 0&&(Rk(li,3,ro),Ul++);var Ik=Ti.sampleFailureCount;Ik!==void 0&&(Pk(li,4,Ik),Ul++);var so=Ti.sample;so&&(ZN(li.Vi.bind(li),so,rNa),Ul++);var cq=[Ul===Object.keys(Ti).length,li];break b}catch(nb){Y(nb);cq=[!1,void 0];break b}}var dq=cq;
dq[0]&&(gk(C,Wy,20,dq[1]),F++)}var eq=A.appExitInfo;if(eq){b:{var Ui=new sy,Jk=0;try{var Vl=eq.reason;Vl!==void 0&&(T(Ui,1,sNa[Vl]),Jk++);var dt=eq.status;dt!==void 0&&(Pk(Ui,2,dt),Jk++);var kv=eq.importance;kv!==void 0&&(Pk(Ui,3,kv),Jk++);var Tx=eq.description;Tx!==void 0&&(S(Ui,4,Tx),Jk++);var lv=[Jk===Object.keys(eq).length,Ui];break b}catch(nb){Y(nb);lv=[!1,void 0];break b}}var mv=lv;mv[0]&&(gk(C,sy,21,mv[1]),F++)}var nv=[F===Object.keys(A).length,C];break a}catch(nb){Y(nb);nv=[!1,void 0];break a}nv=
void 0}var et=nv;et[0]&&(gk(b,dz,6,et[1]),c++)}var Ux=a.detailedNetworkType;Ux!==void 0&&(T(b,7,kO[Ux]),c++);var yr=a.isAd;yr!==void 0&&(Ok(b,8,yr),c++);var ft=a.offlineModeType;ft!==void 0&&(T(b,9,tNa[ft]),c++);var zr=a.storageFormat;zr!==void 0&&(T(b,24,uNa[zr]),c++);var Vx=a.offlineSourceVeType;Vx!==void 0&&(Pk(b,32,Vx),c++);var gt=a.listId;gt!==void 0&&(S(b,10,gt),c++);var Ar=a.offlineabilityFormatType;Ar!==void 0&&(T(b,11,vNa[Ar]),c++);var ht=a.offlineAudioQuality;ht!==void 0&&(T(b,29,wNa[ht]),
c++);var Wx=a.softErrorCount;Wx!==void 0&&(Pk(b,12,Wx),c++);var ov=a.pendingStateFlags;ov!==void 0&&(Qk(b,13,ov),c++);var pv=a.unusedOfflineVideoPendingState;pv!==void 0&&(T(b,14,xNa[pv]),c++);var Xx=a.isRefresh;Xx!==void 0&&(Ok(b,15,Xx),c++);var qv=a.isNewPlayerResponse;qv!==void 0&&(Ok(b,16,qv),c++);var Yx=a.isOfflineShareable;Yx!==void 0&&(Ok(b,17,Yx),c++);var rv=a.hasContentVerificationSignature;rv!==void 0&&(Ok(b,18,rv),c++);var Zx=a.isOfflineInterleaving;Zx!==void 0&&(Ok(b,19,Zx),c++);var Pa=
a.blockSizeBytes;Pa!==void 0&&(Pk(b,25,Pa),c++);var uO=a.streamVerificationStrategy;uO!==void 0&&(T(b,26,lO[uO]),c++);var vO=a.streamVerificationFailedBlocks;vO&&(ZN(b.j.bind(b),vO,yNa),c++);var GB=a.spacecastInfo;if(GB){a:{var HB=new mpa,MG=0;try{var IB=GB.applianceId;IB!==void 0&&(S(HB,1,IB),MG++);var NG=GB.transferredFromCache;NG!==void 0&&(T(HB,2,zNa[NG]),MG++);var JB=[MG===Object.keys(GB).length,HB];break a}catch(nb){Y(nb);JB=[!1,void 0];break a}}var wO=JB;wO[0]&&(gk(b,mpa,28,wO[1]),c++)}var OG=
a.transferType;OG!==void 0&&(T(b,33,ANa[OG]),c++);var xO=a.onlyDownloadOnWifi;xO!==void 0&&(Ok(b,34,xO),c++);var yO=a.appLifecycleStatus;yO!==void 0&&(T(b,35,BNa[yO]),c++);var PG=a.isDefaultDownloadToSdCard;PG!==void 0&&(Ok(b,36,PG),c++);var zO=a.serializedLoggingParams;zO!==void 0&&(Vk(b,39,zO),c++);var AO=a.transferServiceStartedFromBackground;AO!==void 0&&(Ok(b,40,AO),c++);var tv=a.transferFirstStarted;tv!==void 0&&(Ok(b,42,tv),c++);return[c===Object.keys(a).length,b]}catch(nb){return Y(nb),[!1,
void 0]}};
HMa=function(a){var b=new Lna,c=0;try{var d=a.datapushBuild;if(d){var e=DNa(d);e[0]&&(gk(b,xx,1,e[1]),c++)}return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
DNa=function(a){var b=new xx,c=0;try{var d=a.buildId;d!==void 0&&(Rk(b,1,d),c++);var e=a.clientExperimentId;e!==void 0&&(Pk(b,2,e),c++);var f=a.accessType;f!==void 0&&(T(b,3,ENa[f]),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
IMa=function(a){var b=new Kna,c=0;try{var d=a.datapushBuild;if(d){var e=DNa(d);e[0]&&(gk(b,xx,1,e[1]),c++)}return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
JMa=function(a){var b=new zoa,c=0;try{var d=a.assetLoggingId;d!==void 0&&(S(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
jO=function(a){var b=new py,c=0;try{var d=a.stackTraces;d&&(ZN(b.B.bind(b),d,FNa),c++);var e=a.allModules;e&&(ZN(b.j.bind(b),e,GNa),c++);var f=a.appVersionCode;f!==void 0&&(Pk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
FNa=function(a){var b=new oy,c=0;try{var d=a.mainThread;if(d){var e=HNa(d);e[0]&&(gk(b,ny,1,e[1]),c++)}var f=a.backgroundThreads;f&&(ZN(b.j.bind(b),f,HNa),c++);var h=a.metaData;h&&(ZN(b.B.bind(b),h,INa),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
HNa=function(a){var b=new ny,c=0;try{var d=a.stackFrames;d&&(ZN(b.j.bind(b),d,JNa),c++);var e=a.androidStack;e!==void 0&&(S(b,6,e),c++);var f=a.threadName;f!==void 0&&(S(b,2,f),c++);var h=a.cpuUsage;h!==void 0&&(Tk(b,3,h),c++);var l=a.cpuTimeSec;l!==void 0&&(Rk(b,4,l),c++);var m=a.iosThreadInfo;if(m){a:{var n=new my;d=0;try{var p=m.state;p!==void 0&&(n.Ic(KNa[p]),d++);var q=m.flag;q!==void 0&&(T(n,2,LNa[q]),d++);var r=m.currentPriority;r!==void 0&&(Pk(n,3,r),d++);var t=m.priority;t!==void 0&&(Pk(n,
4,t),d++);var u=m.maxPriority;u!==void 0&&(Pk(n,5,u),d++);var w=m.isCrashedThread;w!==void 0&&(Ok(n,6,w),d++);var A=[d===Object.keys(m).length,n];break a}catch(C){Y(C);A=[!1,void 0];break a}}m=A;m[0]&&(gk(b,my,5,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(C){return Y(C),[!1,void 0]}};
JNa=function(a){var b=new koa,c=0;try{var d=a.instructionOffset;d!==void 0&&(Rk(b,1,d),c++);var e=a.moduleIndex;e!==void 0&&(Pk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
INa=function(a){var b=new joa,c=0;try{var d=a.clientTimestampMs;d!==void 0&&(Rk(b,1,d),c++);var e=a.sampleTimeCostMs;e!==void 0&&(Tk(b,2,e),c++);var f=a.numberOfBustedFrames;f!==void 0&&(Pk(b,3,f),c++);var h=a.droppedFrameDurationMs;h!==void 0&&(Pk(b,4,h),c++);var l=a.deviceOrientation;l!==void 0&&(T(b,5,MNa[l]),c++);var m=a.processUptimeMs;m!==void 0&&(Rk(b,6,m),c++);var n=a.memoryUsageKbytes;n!==void 0&&(Rk(b,7,n),c++);var p=a.batteryPercentage;p!==void 0&&(Tk(b,8,p),c++);var q=a.exceptionName;
q!==void 0&&(S(b,9,q),c++);var r=a.exceptionReason;r!==void 0&&(S(b,10,r),c++);var t=a.signalNumber;t!==void 0&&(Pk(b,11,t),c++);var u=a.signalCode;u!==void 0&&(Pk(b,12,u),c++);return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
GNa=function(a){var b=new ioa,c=0;try{var d=a.moduleUuid;d!==void 0&&(Vk(b,1,d),c++);var e=a.moduleName;e!==void 0&&(S(b,2,e),c++);var f=a.loadAddress;f!==void 0&&(Rk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
OMa=function(a){var b=new uy,c=0;try{var d=a.key;d!==void 0&&(S(b,1,d),c++);var e=a.value;e!==void 0&&(S(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
eNa=function(a){var b=new Ly,c=0;try{var d=a.serializedThrowable;d!==void 0&&(Vk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
fNa=function(a){var b=new xoa,c=0;try{var d=a.jsStack;if(d){a:{var e=new Qy,f=0;try{var h=d.stackTrace;h&&(ZN(e.j.bind(e),h,NNa),f++);var l=d.moduleSetVersion;l!==void 0&&(Sk(e,4,l),f++);var m=[f===Object.keys(d).length,e];break a}catch(w){Y(w);m=[!1,void 0];break a}}d=m;d[0]&&(hk(b,Qy,1,ONa,d[1]),c++)}var n=a.javaStack;if(n){var p=eNa(n);p[0]&&(hk(b,Ly,2,ONa,p[1]),c++)}var q=a.ccStack;if(q){a:{var r=new Oy;n=0;try{var t=q.stackTrace;t&&(ZN(r.j.bind(r),t,PNa),n++);var u=[n===Object.keys(q).length,
r];break a}catch(w){Y(w);u=[!1,void 0];break a}}q=u;q[0]&&(hk(b,Oy,3,ONa,q[1]),c++)}return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
NNa=function(a){var b=new Py,c=0;try{var d=a.functionName;d!==void 0&&(S(b,1,d),c++);var e=a.source;e!==void 0&&(S(b,2,e),c++);var f=a.lineNumber;f!==void 0&&(Pk(b,3,f),c++);var h=a.columnNumber;h!==void 0&&(Pk(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
PNa=function(a){var b=new Ny,c=0;try{var d=a.functionName;d!==void 0&&(S(b,1,d),c++);var e=a.source;e!==void 0&&(S(b,2,e),c++);var f=a.lineNumber;f!==void 0&&(Pk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
hNa=function(a){var b=new qy,c=0;try{var d=a.batteryLevelMicros;d!==void 0&&(Pk(b,1,d),c++);var e=a.networkType;e!==void 0&&(T(b,2,kO[e]),c++);var f=a.screenBrightness;f!==void 0&&(Tk(b,3,f),c++);var h=a.isLowPowerMode;h!==void 0&&(Ok(b,4,h),c++);var l=a.isBackground;l!==void 0&&(Ok(b,5,l),c++);var m=a.isStateTransition;m!==void 0&&(Ok(b,6,m),c++);var n=a.observedBackgroundFetchMethodCallback;n!==void 0&&(Ok(b,7,n),c++);var p=a.observedBackgroundTaskDidExpire;p!==void 0&&(Ok(b,8,p),c++);return[c===
Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
iNa=function(a){var b=new ly,c=0;try{var d=a.batteryLevelMicros;d!==void 0&&(Pk(b,1,d),c++);var e=a.networkType;e!==void 0&&(T(b,2,kO[e]),c++);var f=a.screenBrightness;f!==void 0&&(Pk(b,3,f),c++);var h=a.screenBrightnessMode;h!==void 0&&(T(b,4,QNa[h]),c++);var l=a.lowPowerMode;l!==void 0&&(T(b,5,RNa[l]),c++);var m=a.batteryHealth;m!==void 0&&(T(b,6,SNa[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
kNa=function(a){var b=new Zy,c=0;try{var d=a.className;d!==void 0&&(S(b,1,d),c++);var e=a.instanceNum;e!==void 0&&(Rk(b,2,e),c++);var f=a.instanceSizeBytes;f!==void 0&&(Rk(b,3,f),c++);var h=a.allocationNum;h!==void 0&&(Rk(b,4,h),c++);var l=a.deallocationNum;l!==void 0&&(Rk(b,5,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}};
lNa=function(a){var b=new Pna,c=0;try{var d=a.v8Stats;if(d){a:{var e=new Ona,f=0;try{var h=d.totalHeapSize;h!==void 0&&(Sk(e,1,h),f++);var l=d.totalHeapSizeExecutable;l!==void 0&&(Sk(e,2,l),f++);var m=d.totalPhysicalSize;m!==void 0&&(Sk(e,3,m),f++);var n=d.totalAvailableSize;n!==void 0&&(Sk(e,4,n),f++);var p=d.totalGlobalHandlesSize;p!==void 0&&(Sk(e,5,p),f++);var q=d.usedGlobalHandlesSize;q!==void 0&&(Sk(e,6,q),f++);var r=d.usedHeapSize;r!==void 0&&(Sk(e,7,r),f++);var t=d.heapSizeLimit;t!==void 0&&
(Sk(e,8,t),f++);var u=d.mallocedMemory;u!==void 0&&(Sk(e,9,u),f++);var w=d.externalMemory;w!==void 0&&(Sk(e,10,w),f++);var A=d.peakMallocedMemory;A!==void 0&&(Sk(e,11,A),f++);var C=d.numberOfNativeContexts;C!==void 0&&(Sk(e,12,C),f++);var F=d.numberOfDetachedContexts;F!==void 0&&(Sk(e,13,F),f++);var G=[f===Object.keys(d).length,e];break a}catch(P){Y(P);G=[!1,void 0];break a}}d=G;d[0]&&(hk(b,Ona,1,TNa,d[1]),c++)}var K=a.quickjsStats;if(K){a:{var N=new Nna;d=0;try{var R=K.mallocSize;R!==void 0&&(Sk(N,
1,R),d++);var da=K.mallocLimit;da!==void 0&&(Sk(N,2,da),d++);var oa=K.memoryUsedSize;oa!==void 0&&(Sk(N,3,oa),d++);var qa=K.mallocCount;qa!==void 0&&(Sk(N,4,qa),d++);var ha=K.memoryUsedCount;ha!==void 0&&(Sk(N,5,ha),d++);var ta=[d===Object.keys(K).length,N];break a}catch(P){Y(P);ta=[!1,void 0];break a}}K=ta;K[0]&&(hk(b,Nna,2,TNa,K[1]),c++)}return[c===Object.keys(a).length,b]}catch(P){return Y(P),[!1,void 0]}};
mNa=function(a){var b=new bz,c=0;try{var d=a.index;d!==void 0&&(Rk(b,1,d),c++);var e=a.networkEventType;e!==void 0&&(T(b,2,UNa[e]),c++);var f=a.path;f!==void 0&&(S(b,3,f),c++);var h=a.failureReason;h!==void 0&&(T(b,4,VNa[h]),c++);var l=a.startTimeMs;l!==void 0&&(Rk(b,5,l),c++);var m=a.totalDurationMs;m!==void 0&&(Rk(b,6,m),c++);var n=a.requestSize;n!==void 0&&(Rk(b,7,n),c++);var p=a.responseSize;p!==void 0&&(Rk(b,8,p),c++);var q=a.networkRequestAttempt;q&&(ZN(b.j.bind(b),q,WNa),c++);var r=a.httpMethod;
r!==void 0&&(T(b,10,XNa[r]),c++);return[c===Object.keys(a).length,b]}catch(t){return Y(t),[!1,void 0]}};
WNa=function(a){var b=new az,c=0;try{var d=a.failureReason;d!==void 0&&(T(b,1,VNa[d]),c++);var e=a.startTimeMs;e!==void 0&&(Rk(b,5,e),c++);var f=a.durationMs;f!==void 0&&(Rk(b,2,f),c++);var h=a.networkAvailable;h!==void 0&&(T(b,3,YNa[h]),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
oNa=function(a){var b=new Goa,c=0;try{var d=a.threadPoolName;d!==void 0&&(S(b,1,d),c++);var e=a.threadCount;e!==void 0&&(Pk(b,2,e),c++);var f=a.startedTaskCount;f!==void 0&&(Pk(b,3,f),c++);var h=a.finishedTaskCount;h!==void 0&&(Pk(b,4,h),c++);var l=a.runningTimeMs;l!==void 0&&(Rk(b,5,l),c++);var m=a.waitingTimeMs;m!==void 0&&(Rk(b,6,m),c++);var n=a.runCount;n!==void 0&&(Rk(b,7,n),c++);var p=a.runningPercent;p!==void 0&&(Pk(b,8,p),c++);return[c===Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
rNa=function(a){var b=new yoa,c=0;try{var d=a.curveTimestampMs;d!==void 0&&(Rk(b,1,d),c++);var e=a.curveWeight;e!==void 0&&(Tk(b,2,e),c++);var f=a.realTimestampMs;f!==void 0&&(Rk(b,3,f),c++);var h=a.sampleCostUsec;h!==void 0&&(Rk(b,4,h),c++);var l=a.compactStackTraceSample;if(l){var m=jO(l);m[0]&&(gk(b,py,5,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
yNa=function(a){var b=new npa,c=0;try{var d=a.itag;d!==void 0&&(Pk(b,1,d),c++);var e=a.startingByte;e!==void 0&&(Rk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
eOa=function(a){var b=new cA,c=0;try{var d=a.id;d!==void 0&&(S(b,1,d),c++);var e=a.videoState;e!==void 0&&(T(b,2,ZNa[e]),c++);var f=a.pendingStateFlags;f!==void 0&&(Qk(b,3,f),c++);var h=a.totalBytes;h!==void 0&&(Rk(b,21,h),c++);var l=a.downloadedBytes;l!==void 0&&(Rk(b,4,l),c++);var m=a.selectedVideoQuality;m!==void 0&&(T(b,5,vNa[m]),c++);var n=a.selectedOfflineMode;n!==void 0&&(T(b,6,tNa[n]),c++);var p=a.playerResponseSavedTimeMs;p!==void 0&&(Rk(b,7,p),c++);var q=a.offlineStateUpdateTimeMs;q!==void 0&&
(Rk(b,8,q),c++);var r=a.offlineStateExpiresInS;r!==void 0&&(Rk(b,9,r),c++);var t=a.durationInS;t!==void 0&&(Rk(b,10,t),c++);var u=a.isInPlaylist;u!==void 0&&(Ok(b,11,u),c++);var w=a.addedNetworkType;w!==void 0&&(T(b,12,kO[w]),c++);var A=a.downloadCompletedNetworkType;A!==void 0&&(T(b,13,kO[A]),c++);var C=a.captions;C&&(ZN(b.j.bind(b),C,$Na),c++);var F=a.unusedOfflineVideoPendingState;F!==void 0&&(T(b,15,xNa[F]),c++);var G=a.lastPlaybackTimestampMs;G!==void 0&&(Rk(b,16,G),c++);var K=a.offlineSuspendedStates;
K&&(ZN(b.B.bind(b),K,aOa),c++);var N=a.streamInLocalStorage;N!==void 0&&(Ok(b,18,N),c++);var R=a.streamInInternalStorage;R!==void 0&&(Ok(b,19,R),c++);var da=a.storageIdStates;if(da){a:{var oa=new oqa;d=0;try{var qa=da.storageId;qa!==void 0&&(Qk(oa,1,qa),d++);var ha=da.storageIdSourceType;ha!==void 0&&(T(oa,2,bOa[ha]),d++);var ta=[d===Object.keys(da).length,oa];break a}catch(Sa){Y(Sa);ta=[!1,void 0];break a}}da=ta;da[0]&&(gk(b,oqa,20,da[1]),c++)}var P=a.cotn;P!==void 0&&(S(b,22,P),c++);var ua=a.additionalVideoClientState;
if(ua){a:{var y=new lqa;P=0;try{var Z=ua.musicAppAdditionalVideoClientState;if(Z){b:{var cb=new kqa;da=0;try{var La=Z.episodePublishedTimeMs;La!==void 0&&(Rk(cb,1,La),da++);var $a=[da===Object.keys(Z).length,cb];break b}catch(Sa){Y(Sa);$a=[!1,void 0];break b}}Z=$a;Z[0]&&(gk(y,kqa,1,Z[1]),P++)}var Ya=[P===Object.keys(ua).length,y];break a}catch(Sa){Y(Sa);Ya=[!1,void 0];break a}Ya=void 0}ua=Ya;ua[0]&&(gk(b,lqa,23,ua[1]),c++)}var Ha=a.offlineVideoEntityMigrationState;if(Ha){a:{var Ta=new bA;ua=0;try{var ob=
Ha.isInOfflineStore;ob!==void 0&&(Ok(Ta,1,ob),ua++);var B=Ha.isPlaybackDataEntityPresent;B!==void 0&&(Ok(Ta,2,B),ua++);var E=Ha.wasPlaybackDataEntityUsedToFillVideoState;E!==void 0&&(Ok(Ta,3,E),ua++);var D=Ha.isTransferEntityPresent;D!==void 0&&(Ok(Ta,4,D),ua++);var J=Ha.wasTransferEntityUsedToFillVideoState;J!==void 0&&(Ok(Ta,5,J),ua++);var L=Ha.offlineStoreCaptionTrackCount;L!==void 0&&(Pk(Ta,6,L),ua++);var aa=Ha.entityStoreCaptionTrackCount;aa!==void 0&&(Pk(Ta,7,aa),ua++);var fa=Ha.isMetadataEntityPresent;
fa!==void 0&&(Ok(Ta,8,fa),ua++);var ia=Ha.transferDiffFields;ia!==void 0&&($N(Ta.j.bind(Ta),ia,cOa),ua++);var O=[ua===Object.keys(Ha).length,Ta];break a}catch(Sa){Y(Sa);O=[!1,void 0];break a}}Ha=O;Ha[0]&&(gk(b,bA,24,Ha[1]),c++)}var ka=a.lastProgressTimeMs;ka!==void 0&&(Rk(b,25,ka),c++);var la=a.initialProgressTimeMs;la!==void 0&&(Rk(b,26,la),c++);var za=a.offlinePlaybackDisabledReason;za!==void 0&&(T(b,27,dOa[za]),c++);return[c===Object.keys(a).length,b]}catch(Sa){return Y(Sa),[!1,void 0]}};
$Na=function(a){var b=new mqa,c=0;try{var d=a.format;d!==void 0&&(Pk(b,1,d),c++);var e=a.isDownloaded;e!==void 0&&(Ok(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
aOa=function(a){var b=new nqa,c=0;try{var d=a.totalDownloadedBytes;d!==void 0&&(Rk(b,1,d),c++);var e=a.totalSegmentCount;e!==void 0&&(Rk(b,2,e),c++);var f=a.backgroundTransitionCount;f!==void 0&&(Rk(b,3,f),c++);var h=a.totalDurationMs;h!==void 0&&(Rk(b,4,h),c++);var l=a.downloadErrorCount;l!==void 0&&(Pk(b,5,l),c++);var m=a.totalDownloadedSizePercent;m!==void 0&&(Qk(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
gOa=function(a){var b=new aA,c=0;try{var d=a.id;d!==void 0&&(S(b,1,d),c++);var e=a.videoIds;e&&(ZN(b.j.bind(b),e),c++);var f=a.videoCount;f!==void 0&&(Pk(b,3,f),c++);var h=a.successCount;h!==void 0&&(Pk(b,4,h),c++);var l=a.failCount;l!==void 0&&(Pk(b,5,l),c++);var m=a.pendingCount;m!==void 0&&(Pk(b,6,m),c++);var n=a.disabledCount;n!==void 0&&(Pk(b,7,n),c++);var p=a.deletedCount;p!==void 0&&(Pk(b,8,p),c++);var q=a.selectedVideoQuality;q!==void 0&&(T(b,9,vNa[q]),c++);var r=a.isPlaylistOwner;r!==void 0&&
(Ok(b,10,r),c++);var t=a.lastSyncTimeMs;t!==void 0&&(Rk(b,11,t),c++);var u=a.requestSource;u!==void 0&&(T(b,12,fOa[u]),c++);var w=a.additionalPlaylistClientState;if(w){a:{var A=new jqa;d=0;try{var C=w.musicAppAdditionalPlaylistClientState;if(C){b:{var F=new iqa;e=0;try{var G=C.isPodcastShow;G!==void 0&&(Ok(F,1,G),e++);var K=[e===Object.keys(C).length,F];break b}catch(R){Y(R);K=[!1,void 0];break b}}C=K;C[0]&&(gk(A,iqa,1,C[1]),d++)}var N=[d===Object.keys(w).length,A];break a}catch(R){Y(R);N=[!1,void 0];
break a}N=void 0}w=N;w[0]&&(gk(b,jqa,13,w[1]),c++)}return[c===Object.keys(a).length,b]}catch(R){return Y(R),[!1,void 0]}};
jOa=function(a){var b=new Xz,c=0;try{var d=a.videoId;d!==void 0&&(b.setVideoId(d),c++);var e=a.itag;e!==void 0&&(Qk(b,6,e),c++);var f=a.failureReason;f!==void 0&&(T(b,2,hOa[f]),c++);var h=a.isCachedExternally;h!==void 0&&(Ok(b,3,h),c++);var l=a.previousFailureReason;l!==void 0&&(T(b,4,hOa[l]),c++);var m=a.previousFailureReasonTimestampMs;m!==void 0&&(Sk(b,5,m),c++);var n=a.streamVerificationStrategy;n!==void 0&&(T(b,7,lO[n]),c++);var p=a.blockSizeBytes;p!==void 0&&(Pk(b,8,p),c++);var q=a.streamVerificationFailedBlocks;
q&&(ZN(b.j.bind(b),q,iOa),c++);var r=a.primaryVerificationStrategy;r!==void 0&&(T(b,10,lO[r]),c++);var t=a.secondaryVerificationStrategy;t!==void 0&&(T(b,11,lO[t]),c++);var u=a.secondaryFailureReason;u!==void 0&&(T(b,12,hOa[u]),c++);return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
iOa=function(a){var b=new fqa,c=0;try{var d=a.itag;d!==void 0&&(Pk(b,1,d),c++);var e=a.startingByte;e!==void 0&&(Rk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
kOa=function(a){var b=new Zz,c=0;try{var d=a.videoId;d!==void 0&&(b.setVideoId(d),c++);var e=a.surrogateVideoId;e!==void 0&&(Rk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
lOa=function(a){var b=new gqa,c=0;try{var d=a.externalVideoId;d!==void 0&&(S(b,1,d),c++);var e=a.videoSid;e!==void 0&&(Rk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
tOa=function(a){var b=new Sx,c=0;try{var d=a.opportunityData;if(d){a:{var e=new Zna,f=0;try{var h=d.debugData;if(h){b:{var l=new Ox,m=0;try{var n=h.slots;n&&(ZN(l.j.bind(l),n,mOa),m++);var p=h.associatedSlotId;p!==void 0&&(S(l,2,p),m++);var q=[m===Object.keys(h).length,l];break b}catch(Ub){Y(Ub);q=[!1,void 0];break b}}h=q;h[0]&&(gk(e,Ox,2,h[1]),f++)}var r=d.opportunityType;r!==void 0&&(T(e,3,nOa[r]),f++);var t=[f===Object.keys(d).length,e];break a}catch(Ub){Y(Ub);t=[!1,void 0];break a}t=void 0}d=
t;d[0]&&(gk(b,Zna,1,d[1]),c++)}var u=a.slotData;if(u){var w=mOa(u);w[0]&&(gk(b,Nx,2,w[1]),c++)}var A=a.layoutData;if(A){a:{var C=new Lx;u=0;try{var F=A.type;F!==void 0&&(T(C,2,oOa[F]),u++);var G=A.debugData;if(G){b:{var K=new Kx;F=0;try{var N=G.layoutId;N!==void 0&&(S(K,1,N),F++);var R=G.exitNormalTriggerData;R&&(ZN(K.A7.bind(K),R,mO),F++);var da=G.exitSkipTriggerData;da&&(ZN(K.B7.bind(K),da,mO),F++);var oa=G.exitMuteTriggerData;oa&&(ZN(K.z7.bind(K),oa,mO),F++);var qa=G.exitUserInputSubmittedTriggerData;
qa&&(ZN(K.D7.bind(K),qa,mO),F++);var ha=G.exitUserCancelledTriggerData;ha&&(ZN(K.C7.bind(K),ha,mO),F++);var ta=[F===Object.keys(G).length,K];break b}catch(Ub){Y(Ub);ta=[!1,void 0];break b}}G=ta;G[0]&&(gk(C,Kx,3,G[1]),u++)}var P=A.controlFlowManagerLayer;P!==void 0&&(T(C,4,pOa[P]),u++);var ua=A.pingTriggerTypes;ua!==void 0&&($N(C.j.bind(C),ua,nO),u++);var y=[u===Object.keys(A).length,C];break a}catch(Ub){Y(Ub);y=[!1,void 0];break a}y=void 0}A=y;A[0]&&(gk(b,Lx,3,A[1]),c++)}var Z=a.triggerData;if(Z){var cb=
mO(Z);cb[0]&&(gk(b,Jx,4,cb[1]),c++)}var La=a.pingData;if(La){a:{var $a=new Rx;Z=0;try{var Ya=La.sourceTriggerType;Ya!==void 0&&(T($a,1,nO[Ya]),Z++);var Ha=La.debugData;Ha&&(ZN($a.j.bind($a),Ha,qOa),Z++);var Ta=La.pingCount;Ta!==void 0&&(Pk($a,3,Ta),Z++);var ob=La.pingDispatchStatus;ob!==void 0&&(T($a,4,rOa[ob]),Z++);var B=La.serializedAdPingMetadata;B!==void 0&&(Vk($a,5,B),Z++);var E=La.pingDebugData;if(E){b:{var D=new Qx;Ya=0;try{var J=E.substitutedMacros;J!==void 0&&($N(D.j.bind(D),J,sOa),Ya++);
var L=E.unsubstitutedMacros;L!==void 0&&($N(D.B.bind(D),L,sOa),Ya++);var aa=[Ya===Object.keys(E).length,D];break b}catch(Ub){Y(Ub);aa=[!1,void 0];break b}}E=aa;E[0]&&(gk($a,Qx,6,E[1]),Z++)}var fa=La.pingIndex;fa!==void 0&&(Pk($a,8,fa),Z++);var ia=[Z===Object.keys(La).length,$a];break a}catch(Ub){Y(Ub);ia=[!1,void 0];break a}ia=void 0}La=ia;La[0]&&(gk(b,Rx,6,La[1]),c++)}var O=a.externalContext;if(O){a:{var ka=new Wna;La=0;try{var la=O.organicPlaybackContext;if(la){b:{var za=new Ix;ia=0;try{var Sa=
la.contentCpn;Sa!==void 0&&(S(za,1,Sa),ia++);var gb=la.isLivePlayback;gb!==void 0&&(Ok(za,2,gb),ia++);var Ab=la.isOfflinePlayback;Ab!==void 0&&(Ok(za,3,Ab),ia++);var pb=la.isMdxPlayback;pb!==void 0&&(Ok(za,4,pb),ia++);var Za=la.isDaiContent;Za!==void 0&&(Ok(za,5,Za),ia++);var qc=la.isPrefetchedPlayback;qc!==void 0&&(Ok(za,6,qc),ia++);var ac=[ia===Object.keys(la).length,za];break b}catch(Ub){Y(Ub);ac=[!1,void 0];break b}}la=ac;la[0]&&(gk(ka,Ix,1,la[1]),La++)}var bc=O.html5ExperimentContext;if(bc){b:{var nc=
new Vna;la=0;try{var Wc=bc.ytExperimentId;Wc!==void 0&&(Pk(nc,1,Wc),la++);var Yb=[la===Object.keys(bc).length,nc];break b}catch(Ub){Y(Ub);Yb=[!1,void 0];break b}}bc=Yb;bc[0]&&(gk(ka,Vna,2,bc[1]),La++)}var wc=O.adVideoPlaybackContext;if(wc){b:{var $c=new Una;bc=0;try{var Pc=wc.adVideoCpn;Pc!==void 0&&(S($c,1,Pc),bc++);var uc=[bc===Object.keys(wc).length,$c];break b}catch(Ub){Y(Ub);uc=[!1,void 0];break b}}wc=uc;wc[0]&&(gk(ka,Una,3,wc[1]),La++)}var Tb=[La===Object.keys(O).length,ka];break a}catch(Ub){Y(Ub);
Tb=[!1,void 0];break a}Tb=void 0}O=Tb;O[0]&&(gk(b,Wna,5,O[1]),c++)}return[c===Object.keys(a).length,b]}catch(Ub){return Y(Ub),[!1,void 0]}};
mOa=function(a){var b=new Nx,c=0;try{var d=a.type;d!==void 0&&(T(b,2,uOa[d]),c++);var e=a.entryTriggerType;e!==void 0&&(T(b,6,nO[e]),c++);var f=a.slotPhysicalPosition;f!==void 0&&(Pk(b,8,f),c++);var h=a.debugData;if(h){a:{var l=new Mx;d=0;try{var m=h.slotId;m!==void 0&&(S(l,1,m),d++);var n=h.entryTriggerTypes;n!==void 0&&($N(l.B.bind(l),n,nO),d++);var p=h.unscheduledDueToError;p!==void 0&&(Ok(l,3,p),d++);var q=h.entryTriggerData;q&&(ZN(l.j.bind(l),q,mO),d++);var r=h.slotEntryTriggerData;if(r){var t=
mO(r);t[0]&&(gk(l,Jx,7,t[1]),d++)}var u=h.fulfillmentTriggerData;u&&(ZN(l.D.bind(l),u,mO),d++);var w=h.expirationTriggerData;w&&(ZN(l.C.bind(l),w,mO),d++);var A=[d===Object.keys(h).length,l];break a}catch(G){Y(G);A=[!1,void 0];break a}A=void 0}h=A;h[0]&&(gk(b,Mx,3,h[1]),c++)}var C=a.externallyManaged;C!==void 0&&(Ok(b,4,C),c++);var F=a.controlFlowManagerLayer;F!==void 0&&(T(b,5,pOa[F]),c++);return[c===Object.keys(a).length,b]}catch(G){return Y(G),[!1,void 0]}};
mO=function(a){var b=new Jx,c=0;try{var d=a.type;d!==void 0&&(T(b,1,nO[d]),c++);var e=a.category;e!==void 0&&(T(b,2,vOa[e]),c++);var f=a.layoutIdEnteredTriggerData;if(f){a:{var h=new Xna;d=0;try{var l=f.enteredLayoutId;l!==void 0&&(S(h,1,l),d++);var m=[d===Object.keys(f).length,h];break a}catch(w){Y(w);m=[!1,void 0];break a}}f=m;f[0]&&(hk(b,Xna,3,wOa,f[1]),c++)}var n=a.triggerSourceData;if(n){a:{var p=new Yna;f=0;try{var q=n.associatedSlotId;q!==void 0&&(Zj(p,1,xOa,Fi(q)),f++);var r=n.associatedLayoutId;
r!==void 0&&(Zj(p,2,xOa,Fi(r)),f++);var t=[f===Object.keys(n).length,p];break a}catch(w){Y(w);t=[!1,void 0];break a}}n=t;n[0]&&(hk(b,Yna,4,wOa,n[1]),c++)}var u=a.shouldOnlyTriggerOnce;u!==void 0&&(Ok(b,5,u),c++);return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
qOa=function(a){var b=new Px,c=0;try{var d=a.macros;d!==void 0&&($N(b.j.bind(b),d,sOa),c++);var e=a.success;e!==void 0&&(Ok(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
zOa=function(a){var b=new Rna,c=0;try{var d=a.cui;if(d){var e=new Qna;try{var f=[0===Object.keys(d).length,e]}catch(l){Y(l),f=[!1,void 0]}d=f;d[0]&&(gk(b,Qna,1,d[1]),c++)}var h=a.step;h!==void 0&&(T(b,2,yOa[h]),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
AOa=function(a){var b=new jy,c=0;try{var d=a.startMs;d!==void 0&&(Tk(b,1,d),c++);var e=a.endMs;e!==void 0&&(Tk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
BOa=function(a){var b=new $na,c=0;try{var d=a.externalVideoId;d!==void 0&&(S(b,1,d),c++);var e=a.originalMediaDurationMs;e!==void 0&&(Rk(b,2,e),c++);var f=a.trimmedMediaDurationMs;f!==void 0&&(Rk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
COa=function(a){var b=new rz,c=0;try{var d=a.orchestrationActionId;d!==void 0&&(S(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
DOa=function(a){var b=new zz,c=0;try{var d=a.answerId;d!==void 0&&(Pk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
GOa=function(a){var b=new vz,c=0;try{var d=a.ypcCallerPage;d!==void 0&&(T(b,1,EOa[d]),c++);var e=a.useCase;e!==void 0&&(T(b,2,FOa[e]),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
LOa=function(a){var b=new Ez,c=0;try{var d=a.itemId;if(d){a:{var e=new Gx,f=0;try{var h=d.type;h!==void 0&&(T(e,1,oO[h]),f++);var l=d.externalId;l!==void 0&&(S(e,2,l),f++);var m=[f===Object.keys(d).length,e];break a}catch(C){Y(C);m=[!1,void 0];break a}}d=m;d[0]&&(gk(b,Gx,1,d[1]),c++)}var n=a.productType;n!==void 0&&(T(b,2,pO[n]),c++);var p=a.originatingDeviceInterface;p!==void 0&&(T(b,4,LMa[p]),c++);var q=a.alcLoggingParams;if(q){a:{var r=new Hpa;n=0;try{var t=q.purchaseOriginEntityType;t!==void 0&&
(T(r,1,HOa[t]),n++);var u=q.purchaseOriginPageType;u!==void 0&&(T(r,2,IOa[u]),n++);var w=q.purchaseOriginComponent;w!==void 0&&(T(r,3,JOa[w]),n++);var A=[n===Object.keys(q).length,r];break a}catch(C){Y(C);A=[!1,void 0];break a}}q=A;q[0]&&(hk(b,Hpa,3,KOa,q[1]),c++)}return[c===Object.keys(a).length,b]}catch(C){return Y(C),[!1,void 0]}};
oPa=function(a){var b=new hz,c=0;try{var d=a.dimensions;if(d){a:{var e=new Poa,f=0;try{var h=d.csn;h!==void 0&&(S(e,1,h),f++);var l=d.userExperienceId;l!==void 0&&(Pk(e,2,l),f++);var m=d.studio;if(m){b:{var n=new fz,p=0;try{var q=m.route;q!==void 0&&(S(n,1,q),p++);var r=m.feature;r!==void 0&&(T(n,2,MOa[r]),p++);var t=m.topEntityType;t!==void 0&&(T(n,3,NOa[t]),p++);var u=m.availability;u!==void 0&&(T(n,4,OOa[u]),p++);var w=m.isChannelDelegation;w!==void 0&&(Ok(n,5,w),p++);var A=m.isArtistDelegation;
A!==void 0&&(Ok(n,6,A),p++);var C=m.environment;C!==void 0&&(T(n,7,POa[C]),p++);var F=m.networkConnectionStatus;F!==void 0&&(T(n,8,QOa[F]),p++);var G=[p===Object.keys(m).length,n];break b}catch(Vb){Y(Vb);G=[!1,void 0];break b}}var K=G;K[0]&&(gk(e,fz,3,K[1]),f++)}var N=d.mweb;if(N){b:{var R=new Moa,da=0;try{var oa=N.pageType;oa!==void 0&&(T(R,1,ROa[oa]),da++);var qa=N.navType;qa!==void 0&&(T(R,2,SOa[qa]),da++);var ha=[da===Object.keys(N).length,R];break b}catch(Vb){Y(Vb);ha=[!1,void 0];break b}}var ta=
ha;ta[0]&&(gk(e,Moa,4,ta[1]),f++)}var P=d.mainAppWeb;if(P){b:{var ua=new Loa,y=0;try{var Z=P.pageType;Z!==void 0&&(T(ua,1,TOa[Z]),y++);var cb=P.requestType;cb!==void 0&&(T(ua,2,UOa[cb]),y++);var La=P.isShellLoad;La!==void 0&&(Ok(ua,3,La),y++);var $a=[y===Object.keys(P).length,ua];break b}catch(Vb){Y(Vb);$a=[!1,void 0];break b}}var Ya=$a;Ya[0]&&(gk(e,Loa,5,Ya[1]),f++)}var Ha=d.survivalSli;if(Ha){b:{var Ta=new Joa,ob=0;try{var B=Ha.partitionMinute;B!==void 0&&(Pk(Ta,1,B),ob++);var E=Ha.survivalStatus;
E!==void 0&&(T(Ta,2,VOa[E]),ob++);var D=Ha.survivalSessionType;D!==void 0&&(T(Ta,3,WOa[D]),ob++);var J=[ob===Object.keys(Ha).length,Ta];break b}catch(Vb){Y(Vb);J=[!1,void 0];break b}}var L=J;L[0]&&(gk(e,Joa,6,L[1]),f++)}var aa=d.tvhtml5;if(aa){b:{var fa=new Noa,ia=0;try{var O=aa.authRefreshTokenFailureType;O!==void 0&&(T(fa,1,XOa[O]),ia++);var ka=aa.networkErrorEndpoint;ka!==void 0&&(T(fa,2,YOa[ka]),ia++);var la=aa.networkErrorResponseCode;la!==void 0&&(Pk(fa,3,la),ia++);var za=aa.sessionSurvivalLengthMin;
za!==void 0&&(Pk(fa,4,za),ia++);var Sa=aa.accountChangeType;Sa!==void 0&&(T(fa,5,ZOa[Sa]),ia++);var gb=aa.accountChangeTrigger;gb!==void 0&&(T(fa,6,$Oa[gb]),ia++);var Ab=aa.cpn;Ab!==void 0&&(S(fa,7,Ab),ia++);var pb=aa.sessionSurvivalDidUserAgentChange;pb!==void 0&&(Ok(fa,8,pb),ia++);var Za=aa.adShownToPremiumUserCondition;Za!==void 0&&(T(fa,9,aPa[Za]),ia++);var qc=aa.identityType;qc!==void 0&&(T(fa,10,bPa[qc]),ia++);var ac=aa.identityDelegationType;ac!==void 0&&(T(fa,11,cPa[ac]),ia++);var bc=aa.botguardServerEnvironment;
bc!==void 0&&(T(fa,12,dPa[bc]),ia++);var nc=aa.accountEventTrigger;nc!==void 0&&(T(fa,13,ePa[nc]),ia++);var Wc=aa.signInMethodType;Wc!==void 0&&(T(fa,14,fPa[Wc]),ia++);var Yb=aa.accountEventErrorType;Yb!==void 0&&(T(fa,15,gPa[Yb]),ia++);var wc=aa.hadRemoteDeviceConnected;wc!==void 0&&(Ok(fa,16,wc),ia++);var $c=aa.hadVoiceInitiatedPlayback;$c!==void 0&&(Ok(fa,17,$c),ia++);var Pc=aa.restartLengthMin;Pc!==void 0&&(Pk(fa,18,Pc),ia++);var uc=aa.restartReason;uc!==void 0&&(T(fa,19,hPa[uc]),ia++);var Tb=
aa.numberOfPersonaAccountsDelta;Tb!==void 0&&(Pk(fa,20,Tb),ia++);var Ub=aa.accountEventCancellationType;Ub!==void 0&&(T(fa,21,iPa[Ub]),ia++);var zd=aa.maxJsMemoryPerAppLifecycleBytes;zd!==void 0&&(Pk(fa,22,zd),ia++);var rd=aa.appLifecycleLengthMin;rd!==void 0&&(Pk(fa,23,rd),ia++);var sd=[ia===Object.keys(aa).length,fa];break b}catch(Vb){Y(Vb);sd=[!1,void 0];break b}}var $b=sd;$b[0]&&(gk(e,Noa,7,$b[1]),f++)}var Fc=d.unpluggedWeb;if(Fc){b:{var Hb=new Ooa,cd=0;try{var Ad=Fc.unpluggedWebEntitlementType;
Ad!==void 0&&(T(Hb,1,jPa[Ad]),cd++);var Pb=Fc.unpluggedWebPurchaseType;Pb!==void 0&&(T(Hb,2,kPa[Pb]),cd++);var he=[cd===Object.keys(Fc).length,Hb];break b}catch(Vb){Y(Vb);he=[!1,void 0];break b}}var Ud=he;Ud[0]&&(gk(e,Ooa,8,Ud[1]),f++)}var Vd=d.logEventStatus;Vd!==void 0&&(Pk(e,9,Vd),f++);var Ce=d.kids;if(Ce){b:{var De=new Koa,Ld=0;try{var bf=Ce.userType;bf!==void 0&&(T(De,1,lPa[bf]),Ld++);var Qe=[Ld===Object.keys(Ce).length,De];break b}catch(Vb){Y(Vb);Qe=[!1,void 0];break b}}var Md=Qe;Md[0]&&(gk(e,
Koa,10,Md[1]),f++)}var Ff=d.screen;Ff!==void 0&&(Pk(e,11,Ff),f++);var Nd=d.navigation;if(Nd){b:{var ie=new Ioa,ad=0;try{var ld=Nd.destinationScreen;ld!==void 0&&(Pk(ie,1,ld),ad++);var td=Nd.navType;td!==void 0&&(T(ie,2,mPa[td]),ad++);var Wd=[ad===Object.keys(Nd).length,ie];break b}catch(Vb){Y(Vb);Wd=[!1,void 0];break b}}var Vf=Wd;Vf[0]&&(gk(e,Ioa,12,Vf[1]),f++)}var qf=[f===Object.keys(d).length,e];break a}catch(Vb){Y(Vb);qf=[!1,void 0];break a}qf=void 0}var Gf=qf;Gf[0]&&(gk(b,Poa,1,Gf[1]),c++)}var Ee=
a.records;Ee&&(ZN(b.j.bind(b),Ee,nPa),c++);return[c===Object.keys(a).length,b]}catch(Vb){return Y(Vb),[!1,void 0]}};
nPa=function(a){var b=new gz,c=0;try{var d=a.name;d!==void 0&&(T(b,1,pPa[d]),c++);var e=a.status;e!==void 0&&(T(b,2,qPa[e]),c++);var f=a.state;f!==void 0&&(b.Ic(rPa[f]),c++);var h=a.sliId;h!==void 0&&(S(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
qO=function(){this.C=new Set;this.B=new Set;this.D=new Map;this.client=void 0;this.csn=null};
rO=function(){qO.instance||(qO.instance=new qO);return qO.instance};
sO=function(){};
tO=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.Da=new Map};
BO=function(){tO.instance||(tO.instance=new tO);return tO.instance};
CO=function(a,b,c,d){d=d===void 0?{}:d;g.nA(function(){sPa.includes(b)||(g.nE(new g.FB("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.BX?tPa(a,b,c,d):uPa(a,b,c,d)})()};
vPa=function(a,b,c){c=c===void 0?0:c;g.nA(function(){b.then(function(d){a.B.has(c)&&a.D&&a.D();var e=g.jE(c),f=g.iE(c);if(e&&f){var h;(d==null?0:(h=d.response)==null?0:h.trackingParams)&&g.wE(a.client,e,f,g.hE(d.response.trackingParams));var l;(d==null?0:(l=d.playerResponse)==null?0:l.trackingParams)&&g.wE(a.client,e,f,g.hE(d.playerResponse.trackingParams))}})})()};
EO=function(a){var b=BO();g.nA(function(){var c=g.hE(a);DO(b,c);return c})()};
DO=function(a,b,c,d){d=d===void 0?0:d;g.nA(function(){if(a.B.has(d))return a.N.push([b,c]),!0;var e=g.jE(d),f=c||g.iE(d);if(e&&f){if(g.FA("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.ra||(a.ra=g.OB(0,function(){wPa(a,e)},1200))}else g.wE(a.client,e,f,b);
return!0}return!1})()};
xPa=function(a,b,c,d){d=d===void 0?0:d;var e=g.jE(d);d=b||g.iE(d);e&&d&&(a=a.client,b=uE({cttAuthInfo:kE(e)||void 0},e),g.FA("il_via_jspb")?(c=new Qz,c.j(e),d=d.getAsJspb(),gk(c,lz,2,d),e==="UNDEFINED_CSN"?yE("visualElementStateChanged",b,void 0,c):Twa(c,b,a)):(c={csn:e,ve:d.getAsJson(),clientData:c},e==="UNDEFINED_CSN"?yE("visualElementStateChanged",b,c):a?bE("visualElementStateChanged",c,a,b):g.VB("visualElementStateChanged",c,b)))};
tPa=function(a,b,c,d){d=d===void 0?{}:d;a.B.add(d.layer||0);a.D=function(){uPa(a,b,c,d);var h=g.iE(d.layer);if(h){for(var l=g.v(a.N),m=l.next();!m.done;m=l.next())m=m.value,DO(a,m[0],m[1]||h,d.layer);h=g.v(a.Z);for(l=h.next();!l.done;l=h.next())l=l.value,xPa(a,l[0],l[1])}};
c||g.jE(d.layer)||a.D();if(d.BX)for(var e=g.v(d.BX),f=e.next();!f.done;f=e.next())vPa(a,f.value,d.layer);else g.mE(Error("Delayed screen needs a data promise."))};
uPa=function(a,b,c,d){d=d===void 0?{}:d;var e=void 0;d.layer||(d.layer=0);e=d.parentLayer!==void 0?d.parentLayer:d.layer;var f=g.jE(e);e=g.iE(e);var h=c||e,l;h&&(d.parentCsn!==void 0?l={clientScreenNonce:d.parentCsn,visualElement:h}:f&&f!=="UNDEFINED_CSN"&&(l={clientScreenNonce:f,visualElement:h}));var m,n=g.jA("EVENT_ID");f==="UNDEFINED_CSN"&&n&&(m={servletData:{serializedServletEventId:n}});g.FA("combine_ve_grafts")&&f&&wPa(a,f);g.FA("no_client_ve_attach_unless_shown")&&h&&f&&Uxa(h,f);try{var p=
Sxa(a.client,b,l,d.xX,d.cttAuthInfo,m,d.implicitGestureType,d.loggingExpectations)}catch(t){Gxa(t,{mH:b,rootVe:e,Mrb:c,Opb:f,Lrb:l,xX:d.xX});g.mE(t);return}ixa(p,b,d.layer,d.cttAuthInfo);f&&f!=="UNDEFINED_CSN"&&e&&!fxa(f)&&Xxa(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.LG({clientScreenNonce:p});sO.instance||(sO.instance=new sO);g.nA(rO().j).bind(rO())();var q=g.iE(d.layer);f&&f!=="UNDEFINED_CSN"&&q&&(g.FA("web_mark_root_visible")||g.FA("music_web_mark_root_visible"))&&
g.AE(p,q);a.B.delete(d.layer||0);a.D=void 0;var r;(r=a.Da.get(d.layer))==null||r.forEach(function(t,u){t?DO(a,u,t,d.layer):q&&DO(a,u,q,d.layer)});
yPa(a)};
yPa=function(a){for(var b=0;b<a.G.length;b++){var c=a.G[b];try{c()}catch(d){g.mE(d)}}for(b=a.G.length=0;b<a.Y.length;b++){c=a.Y[b];try{c()}catch(d){g.mE(d)}}};
wPa=function(a,b){if(b===void 0)for(var c=dxa(),d=0;d<c.length;d++)c[d]!==void 0&&wPa(a,c[d]);else a.C.forEach(function(e,f){(f=a.K.get(f))&&g.Txa(a.client,b,f,e)}),a.C.clear(),a.K.clear(),a.ra=void 0};
FO=function(){};
zPa=function(){FO.instance||(FO.instance=new FO);return FO.instance};
APa=function(a,b,c){var d=new XMLHttpRequest;if(c==null?0:c.EB)d.onreadystatechange=function(f){c.EB(d,f)};
var e;d.open((e=b.method)!=null?e:"GET",a,!0);d.responseType="text";d.withCredentials=!0;if(b.headers)for(a=g.v(Object.entries(b.headers)),b=a.next();!b.done;b=a.next())e=g.v(b.value),b=e.next().value,e=e.next().value,d.setRequestHeader(b,e);return d};
GO=function(){};
BPa=function(){var a=navigator;return new Promise(function(b,c){var d;(d=a.webkitTemporaryStorage)!=null&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
Asa=function(a,b){var c=this;this.handleError=a;this.j=b;this.B=!1;self.document===void 0||self.addEventListener("beforeunload",function(){c.B=!0});
this.C=Math.random()<=.2};
DPa=function(a,b){GO.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:CPa(c==null?void 0:c.usage),deviceStorageQuotaMbytes:CPa(c==null?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
CPa=function(a){return typeof a==="undefined"?"-1":String(Math.ceil(a/1048576))};
FPa=function(){g.CB();return g.DB(0,192)?g.DB(0,190):!(g.FA("web_watch_cinematics_disabled_by_default")||g.FA("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&EPa())};
HPa=function(a){return!GPa||(0,g.iC)()-GPa>a};
JPa=function(a,b){IPa(a.program,b.zda)&&(SG("bg_i",void 0,"player_att"),g.HO.initialize(a,function(){SG("bg_l",void 0,"player_att");GPa=(0,g.iC)()},b.cspNonce))};
KPa=function(a){a=a===void 0?{}:a;return g.HO.invoke(a)};
IPa=function(a,b){return a?g.HO.isLoading()?!1:HPa(b):!1};
LPa=function(a){a=a.split("");IO.oj(a,68);IO.bf(a,21);IO.Cn(a,1);IO.oj(a,32);IO.oj(a,67);IO.Cn(a,3);return a.join("")};
g.MPa=function(a,b){return a.Ha+"timedtext_video?ref=player&v="+b.videoId};
g.JO=function(a,b){a.feature=b};
g.NPa=function(a){var b=this;this.videoData=a;a={};this.j=(a.c1a=function(){var c=[];if(g.HO.isInitialized()){var d="";b.videoData&&b.videoData.wr&&(d=b.videoData.wr+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);SG("bg_v",void 0,"player_att");(d=KPa(d))?(SG("bg_s",void 0,"player_att"),c.push("r1a="+d)):(SG("bg_e",void 0,"player_att"),c.push("r1c=2"))}else SG("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.HO.getState());
return c.join("&")},a.c6a=function(c){return"r6a="+(Number(c.c)^fH())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.jA("CATSTAT",0)))},a);
this.videoData&&this.videoData.wr?this.yr=rA(this.videoData.wr):this.yr={}};
g.OPa=function(a){if(a.videoData&&a.videoData.wr){for(var b=[a.videoData.wr],c=g.v(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,a.yr[d]&&a.j[d]&&(d=a.j[d](a.yr))&&b.push(d);return b.join("&")}return null};
g.PPa=function(a,b){JPa(a,{zda:g.oI(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
QPa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&a.length===3};
KO=function(a){a=a===void 0?2592E3:a;if(a>0&&!(hsa()>(0,g.iC)()-a*1E3))return 0;a=g.yB("yt-player-quality");if(typeof a==="string"){if(a=g.PJ[a],a>0)return a}else if(a instanceof Object)return a.quality;return 0};
RPa=function(){var a=g.yB("yt-player-proxima-pref");return a==null?null:a};
SPa=function(){var a=g.yB("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};
TPa=function(){var a={values:{},Rr:{}};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};
UPa=function(a,b,c){c=c===void 0?!1:c;var d=LO();+d[a]>0&&(b=Math.min(+d[a],b));d[a]!==b&&(d[a]=b,g.xB("yt-player-performance-cap",d,c?2592E3:604800))};
VPa=function(a,b){b=b===void 0?!0:b;var c=LO();return b?+c[a]||8192:c[a]};
LO=function(){return g.yB("yt-player-performance-cap")||{}};
WPa=function(){var a;return(a=g.yB("yt-player-performance-cap-active-set"))!=null?a:[]};
XPa=function(a){(a===void 0?0:a)?(a=WPa().filter(function(b){return b.startsWith("1")}),g.xB("yt-player-performance-cap-active-set",a,2592E3)):g.xB("yt-player-performance-cap-active-set",[],2592E3)};
YPa=function(a){g.xB("yt-player-watch-later-pending",a)};
ZPa=function(){return!!g.yB("yt-player-headers-readable")};
$Pa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.aQa=function(){var a=g.yB("yt-player-caption-language-preferences");return a?a:[]};
fQa=function(a,b){RN(a,2,b.zr,bQa,3);RN(a,3,b.BQ,cQa,3);PN(a,4,b.onesieUstreamerConfig);PN(a,9,b.mp);RN(a,10,b.CC,dQa,3);RN(a,15,b.reloadPlaybackParams,eQa,3)};
iQa=function(a,b){RN(a,1,b.formatId,MO,3);NN(a,2,b.startTimeMs);NN(a,3,b.durationMs);NN(a,4,b.vn);NN(a,5,b.Yi);RN(a,9,b.wpb,gQa,3);RN(a,11,b.Nrb,hQa,1);RN(a,12,b.tS,hQa,1)};
jQa=function(a,b){QN(a,1,b.videoId);NN(a,2,b.lmt)};
gQa=function(a,b){if(b.IW)for(var c=0;c<b.IW.length;c++)RN(a,1,b.IW[c],jQa,3)};
MO=function(a,b){NN(a,1,b.itag);NN(a,2,b.lmt);QN(a,3,b.xtags)};
NO=function(a){return{itag:DN(a,1),lmt:DN(a,2),xtags:GN(a,3)}};
hQa=function(a,b){NN(a,1,b.Ah);NN(a,2,b.CE);NN(a,3,b.Ev)};
kQa=function(a){return{Ah:DN(a,1),CE:DN(a,2),Ev:DN(a,3)}};
bQa=function(a,b){NN(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;c!==void 0&&(MN(a,112),MN(a,c<<1^c>>31));NN(a,16,b.z$);NN(a,17,b.detailedNetworkType);NN(a,18,b.R7);NN(a,19,b.Q7);NN(a,21,b.Dea);NN(a,23,b.H7);NN(a,28,b.CS);NN(a,29,b.Tea);NN(a,34,b.visibility);c=b.playbackRate;if(c!==void 0){var d=new ArrayBuffer(4);(new Float32Array(d))[0]=c;c=(new Uint32Array(d))[0];if(c!==void 0)for(MN(a,285),LN(a,4),d=0;d<4;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}NN(a,36,b.t8);
RN(a,38,b.mediaCapabilities,lQa,3);NN(a,39,b.Sea);NN(a,40,b.Rw);NN(a,44,b.playerState);ON(a,46,b.q8);NN(a,48,b.Gy);NN(a,50,b.Gw);NN(a,51,b.Ry);NN(a,54,b.Fq);ON(a,56,b.caa);NN(a,57,b.W7);ON(a,58,b.To);NN(a,59,b.tj);NN(a,60,b.Rx);ON(a,61,b.isPrefetch);NN(a,62,b.Pz);PN(a,63,b.sabrLicenseConstraint);NN(a,64,b.B$);NN(a,66,b.A$);NN(a,67,b.Brb);NN(a,68,b.O$)};
lQa=function(a,b){if(b.videoFormatCapabilities)for(var c=0;c<b.videoFormatCapabilities.length;c++)RN(a,1,b.videoFormatCapabilities[c],mQa,1);if(b.audioFormatCapabilities)for(c=0;c<b.audioFormatCapabilities.length;c++)RN(a,2,b.audioFormatCapabilities[c],nQa,1);NN(a,5,b.hdrModeBitmask)};
mQa=function(a,b){NN(a,1,b.videoCodec);NN(a,3,b.maxHeight);NN(a,4,b.maxWidth);NN(a,11,b.maxFramerate);NN(a,12,b.maxBitrateBps);ON(a,15,b.is10BitSupported)};
nQa=function(a,b){NN(a,1,b.audioCodec);NN(a,2,b.numChannels);NN(a,3,b.maxBitrateBps);NN(a,6,b.spatialCapabilityBitmask)};
dQa=function(a,b){RN(a,1,b.clientInfo,oQa,3);PN(a,2,b.IS);PN(a,3,b.playbackCookie);PN(a,4,b.mp);if(b.fM)for(var c=0;c<b.fM.length;c++)RN(a,5,b.fM[c],pQa,3);if(b.KM)for(c=0;c<b.KM.length;c++)NN(a,6,b.KM[c]);QN(a,7,b.vea);RN(a,8,b.cda,qQa,3)};
rQa=function(a,b){var c=b.code;c!==void 0&&(MN(a,8),MN(a,c<<1^c>>31));QN(a,2,b.message)};
qQa=function(a,b){PN(a,1,b.PB);RN(a,2,b.Prb,rQa,3)};
pQa=function(a,b){NN(a,1,b.type);PN(a,2,b.value)};
oQa=function(a,b){QN(a,12,b.deviceMake);QN(a,13,b.deviceModel);NN(a,16,b.clientName);QN(a,17,b.clientVersion);QN(a,18,b.osName);QN(a,19,b.osVersion)};
sQa=function(a,b){QN(a,1,b.name);QN(a,2,b.value)};
tQa=function(a,b){QN(a,1,b.url);if(b.tQ)for(var c=0;c<b.tQ.length;c++)RN(a,2,b.tQ[c],sQa,3);PN(a,3,b.postBody);ON(a,4,b.uda);ON(a,6,b.zC)};
cQa=function(a,b){PN(a,2,b.MX);PN(a,5,b.encryptedClientKey);PN(a,6,b.iv);PN(a,7,b.fZ);ON(a,10,b.N1);ON(a,13,b.LX);ON(a,14,b.hP);PN(a,16,b.ifa);ON(a,17,b.x3)};
uQa=function(a){return{A0:DN(a,1),hZ:DN(a,2),body:FN(a,4)}};
vQa=function(a){return{bitrate:DN(a,6),width:DN(a,7),height:DN(a,8),fps:DN(a,25),averageBitrate:DN(a,31),audioSampleRate:DN(a,45),audioChannels:DN(a,46)}};
eQa=function(a,b){QN(a,1,b.token)};
wQa=function(a){return{lj:DN(a,1),s1:DN(a,2)}};
AQa=function(a,b){RN(a,1,b.zr,bQa,3);if(b.vx)for(var c=0;c<b.vx.length;c++)RN(a,2,b.vx[c],MO,3);if(b.jd)for(c=0;c<b.jd.length;c++)RN(a,3,b.jd[c],iQa,3);PN(a,5,b.videoPlaybackUstreamerConfig);if(b.Ro)for(c=0;c<b.Ro.length;c++)RN(a,6,b.Ro[c],xQa,3);if(b.qH)for(c=0;c<b.qH.length;c++)RN(a,16,b.qH[c],MO,3);if(b.rH)for(c=0;c<b.rH.length;c++)RN(a,17,b.rH[c],MO,3);RN(a,19,b.CC,dQa,3);RN(a,21,b.hn,yQa,3);NN(a,22,b.HK);NN(a,23,b.EK);if(b.GH)for(c=0;c<b.GH.length;c++)RN(a,1E3,b.GH[c],zQa,3)};
xQa=function(a,b){RN(a,1,b.formatId,MO,3);NN(a,2,b.Pj);NN(a,3,b.sequenceNumber);RN(a,4,b.DJ,hQa,1);NN(a,5,b.SZ)};
yQa=function(a,b){if(b.AI)for(var c=0;c<b.AI.length;c++)QN(a,1,b.AI[c]);PN(a,2,b.NW);QN(a,3,b.Ot);NN(a,4,b.j2);NN(a,5,b.z3);QN(a,6,b.A3)};
zQa=function(a,b){if(b.vx)for(var c=0;c<b.vx.length;c++)RN(a,1,b.vx[c],MO,3);if(b.jd)for(c=0;c<b.jd.length;c++)RN(a,2,b.jd[c],iQa,3);QN(a,3,b.clipId)};
g.BQa=function(a,b){RN(a,1,b.zr,bQa,3);PN(a,3,b.videoPlaybackUstreamerConfig);RN(a,5,b.CC,dQa,3);RN(a,6,b.hn,yQa,3)};
EQa=function(a,b){QN(a,1,b.cpn);NN(a,2,b.sequenceNumber);QN(a,3,b.serializedWatchEndpointLoggingContext);if(b.decoderInfo)for(var c=0;c<b.decoderInfo.length;c++)RN(a,6,b.decoderInfo[c],CQa,3);QN(a,9,b.playerResponseCpn);NN(a,10,b.transitionStitchType);NN(a,12,b.timestampOffsetMsecs);NN(a,15,b.remoteControlMode);if(b.remoteConnectedDevices)for(c=0;c<b.remoteConnectedDevices.length;c++)RN(a,16,b.remoteConnectedDevices[c],DQa,3);PN(a,17,b.serializedHouseBrandPlayerServiceLoggingContext)};
CQa=function(a,b){NN(a,1,b.elapsedTimeMs);QN(a,3,b.videoDecoderName)};
DQa=function(a,b){NN(a,1,b.deviceInterface);QN(a,2,b.deviceVersion);ON(a,3,b.isSleeping)};
FQa=function(a){return{first:DN(a,1),IZ:DN(a,2)}};
GQa=function(a){return{itagDenylist:IN(a,1)}};
IQa=function(a){return{Arb:JN(a,1,HQa)}};
HQa=function(a){return{conditions:IN(a,1),Crb:DN(a,2)}};
LQa=function(a){return{Yca:DN(a,1),itag:GN(a,3),M0:HN(a,4,JQa),lmt:DN(a,5),cqb:DN(a,7),xtags:GN(a,15),W$:HN(a,23,KQa),dB:HN(a,34,GQa)}};
JQa=function(a){return{iv:FN(a,5),q$:EN(a,7)}};
MQa=function(a){return{G7:IN(a,2),videoId:GN(a,3),uU:DN(a,4)}};
KQa=function(a){return{videoId:GN(a,2)}};
NQa=function(a){return{lK:DN(a,3),mK:DN(a,4),kda:EN(a,8),krb:DN(a,10),y_:DN(a,12),z_:DN(a,13),l_:DN(a,14),m_:DN(a,15)}};
OQa=function(a){return{targetAudioReadaheadMs:DN(a,1),targetVideoReadaheadMs:DN(a,2),backoffTimeMs:DN(a,4),playbackCookie:FN(a,7),videoId:GN(a,8)}};
PQa=function(a){return{minBandwidthBytesPerSec:DN(a,1),minReadaheadMs:DN(a,2)}};
QQa=function(a){return{startMinReadaheadPolicy:JN(a,1,PQa),resumeMinReadaheadPolicy:JN(a,2,PQa)}};
RQa=function(a){return{label:GN(a,1),text:GN(a,2)}};
SQa=function(a){return{videoId:GN(a,1),formatId:HN(a,2,NO),debugInfo:JN(a,3,RQa)}};
TQa=function(a){return{P8:JN(a,1,SQa)}};
UQa=function(a){return{nR:DN(a,1),VK:DN(a,2),minReadaheadMs:DN(a,3)}};
VQa=function(a){return{P0:DN(a,1),items:JN(a,2,UQa),qq:DN(a,3)}};
WQa=function(a){return{token:GN(a,1),videoId:GN(a,2)}};
XQa=function(a){return{Sp:DN(a,1)}};
YQa=function(a){return{wda:GN(a,1),action:DN(a,2),H1:HN(a,3,XQa)}};
ZQa=function(a){return{gT:DN(a,1),hT:DN(a,2),seekSource:DN(a,3)}};
aRa=function(a){return{K2:JN(a,1,$Qa),xea:GN(a,2)}};
bRa=function(a){return{K3:GN(a,1),N0:DN(a,2),I$:DN(a,3),a_:DN(a,4),b_:DN(a,5),O0:DN(a,6)}};
cRa=function(a){return{KK:DN(a,1)}};
$Qa=function(a){return{clipId:GN(a,1),Xq:HN(a,2,bRa),wR:HN(a,3,cRa)}};
dRa=function(a){return{type:DN(a,1),scope:DN(a,2),value:FN(a,3),sendByDefault:EN(a,4)}};
eRa=function(a){var b=[];a=g.v(a.split(","));for(var c=a.next();!c.done;c=a.next()){var d=c.value;d&&((c=d.startsWith("!"))&&(d=d.substring(1)),d=d.split("-"),d.length<3||b.push({n2:d[0],platform:d[1],deviceVersion:d[2],kZ:c}))}return b};
hRa=function(a){return eRa(a).map(function(b){return{deviceInterface:fRa[gRa[b.n2]]||0,deviceVersion:b.deviceVersion||"",isSleeping:b.kZ}})};
g.OO=function(a,b){this.id=a;this.Yb=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.Yb.id.split(".");a.length>1&&(this.G=a[1]==="2")};
PO=function(a,b,c,d,e){this.B=a;this.j=b;this.C=c;this.reason=d;this.ub=e===void 0?0:e};
iRa=function(a,b){return a.B===b.B&&a.j===b.j&&a.C===b.C&&a.reason===b.reason&&(!QO||a.ub===b.ub)};
g.RO=function(a,b,c,d){return new PO(g.PJ[a]||0,g.PJ[b]||0,c,d)};
SO=function(a){if(QO&&a.ub)return!1;var b=g.PJ.auto;return a.B===b&&a.j===b};
UO=function(a){return TO[a.j||a.B]||"auto"};
jRa=function(a,b){b=g.PJ[b];return a.B<=b&&(!a.j||a.j>=b)};
VO=function(a){return"["+a.B+"-"+a.j+", override: "+(a.C+", reason: "+a.reason+"]")};
WO=function(a,b,c){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;c==null||c({ainfolen:this.j.length});b=g.v(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.Yb||a.has(d.Yb.id)){var e=void 0,f=void 0,h=void 0;(h=c)==null||h({atkerr:!!d.Yb,itag:d.itag,xtag:d.j,lang:((e=d.Yb)==null?void 0:e.name)||"",langid:((f=d.Yb)==null?void 0:f.id)||""})}else e=new g.OO(d.id,d.Yb),a.add(d.Yb.id),this.audioTracks.push(e);c==null||c({atklen:this.audioTracks.length})}};
kRa=function(){g.I.apply(this,arguments);this.j=null};
oRa=function(a,b,c,d,e,f,h){if(a.j)return a.j;var l={},m=new Set,n={};if(XO(d)){for(var p in d.j)d.j.hasOwnProperty(p)&&(a=d.j[p],n[a.info.sb]=[a.info]);return n}p=lRa(b,d,l);f&&e({aftsrt:YO(p)});for(var q={},r=g.v(Object.keys(p)),t=r.next();!t.done;t=r.next()){t=t.value;for(var u=g.v(p[t]),w=u.next();!w.done;w=u.next()){w=w.value;var A=w.itag,C=void 0,F=t+"_"+(((C=w.video)==null?void 0:C.fps)||0);q.hasOwnProperty(F)?q[F]===!0?n[t].push(w):l[A]=q[F]:(C=ZO(b,w,c,d.isLive,m),C!==!0?(h.add(t),l[A]=C,
C==="disablevp9hfr"&&(q[F]="disablevp9hfr")):(n[t]=n[t]||[],n[t].push(w),q[F]=!0))}}f&&e({bfflt:YO(n)});for(var G in n)n.hasOwnProperty(G)&&(d=G,n[d]&&n[d][0].Cg()&&(n[d]=n[d],n[d]=mRa(b,n[d],l),n[d]=nRa(n[d],l)));f&&e(l);b=g.v(m.values());for(d=b.next();!d.done;d=b.next())(d=c.C.get(d.value))&&--d.D1;f&&e({aftflt:YO(n)});a.j=g.Uc(n,function(K){return!!K.length});
return a.j};
qRa=function(a,b,c,d,e,f,h,l){l=l===void 0?!1:l;if(b.Sc&&h&&h.length>1&&!(b.tj>0||b.Y)){for(var m=b.B||!!e,n=m&&b.Qb?f:void 0,p=lRa(b,d),q=[],r=[],t={},u=0;u<h.length;u++){var w=h[u],A=d.N.get(w);if(A&&A.info){var C=A.info;A=C.sb;if(ZO(b,C,c,d.isLive)){w=C.Cg()?q:r;C=g.v(p[A]);for(var F=C.next();!F.done;F=C.next()){F=F.value;var G=void 0,K=A+"_"+(((G=F.video)==null?void 0:G.fps)||0);t.hasOwnProperty(K)?t[K]===!0&&w.push(F):ZO(b,F,c,d.isLive)&&(w.push(F),t[K]=!0)}}else m&&f({opfu:w})}}if(q.length&&
r.length)return m&&f({opfm:q[0].itag+","+r[0].itag}),NA(new WO(q,r,n))}return pRa(a,b,c,d,e,f,l)};
pRa=function(a,b,c,d,e,f,h){function l(C){return!!q[C]}
var m=b.B||!!e,n=m&&b.Qb?f:void 0,p=new Set,q=oRa(a,b,c,d,f,m,p);$O(d)&&(q=rRa(c,q,e,m,f,b),m&&f({enflt:YO(q)}));b.rb=sRa(q);if(XO(d))return f=g.Cb(Object.values(q),function(C){return!!C.length&&!!C[0].audio}),a=g.Cb(Object.values(q),function(C){return!!C.length&&!!C[0].video}),f&&a||MA(),NA(new WO(a,f,n));
e=tRa(b);m&&f({audioPrefOrder:e.join("_")});a=[];if(b.le){e=g.Mt(e,l);for(var r=new Set,t=g.v(e),u=t.next();!u.done;u=t.next()){u=g.v(q[u.value]);for(var w=u.next();!w.done;w=u.next())w=w.value,w.Yb&&!r.has(w.Yb.id)&&(r.add(w.Yb.id),a.push(w))}if(a.length===0){if(e.length===0)return m&&f({noaudio:1}),MA();a=q[e[0]]}}else{a=g.Cb(e,l);if(!a)return m&&f({noaudio:1}),MA();a=q[a]}q["9"]&&q.h&&d.hc&&!b.Wa&&(m&&f({dltvp9:1}),delete q["9"]);if(h){m&&f({bfsflt:YO(q),bfsflta:aP(c)});uRa(c,p);m&&f({bfsfltb:aP(c)});
for(var A in q)if(q.hasOwnProperty(A)&&(h=A,!(h==="f"||b.Ng===0&&vRa.has(h))))for(p=g.v(q[h]),e=p.next();!e.done;e=p.next())e=e.value,b.Zc?wRa(c,h,e):xRa(c,h,e);m&&f({aftsflt:aP(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.Fd&&e)A=e,p=[h],f({forceAv1:h});else if(b.Y&&!b.To)for(p=yRa(d)?q["1h"]||q["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],m&&f({newhybpref:p.join(".")}),
e=g.v(p),r=e.next();!r.done;r=e.next())A=A.concat(q[r.value]).filter(function(C){return C});
else b.tj>0&&r&&e&&(p=[h,c],A=e.concat(r).filter(function(C){return C}));
if(A.length&&!b.To){bP(A,p);if(m){m=[];b=g.v(A);for(d=b.next();!d.done;d=b.next())m.push(d.value.itag);f({hbdfmt:m.join(".")})}return NA(new WO(A,a,n))}A=zRa(b);A=g.Cb(A,l);if(!A){if(q[h])return f=q[h],bP(f),NA(new WO(f,a,n));m&&f({novideo:1});return MA()}b.Cc&&(A==="1"||A==="1h")&&q[c]&&(h=cP(q[A]),p=cP(q[c]),p>h?A=c:b.Ed&&p===h&&ARa(q[c])&&(A=c));A==="9"&&q.h&&cP(q.h)>cP(q["9"])&&(A="h");b.Kb&&d.isLive&&A==="("&&q.H&&cP(q["("])<1440&&(A="H");m&&f({vfmly:BRa(A)});b=q[A];if(!b.length)return m&&f({novfmly:BRa(A)}),
MA();bP(b);return NA(new WO(b,a,n))};
sRa=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3);return!(!a.m&&!a.M)||b||c};
ARa=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&CRa.has(b.itag))return!0;return!1};
BRa=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
YO=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(BRa(d));d=g.v(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
rRa=function(a,b,c,d,e,f){var h={},l={};g.Tc(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.oe)return l[q]="noenc",!1;if(f.Ab&&p.sb==="(h"&&f.Cb)return l[q]="lichdr",!1;if(p.sb==="("||p.sb==="(h"){if(a.D&&c&&c.flavor==="widevine"){var r=p.mimeType+"; experimental=allowed";(r=!!p.oe[c.flavor]&&!!c.j[r])||(l[q]=p.oe[c.flavor]?"unspt":"noflv");return r}if(!dP(a,eP.CRYPTOBLOCKFORMAT)&&!a.Ga||a.ra)return l[q]=a.ra?"disvp":"vpsub",!1}return c&&p.oe[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.oe[c.flavor]?
"unspt":"noflv":"nosys",!1)});
m.length&&(h[n]=m)});
d&&Object.entries(l).length&&e(l);return h};
nRa=function(a,b){var c=bs(a,function(d,e){return e.video.fps>32?Math.min(d,e.video.width):d},Infinity);
c<Infinity&&(a=a.filter(function(d){if(d.video.fps>32||d.video.width<c)return!0;b[d.itag]="hfrfirst";return!1}));
lra()&&(a=a.filter(function(d){if(d.itag!=="299")return!0;b[d.itag]="ps3hfr1080";return!1}));
return a};
mRa=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.Ub)return!0;c[d.itag]="maxquality";return!1})};
lRa=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.v(Object.keys(d));for(b=a.next();!b.done;b=a.next())bP(d[b.value]);return d};
cP=function(a){return bs(a,function(b,c){return Math.max(b,c.video.j)},0)};
ZO=function(a,b,c,d,e){e=e===void 0?new Set:e;if(b.sb==="")return"unkn";if((b.itag==="304"||b.itag==="266")&&a.Ha)return"blk2khfr";if(a.K&&b.video&&b.video.j>a.K)return"max"+a.K;if(a.ib&&b.sb==="h"&&b.video&&b.video.j>1080)return"blkhigh264";if(b.sb==="(h"&&!c.K)return"enchdr";if((d===void 0?0:d)&&XJ(b)&&!a.Sa)return"blk51live";if((b.sb==="MAC3"||b.sb==="mac3")&&!a.D)return"blkac3";if((b.sb==="MEAC3"||b.sb==="meac3")&&!a.G)return"blkeac3";if((b.sb==="M"||b.sb==="m")&&!a.va)return"blkaac51";if((b.sb===
"so"||b.sb==="sa")&&!a.Da)return"blkamb";if(!a.Ab&&b.oe&&b.oe.fairplay&&(b.sb==="("||b.sb==="(h"||b.sb==="A"||b.sb==="MEAC3"))return"cbc";if(b.sb==="i"&&!a.Lb)return"blkiamf";var f,h;if(a.eb&&(b.sb==="1"||b.sb==="1h")&&((f=b.video)==null?0:f.j)&&((h=b.video)==null?void 0:h.j)>a.eb)return"av1cap";if((d=c.C.get(b.sb))&&d.D1>0)return e.add(b.sb),"byerr";var l;if((l=b.video)==null?0:l.fps>32){if(!c.Ha&&!dP(c,eP.FRAMERATE))return"capHfr";if(a.Ya&&b.video.j>=4320)return"blk8khfr";if(VJ(b)&&a.Ud&&b.oe&&
b.video.j>=1440)return"disablevp9hfr"}if(a.ub&&b.ub>a.ub)return"ratecap";a=DRa(c,b);return a!==!0?a:!0};
bP=function(a,b){b=b===void 0?[]:b;g.Sb(a,function(c,d){var e=d.ub-c.ub;if(!c.Cg()||!d.Cg())return e;var f=d.video.height*d.video.width-c.video.height*c.video.width;!f&&b&&b.length>0&&(c=b.indexOf(c.sb)+1,d=b.indexOf(d.sb)+1,f=c===0||d===0?d||-1:c-d);f||(f=e);return f})};
g.fP=function(a,b){this.B=a;this.D=b===void 0?!1:b;this.C=this.path=this.scheme="";this.j={};this.url=""};
hP=function(a){gP(a);return a.C};
iP=function(a){return a.B?a.B.startsWith("local"):a.scheme==="local"};
ERa=function(a){gP(a);return g.Xc(a.j,function(b){return b!==null})};
FRa=function(a){gP(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return a.path==="/videoplayback"&&b.length>1&&!!b[1]};
jP=function(a,b){b=b===void 0?!1:b;gP(a);if(a.path!=="/videoplayback"){var c=a.clone();c.set("playerfallback","1");return c}var d=a.Ge();c=new g.kq(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&f.length>1&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.mq(c,(d.indexOf("rr")===0?"rr":"r")+e+"---"+f[1]+a),c=new g.fP(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.mq(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.mq(c,"www.youtube.com"),d=c.toString()):(c=WCa(d),QI(c)&&(d=c));c=new g.fP(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
gP=function(a){if(a.B){if(!QI(a.B)&&!a.B.startsWith("local"))throw new g.FB("Untrusted URL",a.B);var b=g.tq(a.B);a.scheme=b.G;a.C=b.j+(b.D!=null?":"+b.D:"");var c=b.B;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.slice(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.slice(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);d>0&&e>0?(a.path=c.slice(0,e),c=c.slice(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=GRa(c);Object.assign(a.j,
HRa(b.C.toString()));Object.assign(a.j,d);a.j.file==="index.m3u8"&&(delete a.j.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(b=String.fromCharCode(110),c=a.get(b))&&(c=IRa[0](c),a.set(b,c),IRa.length||Ima(""))}};
JRa=function(a){gP(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(ERa(a)){var c=[];g.Tc(a.j,function(d,e){d!==null&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
GRa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&KRa(c,a[b],a[b+1]);return c};
HRa=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");e>0?KRa(b,d.slice(0,e),d.slice(e+1)):d&&(b[d]="")}return b};
KRa=function(a,b,c){if(b==="cmo"){var d;(d=c.indexOf("="))>=0?(b="cmo="+c.slice(0,d),c=c.slice(d+1)):(d=c.indexOf("%3D"))>=0&&(b="cmo="+c.slice(0,d),c=c.slice(d+3))}a[b]=c};
kP=function(a){var b=g.V(a,LRa)||a.signatureCipher;a={TY:!1,nE:"",FH:"",s:""};if(!b)return a;b=rA(b);a.TY=!0;a.nE=b.url;a.FH=b.sp;a.s=b.s;return a};
lP=function(a,b,c,d,e,f,h,l,m){this.Qa=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.fh=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.fh=m||null};
g.mP=function(){this.segments=[];this.j=null;this.B=!0;this.C=""};
MRa=function(a,b){if(b>a.Bd())a.segments=[];else{var c=Bb(a.segments,function(d){return d.Qa>=b},a);
c>0&&a.segments.splice(0,c)}};
NRa=function(a,b,c,d,e){e=e===void 0?!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};
nP=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
oP=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
pP=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
qP=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
rP=function(a){var b=a.data;var c=a.offset+a.j;b=b.getUint32(c)*4294967296+b.getUint32(c+4);a.j+=8;return b};
ORa=function(a,b){b=b===void 0?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 vN(b)};
PRa=function(a){return new Uint8Array(a.data.buffer,a.offset+a.data.byteOffset,a.size)};
QRa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
sP=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};
tP=function(a,b,c,d,e,f){this.startSecs=a;this.Hh=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
vP=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.ij=uP(this,"Sequence-Number");this.G=uP(this,"Segment-Count");this.K=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=uP(this,"Ingestion-Walltime-Us")/1E6;this.j=(uP(this,"First-Frame-Time-Us")+uP(this,"First-Frame-Uncertainty-Us"))/1E6;this.Rj=uP(this,"Target-Duration-Us")/1E6;this.C=this.data["Stream-Finished"]==="T";this.D=this.data.Streamable==="T";this.cryptoPeriodIndex=uP(this,"Crypto-Period-Index");
this.B=uP(this,"Crypto-Period-Seconds")};
SRa=function(a){return a.data["Cuepoint-Type"]?new tP(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",RRa[a.data["Cuepoint-Event"]||""]||"unknown",(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null};
TRa=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
uP=function(a,b){return Number(a.data[b])||0};
URa=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.VRa=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
g.WRa=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
XRa=function(a,b){this.j=a;this.duration=b};
YRa=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;this.crc=e.getUint32(4)};
wP=function(a){var b={};a=a.split("\r\n");for(var c=0;c<a.length;c++){if(a[c].length===0)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);d!=null&&(b[d[1]]=d[2])}return null};
ZRa=function(a,b){var c=g.xP(a,0,1952868452);a=g.xP(a,0,1953658222);if(c&&a){c.skip(1);var d=nP(c)<<16|oP(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=qP(c);c.data.setUint32(c.offset+d,b>1?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=nP(a)<<16|oP(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=qP(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=qP(a),a.data.setUint32(a.offset+f,b>1?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
zP=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.xP(a,0,1836476516))?g.yP(a):NaN};
$Ra=function(a){var b=g.xP(a,0,1937011556);if(!b)return null;b=AP(a,b.dataOffset+8,1635148593)||AP(a,b.dataOffset+8,1635135537);if(!b)return null;var c=AP(a,b.dataOffset+78,1936995172),d=AP(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),nP(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=AP(a,d.dataOffset,1886547818)){var h=AP(a,d.dataOffset,1886546020),l=AP(a,d.dataOffset,2037673328);if(!l&&(l=AP(a,d.dataOffset,1836279920),
!l))return null;h&&(h.skip(4),c=pP(h)/65536,f=pP(h)/65536,e=pP(h)/65536);a=PRa(l);a=new DataView(a.buffer,a.byteOffset+8,a.byteLength-8);return new YRa(b,c,f,e,a)}return null};
AP=function(a,b,c){for(;BP(a,b);){var d=CP(a,b);if(d.type===c)return d;b+=d.size}return null};
g.xP=function(a,b,c){for(;BP(a,b);){var d=CP(a,b);if(d.type===c)return d;b=DP(d.type)?b+8:b+d.size}return null};
g.aSa=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=b.getUint32(a)*4294967296+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b};
CP=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new NRa(a,b,c,d)};
g.yP=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
bSa=function(a){a=new NRa(a.data,a.offset,a.size,a.type,a.B);var b=nP(a);a.skip(7);var c=qP(a);if(b===0){b=qP(a);var d=qP(a)}else b=rP(a),d=rP(a);a.skip(2);for(var e=oP(a),f=[],h=[],l=0;l<e;l++){var m=qP(a);f.push(m);h.push(qP(a));a.skip(4)}return{Ev:c,s8:b,K8:d,xda:f,ST:h}};
BP=function(a,b){if(a.byteLength-b<8)return!1;var c=a.getUint32(b);if(c<8||a.byteLength-b<c)return!1;for(c=4;c<8;c++){var d=a.getInt8(b+c);if(d<48||d>122)return!1}return!0};
DP=function(a){return a===1701082227||a===1836019558||a===1836019574||a===1835297121||a===1835626086||a===1937007212||a===1953653094||a===1953653099||a===1836475768};
cSa=function(a){a.skip(4);return{Xda:ORa(a,0),value:ORa(a,0),Ev:qP(a),Trb:qP(a),Vpb:qP(a),id:qP(a),u_:ORa(a),offset:a.offset}};
g.dSa=function(a){var b=AP(a,0,1701671783);if(!b)return null;var c=cSa(b),d=c.Xda;c=wP(c.u_);if(a=AP(a,b.offset+b.size,1701671783))if(a=cSa(a),a=wP(a.u_),c&&a){b=g.v(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new vP(c,d):null};
eSa=function(a,b){for(var c=AP(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=AP(a,c.offset+c.size,b)}};
g.EP=function(a,b){for(var c=0,d=[];BP(a,c);){var e=CP(a,c);e.type===b&&d.push(e);c=DP(e.type)?c+8:c+e.size}return d};
fSa=function(a,b){var c=g.xP(a,0,1937011556),d=g.xP(a,0,1953654136);if(!c||!d||a.getUint32(c.offset+12)>=2)return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.xP(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(d!==1701733217&&d!==1701733238)return null;d=new QRa(a.byteLength+b);sP(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;sP(d,a,c.offset+16,c.size-16);sP(d,e,e.byteOffset+f.dataOffset+8,b);sP(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.v([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.xP(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.xP(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
gSa=function(a){var b=g.xP(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(c!==1701733217&&c!==1701733238)return null;b=AP(a,b.offset+24+(c===1701733217?28:78),1936289382);if(!b)return null;c=AP(a,b.offset+8,1935894637);if(!c||a.getUint32(c.offset+12)!==1667392371)return null;b=AP(a,b.offset+8,1935894633);if(!b)return null;b=AP(a,b.offset+8,1952804451);if(!b)return null;c=new Uint8Array(16);for(var d=0;d<16;d++)c[d]=a.getInt8(b.offset+16+d);return c};
FP=function(a,b){this.j=a;this.pos=0;this.start=b||0};
GP=function(a){return a.pos>=a.j.byteLength};
LP=function(a,b,c){var d=new FP(c);if(!HP(d,a))return!1;d=IP(d);if(!JP(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=KP(d,!0);d=a+(d.start+d.pos-b)+e;d=d>9?hSa(d-9,8):hSa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
jSa=function(a){var b=new FP(a);b.Bo();if(HP(b,[408125543,374648427,174,224]))b=IP(b);else return null;for(var c=a=null;!GP(b);){var d=KP(b,!1);if(d===21432)switch(MP(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else d===30320?c=IP(b):NP(b)}if(!c)return null;for(var e,f=d=b=null;!GP(c);)switch(KP(c,!1)){case 30321:if(MP(c)!==3)return null;break;case 30324:b=OP(c);break;case 30323:f=OP(c);break;case 30325:d=OP(c);break;case 30322:e=KP(c,!0);e=iSa(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:NP(c)}return e?new YRa(a,b,f,d,e):null};
IP=function(a){var b=KP(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 FP(c,a.start+a.pos);a.pos+=b;return c};
MP=function(a){for(var b=KP(a,!0),c=PP(a),d=1;d<b;d++)c=c*256+PP(a);return c};
OP=function(a){var b=KP(a,!0),c=0;b===4?c=a.j.getFloat32(a.pos):b===8&&(c=a.j.getFloat64(a.pos));a.pos+=b;return c};
kSa=function(a){var b=KP(a,!0);return vN(iSa(a,b))};
PP=function(a){return a.j.getUint8(a.pos++)};
KP=function(a,b){var c=PP(a);if(c===1){for(b=c=0;b<7;b++)c=c*256+PP(a);return c}for(var d=128,e=0;e<6&&d>c;e++)c=c*256+PP(a),d*=128;return b?c-d:c};
NP=function(a){var b=KP(a,!0);a.pos+=b};
lSa=function(a){if(!JP(a,440786851,!0))return null;var b=a.pos;KP(a,!1);var c=KP(a,!0)+a.pos-b;a.pos=b+c;if(!JP(a,408125543,!1))return null;KP(a,!0);if(!JP(a,357149030,!0))return null;var d=a.pos;KP(a,!1);var e=KP(a,!0)+a.pos-d;a.pos=d+e;if(!JP(a,374648427,!0))return null;var f=a.pos;KP(a,!1);var h=KP(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};
QP=function(a){var b=a.pos;a.pos=0;var c=1E6;HP(a,[408125543,357149030,2807729])&&(c=MP(a));a.pos=b;return c};
mSa=function(a,b){var c=a.pos;a.pos=0;if(a.j.getUint8(a.pos)!==160&&!RP(a)||!JP(a,160))return a.pos=c,NaN;KP(a,!0);var d=a.pos;if(!JP(a,161))return a.pos=c,NaN;KP(a,!0);PP(a);var e=PP(a)<<8|PP(a);a.pos=d;if(!JP(a,155))return a.pos=c,NaN;d=MP(a);a.pos=c;return(e+d)*b/1E9};
RP=function(a){if(!nSa(a)||!JP(a,524531317))return!1;KP(a,!0);return!0};
nSa=function(a){if(a.Bo()){if(!JP(a,408125543))return!1;KP(a,!0)}return!0};
HP=function(a,b){for(var c=0;c<b.length;c++){if(!JP(a,b[c]))return!1;c!==b.length-1&&KP(a,!0)}return!0};
JP=function(a,b,c){c=c===void 0?!1:c;if(GP(a))return!1;for(var d=a.pos;KP(a,!1)!==b;)if(NP(a),d=a.pos,GP(a))return!1;c&&(a.pos=d);return!0};
hSa=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};
iSa=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
SP=function(a){this.base=a;this.j={};this.url=""};
oSa=function(a,b){var c=b.indexOf("?");if(c>0){var d=HRa(b.substr(c+1));g.Tc(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=GRa(b);g.Tc(b,function(e,f){this.set(f,e)},a)};
pSa=function(a){var b=a.base.Ge(),c=[];g.Tc(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=ERa(a.base)?"&":"?";return b+a+d};
qSa=function(a,b){var c=new g.fP(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Tc(a.j,function(d,e){c.set(e,null)});
return c};
rSa=function(){this.D=this.C=this.j=this.timedOut=this.started=this.G=this.B=0};
sSa=function(a){a.G=(0,g.iC)();a.started=0;a.timedOut=0;a.j=0};
tSa=function(a,b){var c=a.started+a.j*4;b&&(c+=a.C);c=Math.max(0,c-3);return Math.pow(1.6,c)};
TP=function(a,b){a[b]||(a[b]=new rSa);return a[b]};
UP=function(a){this.Z=this.K=this.G=this.B=0;this.N=!1;this.j=a;this.C=a.clone()};
vSa=function(a,b,c){a=b?uSa(a,c):a.j;return new SP(a)};
uSa=function(a,b){b=b?b.gm:!1;a.D||(a.D=jP(a.C,b));return a.D};
wSa=function(a,b,c){return hP(b?uSa(a,c):a.j)};
xSa=function(a,b,c){c=TP(c,wSa(a,a.Uj(b,c),b));b=Math.max(a.G,c.timedOut)+b.gI*(a.B-a.G)+.25*a.K;b=b>3?1E3*Math.pow(1.6,b-3):0;return b===0?!0:a.Z+b<(0,g.iC)()};
ySa=function(a,b,c){a.j.set(b,c);a.C.set(b,c);a.D&&a.D.set(b,c)};
zSa=function(a,b,c,d,e){++a.B;b&&++a.G;hP(c.base).startsWith("redirector.")&&(a.j=a.C.clone(),delete a.D,d.fI&&delete e[hP(a.j)])};
VP=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 UP(a)};
WP=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
XP=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&a.length===2&&(a=new WP(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&a.length>0))return a};
YP=function(a,b){return new WP(a,a+b-1)};
ASa=function(a){return a.end==null?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
ZP=function(a){if(!a)return new WP(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new WP(b,a),b.length>0))return b};
$P=function(a,b,c,d,e,f,h,l,m,n,p,q){d=d===void 0?"":d;this.type=a;this.j=b;this.range=c;this.source=d;this.Pj=p;this.clipId=q===void 0?"":q;this.G=[];this.C="";this.Qa=-1;this.K=0;this.C=d;this.Qa=e>=0?e:-1;this.startTime=f||0;this.duration=h||0;this.Tb=l||0;this.B=m>=0?m:this.range?this.range.length:NaN;this.Ue=this.range?this.Tb+this.B===this.range.length:n===void 0?!!this.B:n;this.range?(this.Xe=this.startTime+this.duration*this.Tb/this.range.length,this.D=this.duration*this.B/this.range.length,
this.Pf=this.Xe+this.D):BSa(this)};
BSa=function(a){a.Xe=a.startTime;a.D=a.duration;a.Pf=a.Xe+a.D};
aQ=function(a){return a.Ue&&a.j.index.IF(a.Qa)};
CSa=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Qa!==a.Qa);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Tb+b.B===a.Tb+a.B:d};
bQ=function(a){return a.type===1||a.type===2};
cQ=function(a){return a.type===3||a.type===6};
dQ=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Tb+a.B===b.range.start+b.Tb:a.Qa===b.Qa?a.Tb+a.B===b.Tb:a.Qa+1===b.Qa&&b.Tb===0&&a.Ue:!1};
DSa=function(a,b){return dQ(a,b)||Math.abs(a.Pf-b.Xe)<=1E-6||a.Qa+1===b.Qa&&b.Tb===0&&a.Ue?!0:!1};
ESa=function(a){return a.Qa+(a.Ue?1:0)};
FSa=function(a){a.length===1||g.as(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new WP(a[0].range.start+a[0].Tb,b.range.start+b.Tb+b.B-1)};
GSa=function(a){for(var b=1;b<a.length;b++)if(!dQ(a[b-1],a[b]))return!1;return!0};
HSa=function(a){var b=0;a=g.v(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;return b};
eQ=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.src=""+a.source;b.segsrc=a.C;b.seg=String(a.Qa);a.range&&(b.range=a.range.start+a.Tb+"-"+(a.range.start+a.Tb+a.B-1));b.time=a.Xe.toFixed(1)+"-"+(a.Xe+a.D).toFixed(1);b.off=String(a.Tb);b.len=String(a.B);a.Ue&&(b.end="1");aQ(a)&&(b.eos="1");a.clipId&&(b.cid=a.clipId);return b};
ISa=function(a){return new $P(a.type,a.j,a.range,"getEmptyStubBefore"+a.C,a.Qa,a.startTime,0,a.Tb,0)};
JSa=function(a){return new $P(a.type,a.j,a.range,"getEmptyStubAfter"+a.C,a.Qa,a.startTime+a.duration,0,a.Tb+a.B,0)};
KSa=function(a,b,c,d){return new $P(a.type,a.j,a.range,"reslice"+a.C,a.Qa,a.startTime,a.duration,b,c,d,a.Pj,a.clipId)};
LSa=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.Tb>=b.range.start+b.Tb&&a.range.start+a.Tb+a.B<=b.range.start+b.Tb+b.B:a.Qa===b.Qa&&a.Tb>=b.Tb&&(a.Tb+a.B<=b.Tb+b.B||b.Ue)};
MSa=function(a,b){return a.j!==b.j?!1:a.type===4&&b.type===3&&a.j.qg()?(a=a.j.hC(a),Ys(a,function(c){return MSa(c,b)})):a.Qa===b.Qa&&!!b.B&&b.Tb+b.B>a.Tb&&b.Tb+b.B<=a.Tb+a.B};
NSa=function(a,b){var c=b.Qa;a.C="updateWithSegmentInfo";a.Qa=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime+a.K,a.duration=b.duration,BSa(a)};
fQ=function(a,b){var c=this;this.kb=a;this.D=this.j=null;this.G=this.lh=NaN;this.Uj=this.requestId=null;this.wd={Wqb:function(){return c.range}};
this.resource=a[0].j.resource;this.B=b||"";this.kb[0].range&&this.kb[0].B>0&&(GSa(a)?(this.range=FSa(a),this.C=this.range.length):(this.range=this.kb[this.kb.length-1].range,this.C=HSa(a)))};
OSa=function(a){return!bQ(a.kb[a.kb.length-1])};
gQ=function(a){return a.kb[a.kb.length-1].type===4};
g.hQ=function(a,b,c){c=a.Uj===null?a.resource.Uj(b,c,a.kb[0].type):a.Uj;if(a.j){b=c?jP(a.j,b.gm):a.j;var d=new SP(b);d.get("alr")||d.set("alr","yes");a.B&&oSa(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new SP(new g.fP(a.B)):(d=vSa(a.resource,c,b),a.B&&oSa(d,a.B));(b=a.range)?d.set("range",b.toString()):a.kb[0].j.Ax()&&a.kb.length===1&&a.kb[0].Tb&&d.set("range",a.kb[0].Tb+"-");a.requestId&&d.set("req_id",a.requestId);isNaN(a.lh)||d.set("headm",a.lh.toString());isNaN(a.G)||d.set("mffa",a.G+"ms");a.urlParams&&
g.Tc(a.urlParams,function(e,f){d.set(f,e)});
return d};
PSa=function(a){if(a.range)return a.C;a=a.kb[0];return Math.round(a.D*a.j.info.ub)};
QSa=function(a,b){return Math.max(0,a.kb[0].Xe-b)};
iQ=function(a,b,c,d,e,f){f=f===void 0?0:f;VP.call(this,a,b,d,void 0);this.G=c;this.Rj=f;this.index=e||new g.mP};
RSa=function(a,b,c,d,e){this.Qa=a;this.startSecs=b;this.Hh=c;this.j=d||NaN;this.B=e||NaN};
jQ=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""};
kQ=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(c.length>0)return c[0]}return null};
SSa=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?(Number(b[2])|0)*3600+(Number(b[4])|0)*60+(Number(b[6])|0):Number(a)|0};
TSa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
lQ=function(){this.j=[];this.B=null;this.K=0;this.C=[];this.G=!1;this.N="";this.D=-1};
USa=function(a){var b=a.C;a.C=[];return b};
VSa=function(){this.D=[];this.j=null;this.B={};this.C={}};
ZSa=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.v(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.parentNode.parentNode,f=null;e.nodeName==="Period"?f=WSa(a):e.nodeName==="AdaptationSet"?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=XSa(a,e)):e.nodeName==="Representation"&&(e=e.getAttribute("id")||"",f=YSa(a,e));if(f==null)return;f.update(d);g.Lb(c,USa(f))}g.Lb(a.D,c);xaa(a.D,function(h){return h.startSecs*1E3+h.j})};
$Sa=function(a){a.j&&(a.j.j=[]);g.Tc(a.B,function(b){b.j=[]});
g.Tc(a.C,function(b){b.j=[]})};
WSa=function(a){a.j||(a.j=new lQ);return a.j};
XSa=function(a,b){a.B[b]||(a.B[b]=new lQ);return a.B[b]};
YSa=function(a,b){a.C[b]||(a.C[b]=new lQ);return a.C[b]};
bTa=function(a){var b=a===void 0?{}:a;a=b.Rj===void 0?0:b.Rj;var c=b.Ln===void 0?!1:b.Ln;var d=b.Cr===void 0?0:b.Cr;var e=b.gf===void 0?0:b.gf;var f=b.Li===void 0?Infinity:b.Li;var h=b.nB===void 0?0:b.nB;b=b.je===void 0?!1:b.je;g.mP.call(this);this.Ur=this.Zp=-1;this.Sj=a;this.Cr=d;this.Ln=c;this.gf=e;this.Li=f;this.nB=h;(this.je=b)&&c&&aTa&&(this.B=!1,this.C="postLive")};
mQ=function(a,b){return Rb(a.segments,function(c){return b-c.Qa})};
nQ=function(a,b,c){c=c===void 0?{}:c;iQ.call(this,a,b,"",void 0,void 0,c.Rj||0);this.index=new bTa(c)};
oQ=function(a,b,c){VP.call(this,a,b);this.G=c;a=this.index=new g.mP;a.B=!1;a.C="d"};
cTa=function(a,b,c){var d=a.index.WJ(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.ub*f;return new fQ([new $P(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
dTa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.G;b=b.K.split(",").filter(function(p){return p.length>0});
for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(h<=0)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 lP(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
pQ=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.WA()&&!this.info.Tb;this.isLocked=!1};
qQ=function(a){return UKa(a.j)};
eTa=function(a,b){b=Math.min(b,a.info.B);var c=a.j.split(b),d=c.xn;c=new pQ(new $P(a.info.type,a.info.j,a.info.range,a.info.C,a.info.Qa,a.info.startTime,a.info.duration,a.info.Tb,b,!1,a.info.Pj,a.info.clipId),c.nK);c.D=a.D;c.C=a.C;b=new pQ(new $P(a.info.type,a.info.j,a.info.range,a.info.C,a.info.Qa,a.info.startTime,a.info.duration,a.info.Tb+b,a.info.B-b,a.info.Ue,a.info.Pj,a.info.clipId),d);b.D=a.D;b.C=a.C;return[c,b]};
rQ=function(a,b,c){var d;if(!(d=a.isLocked||b.isLocked||!dQ(a.info,b.info)||a.info.Ue)){if(c=c===void 0?!1:c)c=a.j,d=b.j,c=!(d.j.length?QKa(c,d.j[0]):1);d=c}if(d)return null;c=new $P(a.info.type,a.info.j,a.info.range,a.info.C,a.info.Qa,a.info.startTime,a.info.duration,a.info.Tb,a.info.B,a.info.Ue,a.info.Pj,a.info.clipId);d=b.info;c.B+=d.B;c.range&&(c.D+=d.D);c.Pf=d.Pf;c.Ue=d.Ue;d=new nN;oN(d,a.j);oN(d,b.j);c=new pQ(c,d);c.B=b.B||a.B;c.C=a.C!==-1?a.C:b.C;c.D=a.D!==-1?a.D:b.D;return c};
fTa=function(a){g.YJ(a.info.j.info)||a.info.j.info.Ne();if(a.C!==-1)return a.C;if(a.B&&TRa(a.B))return a.C=TRa(a.B),a.C;if(g.YJ(a.info.j.info)){var b=qQ(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;BP(b,f);){var h=CP(b,f);h.type===1936286840?e=h.data.getUint32(h.dataOffset+8):h.type===1836476516?e=g.yP(h):h.type===1952867444&&isNaN(d)&&(d=g.aSa(h));f=DP(h.type)?f+8:f+h.size}!e&&c&&(e=zP(c));b=d/e}else b=new FP(qQ(a)),c=a.G?b:new FP(new DataView(a.info.j.j.buffer)),d=QP(c),c=b.pos,b.pos=0,RP(b)?JP(b,231)?
(d=MP(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.C=b||a.info.Xe;return a.C};
hTa=function(a,b){a.timestampOffset>0&&(b-=a.timestampOffset);var c=fTa(a)+b;gTa(a,c);a.timestampOffset=b};
gTa=function(a,b){g.YJ(a.info.j.info)||a.info.j.info.Ne();a.C=b;if(g.YJ(a.info.j.info)){var c=qQ(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;BP(c,f);){var h=CP(c,f);isNaN(d)&&(h.type===1936286840?d=h.data.getUint32(h.dataOffset+8):h.type===1836476516&&(d=g.yP(h)));if(h.type===1952867444){!d&&a&&(d=zP(a));var l=g.aSa(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=DP(h.type)?f+8:f+h.size}return!0}c=new FP(qQ(a));a=a.G?c:new FP(new DataView(a.info.j.j.buffer));d=QP(a);a=c.pos;c.pos=0;if(RP(c)&&JP(c,231))if(e=KP(c,!0),b=Math.floor(b*1E9/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;d>=0;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b};
sQ=function(a,b){b=b===void 0?!1:b;var c=iTa(a);a=b?0:a.info.D;return c||a};
iTa=function(a){g.YJ(a.info.j.info)||a.info.j.info.Ne();if(a.B&&a.info.type===6)return a.B.Rj;if(g.YJ(a.info.j.info)){var b=qQ(a);var c=0;b=g.EP(b,1936286840);b=g.v(b);for(var d=b.next();!d.done;d=b.next())d=bSa(d.value),c+=d.ST[0]/d.Ev;c=c||NaN;if(!(c>=0))a:{c=qQ(a);b=a.info.j.j;for(var e=d=0,f=0;BP(c,d);){var h=CP(c,d);if(h.type===1836476516)e=g.yP(h);else if(h.type===1836019558){!e&&b&&(e=zP(b));if(!e){c=NaN;break a}var l=AP(h.data,h.dataOffset,1953653094),m=l;l=e;var n=AP(m.data,m.dataOffset,
1952868452);m=AP(m.data,m.dataOffset,1953658222);var p=pP(n);pP(n);p&2&&pP(n);n=p&8?pP(n):0;var q=pP(m),r=q&1;p=q&4;var t=q&256,u=q&512,w=q&1024;q&=2048;var A=qP(m);r&&pP(m);p&&pP(m);for(var C=r=0;C<A;C++){var F=t?pP(m):n;u&&pP(m);p&&C===0||!w||pP(m);q&&pP(m);r+=F}f+=r/l}d=DP(h.type)?d+8:d+h.size}c=f||NaN}c||g.nE(new g.FB("Missing duration while parsing bmff",a.info.Tc()))}else c=new FP(qQ(a)),a=a.G?c:new FP(new DataView(a.info.j.j.buffer)),c=mSa(c,QP(a));return c};
jTa=function(a){var b=qQ(a);var c=(c=g.xP(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.xP(b,0,1836476516))?g.yP(b):a?zP(a):NaN);return c};
kTa=function(a){return a.info.j.info.Ne()&&sN(a.j,0)===160};
lTa=function(a){if(!a.B){g.YJ(a.info.j.info)||a.info.j.info.Ne();if(g.YJ(a.info.j.info))var b=g.dSa(qQ(a));else{b=new FP(qQ(a));var c=b.pos;b.pos=0;var d=null,e=null;if(HP(b,[408125543,307544935]))for(var f=b.pos+KP(b,!0);b.pos<f;)if(KP(b,!1)!==29555)NP(b);else for(var h=b.pos+KP(b,!0);b.pos<h;)if(KP(b,!1)!==26568)NP(b);else for(var l=b.pos+KP(b,!0);b.pos<l;){var m=KP(b,!1);if(m===17543){if(m=kSa(b),m=wP(m))if(e)for(var n=g.v(Object.keys(m)),p=n.next();!p.done;p=n.next())p=p.value,e[p]=m[p];else e=
m}else m===17827?(m=kSa(b),d||(d=m)):NP(b)}b.pos=c;b=e?new vP(e,d):null}a.B=b}};
mTa=function(a){if(g.YJ(a.info.j.info))eSa(qQ(a),1836019574),eSa(qQ(a),1718909296);else{var b=new FP(qQ(a));nSa(b);JP(b,524531317,!0);a.j=a.j.split(b.start+b.pos).xn}a.G=!1};
nTa=function(a){if(!a.K){if(g.YJ(a.info.j.info)){var b=qQ(a);var c=AP(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=lSa(new FP(qQ(a)));b&&(a.info.j.j=b,a.K=!0)}};
g.oTa=function(){this.count=0;this.j=1;this.B=!1;this.offsets=new Float64Array(128);this.Ah=new Float64Array(128)};
pTa=function(a,b){return b+1<a.count||a.B?a.offsets[b+1]-a.offsets[b]:-1};
qTa=function(a){a.offsets.length<a.count+1&&a.resize(a.offsets.length*2)};
tQ=function(a,b,c,d){VP.call(this,a,b,c,d);var e=this;this.G=null;this.wd={jF:function(f,h,l,m){return e.jF(f,h,l,m)}};
this.index=new g.oTa};
rTa=function(a,b,c,d,e,f){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=d===void 0?"":d;this.xtags=e===void 0?"":e;this.id=f===void 0?"":f};
tTa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return sTa[a];return null};
g.uQ=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
vTa=function(a){return uTa(function(b,c){return g.KA(b,c,4,1E3)},a,{format:"RAW",
method:"GET",withCredentials:!0})};
g.wTa=function(a){var b;a.responseType&&a.responseType!=="text"?a.responseType==="arraybuffer"&&(b=vN(new Uint8Array(a.response))):b=a.responseText;return!b||b.length>2048?"":b.indexOf("https://")===0?b:""};
uTa=function(a,b,c){b.match(xTa);return a(b,c).then(function(d){var e=g.wTa(d.xhr);return e?uTa(a,e,c):d.xhr})};
wQ=function(a,b,c){a=a===void 0?"":a;b=b===void 0?null:b;c=c===void 0?!1:c;g.GE.call(this);var d=this;this.sourceUrl=a;this.isLivePlayback=c;this.Ya=this.duration=0;this.isPremiere=this.je=this.C=this.isLiveHeadPlayable=this.isLive=this.B=!1;this.Li=this.gf=0;this.isOtf=this.hc=!1;this.Wa=(0,g.iC)();this.Da=Infinity;this.j={};this.N=new Map;this.state=this.Dg=0;this.timeline=null;this.isManifestless=!1;this.Ha=[];this.K=null;this.Ga=0;this.D="";this.La=NaN;this.ib=this.Ub=this.timestampOffset=this.G=
0;this.Z=this.Y=NaN;this.Sc=0;this.Xa=this.eb=this.va=!1;this.Oa=[];this.Sa={};this.wd={tpb:function(m){vQ(d,m)}};
var e;this.rb=(e=b)==null?void 0:e.gb("html5_use_network_error_code_enums");yTa=!!b&&b.gb("html5_modern_vp9_mime_type");var f;zTa=!((f=b)==null||!f.gb("html5_enable_flush_during_seek"))&&g.UA();var h;ATa=!((h=b)==null||!h.gb("html5_enable_reset_audio_decoder"))&&g.UA();var l;BTa=!((l=b)==null||!l.gb("html5_windowed_postlive_allow_request_final_segment"))};
CTa=function(a){return g.Xc(a.j,function(b){return!!b.info.video&&b.info.video.j>=2160})};
yRa=function(a){return g.Xc(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
$O=function(a){return g.Xc(a.j,function(b){return!!b.info.oe})};
DTa=function(a){return g.Xc(a.j,function(b){return bK(b.info.mimeType)})};
ETa=function(a){return g.Xc(a.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR":!1})};
FTa=function(a){return g.Xc(a.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})};
GTa=function(a){return g.Xc(a.j,function(b){return b.info.video?b.info.video.projectionType==="MESH":!1})};
HTa=function(a){return g.Xc(a.j,function(b){return b.info.video?b.info.video.stereoLayout===1:!1})};
ITa=function(a){return bba(a.j,function(b){return b.info.video?b.xS():!0})};
XO=function(a){return g.Xc(a.j,function(b){return iP(b.resource.j)})};
vQ=function(a,b){a.j[b.info.id]=b;a.N.set(aK(b.info,a.hc),b)};
JTa=function(a,b){return(b.itag||"")+";"+((a.hc?0:b.lmt||0)||0)+";"+(b.xtags||"")};
KTa=function(a){return a.itag+";"+(a.lmt||0)+";"+(a.xtags||"")};
xQ=function(a,b,c){c=c===void 0?0:c;var d=a.mimeType||"",e=a.itag;var f=a.xtags;e=e?e.toString():"";f&&(e+=";"+f);f=e;if(OEa(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=LTa[a.stereoLayout]);var r=tTa(a)||void 0;if(n==null?0:n.primaries)var t=MTa[n.primaries]||void 0;h=new QJ(h,e,l,p,q,void 0,m,r,t);d=NTa(d,h,TJ[a.itag||""]);zTa&&(d+="; enableflushduringseek=true");ATa&&(d+="; enableresetaudiodecoder=true")}var u;if(NEa(d)){var w=
a.audioSampleRate;q=a.audioTrack;w=new OJ(w?+w:void 0,a.audioChannels,a.spatialAudioType,a.isDrc,a.loudnessDb,a.trackAbsoluteLoudnessLkfs);q&&(t=q.displayName,e=q.id,q=q.audioIsDefault,t&&(u=new g.uQ(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 rTa(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 C={};m=g.v(m);for(n=m.next();!n.done;n=m.next())(n=OTa[n.value])&&(C[n]=b[n])}return new UJ(f,d,{audio:w,video:h,Yb:u,oe:C,ub:q,Dw:c,contentLength:t,lastModified:e,captionTrack:A,streamType:l,approxDurationMs:a})};
PTa=function(a,b,c){c=c===void 0?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(OEa(d)){var h=(a.size||"640x360").split("x");h=new QJ(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=NTa(d,h,TJ[a.itag]);zTa&&(d+="; enableflushduringseek=true");ATa&&(d+="; enableresetaudiodecoder=true")}var l;if(NEa(d)){var m=new OJ(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.uQ(a.name,a.audio_track_id,
a.isDefault==="1"))}var n;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&(n=new rTa(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.v(a.drm_families.split(",")),u=t.next();!u.done;u=t.next())u=u.value,r[u]=b[u]}return new UJ(e,d,{audio:m,video:h,Yb:l,oe:r,ub:f,Dw:c,contentLength:p,lastModified:q,captionTrack:n,
streamType:a.stream_type,approxDurationMs:Number(a.approx_duration_ms)})};
QTa=function(a){return Ys(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
RTa=function(a){return Ys(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
STa=function(a,b){return a.timeline?Mb(a.timeline.D,b):a.Ha.length?Mb(a.Ha,b):[]};
yQ=function(a,b,c){b=b===void 0?"":b;c=c===void 0?"":c;a=new g.fP(a,!0);a.set("alr","yes");c&&(c=LPa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
WTa=function(a,b){var c=jQ(b,"id");c=c.replace(":",";");var d=jQ(b,"mimeType"),e=jQ(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(jQ(b,"bandwidth"))/8;var f=Number(kQ(b,"BaseURL").getAttribute(a.D+":contentLength")),h=a.duration&&f?f/a.duration:0;if(OEa(d)){var l=Number(jQ(b,"width"));var m=Number(jQ(b,"height")),n=Number(jQ(b,"frameRate")),p=TTa(jQ(b,a.D+":projectionType"));a:switch(jQ(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 QJ(l,m,n,p,q)}if(NEa(d)){var r=Number(jQ(b,"audioSamplingRate"));var t=Number(jQ(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=UTa(jQ(b,a.D+":spatialAudioType"));r=new OJ(r,t,m);a:{t=jQ(b,"lang")||"und";if(m=kQ(b,"Role"))if(p=jQ(m,"value")||"",g.dd(VTa,p)){m=t+"."+VTa[p];n=p==="main";a=jQ(b,a.D+":langName")||t+" - "+p;t=new g.uQ(a,m,n);break a}t=void 0}}if(b=kQ(b,"ContentProtection"))if(b.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var u={};for(b=
b.firstChild;b!=null;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(u[a]=m.trim()))}else u=void 0;return new UJ(c,d,{audio:r,video:l,Yb:t,oe:u,ub:e,Dw:h,contentLength:f})};
TTa=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"}};
UTa=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"}};
YTa=function(a,b){b=b===void 0?"":b;a.state=1;a.Wa=(0,g.iC)();return vTa(b||a.sourceUrl).then(function(c){if(!a.Na()){a.Dg=c.status;c=c.responseText;var d=new DOMParser;c=Oba(d,Gma(c)).getElementsByTagName("MPD")[0];a.Da=SSa(jQ(c,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(c.attributes){d=g.v(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.value==="http://youtube.com/yt/2012/10/10"){d=e.name.split(":")[1];break b}}d=""}a.D=d;a.isLive=a.Da<Infinity&&a.isLivePlayback;a.Ya=Number(jQ(c,
a.D+":earliestMediaSequence"))||0;if(d=Date.parse(TSa(jQ(c,a.D+":mpdResponseTime"))))a.Ga=((0,g.iC)()-d)/1E3;a.isLive&&c.getElementsByTagName("SegmentTimeline").length<=0||g.as(c.getElementsByTagName("Period"),a.Xca,a);a.state=2;a.publish("loaded");XTa(a)}return a}).Pl(function(c){if(c instanceof IA){var d=c.xhr;
a.Dg=d.status}a.state=3;a.publish("loaderror");return ig(d)})};
ZTa=function(a,b,c){return YTa(new wQ(a,b,c),a)};
$Ta=function(a){return a.isLive&&(0,g.iC)()-a.Wa>=a.Da};
aUa=function(a){a.K&&a.K.stop()};
XTa=function(a){var b=a.Da;isFinite(b)&&($Ta(a)?a.refresh():(b=Math.max(0,a.Wa+b-(0,g.iC)()),a.K||(a.K=new g.Dv(a.refresh,b,a),g.M(a,a.K)),a.K.start(b)))};
bUa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.Bd()+1}return 0};
zQ=function(a){return a.Ub?a.Ub-(a.G||a.timestampOffset):0};
AQ=function(a){return a.ib?a.ib-(a.G||a.timestampOffset):0};
BQ=function(a){if(!isNaN(a.La))return a.La;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()&&!bK(b[c].info.mimeType)){b=0;for(c=d.Wn();c<=d.Bd();c++)b+=d.getDuration(c);b/=d.vA();b=Math.round(b/.5)*.5;d.vA()>10&&(a.La=b);return b}if(a.isLive&&(d=b[c],d.Rj))return d.Rj}return NaN};
cUa=function(a,b){a=dba(a.j,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.Ki(b);return a.getStartTime(c)===b?b:c<a.Bd()?a.getStartTime(c+1):NaN};
dUa=function(a,b){if(!a.j["0"]){var c=new UJ("0","fakesb",{video:new QJ(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new iQ(new g.fP("http://www.youtube.com/videoplayback"),c,"fake"):new tQ(new g.fP("http://www.youtube.com/videoplayback"),c,new WP(0,0),new WP(0,0))}};
CQ=function(a,b,c){for(var d in a.j){var e=bK(a.j[d].info.mimeType)||a.j[d].info.Cg();if(c===e){e=a.j[d].index;var f=mQ(e,b);f>=0&&e.segments.splice(f,1)}}};
eUa=function(a){for(var b in a.j)bK(a.j[b].info.mimeType)||MRa(a.j[b].index,Infinity)};
fUa=function(a,b,c){for(var d in a.j){var e=a.j[d].index,f=b,h=c;e.Ln&&(f&&(e.Zp=Math.max(e.Zp,f)),h&&(e.Ur=Math.max(e.Ur||0,h)))}};
gUa=function(a){a.ib=0;a.Ub=0;a.Sc=0};
DQ=function(a){return a.eb&&a.isManifestless?a.isLiveHeadPlayable:a.isLive};
NTa=function(a,b,c){EQ===null&&(EQ=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(yTa&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return EQ||c!=="9"&&c!=="("?EQ||c!=="9h"&&c!=="(h"||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!EQ&&!hUa||a!=='video/webm; codecs="vp9"'&&a!=='video/webm; codecs="vp9.2"')return a;
c="00";var d="08",e="01",f="01",h="01";a==='video/webm; codecs="vp9.2"'&&(c="02",d="10",b.primaries==="bt2020"&&(h=e="09"),b.B==="smpte2084"&&(f="16"),b.B==="arib-std-b67"&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'};
g.FQ=function(a){this.tag=a};
jUa=function(a,b){iUa.apply(null,[6,a,b].concat(g.ra(g.Ja.apply(2,arguments))))};
kUa=function(a,b){iUa.apply(null,[5,a,b].concat(g.ra(g.Ja.apply(2,arguments))))};
iUa=function(a,b,c){var d=g.Ja.apply(3,arguments),e=a===6?"ERROR":"WARNING",f="b"+c;g.mE(new (Function.prototype.bind.apply(g.FB,[null,f].concat(g.ra(d)))),e);d.unshift(f);d=d.join(", ");e=lUa.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){}lUa.set(b,f);e=f}a<e||(typeof d==="function"&&(d=d()),console.log("plyr."+b,d))};
HQ=function(a,b,c,d){b=""+b+(c>49?"p60":c>32?"p48":"");if(!a.L("html5_gradual_perf_cap"))return VPa(b);a=VPa(b,!1);if(a!=null&&a>0)return a;a=GQ.get(b);if(a!=null&&a>0)return a;d=d==null?void 0:d.get(b);return d!=null&&d>0?d:8192};
mUa=function(a){this.Ea=a;this.Bc=this.To=this.Oa=this.G=this.D=this.va=this.La=this.Xa=this.Da=!1;this.N=this.K=0;this.ib=!1;this.Ha=!0;this.Ya=!1;this.tj=0;this.Ga=!1;this.Ub=Infinity;this.eO=!1;this.Cc=!0;this.Wa=this.Sa=!1;this.j={};this.B=this.Y=!1;this.Qb=this.Ea.yc();this.Kb=!1;this.Ab=this.Ea.experiments.gb("html5_enable_vp9_fairplay");this.Fd=this.Ea.L("html5_force_av1_for_testing");this.eb=g.oI(this.Ea.experiments,"html5_av1_ordinal_cap");this.Ud=this.Ea.L("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");
this.Sc=this.Ea.L("html5_account_onesie_format_selection_during_format_filter");this.Ed=this.Ea.L("html5_prefer_hbr_vp9_over_av1");this.Ng=0;this.disableAv1=this.Cb=this.rb=!1;this.ub=g.oI(this.Ea.experiments,"html5_max_byterate");this.Z=this.Ea.L("html5_prefer_high_aac_by_default");this.le=this.Ea.L("html5_prefer_language_over_codec");this.Lb=this.Ea.L("html5_enable_iamf_audio");this.Zc=this.Ea.experiments.gb("html5_allow_capability_merge")};
zRa=function(a){if(a.Xa)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Ga&&(b.unshift("1"),b.unshift("1h"));a.To&&b.unshift("h");a.ra&&(b=(nUa[a.ra]||[a.ra]).concat(b));return b};
tRa=function(a){var b=["o","a","A"];a.Z&&b.unshift("ah");a.Ng===1&&(a.va&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.G&&(b=["meac3","MEAC3"].concat(b)));a.Da&&(b=["so","sa"].concat(b));!a.Bc||a.Oa||a.C||b.unshift("a");!a.Z&&a.La&&b.unshift("ah");a.C&&(b=(nUa[a.C]||[a.C]).concat(b));a.Lb&&b.unshift("i");return b};
oUa=function(a,b,c,d){b=b===void 0?{}:b;if(d===void 0?0:d)return b.disabled=1,0;if(dP(a.G,eP.AV1_CODECS)&&dP(a.G,eP.HEIGHT)&&dP(a.G,eP.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=$Pa();if(e)return b.localPref=e}catch(l){}d=1080;navigator.hardwareConcurrency<=2&&(d=480);b.coreCount=navigator.hardwareConcurrency;kra()&&(b.isArm=1,d=240);if(c){var f,h;if(e=(f=c.videoInfos.find(function(l){return WJ(l)}))==null?void 0:(h=f.B)==null?void 0:h.powerEfficient)d=8192,b.isEfficient=1;
c=c.videoInfos[0].video;a=Math.min(HQ(a,"1",c.fps),HQ(a,"1",30));b.perfCap=a;d=Math.min(d,a);c.isHdr()&&!e&&(b.hdr=1,d*=.75)}else c=HQ(a,"1",30),b.perfCap30=c,d=Math.min(d,c),c=HQ(a,"1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
IQ=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.j={};this.eb=this.keySystemAccess=null;this.uw=this.xw=-1;this.nm=null;this.C=!!d&&d.gb("edge_nonprefixed_eme")};
KQ=function(a){return a.C?!1:!a.keySystemAccess&&!!JQ()&&a.keySystem==="com.microsoft.playready"};
LQ=function(a){return a.keySystem==="com.microsoft.playready"};
MQ=function(a){return!a.keySystemAccess&&!!JQ()&&a.keySystem==="com.apple.fps.1_0"};
NQ=function(a){return a.keySystem==="com.youtube.fairplay"};
OQ=function(a){return a.keySystem==="com.youtube.fairplay.sbdl"};
g.PQ=function(a){return a.flavor==="fairplay"};
JQ=function(){var a=window,b=a.MSMediaKeys;WA()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
pUa=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.LJ&&!g.UA())return $v("45");if(g.zC||g.Ks)return a.gb("edge_nonprefixed_eme");if(g.QQ)return $v("47");if(g.dC){if(a.gb("html5_enable_safari_fairplay"))return!1;if(a=g.oI(a,"html5_safari_desktop_eme_min_version"))return $v(a)}return!0};
rUa=function(a,b,c,d){var e=VA(),f=(c=e||c&&WA())?["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.ra(f),g.ra(qUa.playready)):[].concat(g.ra(qUa.playready),g.ra(f))};
RQ=function(a,b,c,d,e){d=d===void 0?!1:d;g.I.call(this);this.Ea=b;this.useCobaltWidevine=d;this.oa=e;this.B=[];this.C={};this.j={};this.callback=null;this.G=!1;this.D=[];this.initialize(a,!c)};
uUa=function(a,b){a.callback=b;a.D=[];pUa(a.Ea.experiments)?sUa(a):tUa(a)};
sUa=function(a){if(!a.Na())if(a.B.length===0)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=vUa(a,c);if(SQ&&SQ.keySystem===b&&SQ.Kda===JSON.stringify(d))a.oa("remksa",{re:!0}),wUa(a,c,SQ.keySystemAccess);else{var e,f;a.oa("remksa",{re:!1,ok:(f=(e=SQ)==null?void 0:e.keySystem)!=null?f:""});SQ=void 0;(TQ.isActive()?TQ.Vo("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(YN(function(h){wUa(a,c,h,d)}),YN(function(){a.G=!a.G&&a.C[a.B[0]].flavor===
"widevine";
a.G||a.B.shift();sUa(a)}))}}};
wUa=function(a,b,c,d){if(!a.Na()){d&&(SQ={keySystem:b.keySystem,keySystemAccess:c,Kda:JSON.stringify(d)});b.keySystemAccess=c;if(LQ(b)){c=JJ();d=g.v(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.v(c.audioCapabilities),e=d.next();!e.done;e=d.next())xUa(a,b,e.value);if(c.videoCapabilities)for(c=g.v(c.videoCapabilities),d=c.next();!d.done;d=c.next())xUa(a,b,d.value)}a.D.push(b);
a.useCobaltWidevine||a.L("html5_enable_vp9_fairplay")&&OQ(b)?(a.B.shift(),sUa(a)):a.callback(a.D)}};
xUa=function(a,b,c){a.L("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
vUa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.L("html5_enable_vp9_fairplay")&&NQ(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];LQ(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.v(Object.keys(a.j[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.indexOf("audio/")===0,h=f?c.audioCapabilities:c.videoCapabilities;b.flavor!==
"widevine"||a.G?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.LJ&&g.SA("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"}),g.UQ(a.Ea)==="MWEB"&&($A()||TA())&&(a.oa("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
tUa=function(a){if(JQ()&&g.dC)a.D.push(new IQ("fairplay","com.apple.fps.1_0","",a.Ea.experiments));else{var b=yUa(),c=g.Cb(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||l.indexOf("audio/")===0,h=h||l.indexOf("video/")===0);return f&&h});
c&&a.D.push(a.C[c]);a.B=[]}a.callback(a.D)};
yUa=function(){var a=JQ();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=JJ();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
zUa=function(a){this.experiments=a;this.C=0;this.G=(this.D=this.experiments.gb("html5_consider_end_stall"))&&VQ;this.B=this.experiments.gb("html5_measure_max_progress_handling");this.j=this.L("html5_use_media_for_elbow")};
AUa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=pA(b||"","&");a={};b=g.v(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
g.oI=function(a,b){return Number(a.flags[b])||0};
WQ=function(a,b){return(a=a.flags[b])?a.toString():""};
BUa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]};
CUa=function(a){if(a.j)return a.j;if(a.experimentIds.length<=1)return a.j=a.experimentIds,a.j;var b=[].concat(g.ra(a.experimentIds)).map(function(d){return Number(d)});
b.sort();for(var c=b.length-1;c>0;--c)b[c]-=b[c-1];a.j=b.map(function(d){return d.toString()});
a.j.unshift("v1");return a.j};
EUa=function(a){return DUa.then(a)};
FUa=function(a,b,c){this.experiments=a;this.Ha=b;this.Ga=c===void 0?!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.ra=this.experiments.gb("html5_disable_vp9_encrypted");this.j=new Map;this.Da=g.oI(this.experiments,"html5_max_vertical_resolution");this.va=g.oI(this.experiments,"html5_max_ps4_av1_vertical_resolution");a=g.Wa("cast.receiver.platform.getValue");this.G=!this.Z&&a&&a("max-video-resolution-vpx")||null};
DRa=function(a,b,c){c=c===void 0?1:c;var d=b.itag;if(d==="0")return!0;var e=b.mimeType;if(b.Ne()&&VA()&&a.experiments.gb("html5_appletv_disable_vp9"))return"dwebm";if(WJ(b)&&a.Y)return"dav1";if(b.video&&(b.video.isHdr()||b.video.primaries==="bt2020")&&!(dP(a,eP.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(d==="338"&&!(g.LJ?$v(53):g.QQ&&$v(64)))return"dopus";
var f;if(a.Da&&((f=b.video)==null?void 0:f.height)>a.Da)return"dvert";var h;if(a.va&&!g.SA("ps4 pro")&&mra()&&WJ(b)&&((h=b.video)==null?void 0:h.height)>a.va)return"pavert";f=c;f=f===void 0?1:f;c={};b.video&&(b.video.width&&(c[eP.WIDTH.name]=b.video.width),b.video.height&&(c[eP.HEIGHT.name]=b.video.height),b.video.fps&&(c[eP.FRAMERATE.name]=b.video.fps*f),b.video.B&&(c[eP.EOTF.name]=b.video.B),b.ub&&(c[eP.BITRATE.name]=b.ub*8*f),b.sb==="("&&(c[eP.CRYPTOBLOCKFORMAT.name]="subsample"),b.video.projectionType===
"EQUIRECTANGULAR"||b.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||b.video.projectionType==="MESH")&&(c[eP.DECODETOTEXTURE.name]="true");b.audio&&b.audio.numChannels&&(c[eP.CHANNELS.name]=b.audio.numChannels);a.D&&VJ(b)&&(c[eP.EXPERIMENTAL.name]="allowed");f=g.v(Object.keys(eP));for(h=f.next();!h.done;h=f.next())if(h=eP[h.value],c[h.name]&&!(h===eP.EOTF&&b.mimeType.indexOf("vp09.02")>0||a.experiments.gb("html5_ignore_h264_framerate_cap")&&h===eP.FRAMERATE&&IEa(b)))if(dP(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(JEa(b)&&h===eP.EOTF)return"dvp92";a.Z&&b.video&&b.video.j>1080&&b.oe&&(e+="; hdcp=2.2");return d==="227"?"hqcenc":d!=="585"&&d!=="588"&&d!=="583"&&d!=="586"&&d!=="584"&&d!=="587"&&d!=="591"&&d!=="592"||a.experiments.gb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"};
XQ=function(){var a=TA()&&!$v(29),b=g.SA("google tv")&&g.SA("chrome")&&!$v(30);return a||b?!1:SEa()};
GUa=function(a,b,c){var d=480;b=g.v(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;f<=1080&&f>d&&DRa(a,e,c)===!0&&(d=f)}return d};
g.HUa=function(a,b){b=b===void 0?!1:b;return XQ()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(JJ(),"application/x-mpegURL")?!0:!1};
JUa=function(a){IUa(function(){for(var b=g.v(Object.keys(eP)),c=b.next();!c.done;c=b.next())dP(a,eP[c.value])})};
dP=function(a,b){b.name in a.N||(a.N[b.name]=KUa(a,b));return a.N[b.name]};
KUa=function(a,b){if(a.G)return!!a.G[b.name];if(b===eP.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===eP.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.zo);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.zo)};
LUa=function(a){a.D||(a.D=!0,a.B=!0)};
MUa=function(a,b){var c=0;a.C.has(b)&&(c=a.C.get(b).I8);a.C.set(b,{I8:c+1,D1:Math.pow(2,c+1)});a.B=!0};
aP=function(a){for(var b=[],c=g.v(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(".")};
uRa=function(a,b){for(var c=new Map,d=g.v(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};
wRa=function(a,b,c){var d,e=((d=c.video)==null?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h={itag:c.itag,sb:b,Kh:f};if(f)h.numChannels=c.audio.numChannels;else{var l=c.video;h.maxWidth=l==null?void 0:l.width;h.maxHeight=l==null?void 0:l.height;h.maxFramerate=e;dP(a,eP.BITRATE)&&(h.maxBitrateBps=c.ub*8);h.BF=l==null?void 0:l.isHdr()}l=a.j.get(d);l?f||(c=Math.max(l.maxWidth||0,l.maxHeight||0)>Math.max(h.maxWidth||0,h.maxHeight||0)?l:h,b={itag:c.itag,sb:b,Kh:f,maxWidth:Math.max(l.maxWidth||0,h.maxWidth||
0),maxHeight:Math.max(l.maxHeight||0,h.maxHeight||0),maxFramerate:e,BF:c.BF},dP(a,eP.BITRATE)&&(b.maxBitrateBps=c.maxBitrateBps),a.j.set(d,b)):a.j.set(d,h)};
xRa=function(a,b,c){var d,e=((d=c.video)==null?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&&((n=c.video)==null?0:n.height)&&l.maxHeight&&l.maxHeight>=((p=c.video)==null?void 0:p.height)){n=!1;break a}}n=!0}n&&(n=c.itag,b=h?h:{itag:n,sb:b,Kh:f},f?b.numChannels=c.audio.numChannels:(f=c.video,b.maxWidth=f==null?void 0:f.width,b.maxHeight=f==null?void 0:f.height,b.maxFramerate=e,dP(a,eP.BITRATE)&&(b.maxBitrateBps=c.ub*
8),b.BF=f==null?void 0:f.isHdr()),a.j.set(d,b))};
YQ=function(){g.GE.call(this);this.items={}};
ZQ=function(){g.iN.apply(this,arguments)};
$Q=function(){g.jN.apply(this,arguments)};
aR=function(a,b){var c=a.eJ(b);kN.call(this,a,c||b);this.Ld=a;c&&this.Ld.exports.free(c.byteOffset)};
NUa=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)};
OUa=function(a){a.B||(a.B=new ZQ(a.j));return a.B};
bR=function(a){try{return Dg(a)}catch(b){return null}};
PUa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?bR(b.clientKey):null;var c=b.encryptedClientKey?bR(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?Number(b.keyExpiresInSeconds)*1E3+(0,g.iC)():null;a&&c&&d&&(this.j=new NUa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=bR(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
cR=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)};
dR=function(a,b,c,d){c=c===void 0?.5:c;d=d===void 0?0:d;this.resolution=b;this.B=0;this.C=!1;this.ql=!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=QUa(this);this.D=c;this.K=d};
QUa=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
RUa=function(a,b,c){g.I.call(this);this.policy=a;this.Sa=b;this.zd=c;this.Y=this.Oa=0;this.Z=-1;this.ra=this.C=0;this.Ga=!1;this.interruptions=[];this.j=[{stamp:0,net:0,max:0}];this.Ha=this.D=(0,g.iC)();this.K=new dR(4,1,.6,.4);this.va=new dR(4,1,.6,.4);this.G=new dR(20,1,.5,.4);this.B=a.D?new cR(a.j):new dR(a.j,20,.5,.4);this.Da=new dR(5,1,.25);this.N=new dR(30,1,.5);a=g.yB("yt-player-bandwidth")||{};b=this.policy.B;a.byterate>0&&(b=a.byterate,this.Ga=!0);this.B.Vi(this.policy.G,b);a.delay>0&&this.K.Vi(1,
Math.min(a.delay,2));a.stall>0&&this.G.Vi(1,a.stall);a.init>0&&(this.Ha=Math.min(a.init,this.Ha));a.interruptions&&(this.j=this.j.concat(a.interruptions),this.j.length>16&&this.j.pop());this.Z=(0,g.iC)();this.policy.K>0&&(this.La=new g.Dv(this.Wa,this.policy.K,this),g.M(this,this.La),this.La.start())};
eR=function(a,b,c,d){a.B.Vi(d===void 0?b:d,c/b);a.D=(0,g.iC)()};
SUa=function(a){a.C||(a.C=(0,g.iC)());a.policy.Z&&(a.D=(0,g.iC)())};
TUa=function(a,b){if(a.C){var c=b-a.C;if(c>1E3){var d=a.interruptions;d.push(Math.ceil(c));d.sort(function(e,f){return f-e});
d.length>16&&d.pop()}a.ra+=c}a.C=b};
fR=function(a,b,c,d,e,f){f=f===void 0?!1:f;a.Da.Vi(b,c/b);a.D=(0,g.iC)();e||a.N.Vi(1,b-d);f||(a.C=0);a.Z>-1&&(0,g.iC)()-a.Z>3E4&&UUa(a)};
gR=function(a,b,c){b=Math.max(b,2048);a.G.Vi(1,c/b)};
hR=function(a){a=a.K.jh()+a.va.jh()||0;a=isNaN(a)?.5:a;return a=Math.min(a,5)};
VUa=function(a,b,c){isNaN(c)||(a.Y+=c);isNaN(b)||(a.Oa+=b)};
WUa=function(a){a=a.B.jh();return a>0?a:1};
iR=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?1048576:c;var d=WUa(a);d=1/((a.G.jh()||0)*a.policy.Y+1/d);var e=a.Da.jh();d=Math.max(d,e>0?e:1);if(!b)return d;b=1E-9+hR(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((a.N.percentile(.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
XUa=function(a){var b={delay:hR(a),stall:a.G.jh()||0,byterate:WUa(a),init:a.Ha},c=a.j[0];c.stamp=Math.round(a.D/36E5)*36E5;c.net=Math.ceil(a.ra);c.max=a.interruptions[0]||0;b.interruptions=a.j;return b};
UUa=function(a){g.xB("yt-player-bandwidth",XUa(a),2592E3);a.Z=(0,g.iC)();a.Ga=!0};
jR=function(a){return(0,g.iC)()-a.D>=4E3};
YUa=function(a,b){b.Xs=a.Y;b.Gv=a.Oa;b.bandwidthEstimate=iR(a);b.j={ttr:(a.K.jh()*1E3).toFixed(),ttm:(a.va.jh()*1E3).toFixed(),d:hR(a).toFixed(2),st:((a.G.jh()||0)*1E9).toFixed(2),bw:a.B.jh().toFixed(0),abw:a.Da.jh().toFixed(0),v50:a.N.percentile(.5).toFixed(2),v92:a.N.percentile(.92).toFixed(2),v96:a.N.percentile(.96).toFixed(2),v98:a.N.percentile(.98).toFixed(2)};b=b.j;b["int"]=a.interruptions.join(".");b.intDur=Math.ceil(a.ra);b.intHist=a.j.map(function(c){return c.stamp+"_"+c.net+"_"+c.max}).join(".")};
ZUa=function(a){this.experiments=a;this.j=17;this.B=13E4;this.G=.5;this.C=this.D=!1;this.Y=g.oI(this.experiments,"html5_stall_factor")||1;this.K=g.oI(this.experiments,"html5_check_for_idle_network_interval_ms");this.N=this.experiments.gb("html5_trigger_loader_when_idle_network");this.Z=this.experiments.gb("html5_sabr_fetch_on_idle_network_preloaded_players")};
aVa=function(a,b){a=a===void 0?{}:a;b=b===void 0?{}:b;g.I.call(this);var c=this;this.values=a;this.Rr=b;this.B={};this.C=this.j=0;this.D=new g.Dv(function(){$Ua(c)},1E4);
g.M(this,this.D)};
cVa=function(a,b){bVa(a,b);return a.values[b]&&a.Rr[b]?a.values[b]/Math.pow(2,a.j/a.Rr[b]):0};
bVa=function(a,b){a.values[b]||(b=TPa(),a.values=b.values||{},a.Rr=b.halfLives||{},a.B=b.values?Object.assign({},b.values):{})};
$Ua=function(a){var b=TPa();if(b.values){b=b.values;for(var c={},d=g.v(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]=cVa(a,e);a.B=c}b=a.Rr;c={};c.values=a.B;c.halfLives=b;g.xB("yt-player-memory",c,2592E3)};
oVa=function(a,b,c,d,e){g.I.call(this);this.webPlayerContextConfig=b;this.Yl=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Cj=this.Be=this.ib=this.zj=this.userDisplayName=this.userDisplayImage=this.Wi="";this.j={};this.Qb={};this.controlsType="0";this.Ud=NaN;this.rb=!1;this.Vf=(0,g.iC)();this.Lb=0;this.fm=this.wp=!1;this.En=!0;this.preferGapless=this.Wl=this.Uf=this.C=this.Xl=this.Tf=!1;this.Ch=[];this.pm=!0;this.Wf=!1;a=a?g.jd(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 AUa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:dB("",a.forced_experiments)||void 0;this.cspNonce=(b==null?0:b.cspNonce)?b.cspNonce:dB("",a.csp_nonce);this.L("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(R){f=""}this.tf=f;this.ancestorOrigins=
(d=window.location.ancestorOrigins)?Array.from(d):[];this.D=aB(!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=WQ(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),f==="all"||f==="once")d.chipset&&(this.Qb.cchip=d.chipset),d.cobaltAppVersion&&(this.Qb.ccappver=d.cobaltAppVersion),d.firmwareVersion&&(this.Qb.cfrmver=d.firmwareVersion),d.deviceYear&&(this.Qb.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||dVa(this)&&b.loaderUrl?b.loaderUrl||"":this.tf:this.D||dVa(this)&&a.loaderUrl?dB("",a.loaderUrl):this.tf;this.D&&g.Va("yt.embedded_player.embed_url",this.loaderUrl);this.N=PI(this.loaderUrl,eVa);d=this.loaderUrl;var h=h===void 0?!1:h;this.Yp=OI(PI(d,fVa),d,h,"Trusted Ad Domain URL");this.Cc=aB(!1,a.privembed);this.protocol=this.tf.indexOf("http:")===0?"http":"https";this.Ha=NCa((b?b.customBaseYoutubeUrl:a.BASE_YT_URL)||
"")||NCa(this.tf)||this.protocol+"://www.youtube.com/";h=b?b.eventLabel:a.el;d="detailpage";h==="adunit"?d=this.D?"embedded":"detailpage":h==="embedded"||this.N?d=bB(d,h,gVa):h&&(d="embedded");this.La=d;uva();h=null;d=b?b.playerStyle:a.ps;f=g.Eb(hVa,d);!d||f&&!this.N||(h=d);this.playerStyle=h;this.va=(this.K=g.Eb(hVa,this.playerStyle))&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";this.Pp=!this.va;this.Sa=aB(!1,a.disableplaybackui);this.disablePaidContentOverlay=aB(!1,b==null?void 0:b.disablePaidContentOverlay);
this.disableSeek=aB(!1,b==null?void 0:b.disableSeek);this.enableSpeedOptions=(b==null?void 0:b.enableSpeedOptions)||(JJ().defaultPlaybackRate?kR||g.ZA||lR?g.QQ&&$v("20")||g.LJ&&$v("4")||g.mR&&$v("11")||ora():!(g.mR&&!g.SA("chrome")||kR||g.SA("android")||g.SA("silk")):!1);this.yp=aB(!1,a.enable_faster_speeds);this.B=aB(this.playerStyle==="blazer",a.is_html5_mobile_device||b&&b.isMobileDevice);this.Xa=qra()||$A();this.Dp=this.L("mweb_allow_background_playback")?!1:this.B&&!this.K;this.Wa=GEa();this.xq=
g.iVa;var l;this.gm=!!(b==null?0:(l=b.embedsHostFlags)==null?0:l.optOutApiDeprecation);var m;this.zp=!!(b==null?0:(m=b.embedsHostFlags)==null?0:m.allowPfpImaIntegration);this.Bp=this.L("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var n;b?b.hideInfo!==void 0&&(n=!b.hideInfo):n=a.showinfo;this.Bn=g.nR(this)&&!this.gm||aB(!oR(this)&&!pR(this)&&!this.K,n);this.mm=b?!!b.mobileIphoneSupportsInlinePlayback:aB(!1,a.playsinline);l=this.B&&jVa&&qR!=null&&qR>0&&qR<=2.3;m=b?b.useNativeControls:
a.use_native_controls;this.Z=g.nR(this)&&this.B;n=this.B&&!this.Z;m=g.rR(this)||!l&&aB(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType=n!=="0"&&n!==0?m:"0";this.Yk=this.B;this.color=bB("red",b?b.progressBarColor:a.color,kVa);this.iq=this.controlsType==="3";this.Bc=!this.D;this.Dn=(m=!this.Bc&&!pR(this)&&!this.va&&!this.K&&!oR(this))&&!this.iq&&this.controlsType==="1";this.Fd=g.sR(this)&&m&&this.controlsType==="0"&&!this.Dn;this.Vq=this.lq=l;this.Zc=(this.controlsType==="3"||this.B||aB(!1,
a.use_media_volume))&&!this.Z;this.Fn=XA&&!g.Mc(601)?!1:!0;this.Cp=this.D||!1;this.Sc=pR(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=dB("",b?b.widgetReferrer:a.widget_referrer);var p;b?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.N||aB(!0,p);l=!0;b&&b.disableMdxCast&&(l=!1);this.Jj=this.L("enable_cast_for_web_unplugged")&&g.tR(this)&&l||this.L("enable_cast_on_music_web")&&g.QF(this)&&l||p&&l&&this.controlsType==="1"&&!this.B&&(pR(this)||g.sR(this)||
g.vR(this));this.Sq=!!window.document.pictureInPictureEnabled||FEa();p=b?!!b.supportsAutoplayOverride:aB(!1,a.autoplayoverride);this.Ci=!(this.B&&!g.nR(this))&&!g.SA("nintendo wiiu")||p;this.Di=(b?!!b.enableMutedAutoplay:aB(!1,a.mutedautoplay))&&!1;p=(pR(this)||oR(this))&&this.playerStyle==="blazer";this.Rk=b?!!b.disableFullscreen:!aB(!0,a.fs);l=g.fB(g.wR(this))&&g.nR(this);this.Ab=!this.Rk&&(p||g.jB())&&!l;this.Vl=this.L("uniplayer_block_pip")&&(TA()&&$v(58)&&!$A()||yC);p=g.nR(this)&&!this.gm;var q;
b?b.disableRelatedVideos!==void 0&&(q=!b.disableRelatedVideos):q=a.rel;this.Ed=p||aB(!this.K,q);this.qm=aB(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.Y=$A()&&qR>0&&qR<=4.4?"_top":"_blank";this.Ng=g.vR(this);this.Vj=aB(this.playerStyle==="blazer",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.ra=q;this.Da=dB("",b?b.authorizedUserIndex:a.authuser);this.Ub=g.nR(this)&&(this.Cc||!era()||this.Xa);var r;b?b.disableWatchLater!==void 0&&(r=!b.disableWatchLater):r=a.showwatchlater;this.le=((q=!this.Ub)||!!this.Da&&q)&&aB(!this.va,this.N?r:void 0);this.mf=b?b.isMobileDevice||!!b.disableKeyboardControls:
aB(!1,a.disablekb);this.loop=aB(!1,a.loop);this.pageId=dB("",b?b.initialDelegatedSessionId:a.pageid);this.Eq=aB(!0,a.canplaylive);this.Cb=aB(!1,a.livemonitor);this.disableSharing=aB(this.K,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"),q.length!==2?r=null:(r=Number(q[0]),q=Number(q[1]),r=isNaN(r)||isNaN(q)||r*q<=0?null:new g.Me(r,q))):r=null;this.Gn=r;this.mute=b?!!b.startMuted:aB(!1,a.mute);
this.storeUserVolume=!this.mute&&aB(this.controlsType!=="0",b?b.storeUserVolume:a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:bB(void 0,r,xR);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":dB("",a.cc_lang_pref);r=bB(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,xR);this.controlsType==="3"&&r===2&&(r=3);this.Kb=r;this.wj=b?b.hl||"en_US":dB("en_US",a.hl);this.region=b?b.contentRegion||"US":dB("US",a.cr);
this.hostLanguage=b?b.hostLanguage||"en":dB("en",a.host_language);this.xp=!this.Cc&&Math.random()<g.oI(this.experiments,"web_player_api_logging_fraction");this.Ya=!this.Cc;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(b==null||!b.deviceIsAudioOnly);this.Ud=cB(this.Ud,a.ismb);this.Pp?(r=a.vss_host||"s.youtube.com",r==="s.youtube.com"&&(r=yR(this.Ha)||"www.youtube.com")):r="video.google.com";this.Hn=r;lVa(this,a,!0);this.Oa=new YQ;g.M(this,this.Oa);q=b?b.innertubeApiKey:dB("",a.innertube_api_key);
p=b?b.innertubeApiVersion:dB("",a.innertube_api_version);r=b?b.innertubeContextClientVersion:dB("",a.innertube_context_client_version);q=g.jA("INNERTUBE_API_KEY")||q;p=g.jA("INNERTUBE_API_VERSION")||p;l=g.jA("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");m=g.UQ(this);n=typeof this.j.c==="number"?Number(this.j.c):Object.keys(LMa).indexOf(this.j.c);this.Uk={innertubeApiKey:q,innertubeApiVersion:p,tK:l,xQ:m,qZ:n,innertubeContextClientVersion:g.jA("INNERTUBE_CONTEXT_CLIENT_VERSION")||r,zQ:this.hostLanguage,
yQ:this.region,rZ:g.jA("INNERTUBE_HOST_OVERRIDE")||"",sZ:!!g.jA("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),AQ:!!g.jA("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.nm=window.WebKitPlaybackTargetAvailabilityEvent!=null;this.G=new FUa(this.experiments,this.L("html5_force_hfr_support")?!0:yI(this)||lra()||mra()||mVa(this),g.LJ&&g.Mc(56)||g.QQ&&g.Mc(54)||this.L("html5_force_vp9_subsample_encryption_support")||mVa(this));r=this.Ud;q=new ZUa(this.experiments);g.zI(this)&&(q.D=!0,q.G=.1);r&&(q.B=
r/8);q.C=KO()>=480;this.schedule=new RUa(q,new zUa(this.experiments),e);g.M(this,this.schedule);var t;this.enableSafetyMode=(t=b==null?void 0:b.initialEnableSafetyMode)!=null?t:aB(!1,a.enable_safety_mode);e=this.Sa?!1:pR(this)&&this.playerStyle!=="blazer";var u;b?b.disableAutonav!=null&&(u=!b.disableAutonav):u=a.allow_autonav;this.Zd=aB(e,!this.va&&u);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:aB(!1,a.send_visitor_id_header);var w;this.playerStyle==="docs"&&(b?w=b.disableNativeContextMenu:
w=a.disable_native_context_menu);this.disableNativeContextMenu=aB(!1,w);this.Ap=yI(this)&&this.L("enable_skip_intro_button");this.embedConfig=dB("",b?b.serializedEmbedConfig:a.embed_config);this.Ga=vra(a,g.nR(this));this.C=this.Ga==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(b==null||!b.embedsErrorLinks);this.Sk=aB(!1,a.full_window);var A;this.eb=!((A=this.webPlayerContextConfig)==null?0:A.chromeless);var C;this.livingRoomAppMode=bB("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||
(b==null?void 0:(C=b.device)==null?void 0:C.livingRoomAppMode),nVa);var F;u=cB(NaN,b==null?void 0:(F=b.device)==null?void 0:F.deviceYear);isNaN(u)||(this.deviceYear=u);this.transparentBackground=b?!!b.transparentBackground:aB(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:aB(!1,a.show_miniplayer_button);var G;g.nR(this)&&!(b==null?0:(G=b.embedsHostFlags)==null?0:G.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=b?!!b.externalFullscreen:
aB(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:aB(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;var K;this.En=(K=a.show_loop_video_toggle)!=null?K:!0;this.hq=Math.random()<1E-4;this.Vk=a.onesie_hot_config||(b==null?0:b.onesieHotConfig)?new PUa(a.onesie_hot_config,b==null?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=c;this.playerCanaryStage=b==null?void 0:
b.canaryStage;this.Sf=new aVa;g.M(this,this.Sf);this.Xl=aB(!1,a.force_gvi);this.datasyncId=(b==null?void 0:b.datasyncId)||g.jA("DATASYNC_ID");this.Zl=g.jA("LOGGED_IN",!1);this.Bj=(b==null?void 0:b.allowWoffleManagement)||!1;this.Xk=this.Wk=Infinity;this.livingRoomPoTokenId=b==null?void 0:b.livingRoomPoTokenId;this.L("html5_high_res_logging_always")?this.Uf=!0:this.Uf=Math.random()*100<g.oI(this.experiments,"html5_high_res_logging_percent");var N;this.Wl=!!(b==null?0:(N=b.embedsHostFlags)==null?0:
N.allowRcat);this.Kj=!g.tR(this)&&!zR(this)};
g.wR=function(a){var b,c;if(!((b=a.webPlayerContextConfig)==null?0:(c=b.embedsHostFlags)==null?0:c.enableLiteUx)||a.Cc||a.K||a.C||a.Ga==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";a=g.oI(a.experiments,"embeds_web_lite_mode");return a===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":a>=0&&a<pVa.length?pVa[a]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
lVa=function(a,b,c){c=c===void 0?!1:c;a.Be=dB(a.Be,b.video_id);a.ib=dB(a.ib,b.eventid);a.ib&&(xD=a.ib);for(var d=[],e=g.v(Object.keys(qVa)),f=e.next();!f.done;f=e.next()){f=qVa[f.value];var h=b[f];h!=null&&(h!==a.j[f]&&d.push(f),a.j[f]=h)}!c&&d.length>0&&a.hq&&(d.sort(),g.nE(new g.FB("Player client parameters changed after startup",d)));a.userAge=cB(a.userAge,b.user_age);a.Wi=dB(a.Wi,b.user_display_email);a.userDisplayImage=dB(a.userDisplayImage,b.user_display_image);g.RI(a.userDisplayImage)||(a.userDisplayImage=
"");a.userDisplayName=dB(a.userDisplayName,b.user_display_name);a.zj=dB(a.zj,b.user_gender);a.csiPageType=dB(a.csiPageType,b.csi_page_type);a.csiServiceName=dB(a.csiServiceName,b.csi_service_name);a.Vj=aB(a.Vj,b.enablecsi);a.pageId=dB(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.Xf=b.living_room_session_po_token.toString())};
rVa=function(a,b){return!a.K&&TA()&&$v(55)&&a.controlsType==="3"&&!b};
g.AR=function(a){a=yR(a.Ha);return a==="www.youtube-nocookie.com"?"www.youtube.com":a};
BR=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
CR=function(a){return pR(a)&&!g.tR(a)};
g.rR=function(a){return a.L("html5_local_playsinline")?XA&&!g.Mc(602)&&!("playsInline"in JJ()):XA&&!a.mm||g.SA("nintendo wiiu")?!0:!1};
g.UQ=function(a){return a.j.c};
g.zI=function(a){return/^TVHTML5/.test(g.UQ(a))};
dVa=function(a){return g.UQ(a)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"};
mVa=function(a){return a.j.cmodel==="CHROMECAST ULTRA/STEAK"||a.j.cmodel==="CHROMECAST/STEAK"};
g.DR=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1};
yI=function(a){return/web/i.test(g.UQ(a))};
g.ER=function(a){return g.UQ(a).toUpperCase()==="WEB"};
zR=function(a){return g.UQ(a)==="WEB_KIDS"};
g.tR=function(a){return g.UQ(a)==="WEB_UNPLUGGED"};
FR=function(a){return g.UQ(a)==="TVHTML5_UNPLUGGED"};
g.xI=function(a){return g.tR(a)||g.UQ(a)==="TV_UNPLUGGED_CAST"||FR(a)};
g.QF=function(a){return g.UQ(a)==="WEB_REMIX"};
g.GR=function(a){return g.UQ(a)==="WEB_EMBEDDED_PLAYER"};
g.IR=function(a){return(a.deviceIsAudioOnly||!g.LJ||yC||a.controlsType==="3"?!1:g.ZA?a.D&&g.Mc(51):!0)||(a.deviceIsAudioOnly||!g.QQ||yC||a.controlsType==="3"?!1:g.ZA?a.D&&g.Mc(48):g.Mc(38))||(a.deviceIsAudioOnly||!g.mR||yC||a.controlsType==="3"?!1:g.ZA?a.D&&g.Mc(37):g.Mc(27))||!a.deviceIsAudioOnly&&g.HR&&!pra()&&g.Mc(11)||!a.deviceIsAudioOnly&&g.dC&&g.Mc("604.4")};
sVa=function(a){if(g.sR(a)&&jVa)return!1;if(g.QQ){if(!g.Mc(47)||!g.Mc(52)&&g.Mc(51))return!1}else if(g.dC)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
JR=function(a){return!a.L("html5_disable_media_element_loop_on_tv")||!g.zI(a)};
uVa=function(a,b){return a.enabledEngageTypes.has(b.toString())||tVa.includes(b)};
pR=function(a){return a.La==="detailpage"};
g.sR=function(a){return a.La==="embedded"};
KR=function(a){return a.La==="leanback"};
oR=function(a){return a.La==="adunit"||a.playerStyle==="gvn"};
g.vR=function(a){return a.La==="profilepage"};
g.nR=function(a){return a.D&&g.sR(a)&&!oR(a)&&!a.K};
vVa=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(b.length===5)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(b.length===8)return b.splice(7,0,"s20-c"),b.join("/");if(b.length===9)return b[7]+="-s20-c",b.join("/");g.nE(new g.FB("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.LR=function(a){var b=g.AR(a);wVa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.MR=function(a,b){b=b===void 0?"":b;if(a.L("enable_tectonic_player_oauth_callback")&&a.Yl){var c=new xK,d,e=a.Yl();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.nE(new g.FB("b189348328_oauth_callback_failed",{error:f}));
c.resolve(b)});
return d!==void 0?NA(d):new LA(c)}return NA(b)};
yR=function(a){var b=g.yn(a);return(a=Number(g.xn(4,a))||null)?b+":"+a:b};
NR=function(a,b){b=b===void 0?!1:b;var c=TJ[a],d=xVa[c],e=yVa[a];if(!e||!d)return null;b=new QJ(b?e.height:e.width,b?e.width:e.height,e.fps);d=NTa(d,b,c);return new UJ(a,d,{video:b,ub:e.bitrate/8})};
AVa=function(a){var b=xVa[TJ[a]],c=zVa[a];return c&&b?new UJ(a,b,{audio:new OJ(c.audioSampleRate,c.numChannels)}):null};
OR=function(a){this.j=a};
PR=function(a,b,c,d){if(c)return MA();c={};var e=JJ();b=g.v(b);for(var f=b.next();!f.done;f=b.next())if(f=f.value,a.canPlayType(e,f.getInfo().mimeType)||d){var h=f.j.video.quality;if(!c[h]||c[h].getInfo().Ne())c[h]=f}a=[];c.auto&&a.push(c.auto);d=g.v(RJ);for(e=d.next();!e.done;e=d.next())(e=c[e.value])&&a.push(e);return a.length?NA(a):MA()};
BVa=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=""};
CVa=function(a,b){a.C.some(function(c){var d;return((d=c.Yb)==null?void 0:d.getId())===b});
a.j=b};
DVa=function(a,b,c){a.cpn&&(b=g.to(b,{cpn:a.cpn}));c&&(b=g.to(b,{paired:c}));return b};
EVa=function(a,b){a=a.itag.toString();b!==null&&(a+=b.itag.toString());return a};
FVa=function(a){for(var b=[],c=[],d=g.v(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)};
GVa=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=((b=a.audioItag)==null?void 0:b.split(","))||[];this.NC=a.NC;this.oe=a.oe||"";this.Yb=a.Yb;this.audioChannels=a.audioChannels;this.j=""};
HVa=function(a,b,c,d){b=b===void 0?!1:b;c=c===void 0?!0:c;d=d===void 0?{}:d;var e={};a=g.v(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||f.eotf!=="smpte2084"&&f.eotf!=="arib-std-b67"){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.uQ(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new GVa({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,NC:n?l[n]:void 0,oe:f.drm_families,Yb:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
QR=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.resource=null};
IVa=function(a,b){if(!(yC||WA()||VA()))return null;a=HVa(b,a.L("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.v(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.v(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.Yb&&(f=h.Yb.getId(),c[f]||(h=new g.OO(f,h.Yb),c[f]=h,b.push(h)))}}return b.length>0?b:null};
NVa=function(a,b,c,d,e,f,h){if(!(yC||WA()||VA()))return MA();var l={},m=JVa(c),n=HVa(c,a.L("html5_filter_fmp4_in_hls"),a.G.K,l);if(!n)return h({noplst:1}),MA();KVa(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var r=[],t=[],u=null,w="";d=d&&d.match(/hls_timedtext_playlist/)?new GVa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Yb:new g.uQ("English","en",!1)}):null;for(var A=g.v(Object.keys(n)),C=A.next();!C.done;C=A.next())if(C=C.value,!a.L("html5_disable_drm_hfr_1080")||
C!=="383"&&C!=="373"){C=g.v(n[C]);for(var F=C.next();!F.done;F=C.next())if(F=F.value,F.width){for(var G=g.v(F.B),K=G.next();!K.done;K=G.next())if(K=K.value,n[K]){F.j=K;break}F.j||(F.j=LVa(n,F));if(G=n[F.j])if(c.push(F),F.oe==="fairplay"&&(q=p),K="",F.NC==="PQ"?K="smpte2084":F.NC==="HLG"&&(K="arib-std-b67"),K&&(w=K),t.push(MVa(G,[F],d,f,F.itag,F.width,F.height,F.fps,m,void 0,void 0,q,K)),!u||F.width*F.height*F.fps>u.width*u.height*u.fps)u=F}else r.push(F)}else l[C]="disdrmhfr";t.reduce(function(N,
R){return R.getInfo().isEncrypted()&&N},!0)&&(q=p);
e=Math.max(e,0);p=u||{};n=p.fps===void 0?0:p.fps;u=p.width===void 0?0:p.width;p=p.height===void 0?0:p.height;A=a.L("html5_native_audio_track_switching");t.push(MVa(r,c,d,f,"93",u,p,n,m,"auto",e,q,w,A));Object.entries(l).length&&h(l);return PR(a.G,t,rVa(a,b),!1)};
MVa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var u=0,w="",A=g.v(a),C=A.next();!C.done;C=A.next())C=C.value,w||(w=C.itag),C.audioChannels&&C.audioChannels>u&&(u=C.audioChannels,w=C.itag);e=new UJ(e,"application/x-mpegURL",{audio:new OJ(0,u),video:new QJ(f,h,l,null,void 0,n,void 0,r),oe:q,B_:w});a=new BVa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new QR(e,a,m)};
JVa=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(b.length<=1)))return+b[1].split("/")[0];return NaN};
LVa=function(a,b){for(var c=g.v(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.oe===b.oe&&!e.audioChannels)return d}return""};
KVa=function(a){for(var b=new Set,c=g.v(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.v(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.v(c);for(c=b.next();!c.done;c=b.next())delete a[c.value]};
RR=function(a,b){this.j=a;this.B=b};
OVa=function(a,b,c,d){var e=[];c=g.v(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.fP(h.url,!0);if(h.s){var l=f,m=h.sp,n=LPa(decodeURIComponent(h.s));l.set(m,encodeURIComponent(n))}l=g.v(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=cK(h.type,h.quality,h.itag,h.width,h.height);e.push(new RR(h,f))}}return PR(a.G,e,rVa(a,b),!1)};
SR=function(a,b){this.j=a;this.B=b};
PVa=function(a,b,c){var d=[];c=g.v(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=cK(e.type,"medium","0");d.push(new SR(f,e.url))}return PR(a.G,d,rVa(a,b),!1)};
QVa=function(a,b){var c=[],d=cK(b.type,"auto",b.itag);c.push(new SR(d,b.url));return PR(a.G,c,!1,!0)};
SVa=function(a){return a&&RVa[a]?RVa[a]:null};
TVa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.mp=bR(a.ustreamerConfig)||void 0)};
UVa=function(a,b){var c;if(b=b==null?void 0:(c=b.watchEndpointSupportedOnesieConfig)==null?void 0:c.html5PlaybackOnesieConfig)a.lS=new TVa(b)};
g.TR=function(a){a=a===void 0?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=a.name===void 0?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.VR=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.UR(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.WR=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.VVa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.WR(a));return b};
g.UR=function(a){var b=[];if(a.displayName)b.push(a.displayName);else{var c=a.languageName||"";b.push(c);a.kind==="asr"&&c.indexOf("(")===-1&&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("")};
ZVa=function(a,b,c,d){a||(a=b&&WVa.hasOwnProperty(b)&&XVa.hasOwnProperty(b)?XVa[b]+"_"+WVa[b]:void 0);b=a;if(!b)return null;a=b.match(YVa);if(!a||a.length!==5)return null;if(a=b.match(YVa)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(Number(a[1])===1&&e===8)&&f.indexOf(e)>=0}else a=!1;return c||d||a?b:null};
YR=function(a,b){for(var c={},d=g.v(Object.keys($Va)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.RI(f)&&(c[$Va[e]]=f)}return c};
ZR=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.v(Object.keys(aWa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=aWa[e];for(var f=g.v(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=bWa(h.url);g.RI(e)&&(b[d]=e);break}}(a=a.pop())&&a.width>=1280&&(a=bWa(a.url),g.RI(a)&&(b["maxresdefault.jpg"]=a));return b};
bWa=function(a){return a.startsWith("//")?"https:"+a:a};
$R=function(a){return a&&a.baseUrl||""};
aS=function(a){a=g.sA(a);for(var b=g.v(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};
cWa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;b!=null&&(a.wr=b)};
fWa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.V(h,dWa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.V(h,eWa))return Object.assign({is_yto_interstitial:!0},rA(h))});
d=g.v(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,jp:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,jp: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,
jp:f===0?5:7})}}};
gWa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
hWa=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)};
iWa=function(a,b){b!=null?(a.Rp=b,a.Jf=!0):(a.Rp="",a.Jf=!1)};
bS=function(a,b){this.type=a||"";this.id=b||""};
g.jWa=function(a){return new bS(a.substr(0,2),a.substr(2))};
g.cS=function(a,b){this.Ea=a;this.author="";this.GE=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=pA(a,"&");var c;this.j=((c=b.thumbnail_ids)==null?void 0:c.split(",")[0])||null;this.Z=YR(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new bS("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.jWa(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.dS=function(a,b){this.Ea=a;this.Ct=this.author="";this.GE=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Hx=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.Ct=b.Ct||"";if(a=b.endscreen_autoplay_session_data)this.GE=pA(a,"&");this.HE=b.HE;this.isLivePlayback=b.live_playback==="1";this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds=typeof a==="string"?Number(a):a;this.lengthText=
b.lengthText||"";this.Hx=b.Hx||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=pA(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=YR(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
kWa=function(a){var b,c,d=(b=a.getWatchNextResponse())==null?void 0:(c=b.contents)==null?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=(e=a.getWatchNextResponse())==null?void 0:(f=e.playerOverlays)==null?void 0:(h=f.playerOverlayRenderer)==null?void 0:(l=h.endScreen)==null?void 0:(m=l.watchNextEndScreenRenderer)==null?void 0:m.results;if(!a){var n,p;a=d==null?void 0:(n=d.endScreen)==null?void 0:(p=n.endScreen)==null?void 0:p.results}return a};
g.nWa=function(a){var b,c,d;a=g.V((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,lWa);return g.V(a==null?void 0:a.playerBar,mWa)};
oWa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url};
pWa=function(){if(eS===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.jw(g.KB()+"::yt-player"))){eS=new SF(a);break a}eS=void 0}}return eS};
g.fS=function(){var a=pWa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.qWa=function(a){var b=pWa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.gS=function(a){return g.fS()[a]||0};
g.hS=function(a,b){var c=g.fS();b!==c[a]&&(b!==0?c[a]=b:delete c[a],g.qWa(c))};
g.iS=function(a){return g.H(function(b){return b.return(g.wC(rWa(),a))})};
wWa=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.H(function(u){switch(u.j){case 1:return m=g.gS(a),m===4?u.return(4):g.z(u,g.BC(),2);case 2:n=u.B;if(!n)throw g.eC("wiac");if(!l||h===void 0){u.Ja(3);break}return g.z(u,sWa(l,h),4);case 4:h=u.B;case 3:return p=c.lastModified||"0",g.z(u,g.iS(n),5);case 5:return q=u.B,g.Ba(u,6),jS++,g.z(u,g.lC(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Pb:!0},function(w){if(f!==void 0&&h!==void 0){var A=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10,
"0");A=g.mC(w.objectStore("media"),h,A)}else A=g.gC.resolve(void 0);var C=tWa(a,b.Cg()),F=tWa(a,!b.Cg()),G={fmts:uWa(d),format:c||{}};C=g.mC(w.objectStore("index"),G,C);var K=d.downloadedEndTime===-1;G=K?w.objectStore("index").get(F):g.gC.resolve(void 0);var N={fmts:"music",format:{}};w=K&&e&&!b.Cg()?g.mC(w.objectStore("index"),N,F):g.gC.resolve(void 0);return g.gC.all([w,G,A,C]).then(function(R){R=g.v(R);R.next();R=R.next().value;jS--;var da=g.gS(a);if(da!==4&&K&&e||R!==void 0&&g.vWa(R.fmts))da=
1,g.hS(a,da);return da})}),8);
case 8:return u.return(u.B);case 6:r=g.Da(u);jS--;t=g.gS(a);if(t===4)return u.return(t);g.hS(a,4);throw r;}})};
g.xWa=function(a){var b,c;return g.H(function(d){if(d.j==1)return g.z(d,g.BC(),2);if(d.j!=3){b=d.B;if(!b)throw g.eC("ri");return g.z(d,g.iS(b),3)}c=d.B;return d.return(g.lC(c,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(e){var f=IDBKeyRange.bound(a+"|",a+"~");return e.objectStore("index").getAll(f).then(function(h){return h.map(function(l){return l?l.format:{}})})}))})};
zWa=function(a,b,c,d,e){var f,h,l;return g.H(function(m){if(m.j==1)return g.z(m,g.BC(),2);if(m.j!=3){f=m.B;if(!f)throw g.eC("rc");return g.z(m,g.iS(f),3)}h=m.B;l=g.lC(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(n===void 0)throw Error("No data from indexDb");return yWa(e,n)}).catch(function(n){throw new g.FB("Error while reading chunk: "+n.name+", "+n.message);
})):m.return(l)})};
g.vWa=function(a){return a?a==="music"?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
tWa=function(a,b){return""+a+"|"+(b?"v":"a")};
uWa=function(a){var b={};return qA((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
BWa=function(a){var b={},c={};a=g.v(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.AWa)?(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.v(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};
kS=function(a){g.GE.call(this);this.j=null;this.C=new Pla;this.j=null;this.K=new Set;this.crossOrigin=a||""};
CWa=function(a,b,c){for(c=lS(a,c);c>=0;){var d=a.levels[c];if(d.isLoaded(mS(d,b))&&(d=g.nS(d,b)))return d;c--}return g.nS(a.levels[0],b)};
EWa=function(a,b,c){c=lS(a,c);for(var d,e;c>=0;c--)if(d=a.levels[c],e=mS(d,b),!d.isLoaded(e)){d=a;var f=c,h=f+"-"+e;d.K.has(h)||(d.K.add(h),d.C.enqueue(f,{TZ:f,A_:e}))}DWa(a)};
DWa=function(a){if(!a.j&&!a.C.isEmpty()){var b=a.C.remove();a.j=FWa(a,b)}};
FWa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.TZ].Ge(b.A_);c.onload=function(){var d=b.TZ,e=b.A_;a.j!==null&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);DWa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.LJ()-1);e=[e,d];a.publish("l",e[0],e[1])};
return c};
g.oS=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};
mS=function(a,b){return Math.floor(b/(a.columns*a.rows))};
g.nS=function(a,b){b>=a.wN()&&a.nz();var c=mS(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.nz()+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.Ge(c),column:b,columns:h,row:e,rows:d,eG:a.width*h,Ox:a.height*d}};
pS=function(a,b,c,d,e){d=d===void 0?!1:d;e=e===void 0?!1:e;kS.call(this,c);this.isLive=d;this.N=!!e;this.levels=this.B(a,b);this.D=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
GWa=function(a,b,c){return(a=a.levels[b])?a.yI(c):-1};
lS=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};
HWa=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.oS.call(this,a,b,c,0);this.B=null;this.G=d?2:0};
qS=function(a,b,c,d){pS.call(this,a,0,void 0,b,!(d===void 0||!d));for(a=0;a<this.levels.length;a++)this.levels[a].MV(c)};
IWa=function(a,b,c){b={cpn:b};a.indexOf("/ibw/")===-1&&(b.ibw=c?String(c):"1369843");return{url:g.to(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.sS=function(a,b){g.GE.call(this);this.Ea=a;this.adModule=!1;this.adaptiveFormats="";this.BW=this.Sv=this.adQueryId=this.Rv=null;this.fD={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.oe=null;this.mD=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.Yy=void 0;this.Xk=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Xa="";this.jD=this.Tv=!1;this.HU=null;this.Di=this.Kj=this.Eq=this.bG=
!1;this.D=null;this.GY=this.Vk=!1;this.Uf=NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=Infinity;this.X1=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.Xl=!1;this.GN=this.cycToken=null;this.author="";this.Rk=0;this.En=!1;this.WC=null;this.NN=[];this.Hp=this.MD=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.Ab=this.Be="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=
this.endSeconds=this.Lb=0;this.nm=this.eb=this.B=null;this.SD="";this.loading=!1;this.Ud=this.Bn=0;this.kX=this.pipable=this.Kq=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.isLiveHeadPlayable=this.isLivePlayback=this.Cb=this.isPrivate=this.isListed=this.YD=this.Ci=this.mutedAutoplay=this.Kk=!1;this.VG="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.KF=this.Ya=this.je=!1;this.latencyClass="UNKNOWN";this.F2=this.AU=this.XD=this.DX=this.OD=this.enablePreroll=
this.zU=this.enableServerStitchedDai=this.If=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Cc=0;this.reloadReason="";this.SF=this.GU=this.Wi=!1;this.keywords={};this.Kb="";this.yp=0;this.zB=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.Vl=null;this.Nv=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.Z2=this.paygated=!1;this.Wm=[];this.Dn=!1;this.La=[];this.Bi=null;this.EX=this.racyCheckOk=
!1;this.gW={};this.isProximaLatencyEligible=!1;this.mH=0;this.C=null;this.autonavState=1;this.VW=null;this.shortDescription="";this.Ha=this.UX=!1;this.Zd=this.Qb=this.startSeconds=0;this.MB=this.HZ=this.ZB=rS;this.Uv=this.suggestions=null;this.Ov=this.Pv=void 0;this.isExternallyHostedPodcast=!1;this.mm=null;this.JD=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.mw=void 0;this.mf=[];this.Sk=[];this.hlsFormats=this.Xf="";this.rz=this.ZA=this.Uk=this.Fd=this.rb=this.Dp=
this.qz=null;this.An="vvt";this.wj=!1;this.PN=null;this.J0="";this.Vq=NaN;this.Lv=this.RC=this.xq=this.QC=this.PC=this.pm=this.lq=this.bz=this.Sq=this.SC="";this.qm=null;this.lX=!1;this.N={};this.clipStart=0;this.clipEnd=Infinity;this.F3=!1;this.heartbeatToken="";this.J3=this.I3=NaN;this.Ed=this.xp=this.zj=this.yU=this.L3=!1;this.Zl=!0;this.Z={};this.captionTracks=[];this.GD=[];this.UZ=0;this.ID=[];this.gw=[];this.Vv=!1;this.KD={};this.Wk=new g.OO("und",new g.uQ("Default","und",!0));this.jG=0;this.K=
null;this.Ap=[];this.RD=!1;this.cC=this.Bc="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.Sa=this.eI=this.UD=this.playerResponse=this.H_=this.wz=this.Gn=this.Gi=this.QD=this.hD=this.dD=null;this.ow=!1;this.ra=null;this.isInlinePlaybackNoAd=this.Vj=this.ND=this.useCobaltWidevine=this.KX=this.TA=!1;this.f1=!0;this.Tf=this.Bj=NaN;this.defraggedFromSubfragments=this.uF=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.sabrContextUpdates=new Map;this.YA="";this.G1=
!1;this.gatewayExperimentGroup="";this.YC=this.ON=this.Jj=!1;this.interstitials=[];this.Jf=this.RE=!1;this.Rp="";this.allowImaMonetization=!1;this.JU="";this.FD=!1;this.Ch="";this.Bp=[];this.fI=[];this.qd="";this.LN=this.Y=this.xU=!1;this.Ng=0;this.iq="";this.XC=this.gI=this.WD=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Yp=!1;this.gm=this.le=!0;this.errorDetail=this.userGenderAge="";this.IN=this.KN=this.getSharePanelCommand=
this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.Rn=this.errorReason=this.errorCode=null;this.jw=this.hw="";this.Fn=!1;this.Zy=[];this.Sc=this.ib=this.Ub=this.Li=this.gf=0;this.fetchType=null;this.hW=!0;this.transitionEndpointAtEndOfStream=void 0;this.ED=this.dZ=-1;this.fm=this.Wf=!1;this.tf=null;this.Wa="";this.Hn=!1;this.watchUrl=null;this.sz=[];this.visibleOnLoadKeys=[];this.yW=[];this.inlineMetricEnabled=this.Wl=
!1;this.embedsRctn=this.embedsRct="";this.VD=NaN;this.cW=(0,g.iC)();this.IC=this.hq=0;this.mp=null;this.Vf=0;this.wW=this.MN=this.LF=!1;this.HY=0;this.zp={};this.Wf=this.L("web_new_autonav_countdown");this.fm=this.L("web_new_big_thumbnail_endscreen");JWa(this,b);this.nw=new kRa;g.M(this,this.nw)};
g.vS=function(a,b,c){b&&b.cpn&&g.nE(new g.FB("CPN provided in VideoData update",{Erb:b.cpn,Rg:a.clientPlaybackNonce,d$:c}));c?(eB(b),JWa(a,b),tS(a)&&uS(a)):(b=b||{},KWa(a,b),LWa(a,b),MWa(a,b),a.publish("dataupdated"))};
MWa=function(a,b){a.fflags=dB(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Xa=SI(c));a.Tv=aB(a.Tv,b.iv_ads_only);a.jD=aB(a.jD,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.yfa=c;a.isPharma=aB(a.isPharma,b.is_pharma);a.author=dB(a.author,b.author);a.Be=NWa(b.ttsurl)||a.Be;a.En=aB(a.En,b.cc_asr);a.Ab=dB(a.Ab,b.channel_path);if(c=b.profile_picture)a.profilePicture=dB(a.profilePicture,c);a.videoCountText=dB(a.videoCountText,b.video_count_text);a.autonavState=bB(a.autonavState,b.autonav_state,
OWa);if(a.L("html5_enable_ssap_entity_id")){var d;c=!!b.cotn||!((d=a.playerResponse)==null||!d.cotn);d=g.oI(a.Ea.experiments,"html5_entity_id_simplified_preferred_record_size");a.playerResponse&&!c&&(a.clientPlaybackNonce=PWa(a,a.playerResponse,d)||a.clientPlaybackNonce);a.clientPlaybackNonce||(b.cpn&&a.Ay("ssei","uhdc"),a.clientPlaybackNonce=dB(a.clientPlaybackNonce,b.cpn))}else a.clientPlaybackNonce=dB(a.clientPlaybackNonce,b.cpn);a.subscribed=aB(a.subscribed,b.subscribed);a.rawViewCount=cB(a.rawViewCount,
b.view_count);a.shortViewCount=dB(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=dB(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=dB(a.lengthText||"",b.lengthText);a.Hx=dB(a.Hx||"",b.Hx);a.Ct=dB(a.Ct||"",b.Ct);a.title=dB(a.title,b.title);a.subtitle=dB(a.subtitle,b.subtitle);a.expandedTitle=dB(a.expandedTitle,b.expanded_title);a.expandedSubtitle=dB(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=dB(a.ariaLabel,b.aria_label);a.ypcPreview=dB(a.ypcPreview,b.ypc_preview);
a.QN=dB(a.QN,b.ypc_origin);a.wj=aB(a.wj,b.ypc_is_premiere_trailer);a.iq=dB(a.iq,b.ypc_clickwrap_message);a.paygated=aB(a.paygated,b.paygated);a.lX=aB(a.lX,b.requires_purchase);a.showShareButton=!aB(!a.showShareButton,b.ss);a.le=aB(a.le,b.showwatchlater);a.gm=aB(a.gm,b.shownotifybutton);a.Yp=aB(a.Yp,b.copy_share);if(d=b.el)a.eventLabel=d;if(d=b.keywords)a.keywords=QWa(d.split(","));if(d=b.rvs)a.suggestions=Aqa(d).map(function(e){return e.playlist||e.list||e.api?new g.cS(a.Ea,e):new g.dS(a.Ea,e)});
a.contentCheckOk=aB(a.contentCheckOk,b.cco);a.racyCheckOk=aB(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=aB(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=dB(a.oauthToken,b.oauth_token);a.Kb=dB(a.Kb,b.kpt);a.visitorData=dB(a.visitorData,b.visitor_data);if(d=b.session_data)a.sessionData=pA(d,"&");a.qw=dB(a.qw,b.endscreen_ad_tracking_data);a.GZ=aB(a.GZ,b.wait_for_vast_info_cards_xml);a.HD=aB(a.HD,b.suppress_creator_endscreen);a.BU=aB(a.BU,b.is_trueview_action);a.eZ=dB(a.eZ,b.tracking_list);
a.hw=dB(a.hw,b.clip);a.jw=dB(a.jw,b.clipt);RWa(a,b)};
JWa=function(a,b){b=b||{};var c=b.errordetail;c!=null&&(a.errorDetail=c);var d=b.errorcode;d!=null?a.errorCode=d:b.status=="fail"&&(a.errorCode="auth");var e=b.reason;e!=null&&(a.errorReason=e);var f=b.subreason;f!=null&&(a.Rn=f);a.L("html5_enable_ssap_entity_id")||a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.zD(16));a.Cb=aB(a.Ea.Cb,b.livemonitor);KWa(a,b);var h=b.raw_player_response;if(h)a.eI=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.Hp=aB(a.Hp,m));if(!a.clientPlaybackNonce){var n=b.cpn;n?(a.Ay("ssei","shdc"),a.clientPlaybackNonce=n):a.clientPlaybackNonce=g.zD(16)}}h&&(a.playerResponse=h);if(a.playerResponse){var p=a.playerResponse.annotations;if(p)for(var q=g.v(p),r=q.next();!r.done;r=q.next()){var t=r.value.playerAnnotationsUrlsRenderer;if(t){t.adsOnly&&(a.Tv=!0);t.allowInPlaceSwitch&&(a.jD=!0);var u=t.loadPolicy;u&&(a.annotationsLoadPolicy=SWa[u]);var w=t.invideoUrl;w&&(a.Xa=SI(w));a.bG=!0;break}}var A=
a.playerResponse.attestation;A&&cWa(a,A);var C=a.playerResponse.cotn;C&&(a.cotn=C);var F=a.playerResponse.heartbeatParams;if(F){TWa(a)&&(a.F3=!0);var G=F.heartbeatToken;G&&(a.drmSessionId=F.drmSessionId||"",a.heartbeatToken=G,a.I3=Number(F.intervalMilliseconds),a.J3=Number(F.maxRetries),a.L3=!!F.softFailOnError,a.yU=!!F.useInnertubeHeartbeatsForDrm,a.Eq=!0);a.heartbeatServerData=F.heartbeatServerData;var K;a.Xl=!((K=F.heartbeatAttestationConfig)==null||!K.requiresAttestation)}var N=a.playerResponse.messages;
N&&gWa(a,N);var R=a.playerResponse.overlay;if(R){var da=R.playerControlsOverlayRenderer;if(da)if(iWa(a,da.controlBgHtml),da.mutedAutoplay){var oa=g.V(da.mutedAutoplay,UWa);if(oa&&oa.endScreen){var qa=g.V(oa.endScreen,VWa);qa&&qa.text&&(a.JU=g.RE(qa.text))}}else a.mutedAutoplay=!1}var ha=a.playerResponse.playabilityStatus;if(ha){var ta=ha.backgroundability;ta&&ta.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var P,ua;if((P=ha.offlineability)==null?0:(ua=P.offlineabilityRenderer)==
null?0:ua.offlineable)a.offlineable=!0;var y=ha.contextParams;y&&(a.contextParams=y);var Z=ha.pictureInPicture;Z&&Z.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);ha.playableInEmbed&&(a.allowEmbed=!0);var cb=ha.ypcClickwrap;if(cb){var La=cb.playerLegacyDesktopYpcClickwrapRenderer,$a=cb.ypcRentalActivationRenderer;if(La)a.iq=La.durationMessage||"",a.Di=!0;else if($a){var Ya=$a.durationMessage;a.iq=Ya?g.RE(Ya):"";a.Di=!0}}var Ha=ha.errorScreen;if(Ha){if(Ha.playerLegacyDesktopYpcTrailerRenderer){var Ta=
Ha.playerLegacyDesktopYpcTrailerRenderer;a.Lv=Ta.trailerVideoId||"";var ob=Ha.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var B=ob&&ob.ypcTrailerRenderer}else if(Ha.playerLegacyDesktopYpcOfferRenderer)Ta=Ha.playerLegacyDesktopYpcOfferRenderer;else if(Ha.ypcTrailerRenderer){B=Ha.ypcTrailerRenderer;var E=B.fullVideoMessage;a.lq=E?g.RE(E):"";var D,J;a.Lv=((D=g.V(B,WWa))==null?void 0:(J=D.videoDetails)==null?void 0:J.videoId)||""}Ta&&(a.xq=Ta.itemTitle||"",Ta.itemUrl&&(a.RC=Ta.itemUrl),Ta.itemBuyUrl&&
(a.PC=Ta.itemBuyUrl),a.QC=Ta.itemThumbnail||"",a.bz=Ta.offerHeadline||"",a.Sq=Ta.offerDescription||"",a.pm=Ta.offerId||"",a.SC=Ta.offerButtonText||"",a.PN=Ta.offerButtonFormattedText||null,a.Vq=Ta.overlayDurationMsec||NaN,a.lq=Ta.fullVideoMessage||"",a.Kj=!0);if(B){var L=g.V(B,WWa);if(L)a.qm={raw_player_response:L};else{var aa=g.V(B,XWa);a.qm=aa?rA(aa):null}a.Kj=!0}}}var fa=a.playerResponse.playbackTracking;if(fa){var ia=b,O=$R(fa.googleRemarketingUrl);O&&(a.googleRemarketingUrl=O);var ka=$R(fa.youtubeRemarketingUrl);
ka&&(a.youtubeRemarketingUrl=ka);var la=$R(fa.ptrackingUrl);if(la){var za=aS(la),Sa=za.oid;Sa&&(a.aW=Sa);var gb=za.pltype;gb&&(a.bW=gb);var Ab=za.ptchn;Ab&&(a.YV=Ab);var pb=za.ptk;pb&&(a.vz=encodeURIComponent(pb));var Za=za.m;Za&&(a.pw=Za)}var qc=$R(fa.qoeUrl);if(qc){for(var ac=g.sA(qc),bc=g.v(Object.keys(ac)),nc=bc.next();!nc.done;nc=bc.next()){var Wc=nc.value,Yb=ac[Wc];ac[Wc]=Array.isArray(Yb)?Yb.join(","):Yb}a.FZ=ac;var wc=ac.cat;wc&&(a.L("html5_enable_qoe_cat_list")?a.Bp=a.Bp.concat(wc.split(",")):
a.Ch=wc);var $c=ac.live;$c&&(a.VG=$c);var Pc=ac.drm_product;Pc&&(a.Xk=Pc)}var uc=$R(fa.videostatsPlaybackUrl);if(uc){var Tb=aS(uc);a.Ga=Tb;var Ub=Tb.adformat;if(Ub){ia.adformat=Ub;var zd=a.U(),rd=ZVa(Ub,a.cC,zd.D,zd.N);rd&&(a.adFormat=rd)}var sd=Tb.aqi;sd&&(ia.ad_query_id=sd);var $b=Tb.autoplay;$b&&(a.Kk=$b=="1",a.Kq=$b=="1");var Fc=Tb.autonav;Fc&&(a.isAutonav=Fc=="1");var Hb=Tb.delay;Hb&&(a.Lb=ef(Hb));var cd=Tb.ei;cd&&(a.eventId=cd);Tb.el==="adunit"&&(a.Kk=!0);var Ad=Tb.feature;Ad&&(a.Cp=Ad);var Pb=
Tb.list;Pb&&(a.playlistId=Pb);var he=Tb.of;he&&(a.VC=he);var Ud=Tb.osid;Ud&&(a.osid=Ud);var Vd=Tb.referrer;Vd&&(a.referrer=Vd);var Ce=Tb.sdetail;Ce&&(a.CA=Ce);var De=Tb.sourceid;De&&(a.uMa=De);var Ld=Tb.ssrt;Ld&&(a.Pp=Ld=="1");var bf=Tb.subscribed;bf&&(a.subscribed=bf=="1",a.N.subscribed=bf);var Qe=Tb.uga;Qe&&(a.userGenderAge=Qe);var Md=Tb.upt;Md&&(a.qB=Md);var Ff=Tb.vm;Ff&&(a.videoMetadata=Ff)}var Nd=$R(fa.videostatsWatchtimeUrl);if(Nd){var ie=aS(Nd).ald;ie&&(a.Qv=ie)}if(a.L("html5_add_per_destination_base_query_for_video_stats_urls")){var ad=
{},ld=a.L("html5_add_per_destination_base_query_for_video_stats_urls_counterfactual");if(uc){var td=aS(uc);ad.playback=td;ld&&(ad.playback=a.Ga)}if(Nd){var Wd=aS(Nd);ad.watchtime=Wd;ld&&(ad.watchtime=a.Ga)}var Vf=$R(fa.atrUrl);if(Vf){var qf=aS(Vf);ad.atr=qf;ld&&(ad.atr=a.Ga)}var Gf=$R(fa.engageUrl);if(Gf){var Ee=aS(Gf);ad.engage=Ee;ld&&(ad.engage=a.Ga)}a.zp=ad}if(fa.promotedPlaybackTracking){var Vb=fa.promotedPlaybackTracking;Vb.startUrls&&(a.Fz=Vb.startUrls);Vb.firstQuartileUrls&&(a.eD=Vb.firstQuartileUrls);
Vb.secondQuartileUrls&&(a.gD=Vb.secondQuartileUrls);Vb.thirdQuartileUrls&&(a.iD=Vb.thirdQuartileUrls);Vb.completeUrls&&(a.bD=Vb.completeUrls);Vb.engagedViewUrls&&(Vb.engagedViewUrls.length>1&&g.nE(new g.FB("There are more than one engaged_view_urls.")),a.Cj=Vb.engagedViewUrls[0])}}var Fe=a.playerResponse.playerCueRanges;Fe&&Fe.length>0&&(a.cueRanges=Fe);var gh=a.playerResponse.playerCueRangeSet;gh&&g.YWa(a,gh);a:{var Rh=a.playerResponse.adPlacements;if(Rh)for(var Sh=g.v(Rh),Th=Sh.next();!Th.done;Th=
Sh.next()){var sf=void 0,hf=void 0,He=(sf=Th.value.adPlacementRenderer)==null?void 0:(hf=sf.renderer)==null?void 0:hf.videoAdTrackingRenderer;if(He){var Uh=He;break a}}Uh=null}var vc=Uh;fa&&fa.promotedPlaybackTracking&&vc&&g.nE(new g.FB("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));vc&&(a.Z2=!0);var yc=a.playerResponse.playerAds;if(yc)for(var Jc=b,mj=g.v(yc),tf=mj.next();!tf.done;tf=mj.next()){var qg=tf.value;if(qg){var rg=qg.playerLegacyDesktopWatchAdsRenderer;
if(rg){var Og=rg.playerAdParams;if(Og){Og.autoplay=="1"&&(a.Kk=!0,a.Kq=!0);a.Sv=Og.encodedAdSafetyReason||null;Og.showContentThumbnail!==void 0&&(a.Zl=!!Og.showContentThumbnail);Jc.enabled_engage_types=Og.enabledEngageTypes;break}}}}var nd=a.playerResponse.playerConfig;if(nd){var sg=nd.manifestlessWindowedLiveConfig;if(sg){var tg=Number(sg.minDvrSequence),Pg=Number(sg.maxDvrSequence),ug=Number(sg.minDvrMediaTimeMs),Vh=Number(sg.maxDvrMediaTimeMs),uf=Number(sg.startWalltimeMs);tg&&(a.gf=tg);ug&&(a.ib=
ug/1E3);Pg&&(a.Li=Pg);Vh&&(a.Ub=Vh/1E3);uf&&(a.Sc=uf/1E3);(tg||ug)&&(Pg||Vh)&&(a.Ya=!0,a.isLivePlayback=!0,a.allowLiveDvr=!0,a.je=!1)}var Te=nd.daiConfig;if(Te){if(Te.enableDai){a.If=!0;var vg=Te.enableServerStitchedDai;vg&&(a.enableServerStitchedDai=vg);var Wh=Te.enablePreroll;Wh&&(a.enablePreroll=Wh)}var Xh;if(Te.daiType==="DAI_TYPE_SS_DISABLED"||((Xh=Te.debugInfo)==null?0:Xh.isDisabledUnpluggedChannel))a.XD=!0;Te.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(a.zU=!0)}var Ue=nd.audioConfig;if(Ue){var jh=
Ue.loudnessDb;jh!=null&&(a.Uf=jh);var Qg=Ue.trackAbsoluteLoudnessLkfs;Qg!=null&&(a.X1=Qg);var nj=Ue.loudnessTargetLkfs;nj!=null&&(a.loudnessTargetLkfs=nj);Ue.audioMuted&&(a.Vk=!0);Ue.muteOnStart&&(a.GY=!0);var Qd=Ue.loudnessNormalizationConfig;if(Qd){Qd.applyStatefulNormalization&&(a.applyStatefulNormalization=!0);Qd.preserveStatefulLoudnessTarget&&(a.preserveStatefulLoudnessTarget=!0);var Ve=Qd.minimumLoudnessTargetLkfs;Ve!=null&&(a.minimumLoudnessTargetLkfs=Ve);var me=Qd.maxStatefulTimeThresholdSec;
me!=null&&(a.maxStatefulTimeThresholdSec=me)}}var Hi=nd.playbackEndConfig;if(Hi){var jf=Hi.endSeconds,kf=Hi.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&(jf&&(a.endSeconds=jf),kf&&(a.limitedPlaybackDurationInSeconds=kf))}var vf=nd.fairPlayConfig;if(vf){var Zf=vf.certificate;Zf&&(a.eb=bR(Zf));var Rg=Number(vf.keyRotationPeriodMs);Rg>0&&(a.xw=Rg);var Ie=Number(vf.keyPrefetchMarginMs);Ie>0&&(a.uw=Ie)}var lf=nd.playbackStartConfig;if(lf){a.XC=Number(lf.startSeconds);var Jf=lf.liveUtcStartSeconds,
Ii=!!a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0;Jf&&!Ii&&(a.liveUtcStartSeconds=Number(Jf));var oj=lf.startPosition;if(oj){var om=oj.utcTimeMillis;om&&!Ii&&(a.liveUtcStartSeconds=Number(om)*.001);var pm=oj.streamTimeMillis;pm&&(a.Zd=Number(pm)*.001)}a.progressBarStartPosition=lf.progressBarStartPosition;a.progressBarEndPosition=lf.progressBarEndPosition}else{var ok=nd.skippableSegmentsConfig;if(ok){var pk=ok.introSkipDurationMs;pk&&(a.WD=Number(pk)/1E3);var pj=ok.outroSkipDurationMs;pj&&(a.gI=
Number(pj)/1E3)}}var We=nd.skippableIntroConfig;if(We){var Je=Number(We.startMs),$d=Number(We.endMs);isNaN(Je)||isNaN($d)||(a.Bj=Je,a.Tf=$d)}var kh=nd.streamSelectionConfig;kh&&(a.Ud=Number(kh.maxBitrate));var Yh=nd.vrConfig;Yh&&(a.TA=Yh.partialSpherical=="1");var qj=nd.webDrmConfig;if(qj){qj.skipWidevine&&(a.KX=!0);var ql=qj.widevineServiceCert;ql&&(a.nm=bR(ql));qj.useCobaltWidevine&&(a.useCobaltWidevine=!0);qj.startWithNoQualityConstraint&&(a.Vj=!0)}var Kf=nd.mediaCommonConfig;if(Kf){var Zh=Kf.dynamicReadaheadConfig;
if(Zh){a.maxReadAheadMediaTimeMs=Zh.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=Zh.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=Zh.readAheadGrowthRateMs||NaN;var Sg,$h=Kf==null?void 0:(Sg=Kf.mediaUstreamerRequestConfig)==null?void 0:Sg.videoPlaybackUstreamerConfig;$h&&(a.Bi=bR($h));var Ji=Kf==null?void 0:Kf.sabrContextUpdates;if(Ji&&Ji.length>0)for(var qk=g.v(Ji),rk=qk.next();!rk.done;rk=qk.next()){var $f=rk.value;if($f.type&&$f.value){var rj={type:$f.type,scope:$f.scope,value:bR($f.value)||
void 0,sendByDefault:$f.sendByDefault};a.sabrContextUpdates.set($f.type,rj)}}}var lh=Kf.serverPlaybackStartConfig;lh&&(a.serverPlaybackStartConfig=lh);Kf.useServerDrivenAbr&&(a.MN=!0);var sj=Kf.requestPipeliningConfig;sj&&(a.requestPipeliningConfig=sj)}var mh=nd.inlinePlaybackConfig;mh&&(a.f1=!!mh.showAudioControls);var Tg=nd.embeddedPlayerConfig;if(Tg){a.embeddedPlayerConfig=Tg;var tj=Tg.embeddedPlayerMode;if(tj){var rl=a.U();rl.Ga=tj;rl.C=tj==="EMBEDDED_PLAYER_MODE_PFL"}var qm=Tg.permissions;qm&&
(a.allowImaMonetization=!!qm.allowImaMonetization)}var uj=nd.ssapConfig;uj&&(a.G1=uj.ssapPrerollEnabled||!1);var sk=nd.webPlayerConfig;sk&&(sk.gatewayExperimentGroup&&(a.gatewayExperimentGroup=sk.gatewayExperimentGroup),sk.isProximaEligible&&(a.isProximaLatencyEligible=!0))}var Ed=a.playerResponse.streamingData;if(Ed){var ag=Ed.adaptiveFormats;if(ag){var wg=Ed.streamingUrlTemplate;if(a.L("enable_streaming_url_template")&&wg)for(var sl=g.v(ag),tk=sl.next();!tk.done;tk=sl.next()){var uk=tk.value;!uk.url&&
uk.distinctParams&&(uk.url=wg+"&"+uk.distinctParams)}}var mc=Ed.formats;if(mc){for(var rm=[],tl=g.v(mc),ul=tl.next();!ul.done;ul=tl.next()){var vj=ul.value;rm.push(vj.itag+"/"+vj.width+"x"+vj.height)}a.SD=rm.join(",");rm=[];for(var up=g.v(mc),wj=up.next();!wj.done;wj=up.next()){var xj=wj.value,yj={itag:xj.itag,type:xj.mimeType,quality:xj.quality},vp=xj.url;vp&&(yj.url=vp);var En=kP(xj),Zq=En.nE,$q=En.FH,ar=En.s;En.TY&&(yj.url=Zq,yj.sp=$q,yj.s=ar);rm.push(g.Dn(yj))}a.Xf=rm.join(",")}var vl=Ed.hlsFormats;
if(vl){var sm=nd||null,vk={};if(sm){var zj=sm.audioPairingConfig;if(zj&&zj.pairs)for(var ai=g.v(zj.pairs),nh=ai.next();!nh.done;nh=ai.next()){var wl=nh.value,wp=wl.videoItag;vk[wp]||(vk[wp]=[]);vk[wp].push(wl.audioItag)}}for(var xp={},br=g.v(vl),yp=br.next();!yp.done;yp=br.next()){var Fn=yp.value;xp[Fn.itag]=Fn.bitrate}for(var cr=[],oh=g.v(vl),bi=oh.next();!bi.done;bi=oh.next()){var ae=bi.value,ci={itag:ae.itag,type:ae.mimeType,url:ae.url,bitrate:ae.bitrate,width:ae.width,height:ae.height,fps:ae.fps},
bg=ae.audioTrack;if(bg){var di=bg.displayName;di&&(ci.name=di,ci.audio_track_id=bg.id,bg.audioIsDefault&&(ci.is_default="1"))}if(ae.drmFamilies){for(var ph=[],dr=g.v(ae.drmFamilies),tm=dr.next();!tm.done;tm=dr.next())ph.push(OTa[tm.value]);ci.drm_families=ph.join(",")}var Gn=vk[ae.itag];if(Gn&&Gn.length){ci.audio_itag=Gn.join(",");var Hn=xp[Gn[0]];Hn&&(ci.bitrate+=Hn)}var In=tTa(ae);In&&(ci.eotf=In);ae.audioChannels&&(ci.audio_channels=ae.audioChannels);cr.push(g.Dn(ci))}a.hlsFormats=cr.join(",")}var um=
Ed.licenseInfos;if(um&&um.length>0){for(var er={},Ki=g.v(um),Li=Ki.next();!Li.done;Li=Ki.next()){var wk=Li.value,xl=wk.drmFamily,vm=wk.url;xl&&vm&&(er[OTa[xl]]=vm)}a.oe=er}var wm=Ed.drmParams;wm&&(a.drmParams=wm);var zp=Ed.dashManifestUrl;zp&&(a.Zc=g.to(zp,{cpn:a.clientPlaybackNonce}));var Ap=Ed.hlsManifestUrl;Ap&&(a.hlsvp=Ap);var Bp=Ed.probeUrl;Bp&&(a.probeUrl=SI(g.to(Bp,{cpn:a.clientPlaybackNonce})));var Jn=Ed.serverAbrStreamingUrl;Jn&&(a.Yl=new g.fP(Jn,!0))}var Kn=a.playerResponse.trackingParams;
Kn&&(a.va=Kn);var Sc=a.playerResponse.videoDetails;if(Sc){var ne=b,qh=Sc.videoId;qh&&(a.videoId=qh,ne.video_id||(ne.video_id=qh));var ei=Sc.channelId;ei&&(a.N.uid=ei.substr(2));var Ln=Sc.title;Ln&&(a.title=Ln,ne.title||(ne.title=Ln));var Cp=Sc.lengthSeconds;Cp&&(a.lengthSeconds=Number(Cp),ne.length_seconds||(ne.length_seconds=Cp));var xm=Sc.keywords;xm&&(a.keywords=QWa(xm));var ym=Sc.channelId;ym&&(a.Ul=ym,ne.ucid||(ne.ucid=ym));var zm=Sc.viewCount;zm&&(a.rawViewCount=Number(zm));var Mn=Sc.author;
Mn&&(a.author=Mn,ne.author||(ne.author=Mn));var fr=Sc.shortDescription;fr&&(a.shortDescription=fr);var Dp=Sc.isCrawlable;Dp&&(a.isListed=Dp);var xk=Sc.musicVideoType;xk&&(a.musicVideoType=xk);var fi=Sc.isLive;fi!=null&&(a.isLivePlayback=fi);if(fi||Sc.isUpcoming)a.isPremiere=!Sc.isLiveContent;var yk=Sc.thumbnail;yk&&(a.Z=ZR(yk));var Am=Sc.isExternallyHostedPodcast;Am&&(a.isExternallyHostedPodcast=Am);var Bm=Sc.viewerLivestreamJoinPosition;if(Bm==null?0:Bm.utcTimeMillis)a.IC=ef(Bm.utcTimeMillis);var Ep=
nd||null,Aj=b;Sc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);Sc.isUpcoming&&(a.isUpcoming=!0);if(Sc.isPostLiveDvr){a.je=!0;var zk=Sc.latencyClass;zk&&(a.latencyClass=ZWa[zk]||"UNKNOWN");Sc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0)}else{var Bj=!1;if(a.Cb)a.allowLiveDvr=XQ()?!0:YA&&wS<5?!1:!0,a.isLivePlayback=!0;else if(Sc.isLive){Aj.livestream="1";a.allowLiveDvr=Sc.isLiveDvrEnabled?XQ()?!0:YA&&wS<5?!1:!0:!1;a.Oa=27;Sc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0);var Fp=
Sc.latencyClass;Fp&&(a.latencyClass=ZWa[Fp]||"UNKNOWN");var gr=Sc.liveChunkReadahead;gr&&(a.liveChunkReadahead=gr);var yl=Ep&&Ep.livePlayerConfig;if(yl){yl.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);yl.hasSubfragmentedWebm&&(a.uF=!0);yl.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var zl=yl.liveExperimentalContentId;zl&&(a.liveExperimentalContentId=Number(zl));var Al=yl.isLiveHeadPlayable;a.L("html5_live_head_playable")&&Al!=null&&(a.isLiveHeadPlayable=Al)}Bj=!0}else Sc.isUpcoming&&
(Bj=!0);Bj&&(a.isLivePlayback=!0,Aj.adformat&&Aj.adformat.split("_")[1]!=="8"||a.La.push("heartbeat"),a.Eq=!0)}var Bl=Sc.isPrivate;Bl!==void 0&&(a.isPrivate=aB(a.isPrivate,Bl))}if(ha){var Gp=Sc||null,Hp=!1,Ak=ha.errorScreen;Hp=Ak&&(Ak.playerLegacyDesktopYpcOfferRenderer||Ak.playerLegacyDesktopYpcTrailerRenderer||Ak.ypcTrailerRenderer)?!0:Gp&&Gp.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(ha.status);if(!Hp){a.errorCode=SVa(ha.errorCode)||"auth";var Cl=Ak&&Ak.playerErrorMessageRenderer;
if(Cl){a.playerErrorMessageRenderer=Cl;var Cm=Cl.reason;Cm&&(a.errorReason=g.RE(Cm));var Nn=Cl.subreason;Nn&&(a.Rn=g.RE(Nn),a.yw=Nn)}else a.errorReason=ha.reason||null;var Dm=ha.status;if(Dm==="LOGIN_REQUIRED")a.errorDetail="1";else if(Dm==="CONTENT_CHECK_REQUIRED")a.errorDetail="2";else if(Dm==="AGE_CHECK_REQUIRED"){var On=ha.errorScreen,Pn=On&&On.playerKavRenderer;a.errorDetail=Pn&&Pn.kavUrl?"4":"3"}else a.errorDetail=ha.isBlockedInRestrictedMode?"5":"0"}}var hr=a.playerResponse.interstitialPods;
hr&&fWa(a,hr);a.Xa&&a.eventId&&(a.Xa=uA(a.Xa,{ei:a.eventId}));var Qn=a.playerResponse.captions;if(Qn&&Qn.playerCaptionsTracklistRenderer)a:{var rh=Qn.playerCaptionsTracklistRenderer;a.captionTracks=[];if(rh.captionTracks)for(var Dl=g.v(rh.captionTracks),El=Dl.next();!El.done;El=Dl.next()){var xg=El.value,sh=NWa(xg.baseUrl);if(!sh)break a;var gi={is_translateable:!!xg.isTranslatable,languageCode:xg.languageCode,languageName:xg.name&&g.RE(xg.name),url:sh,vss_id:xg.vssId,kind:xg.kind};gi.name=xg.trackName;
gi.displayName=xg.name&&g.RE(xg.name);a.captionTracks.push(new g.TR(gi))}a.GD=rh.audioTracks||[];a.UZ=rh.defaultAudioTrackIndex||0;a.gw=[];if(rh.translationLanguages)for(var Mi=g.v(rh.translationLanguages),Em=Mi.next();!Em.done;Em=Mi.next()){var Fl=Em.value,Ni={};Ni.languageCode=Fl.languageCode;Ni.languageName=g.RE(Fl.languageName);if(Fl.translationSourceTrackIndices){Ni.translationSourceTrackIndices=[];for(var Fm=g.v(Fl.translationSourceTrackIndices),hi=Fm.next();!hi.done;hi=Fm.next())Ni.translationSourceTrackIndices.push(hi.value)}if(Fl.excludeAudioTrackIndices){Ni.excludeAudioTrackIndices=
[];for(var Cj=g.v(Fl.excludeAudioTrackIndices),Dj=Cj.next();!Dj.done;Dj=Cj.next())Ni.excludeAudioTrackIndices.push(Dj.value)}a.gw.push(Ni)}a.ID=[];if(rh.defaultTranslationSourceTrackIndices)for(var ir=g.v(rh.defaultTranslationSourceTrackIndices),Ej=ir.next();!Ej.done;Ej=ir.next())a.ID.push(Ej.value);a.Vv=!!rh.contribute&&!!rh.contribute.captionsMetadataRenderer}a.clipConfig=a.playerResponse.clipConfig;a.clipConfig&&a.clipConfig.startTimeMs!=null&&(a.XC=Number(a.clipConfig.startTimeMs)*.001);a.playerResponse&&
a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&hWa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var Bk;a.compositeLiveIngestionOffsetToken=(Bk=a.playerResponse.playbackTracking)==null?void 0:Bk.compositeLiveIngestionOffsetToken;var Gl;a.compositeLiveStatusToken=(Gl=a.playerResponse.playbackTracking)==null?void 0:Gl.compositeLiveStatusToken}LWa(a,b);b.queue_info&&(a.queueInfo=
b.queue_info);var Rn=b.hlsdvr;Rn!=null&&(a.allowLiveDvr=Rn=="1"?XQ()?!0:YA&&wS<5?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.Sv||(a.Sv=b.encoded_ad_safety_reason||null);a.BW=b.agcid||null;a.dD=b.ad_id||null;a.hD=b.ad_sys||null;a.QD=b.encoded_ad_playback_context||null;a.Vk=aB(a.Vk,b.infringe||b.muted);a.Bfa=b.authkey;a.vda=b.authuser;a.mutedAutoplay=aB(a.mutedAutoplay,b&&b.playmuted);a.FD=aB(a.FD,b&&b.mutedautoplay);var Hl=b.length_seconds;Hl&&(a.lengthSeconds=typeof Hl==="string"?ef(Hl):Hl);if(a.isAd()||
a.Dn||!g.fB(g.wR(a.Ea)))a.endSeconds=cB(a.endSeconds,a.gI||b.end||b.endSeconds);else{var Gm=a.lengthSeconds;switch(g.wR(a.Ea)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":Gm>30?a.limitedPlaybackDurationInSeconds=30:Gm<30&&Gm>10&&(a.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.limitedPlaybackDurationInSeconds=Gm*.2}}a.va=dB(a.va,b.itct);a.YD=aB(a.YD,b.noiba);a.KF=aB(a.KF,b.is_live_destination);a.isLivePlayback=aB(a.isLivePlayback,b.live_playback);
a.enableServerStitchedDai=a.enableServerStitchedDai&&a.hc();b.isUpcoming&&(a.isUpcoming=aB(a.isUpcoming,b.isUpcoming));a.je=aB(a.je,b.post_live_playback);a.Ya&&(a.je=!1);a.isMdxPlayback=aB(a.isMdxPlayback,b.mdx);var Hm=b.mdx_control_mode;Hm&&(a.mdxControlMode=typeof Hm==="number"?Hm:ef(Hm));a.isInlinePlaybackNoAd=aB(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Cc=cB(a.Cc,b.reload_count);a.reloadReason=dB(a.reloadReason,b.reload_reason);a.Zl=aB(a.Zl,b.show_content_thumbnail);a.SF=aB(a.SF,b.utpsa);
a.JD=aB(a.JD,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.GN=b.tkn||null;var Ip=YR(b);Object.keys(Ip).length>0&&(a.Z=Ip);a.Da=dB(a.Da,b.vvt);a.mdxEnvironment=dB(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.Z3=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=dB(a.playlistId,b.list);b.index&&(a.playlistIndex=
a.playlistIndex===void 0?cB(0,b.index):cB(a.playlistIndex,b.index));a.pW=b.pyv_view_beacon_url;a.vW=b.pyv_quartile25_beacon_url;a.xW=b.pyv_quartile50_beacon_url;a.zW=b.pyv_quartile75_beacon_url;a.tW=b.pyv_quartile100_beacon_url;var Sn=b.session_data;!a.DW&&Sn&&(a.DW=pA(Sn,"&").feature);a.isFling=cB(a.isFling?1:0,b.is_fling)==1;a.vnd=cB(a.vnd,b.vnd);a.forceAdsUrl=dB(a.forceAdsUrl,b.force_ads_url);a.hj=dB(a.hj,b.ctrl);a.Nj=dB(a.Nj,b.ytr);a.Kw=b.ytrcc;a.OW=b.ytrexp;a.kD=b.ytrext;a.Bc=dB(a.Bc,b.adformat);
a.cC=dB(a.cC,b.attrib);a.slotPosition=cB(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Pp=aB(a.Pp,b.ssrt);a.videoId=eB(b)||a.videoId;a.G=dB(a.G,b.vss_credentials_token);a.An=dB(a.An,b.vss_credentials_token_type);a.Jj=aB(a.Jj,b.audio_only);a.ON=aB(a.ON,b.aac_high);a.YC=aB(a.YC,b.prefer_low_quality_audio);a.LN=aB(a.LN,b.uncap_inline_quality);a.L("html5_enable_qoe_cat_list")?b.qoe_cat&&(a.Bp=a.Bp.concat(b.qoe_cat.split(","))):a.Ch=dB(a.Ch,b.qoe_cat);a.Fn=aB(a.Fn,b.download_media);var Tn=b.prefer_gapless;
var jr=Tn!=null?aB(a.Y,Tn):a.Y?a.Y:a.Ea.preferGapless&&a.Ea.supportsGaplessShorts();a.Y=jr;gKa(a.playerResponse)&&(a.adModule=!0,a.La.push("ad"));var Il=b.adaptive_fmts;Il&&(a.adaptiveFormats=Il,a.oa("adpfmts",{},!0));var Un=b.allow_embed;Un&&(a.allowEmbed=Un=="1");var Vn=b.backgroundable;Vn&&(a.backgroundable=Vn=="1");var Wn=b.autonav;Wn&&(a.isAutonav=Wn=="1");var Jp=b.autoplay;Jp&&(a.Kq=Jp=="1",a.Kk=Jp=="1");var Im=b.iv_load_policy;Im&&(a.annotationsLoadPolicy=bB(a.annotationsLoadPolicy,Im,xR));
var Kp=b.cc_lang_pref;Kp&&(a.captionsLanguagePreference=dB(Kp,a.captionsLanguagePreference));var Lp=b.cc_load_policy;Lp&&(a.WC=bB(a.WC,Lp,xR));var Mp;a.deviceCaptionsOn=(Mp=b.device_captions_on)!=null?Mp:void 0;var Np;a.w_=(Np=b.device_captions_lang_pref)!=null?Np:"";var Jm;a.NN=(Jm=b.viewer_selected_caption_langs)!=null?Jm:[];if(!a.L("html5_enable_ssap_entity_id")){var Jl=b.cached_load;Jl&&(a.Hp=aB(a.Hp,Jl))}b.dash=="0"&&(a.MD=!0);var Xn=b.dashmpd;Xn&&(a.Zc=g.to(Xn,{cpn:a.clientPlaybackNonce}));
var Yn=b.delay;Yn&&(a.Lb=ef(Yn));var Op=a.gI||b.end;Op!=void 0&&(a.clipEnd=cB(a.clipEnd,Op));var Zn=b.fmt_list;Zn&&(a.SD=Zn);b.heartbeat_preroll&&a.La.push("heartbeat");a.Bn=-Math.floor(Math.random()*10);a.Nv=-Math.floor(Math.random()*40);var kr=b.is_listed;kr&&(a.isListed=aB(a.isListed,kr));var Pp=b.is_private;Pp&&(a.isPrivate=aB(a.isPrivate,Pp));var $n=b.is_dni;$n&&(a.Jf=aB(a.Jf,$n));var lr=b.dni_color;lr&&(a.Rp=dB(a.Rp,lr));var oe=b.pipable;oe&&(a.pipable=aB(a.pipable,oe));a.kX=a.pipable&&a.Ea.Sq;
a.UX=a.kX&&!a.Ea.showMiniplayerButton;var we=b.paid_content_overlay_duration_ms;we&&(a.paidContentOverlayDurationMs=ef(we));var Ke=b.paid_content_overlay_text;Ke&&(a.paidContentOverlayText=Ke);var ao=b.url_encoded_fmt_stream_map;ao&&(a.Xf=ao);var bo=b.hls_formats;bo&&(a.hlsFormats=bo);var Qp=b.hlsvp;Qp&&(a.hlsvp=Qp);var co=b.live_start_walltime;co&&(a.SH=typeof co==="number"?co:ef(co));var Km=b.live_manifest_duration;Km&&(a.Vl=typeof Km==="number"?Km:ef(Km));var Rp=b.player_params;Rp&&(a.playerParams=
Rp);var Sp=b.partnerid;Sp&&(a.Oa=cB(a.Oa,Sp));var Oi=b.probe_url;Oi&&(a.probeUrl=SI(g.to(Oi,{cpn:a.clientPlaybackNonce})));var ii=b.pyv_billable_url;ii&&RCa(ii)&&(a.Cj=ii);var Pi=b.pyv_conv_url;Pi&&RCa(Pi)&&(a.rW=Pi);RWa(a,b);a.startSeconds>0||(a.startSeconds=cB(a.startSeconds,a.XC||a.WD||b.start||b.startSeconds),a.Qb=a.startSeconds);if(!(a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0)){var Tp=b.live_utc_start;if(Tp!=null)a.liveUtcStartSeconds=Number(Tp);else{var Up=a.startSeconds;Up&&isFinite(Up)&&
Up>1E9&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&a.liveUtcStartSeconds>0)){var Lm=b.utc_start_millis;Lm&&(a.liveUtcStartSeconds=Number(Lm)*.001)}var eo=b.stream_time_start_millis;eo&&(a.Zd=Number(eo)*.001);var fo=a.WD||b.start;fo==void 0||b.resume=="1"||a.isLivePlayback||(a.clipStart=cB(a.clipStart,fo));var Vp=b.url_encoded_third_party_media;Vp&&(a.mm=Aqa(Vp));var Fj=b.ypc_offer_button_formatted_text;if(Fj){var Mm=JSON.parse(Fj);a.PN=Mm!=null?Mm:null;a.J0=Fj}var Qi=b.ypc_offer_button_text;
Qi&&(a.SC=Qi);var go=b.ypc_offer_description;go&&(a.Sq=go);var ho=b.ypc_offer_headline;ho&&(a.bz=ho);var mr=b.ypc_full_video_message;mr&&(a.lq=mr);var nr=b.ypc_offer_id;nr&&(a.pm=nr);var Ri=b.ypc_buy_url;Ri&&(a.PC=Ri);var Kl=b.ypc_item_thumbnail;Kl&&(a.QC=Kl);var Gj=b.ypc_item_title;Gj&&(a.xq=Gj);var or=b.ypc_item_url;or&&(a.RC=or);var io=b.ypc_vid;io&&(a.Lv=io);b.ypc_overlay_timeout&&(a.Vq=Number(b.ypc_overlay_timeout));var Wp=b.ypc_trailer_player_vars;Wp&&(a.qm=rA(Wp));var jo=b.ypc_original_itct;
jo&&(a.B4=jo);a.Ul=dB(a.Ul,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=aB(a.N.focEnabled,b.focEnabled);a.N.rmktEnabled=aB(a.N.rmktEnabled,b.rmktEnabled);a.ZA=b.storyboard_spec||null;a.rz=b.live_storyboard_spec||null;a.HU=b.iv_endscreen_url||null;a.bG=aB(a.bG,b.iv3_module);a.Eq=aB(a.Eq,b.ypc_license_checker_module);
a.Kj=aB(a.Kj,b.ypc_module);a.Di=aB(a.Di,b.ypc_clickwrap_module);a.Kj&&a.La.push("ypc");a.Di&&a.La.push("ypc_clickwrap");a.gW={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};MWa(a,b);var pr=b.cotn;pr&&(a.cotn=pr);if($Wa(a))xS(a)&&(a.isLivePlayback&&a.Zc&&(a.zj=!0),a.eb&&(a.xp=!0));else if(aXa(a))a.zj=!0;else{var ko,Xp,Ck=((ko=a.playerResponse)==null?void 0:(Xp=ko.streamingData)==null?void 0:Xp.adaptiveFormats)||[];if(Ck.length>0)var Si=bXa(a,Ck);else{var Nm=a.adaptiveFormats;if(Nm&&!xS(a)){yS(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(hUa=!0);var Ll=zS(Nm),yg=a.oe,Lf=a.lengthSeconds,ji=a.isLivePlayback,
Om=a.je,Dk=a.Ea,Ek=QTa(Ll);if(ji||Om){var pe=new wQ("",Dk==null?void 0:Dk.experiments,!0);pe.hc=!0;pe.isManifestless=!0;pe.B=!Om;pe.isLive=!Om;pe.je=Om;for(var Mf=g.v(Ll),th=Mf.next();!th.done;th=Mf.next()){var ki=th.value,qr=PTa(ki,yg),Fk=yQ(ki.url,ki.sp,ki.s),rr=Fk.get("id");rr&&rr.includes("%7E")&&(pe.va=!0);var bt=Number(ki.target_duration_sec)||5,sr=Number(ki.max_dvr_duration_sec)||14400,tr=Number(Fk.get("mindsq")||Fk.get("min_sq")||"0"),Ml=Number(Fk.get("maxdsq")||Fk.get("max_sq")||"0")||Infinity;
pe.gf=pe.gf||tr;pe.Li=pe.Li||Ml;var Yp=!bK(qr.mimeType);Fk&&vQ(pe,new nQ(Fk,qr,{Rj:bt,Ln:Yp,Cr:sr,gf:tr,Li:Ml,nB:300,je:Om}))}var lo=pe}else{if(Ek==="FORMAT_STREAM_TYPE_OTF"){var mo=Lf;mo=mo===void 0?0:mo;var Gk=new wQ("",Dk==null?void 0:Dk.experiments,!1);Gk.duration=mo||0;for(var ur=g.v(Ll),Nl=ur.next();!Nl.done;Nl=ur.next()){var Ol=Nl.value,no=PTa(Ol,yg,Gk.duration),Hj=yQ(Ol.url,Ol.sp,Ol.s);if(Hj)if(no.streamType==="FORMAT_STREAM_TYPE_OTF")vQ(Gk,new oQ(Hj,no,"sq/0"));else{var Hk=XP(Ol.init),Pm=
XP(Ol.index);vQ(Gk,new tQ(Hj,no,Hk,Pm))}}Gk.isOtf=!0;var oo=Gk}else{var po=Lf;po=po===void 0?0:po;var Pl=new wQ("",Dk==null?void 0:Dk.experiments,!1);Pl.duration=po||0;for(var vr=g.v(Ll),Zp=vr.next();!Zp.done;Zp=vr.next()){var Ug=Zp.value,Ql=PTa(Ug,yg,Pl.duration),Ij=XP(Ug.init),Rl=XP(Ug.index),Sl=yQ(Ug.url,Ug.sp,Ug.s);Sl&&vQ(Pl,new tQ(Sl,Ql,Ij,Rl))}oo=Pl}lo=oo}var qo=lo;if(Ll.length>0){var $p=Ll[0];if(a.U().playerStyle==="hangouts-meet"&&$p.url){var ct=g.sA($p.url);a.hq=a.hq||Number(ct.expire)}}var aq=
a.isLivePlayback&&!a.je&&!a.Ya&&!a.isPremiere;a.L("html5_live_head_playable")&&(!AS(a)&&aq&&a.oa("missingLiveHeadPlayable",{}),a.Ea.ra==="yt"&&(qo.eb=!0));qo.Xa=BS(a);Si=qo}else Si=null;a.oa("pafmts",{isManifestFilled:!!Si})}if(Si){cXa(a,Si);var bq=!0}else bq=!1;bq?a.enableServerStitchedDai=a.enableServerStitchedDai&&CS(a):!a.Zc||a.Ea.ra==="yt"&&a.hc()&&a.L("drm_manifestless_unplugged")&&a.L("html5_deprecate_manifestful_fallback")||(a.zj=!0)}var Tl=b.adpings;Tl&&(a.Rv=Tl?rA(Tl):null);var Ti=b.feature;
Ti&&(a.Cp=Ti);var li=b.referrer;li&&(a.referrer=li);a.clientScreenNonce=dB(a.clientScreenNonce,b.csn);a.mH=cB(a.mH,b.root_ve_type);a.yp=cB(a.yp,b.kids_age_up_mode);b.kids_app_info!=void 0&&(a.kidsAppInfo=b.kids_app_info);a.zB=aB(a.zB,b.upg_content_filter_mode);a.unpluggedFilterModeType=cB(a.unpluggedFilterModeType,b.unplugged_filter_mode_type);var Ul=b.unplugged_location_info;Ul&&(a.ra=Ul);var wr=b.unplugged_partner_opt_out;wr&&(a.aD=dB("",wr));a.ow=aB(a.ow,b.disable_watch_next);a.wp=dB(a.wp,b.internal_ip_override);
a.RE=!!b.is_yto_interstitial;(a.interstitials.length||a.RE)&&a.La.push("yto");var xr=b.Wm;xr&&(a.Wm=xr);b.sM&&(a.sM=b.sM);var ro;a.Wa=(ro=b.csi_timer)!=null?ro:"";a.Hn=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);var Ik=b.watch_endpoint;a.L("html5_attach_watch_endpoint_ustreamer_config")&&Ik&&UVa(a,Ik);if(Ik==null?0:Ik.ustreamerConfig)a.mp=bR(Ik.ustreamerConfig);var so,cq,dq=Ik==null?void 0:(so=Ik.loggingContext)==null?void 0:(cq=so.qoeLoggingContext)==null?void 0:cq.serializedContextData;dq&&
(a.x4=dq);g.nR(a.Ea)&&a.Ea.Wl&&(a.embedsRct=dB(a.embedsRct,b.rct),a.embedsRctn=dB(a.embedsRctn,b.rctn));a.Wl=a.Wl||!!b.pause_at_start;b.default_active_source_video_id&&(a.defaultActiveSourceVideoId=b.default_active_source_video_id)};
PWa=function(a,b,c){var d,e=(d=b.cpnInfo)==null?void 0:d.cpn;a.playerResponseCpn=e!=null?e:"";g.DS(a)&&!e&&a.Ay("ssei","eim_"+a.clientPlaybackNonce);var f;return((f=b.cacheMetadata)==null?0:f.isCacheHit)||a.Hp||!e?"":(dXa.has(e)?c="":(b=eXa.push(e),dXa.add(e),b>(c!=null?c:50)&&(c=eXa.shift())&&dXa.delete(c),c=e),e!==c&&a.Ay("ssei","dcpn_"+e+"_"+c+"_"+a.clientPlaybackNonce),c)};
LWa=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.Sa=c;var e=a.Sa.playerCueRangeSet;e&&g.YWa(a,e);var f=a.Sa.playerOverlays;if(f){var h=f.playerOverlayRenderer;if(h){var l=h.autonavToggle;l&&(a.autoplaySwitchButtonRenderer=g.V(l,fXa),a.L("web_player_autonav_use_server_provided_state")&&gXa(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.RE(p.title)),p.subtitle&&(b.subtitle=g.RE(p.subtitle)))}g.sR(a.Ea)&&(a.le=!!h.addToMenu);hXa(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.Oda=g.V(q,iXa));var r,t,u,w=g.V((r=a.getWatchNextResponse())==
null?void 0:(t=r.playerOverlays)==null?void 0:(u=t.playerOverlayRenderer)==null?void 0:u.infoPanel,jXa);if(w){a.VD=Number(w==null?void 0:w.durationMs)||NaN;if(w==null?0:w.infoPanelOverviewViewModel)a.Sf=w==null?void 0:w.infoPanelOverviewViewModel;if(w==null?0:w.infoPanelDetailsViewModel)a.Yk=w==null?void 0:w.infoPanelDetailsViewModel}a.showSeekingControls=!!h.showSeekingControls}}var A,C,F=(A=a.getWatchNextResponse())==null?void 0:(C=A.contents)==null?void 0:C.twoColumnWatchNextResults;if(F){var G=
F.desktopOverlay&&g.V(F.desktopOverlay,kXa);G&&(G.suppressShareButton&&(a.showShareButton=!1),G.suppressWatchLaterButton&&(a.le=!1))}n&&lXa(a,b,n);var K=cB(0,b.autoplay_count),N=a.getWatchNextResponse(),R,da=(R=N.contents)==null?void 0:R.twoColumnWatchNextResults,oa,qa,ha,ta=(oa=N.playerOverlays)==null?void 0:(qa=oa.playerOverlayRenderer)==null?void 0:(ha=qa.autoplay)==null?void 0:ha.playerOverlayAutoplayRenderer,P=kWa(a),ua,y=(ua=N.contents)==null?void 0:ua.singleColumnWatchNextResults;if(y){var Z;
if(((Z=y.autoplay)==null?0:Z.autoplay)&&!y.playlist){var cb=y.autoplay.autoplay.sets,La={},$a=new g.dS(a.U()),Ya=null,Ha;if(cb){for(var Ta=g.v(cb),ob=Ta.next();!ob.done;ob=Ta.next()){var B=ob.value.autoplayVideoRenderer;if(B&&B.compactVideoRenderer){Ya=B.compactVideoRenderer;break}}if(Ha=cb[0].autoplayVideo){var E=Ha.clickTrackingParams;E&&(La.itct=E);La.autonav="1";La.playnext=String(K)}}else La.feature="related-auto";var D=g.V(Ha,g.ES);if(Ya){$a.videoId=Ya.videoId;var J=Ya.shortBylineText;J&&($a.author=
g.RE(J));var L=Ya.title;L&&($a.title=g.RE(L))}else D!=null&&D.videoId&&($a.videoId=D.videoId);$a.GE=La;a.suggestions=[];a.Uv=$a}}if(P){for(var aa=[],fa=g.v(P),ia=fa.next();!ia.done;ia=fa.next()){var O=ia.value,ka=void 0,la=null;if(O.endScreenVideoRenderer){var za=O.endScreenVideoRenderer,Sa=za.title;la=new g.dS(a.U());la.videoId=za.videoId;la.lengthSeconds=za.lengthInSeconds||0;var gb=za.publishedTimeText;gb&&(la.publishedTimeText=g.RE(gb));var Ab=za.shortBylineText;Ab&&(la.author=g.RE(Ab));var pb=
za.shortViewCountText;pb&&(la.shortViewCount=g.RE(pb));if(Sa){la.title=g.RE(Sa);var Za=Sa.accessibility;if(Za){var qc=Za.accessibilityData;qc&&qc.label&&(la.ariaLabel=qc.label)}}var ac=za.navigationEndpoint;if(ac){ka=ac.clickTrackingParams;var bc=g.V(ac,g.ES),nc=g.V(ac,g.dF);bc?la.HE=bc:nc!=null&&(la.watchUrl=nc.url)}var Wc=za.thumbnailOverlays;if(Wc)for(var Yb=g.v(Wc),wc=Yb.next();!wc.done;wc=Yb.next()){var $c=wc.value.thumbnailOverlayTimeStatusRenderer;if($c)if($c.style==="LIVE"){la.isLivePlayback=
!0;break}else if($c.style==="UPCOMING"){la.isUpcoming=!0;break}}la.Z=ZR(za.thumbnail)}else if(O.endScreenPlaylistRenderer){var Pc=O.endScreenPlaylistRenderer,uc=Pc.navigationEndpoint;if(!uc)continue;var Tb=g.V(uc,g.ES);if(!Tb)continue;var Ub=Tb.videoId;la=new g.cS(a.U());la.playlistId=Pc.playlistId;la.playlistLength=Number(Pc.videoCount)||0;la.j=Ub||null;la.videoId=Ub;var zd=Pc.title;zd&&(la.title=g.RE(zd));var rd=Pc.shortBylineText;rd&&(la.author=g.RE(rd));ka=uc.clickTrackingParams;la.Z=ZR(Pc.thumbnail)}la&&
(ka&&(la.sessionData={itct:ka}),aa.push(la))}a.suggestions=aa}if(ta){a.hW=!!ta.preferImmediateRedirect;a.Wf=a.Wf||!!ta.webShowNewAutonavCountdown;a.fm=a.fm||!!ta.webShowBigThumbnailEndscreen;if(a.Wf||a.fm){var sd=da||null,$b=new g.dS(a.U());$b.videoId=ta.videoId;var Fc=ta.videoTitle;if(Fc){$b.title=g.RE(Fc);var Hb=Fc.accessibility;if(Hb){var cd=Hb.accessibilityData;cd&&cd.label&&($b.ariaLabel=cd.label)}}var Ad=ta.byline;Ad&&($b.author=g.RE(Ad));var Pb=ta.publishedTimeText;Pb&&($b.publishedTimeText=
g.RE(Pb));var he=ta.shortViewCountText;he&&($b.shortViewCount=g.RE(he));var Ud=ta.thumbnailOverlays;if(Ud)for(var Vd=g.v(Ud),Ce=Vd.next();!Ce.done;Ce=Vd.next()){var De=Ce.value.thumbnailOverlayTimeStatusRenderer;if(De)if(De.style==="LIVE"){$b.isLivePlayback=!0;break}else if(De.style==="UPCOMING"){$b.isUpcoming=!0;break}else if(De.style==="DEFAULT"&&De.text){$b.lengthText=g.RE(De.text);var Ld=De.text.accessibility;if(Ld){var bf=Ld.accessibilityData;bf&&bf.label&&($b.Hx=bf.label||"")}break}}$b.Z=ZR(ta.background);
var Qe=ta.nextButton;if(Qe){var Md=Qe.buttonRenderer;if(Md){var Ff=Md.navigationEndpoint;if(Ff){var Nd=g.V(Ff,g.ES);Nd&&($b.HE=Nd)}}}if(ta.topBadges){var ie=ta.topBadges[0];if(ie){var ad=g.V(ie,mXa);ad&&ad.style==="BADGE_STYLE_TYPE_PREMIUM"&&($b.sM=!0)}}var ld=ta.alternativeTitle;ld&&($b.Ct=g.RE(ld));var td={autonav:"1",playnext:String(K)};$b.playlistId&&(td.autoplay="1");if(sd){var Wd,Vf,qf,Gf,Ee=(Wd=sd.autoplay)==null?void 0:(Vf=Wd.autoplay)==null?void 0:(qf=Vf.sets)==null?void 0:(Gf=qf[0])==null?
void 0:Gf.autoplayVideo;if(Ee){var Vb=Ee.clickTrackingParams;Vb&&(td.itct=Vb);var Fe=g.V(Ee,g.ES);Fe&&($b.VW=Fe)}}else if(ta){var gh,Rh,Sh,Th=(gh=ta.nextButton)==null?void 0:(Rh=gh.buttonRenderer)==null?void 0:(Sh=Rh.navigationEndpoint)==null?void 0:Sh.clickTrackingParams;Th&&(td.itct=Th)}td.itct||(td.feature="related-auto");$b.GE=td;a.suggestions||(a.suggestions=[]);a.Uv=$b}ta.countDownSecs!=null&&(a.dZ=ta.countDownSecs*1E3);ta.countDownSecsForFullscreen!=null&&(a.ED=ta.countDownSecsForFullscreen>=
0?ta.countDownSecsForFullscreen*1E3:-1);if(a.L("web_player_autonav_next_button_renderer")){var sf;a.Dfa=(sf=ta.nextButton)==null?void 0:sf.buttonRenderer}var hf;a.Cfa=(hf=ta.cancelButton)==null?void 0:hf.buttonRenderer;a.L("web_autonav_color_transition")&&ta.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.V(ta.watchToWatchTransitionRenderer,nXa))}var He=kWa(a);if(He){var Uh,vc,yc,Jc=He==null?void 0:(Uh=He[0])==null?void 0:(vc=Uh.endScreenVideoRenderer)==null?void 0:(yc=vc.navigationEndpoint)==
null?void 0:yc.clickTrackingParams,mj=g.FS(a);Jc&&mj&&(mj.sessionData={itct:Jc})}a.Sa.currentVideoThumbnail&&(a.Z=ZR(a.Sa.currentVideoThumbnail));var tf,qg,rg,Og,nd,sg=(tf=a.Sa)==null?void 0:(qg=tf.contents)==null?void 0:(rg=qg.twoColumnWatchNextResults)==null?void 0:(Og=rg.results)==null?void 0:(nd=Og.results)==null?void 0:nd.contents;if(sg&&sg[1]){var tg,Pg,ug,Vh,uf=(tg=sg[1].videoSecondaryInfoRenderer)==null?void 0:(Pg=tg.owner)==null?void 0:(ug=Pg.videoOwnerRenderer)==null?void 0:(Vh=ug.thumbnail)==
null?void 0:Vh.thumbnails;uf&&uf.length&&(a.profilePicture=uf[uf.length-1].url)}var Te=eB(b),vg,Wh=(vg=a.getWatchNextResponse())==null?void 0:vg.onResponseReceivedEndpoints;if(Wh)for(var Xh=g.v(Wh),Ue=Xh.next();!Ue.done;Ue=Xh.next()){var jh=Ue.value;g.V(jh,GS)&&(a.IU=g.V(jh,GS));var Qg=g.V(jh,oXa),nj=void 0;if((nj=Qg)==null?0:nj.entityKeys)a.sz=Qg.entityKeys||[],Qg.visibleOnLoadKeys&&(a.visibleOnLoadKeys=Qg.visibleOnLoadKeys)}if(a.L("web_key_moments_markers")){var Qd=g.HS.getState().entities,Ve=g.UN("visibility_override",
"markersVisibilityOverrideEntity");var me=WN(Qd,"markersVisibilityOverrideEntity",Ve);a.mf=(me==null?void 0:me.videoId)===(a.videoId||Te)&&(me==null?0:me.visibilityOverrideMarkersKey)?me.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.ra(a.mf))}}};
gXa=function(a){var b;return((b=a.autoplaySwitchButtonRenderer)==null?void 0:b.enabled)!==void 0};
pXa=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
KS=function(a){var b=a.Y;a.L("html5_gapless_unlimit_format_selection")&&IS(a)&&(b=!1);var c=!!a.j&&a.j.hc,d=a.Ea,e=a.JQ(),f=JS(a),h=a.ON,l=b,m=a.isOtf();b=a.eO();var n=a.Cb,p=a.Ng,q=qXa(a),r=new mUa(d);if(d.yc()||d.L("html5_logging_format_selection"))r.B=!0;r.Xa=f;r.La=h&&d.N;r.Ng=p;g.SA("windows nt 5.1")&&!g.QQ&&(r.To=!0);if(f=e)f=g.IR(d)?sVa(d):!1;f&&(r.Da=!0);l&&(r.To=!0,r.Bc=!0);m&&!d.L("html5_otf_prefer_vp9")&&(r.To=!0);d.playerStyle==="picasaweb"&&(m&&(r.To=!1),r.Ha=!1);n&&(r.To=!0);dP(d.G,
eP.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.Oa=!0));d.L("html5_block_8k_hfr")&&(r.Ya=!0);r.K=g.oI(d.experiments,"html5_max_selectable_quality_ordinal");r.N=g.oI(d.experiments,"html5_min_selectable_quality_ordinal");lR&&(r.Ub=480);if(c||e)r.Ha=!1;r.ib=!1;r.disableAv1=q;c=oUa(d,r.j,void 0,r.disableAv1);c>0&&c<2160&&(oK()||d.L("html5_format_hybridization"))&&(r.j.supportsChangeType=+oK(),
r.tj=c);c>=2160&&(r.Ga=!0);$Pa()&&(r.j.serveVp9OverAv1IfHigherRes=0,r.Cc=!1);r.eO=b;r.Wa=g.zC||rra()&&!b?!1:!0;r.Y=d.L("html5_format_hybridization");r.Kb=d.L("html5_disable_encrypted_vp9_live_non_2k_4k");VA()&&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.Pv&&(r.ra=a.Pv),a.Ov&&(r.C=a.Ov));r.Sa=a.isLivePlayback&&a.bj()&&a.Ea.L("html5_drm_live_audio_51");
r.Cb=a.ND;return a.tf=r};
qXa=function(a){return a.Ea.L("html5_disable_av1")||a.L("html5_gapless_shorts_disable_av1")&&IS(a)?!0:!1};
sXa=function(a){KG("drm_pb_s",void 0,a.Wa);a.eb||a.j&&$O(a.j);var b={};a.j&&(b=oRa(a.nw,KS(a),a.Ea.G,a.j,function(c){return a.publish("ctmp","fmtflt",c)},!0,new Set));
b=new RQ(b,a.Ea,a.KX,a.useCobaltWidevine?VA()?rXa(a):!1:!1,function(c,d){a.oa(c,d)});
g.M(a,b);a.xp=!1;a.loading=!0;uUa(b,function(c){KG("drm_pb_f",void 0,a.Wa);for(var d=g.v(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.eb=a.eb;e.xw=a.xw;e.uw=a.uw;break;case "widevine":e.nm=a.nm}a.Ap=c;if(a.Ap.length>0&&(a.K=a.Ap[0],a.Ea.yc())){c={};d=g.v(Object.entries(a.K.j));for(e=d.next();!e.done;e=d.next()){var f=g.v(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.oa("drmProbe",c)}uS(a)})};
bXa=function(a,b){if(b.length===0||xS(a))return null;yS(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(hUa=!0);var c=a.oe;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.je,h=a.Ea,l=RTa(b);if(e||f){h=new wQ("",h.experiments,!0);h.B=!f;h.hc=!0;h.isManifestless=!0;h.isLive=!f;h.je=f;b=g.v(b);for(d=b.next();!d.done;d=b.next()){var m=d.value;d=xQ(m,c);e=kP(m);e=yQ(e.nE||m.url||"",e.FH,e.s);(l=e.get("id"))&&l.includes("%7E")&&(h.va=!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.gf=h.gf||n;h.Li=h.Li||p;var q=!bK(d.mimeType);e&&vQ(h,new nQ(e,d,{Rj:l,Ln:q,Cr:m,gf:n,Li:p,nB:300,je:f}))}c=h}else if(l==="FORMAT_STREAM_TYPE_OTF"){d=d===void 0?0:d;f=new wQ("",h.experiments,!1);f.duration=d||0;h=g.v(b);for(b=h.next();!b.done;b=h.next())b=b.value,d=xQ(b,c,f.duration),e=kP(b),(e=yQ(e.nE||b.url||"",e.FH,e.s))&&(d.streamType==="FORMAT_STREAM_TYPE_OTF"?vQ(f,new oQ(e,d,"sq/0")):
vQ(f,new tQ(e,d,ZP(b.initRange),ZP(b.indexRange))));f.isOtf=!0;c=f}else{d=d===void 0?0:d;f=new wQ("",h.experiments,!1);f.duration=d||0;h=g.v(b);for(b=h.next();!b.done;b=h.next())l=b.value,b=xQ(l,c,f.duration),d=ZP(l.initRange),e=ZP(l.indexRange),m=kP(l),(l=yQ(m.nE||l.url||"",m.FH,m.s))&&vQ(f,new tQ(l,b,d,e));c=f}f=a.isLivePlayback&&!a.je&&!a.Ya&&!a.isPremiere;a.L("html5_live_head_playable")&&(!AS(a)&&f&&a.oa("missingLiveHeadPlayable",{}),a.Ea.ra==="yt"&&(c.eb=!0));c.Xa=BS(a);return c};
xS=function(a){return VA()?!rXa(a):WA()?!(!a.eb||!a.L("html5_enable_safari_fairplay")):!1};
rXa=function(a){return a.L("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
g.YWa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.cueRangeSetIdentifier){var d=void 0;a.mD.set(c.cueRangeSetIdentifier,(d=c.playerCueRanges)!=null?d:[])}};
CS=function(a){return!(!a.j||!a.j.isManifestless)};
LS=function(a){return a.isLowLatencyLiveStream&&a.j!=void 0&&BQ(a.j)>=5};
$Wa=function(a){return VA()&&rXa(a)?!1:xS(a)&&g.xI(a.Ea)&&!a.isLivePlayback||!XQ()||a.MD?!0:!1};
uXa=function(a){a.loading=!0;a.zj=!1;if(aXa(a))g.xWa(a.videoId).then(function(c){tXa(a,c)}).then(function(){uS(a)});
else{QI(a.Zc)||g.nE(new g.FB("DASH MPD Origin invalid: ",a.Zc));var b=a.Zc;b=g.to(b,{mpd_version:g.oI(a.Ea.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&a.latencyClass!="NORMAL"||(b=g.to(b,{pacing:0}));ZTa(b,a.Ea.experiments,a.isLivePlayback).then(function(c){a.Na()||(cXa(a,c,!0),KG("mrc",void 0,a.Wa),uS(a))},function(c){a.Na()||(a.loading=!1,a.publish("dataloaderror",new GJ("manifest.net.retryexhausted",{backend:"manifest",
rc:c.status},1)))});
KG("mrs",void 0,a.Wa)}};
tXa=function(a,b){var c=b.map(function(m){return m.itag}),d;
if((d=a.playerResponse)!=null&&d.streamingData){d=[];for(var e=g.v(a.playerResponse.streamingData.adaptiveFormats),f=e.next(),h={};!f.done;h={Zi:void 0},f=e.next())if(h.Zi=f.value,a.L("html5_fix_multi_audio_offline_playback")){f=g.v(b);for(var l=f.next();!l.done;l=f.next())l=l.value,l.itag===h.Zi.itag&&l.xtags===h.Zi.xtags&&(h.Zi=Object.assign({},h.Zi),h.Zi.url=b.find(function(m){return function(n){return n.itag===m.Zi.itag}}(h)).url,h.Zi.signatureCipher="",d.push(h.Zi))}else c.includes(h.Zi.itag)&&
(h.Zi=Object.assign({},h.Zi),h.Zi.url=b.find(function(m){return function(n){return n.itag===m.Zi.itag}}(h)).url,h.Zi.signatureCipher="",d.push(h.Zi));
b=bXa(a,d);JS(a)&&a.L("music_web_woffle")&&dUa(b,!1);cXa(a,b);a.oa("dlr",{})}else a.oa("offsdm",{cotn:a.eI?a.eI.cotn:"0",cpn:a.clientPlaybackNonce})};
MS=function(a){if(!a.isProximaLatencyEligible)return!1;var b=RPa();return b!=null?b===1:a.L("html5_enable_proxima")};
uS=function(a){a.Na()||(a.loading=!1,a.publish("dataloaded"))};
cXa=function(a,b,c){c=c===void 0?!1:c;a.j=b;g.M(a,b);b.gf=a.gf;b.Li=a.Li;b.ib=a.ib;b.Ub=a.Ub;b.Sc=a.Sc;a.Yl&&(b.ra=new UP(a.Yl));(a.JQ()||g.NS(a))&&a.La.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");d.indexOf("manifest_duration")!=-1&&(a.Vl=Number(d[d.indexOf("manifest_duration")+1]));b.B&&(b.subscribe("clienttemp",a.oa,a),c?b.subscribe("refresh",a.V_,a):b.subscribe("cuepointsadded",a.mX,a));$O(b)?a.xp=!0:SQ=void 0;a.Ya&&(b.C=a.Ya,b.isLive=!0,a.isLivePlayback=!0);b.isPremiere=
a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable};
wXa=function(a,b){var c=b||$Wa(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.oa("skipDash",{dm:!!a.j,air:b,dd:a.MD,mss:XQ(),"3pp":a.isExternallyHostedPodcast}),MA();JS(a)&&dUa(a.j,a.isLivePlayback);yS(a,"html5_enable_cobalt_experimental_vp9_decoder")&&LUa(a.Ea.G);return NA().then(function(){return qRa(a.nw,KS(a),a.Ea.G,a.j,a.K,function(d){return a.publish("ctmp","fmtflt",d)},a.fI,BS(a)&&a.L("html5_enable_server_format_filter")).then(function(d){vXa(a,d);
a.nw.j=null;/^av/.test(a.clientPlaybackNonce)&&a.tf&&a.oa("av1",a.tf.j)})})};
xXa=function(a,b){if(b&&a.hlsvp)return MA();if(a.hlsFormats){b=zS(a.hlsFormats);var c;if(((c=a.tf)==null?0:c.B)&&b){c=[];for(var d=g.v(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.oa("hlsfmt",{itags:c.join(".")})}a.qz=IVa(a.Ea,b);c=a.clientPlaybackNonce;var f,h,l,m;return NVa(a.Ea,a.isAd(),b,(m=(f=a.playerResponse)==null?void 0:(h=f.captions)==null?void 0:(l=h.playerCaptionsRenderer)==null?void 0:l.baseUrl)!=null?m:null,a.Ud,c,function(n){return a.publish("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],r=g.v(n),t=r.next();!t.done;t=r.next()){t=t.value;
var u=void 0;q.push((u=t.getInfo())==null?void 0:u.itag);var w=u=void 0;((u=t.getInfo())==null?void 0:(w=u.audio)==null?void 0:w.numChannels)>p&&(p=t.getInfo().audio.numChannels)}p>2&&a.oa("hlschl",{mn:p});var A;((A=a.tf)==null?0:A.B)&&a.oa("hlsfmtaf",{itags:q.join(".")});var C;if(a.L("html5_enable_vp9_fairplay")&&((C=a.K)==null?0:OQ(C)))for(a.oa("drm",{sbdlfbk:1}),p=g.v(a.Ap),q=p.next();!q.done;q=p.next())if(q=q.value,NQ(q)){a.K=q;break}OS(a,n)})}return MA()};
yXa=function(a){if(a.isExternallyHostedPodcast&&a.Xf){var b=zS(a.Xf);if(!b[0])return MA();a.A4=b[0];return QVa(a.Ea,b[0]).then(function(c){OS(a,c)})}return a.mm&&a.GU?PVa(a.Ea,a.isAd(),a.mm).then(function(c){OS(a,c)}):MA()};
AXa=function(a){if(a.isExternallyHostedPodcast)return MA();var b=zS(a.Xf,a.SD);if(a.hlsvp){var c=IWa(a.hlsvp,a.clientPlaybackNonce,a.Ud);b.push(c)}return OVa(a.Ea,a.isAd(),b,zXa(a)).then(function(d){OS(a,d)})};
vXa=function(a,b){a.C=b;if(a.C){b=g.v(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;d!==0&&(a.KD[d]=c.id)}}BXa(a);if(a.K&&a.C&&a.C.videoInfos&&!(a.C.videoInfos.length<=0)&&(b=ZJ(a.C.videoInfos[0]),b!=(a.K.flavor=="fairplay")))for(c=g.v(a.Ap),d=c.next();!d.done;d=c.next())if(d=d.value,b==(d.flavor=="fairplay")){a.K=d;break}};
OS=function(a,b){a.Fd=b;vXa(a,new WO(g.$r(a.Fd,function(c){return c.getInfo()})))};
zXa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Ea.j.c,cver:a.Ea.j.cver};a.vz&&(b.ptk=a.vz,b.oid=a.aW,b.ptchn=a.YV,b.pltype=a.bW,a.pw&&(b.m=a.pw));return b};
g.PS=function(a){return xS(a)&&a.eb?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.oe||null};
DXa=function(a){var b=CXa(a);return b&&b.text?g.RE(b.text):a.paidContentOverlayText};
EXa=function(a){var b=CXa(a);return b&&b.durationMs?ef(b.durationMs):a.paidContentOverlayDurationMs};
CXa=function(a){var b,c,d;return a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.V((b=a.Sa)==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.playerDisclosure,FXa)||null};
QS=function(a){var b="";if(a.VG)return a.VG;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.Ya?"window":"live");a.je&&(b="post");return b};
g.RS=function(a,b){return typeof a.keywords[b]!=="string"?null:a.keywords[b]};
GXa=function(a){return!!a.Cj||!!a.ZC||!!a.Fz||!!a.gA||a.Z2||a.N.focEnabled||a.N.rmktEnabled};
g.SS=function(a){return!!(a.Zc||a.Xf||a.mm||a.hlsvp||a.lx())};
tS=function(a){if(a.L("html5_onesie")&&a.errorCode)return!1;var b=g.Eb(a.La,"ypc");a.ypcPreview&&(b=!1);return a.xe()&&!a.loading&&(g.SS(a)||g.Eb(a.La,"heartbeat")||b)};
zS=function(a,b){a=Aqa(a);var c={};if(b){b=g.v(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.v(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};
BXa=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.Wk);for(var c=0;c<a.GD.length;c++)for(var d=a.GD[c],e=0;e<b.length;e++){var f=b[e],h=f.Yb.id==d.audioTrackId;if(f.Yb.isDefault&&c==a.UZ||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];d.defaultCaptionTrackIndex!==void 0&&(f.C=a.captionTracks[d.defaultCaptionTrackIndex]);d.forcedCaptionTrackIndex!==void 0&&(f.j=a.captionTracks[d.forcedCaptionTrackIndex]);
f.B=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}};
hXa=function(a,b){a.showShareButton=!!b;var c,d,e=((c=g.V(b,g.cM))==null?void 0:c.navigationEndpoint)||((d=g.V(b,g.cM))==null?void 0:d.command);e&&(a.Yp=!!g.V(e,HXa))};
KWa=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.Gi=c);if(a.Gi){a.embeddedPlayerConfig=a.Gi.embeddedPlayerConfig||null;if(c=a.Gi.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.Gi.embedPreview){c=c.thumbnailPreviewRenderer;iWa(a,c.controlBgHtml);if(d=c.defaultThumbnail)a.Z=
ZR(d);a.L("embeds_web_enable_search_button")&&c.searchButton&&(d=g.V(c.searchButton,g.cM))&&(a.t4=g.V(d.navigationEndpoint,g.TS));(d=g.V(c==null?void 0:c.videoDetails,IXa))&&lXa(a,b,d);d=g.V(c==null?void 0:c.videoDetails,JXa);a.le=!!c.addToWatchLaterButton;hXa(a,c.shareButton);if(d==null?0:d.musicVideoType)a.musicVideoType=d.musicVideoType;var e,f,h,l,m;if(d=g.V((e=a.getEmbeddedPlayerResponse())==null?void 0:(f=e.embedPreview)==null?void 0:(h=f.thumbnailPreviewRenderer)==null?void 0:(l=h.playButton)==
null?void 0:(m=l.buttonRenderer)==null?void 0:m.navigationEndpoint,g.ES))UVa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=ef(c.videoDurationSeconds));c.webPlayerActionsPorting&&hWa(a,c.webPlayerActionsPorting);if(e=g.V(c==null?void 0:c.playlist,KXa)){a.Dn=!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.RE(c.shortBylineText):"";var n=c.title?g.RE(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.Jf:!1,dni_color:l===h?a.Rp:""})}b={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:f};e.titleText&&(b.title=g.RE(e.titleText));e.shortBylineText&&(b.author=g.RE(e.shortBylineText));a.H_=b}var p,q,r;if(b=g.V((p=a.getEmbeddedPlayerResponse())==null?void 0:(q=p.embedPreview)==null?void 0:(r=q.thumbnailPreviewRenderer)==
null?void 0:r.infoPanel,jXa)){a.VD=Number(b==null?void 0:b.durationMs)||NaN;if(b==null?0:b.infoPanelOverviewViewModel)a.Sf=b==null?void 0:b.infoPanelOverviewViewModel;if(b==null?0:b.infoPanelDetailsViewModel)a.Yk=b==null?void 0:b.infoPanelDetailsViewModel}}if(a.Gi.previewPlayabilityStatus){if(a.wz=a.Gi.previewPlayabilityStatus,p=a.wz,!["OK","LIVE_STREAM_OFFLINE"].includes(p.status)){a.errorCode=SVa(p.errorCode);q=p.errorScreen;if(r=q==null?void 0:q.playerErrorMessageRenderer){a.PD=r;if(b=r.reason)a.errorReason=
g.RE(b);if(r=r.subreason)a.Rn=g.RE(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;(q==null?0:(t=q.playerKavRenderer)==null?0:t.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=p.isBlockedInRestrictedMode?"5":"0"}}}else a.Gi.playabilityStatus&&(a.Gn=a.Gi.playabilityStatus,LXa(a)&&(a.errorDetail="0",a.Gn&&((t=a.Gn.embeddedPlayerErrorMessageRenderer)?
a.PD=g.V(t,MXa):a.errorReason=a.Gn.reason||null)));(t=a.Gi.attestation)&&cWa(a,t);(t=a.Gi.permissions)&&t.allowImaMonetization&&(a.allowImaMonetization=!0)}};
lXa=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.V((e=g.V(c==null?void 0:c.channelThumbnailEndpoint,NXa))==null?void 0:e.urlEndpoint,g.dF))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.V(e,OXa)){if(d=e.title)b.title=g.RE(d);if(e=e.subtitle)b.subtitle=g.RE(e)}if(c=c.expandedRenderer)if(c=g.V(c,PXa)){if(e=c.title)b.expanded_title=g.RE(e);if(e=c.subtitle)b.expanded_subtitle=g.RE(e);if(c=c.subscribeButton)a.subscribeButtonRenderer=
g.V(c,g.US),a.subscribeButtonRenderer&&(b.ucid=a.subscribeButtonRenderer.channelId,b.subscribed=a.subscribeButtonRenderer.subscribed,a.gm=!!a.subscribeButtonRenderer.notificationPreferenceToggleButton,a.subscribeButtonRenderer.notificationPreferenceToggleButton&&a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.KN=b.toggledServiceEndpoint||null,a.IN=b.defaultServiceEndpoint||
null):(a.KN=b.defaultServiceEndpoint||null,a.IN=b.toggledServiceEndpoint||null)))}};
g.VS=function(a){return AS(a)&&!a.allowLiveDvr};
WS=function(a){return AS(a)&&a.allowLiveDvr};
AS=function(a){return a.L("html5_live_head_playable")&&CS(a)&&a.Ea.ra==="yt"?a.isLiveHeadPlayable:a.isLivePlayback};
g.XS=function(a){return!!a.j&&ETa(a.j)};
g.YS=function(a){return!!a.j&&FTa(a.j)};
g.ZS=function(a){return!!a.j&&GTa(a.j)};
g.NS=function(a){return!!a.j&&HTa(a.j)};
g.QXa=function(a){if(a.HD)return null;var b=a.HU;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.RXa=function(a){return a.HD?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.$S=function(a){return a.L("enable_wn_infocards")};
g.aT=function(a){var b,c,d,e;return(g.$S(a)?(b=a.Sa)==null?void 0:(c=b.cards)==null?void 0:c.cardCollectionRenderer:(d=a.playerResponse)==null?void 0:(e=d.cards)==null?void 0:e.cardCollectionRenderer)||null};
g.SXa=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.v(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};
bT=function(a){return a.adFormat&&a.adFormat!="1_5"?"adunit":a.eventLabel||a.Ea.La};
g.cT=function(a){return bT(a)==="shortspage"};
IS=function(a){return a.xk()&&a.U().supportsGaplessShorts()};
dT=function(a){if(a.isAd()&&a.videoId!=a.Ea.Be)return a.Ea.Be};
eT=function(a){return a.Kk||bT(a)=="detailpage"||bT(a)=="shortspage"||a.mutedAutoplay};
TXa=function(a){var b=(b=a.L("enable_cleanup_masthead_autoplay_hack_fix"))&&bT(a)=="adunit"?a.Kq:eT(a)?bT(a)=="detailpage"||bT(a)=="shortspage"?a.isAutonav||a.Cc>0:b||a.adFormat!=="17_8"||a.isAutonav||g.GR(a.Ea)||a.Kq?a.Ci?!1:a.Ea.Ci||a.Ea.Di||!g.nR(a.Ea)?!b&&bT(a)=="adunit"&&a.Cj?!1:!0:!1:!1:(a.Ci?0:a.Wi)&&g.nR(a.Ea)?!0:!1;a.L("html5_log_detailpage_autoplay")&&bT(a)=="detailpage"&&a.oa("autoplay_info",{autoplay:a.Kk,autonav:a.isAutonav,result:b});return b};
g.fT=function(a){return a.oauthToken||a.Ea.Cj};
UXa=function(a){var b=1,c=g.oI(a.Ea.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=((d=a.D)==null?void 0:d.audio.B)||a.X1){var e;d=c-((e=a.loudnessTargetLkfs)!=null?e:0)}else d=a.Uf;else{var f;d=((f=a.D)==null?void 0:f.audio.C)||a.Uf}if(a.L("html5_stateful_audio_normalization")){if(!isFinite(c))return b;c=Math.max(c,a.minimumLoudnessTargetLkfs);a.applyStatefulNormalization?(Date.now()-a.Ea.Xk>a.maxStatefulTimeThresholdSec*
1E3&&(a.Ea.Wk=Infinity,a.Ea.Xk=Infinity),e=Math.min(a.loudnessTargetLkfs,a.Ea.Wk)):e=Math.min(a.loudnessTargetLkfs,c);e=Math.min(e-c,0);a.preserveStatefulLoudnessTarget&&(a.Ea.Wk=c+e,a=a.Ea,c=Date.now(),a.Xk=c);return Math.min(1,Math.pow(10,e/20))||b}return Math.min(1,Math.pow(10,-d/20))||b};
JS=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c=g.UQ(a.Ea)==="TVHTML5_SIMPLY"&&a.Ea.j.ctheme==="MUSIC";a.Jj||!g.QF(a.Ea)&&!c||!b.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.Jj=!0);if(b=g.UA())b=/Starboard\/([0-9]+)/.exec(g.oc()),b=(b?parseInt(b[1],10):NaN)<10;c=a.Ea;c=(g.UQ(c)==="TVHTML5_CAST"||g.UQ(c)==="TVHTML5"&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&a.Ea.j.ctheme==="MUSIC";var d;if(d=!a.Jj)c||(c=a.Ea,c=
g.UQ(c)==="TVHTML5"&&c.j.cver.startsWith("7")),d=c;d&&!b&&(b=a.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",c=(a.L("cast_prefer_audio_only_for_atv_and_uploads")||a.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&a.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",b||c||a.isExternallyHostedPodcast)&&(a.Jj=!0);return a.Ea.deviceIsAudioOnly||a.Jj&&a.Ea.N};
VXa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
gT=function(a){return!(!a.Fn||!a.Ea.N)&&a.lx()};
WXa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
XXa=function(a){return a.L("html5_enable_sabr_from_watch_server")&&a.MN&&!a.Yl};
BS=function(a){if(a.F2||a.cotn||!a.j||a.j.isOtf||a.zU&&!a.L("html5_enable_sabr_csdai"))return!1;if(a.L("html5_use_sabr_requests_for_debugging"))return!0;if(a.L("html5_enable_sabr_from_watch_server"))return a.MN&&!!a.Yl;var b=!a.j.hc&&!a.bj(),c=b&&VQ&&a.L("html5_enable_sabr_vod_streaming_xhr");b=b&&!VQ&&a.L("html5_enable_sabr_vod_non_streaming_xhr");var d=YXa(a),e=a.L("html5_enable_sabr_drm_vod_streaming_xhr")&&a.bj()&&!a.j.hc&&VQ&&(a.Xk==="1"?!1:!0);(c=c||b||d||e)&&!a.Yl&&a.oa("sabr",{loc:"m"},!0);
return c&&!!a.Yl};
YXa=function(a){var b;if(!(b=a.hc()&&a.bj()&&VQ&&(a.Xk==="1"?!1:!0)&&a.L("html5_sabr_live_drm_streaming_xhr"))){b=a.hc()&&!a.bj()&&VQ;var c=a.hc()&&a.latencyClass!=="ULTRALOW"&&!a.isLowLatencyLiveStream&&a.L("html5_sabr_live_normal_latency_streaming_xhr"),d=a.isLowLatencyLiveStream&&a.L("html5_sabr_live_low_latency_streaming_xhr"),e=a.latencyClass==="ULTRALOW"&&a.L("html5_sabr_live_ultra_low_latency_streaming_xhr");b=b&&(c||d||e)}c=b;b=a.enableServerStitchedDai&&c&&a.L("html5_enable_sabr_ssdai_streaming_xhr");
c=!a.enableServerStitchedDai&&c;a=a.hc()&&!VQ&&a.L("html5_enable_sabr_live_non_streaming_xhr");return b||c||a};
g.DS=function(a){return a.G1&&BS(a)};
aXa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&g.gS(b)===1;return b&&!a.Fn};
g.hT=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j,c=!!b[a.B.id]&&iP(b[a.B.id].resource.j);b=!!b[a.D.id]&&iP(b[a.D.id].resource.j);return(a.B.itag==="0"||c)&&b};
ZXa=function(a){return a.wz?["OK","LIVE_STREAM_OFFLINE"].includes(a.wz.status):!0};
LXa=function(a){return(a=a.Gn)&&a.showError?a.showError:!1};
yS=function(a,b){return a.L(b)?!0:(a.fflags||"").includes(b+"=true")};
TWa=function(a){return a.L("html5_heartbeat_iff_heartbeat_params_filled")};
$Xa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
RWa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.gA=new oWa(b));if(b=b.video_masthead_ad_quartile_urls)a.ZC=b.quartile_0_url,a.jW=b.quartile_25_url,a.kW=b.quartile_50_url,a.lW=b.quartile_75_url,a.iW=b.quartile_100_url,a.Fz=b.quartile_0_urls,a.eD=b.quartile_25_urls,a.gD=b.quartile_50_urls,a.iD=b.quartile_75_urls,a.bD=b.quartile_100_urls};
QWa=function(a){var b={};a=g.v(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");d.length==2?b[d[0]]=d[1]:b[c]=!0}return b};
NWa=function(a){if(a){if(VCa(a))return a;a=WCa(a);if(VCa(a,!0))return a}return""};
g.aYa=function(a){return a.captionsLanguagePreference||a.Ea.captionsLanguagePreference||g.RS(a,"yt:cc_default_lang")||a.Ea.wj};
iT=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
g.FS=function(a){var b;return a.Uv||((b=a.suggestions)==null?void 0:b[0])||null};
bYa=function(a){var b={isSabr:BS(a)},c;if(a=(c=a.getHeartbeatResponse())==null?void 0:c.adBreakHeartbeatParams)b.adBreakHeartbeatParams=a;return b};
g.jT=function(a){return a.Jf&&a.Ea.zp};
g.kT=function(a){var b,c;return!!((b=a.embeddedPlayerConfig)==null?0:(c=b.embeddedPlayerFlags)==null?0:c.enableMusicUx)};
g.lT=function(a){var b=a.U(),c=g.cYa(b),d=a.va;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=bT(a);f==="leanback"?e="WATCH":b.L("gvi_channel_client_screen")&&f==="profilepage"?e="CHANNEL":a.Cb?e="LIVE_MONITOR":f==="detailpage"?e="WATCH_FULL_SCREEN":f==="adunit"?e="ADUNIT":f==="sponsorshipsoffer"&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.yp)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:dYa[e]}});if(b=a.zB)d.unpluggedAppInfo=
{enableFilterMode:!0};(e=a.unpluggedFilterModeType)&&!b&&(d.unpluggedAppInfo={filterModeType:eYa[e]});if(b=a.ra)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.Ed&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=fYa[b];c.request=d;d=c.user||{};if(b=a.Da)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.Kb)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.cYa=function(a){var b=g.$F(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.v(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.Sc)b.thirdParty={embedUrl:a};return b};
lYa=function(a,b,c){var d=a.videoId,e=g.lT(a),f=a.U(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(CD()),referer:document.location.toString(),signatureTimestamp:19912};g.CB();a.isAutonav&&(h.autonav=!0);g.DB(0,141)&&(h.autonavState=g.DB(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.DB(0,66);TXa(a)&&(h.autoplay=!0);f.N&&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.v(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");q.length!==3||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.v(q);for(var r=q.next();!r.done;r=q.next()){var t=g.v(r.value.split("="));r=t.next().value;t=eaa(t);p[r]=t.join("=")}q=p.url;r=p.presetad;t=p.viralresponseurl;var u=Number(p.campaignid);if(p.adtype==="in_display_ad")q&&(m.url=q),r&&(m.presetAd=r),t&&(m.viralAdResponseUrl=t),u&&(m.viralCampaignId=
String(u));else if(p.adtype==="video_ad"){var w={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=gYa[p.breaktype])w.breakType=p;q&&(w.url=q);r&&(w.presetAd=r);t&&(w.viralAdResponseUrl=t);u&&(w.viralCampaignId=String(u));n.push(w)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.SH;if(m!=null){m={startWalltime:String(m)};if(n=a.Vl)m.manifestDuration=String(n||14400);
h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.Ci?0:a.Wi)h.splay=!0;m=a.vnd;m===5&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.Kw)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Nj){n=a.kD;l=[];p=g.v(eRa(p));for(q=p.next();!q.done;q=p.next()){q=q.value;r=q.platform;q={applicationState:q.kZ?"INACTIVE":"ACTIVE",clientFormFactor:hYa[r]||"UNKNOWN_FORM_FACTOR",clientName:gRa[q.n2]||"UNKNOWN_INTERFACE",clientVersion:q.deviceVersion||"",platform:iYa[r]||"UNKNOWN_PLATFORM"};
r={};if(n){t=void 0;try{t=JSON.parse(n)}catch(A){g.nE(A)}t&&(r={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(r.advertisingId=t.advertising_id),t.limit_ad_tracking!==void 0&&t.limit_ad_tracking!==null&&(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;m>0&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);c!==0&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.nR(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);jYa&&a.startSeconds>0&&(d.startTimeSecs=a.startSeconds);e=a.U();if(h=e.embedConfig)d.serializedThirdPartyEmbedConfig=h;d.captionParams={};h=g.DB(g.CB(),65);a.deviceCaptionsOn!=null?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.ER(e)&&
(d.captionParams.deviceCaptionsOn=h!=null?!h:!1);a.w_&&(d.captionParams.deviceCaptionsLangPref=a.w_);a.NN.length?d.captionParams.viewerSelectedCaptionLangs=a.NN:g.ER(e)&&(h=g.aQa(),h==null?0:h.length)&&(d.captionParams.viewerSelectedCaptionLangs=h);h=a.fetchType==="onesie"&&a.L("html5_onesie_attach_po_token");f=a.fetchType!=="onesie"&&a.L("html5_non_onesie_attach_po_token");if(h||f)h=a.U(),h.Xf&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=h.Xf);e.L("fetch_att_independently")&&
(d.attestationRequest={omitBotguardData:!0});e.L("html5_enable_sabr_from_watch_server")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities=kYa());e.L("html5_report_supports_vp9_encoding")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities=kYa(a));return d};
kYa=function(a){if(a==null)var b=void 0;else{b=KS(a);a=a.U().G;var c=NR("243");b=c?ZO(b,c,a,!0)===!0:!1}return{supportsVp9Encoding:b,supportXhr:VQ}};
nYa=function(a,b){var c,d,e;return g.H(function(f){if(f.j==1)return c={context:g.cYa(a.U()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.cG(mYa),g.z(f,g.VG(b,c,d),2);e=f.B;return f.return(e)})};
oYa=function(a,b,c){HPa(g.oI(b.experiments,"bg_vm_reinit_threshold"))&&nYa(a,c).then(function(d){d&&(d=d.botguardData)&&g.PPa(d,b)},function(d){a.Na()||(d=IJ(d),a.oa("attf",d.details))})};
mT=function(a,b){g.I.call(this);this.app=a;this.state=b};
oT=function(a,b,c){a.state.B.hasOwnProperty(b)||nT(a,b,c);a.state.Y[b]=function(){return c.apply(a,g.Ja.apply(0,arguments))};
a.state.Z.add(b)};
pT=function(a,b,c){a.state.B.hasOwnProperty(b)||nT(a,b,c);a.app.U().N&&(a.state.ra[b]=function(){return c.apply(a,g.Ja.apply(0,arguments))},a.state.Z.add(b))};
nT=function(a,b,c){a.state.B[b]=function(){return c.apply(a,g.Ja.apply(0,arguments))}};
g.qT=function(a,b,c){return a.state.B[b].apply(a.state.B,g.ra(c))};
rT=function(){g.aw.call(this);this.G=new Map};
pYa=function(){g.I.apply(this,arguments);this.element=null;this.Z=new Set;this.Y={};this.ra={};this.B={};this.K={};this.G=void 0;this.va=new Set;this.C=new rT;this.j=new rT;this.D=new rT;this.N=new rT};
qYa=function(a,b,c){typeof a==="string"&&(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 sT(a)};
sT=function(a,b,c){if(typeof a==="string")return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.v(rYa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
sYa=function(a,b,c,d){if(g.db(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};typeof a==="string"&&a.length===16?b.list="PL"+a:b.playlist=a;return b};
tYa=function(a,b){mT.call(this,a,b)};
vYa=function(a){oT(a,"cueVideoById",a.d8);oT(a,"loadVideoById",a.E$);oT(a,"cueVideoByUrl",a.g8);oT(a,"loadVideoByUrl",a.H$);oT(a,"playVideo",a.eda);oT(a,"pauseVideo",a.pauseVideo);oT(a,"stopVideo",a.Fea);oT(a,"clearVideo",a.clearVideo);oT(a,"getVideoBytesLoaded",a.q9);oT(a,"getVideoBytesTotal",a.r9);oT(a,"getVideoLoadedFraction",a.EY);oT(a,"getVideoStartBytes",a.u9);oT(a,"cuePlaylist",a.cuePlaylist);oT(a,"loadPlaylist",a.D$);oT(a,"nextVideo",a.jaa);oT(a,"previousVideo",a.qda);oT(a,"playVideoAt",a.dda);
oT(a,"setShuffle",a.setShuffle);oT(a,"setLoop",a.setLoop);oT(a,"getPlaylist",a.n9);oT(a,"getPlaylistIndex",a.getPlaylistIndex);oT(a,"getPlaylistId",a.getPlaylistId);oT(a,"loadModule",a.WZ);oT(a,"unloadModule",a.f3);oT(a,"setOption",a.sT);oT(a,"getOption",a.h9);oT(a,"getOptions",a.QP);oT(a,"mute",a.iaa);oT(a,"unMute",a.efa);oT(a,"isMuted",a.isMuted);oT(a,"setVolume",a.tea);oT(a,"getVolume",a.getVolume);oT(a,"seekTo",a.bea);oT(a,"getPlayerMode",a.getPlayerMode);oT(a,"getPlayerState",a.l9);oT(a,"getAvailablePlaybackRates",
a.getAvailablePlaybackRates);oT(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
oT(a,"setPlaybackQuality",a.mea);oT(a,"getAvailableQualityLevels",a.V8);oT(a,"getCurrentTime",a.Z8);oT(a,"getDuration",a.d9);oT(a,"addEventListener",a.x7);oT(a,"removeEventListener",a.Cda);oT(a,"getDebugText",a.b9);oT(a,"getVideoData",function(){return uYa(a)});
oT(a,"addCueRange",a.t7);oT(a,"removeCueRange",a.removeCueRange);oT(a,"setSize",a.setSize);oT(a,"getApiInterface",a.getApiInterface);oT(a,"destroy",a.destroy);oT(a,"mutedAutoplay",a.mutedAutoplay);var b=a.app.U();b.K||(oT(a,"getVideoEmbedCode",a.getVideoEmbedCode),oT(a,"getVideoUrl",a.w9));oT(a,"getMediaReferenceTime",a.g9);oT(a,"getSize",a.getSize);oT(a,"setFauxFullscreen",a.iea);b.K||oT(a,"logImaAdEvent",a.logImaAdEvent);oT(a,"preloadVideoById",a.mda)};
wYa=function(a){var b=g.wR(a.app.U()),c,d=(c=a.app.getVideoData())==null?void 0:c.Dn;a=g.tT(a.app);return g.fB(b)&&!d||a?!1:!0};
uYa=function(a,b){var c={};if(b=g.uT(a.app,b===void 0?1:b)){b=b.getVideoData();if(b.isPrivate)return{};c.video_id=b.videoId;c.author=b.author;c.title=b.title;c.isPlayable=ZXa(b);c.errorCode=b.errorCode;if(b.B&&b.B.video){c.video_quality=b.B.video.quality;b=b.B.video;var d=[];b.fps>32&&d.push("hfr");b.isHdr()&&d.push("hdr");b.primaries==="bt2020"&&d.push("wcg");c.video_quality_features=d}}if(a=a.getPlaylistId())c.list=a;return c};
xYa=function(a,b){mT.call(this,a,b)};
CYa=function(a,b){var c={};if(a.app.U().va){a=g.v(yYa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);if(b=c.qoe_cat)a="",typeof b==="string"&&b.length>0&&(a=b.split(",").filter(function(e){return zYa.includes(e)}).join(",")),c.qoe_cat=a;
AYa(c)}else for(a=g.v(BYa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
AYa=function(a){var b=a.raw_player_response;if(!b){var c=a.player_response;c&&(b=JSON.parse(c))}delete a.player_response;delete a.raw_player_response;b&&(a.raw_player_response={streamingData:b.streamingData})};
g.vT=function(a){return(a=DYa(a.app.Bb()))?a.Hi():null};
EYa=function(a,b,c){var d=a.app.qf(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
GYa=function(a){var b=b===void 0?5:b;return a?FYa[a]||b:b};
g.wT=function(a,b,c){mT.call(this,a,b);c&&(HYa(this),pT(this,"addEventListener",this.y7),pT(this,"removeEventListener",this.Dda),pT(this,"cueVideoByPlayerVars",this.f8),pT(this,"loadVideoByPlayerVars",this.G$),pT(this,"preloadVideoByPlayerVars",this.oda),pT(this,"loadVideoById",this.YZ),pT(this,"loadVideoByUrl",this.ZZ),pT(this,"playVideo",this.yS),pT(this,"loadPlaylist",this.loadPlaylist),pT(this,"nextVideo",this.nextVideo),pT(this,"previousVideo",this.previousVideo),pT(this,"playVideoAt",this.playVideoAt),
pT(this,"getVideoData",this.DY),pT(this,"seekBy",this.Zda),pT(this,"seekTo",this.cea),pT(this,"showControls",this.showControls),pT(this,"hideControls",this.hideControls),pT(this,"cancelPlayback",this.cancelPlayback),pT(this,"getProgressState",this.getProgressState),pT(this,"isInline",this.isInline),pT(this,"setInline",this.setInline),pT(this,"setLoopVideo",this.setLoopVideo),pT(this,"getLoopVideo",this.getLoopVideo),pT(this,"getVideoContentRect",this.getVideoContentRect),pT(this,"getVideoStats",this.v9),
pT(this,"getCurrentTime",this.a9),pT(this,"getDuration",this.hY),pT(this,"getPlayerState",this.m9),pT(this,"getVideoLoadedFraction",this.t9),pT(this,"mute",this.ZK),pT(this,"unMute",this.JM),pT(this,"setVolume",this.nM),pT(this,"loadModule",this.loadModule),pT(this,"unloadModule",this.unloadModule),pT(this,"getOption",this.uY),pT(this,"getOptions",this.getOptions),pT(this,"setOption",this.setOption),pT(this,"addCueRange",this.addCueRange),pT(this,"getDebugText",this.getDebugText),pT(this,"getStoryboardFormat",
this.getStoryboardFormat),pT(this,"toggleFullscreen",this.toggleFullscreen),pT(this,"isFullscreen",this.isFullscreen),pT(this,"getPlayerSize",this.getPlayerSize),pT(this,"toggleSubtitles",this.toggleSubtitles),pT(this,"setCenterCrop",this.setCenterCrop),pT(this,"setFauxFullscreen",this.setFauxFullscreen),pT(this,"setSizeStyle",this.setSizeStyle),pT(this,"handleGlobalKeyDown",this.handleGlobalKeyDown),pT(this,"handleGlobalKeyUp",this.handleGlobalKeyUp),pT(this,"wakeUpControls",this.wakeUpControls),
vYa(this))};
HYa=function(a){nT(a,"getInternalApiInterface",a.getInternalApiInterface);nT(a,"addEventListener",a.w7);nT(a,"removeEventListener",a.Bda);nT(a,"cueVideoByPlayerVars",a.e8);nT(a,"loadVideoByPlayerVars",a.F$);nT(a,"preloadVideoByPlayerVars",a.nda);nT(a,"getAdState",a.getAdState);nT(a,"sendAbandonmentPing",a.sendAbandonmentPing);nT(a,"setLoopRange",a.setLoopRange);nT(a,"getLoopRange",a.getLoopRange);nT(a,"setAutonavState",a.setAutonavState);nT(a,"seekTo",a.aea);nT(a,"seekBy",a.Yda);nT(a,"seekToLiveHead",
a.seekToLiveHead);nT(a,"requestSeekToWallTimeSeconds",a.requestSeekToWallTimeSeconds);nT(a,"seekToStreamTime",a.seekToStreamTime);nT(a,"startSeekCsiAction",a.startSeekCsiAction);nT(a,"getStreamTimeOffset",a.getStreamTimeOffset);nT(a,"getVideoData",a.s9);nT(a,"setInlinePreview",a.setInlinePreview);nT(a,"getAppState",a.getAppState);nT(a,"updateLastActiveTime",a.updateLastActiveTime);nT(a,"setBlackout",a.setBlackout);nT(a,"setUserEngagement",a.setUserEngagement);nT(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);
nT(a,"getPresentingPlayerType",a.UJ);nT(a,"canPlayType",a.canPlayType);nT(a,"updatePlaylist",a.updatePlaylist);nT(a,"updateVideoData",a.updateVideoData);nT(a,"updateEnvironmentData",a.updateEnvironmentData);nT(a,"sendVideoStatsEngageEvent",a.fea);nT(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);nT(a,"setSafetyMode",a.setSafetyMode);nT(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)});
nT(a,"getVideoAspectRatio",a.getVideoAspectRatio);nT(a,"getPreferredQuality",a.getPreferredQuality);nT(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);nT(a,"setPlaybackQualityRange",a.nea);nT(a,"onAdUxClicked",a.onAdUxClicked);nT(a,"getFeedbackProductData",a.getFeedbackProductData);nT(a,"getStoryboardFrame",a.getStoryboardFrame);nT(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);nT(a,"getStoryboardLevel",a.getStoryboardLevel);nT(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);
nT(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);nT(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);nT(a,"addCueRange",a.addCueRange);nT(a,"addUtcCueRange",a.addUtcCueRange);nT(a,"showAirplayPicker",a.showAirplayPicker);nT(a,"dispatchReduxAction",a.dispatchReduxAction);nT(a,"getPlayerResponse",a.j9);nT(a,"getWatchNextResponse",a.x9);nT(a,"getHeartbeatResponse",a.e9);nT(a,"changeMarkerVisibility",a.changeMarkerVisibility);nT(a,"getCurrentTime",a.Y8);nT(a,"getDuration",a.hY);
nT(a,"getPlayerState",a.getPlayerState);nT(a,"getPlayerStateObject",a.k9);nT(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);nT(a,"getProgressState",a.getProgressState);nT(a,"getVolume",a.getVolume);nT(a,"setVolume",a.nM);nT(a,"isMuted",a.isMuted);nT(a,"mute",a.ZK);nT(a,"unMute",a.JM);nT(a,"loadModule",a.loadModule);nT(a,"unloadModule",a.unloadModule);nT(a,"getOption",a.uY);nT(a,"getOptions",a.getOptions);nT(a,"setOption",a.setOption);nT(a,"loadVideoById",a.YZ);nT(a,"loadVideoByUrl",a.ZZ);nT(a,
"playVideo",a.yS);nT(a,"loadPlaylist",a.loadPlaylist);nT(a,"nextVideo",a.nextVideo);nT(a,"previousVideo",a.previousVideo);nT(a,"playVideoAt",a.playVideoAt);nT(a,"getDebugText",a.getDebugText);nT(a,"getWebPlayerContextConfig",a.getWebPlayerContextConfig);nT(a,"notifyShortsAdSwipeEvent",a.notifyShortsAdSwipeEvent);nT(a,"getVideoContentRect",a.getVideoContentRect);nT(a,"setSqueezeback",a.setSqueezeback);nT(a,"setAutonav",a.setAutonav);nT(a,"isNotServable",a.isNotServable);nT(a,"channelSubscribed",a.channelSubscribed);
nT(a,"channelUnsubscribed",a.channelUnsubscribed);nT(a,"togglePictureInPicture",a.togglePictureInPicture);nT(a,"supportsGaplessAudio",a.supportsGaplessAudio);nT(a,"supportsGaplessShorts",a.supportsGaplessShorts);nT(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
nT(a,"clearQueue",a.clearQueue);nT(a,"getAudioTrack",a.Q8);nT(a,"setAudioTrack",a.gea);nT(a,"getAvailableAudioTracks",a.U8);nT(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);nT(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);nT(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);nT(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);nT(a,"setMinimized",a.setMinimized);nT(a,"setOverlayVisibility",a.setOverlayVisibility);nT(a,"confirmYpcRental",a.confirmYpcRental);
nT(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);nT(a,"isSubtitlesOn",a.isSubtitlesOn);nT(a,"queueNextVideo",a.queueNextVideo);nT(a,"handleExternalCall",a.handleExternalCall);nT(a,"logApiCall",a.logApiCall);nT(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);nT(a,"setScreenLayer",a.setScreenLayer);nT(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);nT(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);nT(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);nT(a,
"syncVolume",a.syncVolume);nT(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem);nT(a,"openSettingsMenuItem",a.openSettingsMenuItem);nT(a,"getEmbeddedPlayerResponse",a.getEmbeddedPlayerResponse);nT(a,"getVisibilityState",a.getVisibilityState);nT(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);nT(a,"setGlobalCrop",a.setGlobalCrop);nT(a,"setInternalSize",a.setInternalSize);nT(a,"setFauxFullscreen",a.setFauxFullscreen)};
JYa=function(a){a.state.G||(a.state.G={addEventListener:function(b,c){IYa(a,b,c)},
removeEventListener:function(b,c){c=typeof c==="string"?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};
IYa=function(a,b,c){var d=typeof c==="string"?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)}};
yT=function(a,b,c){a=g.xT(a.Te(),b);return c?(c.addOnDisposeCallback(a),null):a};
g.zT=function(a,b,c){return a.app.U().mf?b:g.aJ("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c})};
KYa=function(a){a.Te().element.setAttribute("aria-live","polite")};
g.AT=function(a,b,c){g.wT.call(this,a,b,c)};
g.BT=function(a){a=a.Bb();var b=a.Ke.get("endscreen");return b&&b.wv()?!0:a.yH()};
g.CT=function(a,b){a.getPresentingPlayerType()===3?a.publish("mdxautoplaycancel"):a.jb("onAutonavCancelled",b)};
g.ET=function(a){var b=DT(a.Bb());return a.app.xj&&!a.isFullscreen()||a.getPresentingPlayerType()===3&&b&&b.Bl()&&b.Xp()||!!a.getPlaylist()};
g.LYa=function(a,b,c){g.qT(a,"addEmbedsConversionTrackingParams",[b]);a.L("embeds_web_enable_referring_feature_deprecation")||g.JO(b,c)};
g.GT=function(a){return(a=g.FT(a.Bb()))?a.XJ():{}};
g.MYa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&a.mimeType!=="application/x-mpegURL"};
g.HT=function(a,b,c){a=a.qb().element;var d=Rb(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
d<0&&(d=-(d+1));Hf(a,b,d);b.setAttribute("data-layer",String(c))};
g.IT=function(a){var b=a.U();if(!b.Zd)return!1;var c=a.getVideoData();if(!c||a.getPresentingPlayerType()===3)return!1;var d=(!c.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay"))&&!iT(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.Bl();var f=c.Sa&&c.Sa.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Jf&&f;return!c.ypcPreview&&(!d||e)&&!g.Eb(c.La,"ypc")&&
!a&&(!g.nR(b)||f)};
NYa=function(a){a=g.uT(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||b.B.video.j<1080||b.xU)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";b.B.id.indexOf(";")>=0&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.oa("iqss",{trigger:d},!0),!0):!1};
OYa=function(){BB.apply(this,arguments);this.requestHeaders={}};
JT=function(){PYa||(PYa=new OYa);return PYa};
KT=function(a,b){b?a.requestHeaders.Authorization="Bearer "+b:delete a.requestHeaders.Authorization};
g.LT=function(a,b,c,d){d=d===void 0?!1:d;g.OE.call(this,b);var e=this;this.J=a;this.Ha=d;this.N=new g.NJ(this);this.ra=new g.rF(this,c,!0,void 0,void 0,function(){e.ZX()});
g.M(this,this.N);g.M(this,this.ra)};
QYa=function(a){a.B&&(document.activeElement&&g.Of(a.element,document.activeElement)&&a.B.focus(),a.B.setAttribute("aria-expanded","false"),a.B=void 0);g.uB(a.N);a.Y=void 0};
MT=function(a,b,c){a.yk()?a.Nb():a.od(b,c)};
RYa=function(a,b,c,d){d=new g.W({I:"div",Ma:["ytp-linked-account-popup-button"],xa:d,W:{role:"button",tabindex:"0"}});b=new g.W({I:"div",S:"ytp-linked-account-popup",W:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{I:"div",S:"ytp-linked-account-popup-title",xa:b},{I:"div",S:"ytp-linked-account-popup-description",xa:c},{I:"div",S:"ytp-linked-account-popup-buttons",V:[d]}]});g.LT.call(this,a,{I:"div",S:"ytp-linked-account-popup-container",V:[b]},100);var e=this;this.dialog=b;g.M(this,this.dialog);
d.listen("click",function(){e.Nb()});
g.M(this,d);g.HT(this.J,this.element,4);this.hide()};
g.NT=function(a,b,c,d){g.OE.call(this,a);this.priority=b;c&&this.Qj(c);d&&this.Dd(d)};
g.OT=function(a,b,c,d){a=a===void 0?{}:a;b=b===void 0?[]:b;c=c===void 0?!1:c;d=d===void 0?!1:d;b.push("ytp-menuitem");var e=a;"role"in e||(e.role="menuitem");c||(e=a,"tabindex"in e||(e.tabindex="0"));a={I:c?"a":"div",Ma:b,W:a,V:[{I:"div",S:"ytp-menuitem-icon",xa:"{{icon}}"},{I:"div",S:"ytp-menuitem-label",xa:"{{label}}"},{I:"div",S:"ytp-menuitem-content",xa:"{{content}}"}]};d&&a.V.push({I:"div",S:"ytp-menuitem-secondary-icon",xa:"{{secondaryIcon}}"});return a};
PT=function(a){g.NT.call(this,g.OT({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.J=a;this.B=this.j=!1;this.Gb=a.Km();a.createServerVe(this.element,this,!0);this.T(this.J,"settingsMenuVisibilityChanged",function(c){b.Mc(c)});
this.T(this.J,"videodatachange",this.D);this.listen("click",this.onClick);this.D()};
QT=function(a){return a?g.RE(a):""};
RT=function(a){g.I.call(this);this.api=a};
ST=function(a){RT.call(this,a);var b=this;nT(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
nT(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new PT(b.api);g.M(b,b.menuItem)})};
SYa=function(a){this.api=a;this.j={}};
TT=function(a,b,c,d){b in a.j||(c=new g.UI(c,d,{id:b,priority:2,namespace:"appad"}),a.api.nf([c],1),a.j[b]=c)};
TYa=function(a){RT.call(this,a);var b=this;this.events=new g.NJ(this);g.M(this,this.events);this.j=new SYa(this.api);this.events.T(this.api,"legacyadtrackingpingreset",function(){b.j.j={}});
this.events.T(this.api,"legacyadtrackingpingchange",function(c){var d=b.j;TT(d,"part2viewed",1,0x8000000000000);TT(d,"engagedview",Math.max(1,c.Lb*1E3),0x8000000000000);c.isLivePlayback||(c=c.lengthSeconds*1E3,TT(d,"videoplaytime25",c*.25,c),TT(d,"videoplaytime50",c*.5,c),TT(d,"videoplaytime75",c*.75,c),TT(d,"videoplaytime100",c,0x8000000000000),TT(d,"conversionview",c,0x8000000000000),TT(d,"videoplaybackstart",1,c),TT(d,"videoplayback2s",2E3,c),TT(d,"videoplayback10s",1E4,c))});
this.events.T(this.api,g.VI("appad"),this.B);this.events.T(this.api,g.WI("appad"),this.B)};
XYa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.v(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.api.getVideoData().clientPlaybackNonce};c=g.av(c,d);d=void 0;d=d===void 0?!1:d;(d=OI(PI(c,UYa),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=d===void 0?!1:d,d=OI(PI(c,VYa),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=d===void 0?!1:d,d=OI(PI(c,WYa),c,d,"Nielsen OCR URL"));g.cD(c,void 0,d)}return!0};
UT=function(a,b){YYa(a,b).then(function(c){g.cD(b,void 0,void 0,c)})};
VT=function(a,b){b.forEach(function(c){UT(a,c)})};
YYa=function(a,b){return g.zI(a.api.U())&&xA(b)&&wA(b)?g.MR(a.api.U(),g.fT(a.api.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):NA()};
ZYa=function(a){RT.call(this,a);this.events=new g.NJ(a);g.M(this,this.events);this.events.T(a,"videoready",function(b){if(a.getPresentingPlayerType()===1){var c,d,e={playerDebugData:{pmlSignal:!!((c=b.getPlayerResponse())==null?0:(d=c.adPlacements)==null?0:d.some(function(f){var h;return f==null?void 0:(h=f.adPlacementRenderer)==null?void 0:h.renderer})),
contentCpn:b.clientPlaybackNonce}};g.VB("adsClientStateChange",e)}})};
aZa=function(a){g.W.call(this,{I:"button",Ma:["ytp-button"],W:{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",W:{"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.CD);this.listen("click",this.onClick);this.J.U().L("web_player_autonav_toggle_always_listen")&&
$Ya(this);yT(a,this.element,this);this.CD()};
$Ya=function(a){a.B.push(a.T(a.J,"videodatachange",a.CD));a.B.push(a.T(a.J,"videoplayerreset",a.CD));a.B.push(a.T(a.J,"onPlaylistUpdate",a.CD));a.B.push(a.T(a.J,"autonavchange",a.NV))};
bZa=function(a){a.isChecked=a.isChecked;a.Fa("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.Yh()};
cZa=function(a){return a.J.U().L("web_player_autonav_use_server_provided_state")&&gXa(a.Nd())};
dZa=function(a){RT.call(this,a);var b=this;this.events=new g.NJ(a);g.M(this,this.events);this.events.T(a,"standardControlsInitialized",function(){var c=new aZa(a);g.M(b,c);a.Cz(c)})};
WT=function(a,b){g.NT.call(this,g.OT({role:"menuitemcheckbox","aria-checked":"false"}),b,a,{I:"div",S:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)};
XT=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))};
eZa=function(a){var b=!a.U().Rk&&a.getPresentingPlayerType()!==3;return a.isFullscreen()||b};
g.ZT=function(a,b,c,d){var e=a.currentTarget;if((c===void 0||!c)&&g.JF(a))return a.preventDefault(),!0;b.pauseVideo();a=e.getAttribute("href");g.uza(a,d,!0);return!1};
g.$T=function(a,b,c){if(CR(b.U())&&b.getPresentingPlayerType()!==2){if(g.JF(c))return b.isFullscreen()&&!b.U().externalFullscreen&&b.toggleFullscreen(),c.preventDefault(),!0}else{var d=g.JF(c);d&&b.pauseVideo();g.uza(a,void 0,!0);d&&(g.UF(a),c.preventDefault())}return!1};
gZa=function(){var a=fZa.includes("ru")?{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,W:{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",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,W:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};a.S="ytp-subtitles-button-icon";return a};
hZa=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"}]}]}]}};
iZa=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
bU=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";WT.call(this,b,g.aU.b4);var c=this;this.J=a;this.j=!1;this.B=new g.Dv(function(){g.Mv(c.element,"ytp-menuitem-highlighted")},0);
this.Gb=a.Km();this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{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.listen(jZa,this.D);g.M(this,this.B)};
lZa=function(a){RT.call(this,a);var b=this;this.j=!1;a.addEventListener("settingsMenuInitialized",function(){kZa(b)});
a.addEventListener("highlightSettingsMenu",function(c){kZa(b);var d=b.menuItem;c==="menu_item_cinematic_lighting"&&(g.Kv(d.element,"ytp-menuitem-highlighted"),g.Kv(d.element,"ytp-menuitem-highlight-transition-enabled"),d.B.start())});
nT(a,"updateCinematicSettings",function(c){b.updateCinematicSettings(c)})};
kZa=function(a){a.menuItem||(a.menuItem=new bU(a.api),g.M(a,a.menuItem),a.menuItem.Ua(a.j))};
cU=function(a,b,c,d){WT.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.aU.X6);g.Kv(this.element,"ytp-drc-menu-item");this.Gb=a.Km();this.C=b;this.j=c;this.hasDrcAudioTrack=d;a.addEventListener("videodatachange",this.onVideoDataChange.bind(this));a=this.j()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",
width:"24"},V:[{I:"path",W:{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.B,this);XT(this,a);this.Gb.Vc(this)};
dU=function(a){RT.call(this,a);var b=this;this.events=new g.NJ(a);g.M(this,this.events);a.L("html5_show_drc_toggle")&&a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new cU(b.api,b.setDrcUserPreference.bind(b),b.getDrcUserPreference.bind(b),b.B.bind(b)),g.M(b,b.menuItem))});
nT(this.api,"setDrcUserPreference",function(d){b.setDrcUserPreference(d)});
nT(this.api,"getDrcUserPreference",function(){return b.getDrcUserPreference()});
nT(this.api,"hasDrcAudioTrack",function(){return b.B()});
var c;this.j=(c=g.yB("yt-player-drc-pref"))!=null?c:1;this.updateEnvironmentData()};
eU=function(a){RT.call(this,a);var b=this;this.j={};this.events=new g.NJ(a);g.M(this,this.events);this.events.T(a,"videodatachange",function(){b.onVideoDataChange()});
this.events.T(a,g.VI("embargo"),function(c){b.api.Wo(!0);var d,e=(d=b.j[c.id])!=null?d:[];d=g.v(e);for(e=d.next();!e.done;e=d.next()){var f=e.value;b.api.hideControls();b.api.Of("auth",2,"This video isn't available in your current playback area",FJ({embargoed:1,id:c.id,idx:c.B,start:c.start}));e=void 0;(f=(e=f.embargo)==null?void 0:e.onTrigger)&&b.api.jb("innertubeCommand",f)}})};
mZa=function(a,b){var c;return(c=b.onEnter)==null?void 0:c.some(a.B)};
nZa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=Number((d=c.playbackPosition)==null?void 0:d.utcTimeMillis)/1E3,f=void 0;d=e+Number((f=c.duration)==null?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))}};
oZa=function(a){RT.call(this,a);var b=this;this.j=[];this.events=new g.NJ(a);g.M(this,this.events);nT(a,"addEmbedsConversionTrackingParams",function(c){b.api.U().Bp&&b.addEmbedsConversionTrackingParams(c)});
this.events.T(a,"veClickLogged",function(c){b.api.hasVe(c)&&(c=nk(c.visualElement.getAsJspb(),2),b.j.push(c))})};
pZa=function(a){RT.call(this,a);var b=this;this.events=new g.NJ(a);g.M(this,this.events);this.events.T(a,"initialvideodatacreated",function(c){CO(BO(),16623);b.j=g.jE();var d=a.U().Ci&&!c.Ci;if(eT(c)&&d){CO(BO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var e,f=(e=c.getWatchNextResponse())==null?void 0:e.trackingParams;f&&EO(f)}if(c.getPlayerResponse()){var h;(c=(h=c.getPlayerResponse())==null?void 0:h.trackingParams)&&EO(c)}}else CO(BO(),
32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(h=(f=c.getEmbeddedPlayerResponse())==null?void 0:f.trackingParams)&&EO(h)});
this.events.T(a,"loadvideo",function(){CO(BO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
this.events.T(a,"cuevideo",function(){CO(BO(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
this.events.T(a,"largeplaybuttonclicked",function(c){CO(BO(),27240,c.visualElement)});
this.events.T(a,"playlistnextbuttonclicked",function(c){CO(BO(),27240,c.visualElement)});
this.events.T(a,"playlistprevbuttonclicked",function(c){CO(BO(),27240,c.visualElement)});
this.events.T(a,"playlistautonextvideo",function(){CO(BO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
qZa=function(a){g.I.call(this);var b=this;this.j=null;for(var c=[],d=0;d<=100;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];typeof e.isVisible==="undefined"?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.B.observe(a)};
sZa=function(a){RT.call(this,a);var b=this;this.events=new g.NJ(a);g.M(this,this.events);this.events.T(a,"applicationInitialized",function(){rZa(b)})};
rZa=function(a){a.j=new qZa(a.api.getRootNode());g.M(a,a.j);a.events.T(a.api,"videoStatsPingCreated",function(b){var c=a.j;c=c.j==null?null:Math.round(c.j*100)/100;b.inview=c!=null?c:void 0;c=a.api.getPlayerSize();if(c.height>0&&c.width>0){c=[Math.round(c.width),Math.round(c.height)];var d=g.DR();d>1&&c.push(d);c=c.join(":")}else c=void 0;b.size=c})};
tZa=function(a){var b;return((b=((a==null?void 0:a.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))==null?void 0:b.timeCounterRenderer)||null};
fU=function(a){g.W.call(this,{I:"div",Ma:["ytp-player-content","ytp-iv-player-content"],V:[{I:"div",S:"ytp-free-preview-countdown-timer",V:[{I:"span",xa:"{{label}}"},{I:"span",S:"ytp-free-preview-countdown-timer-separator",xa:"\u2022"},{I:"span",xa:"{{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)};
vZa=function(a,b){a.j||(a.B=b,a.C=(0,g.iC)(),a.j=new g.Cv(function(){uZa(a)},null),uZa(a))};
uZa=function(a){var b=Math,c=b.round,d=Math.min((0,g.iC)()-a.C,a.B);b=c.call(b,(a.B-d)/1E3);a.updateValue("duration",gLa({seconds:b}));b<=0&&a.j?wZa(a):a.j&&a.j.start()};
wZa=function(a){a.j&&(a.j.dispose(),a.j=null)};
xZa=function(a){RT.call(this,a);var b=this;this.events=new g.NJ(a);g.M(this,this.events);this.events.T(a,"basechromeinitialized",function(){b.j=new fU(a);g.M(b,b.j);g.HT(a,b.j.element,4);b.j.hide()})};
gU=function(a){g.W.call(this,{I:"button",Ma:["ytp-fullerscreen-edu-button","ytp-button"],V:[{I:"div",Ma:["ytp-fullerscreen-edu-text"],xa:"\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",Ma:["ytp-fullerscreen-edu-chevron"],
V:[{I:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",W:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],W:{"data-priority":"1"}});this.Va=a;this.j=new g.rF(this,250,void 0,100);this.C=this.B=!1;a.createClientVe(this.element,this,61214);g.M(this,this.j);this.T(a,"fullscreentoggled",this.Ua);this.T(a,"presentingplayerstatechange",this.Ua);this.listen("click",this.onClick);this.Ua()};
hU=function(a){RT.call(this,a);var b=this;this.events=new g.NJ(a);g.M(this,this.events);nT(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
nT(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
var c=a.U();a.L("external_fullscreen_with_edu")&&c.externalFullscreen&&CR(c)&&c.controlsType==="1"&&this.events.T(a,"standardControlsInitialized",function(){b.j=new gU(a);g.M(b,b.j);a.Cz(b.j)})};
yZa=function(a){g.W.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",Ma:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],W:{"aria-label":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},V:[g.VE()]},{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",xa:"{{title}}"},
{I:"div",S:"ytp-gated-actions-overlay-subtitle",xa:"{{subtitle}}"}]},{I:"div",S:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=a;this.background=this.Fa("ytp-gated-actions-overlay-background");this.B=this.Fa("ytp-gated-actions-overlay-button-container");this.j=[];this.T(this.Fa("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.jb("onCloseMiniplayer")});
this.hide()};
AZa=function(a,b){var c=0;c=0;for(var d={};c<b.length;d={MI:void 0},c++){var e=a.j[c],f=void 0,h=(f=e)==null?void 0:f.element;h||(h=new g.W({I:"button",S:"ytp-gated-actions-overlay-button",W:{tabindex:"0"},V:[{I:"div",S:"ytp-gated-actions-overlay-button-title",xa:"{{buttonText}}"}]}),g.M(a,h),h.Ka(a.B),e={element:h});d.MI=g.V(b[c],zZa);var l=f=void 0,m=void 0,n=((f=d.MI)==null?void 0:f.title)||((l=d.MI)==null?void 0:(m=l.titleFormatted)==null?void 0:m.content)||"";h.update({buttonText:n});e.listener&&
h.Oc(e.listener);e.listener=h.listen("click",function(p){return function(){var q,r=g.V((q=p.MI)==null?void 0:q.onTap,qE);r&&a.api.jb("innertubeCommand",r)}}(d));
a.j[c]=e}for(;c<a.j.length;)a.j.pop().element.dispose()};
BZa=function(a){RT.call(this,a);var b=this;this.events=new g.NJ(a);g.M(this,this.events);this.j=new yZa(this.api);g.M(this,this.j);this.events.T(a,"videodatachange",function(){var c,d=(c=b.api.getVideoData())==null?void 0:c.Oda;c=b.j;if(d){var e,f,h=((e=d.title)==null?void 0:e.content)||"";e=((f=d.subtitle)==null?void 0:f.content)||"";c.update({title:h,subtitle:e});h=d.thumbnail;f="none";if(h==null?0:h.sources){e=0;h=g.v(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;AZa(c,d.actionButtons||[]);c.show()}else c.hide()});
g.HT(this.api,this.j.element,4)};
CZa=function(a){RT.call(this,a);var b=a.U();b.Kj=!1;b.eb=!1;b.pm=!1;pT(a,"resetSubtitlesUserSettings",function(){a.resetSubtitlesUserSettings()});
pT(a,"getSubtitlesUserSettings",function(){return a.getSubtitlesUserSettings()});
pT(a,"updateSubtitlesUserSettings",function(c){a.updateSubtitlesUserSettings(c)});
pT(a,"getCaptionTracks",function(){return a.getOption("captions","tracklist",{includeAsr:!0})});
pT(a,"getAvailableQualityLevels",function(){return a.getAvailableQualityLevels()});
pT(a,"getPreferredQuality",function(){return a.getPreferredQuality()});
pT(a,"getPlaybackQuality",function(){return a.getPlaybackQuality()});
pT(a,"setPlaybackQuality",function(c){a.setPlaybackQuality(c)})};
DZa=function(a){RT.call(this,a);a=a.U();a.Ch.push("flix");a.eb=!1;a.Kj=!1};
iU=function(a){RT.call(this,a);var b=this;pT(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()});
pT(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.ra(g.Ja.apply(0,arguments)))});
oT(this.api,"getSphericalProperties",function(){return b.api.getPresentingPlayerType()===2?{}:b.getSphericalProperties()});
oT(this.api,"setSphericalProperties",function(){var c=g.Ja.apply(0,arguments);b.api.getPresentingPlayerType()!==2&&b.setSphericalProperties.apply(b,g.ra(c))})};
EZa=function(a){RT.call(this,a);nT(a,"createClientVe",this.createClientVe.bind(this));nT(a,"createServerVe",this.createServerVe.bind(this));nT(a,"destroyVe",this.destroyVe.bind(this));nT(a,"hasVe",this.hasVe.bind(this));nT(a,"logClick",this.logClick.bind(this));nT(a,"logVisibility",this.logVisibility.bind(this));nT(a,"setTrackingParams",this.setTrackingParams.bind(this))};
jU=function(a){RT.call(this,a);var b=this;this.events=new g.NJ(a);g.M(this,this.events);nT(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)});
nT(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)});
nT(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)})};
FZa=function(a,b,c){var d=a.api.getCurrentTime()*1E3<b?1:-1;a.api.cH(d,c);a.api.seekTo(b/1E3,void 0,void 0,void 0,3)};
kU=function(a){RT.call(this,a);var b=this;this.events=new g.NJ(a);g.M(this,this.events);this.events.T(a,"videodatachange",function(){b.updateMetadata()});
this.events.T(a,"presentingplayerstatechange",function(){GZa(b)})};
lU=function(a,b){navigator.mediaSession.setActionHandler(a,b)};
HZa=function(a){lU("play",function(){a.api.playVideo()});
lU("pause",function(){a.api.pauseVideo()});
lU("seekbackward",function(){a.api.seekBy(-5*a.api.getPlaybackRate())});
lU("seekforward",function(){a.api.seekBy(5*a.api.getPlaybackRate())})};
IZa=function(a){var b,c,d,e;return(b=a.api.getVideoData().getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:(e=d.browserMediaSession)==null?void 0:e.browserMediaSessionRenderer};
JZa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.v(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&(!c.width||c.width<=0||!c.height||c.height<=0||g.RI(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
GZa=function(a){a=a.api.getPlayerStateObject();a=a.isCued()||a.isError()?"none":a.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=a};
mU=function(a){RT.call(this,a);var b=this;this.B=new Map;this.C=this.j=void 0;this.compositeVideoState=null;this.events=new g.NJ(a);g.M(this,this.events);this.events.T(a,"modulecreated",function(c){var d;a:{var e,f,h,l=(e=b.api.getVideoData())==null?void 0:(f=e.getPlayerResponse())==null?void 0:(h=f.overlay)==null?void 0:h.playerControlsOverlayRenderer;if(l&&(e=g.V(l.compositeVideoOverlay,KZa),e==null?0:(d=e.sources)==null?0:d.length))for(d=g.v(e==null?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}c==="captions"&&(d==null?void 0:d.topLeftCornerX)!==void 0&&(d==null?void 0:d.topLeftCornerY)!==void 0&&(d==null?void 0:d.width)!==void 0&&(d==null?void 0:d.height)!==void 0&&b.api.LM({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.sf("compositeembargo",1);var e=d==null?void 0:d.mD.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(e==null?0:e.length)?LZa(b,e.filter(function(f){return MZa(b,f)})):(d==null?0:d.cueRanges)&&LZa(b,d.cueRanges.filter(function(f){return MZa(b,f)}));
c==="dataupdated"&&(d==null?void 0:d.compositeLiveStatusToken)!==b.C&&(b.C=d==null?void 0:d.compositeLiveStatusToken,b.api.kp())});
this.events.T(a,g.VI("compositeembargo"),function(c){var d;if(((d=b.j)==null?void 0:d.id)!==c.id&&(b.api.Wo(!0),b.B.has(c.id))){var e=b.B.get(c.id);d=b.api.getVideoData();e=g.v(e);for(var f=e.next();!f.done;f=e.next()){var h=void 0;f=(h=f.value.compositeEmbargo)==null?void 0:h.embargoStatusToken;d.Yy!==f&&(d.Yy=f,b.api.kp());NZa(b,c)}}});
this.events.T(a,g.WI("compositeembargo"),function(c){var d;if(((d=b.j)==null?void 0:d.id)===c.id&&(b.api.Wo(!1),b.B.has(c.id))){if(c=b.api.getVideoData())c.Yy=void 0;b.api.kp();NZa(b)}});
this.events.T(a,"heartbeatRequest",function(c){b.compositeVideoState!==null&&(c.playbackState||(c.playbackState={}),c.playbackState.compositeVideoState=b.compositeVideoState)});
this.events.T(a,"onPlaybackAudioChange",function(){b.api.kp()});
nT(a,"setCompositeParam",function(c){b.compositeVideoState=c})};
NZa=function(a,b){var c;((c=a.j)==null?void 0:c.id)!==(b==null?void 0:b.id)&&(a.j&&(a.B.delete(a.j.id),a.api.Yo([a.j],1)),a.j=b)};
LZa=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=void 0;c=Number((e=d.playbackRelativePosition)==null?void 0:e.utcTimeMs)/1E3;var f=void 0;e=c+Number((f=d.duration)==null?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)))}};
MZa=function(a,b){var c;return(c=b.onEnter)==null?void 0:c.some(a.D)};
OZa=function(a){RT.call(this,a);nT(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));nT(this.api,"updateDownloadState",this.updateDownloadState.bind(this));nT(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));nT(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));nT(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));nT(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));nT(this.api,"setUpPositionSyncInterval",
this.setUpPositionSyncInterval.bind(this))};
nU=function(a){RT.call(this,a);var b=this;nT(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()});
nT(a,"getAvailableQualityDataAndMessaging",function(){return b.getAvailableQualityDataAndMessaging()})};
PZa=function(a,b,c){var d=[],e=b?156595:151874;a=g.v(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};
QZa=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++}};
RZa=function(a){var b=new Set,c=new Map,d={};a=g.v(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.v(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};
TZa=function(a){RT.call(this,a);var b=this;this.events=new g.NJ(a);g.M(this,this.events);this.events.T(a,"d6de4videobindingchange",function(c){SZa(b,c)})};
SZa=function(a,b){if(window.android&&window.android.webview){var c=g.oI(a.api.U().experiments,"html5_d6de4_cloud_project_number");window.android.webview.getExperimentalMediaIntegrityTokenProvider&&window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:c}).then(function(d){return d.requestToken(b)}).then(function(d){a.api.oT(d)}).catch(function(d){g.nE(d)})}};
oU=function(a){g.W.call(this,{I:"button",Ma:["ytp-pip-button","ytp-button"],W:{title:"{{title}}","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},V:[xya()]});var b=this;this.api=a;this.listen("click",this.onClick);var c=this.api.Mm(),d=c.subscribe("visibilitystatechange",function(){b.Ua(c.xu())});
this.addOnDisposeCallback(function(){c.Uh(d)});
yT(a,this.element,this);this.Ua(c.xu())};
UZa=function(a){RT.call(this,a);var b=this;this.events=new g.NJ(a);g.M(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.createButton()})};
VZa=function(a){var b=a.api.getVideoData();g.NE(a.button,b.UX)};
WZa=function(a){RT.call(this,a);var b=this;this.events=new g.NJ(a);g.M(this,this.events);nT(this.api,"musicDisableUi",function(){g.Kv(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
nT(this.api,"musicEnableUi",function(){g.Mv(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
rU=function(a,b,c){b=b===void 0?!0:b;c=c===void 0?!1:c;g.W.call(this,{I:"div",S:"ytp-suggested-action"});var d=this;this.J=a;this.Ab=this.va=this.Da=this.G=this.D=this.Y=this.expanded=this.enabled=this.Xa=!1;this.ib=new g.Dv(function(){d.badge.element.style.width=""},200,this);
this.Sa=new g.Dv(function(){pU(d);qU(d)},200,this);
this.dismissButton=new g.W({I:"button",Ma:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.M(this,this.dismissButton);this.C=new g.W({I:"div",S:"ytp-suggested-action-badge-expanded-content-container",V:[{I:"label",S:"ytp-suggested-action-badge-title",xa:"{{badgeLabel}}"},this.dismissButton]});g.M(this,this.C);this.La=new g.W({I:"div",S:"ytp-suggested-action-badge-icon-container",V:[b?{I:"div",S:"ytp-suggested-action-badge-icon"}:""]});g.M(this,this.La);this.badge=new g.W({I:c?"div":
"button",Ma:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],V:[this.La,this.C]});g.M(this,this.badge);this.badge.Ka(this.element);this.ra=new g.rF(this.badge,250,!1,100);g.M(this,this.ra);this.Ya=new g.rF(this.C,250,!1,100);g.M(this,this.Ya);this.rb=new g.Cv(this.Bea,null,this);g.M(this,this.rb);this.eb=new g.Cv(this.B8,null,this);g.M(this,this.eb);g.M(this,this.ib);g.M(this,this.Sa);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.kL(!1)});
this.T(this.J,"onShowControls",function(){d.kL(!0)});
this.T(this.badge.element,"click",this.lG);this.T(this.dismissButton.element,"click",this.Uu);this.T(this.J,"pageTransition",this.OV);this.T(this.J,"appresize",this.Tl);this.T(this.J,"fullscreentoggled",this.Zaa);this.T(this.J,"cardstatechange",this.Haa);this.T(this.J,"annotationvisibility",this.lfa,this);this.T(this.J,"offlineslatestatechange",this.mfa,this)};
pU=function(a){g.Ov(a.badge.element,"ytp-suggested-action-badge-with-controls",a.Da||!a.Y)};
qU=function(a,b){var c=a.pM();a.expanded!==c&&(a.expanded=c,b===void 0||b?(a.rb.stop(),a.eb.stop(),a.ib.stop(),a.rb.start()):(g.NE(a.C,a.expanded),g.Ov(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),a.NK())};
XZa=function(a){var b=a.text||"",c=g.wf("ytp-suggested-action-badge-title",a.element);c&&g.Pf(c,b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Wa?a.Wa:"")};
sU=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",Ma:["ytp-panel-back-button-container"],V:[{W:{"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",Ma:["ytp-button",l]}]},{I:"span",Ma:[m],V:[c]}]};if(e){var p="ytp-panel-options";n.V.push({I:"button",Ma:["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.OE.call(this,h);this.content=b;d&&h.V?b.Ka(this.element,h.V.length-1):b.Ka(this.element);this.YY=!1;this.XY=d;c&&(c=this.Fa(l),m=this.Fa(m),this.T(c,"click",this.N_),this.T(m,"click",this.N_),this.YY=!0,e&&(p=this.Fa(p),this.T(p,"click",e)));b.subscribe("size-change",this.S_,this);this.T(a,"fullscreentoggled",this.S_);this.J=a};
g.tU=function(a,b,c,d,e,f){b=b===void 0?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.OE({I:"div",S:"ytp-panel-menu",W:h});sU.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.M(this,this.menuItems)};
g.uU=function(a){for(var b=g.v(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.YR,a);a.items=[];g.Ef(a.menuItems.element);a.menuItems.publish("size-change")};
YZa=function(a,b){return b.priority-a.priority};
g.vU=function(a,b){g.LT.call(this,a,{I:"div",Ma:["ytp-popup",b||""]},100,!0);this.j=[];this.K=this.G=null;this.maxHeight=this.maxWidth=0;this.size=new g.Me(0,0);this.listen("keydown",this.a6)};
ZZa=function(a){var b=a.j[a.j.length-1];if(b){g.Ts(a.element,a.maxWidth||"100%",a.maxHeight||"100%");g.Is(b.element,"width","");g.Is(b.element,"height","");g.Is(b.element,"maxWidth","100%");g.Is(b.element,"maxHeight","100%");g.Is(b.content.element,"height","");var c=g.Us(b.element);c.width+=1;c.height+=1;g.Is(b.element,"width",c.width+"px");g.Is(b.element,"height",c.height+"px");g.Is(b.element,"maxWidth","");g.Is(b.element,"maxHeight","");var d=0;b.YY&&(d=b.Fa("ytp-panel-header"),d=g.Us(d).height);
var e=0;b.XY&&(e=b.Fa("ytp-panel-footer"),g.Is(e,"width",c.width+"px"),e=g.Us(e).height);g.Is(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,d.offsetWidth-d.clientWidth>0&&e>0&&(c.width+=e,g.Is(b.element,"width",c.width+"px")));a.size=c}};
g.wU=function(a,b){var c=a.j[a.j.length-1];c!==b&&(a.j.push(b),$Za(a,c,b))};
g.xU=function(a){if(!(a.j.length<=1)){var b=a.j.pop(),c=a.j[0];a.j=[c];$Za(a,b,c,!0)}};
$Za=function(a,b,c,d){a_a(a);b&&(b.unsubscribe("size-change",a.KC,a),b.unsubscribe("back",a.ej,a));c.subscribe("size-change",a.KC,a);c.subscribe("back",a.ej,a);if(a.Ib){g.Kv(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ka(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;ZZa(a);g.Ts(a.element,e);a.G=new g.Dv(function(){b_a(a,b,c,d)},20,a);
a.G.start()}else c.Ka(a.element),b&&b.detach()};
b_a=function(a,b,c,d){a.G.dispose();a.G=null;g.Kv(a.element,"ytp-popup-animating");d?(g.Kv(b.element,"ytp-panel-animate-forward"),g.Mv(c.element,"ytp-panel-animate-back")):(g.Kv(b.element,"ytp-panel-animate-back"),g.Mv(c.element,"ytp-panel-animate-forward"));g.Ts(a.element,a.size);a.K=new g.Dv(function(){g.Mv(a.element,"ytp-popup-animating");b.detach();g.Nv(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.K.dispose();a.K=null},250,a);
a.K.start()};
a_a=function(a){a.G&&g.Fv(a.G);a.K&&g.Fv(a.K)};
yU=function(a){g.vU.call(this,a,"ytp-shopping-product-menu");this.Qe=new g.tU(this.J);g.M(this,this.Qe);this.hide();g.wU(this,this.Qe);g.HT(this.J,this.element,4)};
d_a=function(a,b,c){var d,e=b==null?void 0:(d=b.text)==null?void 0:d.simpleText;e&&(c=c_a(a,c,e,b==null?void 0:b.icon,b==null?void 0:b.secondaryIcon),b.navigationEndpoint&&c.listen("click",function(){a.J.jb("innertubeCommand",b.navigationEndpoint);a.hide()},a))};
e_a=function(a,b,c){var d,e=b==null?void 0:(d=b.text)==null?void 0:d.simpleText;e&&c_a(a,c,e,b==null?void 0:b.icon).listen("click",function(){var f;(b==null?void 0:(f=b.icon)==null?void 0:f.iconType)==="HIDE"?a.J.publish("featuredproductdismissed"):b.serviceEndpoint&&a.J.jb("innertubeCommand",b.serviceEndpoint);a.hide()},a)};
c_a=function(a,b,c,d,e){b=new g.NT(g.OT({},[],!1,!!e),b,c);e&&b.updateValue("secondaryIcon",f_a(e));b.setIcon(f_a(d));g.M(a,b);a.Qe.Vc(b,!0);return b};
f_a=function(a){if(!a)return null;switch(a.iconType){case "ACCOUNT_CIRCLE":return{I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{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",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{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 oya();case "HIDE":return{I:"svg",W:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"g",V:[{I:"path",W:{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"}}]}]};
case "OPEN_IN_NEW":return XE()}};
zU=function(a){rU.call(this,a,!1,!0);this.isCounterfactual=this.B=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.Y=!0;this.overflowButton=new g.W({I:"button",Ma:["ytp-featured-product-overflow-icon","ytp-button"],W:{"aria-haspopup":"true"}});this.overflowButton.hide();g.M(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.W({I:"img",S:"ytp-suggested-action-badge-img",W:{src:"{{url}}"}});
this.thumbnailImage.hide();g.M(this,this.thumbnailImage);this.thumbnailIcon=new g.W({I:"div",S:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.M(this,this.thumbnailIcon);this.banner=new g.W({I:"a",S:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{I:"div",S:"ytp-suggested-action-details",V:[{I:"text",S:"ytp-suggested-action-title",xa:"{{title}}"},{I:"text",S:"ytp-suggested-action-subtitle",xa:"{{subtitle}}"},{I:"text",S:"ytp-suggested-action-metadata-text",
xa:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.M(this,this.banner);this.banner.Ka(this.C.element);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.VI("suggested_action_view_model"),this.Xaa);this.T(this.J,g.WI("suggested_action_view_model"),this.Yaa);this.T(this.overflowButton.element,"click",this.b6);this.T(a,"featuredproductdismissed",this.Uu);this.J.createServerVe(this.banner.element,this.banner,!0)};
g_a=function(a){a.isInitialized&&(a.enabled=a.isVisible,a.va=a.isVisible,qU(a),a.Tl(),g.NE(a.thumbnailImage,a.isVisible),a.shouldHideDismissButton||g.NE(a.dismissButton,a.isVisible),a.shouldShowOverflowButton&&g.NE(a.overflowButton,a.isVisible))};
AU=function(){zU.apply(this,arguments)};
h_a=function(a){RT.call(this,a);this.j=new AU(this.api);g.M(this,this.j);g.HT(this.api,this.j.element,4)};
j_a=function(a){RT.call(this,a);var b=this;this.j="";this.events=new g.NJ(a);g.M(this,this.events);this.events.T(a,"internalaudioformatchange",function(c,d){if(d){d=b.api.getAvailableAudioTracks();d=g.v(d);for(var e=d.next();!e.done;e=d.next())if(e.value.getLanguageInfo().getId()===c){b.j=c;break}}});
this.events.T(a,"videoplayerreset",function(){b.j&&i_a(b)});
this.events.T(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)})};
i_a=function(a){var b=a.api.Wc();b&&(b.getVideoData().vfa=a.j)};
g.BU=function(a,b,c,d,e,f,h){g.NT.call(this,g.OT({"aria-haspopup":"true"}),b,a);this.Gb=d;this.N=!1;this.C=null;this.options={};this.B=new g.tU(c,void 0,a,e,f,h);g.M(this,this.B);this.listen("keydown",this.c6);this.listen("click",this.open)};
k_a=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.CU=function(a,b){g.uU(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?(a.options[f].Qj(a.bl(f,!0)),delete a.options[f]):h=a.Hz(f,-e,l);c[f]=h;a.B.Vc(h,!0)}d||(a.C=null);b=g.v(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
l_a=function(a,b){g.BU.call(this,"\u0410\u0432\u0442\u043e\u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435",g.aU.SLEEP_TIMER,a,b);this.J=a;this.Y={};this.G=this.pA("Off");this.K=this.j="";a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",
fill:"#fff"}}]});this.D=new g.W({I:"div",Ma:["ytp-menuitem-label-wrapper"],V:[{I:"div",xa:"\u041f\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0438 \u0432\u0438\u0434\u0435\u043e"},{I:"div",Ma:["ytp-menuitem-sublabel"],xa:"{{content}}"}]});g.M(this,this.D);this.listen("click",this.onClick);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.Ua);this.T(a,"settingsMenuVisibilityChanged",this.vca);a.createClientVe(this.element,this,218889);this.Ua();
this.J.jb("onSleepTimerFeatureAvailable")};
m_a=function(a){var b="Off 10 15 20 30 45 60".split(" "),c;((c=a.J.getVideoData())==null?0:c.isLivePlayback)||b.push("End of video");c=a.J.getPlaylist();var d;c&&((d=c.listId)==null?void 0:d.type)!=="RD"&&b.push("End of playlist");g.CU(a,b.map(a.pA));a.Y=g.cc(b,a.pA,a);b.includes("End of video")&&a.options[a.pA("End of video")].Qj(a.D)};
n_a=function(a,b){a.G=b;var c=a.Y[b],d=c==="End of video"||c==="End of playlist";c==="Off"&&(a.j="");a.J.getPlayerState()===0&&d||(g.BU.prototype.Mg.call(a,b),a.Ti(b),a.J.jb("onSleepTimerSettingsChanged",c))};
DU=function(a){RT.call(this,a);var b=this;a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new l_a(b.api,b.api.Km()),g.M(b,b.menuItem))});
a.addEventListener("openSettingsMenuItem",function(c){if(c==="menu_item_sleep_timer"){if(!b.menuItem){var d;(d=b.api.Km())==null||d.od()}b.menuItem.open()}});
nT(a,"resetSleepTimerMenuSettings",function(){b.resetSleepTimerMenuSettings()});
nT(a,"setSleepTimerTimeLeft",function(c){b.setSleepTimerTimeLeft(c)});
nT(a,"setVideoTimeLeft",function(c){b.setVideoTimeLeft(c)})};
g.FU=function(a,b,c,d,e){b=b===void 0?!1:b;d=d===void 0?!1:d;e=e===void 0?!1:e;g.GE.call(this);this.Y=e;this.N=!1;this.D=new sB(this);this.G=this.K=null;this.C=this.B=!1;g.M(this,this.D);this.target=a;this.j=b;this.Z=c||a;this.N=d;b&&(g.Nc&&this.target.setAttribute("draggable","true"),e||(this.target.style.touchAction="none"));EU(this)};
GU=function(a){g.uB(a.D,!a.j)};
EU=function(a){a.G=null;a.K=null;a.T(HU("over"),a.Px);a.T("touchstart",a.zN);a.j&&a.T(HU("down"),a.eaa)};
o_a=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};
HU=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
IU=function(a){return a&&p_a?gf(a)||document:document};
q_a=function(a,b){g.W.call(this,{I:"div",Ma:["ytp-overlay","ytp-speedmaster-overlay"],V:[{I:"div",S:"ytp-speedmaster-user-edu",V:[{I:"div",S:"ytp-speedmaster-label",xa:b},{I:"div",S:"ytp-speedmaster-icon",xa:"{{icon}}"}]}]});this.J=a;this.j=this.Fa("ytp-speedmaster-user-edu");this.updateValue("icon",nya());g.Kv(this.j,"ytp-speedmaster-has-icon");this.J.createClientVe(this.j,this,173040,!0);this.gi()};
KU=function(a){RT.call(this,a);var b=this;this.D=this.C=!1;this.Sa=g.oI(this.api.U().experiments,"speedmaster_touch_activation_ms")||500;this.Da=g.oI(this.api.U().experiments,"speedmaster_cancellation_movement_dp")||10;this.Oa=g.oI(this.api.U().experiments,"speedmaster_playback_rate")||2;this.B=new g.NJ(a);g.M(this,this.B);this.Y="2x";this.speedmasterUserEdu=new q_a(a,this.Y);g.M(this,this.speedmasterUserEdu);g.HT(this.api,this.speedmasterUserEdu.element,4);this.j=new g.FU(this.api.qb().Wz,!0,null,
!1,!0);g.M(this,this.j);this.delay=new g.Dv(this.Ga,this.Sa,this);g.M(this,this.delay);this.B.T(a,"videodatachange",function(){JU(b)},this);
this.B.T(a,"presentingplayerstatechange",function(){JU(b)},this);
this.B.T(a,"autonavvisibility",function(){JU(b)},this);
this.api.Mm().subscribe("visibilitystatechange",function(){JU(b)});
this.B.T(a,"rootnodemousedown",function(c){b.N=c});
this.L("web_speedmaster_spacebar_control")&&(this.B.T(a,"keyboardserviceglobalkeydown",function(c,d){b.ra=d;r_a(b,c,!0)},this),this.B.T(a,"keyboardserviceglobalkeyup",function(c){r_a(b,c,!1)},this))};
LU=function(a){a.delay.stop();a.j.unsubscribe("dragmove",a.K,a);a.j.unsubscribe("dragend",a.G,a);a.C&&(a.C=!1,a.speedmasterUserEdu.gi(),a.api.setPlaybackRate(a.Ha),a.api.showControls(),a.La&&a.api.pauseVideo())};
r_a=function(a,b,c){c?b.keyCode!==32||b.repeat||a.C||!a.D||g.Ev(a.delay):LU(a)};
JU=function(a){var b,c;var d=!!a.Y&&!((b=a.api.getVideoData())==null?0:b.isLivePlayback)&&!a.api.Hf()&&a.api.getPresentingPlayerType()!==2&&!g.yF(a.api.getPlayerStateObject(),2)&&!((c=g.vT(a.api))==null?0:c.Tg())&&!a.api.fd()&&s_a(a.api.Mm());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.K,a),a.j.unsubscribe("dragend",a.G,a),LU(a)))};
t_a=function(a){RT.call(this,a);var b=this;this.events=new g.NJ(a);g.M(this,this.events);nT(this.api,"addPlayerResponseForAssociation",function(c){b.api.addPlayerResponseForAssociation(c)});
nT(this.api,"finishSegmentByCpn",function(c,d){return b.api.finishSegmentByCpn(c,d)});
this.events.T(a,"modulecreated",function(c){if(c==="ad"&&(c=b.api.getVideoData(1))&&(c=c.getPlayerResponse())){var d;c=(d=c.adPlacements)!=null?d:[];d=g.v(c);for(var e=d.next();!e.done;e=d.next()){var f=c=void 0,h=void 0;if(e=(c=e.value.adPlacementRenderer)==null?void 0:(f=c.renderer)==null?void 0:(h=f.instreamVideoAdRenderer)==null?void 0:h.playerVars)c=rA(e),b.api.addPlayerResponseForAssociation({playerVars:c})}}});
this.events.T(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)})};
MU=function(a,b,c){g.yb.call(this,b,a);this.j=c};
g.NU=function(a){yK.call(this);var b=this;this.j=a;this.G={};this.listener=function(c){b.dispatchEvent(new MU(b,c.type,c))}};
OU=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.B=this.j=a-1};
u_a=function(a){return a.data[a.j]||0};
PU=function(a){g.I.call(this);this.C=a;this.j=new Map;this.B=new g.Dv(this.sample,250,this);g.M(this,this.B);this.start()};
QU=function(a,b){if((a=a.j.get(b))==null)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||[]};
RU=function(a,b){var c;return((c=a.j.get(b))==null?void 0:u_a(c.buffer))||0};
v_a=function(a){this.j=a;this.aB=NaN;this.buffer=new OU(100)};
y_a=function(a){var b=a.Wc(),c=a.getVideoData(),d=a.Me(),e=d.Jb(),f=a.U(),h=b.oF(),l=b.QT,m=RU(l,"bandwidth")*8/1024,n=RU(l,"networkactivity")/1024,p=RU(l,"bufferhealth");if(b.Ce){var q=b.videoData.useInnertubeDrmService()?"IT/":"";q+=b.Ce.j.getInfo()+"/"+UO(b.Yw());q+="/"+b.Ce.getInfo()}else q="";var r=q,t=b.getPlayerState().state.toString(16),u=d.getCurrentTime().toFixed(2),w=fK(d.Ih(),",",3);q="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(q+=c.XD?"DS":"SS");q+="DAI, ";var A=w_a(b);A&&(q+=
A)}var C;((C=a.getVideoData(1))==null?0:g.DS(C))?(q+="SSAP, ",(C=w_a(b))&&(q+=C)):BS(c)&&(q+="SABR, ");if(c.fetchType){switch(c.fetchType){case "onesie":C="o";break;case "gp":C="gp";break;default:C="gvi"}q+="vd:"+C+", "}f.Ld&&(q=f.Ld.cq?q+"wa, ":q+"w, ");q+="s:"+t+" t:"+u+" b:"+w+" ";d.isSeeking()&&(q+="S");d.isPaused()&&(q+="P");d.isEnded()&&(q+="E");a.isOrchestrationLeader()&&(q+=" L");(d=b.dF())&&(q+=" l:"+d.toFixed());d=b.getCurrentTime();f=c.fD;d&&d>f.start&&d<f.end&&(q+=" as");d=q;q=g.nA(HG)("_start",
void 0);f=[];t=g.v(["pl_i","vir","or_p","orfb","pbs"]);for(u=t.next();!u.done;u=t.next())u=u.value,(w=g.nA(HG)(u,void 0))&&q&&(w-=q,f.push(u+":"+Math.round(w)));q=f.join(" ");f=g.DR();t=g.GT(a).k$;u=c.C&&!c.C.j?"display:none":"";if((w=c.clientPlaybackNonce)&&w.length==16){w+="AAAA";C=0;A="";for(var F=0;F<20;F++)if(C=(C<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(F)),F%5==4){for(var G="",K=0;K<6;K++)G="0123456789ABCDEFGHJKMNPQRSTVWXYZ".charAt(C&31)+G,C>>=
5;A+=G}w=A.substr(0,4)+" "+A.substr(4,4)+" "+A.substr(8,4)+" "+(A.substr(12,4)+" "+A.substr(16,4))}else w="";m={video_id_and_cpn:String(c.videoId)+" / "+w,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:u,network_activity_style:u,network_activity_bytes:n.toFixed(0)+" KB",shader_info:t,shader_info_style:t?"":"display:none",playback_categories:""};
n=e.clientWidth+"x"+e.clientHeight+(f>1?"*"+f.toFixed(2):"");p="-";h.totalVideoFrames&&(p=(h.droppedVideoFrames||0)+" dropped of "+h.totalVideoFrames);m.dims_and_frames=n+" / "+p;a=a.getVolume();h=UXa(c);var N;n=((N=c.D)==null?0:N.audio.j)?"DRC":Math.round(a*h)+"%";N=Math.round(a)+"% / "+n;a=c.Uf.toFixed(1);isFinite(Number(a))&&(N+=" (content loudness "+a+"dB)");m.volume=N;m.resolution=e.videoWidth+"x"+e.videoHeight;if(e=c.B){if(N=e.video)a=N.fps,a>1&&(m.resolution+="@"+a),(a=g.SU(b))&&a.video&&(m.resolution+=
" / "+a.video.width+"x"+a.video.height,a.video.fps>1&&(m.resolution+="@"+a.video.fps)),m.codecs=x_a(e),!c.D||e.audio&&e.video?e.B_&&(m.codecs+=" / "+e.B_+"A"):m.codecs+=" / "+x_a(c.D),N.B||N.primaries?(a=N.B||"unknown",a==="smpte2084"?a+=" (PQ)":a==="arib-std-b67"&&(a+=" (HLG)"),m.color=a+" / "+(N.primaries||"unknown"),m.color_style=""):m.color_style="display:none";if(e.debugInfo)for(m.fmt_debug_info="",e=g.v(e.debugInfo),N=e.next();!N.done;N=e.next())N=N.value,m.fmt_debug_info+=N.label+":"+N.text+
" ";m.fmt_debug_info_style=m.fmt_debug_info&&m.fmt_debug_info.length>0?"":"display:none"}e=c.isLivePlayback;N=c.je;m.live_mode_style=e||N?"":"display:none";m.live_latency_style=e?"":"display:none";if(N)m.live_mode="Post-Live"+(CS(c)?" Manifestless":"");else if(e){N=RU(l,"livelatency");m.live_latency_secs=N.toFixed(2)+"s";e=CS(c)?"Manifestless, ":"";c.Ya&&(e+="Windowed, ");a="Uncertain";if(N>=0&&N<120)if(c.latencyClass&&c.latencyClass!=="UNKNOWN")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;(N=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+N.sequence);m.live_mode=e}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples=QU(l,"bandwidth");m.network_activity_samples=
QU(l,"networkactivity");m.live_latency_samples=QU(l,"livelatency");m.buffer_health_samples=QU(l,"bufferhealth");b=g.hT(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";yS(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20240707_00_RC00",m.release_style=""):m.release_style="display:none";m.debug_info&&q.length>0&&m.debug_info.length+q.length<=60?m.debug_info+=" "+q:m.extra_debug_info=q;m.extra_debug_info_style=
m.extra_debug_info&&m.extra_debug_info.length>0?"":"display:none";return m};
x_a=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
TU=function(a,b,c,d,e){g.W.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"};
UU=function(a,b){if(a.heightPx===-1){var c=null;try{c=g.Bf("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.Bf("SPAN"),d.style.width=a.j+"px",d.style.left=a.j*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.B&&(c=(window.devicePixelRatio||1)>1?2:1,a.C.height=a.heightPx*c,a.C.style.height=
a.heightPx+"px",a.B.scale(1,c)));b=g.v(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="")};
VU=function(a){var b=null;b={I:"button",Ma:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],W:{title:"close"},xa:"[X]"};g.W.call(this,{I:"div",Ma:["html5-video-info-panel","ytp-sfn"],V:[b,{I:"div",Ma:["html5-video-info-panel-content","ytp-sfn-content"],V:[{I:"div",V:[{I:"div",xa:"Video ID / sCPN"},{I:"span",xa:"{{video_id_and_cpn}}",S:"ytp-sfn-cpn"}]},{I:"div",V:[{I:"div",xa:"Viewport / Frames"},{I:"span",xa:"{{dims_and_frames}}"}]},{I:"div",V:[{I:"div",xa:"Current / Optimal Res"},{I:"span",
xa:"{{resolution}}"}]},{I:"div",V:[{I:"div",xa:"Volume / Normalized"},{I:"span",xa:"{{volume}}"}]},{I:"div",V:[{I:"div",xa:"Codecs"},{I:"span",xa:"{{codecs}}"}]},{I:"div",W:{style:"{{shader_info_style}}"},V:[{I:"div",xa:"Shader Info"},{I:"span",xa:"{{shader_info}}"}]},{I:"div",W:{style:"{{color_style}}"},V:[{I:"div",xa:"Color"},{I:"span",xa:"{{color}}"}]},{I:"div",W:{style:"{{drm_style}}"},V:[{I:"div",xa:"Protected"},{I:"span",xa:"{{drm}}"}]},{I:"div",W:{style:"{{bandwidth_style}}"},V:[{I:"div",xa:"Connection Speed"},
{I:"span",V:[{I:"span",xa:"{{bandwidth_chart}}"},{I:"span",xa:"{{bandwidth_kbps}}"}]}]},{I:"div",W:{style:"{{network_activity_style}}"},V:[{I:"div",xa:"Network Activity"},{I:"span",V:[{I:"span",xa:"{{network_activity_chart}}"},{I:"span",xa:"{{network_activity_bytes}}"}]}]},{I:"div",V:[{I:"div",xa:"Buffer Health"},{I:"span",V:[{I:"span",xa:"{{buffer_health_chart}}"},{I:"span",xa:"{{buffer_health_seconds}}"}]}]},{I:"div",W:{style:"{{live_latency_style}}"},V:[{I:"div",xa:"Live Latency"},{I:"span",V:[{I:"span",
xa:"{{live_latency_chart}}"},{I:"span",xa:"{{live_latency_secs}}"}]}]},{I:"div",W:{style:"{{live_mode_style}}"},V:[{I:"div",xa:"Live Mode"},{I:"span",xa:"{{live_mode}}"}]},{I:"div",W:{style:"{{playback_categories_style}}"},V:[{I:"div",xa:"Playback Categories"},{I:"span",xa:"{{playback_categories}}"}]},{I:"div",W:{style:"{{fmt_debug_info_style}}"},V:[{I:"div",xa:"Format Debug Info"},{I:"span",xa:"{{fmt_debug_info}}"}]},{I:"div",V:[{I:"div",xa:"Mystery Text"},{I:"span",xa:"{{debug_info}}"}]},{I:"div",
W:{style:"{{extra_debug_info_style}}"},V:[{I:"div",xa:""},{I:"span",V:[{I:"span",xa:"{{extra_debug_info}}"}]}]},{I:"div",V:[{I:"div",xa:"Date"},{I:"span",xa:"{{date}}"}]},{I:"div",W:{style:"{{cotn_and_local_media_style}}"},V:[{I:"div",xa:"COTN / Local Media"},{I:"span",xa:"{{cotn_and_local_media}}"}]},{I:"div",W:{style:"{{release_style}}"},V:[{I:"div",xa:"Player Release"},{I:"span",xa:"{{release_name}}"}]}]}]});this.Va=a;this.position=0;this.G=!0;b?(a=this.Fa("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 TU(300,1,150,a,b);g.M(this,this.j);this.updateValue("bandwidth_chart",this.j);this.C=new TU(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.M(this,this.C);this.updateValue("live_latency_chart",this.C);this.B=new TU(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.M(this,this.B);this.updateValue("buffer_health_chart",this.B);this.K=new TU(300,1,150,c,b);g.M(this,this.K);this.updateValue("network_activity_chart",
this.K);this.delay=new g.Dv(this.Ua,500,this);g.M(this,this.delay);this.D=new g.Dv(this.N,2E4,this);g.M(this,this.D)};
B_a=function(a){RT.call(this,a);var b=this;nT(a,"getStatsForNerds",function(){return y_a(b.api)});
oT(a,"showVideoInfo",function(){z_a(b,!0)});
oT(a,"hideVideoInfo",function(){z_a(b,!1)});
oT(a,"isVideoInfoVisible",function(){return A_a(b)})};
z_a=function(a,b){var c=A_a(a);a.j||(a.j=new VU(a.api),g.M(a,a.j),g.HT(a.api,a.j.element,4));g.NE(a.j,b);var d=DT(a.api.Bb());d&&d.loaded&&c!==b&&d.aU();b&&a.api.oa("sfn",{},!0)};
A_a=function(a){var b;return!((b=a.j)==null||!b.Ib)};
WU=function(){g.I.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.Cv(this.j,null,this);g.M(this,this.delay)};
C_a=function(a,b){if(b.I==="path")return b.W.d;if(b.V)for(var c=0;c<b.V.length;c++){var d=b.V[c];if(d&&typeof d!=="string"&&(d=C_a(a,d)))return d}};
G_a=function(a,b,c){c=C_a(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=JE();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=D_a(e),m=D_a(c);E_a(a,function(n){d.setAttribute("d",F_a(l,m,n))},200)};
E_a=function(a,b,c){a.B=b;a.startTime=(0,g.iC)();a.duration=c;a.j()};
D_a=function(a){var b=[];a=a.match(H_a);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};
F_a=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d=typeof f==="number"?d+(f+(b[e]-f)*c):d+f}return d};
XU=function(a){g.W.call(this,{I:"button",Ma:["ytp-size-button","ytp-button"],W:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}"},xa:"{{icon}}"});this.api=a;this.zk=null;this.transition=new WU;g.M(this,this.transition);this.T(a,"sizestylechange",this.Ua);this.T(a,"fullscreentoggled",this.Ua);this.T(a,"presentingplayerstatechange",this.Ua);a.createClientVe(this.element,this,139116);this.Ua();this.listen("click",this.onClick);yT(a,this.element,
this)};
I_a=function(a){RT.call(this,a);var b=this;this.events=new g.NJ(a);g.M(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.button=new XU(a);g.M(b,b.button);a.Cz(b.button)})};
J_a=function(a){RT.call(this,a);var b=this;oT(this.api,"getPlaybackRate",function(){return b.api.getPlaybackRate()});
oT(this.api,"setPlaybackRate",function(c){typeof c==="number"&&b.api.setPlaybackRate(c)})};
YU=function(a){function b(e){e="https://jnn-pa.googleapis.com"+e;return c?g.wq(e,"$httpHeaders",d):e}
var c=c===void 0?!1:c;this.Hs=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")};
ZU=function(a){RT.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.Ob=null;this.D=!1;this.B=null;this.C=!1;var c=a.U().getWebPlayerContextConfig();this.events=new g.NJ(a);g.M(this,this.events);this.events.T(a,"spsumpstatuschange",function(d){b.lj=d.lj;a.U().yc()&&b.api.oa("sps",{status:b.lj||""});if(b.L("html5_handle_sps_status"))if(b.lj===1)b.api.vC(0);else if(b.lj===2||b.lj===3)if(b.D&&!b.B&&K_a(b),b.lj===3){var e=b.api.yA();e++;var f;d=(f=d.s1)!=null?f:Infinity;if(e<d){b.api.pB(!0);var h;
(h=b.B)==null||h.then(function(){b.api.pB(!1)});
b.api.vC(e)}else b.api.Of("ump.spsrejectfailure",1,"HTML5_SPS_UMP_STATUS_REJECTED")}});
this.events.T(a,"spsumpreject",function(d,e){b.C=e;d&&b.D&&!b.B&&K_a(b);b.B||b.api.oa("stp",{s:+b.D,b:+b.C})});
this.useLivingRoomPoToken=!(c==null||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.Ob=a.Ii();var d=(b.L("html5_generate_session_po_token")||b.L("html5_generate_content_po_token"))&&!b.useLivingRoomPoToken;try{if(d){b.Ob.Qi("pot_isc");L_a(b);var e=g.oI(b.api.U().experiments,"html5_webpo_kaios_defer_timeout_ms");e?g.BA(function(){M_a(b)},e):b.L("html5_webpo_idle_priority_job")?g.OB(g.QB(),function(){M_a(b)}):M_a(b)}}catch(f){f instanceof Error&&g.nE(f)}});
a.tT(this)};
N_a=function(a,b){var c=WQ(b.experiments,"html5_web_po_request_key");return c?c:g.zI(b)?a.L("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"};
L_a=function(a){function b(m){g.nE(m)}
function c(m){(m=O_a[m])&&a.Ob.Qi(m)}
if(a.L("html5_use_shared_owl_instance")&&typeof g.Wa("yt.jnn.mod")!=="undefined"){var d=g.Wa("yt.jnn.mod");if(d=gBa(d)){a.j=d;return}}d=a.api.U();var e=N_a(a,d);try{var f=a.L("html5_po_token_enable_webpo_experimental")?new YU(e):fha(e),h=BUa(d.experiments),l=new Wq({Hs:e,onEvent:c,onError:b,hA:f,Mz:h,PR:function(){a.api.oa("itr",{})}});
a.j=l;g.M(a,l)}catch(m){m instanceof Error&&g.nE(m)}};
M_a=function(a){var b=a.api.U();a.Ob.Qi("pot_ist");var c;(c=a.j)==null||c.start();a.L("html5_bandaid_attach_content_po_token")||($U(a),K_a(a),b=g.oI(b.experiments,"html5_session_po_token_interval_time_ms")||0,b>0&&(a.G=g.CA(function(){$U(a)},b)),a.D=!0)};
$U=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.jA("EOM_VISITOR_DATA")||g.jA("VISITOR_DATA");d=b.Zl?b.datasyncId:c;e=WQ(b.experiments,"html5_mock_content_binding_for_session_token")||b.livingRoomPoTokenId||d;b.Xf=P_a(a,e);g.Aa(f)})};
P_a=function(a,b){if(!a.j)return"";try{var c=a.j.isReady();a.Ob.Qi(c?"pot_cms":"pot_csms");var d=a.j.dG({Ar:b,dk:{lE:b,k_:150,HI:!0,vM:!0}});a.Ob.Qi(c?"pot_cmf":"pot_csmf");if(c&&a.L("html5_handle_sps_status")){var e;(e=a.B)==null||e.resolve();a.B=null;if(a.C){a.C=!1;var f,h=(f=g.uT(a.api.app))==null?void 0:f.Aa;h&&h.pB(!1)}}return d}catch(l){return g.nE(l),""}};
K_a=function(a){a.j&&(a.L("html5_handle_sps_status")&&(a.B=new xK),a.j.ready().then(function(){a.Ob.Qi("pot_if");$U(a)}))};
Q_a=function(a){RT.call(this,a);var b=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.NJ(a);g.M(this,this.events);this.events.T(a,"heartbeatRequest",function(c){if(b.freePreviewUsageDetails.length||b.freePreviewWatchedDuration!==null)c.heartbeatRequestParams||(c.heartbeatRequestParams={}),c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={}),b.freePreviewUsageDetails.length>0?c.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
b.freePreviewUsageDetails:c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}});
nT(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=c});
nT(a,"setFreePreviewUsageDetails",function(c){b.freePreviewUsageDetails=c})};
aV=function(a){g.I.call(this);this.features=[];var b=this.j,c=new EZa(a),d=new ST(a),e=new nU(a),f=new ZU(a);var h=g.xI(a.U())?void 0:new eU(a);var l=new mU(a),m=new B_a(a),n=new J_a(a),p=new iU(a);var q=g.xI(a.U())?new Q_a(a):void 0;var r=a.L("html5_enable_ssap")?new t_a(a):void 0;var t=a.L("web_cinematic_watch_settings")&&(t=a.U().getWebPlayerContextConfig())!=null&&t.cinematicSettingsAvailable?new lZa(a):void 0;var u=new hU(a);var w=a.L("enable_courses_player_overlay_purchase")?new BZa(a):void 0;
var A=g.ER(a.U())?new xZa(a):void 0;var C=new oZa(a);var F=a.U().D?new pZa(a):void 0;var G=a.L("web_player_move_autonav_toggle")&&a.U().Zd?new dZa(a):void 0;var K=g.ER(a.U())?new jU(a):void 0;var N=a.L("web_enable_speedmaster")&&g.ER(a.U())?new KU(a):void 0;var R=a.U().Sk?void 0:new I_a(a);var da=a.L("report_pml_debug_signal")?new ZYa(a):void 0;var oa=new OZa(a),qa=new UZa(a);var ha=a.L("enable_web_player_player_in_bar_feature")&&g.QF(a.U())?new WZa(a):void 0;var ta=a.U().playerStyle==="flix"?new DZa(a):
void 0;var P=navigator.mediaSession&&window.MediaMetadata&&a.U().Kj?new kU(a):void 0;var ua=a.L("html5_enable_drc")&&!a.U().K?new dU(a):void 0;var y=new TYa(a);var Z=a.U();var cb=Z.K&&((cb=Z.getWebPlayerContextConfig())==null?void 0:cb.houseBrandEnvironment)==="apps-elements"?new CZa(a):void 0;Z=g.ER(a.U())?new h_a(a):void 0;var La=a.L("html5_enable_d6de4")?new TZa(a):void 0;var $a=g.ER(a.U())&&a.L("web_sleep_timer")?new DU(a):void 0;var Ya=g.nR(a.U())?new sZa(a):void 0;a=a.L("html5_enable_audio_track_stickiness")?
new j_a(a):void 0;b.call(this,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C,F,G,K,N,R,da,oa,qa,ha,ta,P,ua,y,cb,Z,La,$a,Ya,void 0,a)};
bV=function(){this.B=this.j=NaN};
R_a=function(a,b){this.X=a;this.timerName="";this.C=!1;this.B=NaN;this.D=new bV;this.j=b||null;this.C=!1};
S_a=function(a,b,c){var d=g.sR(b.Ea)&&!b.Ea.K;if(b.Ea.Vj&&(pR(b.Ea)||b.Ea.La==="shortspage"||KR(b.Ea)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.jA("TIMING_ACTION")||iA("TIMING_ACTION",a.X.csiPageType);a.X.csiServiceName&&iA("CSI_SERVICE_NAME",a.X.csiServiceName);if(a.j){d=a.j.Ii();for(var e=g.v(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,KG(f,d[f],a.timerName);d=g.nA(iAa)(a.j.iJ);g.LG(d,a.timerName);d=a.j;d.B={};d.iJ={}}g.LG({playerInfo:{visibilityState:g.nA(eAa)()},playerType:"LATENCY_PLAYER_HTML5"},
a.timerName);a.G!==b.clientPlaybackNonce||Number.isNaN(a.B)||(RG("_start",a.timerName)?c=g.nA(HG)("_start",a.timerName)+a.B:g.nE(new g.FB("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!RG("pbs",a.timerName)&&a.tick("pbs",c)}};
T_a=function(a,b,c,d,e,f,h){a=(a===c?"video":"ad")+"_to_"+(b===c?"video":"ad");if(a!=="video_to_ad"||f!=null&&f.Ha){f=a==="ad_to_video"?f:d;c=f==null?void 0:f.jJ;var l={};if(d==null?0:d.G)l.cttAuthInfo={token:d.G,videoId:d.videoId};e&&(l.startTime=e);QG(a,l);var m,n,p;d={targetVideoId:(m=d==null?void 0:d.videoId)!=null?m:"empty_video",targetCpn:b,adVideoId:(n=f==null?void 0:f.videoId)!=null?n:"empty_video",adClientPlaybackNonce:(p=c==null?void 0:c.cpn)!=null?p:f==null?void 0:f.clientPlaybackNonce};
c&&(d.adBreakType=c.adBreakType,d.adType=c.adType);g.LG(d,a);KG("pbs",h!=null?h:(0,g.iC)(),a)}};
cV=function(a){tAa();sAa();a.timerName=""};
U_a=function(a){if(a.j){var b=a.j;b.B={};b.iJ={}}a.C=!1;a.G=void 0;a.B=NaN};
V_a=function(a,b){g.GE.call(this);this.Ea=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=pA(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)typeof a==="string"&&a.length===16?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new bS("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.jWa(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");this.index>0&&(this.items=[]);a=g.v(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=YR(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
W_a=function(a){return!!(a.playlist||a.list||a.api)};
X_a=function(a){var b=a.index+1;return b>=a.length?0:b};
Y_a=function(a){var b=a.index-1;return b<0?a.length-1:b};
g.dV=function(a,b,c,d){b=b!==void 0?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.sS(a.Ea,b),g.M(a,e),e.Dn=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
Z_a=function(a,b){a.index=g.ze(b,0,a.length-1);a.startSeconds=0};
$_a=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.dV(a);a.items=[];for(var d=g.v(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()}};
c0a=function(a,b){var c,d,e,f,h,l,m;return g.H(function(n){if(n.j==1){c=g.eH();var p=a.U(),q={context:g.lT(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};if(p.L("embeds_web_enable_havs_getembeddedplayer")){var r=p.getWebPlayerContextConfig();if(r==null?0:r.encryptedHostFlags)q.playbackContext.contentPlaybackContext.encryptedHostFlags=r.encryptedHostFlags;if(r==null?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 u,w,A,C,F,G;r=((G=g.V((u=r)==null?void 0:(w=u.embedPreview)==null?void 0:(A=w.thumbnailPreviewRenderer)==null?void 0:(C=A.playButton)==null?void 0:(F=C.buttonRenderer)==null?void 0:F.navigationEndpoint,g.ES))==null?void 0:G.videoId)||null}else r=null}u=(u=r)?u:void 0;w=a.playlistId?a.playlistId:b.list;A=b.listType;if(w){var K;A==="user_uploads"?K={username:w}:K={playlistId:w};a0a(p,u,b,K);q.playlistRequest=
K}else b.playlist?(K={templistVideoIds:b.playlist.toString().split(",")},a0a(p,u,b,K),q.playlistRequest=K):u&&(K={videoId:u},p&&(K.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=K);d=q;e=g.cG(b0a);g.Ba(n,2);return g.z(n,g.VG(c,d,e),4)}if(n.j!=2)return f=n.B,h=a.U(),b.raw_embedded_player_response=f,h.Ga=vra(b,g.nR(h)),h.C=h.Ga==="EMBEDDED_PLAYER_MODE_PFL",f&&(l=f,l.trackingParams&&EO(l.trackingParams)),n.return(new g.sS(h,b));m=g.Da(n);m instanceof Error||(m=Error("b259802748"));g.mE(m);return n.return(a)})};
a0a=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.fV=function(a,b){eV.get(a);eV.set(a,b)};
g.gV=function(a){g.GE.call(this);this.loaded=!1;this.player=a};
d0a=function(){this.B=[];this.j=[]};
g.hV=function(a,b){return b?a.j.concat(a.B):a.j};
g.iV=function(a,b){switch(b.kind){case "asr":e0a(b,a.B);break;default:e0a(b,a.j)}};
e0a=function(a,b){g.Cb(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)};
g.jV=function(a){g.I.call(this);this.X=a;this.B=new d0a;this.G=[];this.Z=[];this.D=new g.No};
g.kV=function(a,b,c){g.jV.call(this,a);this.videoData=b;this.audioTrack=c;this.j=null;this.C=!1;this.G=b.gw;this.Z=b.ID;this.C=g.cT(b)};
f0a=function(){this.pj=!1};
g0a=function(a){var b=a===void 0?{}:a;a=b.hasSubfragmentedFmp4===void 0?!1:b.hasSubfragmentedFmp4;b=b.uF===void 0?!1:b.uF;var c=new f0a;c.pj=a||b;return c};
g.h0a=function(a){this.Ea=a;this.N=new f0a;this.Zy=this.Yy=!1;this.Dp=2;this.Da=20971520;this.ib=8388608;this.va=120;this.Fd=62914560;this.hq=g.oI(this.Ea.experiments,"html5_min_readbehind_secs");this.QD=g.oI(this.Ea.experiments,"html5_min_readbehind_cap_secs");this.Rk=this.Ea.L("html5_offline_reset_media_stream_on_unresumable_slices");this.ub=NaN;this.Tv=this.Xl=this.yw=2;this.Uk=lV(this,"html5_request_size_min_kb",64)*1024;this.Oa=2097152;this.wz=lV(this,"html5_bypass_contention_secs");this.Sv=
1048576;this.mm=!1;this.Sk=lV(this,"html5_repredict_interval_ms",1800);this.MD=lV(this,"html5_head_miss_secs",5);this.SD=lV(this,"html5_min_upgrade_health_secs",10);this.Ab=15;this.Ng=1;this.Z=1.15;this.Y=1.05;this.Zl=1;this.RD=lV(this,"html5_min_seconds_between_format_selections",8);this.LD=lV(this,"html5_max_buffer_health_for_downgrade_secs",15);this.jt=VQ;this.Ej=this.Ud=!1;this.Kj=6;this.B=!1;this.Iq=g.oI(this.Ea.experiments,"html5_min_startup_buffered_media_duration_secs");this.Nv=g.oI(this.Ea.experiments,
"html5_post_interrupt_readahead");this.sz=this.Ea.L("html5_allow_onesie_for_ssap");this.ZA=this.Ea.L("html5_disable_classic_alr");this.Pv=g.oI(this.Ea.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.pw=100;this.Bj=10;this.VD=6;this.mw=lV(this,"html5_ssdai_failure_retry_limit",3);this.gm=this.Ea.experiments.gb("html5_clone_original_for_fallback_location");this.zj=!1;this.Cc=g.oI(this.Ea.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.Xk=g.oI(this.Ea.experiments,
"html5_subsegment_readahead_timeout_secs");this.iD=g.oI(this.Ea.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.Wk=g.oI(this.Ea.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.kD=g.oI(this.Ea.experiments,"html5_subsegment_readahead_min_load_speed");this.ow=g.oI(this.Ea.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.mD=g.oI(this.Ea.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Cj=lV(this,"html5_hopeless_secs",
15);this.Ap=1;this.le=!1;this.XC=this.Ea.L("html5_restrict_streaming_xhr_on_sqless_requests");this.ND=g.oI(this.Ea.experiments,"html5_max_headm_for_streaming_xhr");this.RE=this.Ea.L("html5_pipeline_manifestless_allow_nonstreaming");this.bG=this.Ea.L("html5_prefer_server_bwe3");this.GD=this.Ea.L("html5_last_slice_transition");this.eD=this.Ea.L("html5_store_xhr_headers_readable");this.jw=this.Vf=this.lk=!1;this.Cp=g.oI(this.Ea.experiments,"html5_max_drift_per_track_secs");this.iq=this.Ea.L("html5_no_placeholder_rollbacks");
this.gD=this.Ea.L("html5_subsegment_readahead_enable_mffa");this.Tf=this.Ea.L("html5_allow_video_keyframe_without_audio");this.YD=this.Ea.L("html5_enable_vp9_fairplay");this.Kb=!0;this.Sf=this.Wa=this.Zc=!1;this.En=!0;this.Uv=!1;this.D="";this.ZB=1048576;this.tf=[];this.PC=this.Ea.L("html5_woffle_resume");this.Vl=this.Ea.L("html5_abs_buffer_health");this.lD=this.Ea.L("html5_interruption_resets_seeked_time");this.OD=g.oI(this.Ea.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.La=
!1;this.yp=this.Ea.L("html5_log_additional_source_buffer_updates");this.wp=this.Ea.L("html5_explicitly_dispose_xhr");this.Qv=!1;this.Yl=!this.Ea.L("html5_encourage_array_coalescing");this.fm=!1;this.VC=this.Ea.L("html5_restart_on_unexpected_detach");this.tj=0;this.Lb="";this.fD=this.Ea.L("html5_filter_non_efficient_formats_for_safari");this.Ea.L("html5_format_hybridization");this.qz=this.Ea.L("html5_abort_before_separate_init");this.ZC=ora();this.bD=this.Ea.L("html5_serialize_server_stitched_ad_request");
this.Fz=this.Ea.L("html5_skip_buffer_check_seek_to_head");this.mf=!1;this.Wl=this.Ea.L("html5_attach_po_token_to_bandaid");this.Pp=g.oI(this.Ea.experiments,"html5_max_redirect_response_length")||8192;this.Vk=this.Ea.L("html5_rewrite_timestamps_for_webm");this.Qb=this.Ea.L("html5_only_media_duration_for_discontinuities");this.gI=g.oI(this.Ea.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Ea.L("html5_onesie_live");this.FD=this.Ea.L("html5_onesie_premieres");this.IC=this.Ea.L("html5_drop_onesie_for_live_mode_mismatch");
this.WD=g.oI(this.Ea.experiments,"html5_onesie_live_ttl_secs")||8;this.xq=g.oI(this.Ea.experiments,"html5_attach_num_random_bytes_to_bandaid");this.XD=g.oI(this.Ea.experiments,"html5_onesie_request_timeout_ms")||3E3;this.j=!1;this.Ch=this.Ea.L("html5_apply_ssap_slice_info_adjustment");this.WC=this.Ea.L("html5_enable_sabr_host_fallback");this.ra=!1;this.zB=this.Ea.L("html5_disable_ssap_append_pause");this.Dn=this.Ea.L("html5_init_source_buffer_after_metadata");this.hD=this.Ea.L("html5_gapless_fallback_on_append_error");
this.qw=!1;this.Ga=this.Ea.L("html5_ssdai_use_post_for_media")&&this.Ea.L("gab_return_sabr_ssdai_config");this.HD=this.Ea.L("html5_use_post_for_media");this.Sc=this.Ea.L("html5_use_live_ump_heartbeat");this.xw=this.Ea.L("html5_use_sps_ump_part");this.jD=this.Ea.L("html5_handle_sps_status");this.wj=this.Ea.L("html5_enable_sps_non_fatal_logs");this.aD=this.Ea.L("html5_enable_sps_rebuffer_logs");this.useUmp=this.Ea.L("html5_use_ump");this.eb=this.Ha=!1;this.SF=this.Ea.Wf;this.fI=this.Ea.L("html5_reset_primary_stats_on_redirector_failure");
this.VG=this.Ea.L("html5_remap_to_original_host_when_redirected");this.nm=this.Wi=this.C=this.Di=!1;this.Ci=this.Ea.L("html5_enable_sabr_format_selection");this.Fn=this.Ea.L("html5_sabr_support_quality_constraints");this.SH=this.Ea.L("html5_sabr_remove_all_quality_constraints");this.gA=this.Ea.L("html5_iterative_seeking_buffered_time");this.Yk=this.Ea.L("html5_use_network_error_code_enums");this.qB=this.Ea.L("html5_disable_overlapping_requests");this.K=!1;this.enableServerDrivenRequestCancellation=
this.Ea.L("html5_enable_server_driven_request_cancellation");this.YC=this.Ea.L("html5_enable_sabr_request_timing");this.Gn=this.Ea.L("html5_enable_server_format_filter");this.cC=this.Ea.L("html5_drc_edit_sync_workaround");this.QC=this.Ea.L("html5_enable_lawnmower");this.RC=this.Ea.L("html5_enable_lawnmower_messaging");this.Xf=this.Ea.yc()?g.oI(this.Ea.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.ED=g.oI(this.Ea.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.lq=g.oI(this.Ea.experiments,
"html5_normal_latency_mffa_ms")||NaN;this.UD=g.oI(this.Ea.experiments,"html5_mffa_ms_proxima_override")||this.lq;this.KD=this.Ea.L("html5_live_defrag_only_h264_playbacks");this.ID=this.Ea.L("html5_live_defrag_only_h264_formats");this.jG=this.Ea.L("html5_record_now");this.Uf=!1;this.qm=g.oI(this.Ea.experiments,"html5_drm_byterate_soft_cap");this.Bn=g.oI(this.Ea.experiments,"html5_drm_live_byterate_soft_cap");this.zp=this.Rv=!1;this.Ya=this.Ea.L("html5_sabr_log_request_creation");this.Ub=this.Ea.L("html5_sabr_report_request_cancellation_info");
this.Wf=this.Lv=this.nw=!1;this.lw=this.Ea.L("html5_spoof_4k");this.Yp=lV(this,"html5_min_media_duration_for_cabr_slice");this.PD=this.Yl?0:lV(this,"html5_min_media_duration_for_append_prop");this.eI=this.Ea.L("html5_remove_defrag_without_frame_level_streaming");this.Ed=!0;this.CA=this.Ea.L("html5_consume_all_buffered_bytes_one_poll");this.MB=this.Ea.L("html5_disable_urgent_adaptation");this.vz=this.Ea.L("html5_apply_constraints_in_client_for_sabr");this.hw=this.Ea.L("html5_send_video_playback_ustreamer_config");
this.Bp=lV(this,"html5_max_discontinuity_rewrite_count");this.xp=lV(this,"html5_fixed_media_duration_for_request");this.Vj=this.Ea.L("html5_use_init_selected_audio");this.Sa=!1;this.Be=lV(this,"html5_sabr_request_limit_per_period");this.Sq=this.Hn=this.Vq=this.G=this.gw=!1;this.Bc=this.Ea.L("html5_sabr_live_partial_segment");this.Zd=this.Ea.L("html5_sabr_dispose_media_objects");this.pm=!1;this.Fo=this.Ea.L("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.Ov=this.Jj=!1;this.SC=this.Ea.L("html5_enable_d6de4");
this.rz=this.Ea.L("html5_account_for_delayed_buffer_range_creation");this.JD=this.Ea.L("html5_ssap_keep_only_ssap_eos_check");this.Ea.L("html5_high_res_seek_logging");this.rb=this.Ea.L("html5_update_buffer_timeline_until_update_end");this.Cb=!1;this.dD=this.Ea.L("html5_enable_ssap_multi_audio_format_filtering");this.bz=this.Ea.L("html5_enable_po_token_live_caption");this.YA=this.Ea.L("html5_consume_ssdai_info_with_streaming");this.uw=this.Xa=!1;this.Vv=this.Ea.L("html5_sabr_fail_request_after_handle_available_slices");
this.Eq=g.oI(this.Ea.experiments,"html5_override_micro_discontinuities_threshold_ms")};
i0a=function(a,b,c){c=c===void 0?!1:c;b.video.j>1080&&!a.Yy&&(a.Da=36700160,a.ib=5242880,a.Oa=Math.max(4194304,a.Oa),a.Yy=!0);b.video.j>2160&&!a.Zy&&(a.Da=104857600,a.ub=13107200,a.Zy=!0);g.oI(a.Ea.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?b.isEncrypted()&&g.UA()&&g.SA("samsung")&&(g.SA("kant")||g.SA("muse"))&&(a.ub=g.oI(a.Ea.experiments,"html5_samsung_kant_limit_max_bitrate")):b.isEncrypted()&&g.UA()&&g.SA("kant")&&(a.ub=1310720);a.qm!==0&&b.isEncrypted()&&(a.ub=a.qm);a.Bn!==0&&b.isEncrypted()&&
c&&(a.ub=a.Bn);b.ub&&(a.Sv=Math.max(a.Uk,Math.min(a.Oa,5*b.ub)))};
mV=function(a){return a.C&&a.Ci};
nV=function(a){return a.C&&a.Wi&&a.playbackStartPolicy};
j0a=function(a,b,c,d){a.Wi&&(a.playbackStartPolicy=b,a.LF=c,a.KF=d)};
lV=function(a,b,c){return g.oI(a.Ea.experiments,b)||(c===void 0?0:c)};
g.k0a=function(a,b){return bK(a.info.mimeType)?b?a.info.itag===b:!0:!1};
g.l0a=function(a,b){if(a.j!=null&&g.xI(b.U())&&!a.j.isManifestless&&a.j.j.rawcc!=null)return!0;if(!a.hc())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.k0a(c,"386")});
a=!!a.j&&!a.j.isManifestless&&DTa(a.j);return b||a};
g.oV=function(a,b,c,d,e,f){g.jV.call(this,a);this.videoId=c;this.lZ=e;this.eventId=f;this.K={};this.j=null;a=d||g.sA(b).hl||"";a=a.split("_").join("-");this.C=g.tA(b,{hl:a})};
rV=function(a,b){var c=this;this.currentState=0;this.onSuccess=[];this.onFailure=[];this.currentState=a;this.result=b.result;this.error=b.error;b.promise&&b.promise.then(function(d){pV(c,d)},function(d){qV(c,d)})};
sV=function(a){return new rV(1,{result:a})};
m0a=function(a){var b=new rV(0,{});pV(b,a);return b};
uV=function(a,b){var c=new rV(0,{});a.onSuccess.push(function(d){pV(c,d)});
a.onFailure.push(function(d){try{var e=b(d);pV(c,e)}catch(f){qV(c,f)}});
tV(a);return c};
pV=function(a,b){if(b&&typeof b==="object"){if("then"in b){b.then(function(c){pV(a,c)},function(c){qV(a,c)});
return}if(b instanceof rV){b.bk(function(c){pV(a,c)});
uV(b,function(c){qV(a,c)});
return}}a.currentState=1;a.result=b;tV(a)};
qV=function(a,b){a.currentState=2;a.error=b;tV(a)};
tV=function(a){if(a.currentState===1){var b=a.onSuccess;a.onSuccess=[];a.onFailure=[];b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c(a.result)}else if(a.currentState===2)for(b=a.onFailure,a.onSuccess=[],a.onFailure=[],b=g.v(b),c=b.next();!c.done;c=b.next())c=c.value,c(a.error)};
n0a=function(a,b,c){this.B=a;this.j=b;this.onFailure=c};
o0a=function(a,b){return{Ez:a.Ez&&b.Ez,Ld:a.Ld&&b.Ld,sync:a.sync&&b.sync,streaming:a.streaming&&b.streaming}};
vV=function(a,b){var c=p0a,d=this;this.path=a;this.C=b;this.D=c;this.capabilities={Ez:!!this.C,Ld:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.G=new n0a([{name:"compileStreaming",condition:function(e){return!!d.B&&e.streaming},
Uw:function(){return WebAssembly.compileStreaming(fetch(d.path))},
onFailure:function(){return d.capabilities.streaming=!1}},
{name:"sync",condition:function(e){return e.sync},
Uw:function(){return q0a(d).bk(function(e){return new WebAssembly.Module(e)})},
onFailure:function(){return d.capabilities.sync=!1}},
{name:"async",condition:function(){return!0},
Uw:function(){return q0a(d).bk(function(e){return WebAssembly.compile(e)})},
onFailure:function(){return d.capabilities.Ld=!1}}],void 0,function(e,f,h){g.nE(Error("wasm module compile mode '"+h.name+"' failure",{cause:e}))});
this.K=new n0a([{name:"instantiateStreaming",condition:function(e){return e.Ld&&e.streaming&&!d.B&&!d.j},
Uw:function(e,f){return WebAssembly.instantiateStreaming(fetch(d.path),f).then(function(h){d.j=sV(h.module);return{instance:h.instance,cq:!1}})},
onFailure:function(){return d.capabilities.streaming=!1}},
{name:"sync",condition:function(e){return e.Ld&&e.sync},
Uw:function(e,f){return r0a(d,e).bk(function(h){return{instance:new WebAssembly.Instance(h,f),cq:!1}})},
onFailure:function(){return d.capabilities.sync=!1}},
{name:"async",condition:function(e){return e.Ld},
Uw:function(e,f){return r0a(d,e).bk(function(h){return WebAssembly.instantiate(h,f)}).bk(function(h){return{instance:h,
cq:!1}})},
onFailure:function(){return d.capabilities.Ld=!1}},
{name:"asmjs",condition:function(e){return e.Ez},
Uw:function(e,f){return new rV(0,{promise:d.C(f).then(function(h){return{instance:{exports:h},cq:!0}})})},
onFailure:function(){return d.capabilities.Ez=!1}}],function(e,f,h){return d.D(h,e.instance.exports)},function(e,f,h){g.nE(Error("wasm module instantiation mode "+h.name+" failure",{cause:e}))})};
u0a=function(a){var b=s0a;return b.instantiate(a?o0a(b.capabilities,a):b.capabilities,new t0a)};
q0a=function(a){if(a.B)return a.B;var b=fetch(a.path).then(function(c){return c.arrayBuffer()}).then(function(c){a.B=sV(c);
return c}).then(void 0,function(c){g.nE(Error("wasm module fetch failure",{cause:c}));
a.B=void 0;throw c;});
a.B=new rV(0,{promise:b});return a.B};
r0a=function(a,b){if(!b.Ld)return new rV(2,{error:Error("wasm unavailable")});if(a.j)return a.j;a.j=uV(a.compile(b).bk(function(c){a.j=sV(c);return c}),function(c){g.nE(Error("wasm module compile failure",{cause:c}));
a.j=void 0;throw c;});
return a.j};
v0a=function(){};
w0a=function(){};
t0a=function(){this.env=new v0a;this.wasi_snapshot_preview1=new w0a};
p0a=function(a,b){b._initialize();a=Math.floor(Math.random()*256);var c=Math.floor(Math.random()*256),d=0;try{d=b.malloc(16);(new Uint8Array(b.memory.buffer,d,16)).fill(a);if(b.sentinel(d,16,c)!==c*16%256)return!1;for(var e=new Uint8Array(b.memory.buffer,d,16),f=0;f<16;f++)if(e[f]!==(a+c)%256)return!1;return!0}finally{d!==0&&b.free(d)}};
wV=function(a,b){this.instance=a;this.cq=b;this.exports=this.instance.exports};
y0a=function(a,b,c){c=c===void 0?!1:c;var d=xV.Ts();return x0a(a,b,{Ez:c,Ld:!0,sync:!0,streaming:!0}).bk(function(e){xV.Hr(e.cq?"winitjs":"winit",d);return e})};
x0a=function(a,b,c){s0a||(s0a=new vV(a,b));return u0a(c).bk(function(d){return new wV(d.instance,d.cq)})};
z0a=function(a,b){g.I.call(this);var c=this;this.J=a;this.j=b;this.iJ={};this.B={};this.C=null;this.K=this.J.L("web_player_defer_modules");this.D=new Set;this.G=new g.NJ(this);this.wd={brb:function(){return c.j}};
this.Ke=new Map;g.M(this,this.G);this.G.T(a,"videodatachange",this.onVideoDataChange)};
g.yV=function(a){return a.Ke.get("captions")};
F0a=function(a,b){switch(b){case "ad":return A0a(a);case "annotations_module":return a.J.fd()?a=!1:(b=a.J,a=b.U(),b=b.getVideoData(),a=a.C||b.BU||a.controlsType==="3"?!1:a.Oa.isEmpty()&&a.playerStyle!=="annotation-editor"&&a.playerStyle!=="live-dashboard"?!!b.Xa||!!g.aT(b)||!!g.SXa(b):!0),a;case "asmjs":return a.J.U().L("html5_allow_asmjs");case "creatorendscreen":return B0a(a);case "embed":return g.nR(a.J.U());case "endscreen":return g.C0a(a);case "heartbeat":return a.AT();case "inline_preview":return a.J.U().showInlinePreviewUi;
case "kids":return zR(a.J.U());case "remote":return a.J.U().Jj;case "miniplayer":return a.J.U().showMiniplayerUiWhenMinimized;case "offline":return a.J.U().Bj;case "captions":return D0a(a);case "unplugged":return g.tR(a.J.U());case "ux":return a.J.U().eb;case "webgl":return E0a(a);case "ypc":return a.yH();case "ypc_clickwrap":return a=a.J.getVideoData(),a.Di&&!a.RE;case "yto":return!!a.J.getVideoData().La.includes("yto");default:return g.mE(Error("Module descriptor "+b+" does not match")),!1}};
zV=function(a,b,c,d,e){var f;c=c===void 0?!1:c;d=d===void 0?!1:d;var h=a.Ke.get(b);if(!h||d)if(e||(e=function(){zV(a,b,c,d)}),f||(f=function(){a.J.Hg(b)}),h=h||G0a(a,b,F0a(a,b),e,f))a.Ke.set(b,h),h.create(),a.J.publish("modulecreated",b),c&&a.J.dn("onApiChange")};
I0a=function(a){var b=b===void 0?!1:b;var c,d,e,f,h;return g.H(function(l){if(l.j==1)return(c=a.Ke.get("asmjs"))&&!b?l.return(c):(d=eV.get("asmjs"))!=null?(e=d,l.Ja(2)):g.z(l,new Promise(function(m,n){H0a(a,"asmjs",function(){var p=eV.get("asmjs");p?m(p):n("cannot load module asmjs")},n)}),3);
l.j!=2&&(e=l.B);f=e;if(!f)return l.return(Promise.reject("cannot load module asmjs"));h=new f(a.J);a.Ke.set("asmjs",h);h.create();return l.return(h)})};
L0a=function(a){J0a(a)&&a.TO();K0a(a)&&(zV(a,"captions",!0),zV(a,"endscreen"),a.fJ(),zV(a,"creatorendscreen",!0))};
K0a=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};
J0a=function(a){a=a.J.getVideoData();var b;if(b=a.L("web_player_defer_ad")){if(g.Eb(a.La,"ad")||GXa(a)||a.enableServerStitchedDai)a=!1;else{b=a.playerResponse;a=a.startSeconds;var c=b==null?void 0:b.adPlacements;if(b=c){b=Number.MAX_VALUE;c=g.v(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=(e=d.config)==null?void 0:e.adPlacementConfig;e=void 0;if(((e=f)==null?void 0:e.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var h=e=void 0;f=Number((e=f)==null?void 0:(h=
e.adTimeOffset)==null?void 0:h.offsetStartMilliseconds)||0;h=e=void 0;d=Number(((e=d.renderer)==null?void 0:(h=e.adBreakServiceRenderer)==null?void 0:h.prefetchMilliseconds)||0);d=f-d;d<b&&(b=d)}}b=b-5E3<=a*1E3}a=b?!1:!0}b=a}return b};
D0a=function(a){var b=a.J.getVideoData();return!!b.Be||!!b.captionTracks.length||g.l0a(b,a.J)};
g.C0a=function(a){var b=a.J.U();if(b.C||KR(b)||b.K||!b.Ed&&!b.Ng)return!1;var c=a.J.getPresentingPlayerType();if(c===2)return!1;if(c===3)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.FT=function(a){return a.Ke.get("webgl")};
E0a=function(a){var b=a.J.getVideoData();a=a.J.U();var c=g.nra(),d=a.L("enable_spherical_kabuki"),e;if((e=a.getWebPlayerContextConfig())==null?0:e.embedsEnableEmc3ds)return!1;e=g.IR(a);if(g.ZS(b))return c||d||e;if(g.XS(b))return e||c||d;if(g.YS(b))return e||c||!1;if(g.NS(b))return e||!1;c=b.B&&b.B.video&&b.B.video.isHdr();return e&&!g.PS(b)&&!c&&a.L("enable_webgl_noop")};
A0a=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.DS(a)?!0:!1};
B0a=function(a){if(a.J.fd())return!1;a=a.J;var b=a.U();if(b.C)return!1;var c;if(((c=b.getWebPlayerContextConfig())==null?0:c.embedsEnableEmc3ds)||b.controlsType==="3")return!1;if(b.playerStyle==="creator-endscreen-editor")return!0;c=a.getVideoData();return!!c&&(!!g.QXa(c)||!!g.RXa(c))};
G0a=function(a,b,c,d,e){try{if(c){var f=eV.get(b);if(f)return new f(a.J);H0a(a,b,d,e)}else a.J.Hg(b)}catch(h){a.J.Hg(b),g.mE(h)}return null};
AV=function(a,b,c){if(a.J.U().L("html5_dispose_modules_in_order"))for(var d=g.v(M0a),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Ke.get(e);f&&(c||f.qn(b))&&(g.ub(f),a.Ke.delete(e))}else for(d=g.v(a.Ke),e=d.next();!e.done;e=d.next())f=g.v(e.value),e=f.next().value,(f=f.next().value)&&(c||f.qn(b))&&(g.ub(f),a.Ke.delete(e))};
BV=function(a){return a.Ke.get("ad")};
N0a=function(a){if(zR(a.J.U()))return a.Ke.get("kids")};
DT=function(a){if(a.J.U().Jj)return a.Ke.get("remote")};
g.CV=function(a){if(g.tR(a.J.U()))return a.Ke.get("unplugged")};
DYa=function(a){if(a.J.U().eb)return a.Ke.get("ux")};
DV=function(a){if(a.J.U().Bj)return a.Ke.get("offline")};
g.EV=function(a){return a.Ke.get("annotations_module")};
O0a=function(a){return a.Ke.get("creatorendscreen")};
Q0a=function(a,b){var c=a.j.startsWith("https://")?a.j+"lib.wasm":a.j.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";return y0a(c,function(d){var e=a.Ke.get("asmjs");return e?Promise.resolve(e.tZ(d)):P0a(a).then(function(f){return f.tZ(d)})},b)};
P0a=function(a){var b,c;return g.H(function(d){if(d.j==1)return g.z(d,I0a(a),2);c=b=d.B;return d.return(c)})};
H0a=function(a,b,c,d){if(a.j){var e=R0a[b];S0a(a,a.j+e,function(){a.D.add(e);c.call(a)},d)}};
S0a=function(a,b,c,d){function e(){a.Na()||d.call(a)}
function f(){a.Na()||c.call(a)}
for(var h=g.of("SCRIPT"),l=!1,m,n=0;n<h.length;n++){var p=h[n];if(p.src===b||p.getAttribute("data-original-src")===b)m=p}m||(m=g.Bf("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(w){Tf(f);q&&q.apply(window,[w])};
var r=m.onerror;m.onerror=function(w){if(Math.random()<.01){var A=new g.FB("Unable to load player module",b,document.location&&document.location.origin);g.mE(A)}Tf(e);r&&r(w)};
var t=m,u=t.onreadystatechange;t.onreadystatechange=function(w){switch(t.readyState){case "loaded":case "complete":Tf(f)}u&&u(w)};
l&&((h=a.J.U().cspNonce)&&m.setAttribute("nonce",h),g.Ye(m,g.Hma(b)),h=g.of("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),a.addOnDisposeCallback(function(){m.parentNode&&m.parentNode.removeChild(m)}))};
T0a=function(a,b,c,d,e){g.GE.call(this);var f=this;this.target=a;this.VI=b;this.B=0;this.K=!1;this.D=new g.Ge(NaN,NaN);this.j=new g.NJ(this);this.Da=this.C=this.N=null;g.M(this,this.j);b=d||e?4E3:3E3;this.Y=new g.Dv(function(){FV(f,1,!1)},b,this);
g.M(this,this.Y);this.ra=new g.Dv(function(){FV(f,2,!1)},b,this);
g.M(this,this.ra);this.va=new g.Dv(function(){FV(f,512,!1)},b,this);
g.M(this,this.va);this.Ha=3E3;d||(this.C=this.j.T(a,"mouseover",this.Px),this.j.T(a,"mousemove",this.e6),this.j.T(a,"mouseleave",this.faa));Js?this.j.T(a,"keypress",this.x$):this.j.T(a,"focusin",this.L8);this.G=this.j.T(a,"mousedown",this.RV);this.Z=this.j.T(a,"touchstart",this.SV,void 0,!0);FV(this,640,!0)};
U0a=function(a){FV(a,4,!1);a.N&&(a.j.Oc(a.N),a.N=null,a.C=a.j.T(a.target,"mouseover",a.Px));a.C&&(a.j.Oc(a.C),a.C=a.j.T(a.target,"mouseover",a.Px))};
FV=function(a,b,c){a.Na();var d=!a.B;c?(a.B|=b,b&1&&a.Y.start(),b&2&&a.ra.start()):(a.B&=~b,b&1&&a.Y.stop(),b&2&&a.ra.stop(),b&512&&a.va.stop());a.B&512&&!(a.B&128)&&g.Ev(a.va,a.Ha);b=!a.B;d!==b&&a.publish("autohideupdate",b)};
g.HV=function(a){g.W.call(this,{I:"button",Ma:["ytp-large-play-button","ytp-button"],W:{"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.Ua);this.T(a,"basechromeinitialized",this.kfa);a=this.api.U();a.Z&&GV&&(this.listen("click",this.C9,this),this.listen("touchstart",this.pda,this));g.sR(a)&&g.Kv(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,
this,28572);this.Ua()};
g.IV=function(a){var b=a.U(),c=["ytp-cued-thumbnail-overlay"];b.K&&c.push("ytp-exp-contain-thumbnail");b.L("web_player_show_frame_zero_when_cued")&&c.push("ytp-exp-frame0");g.W.call(this,{I:"div",Ma:c,V:[{I:"div",S:"ytp-cued-thumbnail-overlay-image"}]});b=this.Fa("ytp-cued-thumbnail-overlay");c=new g.HV(a);g.M(this,c);c.Ka(b);this.D=new g.NJ(this);g.M(this,this.D);this.api=a;this.G=this.Fa("ytp-cued-thumbnail-overlay-image");this.C=c;this.B=new g.rF(this,250);g.M(this,this.B);this.j=new g.Dv(this.Ua,
0,this);g.M(this,this.j);this.Ua();this.T(a,"appresize",this.kc);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.Wca);pR(a.U())&&this.T(a,"videoplayerreset",this.onReset)};
V0a=function(a){if(!a.api.L("web_player_show_frame_zero_when_cued"))return!1;var b=a.api.getCurrentTime();a=a.api.getPlayerStateObject();a=g.yF(a,64)&&g.yF(a,1);return b===0&&a};
g.JV=function(a){g.W.call(this,{I:"div",Ma:["ytp-error"],W:{role:"alert"},V:[{I:"div",S:"ytp-error-content",V:[{I:"div",S:"ytp-error-icon-container",V:[{I:"svg",W:{fill:"#fff",viewBox:"0 0 48 48"},V:[{I:"path",W:{d:"M0 0h48v48H0V0z",fill:"none"}},{I:"path",W:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{I:"div",S:"ytp-error-content-wrap",
V:[{I:"div",S:"ytp-error-content-wrap-reason",xa:"{{content}}"},{I:"div",S:"ytp-error-content-wrap-subreason",xa:"{{subreason}}"}]}]}]});this.api=a;this.keys=[];this.C=!1;a.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.Ib)};
g.KV=function(a){a=a.split(W0a);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",W:{href:a[c],target:a[c+1]},xa:a[c+2]})}return{I:"span",V:b}};
MV=function(a,b,c,d,e,f,h){d=d===void 0?!1:d;e=e===void 0?!1:e;h=h===void 0?!0:h;e||(e=a.api.U().D);var l=a.api.getVideoData();b=g.aJ(g.LV[b]||"",d?{CPN:l.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);d=[];f&&d.push({I:"h2",xa:f});d.push(b[0]);h&&d.push({I:"br"});d.push({I:"a",W:{href:c,target:e?"_blank":null},S:"ytp-error-link",xa:b[2]});a.C=!0;d.push(b[4]);return{I:"span",V:d}};
X0a=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)}};
Y0a=function(a){for(var b=0;b<a.keys.length;b++)a.Oc(a.keys[b]);a.keys=[]};
Z0a=function(a){g.W.call(this,{I:"div",S:"ytp-paid-content-overlay",W:{"aria-live":"assertive","aria-atomic":"true"}});this.J=a;this.videoId=null;this.C=!1;this.innertubeCommand=this.Ie=this.j=null;var b=a.U();a.L("enable_new_paid_product_placement")&&!g.GR(b)?(this.B=new g.W({I:"a",S:"ytp-paid-content-overlay-link",W:{href:"{{href}}",target:"_blank"},V:[{I:"div",S:"ytp-paid-content-overlay-icon",xa:"{{icon}}"},{I:"div",S:"ytp-paid-content-overlay-text",xa:"{{text}}"},{I:"div",S:"ytp-paid-content-overlay-chevron",
xa:"{{chevron}}"}]}),this.T(this.B.element,"click",this.onClick)):this.B=new g.W({I:"div",Ma:["ytp-button","ytp-paid-content-overlay-text"],xa:"{{text}}"});this.D=new g.rF(this.B,250,!1,100);g.M(this,this.B);this.B.Ka(this.element);g.M(this,this.D);this.J.createServerVe(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.i6)};
a1a=function(a,b){var c=DXa(b),d=EXa(b);b.Di&&a.J.po()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.Gv(a.j),a.videoId=b.videoId,a.C=!!d,a.C&&c&&$0a(a,d,c,b)):c&&d&&$0a(a,d,c,b))};
$0a=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.Dv(a.Nb,b,a);g.M(a,a.j);d=CXa(d);b=d==null?void 0:d.navigationEndpoint;var e;d=d==null?void 0:(e=d.icon)==null?void 0:e.iconType;var f;e=(f=g.V(b,g.dF))==null?void 0:f.url;a.J.setTrackingParams(a.element,(b==null?void 0:b.clickTrackingParams)||null);b&&!e?(a.innertubeCommand=b,e="#!"):a.innertubeCommand=null;var h;a.B.update({href:(h=e)!=null?h:"#",text:c,icon:d==="MONEY_HAND"?{I:"svg",W:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"},
V:[{I:"path",W:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:e||a.innertubeCommand?g.UE():null})};
b1a=function(a,b){a.j&&(g.yF(b,8)&&a.C?(a.C=!1,a.od(),a.j.start()):(g.yF(b,2)||g.yF(b,64))&&a.videoId&&(a.videoId=null))};
NV=function(a){g.W.call(this,{I:"div",S:"ytp-spinner",V:[hZa(),{I:"div",S:"ytp-spinner-message",xa:"\u041f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e. \u0415\u0441\u043b\u0438 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0442\u0430\u043a \u0438 \u043d\u0435 \u043d\u0430\u0447\u043d\u0435\u0442\u0441\u044f, \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e."}]});
this.api=a;this.message=this.Fa("ytp-spinner-message");this.j=new g.Dv(this.show,500,this);g.M(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.B);this.Ic(a.getPlayerStateObject())};
OV=function(a){var b=[{I:"div",Ma:["ytp-unmute-icon"],V:[{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{I:"div",Ma:["ytp-unmute-text"],xa:"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a"}];b.push({I:"div",Ma:["ytp-unmute-box"],V:[]});g.LT.call(this,a,{I:"button",Ma:["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.Gk);this.listen("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&!g.nR(this.api.U());g.NE(this,a);a&&c1a(this);this.C=a};
c1a=function(a){a.j||(a.j=!0,a.api.logVisibility(a.element,!0))};
g.PV=function(a){g.NJ.call(this);var b=this;this.api=a;this.jR=!1;this.Ao=null;this.RO=!1;this.Ag=null;this.SO=this.CM=!1;this.fU=this.gU=null;this.NZ=NaN;this.eU=this.BE=!1;this.iG=0;this.UN=[];this.rS=!1;this.sK={height:0,width:0};this.l2=480;this.zfa=["ytp-player-content","html5-endscreen","ytp-overlay"];this.XK={LA:!1};var c=a.U(),d=a.qb();this.sK=a.getPlayerSize();this.UW=new g.Dv(this.BR,0,this);g.M(this,this.UW);this.On=new g.IV(a);g.M(this,this.On);g.HT(a,this.On.element,4);if(d1a(this)){var e=
new NV(a);g.M(this,e);e=e.element;g.HT(a,e,4)}var f=a.getVideoData();this.Og=new T0a(d,function(l){return b.VI(l)},f,c.Yk,!1);
g.M(this,this.Og);this.Og.subscribe("autohideupdate",this.BB,this);if(!c.disablePaidContentOverlay){var h=new Z0a(a);g.M(this,h);g.HT(a,h.element,4)}this.jU=new OV(a);g.M(this,this.jU);g.HT(this.api,this.jU.element,2);this.qQ=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.zM=new g.Dv(this.Ws,200,this);g.M(this,this.zM);this.QF=f.videoId;this.A1=new g.Dv(function(){b.iG=0},350);
g.M(this,this.A1);this.pJ=new g.Dv(function(){b.eU||e1a(b)},350,this);
g.M(this,this.pJ);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.Kv(f,"ytp-color-white")}this.T(a,"appresize",this.kc);this.T(a,"presentingplayerstatechange",this.Gk);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.Iba);this.T(a,"autonavvisibility",function(){b.Uq()});
this.T(a,"sizestylechange",function(){b.Uq()});
this.T(d,"click",this.gca,this);this.T(d,"dblclick",this.hca,this);this.T(d,"mousedown",this.kca,this);c.Ab&&(this.T(d,"gesturechange",this.ica,this),this.T(d,"gestureend",this.jca,this));this.gG=[d.Wz];this.On&&this.gG.push(this.On.element);e&&this.gG.push(e)};
f1a=function(a,b){if(!b)return!1;var c=a.api.Me();if(c.ew()&&(c=c.Jb())&&g.Of(c,b))return c.controls;for(c=0;c<a.gG.length;c++)if(g.Of(a.gG[c],b))return!1;c=g.v(a.zfa);for(var d=c.next();!d.done;d=c.next())if(g.Jv(b,d.value))return!1;return b===a.api.getRootNode()?!1:!0};
g1a=function(a){var b=a.api.getPresentingPlayerType()===2&&(a.api.qb().oK||!1)&&a.api.U().B&&GV&&wS>=11;a=a.api.U().Z&&GV;return!(!b&&!a)};
QV=function(a,b){return!a.api.isInline()&&!f1a(a,qB(b))&&g.JF(b)};
e1a=function(a){a.Og.Hv();if(a.CM&&a.SO)a.SO=!1;else if(!a.api.U().Sa&&!a.Er()){var b=a.api.getPlayerStateObject();g.yF(b,2)&&g.BT(a.api)||a.zH(b);!a.api.U().Ab||b.isCued()||g.yF(b,1024)?a.Ws():a.zM.isActive()?(a.rQ(),a.zM.stop()):a.zM.start()}};
h1a=function(a,b){var c;if((c=a.api.getVideoData())==null?0:c.mutedAutoplay){var d,e;if((d=b.target)==null?0:(e=d.className)==null?0:e.includes("ytp-info-panel"))return!1}return g.JF(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),a.api.getPresentingPlayerType()===2&&a.api.playVideo(),b=a.api.getPlayerStateObject(),!g.yF(b,4)||g.yF(b,8)||g.yF(b,2)||a.Ws(),!0):!1};
i1a=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
d1a=function(a){a=TA()&&ira()>=67&&!a.api.U().Z;return!g.SA("tizen")&&!lR&&!a&&!0};
RV=function(a,b){b=b===void 0?2:b;g.GE.call(this);this.api=a;this.j=null;this.Hd=new sB(this);g.M(this,this.Hd);this.B=nza;this.Hd.T(this.api,"presentingplayerstatechange",this.j6);this.j=this.Hd.T(this.api,"progresssync",this.Uc);this.jp=b;this.jp===1&&this.Uc()};
g.SV=function(a){g.W.call(this,{I:"div",V:[{I:"div",S:"ytp-bezel-text-wrapper",V:[{I:"div",S:"ytp-bezel-text",xa:"{{title}}"}]},{I:"div",S:"ytp-bezel",W:{role:"status","aria-label":"{{label}}"},V:[{I:"div",S:"ytp-bezel-icon",xa:"{{icon}}"}]}]});this.J=a;this.B=new g.Dv(this.show,10,this);this.j=new g.Dv(this.hide,500,this);g.M(this,this.B);g.M(this,this.j);this.hide()};
UV=function(a,b,c){if(b<=0){c=Dya();b="\u0437\u0432\u0443\u043a \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d";var d=0}else c=c?{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,W:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},d=Math.floor(b),b=d+"\u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c";TV(a,c,b,d+"%")};
j1a=function(a,b){b=b?{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:nya();var c=a.J.getPlaybackRate(),d=g.aJ("\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)});TV(a,b,d,c+"x")};
k1a=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";TV(a,gZa(),b)};
TV=function(a,b,c,d){d=d===void 0?"":d;a.updateValue("label",c===void 0?"":c);a.updateValue("icon",b);g.Gv(a.j);a.B.start();a.updateValue("title",d);g.Ov(a.element,"ytp-bezel-text-hide",!d)};
l1a=function(a,b){g.W.call(this,{I:"button",Ma:["ytp-button","ytp-cards-button"],W:{"aria-label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.nR(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")?qya():{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",
Jc:!0,S:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},{I:"div",S:"ytp-cards-button-title",xa:"\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",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",S:"ytp-svg-shadow",W:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},
{I:"path",S:"ytp-svg-fill",W:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{I:"path",S:"ytp-svg-shadow-fill",W:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{I:"div",
S:"ytp-cards-button-title",xa:"\u041f\u043e\u043a\u0443\u043f\u043a\u0438"}]}]});this.J=a;this.C=b;this.j=null;this.B=new g.rF(this,250,!0,100);g.M(this,this.B);g.Ov(this.C,"ytp-show-cards-title",g.nR(a.U()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.eba);this.vH(!0)};
m1a=function(a,b){g.W.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",W:{"aria-label":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438","aria-haspopup":"true"},V:[qya()]},{I:"span",S:"ytp-cards-teaser-label",xa:"{{text}}"},{I:"button",S:"ytp-cards-teaser-close-button",W:{"aria-label":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},
V:[g.VE()]}]:[{I:"span",S:"ytp-cards-teaser-label",xa:"{{text}}"}]}]});var c=this;this.J=a;this.eh=b;this.D=new g.rF(this,250,!1,250);this.j=null;this.N=new g.Dv(this.vba,300,this);this.K=new g.Dv(this.uba,2E3,this);this.G=[];this.B=null;this.Y=new g.Dv(function(){c.element.style.margin="0"},250);
this.onClickCommand=this.C=null;g.M(this,this.D);g.M(this,this.N);g.M(this,this.K);g.M(this,this.Y);a.U().L("player_new_info_card_format")?(g.Kv(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Fa("ytp-cards-teaser-close-button"),"click",this.k6),this.T(this.Fa("ytp-cards-teaser-info-icon"),"click",this.TT),this.T(this.Fa("ytp-cards-teaser-label"),"click",this.TT)):this.listen("click",this.TT);this.T(b.element,"mouseover",this.UV);this.T(b.element,"mouseout",this.TV);this.T(a,"cardsteasershow",
this.Gca);this.T(a,"cardsteaserhide",this.Nb);this.T(a,"cardstatechange",this.j3);this.T(a,"presentingplayerstatechange",this.j3);this.T(a,"appresize",this.AN);this.T(a,"onShowControls",this.AN);this.T(a,"onHideControls",this.P7);this.listen("mouseenter",this.l6)};
n1a=function(a){g.W.call(this,{I:"button",Ma:[VV.BUTTON,VV.TITLE_NOTIFICATIONS],W:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{I:"div",S:VV.TITLE_NOTIFICATIONS_ON,W:{title:"\u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435","aria-label":"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430\u0445 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b"},
V:[g.uya()]},{I:"div",S:VV.TITLE_NOTIFICATIONS_OFF,W:{title:"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u043a\u0430\u043d\u0430\u043b\u0435","aria-label":"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430\u0445 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b"},
V:[{I:"svg",W:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",W:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=a;this.j=!1;a.createClientVe(this.element,this,36927);this.listen("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")};
o1a=function(a,b){a.j=b;a.element.classList.toggle(VV.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.KN:c.IN)?(a=a.api.Hm())?UG(a,b):g.mE(Error("No innertube service available when updating notification preferences.")):g.mE(Error("No update preferences command available.")):g.mE(Error("No video data when updating notification preferences."))};
q1a=function(a,b,c){var d=d===void 0?800:d;var e=e===void 0?600:e;a=p1a(a,b);if(a=g.Re(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))gva(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)};
p1a=function(a,b){var c=document.location.protocol;return Mfa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")};
g.WV=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(b==="0"||b==="-1")b=null;if(d==="0"||d==="-1")d=null;var r=p.U(),t=r.userDisplayName&&g.sR(r);g.W.call(this,{I:"div",Ma:["ytp-button","ytp-sb"],V:[{I:"div",S:"ytp-sb-subscribe",W:t?{title:g.aJ("\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":vVa(r),"data-tooltip-opaque":String(g.nR(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",xa:b}:""]},{I:"div",S:"ytp-sb-unsubscribe",W:t?{title:g.aJ("\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":vVa(r),"data-tooltip-opaque":String(g.nR(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",xa:d}:""]}],W:{"aria-live":"polite"}});var u=this;this.channelId=h;this.J=p;this.C=q;var w=this.Fa("ytp-sb-subscribe"),A=this.Fa("ytp-sb-unsubscribe");f&&g.Kv(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var C=function(){if(r.Da){var G=u.channelId;if(m||n){var K={c:G};var N;g.HO.isInitialized()&&(N=KPa(K));K=N||"";if(N=p.getVideoData())if(N=N.subscribeCommand){var R=p.Hm();R?(UG(R,N,{botguardResponse:K,feature:m}),p.jb("SUBSCRIBE",G)):g.mE(Error("No innertube service available when updating subscriptions."))}else g.mE(Error("No subscribe command in videoData."));
else g.mE(Error("No video data available when updating subscription."))}A.focus();A.removeAttribute("aria-hidden");w.setAttribute("aria-hidden","true")}else q1a(g.AR(u.J.U()),"sb_button",u.D)},F=function(){var G=u.channelId;
if(m||n){var K=p.getVideoData();UG(p.Hm(),K.unsubscribeCommand,{feature:m});p.jb("UNSUBSCRIBE",G)}w.focus();w.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")};
this.T(w,"click",C);this.T(A,"click",F);this.T(w,"keypress",function(G){G.keyCode===13&&C(G)});
this.T(A,"keypress",function(G){G.keyCode===13&&F(G)});
this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.B);this.C&&t&&(KYa(p),yT(p,w,this),yT(p,A,this))}else g.Kv(w,"ytp-sb-disabled"),g.Kv(A,"ytp-sb-disabled")};
t1a=function(a){g.W.call(this,{I:"div",S:"ytp-title-channel",V:[{I:"div",S:"ytp-title-beacon"},{I:"a",S:"ytp-title-channel-logo",W:{href:"{{channelLink}}",target:a.U().Y,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{I:"div",S:"ytp-title-expanded-overlay",W:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{I:"div",S:"ytp-title-expanded-heading",V:[{I:"div",S:"ytp-title-expanded-title",V:[{I:"a",xa:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:a.U().Y,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",S:"ytp-title-expanded-subtitle",xa:"{{expandedSubtitle}}",W:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var b=this;this.api=a;this.channel=this.Fa("ytp-title-channel");this.B=this.Fa("ytp-title-channel-logo");this.channelName=this.Fa("ytp-title-expanded-title");this.G=this.Fa("ytp-title-expanded-overlay");this.C=this.j=this.subscribeButton=null;this.D=!1;a.createClientVe(this.B,this,36925);a.createClientVe(this.channelName,this,
37220);g.nR(this.api.U())&&r1a(this);this.T(a,"videodatachange",this.Ua);this.T(a,"videoplayerreset",this.Ua);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Re(s1a(b));c.preventDefault()});
this.T(this.B,"click",this.Kaa);this.Ua()};
u1a=function(a){if(!a.api.U().Ub){var b=a.api.getVideoData(),c=new g.WV("\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.Ul,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,((d=b.subscribeButtonRenderer)==null?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)});
a.subscribeButton=c;g.M(a,a.subscribeButton);a.subscribeButton.Ka(a.G);a.subscribeButton.hide();var e=new n1a(a.api);a.j=e;g.M(a,e);e.Ka(a.G);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.gm&&(e.show(),a.api.logVisibility(e.element,!0))});
a.T(a.api,"UNSUBSCRIBE",function(){b.gm&&(e.hide(),a.api.logVisibility(e.element,!1),o1a(e,!1))})}};
r1a=function(a){var b=a.api.U();u1a(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.Xa||(a.T(a.channel,"mouseenter",a.nP),a.T(a.channel,"mouseleave",a.HO),a.T(a.channel,"focusin",a.nP),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.HO()}));
a.C=new g.Dv(function(){a.isExpanded()&&(a.api.logVisibility(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.logVisibility(a.subscribeButton.element,!1)),a.j&&(a.j.hide(),a.api.logVisibility(a.j.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.M(a,a.C);a.T(a.channel,v1a,function(){w1a(a)});
a.T(a.api,"onHideControls",a.YS);a.T(a.api,"appresize",a.YS);a.T(a.api,"fullscreentoggled",a.YS)};
w1a=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
x1a=function(a){var b=a.api.getPlayerSize();return g.nR(a.api.U())&&b.width>=524};
s1a=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.LR(b)+c.Ab;g.kT(c)&&(d="https://music.youtube.com"+c.Ab);if(!g.nR(b))return d;b={};g.qT(a.api,"addEmbedsConversionTrackingParams",[b]);a.api.L("embeds_web_enable_referring_feature_deprecation")||g.JO(b,"emb_ch_name_ex");return g.to(d,b)};
XV=function(a){var b=g.OT({"aria-haspopup":"true"});g.NT.call(this,b,a);this.listen("keydown",this.j)};
YV=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
y1a=function(a,b){g.W.call(this,{I:"div",S:"ytp-user-info-panel",W:{"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().Da&&!a.L("embeds_web_always_enable_signed_out_state")?[{I:"div",S:"ytp-user-info-panel-icon",xa:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",S:"ytp-user-info-panel-info",W:{tabIndex:"{{userInfoFocusable}}",role:"text"},xa:"{{watchingAsUsername}}"},{I:"div",S:"ytp-user-info-panel-info",
W:{tabIndex:"{{userInfoFocusable2}}",role:"text"},xa:"{{watchingAsEmail}}"}]}]:[{I:"div",S:"ytp-user-info-panel-icon",xa:"{{icon}}"},{I:"div",S:"ytp-user-info-panel-content",V:[{I:"div",V:[{I:"text",W:{tabIndex:"{{userInfoFocusable}}"},xa:"\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",W:{tabIndex:"{{userInfoFocusable2}}",role:"button"},xa:a.U().Ub?"":"\u0412\u043e\u0439\u0442\u0438 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 YouTube"}]}]}]});
this.Va=a;this.j=b;a.U().Da||a.U().Ub||(a=this.Fa("ytp-user-info-panel-login"),this.T(a,"click",this.n6));this.closeButton=new g.W({I:"button",Ma:["ytp-collapse","ytp-button"],W:{title:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},V:[g.YE()]});this.closeButton.Ka(this.element);g.M(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.m6);this.Ua()};
A1a=function(a,b,c){g.tU.call(this,a);this.Gb=b;this.me=c;this.getVideoUrl=new XV(6);this.jo=new XV(5);this.Vn=new XV(4);this.qc=new XV(3);this.eH=new g.NT(g.OT({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.NT(g.OT(),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.Xz=new g.OE({I:"div",Ma:["ytp-copytext","ytp-no-contextmenu"],W:{draggable:"false",tabindex:"1"},xa:"{{text}}"});this.tX=new sU(this.J,this.Xz);this.XH=this.uu=null;g.nR(this.J.U())&&(this.closeButton=new g.W({I:"button",Ma:["ytp-collapse","ytp-button"],W:{title:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},V:[g.YE()]}),g.M(this,this.closeButton),this.closeButton.Ka(this.element),this.closeButton.listen("click",this.S7,this));g.nR(this.J.U())&&(this.Ol=new g.NT(g.OT(),8,"\u0410\u043a\u043a\u0430\u0443\u043d\u0442"),
g.M(this,this.Ol),this.Vc(this.Ol,!0),this.Ol.listen("click",this.wca,this),a.createClientVe(this.Ol.element,this.Ol,137682));this.J.U().En&&(this.Hl=new WT("\u041f\u043e\u0432\u0442\u043e\u0440",7),g.M(this,this.Hl),this.Vc(this.Hl,!0),this.Hl.listen("click",this.nba,this),a.createClientVe(this.Hl.element,this.Hl,28661));g.M(this,this.getVideoUrl);this.Vc(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.cba,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.M(this,
this.jo);this.Vc(this.jo,!0);this.jo.listen("click",this.dba,this);a.createClientVe(this.jo.element,this.jo,28660);g.M(this,this.Vn);this.Vc(this.Vn,!0);this.Vn.listen("click",this.bba,this);a.createClientVe(this.Vn.element,this.Vn,28658);g.M(this,this.qc);this.Vc(this.qc,!0);this.qc.listen("click",this.aba,this);g.M(this,this.eH);this.Vc(this.eH,!0);this.eH.listen("click",this.cca,this);g.M(this,this.showVideoInfo);this.Vc(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.xca,this);g.M(this,
this.Xz);this.Xz.listen("click",this.Paa,this);g.M(this,this.tX);b=document.queryCommandSupported&&document.queryCommandSupported("copy");Saa("Chromium")>=43&&(b=!0);Saa("Firefox")<=40&&(b=!1);b&&(this.uu=new g.W({I:"textarea",S:"ytp-html5-clipboard",W:{readonly:"",tabindex:"-1"}}),g.M(this,this.uu),this.uu.Ka(this.element));var d;(d=this.Ol)==null||d.setIcon(wya());var e;(e=this.Hl)==null||e.setIcon({I:"svg",W:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",
fill:"white"}}]});this.qc.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
fill:"white","fill-rule":"evenodd"}}]});this.eH.setIcon(oya());this.showVideoInfo.setIcon(pya());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);z1a(this);this.wH(this.J.getVideoData())};
ZV=function(a,b){var c=!1;if(a.uu){var d=a.uu.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Gb.Nb():(a.Xz.Dd(b,"text"),g.wU(a.Gb,a.tX),iZa(a.Xz.element),a.uu&&(a.uu=null,z1a(a)));return c};
z1a=function(a){var b=!!a.uu;a.qc.Qj(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");YV(a.qc,!b);a.Vn.Qj(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");
YV(a.Vn,!b);a.getVideoUrl.Qj(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");YV(a.getVideoUrl,!b);a.jo.Qj(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");
YV(a.jo,!b);a.Vn.setIcon(b?lya():null);a.getVideoUrl.setIcon(b?WE():null);a.jo.setIcon(b?WE():null)};
B1a=function(a){return g.nR(a.J.U())?a.Ol:a.Hl};
D1a=function(a,b){g.vU.call(this,a);this.me=b;this.D=new g.NJ(this);this.va=new g.Dv(this.Lca,1E3,this);this.Da=this.C=null;g.M(this,this.D);g.M(this,this.va);a.createClientVe(this.element,this,28656);g.Kv(this.element,"ytp-contextmenu");C1a(this);this.hide()};
C1a=function(a){g.uB(a.D);var b=a.J.U();b.playerStyle==="gvn"||b.B||b.Xa||(b=a.J.qb(),a.D.T(b,"contextmenu",a.Naa),a.D.T(b,"touchstart",a.p6,null,!0),a.D.T(b,"touchmove",a.w0,null,!0),a.D.T(b,"touchend",a.w0,null,!0))};
E1a=function(a){a.J.isFullscreen()?g.HT(a.J,a.element,10):a.Ka(document.body)};
$V=function(a,b,c){c=c===void 0?240:c;g.W.call(this,{I:"button",Ma:["ytp-button","ytp-copylink-button"],W:{title:"{{title-attr}}","data-tooltip-opaque":String(g.nR(a.U()))},V:[{I:"div",S:"ytp-copylink-icon",xa:"{{icon}}"},{I:"div",S:"ytp-copylink-title",xa:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443",W:{"aria-hidden":"true"}}]});this.api=a;this.Pe=b;this.j=c;this.visible=!1;this.tooltip=this.Pe.Te();b=a.U();this.tooltip.element.setAttribute("aria-live",
"polite");g.Ov(this.element,"ytp-show-copylink-title",g.nR(b));a.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ua);this.T(a,"videoplayerreset",this.Ua);this.T(a,"appresize",this.Ua);this.Ua();this.addOnDisposeCallback(g.xT(this.tooltip,this.element))};
F1a=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.Yp&&!g.jT(c)&&!a.api.fd()&&!b};
G1a=function(a){a.updateValue("icon",hya());if(a.api.U().B)a.tooltip.BH(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.Yh();a.tooltip.BH(a.element);
var b=a.listen("mouseleave",function(){a.Oc(b);a.Ua();a.tooltip.Am()})}};
H1a=function(a,b){return g.H(function(c){if(c.j==1)return g.Ba(c,2),g.z(c,navigator.clipboard.writeText(b),4);if(c.j!=2)return c.return(!0);g.Da(c);var d=c.return,e=!1,f=g.Bf("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(yC){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)})};
aW=function(a){g.W.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",xa:"{{seekText}}"},{I:"div",S:"ytp-doubletap-tooltip-label",xa:"{{seekTime}}"}]}]}]});this.J=a;this.D=new g.Dv(this.show,10,this);this.B=new g.Dv(this.hide,700,this);this.K=this.C=0;this.G=!1;this.j=this.Fa("ytp-doubletap-static-circle");g.M(this,this.D);g.M(this,this.B);this.hide();this.N=this.Fa("ytp-doubletap-fast-forward-ve");this.Y=this.Fa("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")};
bW=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.Gv(a.B);a.D.start();a.element.setAttribute("data-side",b===-1?"back":"forward");g.Kv(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";b===1?(a.j.style.right="",a.j.style.left=d.width*.8-30+"px"):b===-1&&(a.j.style.right="",a.j.style.left=d.width*.1-15+"px");a.j.style.top=d.height*.5+15+"px";I1a(a,a.G?a.C:c)};
J1a=function(a,b,c){g.Gv(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.Kv(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")};
I1a=function(a,b){b=g.aJ("$TOTAL_SEEK_TIME \u0441\u0435\u043a.",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)};
K1a=function(a){rU.call(this,a,!1,!0);this.Ha=[];this.Qb=[];this.Y=!0;this.badge.element.classList.add("ytp-featured-product");this.Ga=new g.W({I:"div",S:"ytp-featured-product-open-in-new"});g.M(this,this.Ga);this.countdownTimer=new g.W({I:"text",S:"ytp-featured-product-countdown",xa:"{{content}}"});this.countdownTimer.hide();g.M(this,this.countdownTimer);this.B=new g.W({I:"div",S:"ytp-featured-product-trending",V:[{I:"div",S:"ytp-featured-product-trending-icon"},{I:"text",S:"ytp-featured-product-trending-text",
xa:"{{trendingOffer}}"}]});this.B.hide();g.M(this,this.B);this.overflowButton=new g.W({I:"button",Ma:["ytp-featured-product-overflow-icon","ytp-button"],W:{"aria-haspopup":"true"}});this.overflowButton.hide();g.M(this,this.overflowButton);this.infoButton=new g.W({I:"button",Ma:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.M(this,this.infoButton);this.N=new g.W({I:"text",S:"ytp-featured-product-exclusive-countdown",xa:"{{content}}",W:{id:"exclusiveCountdown","aria-hidden":"true"}});
this.N.hide();g.M(this,this.N);this.K=new g.W({I:"div",S:"ytp-featured-product-exclusive-container",W:{"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",xa:"{{exclusive}}",W:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.N]});this.K.hide();g.M(this,this.K);this.banner=new g.W({I:"a",S:"ytp-featured-product-container",
V:[{I:"div",S:"ytp-featured-product-thumbnail",V:[{I:"img",W:{src:"{{thumbnail}}"}},this.Ga]},{I:"div",S:"ytp-featured-product-details",V:[{I:"text",S:"ytp-featured-product-title",xa:"{{title}}"},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div",S:"ytp-featured-product-price-container",W:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price-when-promotion-text-enabled",xa:"{{price}}",W:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-promotion-text",
xa:"{{promotionText}}",W:{"aria-hidden":"true"}}]}:{I:"div",W:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price",xa:"{{price}}",W:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-sales-original-price",xa:"{{salesOriginalPrice}}",W:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-price-drop-reference-price",xa:"{{priceDropReferencePrice}}",W:{"aria-hidden":"true"}}]},this.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{I:"div",
S:"ytp-featured-product-when-promotion-text-enabled",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",xa:"{{affiliateDisclaimer}}"},this.B,{I:"text",S:"ytp-featured-product-vendor-when-promotion-text-enabled",xa:"{{vendor}}"}]}:{I:"div",V:[{I:"text",S:"ytp-featured-product-affiliate-disclaimer",xa:"{{affiliateDisclaimer}}"},this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.K:null,this.B,{I:"text",S:"ytp-featured-product-vendor",
xa:"{{vendor}}"},this.countdownTimer]}]},this.infoButton,this.dismissButton,this.overflowButton]});g.M(this,this.banner);this.banner.Ka(this.C.element);this.T(this.J,g.VI("featured_product"),this.jea);this.T(this.J,g.WI("featured_product"),this.eC);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.infoButton.element,"click",this.fba);this.T(this.overflowButton.element,"click",this.q6);this.T(a,"featuredproductdismissed",this.Uu)};
L1a=function(a){var b,c;a=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;var d,e,f;return(a==null||!a.affiliateDisclaimer)&&(a==null?0:(d=a.exclusivesData)==null?0:d.exclusiveOfferLabelText)&&(a==null?0:(e=a.exclusivesData)==null?0:e.expirationTimestampMs)&&(a==null?0:(f=a.exclusivesData)==null?0:f.exclusiveOfferCountdownText)?!0:!1};
N1a=function(a){var b,c,d,e,f=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:(e=d.exclusivesData)==null?void 0:e.expirationTimestampMs;b=(Number(f)-Date.now())/1E3;if(b>0){if(b<604800){var h,l,m,n;c=(h=a.j)==null?void 0:(l=h.bannerData)==null?void 0:(m=l.itemData)==null?void 0:(n=m.exclusivesData)==null?void 0:n.exclusiveOfferCountdownText;if(c!==void 0)for(h=Date.now(),l=g.v(c),m=l.next();!m.done;m=l.next())if(m=m.value,m!==void 0&&m.text!==void 0&&(n=Number(m.textDisplayStartTimestampMs),
!isNaN(n)&&h>=n)){m.insertCountdown?(b=m.text.replace(/\$0/,String(gLa({seconds:b}))),a.N.Dd(b)):a.N.Dd(m.text);a.N.show();break}}var p,q,r,t;a.K.update({exclusive:(p=a.j)==null?void 0:(q=p.bannerData)==null?void 0:(r=q.itemData)==null?void 0:(t=r.exclusivesData)==null?void 0:t.exclusiveOfferLabelText});a.K.show();cW(a);var u;(u=a.Ub)==null||u.start()}else M1a(a)};
M1a=function(a){var b;(b=a.Ub)==null||b.stop();a.N.hide();a.K.hide();dW(a)};
O1a=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;return a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(d==null||!d.priceReplacementText)&&(d==null?0:d.promotionText)?d==null?void 0:d.promotionText.content:null};
P1a=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData,e,f;if(!(d!=null&&d.priceReplacementText||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(d==null?0:(e=d.dealsData)==null?0:(f=e.sales)==null?0:f.originalPrice)){var h,l;return d==null?void 0:(h=d.dealsData)==null?void 0:(l=h.sales)==null?void 0:l.originalPrice}return null};
Q1a=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData,e,f,h,l;if(!((d==null?0:d.priceReplacementText)||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(d==null?0:(e=d.dealsData)==null?0:(f=e.sales)==null?0:f.originalPrice))&&(d==null?0:(h=d.dealsData)==null?0:(l=h.priceDrop)==null?0:l.referencePrice)){var m,n;return d==null?void 0:(m=d.dealsData)==null?void 0:(n=m.priceDrop)==null?void 0:n.referencePrice}return null};
R1a=function(a){var b,c,d=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:c.itemData;if(d==null?0:d.priceReplacementText)return d==null?void 0:d.priceReplacementText;if((d==null?0:d.promotionText)&&a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var e;return(d==null?void 0:d.price)+" "+(d==null?void 0:(e=d.promotionText)==null?void 0:e.content)}var f,h;if(d==null?0:(f=d.dealsData)==null?0:(h=f.sales)==null?0:h.originalPrice){var l,m;return d==null?void 0:(l=d.dealsData)==
null?void 0:(m=l.sales)==null?void 0:m.salesPriceAccessibilityLabel}var n,p;if(d==null?0:(n=d.dealsData)==null?0:(p=n.priceDrop)==null?0:p.referencePrice){var q,r;return(d==null?void 0:d.price)+" "+(d==null?void 0:(q=d.dealsData)==null?void 0:(r=q.priceDrop)==null?void 0:r.referencePrice)}return d==null?void 0:d.price};
S1a=function(a){if(a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var b,c,d;return a.B.Ib?null:(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:d.vendorName}var e,f,h,l,m,n;return a.B.Ib||a.K.Ib||((e=a.j)==null?0:(f=e.bannerData)==null?0:(h=f.itemData)==null?0:h.affiliateDisclaimer)?null:(l=a.j)==null?void 0:(m=l.bannerData)==null?void 0:(n=m.itemData)==null?void 0:n.vendorName};
U1a=function(a,b){eW(a);if(b){var c=g.HS.getState().entities;c=WN(c,"featuredProductsEntity",b);if(c!=null&&c.productsData){b=[];c=g.v(c.productsData);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if((e=d)!=null&&e.identifier&&d.featuredSegments){a.Ha.push(d);var f=void 0;e=g.v((f=d)==null?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next()){var h=f.value;f=T1a(h.startTimeSec);f!==void 0&&(h=T1a(h.endTimeSec),b.push(new g.UI(f*1E3,h===void 0?0x7ffffffffffff:h*1E3,{id:d.identifier,
namespace:"featured_product"})))}}}a.J.nf(b)}}};
dW=function(a){if(a.trendingOfferEntityKey){var b=g.HS.getState().entities;if(b=WN(b,"trendingOfferEntity",a.trendingOfferEntityKey)){var c,d,e;b.encodedSkuId!==((c=a.j)==null?void 0:(d=c.bannerData)==null?void 0:(e=d.itemData)==null?void 0:e.encodedOfferSkuId)?cW(a):(a.B.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.B.show(),a.banner.update({vendor:S1a(a)}))}else cW(a)}else cW(a)};
cW=function(a){a.B.hide();a.banner.update({vendor:S1a(a)})};
eW=function(a){a.Ha=[];a.eC();a.J.sf("featured_product")};
V1a=function(a){var b,c,d,e,f=(b=a.j)==null?void 0:(c=b.bannerData)==null?void 0:(d=c.itemData)==null?void 0:(e=d.hiddenProductOptions)==null?void 0:e.dropTimestampMs;b=(Number(f)-Date.now())/1E3;a.countdownTimer.Dd(gLa({seconds:b}));if(b>0){var h;(h=a.Lb)==null||h.start()}};
W1a=function(a){var b;(b=a.Lb)==null||b.stop();a.countdownTimer.hide()};
T1a=function(a){if(a!==void 0&&a.trim()!==""&&(a=Math.trunc(Number(a.trim())),!(isNaN(a)||a<0)))return a};
a2a=function(a,b,c){g.W.call(this,{I:"div",Ma:["ytp-info-panel-action-item"],V:[{I:"div",S:"ytp-info-panel-action-item-disclaimer",xa:"{{disclaimer}}"},{I:"a",Ma:["ytp-info-panel-action-item-button","ytp-button"],W:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{I:"div",S:"ytp-info-panel-action-item-icon",xa:"{{icon}}"},{I:"div",S:"ytp-info-panel-action-item-label",xa:"{{label}}"}]}]});this.J=a;this.j=c;this.disclaimer=this.Fa("ytp-info-panel-action-item-disclaimer");this.button=
this.Fa("ytp-info-panel-action-item-button");this.xe=!1;this.J.createServerVe(this.element,this,!0);this.listen("click",this.onClick);a="";c=g.V(b==null?void 0:b.onTap,qE);var d=g.V(c,g.dF);this.xe=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.xe=!0,g.Oe(this.button,g.je(a))):(d=g.V(c,X1a))&&!this.j?((a=d.phoneNumbers)&&a.length>0?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.xe=!0,g.Oe(this.button,g.je(a,[Y1a]))):(c=g.V(c,Z1a))&&!this.j&&(a=c.phoneNumber?
"tel:"+c.phoneNumber:"",this.xe=!0,g.Oe(this.button,g.je(a,[$1a])));var e;if(c=(e=b.disclaimerText)==null?void 0:e.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var f;this.update({label:(f=b.bodyText)==null?void 0:f.content,icon:XE(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:(h=b.bodyText)==null?void 0:h.content,icon:XE()})}this.J.setTrackingParams(this.element,b.trackingParams||null);this.xe&&(this.B={externalLinkData:{url:a}})};
b2a=function(a,b){var c=JE();g.LT.call(this,a,{I:"div",S:"ytp-info-panel-detail-skrim",V:[{I:"div",S:"ytp-info-panel-detail",W:{role:"dialog",id:c},V:[{I:"div",S:"ytp-info-panel-detail-header",V:[{I:"div",S:"ytp-info-panel-detail-title",xa:"{{title}}"},{I:"button",Ma:["ytp-info-panel-detail-close","ytp-button"],W:{"aria-label":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},V:[g.VE()]}]},{I:"div",S:"ytp-info-panel-detail-body",xa:"{{body}}"},{I:"div",S:"ytp-info-panel-detail-items"}]}]},250);this.j=
b;this.items=this.Fa("ytp-info-panel-detail-items");this.C=new g.NJ(this);this.itemData=[];this.D=c;b=this.Fa("ytp-info-panel-detail-close");this.T(b,"click",this.Nb);b=this.Fa("ytp-info-panel-detail-skrim");this.T(b,"click",this.Nb);b=this.Fa("ytp-info-panel-detail");this.T(b,"click",function(d){d.stopPropagation()});
g.M(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()};
c2a=function(a,b){a=g.v(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.J.logVisibility(c.element,b)};
f2a=function(a,b){g.W.call(this,{I:"div",S:"ytp-info-panel-preview",W:{"aria-live":"assertive","aria-atomic":"true","aria-owns":b.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.nR(a.U()))},V:[{I:"div",S:"ytp-info-panel-preview-text",xa:"{{text}}"},{I:"div",S:"ytp-info-panel-preview-chevron",xa:"{{chevron}}"}]});var c=this;this.J=a;this.Ie=this.j=this.videoId=null;this.D=this.showControls=this.B=!1;this.T(this.element,"click",function(){a.logClick(c.element);a.Er();MT(b)});
this.C=new g.rF(this,250,!1,100);g.M(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.t6);this.T(this.J,"paidcontentoverlayvisibilitychange",this.T_);this.T(this.J,"infopaneldetailvisibilitychange",this.T_);var d=a.getVideoData()||{};d2a(d)&&e2a(this,d);this.T(a,"onShowControls",this.s6);this.T(a,"onHideControls",this.r6)};
e2a=function(a,b){if(!b.Di||!a.J.po()){var c=b.VD||1E4,d=d2a(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.Gv(a.j),a.videoId=b.videoId,d?(g2a(a,c,b),a.od()):(a.Nb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),g2a(a,c,b),a.od())}};
d2a=function(a){var b,c,d,e;return!!((b=a.Sf)==null?0:(c=b.title)==null?0:c.content)||!!((d=a.Sf)==null?0:(e=d.bodyText)==null?0:e.content)};
g2a=function(a,b,c){a.j&&a.j.dispose();a.j=new g.Dv(a.pea,b,a);g.M(a,a.j);var d;b=((d=c.Sf)==null?void 0:d.trackingParams)||null;a.J.setTrackingParams(a.element,b);var e;var f,h;if(c==null?0:(f=c.Sf)==null?0:(h=f.title)==null?0:h.content){var l;d=(e=c.Sf)==null?void 0:(l=e.title)==null?void 0:l.content;var m,n;if((m=c.Sf)==null?0:(n=m.bodyText)==null?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=((p=c.Sf)==null?void 0:(q=p.bodyText)==null?void 0:q.content)||"";a.update({text:e+c,chevron:g.UE()})};
h2a=function(a,b){a.j&&(g.yF(b,8)?(a.B=!0,a.od(),a.j.start()):(g.yF(b,2)||g.yF(b,64))&&a.videoId&&(a.videoId=null))};
fW=function(a){var b=null;try{b=a.toLocaleString("ru",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
gW=function(a,b){var c=0;a=g.v(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return c===0?c:c-1};
i2a=function(a,b){for(var c=0,d=g.v(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};
j2a=function(a,b){b=gW(a,b)+1;return b<a.length?b:-1};
k2a=function(a,b){return gW(a,b)-1};
l2a=function(a,b){return new g.UI(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
n2a=function(a,b,c,d,e,f,h,l){g.NJ.call(this);var m=this;this.api=a;this.contextMenu=c;this.Og=d;this.me=e;this.j=f;this.K=h;this.progressBar=l;this.G=new g.Dv(function(){m2a(m,!1)},1E3);
this.B="";this.C={rK:!1};this.D=!1;g.M(this,this.G);this.T(b,"mousedown",function(){hW(m,!1)});
this.T(c.element,"mousedown",function(){hW(m,!1)});
this.T(b,"keydown",this.OY);this.T(c.element,"keydown",this.OY);this.T(b,"keyup",this.PY);this.T(c.element,"keyup",this.PY)};
hW=function(a,b){a.D=b;g.Ov(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.Ov(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
jW=function(a,b,c,d){var e=g.yV(a.api.Bb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.iW.length;h++){var l=g.iW[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(h===0)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);m2a(a,!0);a.G.start()}};
m2a=function(a,b){g.yV(a.api.Bb())&&a.api.setOption("captions","sampleSubtitles",b)};
g.kW=function(a,b){g.W.call(this,{I:"button",Ma:["ytp-button","ytp-overflow-button"],W:{title:"\u0414\u0440\u0443\u0433\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b","aria-haspopup":"true","aria-owns":b.element.id},V:[{I:"div",S:"ytp-overflow-icon",V:[{I:"svg",W:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},V:[{I:"path",W:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",
fill:"#fff"}}]}]}]});var c=this;this.J=a;this.xi=b;this.j=this.visible=!1;a.createClientVe(this.element,this,16499);this.T(a,"videoplayerreset",this.Ua);this.T(a,"appresize",this.Ua);this.T(a,"fullscreentoggled",this.Ua);this.T(a,"presentingplayerstatechange",this.Ua);this.Ua();yT(a,this.element,this);this.listen("click",function(){a.logClick(c.element);MT(b,c.element,!1)});
this.T(b.closeButton,"click",function(){c.focus()})};
o2a=function(a){g.LT.call(this,a,{I:"div",S:"ytp-overflow-panel",W:{id:JE(),role:"dialog"},V:[{I:"div",S:"ytp-overflow-panel-content",V:[{I:"div",S:"ytp-overflow-panel-action-buttons",xa:"{{buttons}}"}]},{I:"button",Ma:["ytp-overflow-panel-close","ytp-button"],W:{title:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},V:[g.VE()]}]},250);this.actionButtons=[];this.j=this.Fa("ytp-overflow-panel-content");this.closeButton=this.Fa("ytp-overflow-panel-close");this.T(this.closeButton,"click",this.Nb);yT(a,
this.closeButton,this);this.listen("click",this.u6);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
p2a=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.updateValue("buttons",a.actionButtons))};
q2a=function(a,b){a=g.v(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Mc(b)};
r2a=function(a,b,c){var d=g.dV(b,c),e=d.kh("default.jpg");g.W.call(this,{I:"a",Ma:["ytp-video-menu-item","ytp-button"],W:{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",xa:String(c+1)},{I:"div",S:"ytp-video-menu-item-now-playing",xa:"\u25b6"},{I:"div",S:"ytp-video-menu-item-thumbnail",W:{style:e?"background-image: url("+e+");":void 0}},{I:"div",S:"ytp-video-menu-item-title",xa:d.title},{I:"div",
S:"ytp-video-menu-item-author",xa:d.author}]});this.api=a;this.index=c;this.listen("click",this.onClick)};
s2a=function(a){g.LT.call(this,a,{I:"div",S:"ytp-playlist-menu",W:{role:"dialog",id:JE()},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",xa:"{{title}}"}:{I:"a",S:"ytp-playlist-menu-title-name",W:{href:"{{playlisturl}}"},xa:"{{title}}"},{I:"button",Ma:["ytp-playlist-menu-close","ytp-button"],W:{"aria-label":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},V:[g.VE()]}]},{I:"div",S:"ytp-playlist-menu-subtitle",xa:"{{subtitle}}"}]},
{I:"div",S:"ytp-playlist-menu-items",W:{role:"menu"}}]},250);this.api=a;this.D=this.selected=this.G=this.playlist=null;this.items=this.Fa("ytp-playlist-menu-items");this.C=new g.NJ(this);this.j=[];var b=this.Fa("ytp-playlist-menu-close");this.T(b,"click",this.Nb);b=this.Fa("ytp-playlist-menu-title-name");a.U().C||(this.D=this.T(b,"click",this.Kca));g.M(this,this.C);this.hide()};
lW=function(a,b){g.W.call(this,{I:"button",Ma:["ytp-playlist-menu-button","ytp-button"],W:{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",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,W:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{I:"div",S:"ytp-playlist-menu-button-text",xa:"{{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.Ua);this.T(a,"appresize",this.Ua);this.hide();this.j();yT(a,this.element,this);this.listen("click",function(){a.logClick(c.element);MT(b,c.element,!1)})};
t2a=function(a,b){g.W.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",xa:"{{title}}"},{I:"div",S:"ytp-promotooltip-details",xa:"{{details}}"}]},{I:"div",S:"ytp-promotooltip-buttons",V:[{I:"div",S:"ytp-promotooltip-dismiss-button",xa:"{{dismissButtonText}}",W:{tabindex:"0"}},{I:"div",S:"ytp-promotooltip-accept-button",xa:"{{acceptButtonText}}",W:{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.Fa("ytp-promotooltip-title");this.details=this.Fa("ytp-promotooltip-details");this.acceptButton=this.Fa("ytp-promotooltip-accept-button");this.dismissButton=this.Fa("ytp-promotooltip-dismiss-button");this.j=this.D=!1;this.C=!0;this.Y=this.G=this.N=this.K=!1;this.wd={sH:function(d){c.sH(d)}};
g.NE(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.w6);this.T(b,"onHideControls",this.v6);this.T(b,"resize",this.kc);this.T(this.acceptButton,"click",this.paa);this.T(this.dismissButton,"click",this.Taa);this.T(document,"click",this.x6)};
u2a=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=b.length>0?b[0]:null;var c=g.wf("ytp-chrome-bottom"),d=g.wf("ytp-ad-module");a.C=!(c==null||!c.contains(b));a.K=!(d==null||!d.contains(b));a.N=!(b==null||!b.hasAttribute("data-tooltip-target-fixed"));return b};
x2a=function(a,b,c){if(!a.D){if(b){a.tooltipRenderer=b;b=a.tooltipRenderer.text;var d=!1,e;(b==null?0:(e=b.runs)==null?0:e.length)&&b.runs[0].text&&(a.update({title:b.runs[0].text.toString()}),d=!0);g.Vs(a.title,d);b=a.tooltipRenderer.detailsText;e=!1;var f;if((b==null?0:(f=b.runs)==null?0:f.length)&&b.runs[0].text){d=b.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(f>-1)if(a.tooltipRenderer.targetId){b=[];d=d.split("$TARGET_ICON");var h=new g.KE({I:"span",S:"ytp-promotooltip-details-icon",
V:[v2a[a.tooltipRenderer.targetId]]});g.M(a,h);for(var l=[],m=g.v(d),n=m.next();!n.done;n=m.next())n=new g.KE({I:"span",S:"ytp-promotooltip-details-component",xa:n.value}),g.M(a,n),l.push(n);d.length===2?(b.push(l[0].element),b.push(h.element),b.push(l[1].element)):d.length===1&&(f===0?(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(typeof f!=="string")for(g.Ef(a.details),e=g.v(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value);
else a.update({details:f});e=!0}}g.Vs(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;((p=g.V(e,g.cM))==null?0:(q=p.text)==null?0:(r=q.runs)==null?0:r.length)&&g.V(e,g.cM).text.runs[0].text&&(a.update({acceptButtonText:g.V(e,g.cM).text.runs[0].text.toString()}),f=!0);g.Vs(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var t,u,w;((t=g.V(p,g.cM))==null?0:(u=t.text)==null?0:(w=u.runs)==null?0:w.length)&&g.V(p,g.cM).text.runs[0].text&&(a.update({dismissButtonText:g.V(p,g.cM).text.runs[0].text.toString()}),
q=!0);g.Vs(a.dismissButton,q)}c&&(a.B=c);a.targetElement=u2a(a);a.G=!1;a.J.U().L("web_player_hide_nitrate_promo_tooltip")||g.NE(a,!0);w2a(a);a.Ib&&!a.Y&&(a.Y=!0,a.wd.sH(0));a.j&&a.J.logVisibility(a.element,a.Ib)}};
mW=function(a){g.NE(a,!1);a.j&&a.J.logVisibility(a.element,a.Ib)};
y2a=function(a){var b,c,d,e=((b=g.V(a.acceptButton,g.cM))==null?void 0:(c=b.text)==null?void 0:(d=c.runs)==null?void 0:d.length)&&!!g.V(a.acceptButton,g.cM).text.runs[0].text,f,h,l;b=((f=g.V(a.dismissButton,g.cM))==null?void 0:(h=f.text)==null?void 0:(l=h.runs)==null?void 0:l.length)&&!!g.V(a.dismissButton,g.cM).text.runs[0].text;return e||b};
w2a=function(a){var b;if(!(b=!a.targetElement)){b=a.targetElement;var c=window.getComputedStyle(b);b=c.display==="none"||c.visibility==="hidden"||b.getAttribute("aria-hidden")==="true"}if(b||a.J.isMinimized())g.NE(a,!1);else if(b=g.Us(a.targetElement),b.width&&b.height){a.J.sy(a.element,a.targetElement);var d=a.J.qb().getPlayerSize().height;c=g.Us(a.Fa("ytp-promotooltip-container")).height;a.C?a.element.style.top=d-c-b.height-12+"px":a.N||(d=a.J.ao().height-c-b.height-12,a.element.style.top=d+"px");
d=a.Fa("ytp-promotooltip-pointer");var e=g.Ss(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.NE(a,!1)};
nW=function(a){g.W.call(this,{I:"button",Ma:["ytp-replay-button","ytp-button"],W:{title:"\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c"},V:[g.Aya()]});this.J=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Ic(a.getPlayerStateObject());yT(this.J,this.element,this)};
oW=function(a,b){b=b===void 0?240:b;g.W.call(this,{I:"button",Ma:["ytp-button","ytp-search-button"],W:{title:"\u041f\u043e\u0438\u0441\u043a","data-tooltip-opaque":String(g.nR(a.U()))},V:[{I:"div",S:"ytp-search-icon",xa:"{{icon}}"},{I:"div",S:"ytp-search-title",xa:"\u041f\u043e\u0438\u0441\u043a"}]});this.api=a;this.B=b;this.visible=!1;this.updateValue("icon",{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",S:"ytp-svg-fill",W:{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.listen("click",this.onClick);this.j();this.T(a,"appresize",this.j);this.T(a,"videodatachange",this.j);yT(a,this.element,this)};
g.pW=function(a,b,c,d){d=d===void 0?240:d;g.W.call(this,{I:"button",Ma:["ytp-button","ytp-share-button"],W:{title:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.nR(a.U()))},V:[{I:"div",S:"ytp-share-icon",xa:"{{icon}}"},{I:"div",S:"ytp-share-title",xa:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f"}]});this.api=a;this.Pe=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.Pe.Te();this.j=
!1;a.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Ua);this.T(a,"videoplayerreset",this.Ua);this.T(a,"appresize",this.Ua);this.T(a,"presentingplayerstatechange",this.Ua);this.Ua();this.addOnDisposeCallback(g.xT(this.tooltip,this.element))};
z2a=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.nR(b)&&g.ET(a.api)&&g.yF(a.api.getPlayerStateObject(),128);b=b.C||b.disableSharing&&a.api.getPresentingPlayerType()!==2||!c.showShareButton||c.Yp||d||g.jT(c)||a.j;d=a.api.qb().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b};
A2a=function(a,b){b.name!=="InvalidStateError"&&b.name!=="AbortError"&&(b.name==="NotAllowedError"?(a.Pe.Er(),MT(a.B,a.element,!1)):g.mE(b))};
C2a=function(a,b){var c=JE(),d=a.U();c={I:"div",S:"ytp-share-panel",W:{id:JE(),role:"dialog","aria-labelledby":c},V:[{I:"div",S:"ytp-share-panel-inner-content",V:[{I:"div",S:"ytp-share-panel-title",W:{id:c},xa:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f"},{I:"a",Ma:["ytp-share-panel-link","ytp-no-contextmenu"],W:{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}}"},
xa:"{{linkText}}"},{I:"label",S:"ytp-share-panel-include-playlist",V:[{I:"input",S:"ytp-share-panel-include-playlist-checkbox",W:{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:[hZa()]},{I:"div",S:"ytp-share-panel-service-buttons",xa:"{{buttons}}"},{I:"div",S:"ytp-share-panel-error",xa:"\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",Ma:["ytp-share-panel-close","ytp-button"],W:{title:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"},V:[g.VE()]}]};g.LT.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=b.Te();this.C=[];this.G=this.Fa("ytp-share-panel-inner-content");this.closeButton=this.Fa("ytp-share-panel-close");this.T(this.closeButton,"click",this.Nb);this.addOnDisposeCallback(g.xT(this.tooltip,this.closeButton));this.D=this.Fa("ytp-share-panel-include-playlist-checkbox");this.T(this.D,"click",
this.Ua);this.j=this.Fa("ytp-share-panel-link");this.addOnDisposeCallback(g.xT(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=B2a(e,h);g.$T(h,e.api,f)&&e.api.jb("SHARE_CLICKED")});
this.listen("click",this.y6);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.M$);this.hide()};
E2a=function(a,b){D2a(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&d<2;e={Ix:void 0,jn:void 0},f++){e.Ix=c[f];a:switch(e.Ix.img||e.Ix.iconId){case "facebook":var h={I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:h=null}if(h){var l=e.Ix.sname||e.Ix.serviceName;e.jn=new g.W({I:"a",Ma:["ytp-share-panel-service-button","ytp-button"],W:{href:e.Ix.url,target:"_blank",title:l},V:[h]});e.jn.listen("click",function(p){return function(q){var r=p.Ix.url;if(g.JF(q)){var t=t===void 0?{}:t;t.target=t.target||"YouTube";t.width=t.width||"600";t.height=t.height||"600";var u=t;u||(u={});t=window;var w=r instanceof g.ce?r:g.je(typeof r.href!="undefined"?r.href:String(r));var A=self.crossOriginIsolated!==
void 0,C="strict-origin-when-cross-origin";window.Request&&(C=(new Request("/")).referrerPolicy);var F=C==="unsafe-url";C=u.noreferrer;if(A&&C){if(F)throw Error("Cannot use the noreferrer option on a page that sets a referrer-policy of `unsafe-url` in modern browsers!");C=!1}r=u.target||r.target;A=[];for(var G in u)switch(G){case "width":case "height":case "top":case "left":A.push(G+"="+u[G]);break;case "target":case "noopener":case "noreferrer":break;default:A.push(G+"="+(u[G]?1:0))}G=A.join(",");
Hc()&&t.navigator&&t.navigator.standalone&&r&&r!="_self"?(u=g.Bf("A"),u.href=Lba(w),u.target=r,C&&(u.rel="noreferrer"),w=document.createEvent("MouseEvent"),w.initMouseEvent("click",!0,!0,t,1),u.dispatchEvent(w),t={}):C?(t=Mba("",t,r,G),w=g.de(w),t&&(t.opener=null,w===""&&(w="javascript:''"),w=te('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+af(w)+'">'),(u=t.document)&&u.write&&(u.write(g.se(w)),u.close()))):((t=Mba(w,t,r,G))&&u.noopener&&(t.opener=null),
t&&u.noreferrer&&(t.opener=null));t&&(t.opener||(t.opener=window),t.focus());q.preventDefault()}}}(e));
e.jn.addOnDisposeCallback(g.xT(a.tooltip,e.jn.element));l==="Facebook"?a.api.createClientVe(e.jn.element,e.jn,164504):l==="Twitter"&&a.api.createClientVe(e.jn.element,e.jn,164505);a.T(e.jn.element,"click",function(p){return function(){a.api.logClick(p.jn.element)}}(e));
a.api.logVisibility(e.jn.element,!0);a.C.push(e.jn);d++}}var m=b.more||b.moreLink,n=new g.W({I:"a",Ma:["ytp-share-panel-service-button","ytp-button"],V:[{I:"span",S:"ytp-share-panel-service-button-more",V:[{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",W:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",W:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],W:{href:m,target:"_blank",title:"\u0415\u0449\u0451"}});n.listen("click",function(p){var q=m;a.api.logClick(a.moreButton.element);q=B2a(a,q);g.$T(q,a.api,p)&&a.api.jb("SHARE_CLICKED")});
n.addOnDisposeCallback(g.xT(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)};
B2a=function(a,b){var c={};g.nR(a.api.U())&&(g.qT(a.api,"addEmbedsConversionTrackingParams",[c]),a.api.L("embeds_web_enable_referring_feature_deprecation")||g.JO(c,"emb_share"),b=g.to(b,c));return b};
D2a=function(a){for(var b=g.v(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.ub(c);a.C=[]};
qW=function(a){return a===void 0||a.startSec===void 0||a.endSec===void 0?!1:!0};
F2a=function(a,b){a.startSec+=b;a.endSec+=b};
H2a=function(a){rU.call(this,a);this.B=this.j=this.isContentForward=this.N=!1;G2a(this);this.T(this.J,"changeProductsInVideoVisibility",this.Kba);this.T(this.J,"videodatachange",this.onVideoDataChange)};
I2a=function(a){a.K&&a.La.element.removeChild(a.K.element);a.K=void 0};
K2a=function(a,b){return b.map(function(c){var d,e;if((c=(d=g.V(c,J2a))==null?void 0:(e=d.thumbnail)==null?void 0:e.thumbnails)&&c.length!==0)return c[0].url}).filter(function(c){return c!==void 0}).map(function(c){c=new g.W({I:"img",
S:"ytp-suggested-action-product-thumbnail",W:{alt:"",src:c}});g.M(a,c);return c})};
L2a=function(a,b){a.isContentForward=b;g.Ov(a.badge.element,"ytp-suggested-action-badge-content-forward",b)};
rW=function(a){var b=a.isContentForward&&!a.pM();g.Ov(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.Ov(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.B)};
sW=function(a,b,c){return new g.UI(a*1E3,b*1E3,{priority:9,namespace:c})};
M2a=function(a){a.J.sf("shopping_overlay_visible");a.J.sf("shopping_overlay_preview_collapsed");a.J.sf("shopping_overlay_preview_expanded");a.J.sf("shopping_overlay_expanded")};
G2a=function(a){a.T(a.J,g.VI("shopping_overlay_visible"),function(){a.Lf(!0)});
a.T(a.J,g.WI("shopping_overlay_visible"),function(){a.Lf(!1)});
a.T(a.J,g.VI("shopping_overlay_expanded"),function(){a.va=!0;qU(a)});
a.T(a.J,g.WI("shopping_overlay_expanded"),function(){a.va=!1;qU(a)});
a.T(a.J,g.VI("shopping_overlay_preview_collapsed"),function(){a.j=!0;rW(a)});
a.T(a.J,g.WI("shopping_overlay_preview_collapsed"),function(){a.j=!1;rW(a)});
a.T(a.J,g.VI("shopping_overlay_preview_expanded"),function(){a.B=!0;rW(a)});
a.T(a.J,g.WI("shopping_overlay_preview_expanded"),function(){a.B=!1;rW(a)})};
e3a=function(a){g.W.call(this,{I:"div",S:"ytp-shorts-title-channel",V:[{I:"a",S:"ytp-shorts-title-channel-logo",W:{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",xa:"{{expandedTitle}}",W:{href:"{{channelTitleLink}}",target:a.U().Y,tabIndex:"0"}}]}]}]});var b=this;this.api=a;this.j=this.Fa("ytp-shorts-title-channel-logo");this.channelName=this.Fa("ytp-shorts-title-expanded-title");
this.subscribeButton=null;a.createClientVe(this.j,this,36925);this.T(this.j,"click",function(c){b.api.logClick(b.j);g.Re(N2a(b));c.preventDefault()});
a.createClientVe(this.channelName,this,37220);this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Re(N2a(b));c.preventDefault()});
O2a(this);this.T(a,"videodatachange",this.Ua);this.T(a,"videoplayerreset",this.Ua);this.Ua()};
O2a=function(a){if(!a.api.U().Ub){var b=a.api.getVideoData(),c=new g.WV("\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.Ul,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,((d=b.subscribeButtonRenderer)==null?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)});
a.subscribeButton=c;g.M(a,a.subscribeButton);a.subscribeButton.Ka(a.element)}};
N2a=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.LR(b)+c.Ab;if(!g.nR(b))return c;b={};g.qT(a.api,"addEmbedsConversionTrackingParams",[b]);a.api.L("embeds_web_enable_referring_feature_deprecation")||g.JO(b,"emb_ch_name_ex");return g.to(c,b)};
tW=function(a){g.LT.call(this,a,{I:"button",Ma:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{I:"div",S:"ytp-skip-intro-button-text",xa:"\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.Dv(function(){b.hide()},5E3);
this.Tf=this.Bj=NaN;g.M(this,this.j);this.K=function(){b.show()};
this.G=function(){b.hide()};
this.D=function(){var c=b.J.getCurrentTime();c>b.Bj/1E3&&c<b.Tf/1E3&&b.show()};
this.T(this.J,"videodatachange",function(c,d){b.mu(c,d)});
this.T(this.element,"click",function(){b.J.seekTo(b.Tf/1E3)});
this.hide()};
uW=function(a){g.W.call(this,{I:"button",Ma:["ytp-airplay-button","ytp-button"],W:{title:"AirPlay","data-priority":"9"},xa:"{{icon}}"});this.J=a;this.listen("click",this.onClick);this.T(a,"airplayactivechange",this.Ua);this.T(a,"airplayavailabilitychange",this.Ua);this.Ua();yT(a,this.element,this)};
g3a=function(a){g.W.call(this,{I:"div",S:"ytp-gradient-bottom"});this.canvas=g.Bf("CANVAS");this.j=this.canvas.getContext("2d");this.B=NaN;this.canvas.width=1;f3a(this,a.qb().getPlayerSize().height)};
f3a=function(a,b){if(a.j){b=Math.floor(b*.4);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){}}}};
vW=function(a,b,c,d){g.W.call(this,{I:"div",S:"ytp-chapter-container",V:[{I:"button",Ma:["ytp-chapter-title","ytp-button"],V:[{I:"span",W:{"aria-hidden":"true"},S:"ytp-chapter-title-prefix",xa:"\u2022"},{I:"div",S:"ytp-chapter-title-content",xa:"{{title}}",W:{"aria-label":"{{ariaLabel}}",title:d}},{I:"div",S:"ytp-chapter-title-chevron",V:[{I:"svg",W:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",W:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});
this.J=a;this.D=b;this.G="";this.currentIndex=0;this.B=void 0;this.C=!0;this.Y=this.Fa("ytp-chapter-container");this.j=this.Fa("ytp-chapter-title");this.ra=this.Fa("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.VI(c),this.Uc);this.T(a,"onLoopRangeChange",this.Uc);this.T(a,"innertubeCommand",this.onClickCommand);(a=this.J.L("web_disable_channels_chapter_entrypoint")&&
g.vR(this.J.U()))&&g.Ov(this.j,"ytp-profile-page",!0);this.J.L("web_fitted_chapter_button_killswitch")||g.Ov(this.j,"fitted-chapter-button",!0);g.nR(this.J.U())||a||yT(this.J,this.ra,this)};
wW=function(a,b){vW.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")};
h3a=function(a,b,c,d,e){var f=b.Ox/b.rows,h=Math.min(c/(b.eG/b.columns),d/f),l=b.eG*h,m=b.Ox*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&&f<=45&&(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"};
i3a=function(a){return a.L("web_big_boards")?a.isMinimized()?a.L("web_big_boards_enable_in_miniplayer"):a.isInline()?a.L("web_big_boards_enable_in_inline"):!0:!1};
xW=function(a,b){g.W.call(this,{I:"div",S:"ytp-storyboard-framepreview",V:[{I:"div",S:"ytp-storyboard-framepreview-timestamp",xa:"{{timestamp}}"},{I:"div",S:"ytp-storyboard-framepreview-img"}]});this.api=a;this.D=this.Fa("ytp-storyboard-framepreview-img");this.B=null;this.C=NaN;this.events=new g.NJ(this);this.j=new g.rF(this,100);g.M(this,this.events);g.M(this,this.j);this.T(this.api,"presentingplayerstatechange",this.G);b&&this.T(this.element,"click",function(){b.Sw()});
i3a(this.api)&&g.Kv(this.element,"ytp-storyboard-framepreview-big-boards")};
j3a=function(a,b){var c=!!a.B;a.B=b;a.B?(c||(a.events.T(a.api,"videodatachange",function(){j3a(a,a.api.vk())}),a.events.T(a.api,"progresssync",a.Fg),a.events.T(a.api,"appresize",a.K)),a.C=NaN,k3a(a),a.j.show(200)):(c&&g.uB(a.events),a.j.hide(),a.j.stop())};
k3a=function(a){var b=a.B,c=a.api.getCurrentTime(),d=a.api.qb().getPlayerSize(),e=lS(b,d.width);e=GWa(b,e,c);a.update({timestamp:g.IF(c)});e!==a.C&&(a.C=e,EWa(b,e,d.width),b=CWa(b,e,d.width),h3a(a.D,b,d.width,d.height))};
l3a=function(a,b){g.W.call(this,{I:"button",Ma:["ytp-fullscreen-button","ytp-button"],W:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"10","data-title-no-tooltip":"{{data-title-no-tooltip}}"},xa:"{{icon}}"});this.J=a;this.Pe=b;this.message=null;this.j=g.xT(this.Pe.Te(),this.element);this.B=new g.Dv(this.L7,2E3,this);g.M(this,this.B);this.T(a,"fullscreentoggled",this.pn);this.T(a,"presentingplayerstatechange",this.Ua);this.T(a,"resize",this.Ua);this.listen("click",this.onClick);g.jB()&&
(b=this.J.qb(),this.T(b,Wra(),this.NR),this.T(b,Vra(document),this.Zx));a.U().Ab||a.U().Z||this.disable();a.createClientVe(this.element,this,139117);this.Ua();this.pn(a.isFullscreen())};
yW=function(a,b){g.W.call(this,{I:"button",Ma:["ytp-button","ytp-jump-button"],W:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[b>0?{I:"svg",W:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Ma:["ytp-circle-arrow","ytp-svg-fill"],W:{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",Ma:["ytp-jump-button-text","ytp-svg-fill"],W:{x:"7.05",y:"15.05"}}]}:{I:"svg",W:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Ma:["ytp-circle-arrow","ytp-svg-fill"],W:{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",Ma:["ytp-jump-button-text","ytp-svg-fill"],W:{x:"6.5",y:"15"}}]}]});var c=this;this.J=a;this.j=b;this.B=new g.Dv(function(){c.C?(c.C=!1,c.B.start()):c.element.classList.remove("ytp-jump-spin","backwards")},250);
this.C=!1;(b=b>0)?this.J.createClientVe(this.element,this,36843):this.J.createClientVe(this.element,this,36844);var d=g.aJ(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.listen("click",this.onClick,this);yT(a,this.element,this)};
m3a=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.Yh()};
zW=function(a,b){vW.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.WI("timedMarkerCueRange"),this.Uc);this.T(a,"updatemarkervisibility",this.updateVideoData)};
n3a=function(a){var b,c=(b=a.J.getVideoData())==null?void 0:b.mf;if(c)for(a=a.D.Oa,c=g.v(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(((d=b.onTap)==null?void 0:(e=d.innertubeCommand)==null?void 0:(f=e.changeEngagementPanelVisibilityAction)==null?void 0:f.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return b}};
AW=function(a){g.W.call(this,{I:"button",Ma:["ytp-miniplayer-button","ytp-button"],W:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:[xya()]});this.J=a;this.visible=!1;this.listen("click",this.onClick);this.T(a,"fullscreentoggled",this.Ua);this.updateValue("title",g.zT(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"});yT(a,this.element,this);a.createClientVe(this.element,this,62946);this.Ua()};
o3a=function(a,b,c){c=c===void 0?!1:c;g.W.call(this,{I:"button",Ma:["ytp-mute-button","ytp-button"],W:a.U().Wa?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}"}:{"aria-disabled":"true","aria-haspopup":"true"},xa:"{{icon}}"});this.J=a;this.Ga=c;this.j=null;this.D=this.Y=this.G=this.va=NaN;this.Da=this.K=null;this.C=[];this.B=[];this.visible=!1;this.N=null;c=this.J.U();this.updateValue("icon",Dya());this.tooltip=b.Te();this.j=new g.KE({I:"svg",W:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",W:{id:"ytp-svg-volume-animation-mask"},V:[{I:"path",W:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{I:"path",W:{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",W:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{I:"clipPath",W:{id:"ytp-svg-volume-animation-slash-mask"},V:[{I:"path",S:"ytp-svg-volume-animation-mover",W:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},
{I:"path",Jc:!0,Ma:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],W:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{I:"path",Jc:!0,Ma:["ytp-svg-fill","ytp-svg-volume-animation-hider"],W:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.M(this,this.j);this.K=this.j.Fa("ytp-svg-volume-animation-speaker");
this.Da=this.K.getAttribute("d");this.C=g.rf("ytp-svg-volume-animation-mover",this.j.element);this.B=g.rf("ytp-svg-volume-animation-hider",this.j.element);this.Ha=new WU;g.M(this,this.Ha);this.ra=new WU;g.M(this,this.ra);this.listen("click",this.wba);this.T(a,"appresize",this.VV);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;c.Wa?this.addOnDisposeCallback(g.xT(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.LT(a,{I:"span",Ma:["ytp-popup","ytp-generic-popup"],W:{tabindex:"0"},V:[b[0],{I:"a",W:{href:"https://support.google.com/youtube/?p=noaudio",target:c.Y},xa:b[2]},b[4]]},100,!0),g.M(this,d),d.hide(),d.subscribe("show",function(e){a.FE(d,e)}),g.HT(a,d.element,4));
this.message=d;a.createClientVe(this.element,this,28662);this.VV(a.qb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
r3a=function(a,b){a.va=b;var c=a.Da;b&&(c+=F_a(p3a,q3a,b));a.K.setAttribute("d",c)};
s3a=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;b===1?e=Dya():e=a.j;for(c=0;c<a.B.length;c++){d=a.B[c];var f=void 0;if((f=d)==null?0:f.style)d.style.display=b===0?"none":""}e!==a.N&&(a.updateValue("icon",e),a.N=e)};
g.BW=function(a,b){g.W.call(this,{I:"button",Ma:["ytp-play-button","ytp-button"],W:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},xa:"{{icon}}"});this.J=a;this.j=null;this.transition=new WU;this.tooltip=b.Te();g.M(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.Ic(a.getPlayerStateObject());this.listen("click",this.Ws,this);this.addOnDisposeCallback(g.xT(b.Te(),this.element))};
t3a=function(a){switch(a){case 1:return yya();case 2:return vya();case 3:return g.Aya();case 4:return Cya();default:return null}};
g.CW=function(a,b,c){g.W.call(this,{I:"a",Ma:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],W:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},V:[c?tya():zya()]});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.CN);this.T(a,"mdxpreviousnextchange",function(){u3a(d);d.CN()});
this.onVideoDataChange()};
v3a=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
w3a=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&a.J.getCurrentTime()>=3&&a.J.getPresentingPlayerType()!==2};
x3a=function(a){var b=DT(a.J.Bb());return b?a.j?b.Bl():b.Xp():!1};
u3a=function(a){var b={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},c=a.playlist!=null&&a.playlist.Bl();c=g.ET(a.J)&&(!a.j||c);var d=a.j&&g.IT(a.J),e=x3a(a),f=a.j&&a.J.getPresentingPlayerType()===5,h=g.zT(a.J,"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435","SHIFT+n"),l=g.zT(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.dV(a.playlist,a.j?X_a(a.playlist):Y_a(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.IF(m.lengthSeconds):null;b.preview=m.kh("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=(m=a.videoData)==null?void 0:g.FS(m))b.url=l.zl(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?g.IF(l.lengthSeconds):null,b.preview=l.kh("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.xT(a.tooltip,a.element),a.G=a.listen("click",a.onClick,a)):a.B&&(a.B(),a.B=null,a.Oc(a.G),a.G=null);a.tooltip.Yh()};
z3a=function(a,b){g.W.call(this,{I:"div",S:"ytp-fine-scrubbing",V:[{I:"div",S:"ytp-fine-scrubbing-draggable",V:[{I:"div",S:"ytp-fine-scrubbing-thumbnails",W:{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",W:{"aria-hidden":"true"},S:"ytp-fine-scrubbing-cursor"},{I:"div",S:"ytp-fine-scrubbing-seek-time",W:{"aria-hidden":"true"},xa:"{{seekTime}}"},{I:"div",S:"ytp-fine-scrubbing-play",V:[yya()],W:{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.VE()],W:{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.Fa("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Fa("ytp-fine-scrubbing-dismiss");this.Da=this.Fa("ytp-fine-scrubbing-draggable");this.playButton=this.Fa("ytp-fine-scrubbing-play");this.thumbnails=[];this.B=
[];this.Oa=this.j=0;this.La=void 0;this.ra=NaN;this.Sa=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.Ga=!1;y3a(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.xT(b,this.dismissButton));this.addOnDisposeCallback(g.xT(b,this.playButton));this.Ha=new g.FU(this.Da,!0);this.Ha.subscribe("dragstart",this.EN,this);this.Ha.subscribe("dragmove",this.DN,this);this.Ha.subscribe("dragend",this.A6,this);this.T(a,"SEEK_COMPLETE",
this.GB);a.L("web_fix_fine_scrubbing_false_play")&&this.T(a,"rootnodemousedown",function(d){c.va=d});
this.G.addEventListener("keydown",function(){});
g.M(this,this.Ha);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)};
y3a=function(a,b){var c=g.IF(b),d=g.aJ("\u041f\u0435\u0440\u0435\u043c\u043e\u0442\u0430\u0442\u044c \u0434\u043e $PROGRESS",{PROGRESS:g.IF(b,!0)});a.update({ariamin:0,ariamax:Math.floor(a.api.getDuration()),arianow:Math.floor(b),arianowtext:d,seekTime:c})};
A3a=function(a){a.ra=NaN;a.Y=0;a.N=a.C};
D3a=function(a){var b=a.api.vk();if(b){var c=90*a.scale,d=lS(b,160*a.scale);if(b=b.levels[d]){a.K=b.width;if(!a.D.length){d=[];for(var e=mS(b,b.nz()),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.Ge(l),column:0,columns:p,row:n,rows:m,eG:b.width*p,Ox:b.height*m};d.push(q);h-=p;if(h<=1)break}a.D=d;a.frameCount=b.LJ();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.D.length;)d=
void 0,(d=a.thumbnails.pop())==null||d.dispose();for(;a.thumbnails.length<a.D.length;)d=new B3a,a.thumbnails.push(d),d.Ka(a.G),g.M(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.Ox/f.rows,m=c/l,e.style.background="url("+f.url+") 0 "+-f.row*f.Ox/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";DW(a,a.api.getCurrentTime());for(c=a.api.getVideoData().Sk;a.B.length>c.length;)d=void 0,(d=a.B.pop())==null||d.dispose();
for(;a.B.length<c.length;)d=new C3a,a.B.push(new C3a),g.M(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.Is(a.B[d].element,"transform","translateX("+e%b.rows*a.K*a.scale+"px)"),f<a.thumbnails.length&&a.thumbnails[f]&&a.B[d].Ka(a.thumbnails[f].element);a.Ga=!0}}};
DW=function(a,b){a.va&&(a.va.LA=!0);a.update({seekTime:g.IF(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.ze(b,E3a(a),a.j/2);a.N=b;a.C=a.N;g.Is(a.Da,"transform","translateX("+(a.N-a.j/2)+"px)");g.Is(a.Da,"padding","0px "+a.j/2+"px");g.Is(a.G,"position","relative")};
F3a=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};
E3a=function(a){return-((a.G.offsetWidth||(a.frameCount-1)*a.K*a.scale)-a.j/2)};
B3a=function(){g.W.call(this,{I:"div",S:"ytp-fine-scrubbing-thumbnail"})};
C3a=function(){g.W.call(this,{I:"div",S:"ytp-fine-scrubbing-chapter-title",V:[{I:"div",S:"ytp-fine-scrubbing-chapter-title-content",xa:"{{chapterTitle}}"}]})};
G3a=function(a){g.W.call(this,{I:"div",S:"ytp-heat-map-chapter",V:[{I:"svg",S:"ytp-heat-map-svg",W:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",W:{id:"{{id}}"},V:[{I:"path",S:"ytp-heat-map-path",W:{d:"",fill:"white"}}]}]},{I:"rect",S:"ytp-heat-map-graph",W:{"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",W:{"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",W:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.K=this.Fa("ytp-heat-map-svg");this.C=this.Fa("ytp-heat-map-path");this.G=this.Fa("ytp-heat-map-graph");this.D=this.Fa("ytp-heat-map-play");this.B=this.Fa("ytp-heat-map-hover");this.xe=!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.Kv(this.api.getRootNode(),"ytp-heat-map-v2")};
H3a=function(a,b){b>0&&(a.j=b,a.K.style.height=a.j+"px")};
EW=function(){g.W.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",Ma:["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.Fa("ytp-progress-linear-live-buffer");this.C=this.Fa("ytp-ad-progress-list");
this.G=this.Fa("ytp-load-progress");this.K=this.Fa("ytp-play-progress");this.B=this.Fa("ytp-hover-progress");this.j=this.Fa("ytp-chapter-hover-container")};
FW=function(a,b){g.Is(a.j,"width",b)};
I3a=function(a,b){g.Is(a.j,"margin-right",b+"px")};
J3a=function(){this.B=this.position=this.C=this.j=this.D=this.width=NaN};
K3a=function(){g.W.call(this,{I:"div",S:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.HW=function(a,b){g.OE.call(this,{I:"div",S:"ytp-progress-bar-container",W:{"aria-disabled":"true"},V:[{I:"div",Ma:["ytp-heat-map-container"],V:[{I:"div",S:"ytp-heat-map-edu"}]},{I:"div",Ma:["ytp-progress-bar"],W:{tabindex:"0",role:"slider","aria-label":"\u041f\u043e\u043b\u0437\u0443\u043d\u043e\u043a \u043f\u043e\u0438\u0441\u043a\u0430","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},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",Ma:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{I:"div",S:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",Ma:["ytp-fine-scrubbing-container"],V:[{I:"div",S:"ytp-fine-scrubbing-edu"}]},{I:"div",S:"ytp-bound-time-left",xa:"{{boundTimeLeft}}"},{I:"div",S:"ytp-bound-time-right",xa:"{{boundTimeRight}}"},{I:"div",S:"ytp-clip-start",
W:{title:"{{clipstarttitle}}"},xa:"{{clipstarticon}}"},{I:"div",S:"ytp-clip-end",W:{title:"{{clipendtitle}}"},xa:"{{clipendicon}}"}]});this.api=a;this.tf=!1;this.Wf=this.Wa=this.N=this.Vf=0;this.le=null;this.La={};this.Qb={};this.clipEnd=Infinity;this.Ab=this.Fa("ytp-clip-end");this.Cc=new g.FU(this.Ab,!0);this.Bc=this.Fa("ytp-clip-end-exclude");this.Sc=this.Fa("ytp-clip-start-exclude");this.clipStart=0;this.Lb=this.Fa("ytp-clip-start");this.Zc=new g.FU(this.Lb,!0);this.ra=this.ib=0;this.progressBar=
this.Fa("ytp-progress-bar");this.Cb={};this.Oa={};this.Ub=this.Fa("ytp-chapters-container");this.Uf=this.Fa("ytp-timed-markers-container");this.j=[];this.K=[];this.Be={};this.Sf=null;this.Xa=-1;this.rb=this.Da=0;this.Y=null;this.Xf=this.Fa("ytp-scrubber-button");this.Ng=this.Fa("ytp-scrubber-container");this.Ya=new g.Ge;this.Tf=new J3a;this.C=new MF(0,0);this.Fb=null;this.D=this.mf=!1;this.Ch=null;this.va=this.Fa("ytp-heat-map-container");this.Ed=this.Fa("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=
[];this.eb=this.Fa("ytp-fine-scrubbing-container");this.Ud=this.Fa("ytp-fine-scrubbing-edu");this.B=void 0;this.Ha=this.Fd=this.Ga=!1;this.tooltip=b.Te();this.addOnDisposeCallback(g.xT(this.tooltip,this.Ab));g.M(this,this.Cc);this.Cc.subscribe("hoverstart",this.Q_,this);this.Cc.subscribe("hoverend",this.P_,this);this.T(this.Ab,"click",this.WL);this.addOnDisposeCallback(g.xT(this.tooltip,this.Lb));g.M(this,this.Zc);this.Zc.subscribe("hoverstart",this.Q_,this);this.Zc.subscribe("hoverend",this.P_,this);
this.T(this.Lb,"click",this.WL);L3a(this);this.T(a,"resize",this.kc);this.T(a,"presentingplayerstatechange",this.L9);this.T(a,"videodatachange",this.mu);this.T(a,"videoplayerreset",this.K9);this.T(a,"cuerangesadded",this.ofa);this.T(a,"cuerangesremoved",this.Eda);this.T(a,"onLoopRangeChange",this.WV);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.VI("timedMarkerCueRange"),this.Jca);this.T(a,"updatemarkervisibility",this.m3);this.updateVideoData(a.getVideoData(),!0);this.WV(a.getLoopRange());
GW(this)&&!this.B&&(this.B=new z3a(this.api,this.tooltip),a=g.Rs(this.element).x||0,this.B.kc(a,this.N),this.B.Ka(this.eb),g.M(this,this.B),this.T(this.B.dismissButton,"click",this.Sw),this.T(this.B.playButton,"click",this.qP),this.T(this.B.element,"dblclick",this.qP));this.api.createClientVe(this.va,this,139609,!0);this.api.createClientVe(this.Ed,this,140127,!0);this.api.createClientVe(this.Ud,this,151179,!0);this.api.L("web_modern_miniplayer")&&(this.element.hidden=!0)};
L3a=function(a){if(a.j.length===0){var b=new EW;a.j.push(b);g.M(a,b);b.Ka(a.Ub,0)}for(;a.j.length>1;)a.j.pop().dispose();FW(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
M3a=function(a){var b=b===void 0?NaN:b;var c=new G3a(a.api);a.G.push(c);g.M(a,c);c.Ka(a.va);b>=0&&(c.element.style.width=b+"px")};
N3a=function(a){for(;a.K.length;)a.K.pop().dispose()};
P3a=function(a){var b,c,d,e,f;return(f=g.V((e=g.V((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.decoratedPlayerBarRenderer,lWa))==null?void 0:e.playerBar,O3a))==null?void 0:f.chapters};
Q3a=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.UI(e,d===b.length-1?Infinity:b[d+1].startTime,{namespace:"chapterCueRange",priority:9,id:"c_"+e});c.push(e)}a.api.sf("chapterCueRange");a.api.nf(c)};
Y3a=function(a,b){var c,d=(c=a.Cb[b])==null?void 0:c.chapters;d&&(R3a(a,d),a.api.getVideoData().Sk=a.j,Q3a(a));var e;if((c=(e=a.Cb[b])==null?void 0:e.markers)&&b!=="HEATSEEKER"){N3a(a);e=g.v(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new K3a,d=g.V(d,g.S3a)){var f=void 0;c.title=((f=d.title)==null?void 0:f.simpleText)||"";f=void 0;c.timeRangeStartMillis=(f=d.timeRangeStartMillis)!=null?f:NaN;var h=f=void 0;c.onActiveCommand=(h=(f=d)==null?void 0:f.onActiveCommand)!=null?h:void 0;T3a(a,c)}U3a(a,
a.K);e=a.K;c=a.Be;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=l2a(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.nf(d)}var l;if(b=g.V((l=a.Cb[b])==null?void 0:l.heatmap,V3a)){l=b.heatMarkers||[];var m;e=(m=b.minHeightDp)!=null?m:0;var n;m=(n=b.maxHeightDp)!=null?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&&
M3a(a);f=[];c&&f.push(c);for(var q=g.v(l),r=q.next();!r.done;r=q.next()){r=r.value;var t=void 0,u=void 0,w=(u=(t=g.V(r,W3a))==null?void 0:t.timeRangeStartMillis)!=null?u:-1;w>=h&&w<=p&&f.push(r)}m>0&&(a.va.style.height=m+"px");h=a.G[d];p=f;r=e;u=m;w=d===0;w=w===void 0?!1:w;H3a(h,u);q=p;t=h.j;w=w===void 0?!1:w;var A=1E3/q.length,C=[];C.push({x:0,y:100});for(var F=0;F<q.length;F++){var G=void 0,K=((G=g.V(q[F],W3a))==null?void 0:G.heatMarkerIntensityScoreNormalized)||0;G=(F+.5)*A;K=100-g.ze(K*100,r/
t*100,u/t*100);F!==0||w||C.push({x:0,y:K});C.push({x:G,y:K});F===q.length-1&&C.push({x:1E3,y:K})}C.push({x:1E3,y:100});q=C;p=p.length===0?"":dBa(q);h.C.setAttribute("d",p);h.xe=p!=="";g.Ov(h.api.getRootNode(),"ytp-heat-map",h.xe);g.Ov(h.api.getRootNode(),"ytp-heat-map-played_bar",h.api.L("web_player_heat_map_played_bar")&&p!=="");f.length>0&&(c=f[f.length-1])}g.IW(a);l=[];b=g.v(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.V(e.value,X3a))m=e.label,d=c=n=void 0,l.push({visibleTimeRangeStartMillis:(n=
e.visibleTimeRangeStartMillis)!=null?n:-1,visibleTimeRangeEndMillis:(c=e.visibleTimeRangeEndMillis)!=null?c:-1,decorationTimeMillis:(d=e.decorationTimeMillis)!=null?d:NaN,label:m?g.RE(m):""});a.heatMarkersDecorations=l}};
T3a=function(a,b){a.K.push(b);g.M(a,b);b.Ka(a.Uf,a.Uf.children.length)};
U3a=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=JW(a,c.timeRangeStartMillis/(a.C.j*1E3),KW(a));g.Is(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
R3a=function(a,b){var c=0,d=!1;b=g.v(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.V(e,Z3a)){e=g.V(e,Z3a);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.RE(h):"";h=e.timeRangeStartMillis;h!=null&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;c===0&&e.startTime!==0&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new EW,a.j.push(f),g.M(a,f),f.Ka(a.Ub,a.Ub.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.IW(a);LW(a)};
g.IW=function(a){a.Da=a.j.length-1;a.rb=0;$3a(a,!0)&&$3a(a,!1);for(var b=0,c=0;c<a.j.length;c++)if(a.j[c].width===0){if(c===a.j.length-1)for(var d=a.j.length-1;d>=0;d--)if(a.j[d].width>0){I3a(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;FW(a.j[d],e+"px");break}a.j[c].width=0;FW(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,FW(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,FW(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)};
$3a=function(a,b){var c=0,d=!1,e=a.j.length,f=a.C.j*1E3;f===0&&(f=a.api.getProgressState().seekableEnd*1E3);if(f>0&&a.N>0){for(var h=a.N-(a.D?3:2)*a.Da,l=a.rb===0?3:h*a.rb,m=g.v(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,I3a(a.j[c],a.D?3:2));g.Ov(a.j[c].j,"ytp-exp-chapter-hover-container",a.j.length>1);n=(f===0?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];r!==void 0&&r.width>
0?r.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);I3a(p.j[q],0);b&&(a.Da--,m/f>a.rb&&(a.rb=m/f),d=!0)}c++}}return d};
LW=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=((d=a.api.getVideoData())==null?0:iT(d))&&b.airingStart&&b.airingEnd?a4a(a,b.airingStart,b.airingEnd):a4a(a,b.seekableStart,b.seekableEnd);d=NF(c,b.loaded,0);b=NF(c,b.current,0);var e=a.C.B!==c.B||a.C.j!==c.j;a.C=c;MW(a,b,d);e&&b4a(a);c4a(a)}}};
a4a=function(a,b,c){return d4a(a)?new MF(Math.max(b,a.Fb.startTimeMs/1E3),Math.min(c,a.Fb.endTimeMs/1E3)):new MF(b,c)};
e4a=function(a,b){var c;if(((c=a.Fb)==null?void 0:c.type)==="repeatChapter"||(b==null?void 0:b.type)==="repeatChapter")b&&(b=a.j[gW(a.j,b.startTimeMs)],g.Ov(b.j,"ytp-repeating-chapter",!1)),a.Fb&&(b=a.j[gW(a.j,a.Fb.startTimeMs)],g.Ov(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.Ov(d.j,"ytp-exp-chapter-hover-container",!a.Fb)})};
OW=function(a,b){var c=pza(a.C,b.B);if(a.j.length>1){c=NW(a,b.C,!0);for(var d=0,e=0;e<c;e++)a.j[e].width>0&&(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?a.C.j*1E3:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c};
f4a=function(a,b,c){return c>=a.j.length?!1:Math.abs(b-a.j[c].startTime/1E3)/a.C.j*(a.N-(a.D?3:2)*a.Da)<4};
b4a=function(a){a.Xf.style.removeProperty("height");for(var b=g.v(Object.keys(a.La)),c=b.next();!c.done;c=b.next())g4a(a,c.value);PW(a);MW(a,a.ra,a.ib)};
KW=function(a){var b=a.Ya.x;b=g.ze(b,0,a.N);a.Tf.update(b,a.N);return a.Tf};
RW=function(a){return(a.D?135:90)-QW(a)};
QW=function(a){var b=48,c=a.api.U();a.D?b=54:g.nR(c)&&!c.B&&(b=40);return b};
MW=function(a,b,c){a.ra=b;a.ib=c;var d=KW(a),e=a.C.j,f=pza(a.C,a.ra),h=g.aJ("$PLAY_PROGRESS (\u043e\u0431\u0449\u0430\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c $DURATION)",{PLAY_PROGRESS:g.IF(f,!0),DURATION:g.IF(e,!0)}),l=gW(a.j,f*1E3);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.Fb&&a.api.getPresentingPlayerType()!==2&&(e=a.Fb.startTimeMs/1E3,f=a.Fb.endTimeMs/
1E3);e=NF(a.C,e,0);l=NF(a.C,f,1);h=a.api.getVideoData();f=g.ze(b,e,l);c=(h==null?0:g.hT(h))?1:g.ze(c,e,l);b=JW(a,b,d);g.Is(a.Ng,"transform","translateX("+b+"px)");SW(a,d,e,f,"PLAY_PROGRESS");(h==null?0:iT(h))?(b=a.api.getProgressState().seekableEnd)&&SW(a,d,f,NF(a.C,b),"LIVE_BUFFER"):SW(a,d,e,c,"LOAD_PROGRESS");if(a.api.L("web_player_heat_map_played_bar")){var m;(m=a.G[0])!=null&&m.D.setAttribute("width",(f*100).toFixed(2)+"%")}};
SW=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Da*(a.D?3:2),l=c*h;c=NW(a,l);var m=d*h;h=NW(a,m);e==="HOVER_PROGRESS"&&(h=NW(a,b.j*d,!0),m=b.j*d-h4a(a,b.j*d)*(a.D?3:2));d=Math.max(l-i4a(a,c),0);for(l=c;l<f;l++)a.j[l].Jb(e).style.left=c===l?d+"px":"0";b=JW(a,a.ra,b);for(f=c;f<h;f++){l=a.j[f].Jb(e);var n=a.j[f].width,p=f===c?n-d:n;TW(a,l,p,n);j4a(a,l,p,n,f,b,e)}f=a.j[h].width;m=g.ze(m-i4a(a,h),0,f);c===h&&(m-=d);d=a.j[h].Jb(e);TW(a,d,m,f);j4a(a,d,m,f,h,b,e);m=a.j.length;for(h+=1;h<m;h++)k4a(a,h,e);
for(h=0;h<c;h++)k4a(a,h,e)};
i4a=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};
k4a=function(a,b,c){c=a.j[b].Jb(c);TW(a,c,0,a.j[b].width)};
j4a=function(a,b,c,d,e,f,h){a.api.L("enable_cairo_refresh_signature_moments_web")&&h==="PLAY_PROGRESS"&&(c=!d||a.api.U().B?1:c/d,a.Sc.clientWidth>0||a.Bc.clientWidth>0?(f=b.clientWidth/c,a=-1*a.Sc.clientWidth/c):(f/=c,a=-1*a.j[e].element.offsetLeft/c),g.Is(b,"background-size",f+"px"),g.Is(b,"background-position-x",a+"px"))};
TW=function(a,b,c,d,e){e||a.api.U().B?b.style.width=c+"px":g.Is(b,"transform","scalex("+(d?c/d:0)+")")};
NW=function(a,b,c){var d=0;(c===void 0?0:c)&&(b-=h4a(a,b)*(a.D?3:2));c=g.v(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};
JW=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.v(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&h.width>0&&e++;return b*(c.j-(a.D?3:2)*a.Da)+(a.D?3:2)*(e<0?0:e)+c.D};
h4a=function(a,b){for(var c=a.j.length,d=0,e=g.v(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,f.width!==0)if(b>f.width)b-=f.width,b-=a.D?3:2,d++;else break;return d===c?c-1:d};
g.l4a=function(a,b,c,d){var e=a.N!==c,f=a.D!==d;a.Vf=b;a.N=c;a.D=d;GW(a)&&(b=a.B)!=null&&(b.scale=d?1.5:1);b4a(a);a.j.length===1&&(a.j[0].width=c||0);e&&g.IW(a);a.B&&f&&GW(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-QW(a),a.eb.style.height=c+"px",g.Is(a.va,"transform","translateY("+-d+"px)"),g.Is(a.progressBar,"transform","translateY("+-d+"px)")),D3a(a.B))};
PW=function(a){var b=!!a.Fb&&a.api.getPresentingPlayerType()!==2,c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Fb?(c=a.Fb.startTimeMs/1E3,d=a.Fb.endTimeMs/1E3):(e=c>a.C.B,f=a.C.j>0&&d<a.C.j);var h,l;if(((h=a.Fb)==null?0:h.postId)||((l=a.Fb)==null?void 0:l.type)==="repeatChapter")f=e=!1;g.Ov(a.element,"ytp-loop-range-enabled",b);g.Ov(a.element,"ytp-clip-start-enabled",e);g.Ov(a.element,"ytp-clip-end-enabled",f);b=e?NF(a.C,c,0):0;d=f?NF(a.C,d,1):1;a.Lb.style.left=Math.round(b*1E3)/10+"%";a.Ab.style.left=
Math.round(d*1E3)/10+"%";a.Sc.style.width=Math.round(b*1E3)/10+"%";a.Bc.style.left=Math.round(d*1E3)/10+"%";a.Bc.style.width=Math.round((1-d)*1E3)/10+"%"};
c4a=function(a){var b;if((b=a.api.getVideoData())==null||!iT(b)){b=KW(a);SW(a,b,a.ra,Math.max(b.B,a.ra),"HOVER_PROGRESS");for(var c=NW(a,b.j*a.ra,!0),d=NW(a,b.C,!0),e=c;e<=d;e++)g.Ov(a.j[e].B,"ytp-hover-progress-light",b.B>a.ra);g.Ov(a.Xf,"ytp-scrubber-button-hover",c===d&&a.j.length>1);if(a.api.L("web_player_heat_map_played_bar")){var f;(f=a.G[0])!=null&&f.B.setAttribute("width",(b.B*100).toFixed(2)+"%")}}};
g4a=function(a,b){var c=a.La[b];b=a.Qb[b];var d=KW(a),e=NF(a.C,c.start/1E3,0),f=ZCa(c,a.D)/d.width;var h=NF(a.C,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.ze(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";TW(a,b,g.ze((h-c)*d.j+d.D,0,d.width),d.width,!0)};
m4a=function(a,b){var c=b.getId();a.La[c]===b&&(g.If(a.Qb[c]),delete a.La[c],delete a.Qb[c])};
GW=function(a){var b;return!((b=a.api.getVideoData())==null?0:b.isLivePlayback)&&!a.api.isMinimized()&&!a.api.isInline()};
UW=function(a){a.B&&(a.B.disable(),a.Wa=0,a.va.style.removeProperty("transform"),a.progressBar.style.removeProperty("transform"),a.eb.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
n4a=function(a,b){var c=b/RW(a)*QW(a);g.Is(a.progressBar,"transform","translateY("+-b+"px)");g.Is(a.va,"transform","translateY("+-b+"px)");g.Is(a.eb,"transform","translateY("+c+"px)");a.eb.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=QW(a)-c+"px")};
o4a=function(a,b){b?a.Y||(a.element.removeAttribute("aria-disabled"),a.Y=new g.FU(a.progressBar,!0),a.Y.subscribe("hovermove",a.Nba,a),a.Y.subscribe("hoverend",a.Mba,a),a.Y.subscribe("dragstart",a.Lba,a),a.Y.subscribe("dragmove",a.Pba,a),a.Y.subscribe("dragend",a.Oba,a),a.Ch=a.listen("keydown",a.C6)):a.Y&&(a.element.setAttribute("aria-disabled","true"),a.Oc(a.Ch),a.Y.cancel(),a.Y.dispose(),a.Y=null)};
d4a=function(a){var b;return!((b=a.Fb)==null||!b.postId)&&a.api.getPresentingPlayerType()!==2};
VW=function(a,b){g.W.call(this,{I:"button",Ma:["ytp-remote-button","ytp-button"],W:{title:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440\u0435","aria-haspopup":"true","data-priority":"8"},xa:"{{icon}}"});this.J=a;this.Gb=b;this.j=null;this.T(a,"onMdxReceiversChange",this.Ua);this.T(a,"presentingplayerstatechange",this.Ua);this.T(a,"appresize",this.Ua);a.createClientVe(this.element,this,139118);this.Ua();
this.listen("click",this.B,this);yT(a,this.element,this)};
WW=function(a,b){g.W.call(this,{I:"button",Ma:["ytp-button","ytp-settings-button"],W:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":JE(),title:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","data-tooltip-target-id":"ytp-settings-button"},V:[g.Bya()]});this.J=a;this.Gb=b;this.B=!0;this.listen("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);yT(a,this.element,this);this.J.createClientVe(this.element,this,28663);this.updateBadge();this.j(a.qb().getPlayerSize())};
p4a=function(a,b){a.B=!!b;a.j(a.J.qb().getPlayerSize())};
XW=function(a,b){WT.call(this,"\u0410\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438",g.aU.P3);this.J=a;this.Gb=b;this.j=!1;a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7             M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7             M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z             M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
fill:"white"}}]});this.T(a,"videodatachange",this.Ua);this.T(a,"onApiChange",this.Ua);this.subscribe("select",this.onSelect,this);this.Ua()};
YW=function(a,b){g.BU.call(this,"\u0417\u0432\u0443\u043a\u043e\u0432\u0430\u044f \u0434\u043e\u0440\u043e\u0436\u043a\u0430",g.aU.AUDIO,a,b);this.J=a;this.tracks={};this.countLabel=new g.W({I:"div",V:[{I:"span",xa:"\u0417\u0432\u0443\u043a\u043e\u0432\u0430\u044f \u0434\u043e\u0440\u043e\u0436\u043a\u0430"},{I:"span",S:"ytp-menuitem-label-count",xa:"{{content}}"}]});a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{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.M(this,this.countLabel);this.Qj(this.countLabel);this.T(a,"videodatachange",this.Ua);this.T(a,"onPlaybackAudioChange",this.Ua);this.Ua()};
ZW=function(a,b){WT.call(this,"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435",g.aU.U3);this.J=a;this.Gb=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()};
q4a=function(a,b){g.NT.call(this,g.OT({"aria-haspopup":"false"}),0,"\u0415\u0449\u0451");this.J=a;this.Gb=b;this.T(this.element,"click",this.onClick);this.Gb.Vc(this)};
r4a=function(a,b){var c;g.ER(a.U())&&(c={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",xa:"\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",xa:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",W:{href:"/account_downloads"}}]});g.BU.call(this,"\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e",
g.aU.S6,a,b,void 0,void 0,c);this.J=a;this.Da={};this.Y={};this.D={};this.Ha=new Set;this.j=this.G=!1;this.K="unknown";this.ra="";this.va=new g.hD;g.M(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")&&this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z            M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",
fill:"white"}}]});g.Kv(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.DD);this.T(a,"videoplayerreset",this.DD);this.T(a,"onPlaybackQualityChange",this.XV);this.DD();a.createClientVe(this.element,this,137721)};
t4a=function(a,b,c){var d=a.Da[b],e=g.PJ[b];return s4a(a,d?d.qualityLabel:e?e+"p":"\u0410\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430",b,c)};
u4a=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=s4a(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",xa:d});return a};
s4a=function(a,b,c,d){b={I:"span",Ma:d,V:[b]};var e;d="ytp-swatch-color";if(a.G||a.j)d="ytp-swatch-color-white";c==="highres"?e="8K":c==="hd2880"?e="5K":c==="hd2160"?e="4K":c.indexOf("hd")===0&&c!=="hd720"&&(e="HD");e&&(b.V.push(" "),b.V.push({I:"sup",S:d,xa:e}));return b};
$W=function(a,b,c,d){g.W.call(this,{I:"div",S:"ytp-input-slider-section",V:[{I:"input",S:"ytp-input-slider",W:{type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]});this.D=a;this.K=b;this.N=c;this.initialValue=d;this.B=this.Fa("ytp-input-slider");this.j=d?d:a;this.init();this.T(this.B,"input",this.G)};
w4a=function(a,b){a.j=b;a.updateValue("slidervalue",a.j);a.B.valueAsNumber=a.j;v4a(a,b)};
v4a=function(a,b){a.B.style.setProperty("--yt-slider-shape-gradient-percent",(b-a.D)/(a.K-a.D)*100+"%")};
aX=function(a){$W.call(this,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],.05,a.getPlaybackRate());this.J=a;this.C=g.Bf("P");this.ra=pba(this.Y,this);g.Kv(this.B,"ytp-speedslider");g.Kv(this.C,"ytp-speedslider-text");a=this.C;var b=this.B;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);x4a(this);this.T(this.J,"onPlaybackRateChange",this.updateValues)};
x4a=function(a){a.C.textContent=a.j+"x"};
bX=function(a,b,c,d,e,f,h){g.W.call(this,{I:"div",S:"ytp-slider-section",W:{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.N=a;this.Y=b;this.B=c;this.D=d;this.ra=e;this.Ga=f;this.range=this.D-this.B;this.La=this.Fa("ytp-slider-section");this.G=this.Fa("ytp-slider");this.Ha=this.Fa("ytp-slider-handle");this.K=new g.FU(this.G,
!0);this.j=h?h:c;g.M(this,this.K);this.K.subscribe("dragmove",this.E6,this);this.T(this.element,"keydown",this.F6);this.T(this.element,"wheel",this.D6);this.init()};
cX=function(a){bX.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.C=g.Bf("P");this.Da=pba(this.va,this);g.Kv(this.G,"ytp-speedslider");g.Kv(this.C,"ytp-speedslider-text");a=this.C;var b=this.G;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);y4a(this);this.T(this.J,"onPlaybackRateChange",this.updateValues)};
y4a=function(a){a.C.textContent=z4a(a,a.j)+"x"};
z4a=function(a,b){a=Number(g.ze(b,a.B,a.D).toFixed(2));b=Math.floor((a+.001)*100%5+2E-15);var c=a;b!==0&&(c=a-b*.01);return Number(c.toFixed(2))};
A4a=function(a){g.OE.call(this,{I:"div",S:"ytp-speedslider-component"});a.L("web_settings_use_input_slider")?this.j=new aX(a):this.j=new cX(a);g.M(this,this.j);this.element.appendChild(this.j.element)};
B4a=function(a){var b=new A4a(a);sU.call(this,a,b,"\u0414\u0440\u0443\u0433\u0430\u044f");g.M(this,b)};
C4a=function(a,b){var c=new B4a(a);g.BU.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.aU.W6,a,b,dX(a)?void 0:"\u0414\u0440\u0443\u0433\u0430\u044f",dX(a)?void 0:function(){g.wU(b,c)});
a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z            M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z            M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z            M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z            M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
fill:"white"}}]});g.M(this,c);this.J=a;this.K=null;dX(a)?(this.j=g.aJ("\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u0430\u044f ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.J.getPlaybackRate().toString()}),this.D=this.J.getPlaybackRate()):this.D=this.j=null;this.G=this.J.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Ua);this.Ua()};
E4a=function(a,b){var c=D4a(b);a.options[c]?a.Ti(c):b===a.D&&a.j&&(a.Ti(a.j),a.Dd(b.toString()))};
G4a=function(a){g.CU(a,a.G.map(D4a));a.j=null;a.D=null;var b=a.J.getPlaybackRate();if(!a.G.includes(b)||dX(a.J))F4a(a,b),g.BU.prototype.Mg.call(a,a.j)};
F4a=function(a,b){a.D=b;a.j=g.aJ("\u0418\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u0430\u044f ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.G.map(D4a);b.unshift(a.j);g.CU(a,b)};
D4a=function(a){return a.toString()};
dX=function(a){return a.L("web_settings_menu_surface_custom_playback")};
H4a=function(a){return a.L("web_settings_menu_surface_custom_playback")&&a.L("web_settings_use_input_slider")};
J4a=function(a,b,c,d){var e=new g.tU(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.BU.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.wU(c,e)});
var f=this;g.Kv(this.element,"ytp-subtitles-options-menu-item");this.K=d.option.toString();a=d.options;this.settings=g.cc(a,this.KU,this);this.G=e;g.M(this,this.G);b=new g.NT({I:"div",S:"ytp-menuitemtitle",xa:"\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.M(this,b);this.G.Vc(b,!0);this.D=new g.NT({I:"div",S:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",xa:"\u0412\u041a\u041b"}]},-1);g.M(this,this.D);this.G.Vc(this.D,!0);this.T(this.D.element,"click",function(){I4a(f,!0)});
this.j=new g.NT({I:"div",S:"ytp-menuitem",W:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",xa:"\u0412\u042b\u041a\u041b"}]},-2);g.M(this,this.j);this.G.Vc(this.j,!0);this.T(this.j.element,"click",function(){I4a(f,!1)});
g.CU(this,g.$r(a,this.KU))};
I4a=function(a,b){a.publish("settingChange",a.K+"Override",!b);a.Gb.ej()};
eX=function(a,b){g.tU.call(this,a,void 0,"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b");var c=this;this.Qu={};for(var d=0;d<g.iW.length;d++){var e=g.iW[d],f=new J4a(-d,a,b,e);g.M(this,f);f.subscribe("settingChange",this.Hk,this);this.Qu[e.option.toString()]=f;this.Vc(f,!0)}a=new g.NT(g.OT(),-g.iW.length,"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c");g.M(this,a);a.listen("click",function(){c.Hk("reset",!0)});
this.Vc(a,!0)};
fX=function(a,b){g.BU.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)};
K4a=function(a,b){a.languages=g.cc(b,a.j,a);g.CU(a,g.$r(b,a.j))};
M4a=function(a,b){var c=new eX(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.ER(a.U())&&(e={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",xa:d[0]},{I:"a",S:"ytp-panel-footer-content-link",xa:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",W:{href:"/account_playback"}},{I:"span",xa:d[1]}]});g.BU.call(this,"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b",g.aU.SUBTITLES,a,b,"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b",function(){g.wU(b,c)},e);
var f=this;this.J=a;this.Gb=b;this.tracks={};this.K=new g.Dv(function(){L4a(f,!1)},3E3);
g.M(this,this.K);this.countLabel=new g.W({I:"div",V:[{I:"span",xa:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b"},{I:"span",S:"ytp-menuitem-label-count",xa:"{{content}}"}]});g.M(this,this.countLabel);this.Qj(this.countLabel);a.L("web_settings_menu_icons")&&this.setIcon(fZa.includes("ru")?{I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z            M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z            M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
fill:"white"}}]}:{I:"svg",W:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",W:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.j=new fX(a,b);g.M(this,this.j);this.j.subscribe("select",this.E4,this);this.G=c;g.M(this,this.G);this.G.subscribe("settingChange",this.Hk,this);b.subscribe("show",this.uca,this);this.T(a,"videodatachange",this.Ua);this.T(a,"onApiChange",this.Ua);this.T(a,"onCaptionsTrackListChanged",
this.Ua);this.T(a,"captionschanged",this.Ua);a.createClientVe(this.element,this,127300);this.Ua()};
N4a=function(a){return Object.values(a.tracks).find(function(b){return b.languageCode==="en"&&b.kind==="asr"})};
gX=function(a,b){a.J.setOption("captions","track",b)};
L4a=function(a,b){a.J.setOption("captions","sampleSubtitles",b)};
O4a=function(a){g.vU.call(this,a,"ytp-settings-menu");var b=this;this.Qe=new g.tU(this.J);this.JS=this.settingsButton=null;this.isInitialized=this.BL=!1;g.M(this,this.Qe);this.hide();g.wU(this,this.Qe);a.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(c){b.Lf(c)});
this.T(a,"highlightSettingsMenu",function(){b.BL=!0;b.od()});
this.J.L("web_player_enable_open_menu_item_from_command")&&this.T(a,"openSettingsMenuItem",function(c){if(c&&(b.BL=!0,b.od(),c==="menu_item_video_quality_advanced")){var d;(d=b.JS)==null||d.open()}})};
P4a=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
hX=function(a,b){g.W.call(this,{I:"button",Ma:["ytp-subtitles-button","ytp-button"],W:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"3","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[gZa()]});this.J=a;this.tooltip=b.Te();this.T(a,"videodatachange",this.Ua);this.T(a,"appresize",this.Ua);this.T(a,"promotooltipacceptbuttonclicked",this.j);this.T(a,"onApiChange",this.Ua);this.T(a,"onCaptionsTrackListChanged",this.Ua);this.T(a,"captionschanged",this.Ua);
this.J.createClientVe(this.element,this,127299);this.Ua();this.listen("click",this.onClick);this.addOnDisposeCallback(g.xT(b.Te(),this.element))};
Q4a=function(a){return g.yV(a.J.Bb())!=null?g.yV(a.J.Bb()).ET()?!!a.J.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
g.jX=function(a,b,c){c=c===void 0?350:c;g.W.call(this,{I:"div",Ma:["ytp-time-display","notranslate"],V:[{I:"span",S:"ytp-time-clip-icon",xa:"{{clipicon}}"},{I:"span",V:[{I:"span",S:"ytp-time-current",xa:"{{currenttime}}"},{I:"span",S:"ytp-time-separator",xa:" / "},{I:"span",S:"ytp-time-duration",xa:"{{duration}}"}]},{I:"span",S:"ytp-clip-watch-full-video-button-separator",xa:"\u2022"},{I:"span",S:"ytp-clip-watch-full-video-button",xa:"{{watchfullvideo}}"}]});this.api=a;this.N=c;this.liveBadge=new g.W({I:"button",
Ma:["ytp-live-badge","ytp-button"],W:{disabled:"true"},xa:"{{content}}"});this.j=null;this.CF=this.B=!1;this.K=this.G=null;this.isPremiere=!1;this.Fb=this.D=this.C=null;this.Y=this.Fa("ytp-clip-watch-full-video-button");this.liveBadge.Dd("\u0412 \u044d\u0444\u0438\u0440\u0435");g.M(this,this.liveBadge);this.liveBadge.Ka(this.element);this.tooltip=b.Te();this.listen("click",this.onClick);this.T(this.Y,"click",this.Sca);this.T(a,"presentingplayerstatechange",this.Uc);this.T(a,"appresize",this.Uc);this.T(a,
"onLoopRangeChange",this.onLoopRangeChange);this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Uc();a=a.getLoopRange();b=this.Fb!==a;this.Fb=a;b&&iX(this);this.api.L("web_modern_miniplayer")&&(this.element.hidden=!0)};
iX=function(a){a.updateValue("clipicon",{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",W:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]});
a.CF&&!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.Ov(a.element,"ytp-clip",kX(a));g.Ov(a.element,"ytp-live",lX(a))};
lX=function(a){var b=a.api.U().L("enable_linear_program_progress");return a.CF&&!kX(a)&&(!b||!a.B)};
kX=function(a){return!!a.Fb&&!!a.Fb.postId&&a.api.getPresentingPlayerType()!==2&&(!a.Fb.type||a.Fb.type==="clips")};
S4a=function(a,b){g.W.call(this,{I:"div",S:"ytp-volume-panel",W:{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.Um=!1;this.Y=this.volume=0;this.G=null;this.B=this.j=this.isDragging=!1;this.K=b;this.C=a.Lh();this.N=this.Fa("ytp-volume-slider");
this.ra=this.Fa("ytp-volume-slider-handle");this.D=new g.FU(this.N,!0);g.M(this,this.D);this.D.subscribe("dragstart",this.Aca,this);this.D.subscribe("dragmove",this.G4,this);this.D.subscribe("dragend",this.zca,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.LU);this.T(a,"fullscreentoggled",this.Zx);this.T(a,"onShowControls",this.nX);this.T(a,"onHideControls",this.nX);this.T(this.element,"keydown",this.H4);this.T(this.element,"focus",function(){mX(c,c.j,c.isDragging,
!0,c.api.Um())});
this.T(this.element,"blur",function(){mX(c,c.j,c.isDragging,!1,c.api.Um())});
this.LU(a.qb().getPlayerSize());R4a(this,a.getVolume(),a.isMuted());yT(a,this.element,this)};
R4a=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.ra.style.left=(a.C?60:40)*c+"px";a.volume=b};
T4a=function(a,b){g.Ov(a.element,"ytp-volume-control-hover",b);mX(a,b,a.isDragging,a.B,a.api.Um())};
mX=function(a,b,c,d,e){var f=a.j||a.isDragging||a.B||a.Um;a.j=b;a.isDragging=c;a.B=d;a.Um=e;b=a.j||a.isDragging||a.B||a.Um;f!==b&&(b?a.G=a.T(a.element,"wheel",a.F4):(a.Oc(a.G),a.G=null),g.Ov(a.K,"ytp-volume-slider-active",b))};
nX=function(a,b){var c=a.U(),d=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.C&&d.push("no-link");var e={title:"{{title}}",target:c.Y,"data-priority":"4","data-sessionlink":"feature=player-button"};c.C||(e.href="{{url}}");g.W.call(this,{I:"a",Ma:d,W:e,xa:"{{logoSvg}}"});this.j=null;this.api=a;this.visible=!1;c.C||(this.j=this.listen("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.kc);this.onVideoDataChange();c.C||this.addOnDisposeCallback(g.xT(b.Te(),this.element));this.kc()};
U4a=function(a,b,c){g.NJ.call(this);var d=this;this.J=a;this.Pe=b;this.Og=c;this.ib=NaN;this.Xa=this.Ya=null;this.B=new O4a(this.J);this.progressBar=new g.HW(this.J,this.Pe);this.ra=this.Y=this.G=null;this.Da=new g.jX(this.J,this.Pe);this.Wa=this.playButton=this.D=this.K=this.Sa=this.La=null;this.eb=new l3a(this.J,this.Pe);this.Z=new g.Cv(this.I4,null,this);this.va=null;c=a.U();this.Og.subscribe("autohideupdate",this.BB,this);var e=!a.getPlayerStateObject().isCued(),f;a.U().L("html5_player_dynamic_bottom_gradient")?
this.Xa=f=new g3a(a):f=new g.W({I:"div",S:"ytp-gradient-bottom"});g.M(this,f);g.HT(a,f.element,9);this.Ga=new g.rF(f,250,e,100);g.M(this,this.Ga);this.C=new g.W({I:"div",S:"ytp-chrome-bottom",V:[{I:"div",S:"ytp-chrome-controls"}]});g.M(this,this.C);g.HT(a,this.C.element,9);this.Ha=new g.rF(this.C,250,e,100);g.M(this,this.Ha);this.Oa=this.C.element.children[0];g.M(this,this.B);g.HT(a,this.B.element,6);this.B.subscribe("show",function(l){d.J.vH(!l);a.rT(d.B,l)});
g.M(this,this.progressBar);this.progressBar.Ka(this.C.element,0);e=new xW(a,b);g.M(this,e);g.HT(a,e.element,4);e=new g.KE({I:"div",S:"ytp-left-controls"});g.M(this,e);e.Ka(this.Oa);f=new g.CW(a,b,!1);g.M(this,f);f.Ka(e.element);a.L("web_render_jump_buttons")&&(this.Y=new yW(a,g.oI(a.U().experiments,"web_jump_button_backward_amount")||-10),g.M(this,this.Y),this.Y.Ka(e.element));c.Sa||(this.playButton=new g.BW(a,b),g.M(this,this.playButton),this.playButton.Ka(e.element));a.L("web_render_jump_buttons")&&
(this.ra=new yW(a,g.oI(a.U().experiments,"web_jump_button_forward_amount")||10),g.M(this,this.ra),this.ra.Ka(e.element));f=new g.CW(a,b,!0);g.M(this,f);f.Ka(e.element);f=new g.W({I:"span",S:"ytp-volume-area"});g.M(this,f);f.Ka(e.element);if(!c.Zc&&(this.G=new o3a(a,b),g.M(this,this.G),this.G.Ka(f.element),c.Wa&&!c.Z)){var h=new S4a(a,this.C.element);this.Wa=h;g.M(this,h);h.Ka(f.element);f=new g.FU(f.element);g.M(this,f);f.subscribe("hoverstart",function(){var l;(l=d.Wa)==null||T4a(l,!0)});
f=new g.FU(e.element);g.M(this,f);f.subscribe("hoverend",function(){var l;(l=d.Wa)==null||T4a(l,!1)})}g.M(this,this.Da);
this.Da.Ka(e.element);this.j=new g.KE({I:"div",S:"ytp-right-controls"});g.M(this,this.j);this.La=new wW(a,this.progressBar);g.M(this,this.La);this.La.Ka(e.element);c.L("web_key_moments_markers")&&(this.Sa=new zW(a,this.progressBar),g.M(this,this.Sa),this.Sa.Ka(e.element));this.j.Ka(this.Oa);e=new hX(a,b);g.M(this,e);e.Ka(this.j.element);e=new WW(a,this.B);g.M(this,e);P4a(this.B,e);e.Ka(this.j.element);e=a.getVideoData();if(c.Dn||e.Jf&&c.controlsType==="1")this.K=new nX(a,b),g.M(this,this.K),this.K.Ka(this.j.element);
c.showMiniplayerButton&&(this.D=new AW(a),g.M(this,this.D),this.D.Ka(this.j.element));c.Jj&&(b=new VW(a,this.B),g.M(this,b),b.Ka(this.j.element));c.nm&&(b=new uW(a),g.M(this,b),b.Ka(this.j.element));g.M(this,this.eb);this.eb.Ka(this.j.element);g.M(this,this.Z);this.T(a,"appresize",this.kc);this.T(a,"fullscreentoggled",this.kc);this.T(a,"presentingplayerstatechange",this.qU);this.T(a,"videodatachange",this.onVideoDataChange);this.kc()};
V4a=function(a,b){a.J.getPlayerStateObject().isCued()||b?b&&(a.Ha.hide(),a.Ga.hide(),a.G&&a.G.Mc(!1),a.K&&a.K.Mc(!1),a.D&&a.D.Mc(!1),a.J.Am(a.Jb())):b||(a.Ha.show(),a.Ga.show(),a.G&&a.G.Mc(!0),a.K&&a.K.Mc(!0),a.D&&a.D.Mc(!0),a.BB())};
X4a=function(a){var b=a.J.qb().getPlayerSize().width;return Math.max(b-W4a(a)*2,100)};
W4a=function(a){var b=a.J.Lh(),c=a.J.getVideoData().Jf,d=0;a.J.Lh()&&a.J.fd()&&(d=(a.J.qb().getPlayerSize().width-a.J.getVideoContentRect().width)/2);return 12*(c?0:b?2:1)+d};
Y4a=function(a){var b=a.J.Lh()?72:50;a=a.J.U();g.ER(a)&&(b=62,g.sR(a)&&(b=54));return b};
Z4a=function(a){rU.call(this,a,!1);var b=this;this.suggestedActions={};this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.VI("suggested_action_button_visible"),function(c){c=c.id;b.text=c;XZa(b);b.onClickCommand=b.suggestedActions[c];b.enabled=!0;b.Lf()});
this.T(this.J,g.WI("suggested_action_button_visible"),function(c){b.enabled=!1;b.Lf();b.J.removeCueRange(c.id)})};
$4a=function(a){a.suggestedActions={};a.J.sf("suggested_action_button_visible")};
pX=function(a){g.W.call(this,{I:"div",S:oX.TITLE,V:[{I:"div",S:oX.TEXT,V:[{I:"a",Ma:[oX.LINK,oX.SESSIONLINK],W:{target:a.U().Y,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},xa:"{{title}}"},{I:"div",S:oX.SUBTEXT,V:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Fa(oX.LINK);a.createClientVe(this.element,this,23851);this.T(a,"videodatachange",this.Ua);this.T(a,"videoplayerreset",this.Ua);this.Ua()};
a5a=function(a){a.updateValue("channelLink","");a.updateValue("channelName","");g.sR(a.api.U())?a.updateValue("channelTitleFocusable","0"):a.updateValue("channelTitleFocusable","-1")};
g.qX=function(a,b){g.W.call(this,{I:"div",V:[{I:"div",S:"ytp-tooltip-text-wrapper",W:{"aria-hidden":"{{ariaHidden}}"},V:[{I:"div",S:"ytp-tooltip-edu",V:[{I:"svg",W:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",W:{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",xa:"{{eduText}}"}]},{I:"div",S:"ytp-tooltip-image"},{I:"div",S:"ytp-tooltip-title",V:[{I:"span",xa:"{{title}}"}]},{I:"span",S:"ytp-tooltip-text",xa:"{{text}}"}]},
{I:"div",S:"ytp-tooltip-bg",V:[{I:"div",S:"ytp-tooltip-duration",xa:"{{duration}}"}]}]});var c=this;this.api=a;this.Wa=b;this.env=this.api.U();this.Oa=this.env.B;this.bg=this.Fa("ytp-tooltip-bg");this.Sa=this.Fa("ytp-tooltip-edu");this.image=this.Fa("ytp-tooltip-image");this.text=this.Fa("ytp-tooltip-text");this.title=this.Fa("ytp-tooltip-title");this.va=function(d){(d=d.relatedTarget)&&g.Of(c.j,d)||c.gi()};
this.G=function(d){c.type===3&&c.gi();(d=d.currentTarget)&&d.nodeType===1&&!c.type&&(d.removeEventListener("mouseover",c.G),d.addEventListener("mouseout",c.va),d.removeEventListener("focus",c.G),d.addEventListener("blur",c.va),b5a(c,d,2))};
this.Ha=function(){c.gi()};
this.j=null;this.K=new g.rF(this,100);this.type=null;this.ra=!1;this.B=null;this.D=NaN;this.C="";this.MU=this.api.qb().getPlayerSize().width;this.Y=!0;this.scale=1;this.N=160;this.Da=90;this.Ga=new g.Dv(this.C$,250,this);this.La=new g.Dv(this.gi,5E3,this);g.M(this,this.K);g.M(this,this.Ga);g.M(this,this.La);kR&&(a=this.Fa("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"));i3a(this.api)&&(this.N=243,this.Da=141,g.Kv(this.api.getRootNode(),"ytp-bigboards"))};
g.xT=function(a,b){if(a.Oa)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.gi();b.removeEventListener("mouseover",a.G);b.removeEventListener("focus",a.G)}};
b5a=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.FB("showElementTooltip called with non-element.",b.toString()),g.mE(a);else{isNaN(a.D)||(a.D=NaN,a.bg.style.background="");a.j=b;a.ra=!!d;d?a.C=d:(a.C=b.getAttribute("title"),b.removeAttribute("title"));g.Iv(a.element,"ytp-tooltip");g.Kv(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.Ov(a.element,"ytp-tooltip-image-enabled",
!!e);b=b.getAttribute("data-tooltip-opaque");g.Ov(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.Ha);a.Y&&(c5a(a),a.K.show(0))}};
c5a=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.aJ('\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.ra){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.Da*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.Lv(a.element,["ytp-text-detail","ytp-preview"]);g.Ov(a.element,"ytp-has-duration",!!c)}else a.updateValue("text",a.C),g.Nv(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);d5a(a,!!b)}};
d5a=function(a,b,c,d){var e=Math.min(a.MU,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Wa.sy(a.element,a.j,c,a.type===1,d);a.element.style.top?g.Kv(a.element,"ytp-bottom"):a.element.style.bottom&&g.Kv(a.element,"ytp-top");a.type===3&&a.La.start()};
e5a=function(a,b){g.Ov(a.element,"ytp-preview",b>=0);if(!(b<0||b===a.D)){a.D=b;b=a.N*a.scale;var c=a.Da*a.scale,d=CWa(a.B,a.D,b);h3a(a.bg,d,b,c,!0);a.Ga.start()}};
f5a=function(a){var b=a.j;a.type===3&&a.La.stop();a.api.removeEventListener("appresize",a.Ha);a.ra||b.setAttribute("title",a.C);a.C="";a.j=null};
h5a=function(a){g.W.call(this,{I:"button",Ma:["ytp-watch-later-button","ytp-button"],W:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.nR(a.U()))},V:[{I:"div",S:"ytp-watch-later-icon",xa:"{{icon}}"},{I:"div",S:"ytp-watch-later-title",xa:"\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;KYa(a);a.createClientVe(this.element,this,28665);this.listen("click",this.onClick,
this);this.T(a,"videoplayerreset",this.onReset);this.T(a,"appresize",this.oD);this.T(a,"videodatachange",this.oD);this.T(a,"presentingplayerstatechange",this.oD);this.oD();a=this.J.U();var b=g.yB("yt-player-watch-later-pending");a.D&&b?(YPa(),g5a(this)):this.Ua(2);g.Ov(this.element,"ytp-show-watch-later-title",g.nR(a));yT(this.J,this.element,this)};
i5a=function(a){var b=a.J.getPlayerSize(),c=a.J.U(),d=a.J.getVideoData(),e=g.nR(c)&&g.ET(a.J)&&g.yF(a.J.getPlayerStateObject(),128),f=c.C;return c.le&&b.width>=240&&!d.isAd()&&d.le&&!e&&!g.jT(d)&&!a.J.fd()&&!f};
j5a=function(a,b){q1a(g.AR(a.J.U()),"wl_button",function(){YPa({videoId:b});window.location.reload()})};
g5a=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Ua(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.Ua(2);a.J.U().N&&a.J.jb("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Ua(1);a.J.U().B&&a.J.BH(a.element);a.J.U().N&&a.J.jb("WATCH_LATER_VIDEO_ADDED")};
UG(c,b).then(d,function(){a.isRequestPending=!1;a.Ua(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().N&&a.J.jb("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.")})}};
k5a=function(a,b){if(b!==a.icon){switch(b){case 3:var c=hZa();break;case 1:c=hya();break;case 2:c={I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:c={I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",
Jc:!0,W:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",c);a.icon=b}};
g.rX=function(){g.PV.apply(this,arguments);this.vK=(this.Yr=g.nR(this.api.U()))&&(this.api.U().B||$A()||qra());this.CO=48;this.DO=69;this.rE=this.Gi=null;this.Su=[];this.AM=this.Ai=this.BM=this.Pw=this.me=null;this.PH=[];this.contextMenu=this.Ig=this.overflowButton=this.xi=this.eh=this.searchButton=this.copyLinkButton=this.shareButton=this.pp=this.Xg=this.title=this.channelAvatar=this.RB=this.tooltip=null;this.lO=!1;this.SG=this.Fx=this.PE=this.QE=null;this.qS=this.jR=this.RO=!1};
l5a=function(a){var b=a.api.U(),c=g.yF(a.api.getPlayerStateObject(),128);return b.D&&c&&!a.api.isFullscreen()};
m5a=function(a){if(a.Tg()&&!a.api.fd()&&a.xi){var b=a.api.L("web_player_hide_overflow_button_if_empty_menu");!a.pp||b&&!i5a(a.pp)||p2a(a.xi,a.pp);!a.shareButton||b&&!z2a(a.shareButton)||p2a(a.xi,a.shareButton);!a.copyLinkButton||b&&!F1a(a.copyLinkButton)||p2a(a.xi,a.copyLinkButton)}else{if(a.xi){b=a.xi;for(var c=g.v(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.Of(a.Xg.element,a.searchButton.element)&&a.searchButton.Ka(a.Xg.element);a.pp&&!g.Of(a.Xg.element,
a.pp.element)&&a.pp.Ka(a.Xg.element);a.shareButton&&!g.Of(a.Xg.element,a.shareButton.element)&&a.shareButton.Ka(a.Xg.element);a.copyLinkButton&&!g.Of(a.Xg.element,a.copyLinkButton.element)&&a.copyLinkButton.Ka(a.Xg.element)}};
n5a=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if(Ms(b,"display")!=="none"&&b.getAttribute("aria-hidden")!=="true"){var e=void 0;b.tabIndex>=0?e=b:e=n5a(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};
o5a=function(a,b,c){if(a.api.U().L("web_player_nitrate_promo_tooltip")){var d=a.api.getVideoData(1);if(d==null?0:d.tooltipRenderer){d=d.tooltipRenderer;var e;if(e=!a.SG){if(!(b=!b)){var f,h,l;b=((f=d.tooltipDisplayStrategy)==null?void 0:f.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((h=d.promoConfig)==null?void 0:h.promoId)!=="dtip-edu-player-iseecaptions"&&((l=d.promoConfig)==null?void 0:l.promoId)!=="dtip-edu-player-tc-m2"}e=b}e&&(a.SG=new t2a(d,a.api),g.M(a,a.SG),g.HT(a.api,a.SG.element,
9));var m;(m=a.SG)==null||x2a(m,d,c)}}};
g.sX=function(a){g.gV.call(this,a);this.chrome=null;this.load()};
tX=function(a,b,c,d){function e(h){var l=!(h.status!==204&&h.status!==200&&!h.response),m;h={succ:""+ +l,rc:h.status,lb:((m=h.response)==null?void 0:m.byteLength)||0,rt:((0,g.iC)()-f).toFixed(),shost:g.yn(a),trigger:b};p5a(h,a);c&&c(h);d&&!l&&d(new GJ("pathprobe.net",h))}
var f=(0,g.iC)();g.HA(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
p5a=function(a,b){var c;((c=window.performance)==null?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(),q5a&&(a.perqsa=b.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
uX=function(a){g.I.call(this);var b=this;this.X=a;this.j=new Map;this.D=[];this.B=this.X.experiments.gb("html5_onesie_trusted_hosts_for_all")||!fN();this.Y=g.oI(this.X.experiments,"html5_onesie_prewarm_interval_ms");this.Z=new g.Dv(this.N,this.Y,this);this.K=-1;this.wd={Gqb:function(){return b.j},
Mqb:function(){return b.G},
Hqb:function(){return r5a}};
g.M(this,this.Z);s5a(this,g.yB("yt-player-bandaid-host"));this.G=this.load();this.Y&&this.G.then(function(){b.N()})};
s5a=function(a,b){var c=b==null?void 0:b.primary;a.C(0,c);c=c?t5a(c):void 0;a.C(2,c);a.C(1,b==null?void 0:b.secondary)};
vX=function(a,b){return new g.fP("https://"+b+a.X.Vk.baseUrl)};
u5a=function(a,b){a="https://"+hP(b.location)+"/initplayback?c="+g.UQ(a.X)+"&owc=1";tX(a,"pw",function(c){c.ht=b.j})};
wX=function(a,b,c,d){tX("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.wK||d.kQ();a.D.push(e)},function(e){a.D.push(e.details)})};
t5a=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(b===1?2:b-1)+"---"})};
w5a=function(a,b){var c,d,e,f,h,l,m,n;return g.H(function(p){if(p.j==1){c=vX(a,"redirector.googlevideo.com");c.set("alr","yes");c.set("id",""+Math.round(Math.random()*1E5));if(b===1||b===2)c.set("cmo=sensitive_content","yes"),c.set("sc","yes");b===2&&c.set("cmo=td","c.youtube.com");d={format:"RAW",timeout:5E3};return g.z(p,JA(c.Ge(),d),2)}e=p.B;if(e.xhr.status!==200||!e.xhr.responseText)return p.return(Promise.reject(new g.FB("b204258371_no_host",c.Ge(),e.xhr.status)));f=new g.fP(e.xhr.responseText);
h=hP(f);l=f.get("ms");m=vX(a,h);n=f.get("mm");m.set("ms",l);m.set("mm",n);return h&&v5a(h)?b!==2||xX(h)?p.return(m):p.return(Promise.reject(new g.FB("b204258371_untrusted",h,l))):p.return(Promise.reject(new g.FB("b204258371_invalid",h,l)))})};
x5a=function(a){var b=a.D;a.D=[];return b};
v5a=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
xX=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
y5a=function(a,b){this.location=a;this.j=b};
z5a=function(){for(var a=yX.length;a<4;a++){var b=g.Bf("VIDEO");b.load();yX.push(new g.NU(b))}};
A5a=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.Yf()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(d=b.Me())&&d.isView()&&(d=d.mediaElement);if(d&&d.gx().length>12&&g.PS(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"};d=h.videoInfos[0];var l=e.C.videoInfos[0];a.G&&IS(f)&&(d=b.kA(),l=
c.kA());if(!d||!l)return{msg:"no-video-info"};if(a.C&&(WJ(d)||WJ(l)))return{msg:"av1"};b=a.B&&f.xk()&&oK();if(l.containerType!==d.containerType)if(b)f.oa("sgap",{ierr:"container"});else return{msg:"container"};if(g.PS(f)&&g.PS(e))return{msg:"content-protection"};h=h.j[0];e=e.C.j[0];c=h.audio;var m=e.audio;if(c.sampleRate!==m.sampleRate&&!g.LJ)if(b)f.oa("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:h.itag,cr:c.sampleRate,ni:e.itag,nr:m.sampleRate};return(c.numChannels||2)!==(m.numChannels||
2)?{msg:"channel-count"}:a.D&&f.xk()&&d.video.fps!==l.video.fps?{msg:"fps"}:null};
B5a=function(a,b,c){var d=a.getVideoData(),e=b.getVideoData();if(!d.U().supportsGaplessShorts())return{nq:"env"};if(d.Kk||e.Kk)return{nq:"autoplay"};if(!d.Y)return{nq:"client"};if(!c.j&&!a.Co())return{nq:"no-empty"};a=A5a(c,a,b,Infinity);return a!=null?{nq:a.msg}:null};
zX=function(a){g.I.call(this);this.app=a;this.D=this.C=this.wb=this.j=null;this.B=1;this.events=new g.NJ(this);this.events.T(this.app.Va,g.WI("gaplessshortslooprange"),this.N);g.M(this,this.events)};
C5a=function(){this.j=this.C=this.G=this.D=this.B=!1};
D5a=function(a){var b=new C5a;b.B=a.L("h5_gapless_support_types_diff");b.D=a.L("h5_gapless_error_on_fps_diff");b.G=a.L("html5_gapless_use_format_info_fix");b.C=a.L("html5_gapless_disable_on_av1");b.j=a.L("html5_gapless_one_queued_player_only");return b};
g.AX=function(a,b,c,d){d=d===void 0?!1:d;yK.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
E5a=function(a,b,c,d,e,f){f=f===void 0?0:f;g.I.call(this);var h=this;this.policy=a;this.j=b;this.B=c;this.zd=e;this.G=f;this.D=this.C=null;this.currentVideoDuration=this.K=-1;this.N=!1;this.Qq=new xK;this.yn=d-b.Fc()*1E3;this.Qq.then(void 0,function(){});
this.timeout=new g.Dv(function(){h.Gg("timeout")},1E4);
g.M(this,this.timeout);this.Z=isFinite(d);this.status={status:0,error:null}};
K5a=function(a){var b,c,d,e,f,h,l,m,n,p;return g.H(function(q){if(q.j==1){if(a.Na())return q.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.BX.Ts();return g.z(q,a.Qq,2)}g.BX.Hr("gtfta",b);c=a.j.Me();if(c.isEnded())return a.Gg("ended_in_finishTransition"),q.return(Promise.reject(Error(a.status.error||"")));if(!a.D||!rK(a.D))return a.Gg("next_mse_closed"),q.return(Promise.reject(Error(a.status.error||"")));if(a.B.Nr()!==a.D)return a.Gg("next_mse_mismatch"),q.return(Promise.reject(Error(a.status.error||
"")));d=F5a(a);e=d.F_;f=d.zX;h=d.D_;a.j.Oj(!1,!0);l=G5a(c,e,h,!a.B.getVideoData().isAd());a.B.setMediaElement(l);m=a.j.hF();a.zd.U().L("html5_mse_reuse_dropped_frames_fix")&&m&&a.B.uH(m.VB,m.WB);a.Z&&(a.B.seekTo(a.B.getCurrentTime()+.001,{qx:!0,cU:3,hd:"gapless_pseudo"}),l.play(),NA());n=c.qc();n.cpn=a.j.getVideoData().clientPlaybackNonce;n.st=""+e;n.et=""+h;a.B.oa("gapless",n);a.j.oa("gaplessTo",{cpn:a.B.getVideoData().clientPlaybackNonce});p=a.j.getPlayerType()===a.B.getPlayerType();H5a(a.j,f,!1,
p,a.B.getVideoData().clientPlaybackNonce);H5a(a.B,a.B.getCurrentTime(),!0,p,a.j.getVideoData().clientPlaybackNonce);a.B.v2=!0;a.zd.U().L("html5_gapless_monitor_pbs")&&a.G===1&&I5a(a.B);g.dg(function(){!a.B.getVideoData().Ha&&a.B.getPlayerState().isOrWillBePlaying()&&J5a(a.B)});
CX(a,6);a.dispose();return q.return(Promise.resolve())})};
P5a=function(a){if(a.B.getVideoData().C){var b=a.zd.U().L("html5_gapless_suspend_next_loader")&&a.G===1;L5a(a.B,a.D,b,M5a(a));CX(a,3);N5a(a);var c=O5a(a);b=c.zT;c=c.Y1;b.subscribe("updateend",a.ez,a);c.subscribe("updateend",a.ez,a);a.ez(b);a.ez(c)}};
N5a=function(a){a.j.unsubscribe("internalvideodatachange",a.Mn,a);a.B.unsubscribe("internalvideodatachange",a.Mn,a);a.zd.U().L("html5_gapless_use_format_info_fix")&&(a.j.unsubscribe("internalvideoformatchange",a.Mn,a),a.B.unsubscribe("internalvideoformatchange",a.Mn,a));a.j.unsubscribe("mediasourceattached",a.Mn,a);a.B.unsubscribe("statechange",a.NU,a)};
G5a=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.AX(a,b,c,d)};
CX=function(a,b){b<=a.status.status||(a.status={status:b,error:null},b===5&&a.Qq.resolve())};
M5a=function(a){return a.zd.U().L("html5_gapless_no_clear_buffer_timeline")&&a.G===1&&BS(a.j.getVideoData())};
F5a=function(a){var b=a.j.Me();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:DX(a.j,!0);c=Math.min(a.yn/1E3,c)+b;var d=a.Z?100:0;a=c-a.B.Yf()+d;return{h8:b,F_:a,zX:c,D_:Infinity}};
O5a=function(a){return{zT:a.C.j.Id,Y1:a.C.B.Id}};
R5a=function(a){g.I.call(this);var b=this;this.app=a;this.G=this.B=this.j=null;this.Z=!1;this.C=this.D=null;this.N=D5a(this.app.U());this.K=function(){g.dg(function(){Q5a(b)})}};
S5a=function(a,b,c,d,e){d=d===void 0?0:d;e=e===void 0?0:e;a.Co()||EX(a);a.D=new xK;a.j=b;var f=c,h=e===0;h=h===void 0?!0:h;var l=a.app.Wc(),m=l.getVideoData().isLivePlayback?Infinity:DX(l,!0)*1E3;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.VI("vqueued"),a.K),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.UI(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,DX(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,DX(b)+m)),h=cUa(f,l)||d,h!==d&&a.j.oa("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().Ed=!0;d.getVideoData().Y=!0;g.FX(d,!0);f={};a.B&&(f=g.xM(a.B.uc().provider),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(f*1E3).toFixed(),cpn:h});d.oa("queued",f);b!==0&&d.seekTo(b+.01,{qx:!0,cU:3,hd:"videoqueuer_queued"});a.C=new E5a(a.N,a.app.Wc(),a.j,c,a.app,e);c=a.C;c.status.status!==
Infinity&&(CX(c,1),c.j.subscribe("internalvideodatachange",c.Mn,c),c.B.subscribe("internalvideodatachange",c.Mn,c),c.zd.U().L("html5_gapless_use_format_info_fix")&&(c.j.subscribe("internalvideoformatchange",c.Mn,c),c.B.subscribe("internalvideoformatchange",c.Mn,c)),c.j.subscribe("mediasourceattached",c.Mn,c),c.B.subscribe("statechange",c.NU,c),c.j.subscribe("newelementrequired",c.Z_,c),c.Mn());return a.D};
Q5a=function(a){var b,c,d,e,f,h,l,m,n;g.H(function(p){switch(p.j){case 1:if(a.Na()||!a.D||!a.j)return p.return();a.Z&&GX(a.app.Wc(),!0,!1);c=a.app.U().L("html5_force_csdai_gapful_transition")&&((b=a.app.Wc())==null?void 0:b.getVideoData().isDaiEnabled());d=null;if(!a.C||c){p.Ja(2);break}g.Ba(p,3);return g.z(p,K5a(a.C),5);case 5:g.Ca(p,2);break;case 3:d=e=g.Da(p);case 2:if(!a.j)return p.return();g.BX.Vo("vqsp",function(){HX(a.app,a.j)});
f=a.j.Me();a.app.U().L("html5_gapless_seek_on_negative_time")&&f&&f.getCurrentTime()<-.01&&a.j.seekTo(0);g.BX.Vo("vqpv",function(){a.app.playVideo()});
if(d||c)a.j?(h=d?d.message:"forced",(l=a.B)==null||l.oa("gapfulfbk",{r:h}),T5a(a.j,h)):(m=a.B)==null||m.oa("gapsp",{});n=a.D;EX(a);n&&n.resolve();return p.return(Promise.resolve())}})};
EX=function(a,b){b=b===void 0?!1:b;if(a.B){if(a.G){var c=a.B;a.app.Va.removeEventListener(g.VI("vqueued"),a.K);c.removeCueRange(a.G)}a.B=null;a.G=null}a.C&&(a.C.status.status!==6&&(c=a.C,c.status.status!==Infinity&&c.G!==1&&c.Gg("Canceled")),a.C=null);a.D=null;a.j&&!b&&a.j!==g.uT(a.app,1)&&a.j!==a.app.Wc()&&a.j.dispose();a.j&&b&&IX(a.j);a.j=null;a.Z=!1};
U5a=function(a){var b;return((b=a.C)==null?void 0:b.currentVideoDuration)||-1};
V5a=function(a,b,c){if(a.Co())return"qie";if(a.j==null||a.j.Na()||a.j.getVideoData()==null)return"qpd";if(b.videoId!==a.j.ue())return"vinm";if(U5a(a)<=0)return"ivd";if(c!==1)return"upt";var d;(d=a.C)==null?a=void 0:d.getStatus().status!==5?a="niss":A5a(d.policy,d.j,d.B,d.yn)!=null?a="pge":(c=O5a(d),b=c.zT,a=g.oI(d.zd.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds"),d=d.K+a,c=hK(c.Y1.Ee(),d),b=hK(b.Ee(),d),a=!(a>0)||c&&b?null:"neb");return a!=null?a:null};
W5a=function(){var a=Lra();return!(!a||a==="visible")};
Y5a=function(a){var b=X5a();b&&document.addEventListener(b,a,!1)};
Z5a=function(a){var b=X5a();b&&document.removeEventListener(b,a,!1)};
X5a=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[Kra+"VisibilityState"])return"";a=Kra+"visibilitychange"}return a};
$5a=function(){g.GE.call(this);var a=this;this.fullscreen=0;this.D=this.C=this.pictureInPicture=this.j=this.B=this.inline=!1;this.G=function(){a.Lf()};
Y5a(this.G);this.K=this.getVisibilityState(this.ji(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.xu(),this.QA(),this.XA(),this.zk())};
s_a=function(a){return!(a.isMinimized()||a.isInline()||a.isBackground()||a.xu()||a.QA()||a.XA()||a.zk())};
JX=function(a,b){g.I.call(this);var c=this;this.policy=a;this.kb=b;this.B=0;this.j=null;this.zf=[];this.C=null;this.wd={Zn:function(){return c.kb}};
this.kb.length===1||g.as(this.kb,function(d){return!!d.range})};
KX=function(a,b,c){a.j&&(oN(a.j,b),b=a.j,a.j=null);for(var d=0,e=0,f=g.v(a.kb),h=f.next();!h.done;h=f.next())if(h=h.value,h.range&&d+h.B<=a.B)d+=h.B;else{if(bQ(h)&&!c&&a.B+b.totalLength-e<d+h.B){a.j=b.split(e).xn;break}a:{var l=a;var m=h,n=a.B-d,p=b.totalLength-e;m.range&&(p=Math.min(m.B-n,p));m=KSa(m,m.Tb+n,p,m.range?m.Tb+n+p===m.range.length:!!c);n=pN(b,e,p);m=new pQ(m,n);if(l.policy.useUmp&&l.zf.length&&(n=rQ(l.zf[l.zf.length-1],m))){l.zf[l.zf.length-1]=n;l=p;break a}l.zf.push(m);l=p}a.B+=l;e+=
l;d+=h.B;if(e===b.totalLength)break}};
LX=function(a){g.I.call(this);this.D=a;this.logger=new g.FQ("onesie");this.bd=new Map;this.B=this.j=!1;this.Ve=this.manifest=null;this.C=!1};
a6a=function(a,b,c){a.bd.get(b).Fg=c};
NX=function(a,b){a.bd.has(b)&&(MX?a.bd.get(b).Dj.clear():a.bd.get(b).zf=new nN,b6a(a,b),a.B=!0)};
c6a=function(a){for(var b=g.v(a.bd),c=b.next();!c.done;c=b.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;d.aE||NX(a,c)}};
d6a=function(a,b){b=a.bd.get(b);if(!b)return 0;a=0;if(b.kb.length>0){b=g.v(b.kb);for(var c=b.next();!c.done;c=b.next()){var d=void 0;a+=((d=c.value.range)==null?void 0:d.length)||0}return a}if(b.cG.length>0)for(c=g.v(b.cG),d=c.next();!d.done;d=c.next())a+=d.value.Ls||0;return a+b.nZ};
e6a=function(a,b){if(MX){var c=0;a=a.bd.get(b);if(a==null||!a.Dj)return 0;a=g.v(a.Dj.values());for(b=a.next();!b.done;b=a.next())c+=b.value.data.totalLength;return c}return((c=a.bd.get(b))==null?void 0:c.zf.totalLength)||0};
OX=function(a,b){a=a.bd.get(b);if(MX){if(a==null||!a.aE)return!1;b=a.Dj.size>0;return a.Nx.length>0||b}return!(a==null||!a.aE)&&!(a==null||!a.zf.totalLength)};
f6a=function(a,b){var c=a.bd.get(b),d=d6a(a,b),e=!d&&!!c.bytesReceived;if(MX){var f;if((f=a.manifest)==null?0:f.hc){a=g.v(c.Dj.values());for(b=a.next();!b.done;b=a.next())if(!b.value.zx)return!1;return e}}else if(f=a.wx(b),e&&a.j&&f!==void 0)return f;return(e||c.bytesReceived===d)&&c.Iz+e6a(a,b)===c.bytesReceived};
g6a=function(a,b,c){a.bd.set(b,{zf:new nN,Iz:0,bytesReceived:0,nZ:0,GS:!1,Sg:!1,wx:!1,Kh:c,jT:[],kb:[],cG:[],aE:!1,Dj:new Map,EH:new Map,Nx:[]});a.logger.debug(function(){return"[initStream] formatId: "+b})};
h6a=function(a,b,c,d){c.kb.push.apply(c.kb,g.ra(d));if(MX){c.EH.has(b)||c.EH.set(b,[]);var e;(e=c.EH.get(b)).push.apply(e,g.ra(d))}else if(c.fg)for(a=g.v(d),b=a.next();!b.done;b=a.next())c.fg.kb.push(b.value);else{c.fg=new JX(a.Ve,[].concat(g.ra(c.kb)));var f;((f=a.Ve)==null?0:f.Zd)&&g.M(a,c.fg)}};
i6a=function(a,b,c){var d,e=(d=a.manifest)==null?void 0:d.N.get(b);if(!e)return[];if(c.Bo){var f;return((f=e.ax(0,c.clipId))==null?void 0:f.kb)||[]}if(e.Sm()){var h=c.startMs;d=c.durationMs;f=1E3;var l;if(((l=a.Ve)==null?0:l.C)&&c.timeRange){var m;h=(m=c.timeRange.Ah)!=null?m:-1;var n;d=(n=c.timeRange.CE)!=null?n:-1;var p;f=(p=c.timeRange.Ev)!=null?p:-1}if(c.mC<0||c.Jq<0||d<0||h<0||c.Ls<0||f<0)return NX(a,b),[];a=YP(c.mC,c.Ls);b=c.fL||0;return[new $P(3,e,a,"makeSliceInfosMediaBytes",c.Jq-1,h/f,d/
f,b,a.length-b,void 0,c.Pj,c.clipId)]}if(c.Jq<0)return NX(a,b),[];var q;return((q=a.manifest)==null?0:q.hc)?(b=e.Rj,l=b*e.info.ub,a=((h=a.Ve)==null?0:h.Bc)?c.fL:void 0,[new $P(3,e,void 0,"makeSliceInfosMediaBytes",c.Jq,void 0,b,a,l,!0,c.Pj,c.clipId)]):[]};
j6a=function(a,b,c){a.manifest=b;a.Ve=c;b=g.v(a.bd);for(c=b.next();!c.done;c=b.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;for(var e=g.v(d.jT),f=e.next();!f.done;f=e.next()){f=f.value;var h=i6a(a,c,f);h6a(a,f.aq,d,h)}}};
k6a=function(a,b,c,d){a.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+b+" bytes: "+d.totalLength});
(a=a.bd.get(c))&&!a.Sg&&(MX?(a.Dj.has(b)||a.Dj.set(b,{data:new nN,OI:0,zx:!1}),oN(a.Dj.get(b).data,d)):oN(a.zf,d),a.bytesReceived+=d.totalLength,a.GS=!0)};
b6a=function(a,b){a.logger.debug(function(){return"[closeStream] formatId: "+b});
var c=a.bd.get(b);c&&!c.Sg&&(c.Sg=!0,c.Fg&&c.Fg(),l6a(a)&&a.D.L_())};
l6a=function(a){a=g.v(a.bd.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.Sg)return!1;return!0};
PX=function(a,b){var c,d;(c=window.h5vcc)==null||(d=c.settings)==null||d.set(a,b)};
m6a=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.ra(new Uint8Array(c))));a.close()}return b};
r6a=function(a){var b=a.experiments,c=b.gb.bind(b);n6a=c("html5_use_async_stopVideo");o6a=c("html5_pause_for_async_stopVideo");p6a=c("html5_not_reset_media_source");fFa=c("html5_rebase_video_to_ad_timeline");sK=c("html5_not_reset_media_source");q6a=c("html5_not_reset_media_source");REa=c("html5_retain_source_buffer_appends_for_debugging");p_a=c("web_enable_auto_pip")||c("web_enable_pip_on_miniplayer");c("html5_mediastream_applies_timestamp_offset")&&(QX=!0);var d=g.oI(b,"html5_cobalt_override_quic");
d&&PX("QUIC",+(d>0));(d=g.oI(b,"html5_cobalt_audio_write_ahead_ms"))&&PX("Media.AudioWriteDurationLocal",d);(d=c("html5_cobalt_enable_decode_to_texture"))&&PX("Media.PlayerConfiguration.DecodeToTexturePreferred",d?1:0);(d=c("html5_cobalt_enable_media_element_buffered_range"))&&PX("MediaElement.EnableUsingMediaSourceBufferedRange",+d);Error.stackTraceLimit=50;var e=g.oI(b,"html5_idle_rate_limit_ms");e&&Object.defineProperty(window,"requestIdleCallback",{value:function(f){return window.setTimeout(f,
e)}});
JUa(a.G);MX=c("html5_use_ump_request_slicer");q5a=c("html5_record_now");c("html5_disable_streaming_xhr")&&(VQ=!1);c("html5_pr_start_secs")&&(jYa=!0);g.oI(a.experiments,"html5_byterate_soft_cap_mweb")&&(QO=!0);c("html5_use_non_active_broadcast_for_post_live")&&(aTa=!0)};
s6a=function(a){return a.slice(12).replace(/_[a-z]/g,function(b){return b.toUpperCase().replace("_","")}).replace("Dot",".")};
t6a=function(a){if(a.experiments.gb("html5_cobalt_auto_apply_h5vcc_flags"))for(var b in a.experiments.flags)if(b.startsWith("cobalt_h5vcc")){var c=s6a(b),d=g.oI(a.experiments,b);c&&d&&PX(c,d)}};
RX=function(a,b,c,d,e){e=e===void 0?[]:e;g.I.call(this);this.X=a;this.pc=b;this.C=c;this.segments=e;this.j=void 0;this.B=new Map;e.length&&(this.j=e[0])};
u6a=function(a){if(!(a.segments.length<2)){var b=a.segments.shift();if(b){var c=b.j,d=[];if(c.size){c=g.v(c.values());for(var e=c.next();!e.done;e=c.next()){e=g.v(e.value);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var h=g.v(f.segments),l=h.next();!l.done;l=h.next())(l=SX(l.value))&&d.push(l);f.removeAll()}}}(c=SX(b))&&d.push(c);d=g.v(d);for(c=d.next();!c.done;c=d.next())a.B.delete(c.value);b.dispose()}}};
TX=function(a,b,c,d){if(!a.j||b>c)return!1;b=new RX(a.X,b,c,a.j,d);d=g.v(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=SX(c);e&&e!==SX(a.j)&&a.B.set(e,[c])}a=a.j;a.j.has(b.cf())?a.j.get(b.cf()).push(b):a.j.set(b.cf(),[b]);return!0};
UX=function(a,b){return a.B.get(b)};
v6a=function(a,b,c){a.B.set(b,c)};
VX=function(a,b,c,d,e,f){return new w6a(c,c+(d||0),!d,b,a,e,f)};
w6a=function(a,b,c,d,e,f,h){g.I.call(this);this.pc=a;this.B=b;this.C=c;this.type=d;this.D=e;this.videoData=f;this.KK=h;this.j=new Map;BXa(f)};
SX=function(a){return a.videoData.clientPlaybackNonce};
x6a=function(a){if(a.j.size)for(var b=g.v(a.j.values()),c=b.next();!c.done;c=b.next()){c=g.v(c.value);for(var d=c.next();!d.done;d=c.next())d.value.dispose()}a.j.clear()};
y6a=function(a){this.end=this.start=a};
g.WX=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.X=b;this.ea=c;this.Ga=new Map;this.eb=new Map;this.La=new Map;this.B=new Map;this.C=[];this.G=[];this.D=new Map;this.Bc=new Map;this.Y=new Map;this.Ub=NaN;this.Kb=this.Ya=this.Qb=null;this.Lb=new g.Dv(function(){z6a(d,d.Ub,d.Qb||void 0)});
this.events=new g.NJ(this);this.Ab=15E3;this.Z=new g.Dv(function(){d.Da=!0;var e=d.ea,f=d.Ab;e.oa("sdai",{aftimeout:f});e.Sd(new GJ("ad.fetchtimeout",{timeout:f}));A6a(d);d.pF(!1)},this.Ab);
this.Da=!1;this.K=new Map;this.Cb=[];this.va=null;this.Be=new Set;this.Ha=[];this.Cc=[];this.Fd=[];this.Ud=[];this.j=void 0;this.Xa=0;this.Sa=!0;this.ra=!1;this.Oa=[];this.Ed=new Set;this.Zd=new Set;this.le=new Set;this.Cm=0;this.ib=new Set;this.Zc=0;this.Pn=this.Sc=!1;this.Wb=this.N="";this.rb=null;this.wd={hqb:function(){return d.B},
sqb:function(){return d.C},
iqb:function(){return d.D},
C8:function(e){d.onCueRangeEnter(d.B.get(e))},
bqb:function(e){d.onCueRangeExit(d.B.get(e))},
isb:function(e,f){d.B.set(e,f)},
lsb:function(e){d.Wb=e},
YE:function(){return d.YE()}};
this.ea.getPlayerType();B6a(this.ea,this);this.Wa=this.X.yc();g.M(this,this.Lb);g.M(this,this.events);g.M(this,this.Z);this.events.T(this.api,g.VI("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.WI("serverstitchedcuerange"),this.onCueRangeExit)};
F6a=function(a,b,c,d,e,f,h,l){var m=C6a(a,f,f+e);a.Da&&a.ea.oa("sdai",{adaftto:1});a.Pn&&a.ea.oa("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.ea;h=h===void 0?f+e:h;f===h&&!e&&a.X.L("html5_allow_zero_duration_ads_on_timeline")&&a.ea.oa("sdai",{attl0d:1});f>h&&XX(a,{reason:"enterTime_greater_than_return",pc:f,Xd:h});var p=n.pd()*1E3;f<p&&XX(a,{reason:"enterTime_less_than_minSeekableTime",enterMs:f,minSkMs:p},a.X.L("html5_report_ssdai_timeline_error_as_fatal"));n=n.getDuration()*1E3;h>n&&XX(a,{reason:"parent_return_greater_than_content_duration",
Xd:h,Krb:n});n=null;p=g.Qb(a.G,{Xd:f},function(q,r){return q.Xd-r.Xd});
p>=0&&(n=a.G[p],n.Xd>f&&D6a(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p<a.Ha.length;p++){if(a.Ha[p].identifier===m.identifier){a.Ha.splice(p,1);break}}else if(m)return a.ea.oa("sdai",{rejectAttl:1}),l&&!Ys(a.Ud,function(q){return q===l})&&(a.ea.oa("sdai",{rejectAdBreakAttl:1}),a.Ud.push(l)),YX(a),"";
m="ss_childplayback_"+E6a++;a.X.L("html5_enable_ssap_entity_id")?(b=new g.sS(a.X,b),p=b.clientPlaybackNonce):(b.cpn||(b.cpn=g.zD(16)),p=b.cpn,b=new g.sS(a.X,b));b.qd=m;c={qd:m,playerType:d,durationMs:e,pc:f,Xd:h,cpn:p,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.Xb(a.G,c,function(q,r){return q.pc===r.pc?q.durationMs-r.durationMs:q.pc-r.pc});
a.D.set(p,c);a.Bc.set(m,c);a.ea.oa("sdai",{attlDone:h-f,acpn:p});l?c.wm=l:n?c.wm=n.wm:c.wm=c.cpn;if(f=c.wm)(d=a.Y.get(f))?(d.push(c),g.Sb(d,function(q,r){return q.pc-r.pc})):a.Y.set(f,[c]);
a.Z.isActive()&&(a.Da=!1,a.Z.stop(),A6a(a),a.pF(!0));return m};
ZX=function(a,b,c){return{ssvc:b,cpn:(c==null?void 0:c.cpn)||"",vid:(c==null?void 0:c.videoData.videoId)||"",ct:(a.ea.getCurrentTime()||0).toFixed(3),cmt:(a.ea.Yf()||0).toFixed(3)}};
aY=function(a,b,c){var d=a.ra,e=a.YE(),f=a.N;a.N="";var h=b.Yg-c.Yg;Math.abs(h)>.5&&a.ea.oa("sdai",{ttdtb:1,delta:h,cpn:e.cpn,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f});a.api.L("html5_ssdai_enable_media_end_cue_range")&&a.api.Vy();if(b.isAd&&c.isAd){e=!!f;if(b.adCpn&&c.adCpn){var l=a.D.get(b.adCpn);var m=a.D.get(c.adCpn)}e?a.ea.oa("sdai",{igtransskip:1,enter:b.adCpn,exit:c.adCpn,seek:d,skip:f}):G6a(a,m,l,c.Yg,b.Yg,d,e)}else if(!b.isAd&&c.isAd){a.Wb=e.cpn;a.api.publish("serverstitchedvideochange");
l=ZX(a,"a2c");a.ea.oa("sdai",l);a.Cm=0;if(l=c.ge)a.Xa=l.end;var n;c.adCpn&&(n=a.D.get(c.adCpn));n&&$X(a.ea,n,e,c.Yg,b.Yg,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.D.get(b.adCpn));p&&(a.Xa=0,a.Wb=p.cpn,a.api.publish("serverstitchedvideochange",p.qd,p.rr),n=ZX(a,"c2a",p),a.ea.oa("sdai",n),a.Cm=1,$X(a.ea,e,p,c.Yg,b.Yg,d,!!f))}};
H6a=function(a,b,c){c=(b+(c===void 0?0:c))*1E3;var d=g.Qb(a.G,{pc:c},function(e,f){return e.pc-f.pc});
d=d<0?(d+2)*-1:d;return d>=0&&(a=a.G[d],a.Xd>=c)?{Nn:a,Tu:b}:{Nn:void 0,Tu:b}};
bY=function(a,b){var c="";(b=I6a(a,b))&&(c=b.getId());return c?a.D.get(c):void 0};
I6a=function(a,b){if(a.api.L("html5_ssdai_enable_media_end_cue_range")&&a.Wb){var c=a.B.get(a.Wb);if(c&&c.start-200<=b&&c.end+200>=b)return c}a=g.v(a.B.values());for(c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
z6a=function(a,b,c){var d=a.Kb||a.api.Wc().getPlayerState();cY(a,!0);a.ea.seekTo(b,c);a=a.api.Wc();b=a.getPlayerState();d.isOrWillBePlaying()&&!b.isOrWillBePlaying()?a.playVideo():d.isPaused()&&!b.isPaused()&&a.pauseVideo()};
cY=function(a,b){a.Ub=NaN;a.Qb=null;a.Lb.stop();a.Ya&&b&&J6a(a.Ya);a.Kb=null;a.Ya=null};
K6a=function(a){var b=b===void 0?-1:b;var c=c===void 0?Infinity:c;for(var d=[],e=g.v(a.G),f=e.next();!f.done;f=e.next())f=f.value,(f.pc<b||f.Xd>c)&&d.push(f);a.G=d;d=g.v(a.B.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.ea.removeCueRange(e),a.B.delete(e.getId()),a.ea.oa("sdai",{rmAdCR:1}));d=H6a(a,b/1E3);b=d.Nn;d=d.Tu;if(b&&(d=d*1E3-b.pc,e=b.pc+d,b.durationMs=d,b.Xd=e,d=a.B.get(b.cpn))){e=g.v(a.C);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start=
b.pc+b.durationMs:f.end===d.start&&(f.end=b.pc);d.start=b.pc;d.end=b.pc+b.durationMs}if(b=H6a(a,c/1E3).Nn){var h;d="playback_timelinePlaybackId_"+b.qd+"_video_id_"+((h=b.videoData)==null?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.pc+"_parentReturnTimeMs_"+b.Xd;a.Gl("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
L6a=function(a){a.Ga.clear();a.eb.clear();a.La.clear();a.B.clear();a.C=[];a.G=[];a.D.clear();a.Bc.clear();a.Y.clear();a.K.clear();a.Cb=[];a.va=null;a.Be.clear();a.Ha=[];a.Cc=[];a.Fd=[];a.Ud=[];a.Oa=[];a.Ed.clear();a.Zd.clear();a.le.clear();a.ib.clear();a.Da=!1;a.j=void 0;a.Xa=0;a.Sa=!0;a.ra=!1;a.Cm=0;a.Zc=0;a.Sc=!1;a.Pn=!1;a.N="";a.Z.isActive()&&YX(a)};
N6a=function(a,b,c,d,e,f){if(!a.Pn)if(!a.X.L("html5_ssdai_use_media_time")&&g.M6a(a,c))a.Wa&&a.ea.oa("sdai",{gdu:"undec",seg:c,itag:e});else if(b=dY(a,b,c,d,f),!(a.ea.getVideoData().Rm()&&(b==null?0:b.VA)))return b};
dY=function(a,b,c,d,e){var f;a.X.L("html5_ssdai_use_media_time")||(f=a.K.get(c));if(!f){if(f=eY(a,b))return f;var h=fY(a,c-1,d!=null?d:2);if(e)return a.ea.oa("sdai",{misscue:e,sq:c,type:d,prevsstate:h==null?void 0:h.Az,prevrecord:a.K.has(c-1)}),a.X.L("html5_ssdai_use_media_time")?eY(a,b-5):a.K.get(c-1);if((h==null?void 0:h.Az)===2&&(a.ea.oa("sdai",{adnf:1,sq:c,type:d,prevrecord:a.K.has(c-1)}),!a.X.L("html5_ssdai_use_media_time")))return a.K.get(c-1)}return f};
eY=function(a,b){b+=a.fu();if(a.X.L("html5_lifa_overdecorate_fix"))a:{var c=1;c=c===void 0?0:c;var d=b*1E3;a=g.v(a.G);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.rr?e.rr*1E3:e.pc;if(d>=e.pc-c*1E3&&d<=f+e.durationMs+c*1E3){b={Nn:e,Tu:b};break a}}b={Nn:void 0,Tu:b}}else b=H6a(a,b,1);return b.Nn};
O6a=function(a){if(a.Oa.length)for(var b=g.v(a.Oa),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);b=g.v(a.B.values());for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);b=g.v(a.C);for(c=b.next();!c.done;c=b.next())a.ea.removeCueRange(c.value);a.B.clear();a.C=[];a.Ga.clear();a.eb.clear();a.La.clear();a.j||(a.Sa=!0)};
G6a=function(a,b,c,d,e,f,h){if(b&&c){a.Wb=c.cpn;a.api.publish("serverstitchedvideochange",c.qd,c.rr);var l=ZX(a,"a2a",c);a.ea.oa("sdai",l);a.Cm++;$X(a.ea,b,c,d||0,e||0,!!f,!!h)}else a.ea.oa("sdai",{misspbkonadtrans:1,enter:(c==null?void 0:c.cpn)||"",exit:(b==null?void 0:b.cpn)||"",seek:f,skip:h})};
fY=function(a,b,c){if(c===1){if(a.Ga.has(b))return a.Ga.get(b)}else{if(c===2&&a.eb.has(b))return a.eb.get(b);if(c===3&&a.La.has(b))return a.La.get(b)}};
Q6a=function(a,b,c,d){if(d)for(d=0;d<a.C.length;){var e=a.C[d];if(e.start<b&&e.end>c){var f=e.end;e.end=b;P6a(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.ea.removeCueRange(e);if(a.Oa.includes(e))a.onCueRangeExit(e);a.C.splice(d,1);continue}d++}else P6a(a,b,c)};
P6a=function(a,b,c){b=a.hJ(b,c);c=!0;g.Xb(a.C,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.C.length;){if(d>0){var e=a.C[d],f=a.C[d-1];if(Math.round(f.end/1E3)>=Math.round(e.start/1E3)){f.end=e.end;e!==b?a.ea.removeCueRange(e):c=!1;a.C.splice(d,1);continue}}d++}if(c)for(a.ea.addCueRange(b),b=a.ea.KE("serverstitchedcuerange",36E5),b=g.v(b),c=b.next();!c.done;c=b.next())a.B.delete(c.value.getId())};
gY=function(a,b,c){if(c===void 0||!c){c=g.v(a.Cb);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.Cb.push(new y6a(b))}};
g.M6a=function(a,b){a=g.v(a.Cb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
D6a=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",Frb:b,pc:c,Xd:d,Zpb:e.qd,aqb:((f=e.videoData)==null?void 0:f.videoId)||"",Wpb:e.durationMs,Xpb:e.pc,Ypb:e.Xd};XX(a,b)};
XX=function(a,b,c){a=a.ea;a.oa("timelineerror",b);b=new GJ("dai.timelineerror",b);c?a.Of("dai.timelineerror",1,"RETRYABLE_ERROR",FJ(b.details)):a.Sd(b)};
R6a=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.v(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
S6a=function(a,b,c){var d=0;a=a.Y.get(c);if(!a)return-1;a=g.v(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
T6a=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.v(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=(b=d.value.videoData)==null?void 0:b.videoId)&&c.push(d);return c};
U6a=function(a,b){var c=0;a=a.Y.get(b);if(!a)return 0;a=g.v(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.durationMs!==0&&b.Xd!==b.pc&&c++;return c};
V6a=function(a,b,c){var d=!1;if(c&&(c=a.Y.get(c))){c=g.v(c);for(var e=c.next();!e.done;e=c.next())e=e.value,e.durationMs!==0&&e.Xd!==e.pc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Zd.has(e)&&(a.ea.oa("sdai",{decoratedAd:e}),a.Zd.add(e)))}};
A6a=function(a){a.Wa&&a.ea.oa("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.Zc)+"_isTimeout_"+a.Da})};
C6a=function(a,b,c){if(a.Ha.length)for(var d=g.v(a.Ha),e=d.next(),f={};!e.done;f={aA:void 0},e=d.next()){f.aA=e.value;e=f.aA.startSecs*1E3;var h=f.aA.Hh*1E3+e;if(b>e&&b<h||c>e&&c<h)return Ys(a.Fd,function(l){return function(m){return m.identifier===l.aA.identifier}}(f))||(a.ea.oa("sdai",{adskip:b}),a.Fd.push(f.aA)),f.aA}};
YX=function(a){a.Da=!1;a.Z.isActive()&&A6a(a);a.Z.stop();a.pF(!1)};
Y6a=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.timeline=b;this.ea=c;this.Np=new Map;this.gk=new Map;this.QH=new Map;this.events=new g.NJ(this);this.Cm=0;this.GK=this.Wb="";this.LG=[];this.Ek=new Set;this.bL=new g.Dv(function(){d.api.playVideo(1);d.api.oa("ssap",{nve:""+d.Wb});W6a(d,4)},3E4);
this.Oy="";this.DH=new Set;this.d2=!0;this.EM=new Map;this.IL=new Set;this.bY=!1;this.Tw="";this.MQ=!1;this.KZ="";this.wd={uqb:function(){return d.gk},
C8:function(e){if(e=d.gk.get(e))d.onCueRangeEnter(e)}};
this.ea.getPlayerType();X6a(this);this.events.T(this.api,g.VI("ssap"),this.onCueRangeEnter);this.events.T(this.api,"internalAbandon",this.tG);g.M(this,this.bL);this.BT=this.api.U().L("html5_enable_ssap_gapful_switch");this.dea=g.oI(a.U().experiments,"html5_ssap_segment_end_media_threshold_ms")||200};
Z6a=function(a,b,c,d){for(var e=a.ea.uA(),f=g.v(d),h=f.next();!h.done;h=f.next()){var l=h.value;l.C||((h=SX(l),l=l.getVideoData(),h&&l&&e.gJ(h,l,2),l)?h||(l=void 0,a.api.oa("ssap",{macac:h,maccc:(l=a.timeline.j)==null?void 0:SX(l)})):(l=void 0,a.api.oa("ssap",{mvac:h,mvcc:(l=a.timeline.j)==null?void 0:SX(l)})))}return TX(a.timeline,b,c,d)};
a7a=function(a){var b=a.ea.Yf();return(b=hY(a,b))?$6a(a,b.Zh()/1E3):!1};
$6a=function(a,b){if(a.Ek.has(a.Wb))return!1;var c=0,d=0,e=UX(a.timeline,a.Wb);if(e==null?0:e.length)for(e=g.v(e),e=e.next();!e.done;e=e.next()){d=e.value;c=d.cf();d=d.Zh();break}if(d>0&&d>b*1E3+a.dea)return!1;if(d=b7a(a,c)){b=!1;c=void 0;d=g.v(d.segments);for(e=d.next();!e.done;e=d.next()){e=e.value;if(b){c=e;break}SX(e)===a.Wb&&(b=!0)}d=void 0;if(c)d=SX(c);else if(b){var f;d=(f=a.timeline.j)==null?void 0:SX(f)}if(d)return a.finishSegmentByCpn(a.Wb,d,2,void 0),!0;var h;a.api.oa("ssap",{mfnc:1,mfncc:(h=
a.timeline.j)==null?void 0:SX(h)})}return!1};
iY=function(a,b){a=UX(a.timeline,b);return(a==null?0:a.length)?a[0].cf():0};
kY=function(a,b){var c=c===void 0?!1:c;var d=a.timeline.j;if(!d)return{clipId:"",Jl:0};var e=c7a(a,b,c);if(e)return{clipId:SX(e)||"",Jl:e.cf()};a.api.oa("mci",{cs:SX(d),mt:b,tl:jY(a),invt:!!c});return{clipId:"",Jl:0}};
lY=function(a){var b=a.timeline.j;if(!b)return 0;a=0;if(b.j.size===0)return(b.Zh()-b.cf())/1E3;b=b.j.values();b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=g.v(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,a+=(d.Zh()-d.cf())/1E3}return a};
d7a=function(a,b){return(a=hY(a,b*1E3))?a.cf():0};
e7a=function(a,b){var c=UX(a.timeline,b);b=0;if(c==null?0:c.length)for(a=g.v(c),c=a.next();!c.done;c=a.next())c=c.value,b+=(c.Zh()-c.cf())/1E3;else return lY(a);return b};
hY=function(a,b){if(a=UX(a.timeline,a.Wb)){a=g.v(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.cf()<=b&&c.Zh()>=b)return c}};
f7a=function(a){var b=a.ea.getVideoData();a.Wb&&(a=a.Np.get(a.Wb))&&(b=a);return b};
b7a=function(a,b,c){c=c===void 0?!1:c;var d=a.timeline.j;if(d){d=d.j;var e=Array.from(d.keys());g.Sb(e);b=g.Qb(e,b);b=d.get(e[b<0?(b+2)*-1:b]);if(!c&&b){c=g.v(b);for(b=c.next();!b.done;b=c.next())if(b=b.value,b.cf()!==b.Zh())return b;return a.timeline}return b&&b.length>0?b[b.length-1]:void 0}};
c7a=function(a,b,c){c=c===void 0?!1:c;var d=b7a(a,b,c);if(d){if(a=d.segments,a.length){for(var e=g.v(a),f=e.next();!f.done;f=e.next())if(f=f.value,f.cf()<=b&&f.Zh()>b)return f;if(c&&d.cf()===d.Zh())return a[0]}}else a.api.oa("ssap",{ctnf:1})};
W6a=function(a,b){var c;if(a.Oy)for(c=a.LG.shift();c&&c!==a.Oy;)c=a.LG.shift();else c=a.LG.shift();if(c)return a.Ek.has(c)?g7a(a,c):h7a(a,b)&&(a.bL.stop(),a.api.playVideo(1)),a.QH.set(a.Wb,b),a.api.oa("ssap",{onvftn:1}),i7a(a,c),!1;a.api.oa("ssap",{onvftv:1});a.bL.stop();return!0};
g7a=function(a,b){b=UX(a.timeline,b);if(b==null?0:b.length)a.api.pauseVideo(),a.bL.start(b[0].KK)};
i7a=function(a,b){var c=a.ea.getVideoData(),d=c.clientPlaybackNonce,e=a.Wb,f=!1;if(e==="")e=d,f=!0;else if(e===void 0){var h=a.ea.uA().Rg;h&&a.timeline.B.has(h)&&(e=h);a.api.oa("ssap",{mcc:e+";"+b});a.ea.Sd(new GJ("ssap.timelineerror",{e:"missing_current_cpn",pcpn:e,ccpn:b}))}if(e===b)f&&c&&j7a(a,c,f);else{h=a.QH.get(e);if(!(f||h&&h7a(a,h))){var l=a.api.Vy(a.Wb);a.api.oa("ssap",{nmec:l,cpc:a.Wb,ec:b})}a.Wb=b;k7a(a);b=UX(a.timeline,a.Wb);if(b==null?0:b.length){b=b[0];l=b.getType();e!==d&&(a.GK=e,c=
a.Np.get(e));h?a.QH.delete(e):h=f?1:2;a:{var m=a.Wb;if(!a.gk.has(m))for(var n=g.v(a.gk),p=n.next();!p.done;p=n.next()){var q=g.v(p.value);p=q.next().value;q=q.next().value;if(q.getId().includes(m)){m=p;break a}}}p=m;n=a.api.U().L("html5_ssap_insert_su_before_nonvideo")&&p!==a.Wb;q=a.ea.uA();if(q.Rg!==p){var r=q.uc(q.Rg);m=q.uc(p);q.Rg=p;m!==r&&(r.qoe&&(p=r.qoe,p.provider.X.yc()&&p.oa("ssap",{qoesus:"1",vid:p.provider.videoData.videoId}),n&&(n=g.xM(p.provider),l7a(p,n,"SU")),isNaN(p.K)||g.EA(p.K)),
m.resume())}n=a.ea.getCurrentTime();m=Math.max(0,n-iY(a,e)/1E3);n=Math.max(0,n-iY(a,a.Wb)/1E3);p=b.getVideoData();q=a.ea.uA();r=e;var t=a.Wb,u=h7a(a,h),w=a.ea.getPlayerState();if(r!==t){var A=q.uc(r),C=q.uc(t),F,G=r===((F=A.getVideoData())==null?void 0:F.clientPlaybackNonce),K;F=t===((K=C.getVideoData())==null?void 0:K.clientPlaybackNonce);var N;K=G?((N=A.getVideoData())==null?void 0:N.videoId)||"":"nvd";var R;N=F?((R=C.getVideoData())==null?void 0:R.videoId)||"":"nvd";G&&(R=A.qoe)!=null&&(mY(R,4,
u?4:0,t,N,m),R.reportStats());F&&(nY(C),(R=C.qoe)!=null&&(mY(R,4,u?5:1,r,K,n),R.reportStats()),m7a(C,new g.xF(w,C.Ie)),n7a(C));o7a(q,r)}var da;T_a(e,a.Wb,d,p,(da=a.EM.get(e))!=null?da:(0,g.iC)(),c);a.EM.delete(e);f?c=void 0:c||a.api.oa("ssap",{pvdm:e+";"+a.Wb,pvdmc:a.Wb===d?"1":"0"});a.api.oa("ssap",{tpac:e+";"+a.Wb,tpcc:d,tpv:(p==null?0:p.xe())?"1":"0"},!1,1);a.api.publish("videodatachange","newdata",p,l,c,h);a.api.L("html5_ssap_publish_content_video_data_updated_event")&&!b.C&&a.ea.getVideoData().publish("dataupdated");
a.Ek.delete(e);a.Oy="";p&&l===1?j7a(a,p):a.ea.oa("ssap",{nis:a.Wb});l===2?a.Cm++:a.Cm=0}}};
j7a=function(a,b,c){c=c===void 0?!1:c;if(b.startSeconds&&a.d2){var d=b.startSeconds;b=UX(a.timeline,b.clientPlaybackNonce);if(b==null?0:b.length)d+=b[0].cf()/1E3,a.api.L("htm5_ssap_ignore_initial_seek_if_too_big")&&d>=a.LP()||(a.ea.seekTo(d,{JT:!0}),a.d2=!1,a.ea.oa("ssap",{is:a.Wb,co:c?"1":"0",tse:d.toFixed()}))}};
p7a=function(a,b,c){b=UX(a.timeline,b);if(b==null?0:b.length)if(b=b7a(a,b[0].cf())){b=g.v(b.segments);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(SX(d)===c)break;if(d=SX(d))a.gk.delete(d),(d=a.gk.get(d))&&a.ea.removeCueRange(d)}}};
q7a=function(a,b,c){c7a(a,b)||a.ea.oa("ssap",{ilgsk:b.toFixed(),mep:c?"1":"0",tl:jY(a)})};
k7a=function(a){var b=a.Wb,c=a.Np.get(b)||a.ea.getVideoData();c&&(a=a.ea.getCurrentTime()-iY(a,b)/1E3,c.Rk=a>0?a:0)};
oY=function(a,b){b=b||a.Wb;var c=a.Np.get(b);return c?c.Rk:b!==a.ea.getVideoData().clientPlaybackNonce?0:a.ea.getVideoData().Rk};
jY=function(a){var b=a.Wb;b||(b=a.ea.getVideoData().clientPlaybackNonce);var c,d,e=Array.from((d=(c=a.timeline.j)==null?void 0:c.j.values())!=null?d:[]);c=[];if(e==null?0:e.length)for(d=g.v(e),e=d.next();!e.done;e=d.next())if(e=e.value,e.length&&e[0]&&(e=e[0].segments,e.length)){e=g.v(e);for(var f=e.next();!f.done;f=e.next()){var h=f.value;f="st."+h.cf()+";";f+="et."+h.Zh()+";";var l=SX(h);l&&(f+="cpn."+l+";",f+="a."+(b===l?1:0)+";");if(h=h.getVideoData())l=void 0,f+="vid."+((l=h.videoId)!=null?l:
"nvd");c.push(f)}}return(c.length?c.join(","):"empty."+b)+";cpcpn."+a.xl()};
X6a=function(a){a.ea.bH(Array.from(a.gk.values()));a.gk.clear()};
h7a=function(a,b){return a.api.L("html5_ssap_support_more_transition_reasons")?b===3||b===5||b===6||b===7:b===3};
s7a=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.X=b;this.j=c;this.K=new Map;this.B=[];this.C=this.N=null;this.ra=NaN;this.G=this.D=this.Y=null;this.Z=new g.Dv(function(){r7a(d,d.ra,d.Y||void 0)});
this.va=[];this.Da=new g.Dv(function(){var e=d.va.pop();if(e){var f=e.qd,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.va.length&&g.Ev(d.Da,4500))}});
this.events=new g.NJ(this);c.getPlayerType();g.M(this,this.Z);g.M(this,this.Da);g.M(this,this.events);this.events.T(this.api,g.VI("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.Gk)};
w7a=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=f===void 0?e+d:f;if(e>f)return pY(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=m.pd()*1E3;if(e<n)return pY(a,"enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,h,l),"";n=m.getDuration()*1E3;if(f>n)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
m.Fc(),pY(a,m,h,l),"";n=null;for(var p=g.v(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.pc&&e<q.Xd)return pY(a,"overlappingEnter",h,l),"";if(f<=q.Xd&&f>q.pc)return pY(a,"overlappingReturn",h,l),"";if(f===q.pc)return pY(a,"outOfOrder",h,l),"";e===q.Xd&&(n=q)}h="cs_childplayback_"+t7a++;l={ge:qY(d,!0),yn:Infinity,target:null};var r={qd:h,playerVars:b,playerType:c,durationMs:d,pc:e,Xd:f,Qt:l};a.B=a.B.concat(r).sort(function(w,A){return w.pc-A.pc});
n?u7a(a,n,{ge:qY(n.durationMs,!0),yn:n.Qt.yn,target:r}):(b={ge:qY(e,!1),yn:e,target:r},a.K.set(b.ge,b),m.addCueRange(b.ge));b=!0;if(a.j===a.api.Wc()&&(m=m.getCurrentTime()*1E3,m>=r.pc&&m<r.Xd)){var t=a.api.Wc().getPlayerState(),u=m-r.pc;Tf(function(){v7a(a,r,u/1E3,{},t)});
b=!1}b&&(a.va.unshift(r),g.Ev(a.Da,0));return h};
qY=function(a,b){return new g.UI(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
x7a=function(a,b,c,d){a.C=d;a.api.wJ(a.j,c,b)};
y7a=function(a,b,c,d){a.C=d;d=b.qd;var e=b.playerVars,f=b.playerType;a.N=b;e&&(a.X.L("html5_enable_ssap_entity_id")&&(e.cached_load=!0),a.api.enqueueVideoByPlayerVars(e,f,c,d))};
u7a=function(a,b,c){var d=b.Qt;b.Qt=c;rY(a,b)&&(c=a.api.Wc(),d.ge===a.C&&sY(a),c.removeCueRange(d.ge),c.addCueRange(b.Qt.ge))};
sY=function(a){a.N=null;a.C=null;a.api.Co()||a.api.clearQueue()};
z7a=function(a,b){rY(a,b)||pY(a,"childPlaybackIsNotPresenting");return b.Xd===b.pc+b.durationMs?(a=a.api.Wc(),b.pc+a.getCurrentTime()*1E3):b.Xd};
A7a=function(a,b){var c=0;a=g.v(a.B);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.pc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{Nn:d,Tu:b-e};c=f-d.Xd/1E3}return{Nn:null,Tu:b-c}};
r7a=function(a,b,c){c=c===void 0?{}:c;var d=a.G||a.api.Wc().getPlayerState();tY(a,!0);b=isFinite(b)?b:a.j.Xn();var e=A7a(a,b);b=e.Nn;e=e.Tu;var f=b&&!rY(a,b)||!b&&a.j!==a.api.Wc(),h=e*1E3;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||sY(a);b?v7a(a,b,e,c,d):B7a(a,e,c,d)};
B7a=function(a,b,c,d){var e=a.j,f=a.api.Wc();e!==f&&a.api.Cy();e.seekTo(b,Object.assign({},{hd:"application_timelinemanager"},c));C7a(a,d)};
v7a=function(a,b,c,d,e){var f=rY(a,b);if(!f){b.playerVars.prefer_gapless=!0;a.X.L("html5_enable_ssap_entity_id")&&(b.playerVars.cached_load=!0);var h=new g.sS(a.X,b.playerVars);h.qd=b.qd;a.api.Lu(h,b.playerType)}h=a.api.Wc();f||h.addCueRange(b.Qt.ge);h.seekTo(c,Object.assign({},{hd:"application_timelinemanager"},d));C7a(a,e)};
C7a=function(a,b){a=a.api.Wc();var c=a.getPlayerState();b.isOrWillBePlaying()&&!c.isOrWillBePlaying()?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()};
tY=function(a,b){a.ra=NaN;a.Y=null;a.Z.stop();a.D&&b&&J6a(a.D);a.G=null;a.D=null};
rY=function(a,b){a=a.api.Wc();return!!a&&a.getVideoData().qd===b.qd};
D7a=function(a){var b=a.B.find(function(e){return rY(a,e)});
if(b){var c=a.api.Wc();sY(a);var d=new g.AK(8);b=z7a(a,b)/1E3;B7a(a,b,{},d);c.oa("forceParentTransition",{childPlayback:1});a.j.oa("forceParentTransition",{parentPlayback:1})}};
F7a=function(a,b,c){b=b===void 0?-1:b;c=c===void 0?Infinity:c;for(var d=b,e=c,f=g.v(a.K),h=f.next();!h.done;h=f.next()){var l=g.v(h.value);h=l.next().value;l=l.next().value;l.yn>=d&&l.target&&l.target.Xd<=e&&(a.j.removeCueRange(h),a.K.delete(h))}d=b;e=c;f=[];h=g.v(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.pc>=d&&l.Xd<=e){var m=a;m.N===l&&sY(m);rY(m,l)&&m.api.Cy()}else f.push(l);a.B=f;d=A7a(a,b/1E3);b=d.Nn;d=d.Tu;b&&(d*=1E3,E7a(a,b,d,b.Xd===b.pc+b.durationMs?b.pc+d:b.Xd));(b=A7a(a,c/1E3).Nn)&&
pY(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.qd+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.pc+" parentReturnTimeMs="+b.Xd+"}.Child playbacks can only have duration updated not their start."))};
E7a=function(a,b,c,d){b.durationMs=c;b.Xd=d;d={ge:qY(c,!0),yn:c,target:null};u7a(a,b,d);rY(a,b)&&a.api.Wc().getCurrentTime()*1E3>c&&(b=z7a(a,b)/1E3,c=a.api.Wc().getPlayerState(),B7a(a,b,{},c))};
pY=function(a,b,c,d){a.j.oa("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
H7a=function(a){a&&a!=="web"&&G7a.includes(a)};
wY=function(a,b){g.I.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.Dv(function(){uY(c);vY(c)});
g.M(this,this.j)};
I7a=function(a){uY(a);return a.data.map(function(b){return b.value})};
uY=function(a){var b=(0,g.iC)();a.data.forEach(function(c){c.expire<b&&xY(a,c,!0)});
a.data=g.Mt(a.data,function(c){return!(c.expire<b)})};
xY=function(a,b,c){c&&a.B&&a.B(b.value)};
vY=function(a){a.j.stop();var b=Infinity;for(var c=g.v(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))};
yY=function(){g.I.call(this);this.j=new wY(5,null);g.M(this,this.j);this.B=new wY(15,null);g.M(this,this.B)};
J7a=function(a,b){return b?!!a.j.get(b):!1};
K7a=function(a,b){a.dataset.version=b};
N7a=function(a){g.W.call(this,{I:"div",Ma:["html5-video-player"],W:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},V:[{I:"div",S:g.zY.VIDEO_CONTAINER,W:{"data-layer":"0"}}]});var b=this;this.app=a;this.Wz=this.Fa(g.zY.VIDEO_CONTAINER);this.UB=new g.Fs(0,0,0,0);this.Ec=null;this.OL=new g.Fs(0,0,0,0);this.cQ=this.mR=this.lR=NaN;this.oK=this.LL=this.DS=this.jX=!1;this.PO=NaN;this.RQ=!1;this.ZF=null;this.LR=function(){b.element.focus({preventScroll:!0})};
this.tL=function(){b.app.Va.publish("playerUnderlayVisibilityChange","visible");b.Ec.classList.remove(g.zY.VIDEO_CONTAINER_TRANSITIONING);b.Ec.removeEventListener(jZa,b.tL);b.Ec.removeEventListener("transitioncancel",b.tL)};
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.Bt("ytp-transparent");e.controlsType==="0"&&this.Bt("ytp-hide-controls");g.Kv(this.element,"ytp-exp-bottom-control-flexbox");g.Kv(this.element,"ytp-modern-caption");e.L("enable_new_paid_product_placement")&&!g.GR(e)&&g.Kv(this.element,"ytp-exp-ppp-update");e.L("html5_enable_ssap")&&g.Kv(this.element,"ytp-ssap");e.L("enable_cairo_refresh_web")&&g.Kv(this.element,"ytp-cairo-refresh");e.L("enable_cairo_refresh_signature_moments_web")&&g.Kv(this.element,"ytp-cairo-refresh-signature-moments");
K7a(this.element,L7a(a));this.b2=!1;this.OE=new g.Me(NaN,NaN);M7a(this);this.T(a.Va,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
M7a=function(a){function b(){a.Ec&&AY(a);BY(a)!==a.RQ&&a.resize()}
function c(h,l){a.mu(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.OL=new g.Fs(0,0,0,0);a.UB=new g.Fs(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)})};
P7a=function(a){var b=g.uT(a.app),c=b=b?b.getVideoData():null;if(b==null?0:g.DS(b))c=a.app.Va.getVideoData();if(c){if(g.XS(c)||g.YS(c)||g.ZS(c))return 16/9;if(pXa(c)&&c.C.j)return a=c.C.videoInfos[0].video,O7a(a.width,a.height)}return(a=a.Ec)?O7a(a.videoWidth,a.videoHeight):16/9};
Q7a=function(a,b,c,d){var e=c,f=O7a(b.width,b.height);a.jX?e=c<f?Infinity:0:isNaN(a.cQ)?isNaN(a.mR)||(e=a.mR):e=a.cQ;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};
O7a=function(a,b){return Math.abs(R7a*b-a)<1||Math.abs(R7a/a-b)<1?R7a:a/b};
BY=function(a){if(a.app.getAppState()===1)return!1;if(a.app.getAppState()===6)return!0;var b=g.uT(a.app);if(!b||b.po())return!1;a=a.app.Va.getPlayerStateObject();b=!g.yF(a,2)||b&&b.getVideoData().Y;var c=g.yF(a,1024);return a&&b&&!c&&!a.isCued()};
AY=function(a){var b=a.app.U().controlsType==="3"&&!a.oK&&BY(a)&&!a.app.wB||!1;a.Ec.controls=b;a.Ec.tabIndex=b?0:-1;b?a.Ec.removeEventListener("focus",a.LR):a.Ec.addEventListener("focus",a.LR)};
S7a=function(a){var b=a.ai(),c=1,d=!1,e=Q7a(a,b,a.getVideoAspectRatio()),f=a.app.U(),h=f.L("enable_desktop_player_underlay"),l=pra(),m=g.oI(f.experiments,"player_underlay_min_player_width");m=h&&a.DS&&a.getPlayerSize().width>m;if(BY(a)){var n=P7a(a);var p=isNaN(n)||g.zC||CY&&g.dC||m;yC&&!g.Mc(601)?n=e.aspectRatio:p=p||f.controlsType==="3";p?m?(p=f.L("place_shrunken_video_on_left_of_player"),n=a.getPlayerSize().width*.02,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.Fs(p,0,b.width,b.height)):p=new g.Fs(0,
0,b.width,b.height):(c=e.aspectRatio/n,p=new g.Fs((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),c===1&&g.dC&&(n=p.width-b.height*n,n>0&&(p.width+=n,p.height+=n)));g.Ov(a.element,"ytp-fit-cover-video",Math.max(p.width-e.width,p.height-e.height)<1);if(l||a.b2)a.Ec.style.display="";a.RQ=!0}else{p=-b.height;yC?p*=window.devicePixelRatio:g.HR&&(p-=window.screen.height);p=new g.Fs(0,p,b.width,b.height);if(l||a.b2)a.Ec.style.display="none";a.RQ=!1}Gs(a.OL,p)||(a.OL=p,g.tR(f)?(a.Ec.style.setProperty("width",
p.width+"px","important"),a.Ec.style.setProperty("height",p.height+"px","important")):g.Ts(a.Ec,p.getSize()),d=new g.Ge(p.left,p.top),g.Ps(a.Ec,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.Fs((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);Gs(a.UB,b)||(a.UB=b,d=!0);g.Is(a.Ec,"transform",c===1?"":"scaleX("+c+")");h&&m!==a.LL&&(m&&(a.Ec.addEventListener(jZa,a.tL),a.Ec.addEventListener("transitioncancel",a.tL),a.Ec.classList.add(g.zY.VIDEO_CONTAINER_TRANSITIONING)),a.LL=m,a.app.Va.publish("playerUnderlayVisibilityChange",
a.LL?"transitioning":"hidden"));return d};
T7a=function(){this.csn=g.jE();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set};
U7a=function(a){if(a.csn!==g.jE())if(a.csn==="UNDEFINED_CSN")a.csn=g.jE();else{var b=g.jE(),c=g.iE();if(b&&c){a.csn=b;for(var d=g.v(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.FA("combine_ve_grafts")?DO(BO(),e,c):g.nA(g.wE)(void 0,b,c,e))}if(b)for(a=g.v(a.j),c=a.next();!c.done;c=a.next())(c=c.value.visualElement)&&c.isClientVe()&&g.AE(b,c)}};
V7a=function(a,b){this.Pc=a;this.policy=b;this.playbackRate=1};
W7a=function(a,b){var c=Math.min(2.5,hR(a.Pc));a=DY(a);return b-c*a};
Y7a=function(a,b,c,d,e){e=e===void 0?!1:e;if(a.policy.xp)return Math.ceil(a.policy.xp*b);a.policy.Vl&&(d=Math.abs(d));d/=a.playbackRate;var f=1/iR(a.Pc);c=Math.max(.9*(d-3),hR(a.Pc)+2048*f)/f*.8/(b+c);c=Math.min(c,d);a.policy.Cj>0&&e&&(c=Math.max(c,a.policy.Cj));return X7a(a,c,b)};
X7a=function(a,b,c){return Math.ceil(Math.max(Math.max(a.policy.Uk,a.policy.Tv*c),Math.min(Math.min(a.policy.Oa,31*c),Math.ceil(b*c))))||a.policy.Uk};
Z7a=function(a,b,c){c=Y7a(a,b.j.info.ub,c.j.info.ub,0);var d=hR(a.Pc)+c/iR(a.Pc);return Math.max(d,d+a.policy.SD-c/b.j.info.ub)};
DY=function(a){return iR(a.Pc,!a.policy.Ej,a.policy.Sv)};
EY=function(a){return DY(a)/a.playbackRate};
$7a=function(a,b,c){var d=a.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],e=a.policy.playbackStartPolicy.startMinReadaheadPolicy||[];a=Infinity;b=g.v(b&&d.length>0?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 a<Infinity?a/1E3:a};
a8a=function(a,b,c,d){var e=this;this.K=a;this.manifest=b;this.policy=c;this.logger=d;this.oy=[];this.jd=[];this.B=-1;this.Sb=null;this.G=this.timestampOffset=0;this.Yc=null;this.j=10;this.wd={MP:function(f){return e.MP(f)}};
this.C=b.hc?0:1;c.Eq>0&&(this.j=c.Eq)};
e8a=function(a,b,c,d,e){if(!e.info.Ue){if(c.length===0)c.push(e);else{var f;(a=(f=c.pop())==null?void 0:rQ(f,e))?c.push(a):c.push(e)}return d}var h;(c=(h=c.pop())==null?void 0:rQ(h,e))||(c=e);if(a.policy.Bc&&c.info.Tb)return a.logger&&a.logger({incompleteSegment:c.info.Tc()}),d;h=a.MP(c);d=h.formatId;e=h.Qa;f=h.clipId;c=h.r8;h=h.startTimeMs;!a.policy.Ch&&a.policy.j&&a.Yc&&(f=iY(a.Yc,f),h+=f);d={formatId:d,startTimeMs:h,durationMs:c,vn:e,Yi:e,LB:h,KB:c};e=b8a(b,d.startTimeMs);(c=e>=0?b[e]:null)&&c8a(a,
c,d)?d=c:(e+=1,b.splice(e,0,d));c=0;for(f=e+1;f<b.length;f++){h=a;var l=b[f],m=d,n=l.startTimeMs+l.durationMs,p=m.startTimeMs+m.durationMs;p>=n+h.j?h=!0:p+h.j<l.startTimeMs?h=!1:d8a(h,l.formatId,m.formatId)?(m.durationMs=n-m.startTimeMs,m.KB=m.durationMs,m.Yi=l.Yi,h=!0):(l.startTimeMs=p,l.LB=p,l.vn=m.Yi+1,h=!1);if(!h)break;c++}c&&b.splice(e+1,c);return e};
b8a=function(a,b){a=g.Qb(a,{startTimeMs:b},function(c,d){return c.startTimeMs-d.startTimeMs});
return a>=0?a:-a-2};
f8a=function(a,b){if(a.Sb){var c=a.Sb.Ee();if(c.length!==0){if(a.policy.rz&&a.D&&b){var d=a.D,e=d.info.Xe;!hK(c,e)&&d.info.D>0&&(0,g.iC)()-a.G<5E3&&(a.logger&&a.logger({dend:d.info.Tc()}),c=PEa(c,e,e+.01))}d=[];for(var f=e=0;e<c.length&&f<a.jd.length;){var h=c.start(e),l=c.end(e),m=a.jd[f].startTimeMs/1E3,n=(a.jd[f].startTimeMs+a.jd[f].durationMs)/1E3;if(m<=l&&n>=h){var p=0;if(a.Yc){var q=kY(a.Yc,m*1E3);q&&(p=q.Jl/1E3)}q=Object.assign({},a.jd[f]);var r=a.manifest.N.get(KTa(a.jd[f].formatId)),t=Math.max(m,
h);h=r.index.Ki(t+a.j/1E3-p);m=r.index.getStartTime(h)+p;var u=h+ +(Math.abs(m-t)>a.j/1E3);t=u+a.C;u=(r.index.getStartTime(u)+p)*1E3;a.policy.gw&&f===a.B&&!b?(a.logger&&a.logger({pEvict:"1",og:q.startTimeMs,adj:m*1E3}),q.vn=h+a.C,q.startTimeMs=m*1E3):(q.vn=t,q.startTimeMs=u);q.LB=q.startTimeMs;h=void 0;m=((h=a.D)==null?void 0:h.info.duration)||11;f===a.B&&l<n&&n-l<=m*1.01&&(l=n);h=Math.min(n,l);m=r.index.Ki(h-a.j/1E3-p);t=a.policy;(t.j||t.Ea.L("html5_sabr_include_tail_media_chunk"))&&r.index.qo(m+
1)&&r.index.JJ(m+1)+p<=h&&(m+=1);t=r.index.JJ(m)+p;m-=+(Math.abs(t-h)>a.j/1E3);h=m+a.C;p=(r.index.JJ(m)+p)*1E3;q.Yi=h;q.durationMs=p-q.startTimeMs;q.KB=q.durationMs;q.vn<=q.Yi&&d.push(q)}n<l?f+=1:e+=1}a.jd=d}}};
g8a=function(a){var b=[],c=[].concat(g.ra(a.oy));a.jd.forEach(function(h){b.push(Object.assign({},h))});
for(var d=a.B,e=g.v(a.K.wY()),f=e.next();!f.done;f=e.next())d=e8a(a,b,c,d,f.value);b.forEach(function(h){h.startTimeMs&&(h.startTimeMs+=a.timestampOffset*1E3,h.LB&&(h.LB+=a.timestampOffset*1E3))});
return{jd:b,oy:c}};
c8a=function(a,b,c){var d=b.startTimeMs+b.durationMs,e=c.startTimeMs+c.durationMs;if(c.startTimeMs-d>a.j)return!1;if(d8a(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.KB=b.durationMs,b.Yi=Math.max(b.Yi,c.Yi),!0;if(Math.abs(b.startTimeMs-c.startTimeMs)<=a.j){if(b.durationMs>c.durationMs+a.j){a=b.formatId;var f=b.vn,h=b.Yi;b.formatId=c.formatId;b.durationMs=c.durationMs;b.vn=c.vn;b.KB=c.durationMs;b.Yi=c.Yi;c.formatId=a;c.startTimeMs=e;c.LB=e;c.durationMs=d-e;c.KB=c.durationMs;
c.vn=f;c.Yi=h;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs,b.KB=b.durationMs);return!1};
d8a=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.hc||b.lmt===c.lmt};
h8a=function(a,b,c){if(a.logger){for(var d=[],e=0;e<b.length;e++){var f=b[e],h=void 0;if((h=f.tS)==null?0:h.Ah){var l=h=void 0,m=void 0;d.push("i."+((h=f.formatId)==null?void 0:h.itag)+"_st."+(f.startTimeMs+"_psst.")+(((l=f.tS)==null?void 0:l.Ah)+"_psd.")+((m=f.tS)==null?void 0:m.CE))}h=void 0;d.push("i."+((h=f.formatId)==null?void 0:h.itag)+"_st."+(f.startTimeMs+"_e."+(f.startTimeMs+f.durationMs)+"_d."+f.durationMs)+("_sn."+f.vn)+("_en."+f.Yi))}a.logger({p:""+c,br:d.join(";")})}};
i8a=function(a){a.jd=[];a.oy=[];a.B=-1;a.D=void 0};
j8a=function(a,b){var c=a.jd.some(function(e){return e.vn<=b+a.C&&e.Yi>=b+a.C}),d=a.oy.some(function(e){return e.info.Qa===b});
return c||d};
FY=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.je;this.D=null;this.C=0};
k8a=function(a,b,c){if(!a.policy.K){a=b.j.index;var d=b.B.Qa;a.qo(d)||c&&c.Qa===d?(b.G=!a.qo(d),b.ra=!a.qo(d)):(b.G=!0,b.ra=!0)}};
m8a=function(a){var b=Math.max(a.videoTrack.D.C||0,a.audioTrack.D.C||0);l8a(a.videoTrack);l8a(a.audioTrack);a.policy.K||eUa(a.manifest);a.manifest.isManifestless&&!a.policy.K&&(a.B=!0,a.C=0);var c=a.Aa;c.policy.Cb||(c.currentTime=b);a.G=!0;a.D=new xK;return a.D};
o8a=function(a,b,c,d,e){var f=a.policy.Bc?e:void 0;if(!b.j.qg()){if(!(f=c===0||!!b.C.length&&b.C[0]instanceof GY))a:{if(b.C.length&&(f=b.C[0],f instanceof HY&&f.Bh&&f.Bi)){f=!0;break a}f=!1}f||a.policy.C||IY(b);return c}var h=JY(b,c);if(!isNaN(h))return h;if(a.Aa.NQ(c*1E3))return c;e.MF||(b.ll(),a.Aa.kH(!0));return d&&(a=iK(d.Ee(),c),!isNaN(a))?(KY(b,a+n8a,f),c):KY(b,c,f)};
r8a=function(a,b,c,d){if(a.policy.K)!d||!a.B&&a.policy.Kb||g.dg(function(){LY(a)});
else{if(a.isSeeking()&&a.j){var e=p8a(a,b,c);if(e!==-1){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.dg(function(){a.Aa.oa("seekreason",{reason:"behindMinSq",tgt:e});q8a(a,e)});
return}}c?a.videoTrack.ra=!1:a.audioTrack.ra=!1;var f=a.policy.Fz||!a.B;JY(a.videoTrack,a.j)>=0&&JY(a.audioTrack,a.j)>=0&&f?((a.videoTrack.G||a.audioTrack.G)&&a.Aa.oa("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.G=!1,a.audioTrack.G=!1):d&&g.dg(function(){if(a.B||!a.policy.Kb)LY(a);else{var h=b.startTime,l=b.duration;if(!a.policy.K){var m=c?a.videoTrack.G:a.audioTrack.G,n=a.videoTrack.K!==-1&&a.audioTrack.K!==-1,p=a.j>=h&&a.j<h+l+.1,q=!a.videoTrack.ra&&!a.audioTrack.ra,r=a.policy.gA&&
JY(a.videoTrack,h)&&JY(a.audioTrack,h);m&&n&&q&&(p||r?((c?a.videoTrack:a.audioTrack).G=!1,a.videoTrack.G||a.audioTrack.G||(a.Aa.oa("iterativeSeeking",{status:"done",target:h,originalTime:h+a.Aa.Fc(),count:a.seekCount}),a.seekCount=0)):a.seekCount<8?(a.seekCount++,a.Aa.oa("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j,{})):(a.Aa.oa("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.G=
!1,a.audioTrack.G=!1,MY(a.Aa,h+.1,{qx:!0,hd:"chunkSelectorSynchronizeMedia",vr:!0})))}}})}};
p8a=function(a,b,c){if(!a.isSeeking())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.Ki(a.j);return(c.qo(a.manifest.gf)||b.Qa===a.manifest.gf)&&d<a.manifest.gf?a.manifest.pd():-1};
q8a=function(a,b,c){a.B&&a.videoTrack.K!==-1&&a.audioTrack.K!==-1&&(a.B=!1,a.j=b,MY(a.Aa,b+.1,{qx:!0,hd:"chunkSelectorSynchronize",vr:!0,seekSource:c}))};
LY=function(a){var b=a.videoTrack.K!==-1,c=a.audioTrack.K!==-1;if(!b||!c)if(b=!b&&NY(a.videoTrack),c=!c&&NY(a.audioTrack),b||c){c=b?a.videoTrack:a.audioTrack;b=b?a.audioTrack:a.videoTrack;c.K=NY(c).info.Qa;if(a.policy.K){var d;b.K=((d=NY(b))==null?void 0:d.info.Qa)||b.K}if(b.K!==-1){var e=Math.max(b.j.index.getStartTime(b.K),c.j.index.getStartTime(c.K));AQ(a.manifest)&&Math.abs(e-AQ(a.manifest))>432E3&&gUa(a.manifest);a.C&&(e=a.C,a.C=0);g.dg(function(){a.policy.K||q8a(a,e,102)});
a.Aa.oa("initManifestlessSync",{st:e,ost:e+a.Aa.Fc(),a:a.audioTrack.K,v:a.videoTrack.K});a.D&&(a.D.resolve(e+.1),a.D=null);a.policy.K&&q8a(a,e,102)}}};
PY=function(a,b){var c=this;this.Eb=a;this.requestNumber=++s8a;this.j=this.now();this.ra=this.Z=NaN;this.Y=this.j;this.B=this.Qb=this.G=0;this.D=this.j;this.Sa=this.Ha=this.Wa=this.Cc=this.Bc=this.Da=this.Oa=this.C=0;this.K=void 0;this.eb=0;this.N=this.isActive=!1;this.Ab=this.rb=0;this.wd={trb:function(){return c.Lp}};
this.Pc=b.Pc;this.snapshot=XUa(this.Pc);this.policy=this.Pc.Sa;this.Br=!!b.Br;this.ov=b.ov;b.sJ&&(OY||(OY=XKa("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.")),this.K=new Uint8Array(2048));var d;this.Lp=(d=b.Lp)!=null?d:!1;SUa(this.Pc)};
t8a=function(a){a.Wa=Math.max(a.Wa,a.G-a.Bc);a.Ha=Math.max(a.Ha,a.Y-a.Cc);a.Da=0};
QY=function(a,b,c){TUa(a.Pc,b);if(a.K){if(a.eb+20>a.K.length){var d=new Uint8Array(a.K.length*2);d.set(a.K);a.K=d}u8a(a,Math.ceil(b)-Math.ceil(a.Y));u8a(a,Math.max(0,Math.ceil(c/1024)-Math.ceil(a.G/1024)))}d=b-a.Y;var e=c-a.G;a.Qb=e;a.Sa=Math.max(a.Sa,e/(d+.01)*1E3);a.Y=b;a.G=c;a.Da&&c>a.Da&&t8a(a)};
u8a=function(a,b){for(;b>31;)a.K[a.eb++]=OY[(b&31)+32],b>>=5;a.K[a.eb++]=OY[b]};
v8a=function(a){return a.K?g.xN(a.K.subarray(0,a.eb)):""};
w8a=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
RY=function(a,b){PY.call(this,a,b);this.Cb=this.Lb=!1;this.Ga=this.va=Infinity;this.La=NaN;this.Kb=!1;this.Ya=NaN;this.Ub=0;this.fA=b.fA||1;this.pS=b.pS||this.fA;this.Il=b.Il;this.Qa=b.Qa;this.lh=b.lh;x8a(this);this.SS(this.j);this.Xa=(this.Ya-this.j)/1E3};
y8a=function(a,b,c){a.Br||(b=Math.max(b,.01),eR(a.Pc,b,c,b))};
z8a=function(a,b){return b?a.yK()&&!a.policy.j?!0:b>=2048||a.policy.j&&a.N:!1};
A8a=function(a){return(a.D-a.j)/1E3};
x8a=function(a){a.La=a.j+a.snapshot.delay*1E3;a.Kb=!1};
D8a=function(a,b){if(a.Il&&a.Qa!==void 0&&a.lh!==void 0){var c=Math,d=c.min,e=a.va;var f=a.Il;var h=a.j;if(B8a(f,a.Qa))f=b;else{var l=0;f.pj&&(l=.2);f=h+(f.Sj+l)*1E3}a.va=d.call(c,e,f);c=Math;d=c.min;e=a.Ga;f=a.Il;h=a.j;l=C8a(f,a.Qa,a.lh);l!==2&&(b=l?b:h+f.Sj*1E3,f.pj&&(b+=f.Sj*1E3));a.Ga=d.call(c,e,b);a.va<=a.j?x8a(a):(a.La=a.va,a.Kb=!0)}};
E8a=function(a,b){if(b+1<=a.totalLength){var c=sN(a,b);c=c<128?1:c<192?2:c<224?3:c<240?4:5}else c=0;if(c<1||!(b+c<=a.totalLength))return[-1,b];if(c===1)a=sN(a,b++);else if(c===2)c=sN(a,b++),a=sN(a,b++),a=(c&63)+64*a;else if(c===3){c=sN(a,b++);var d=sN(a,b++);a=sN(a,b++);a=(c&31)+32*(d+256*a)}else if(c===4){c=sN(a,b++);d=sN(a,b++);var e=sN(a,b++);a=sN(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),SKa(a,c,4)?a=TKa(a).getUint32(c-a.C,!0):(d=sN(a,c+2)+256*sN(a,c+3),a=sN(a,c)+256*(sN(a,c+
1)+256*d)),b+=5;return[a,b]};
SY=function(a){this.Eb=a;this.j=new nN};
TY=function(a,b){this.info=a;this.callback=b;this.state=1;this.NB=this.oQ=!1;this.fg=null};
F8a=function(a){return g.as(a.info.kb,function(b){return b.type===3})};
G8a=function(a,b,c,d){var e=this;d=d===void 0?{}:d;this.policy=b;this.Eb=c;this.status=0;this.j=new nN;this.B=0;this.Na=this.D=this.C=!1;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.v(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.EB()};
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.iC)();e.Eb.Ds(f,e.B)},function(){},d.body||null)};
H8a=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
sWa=function(a,b){var c,d,e;return g.H(function(f){if(f.j==1){if(!b)return f.return(b);c=UY.Ts();d=new g.iN(a.B);return g.z(f,d.encrypt(b,a.j),2)}e=f.B;UY.Hr("woe",c,Math.ceil(b.byteLength/16));return f.return(e)})};
yWa=function(a,b){var c,d,e;return g.H(function(f){if(f.j==1){if(!b)return f.return(b);c=UY.Ts();d=new g.iN(a.B);return g.z(f,d.decrypt(b,a.j),2)}e=f.B;UY.Hr("wod",c,Math.ceil(b.byteLength/16));return f.return(e)})};
I8a=function(a,b){var c=this;this.j=a;this.Eb=b;this.loaded=this.status=0;this.error="";a=XP(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new nN;this.Ks().then(function(){c.Eb.Po()},function(d){c.error=""+d||"unknown_err";
c.Eb.Po()})};
K8a=function(a,b,c,d){var e=this;d=d===void 0?{}:d;this.policy=b;this.Eb=c;this.N=d;this.status=0;this.response=void 0;this.B=0;this.G=this.K=!1;this.errorMessage="";this.Y=function(f){if(f)if(e.status=f.status,f.ok&&f.body&&e.status!==204)e.status=e.status||242,e.C=f.body.getReader(),e.Na()?e.C.cancel().catch(function(){}):(e.responseHeaders=f.headers,e.Eb.Zu(),J8a(e));
else e.onDone();else e.onError(Error("null_response"))};
this.Z=function(f){var h=(0,g.iC)();e.Na()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),J8a(e),e.Eb.Ds(h,e.B)))};
this.onError=function(f){e.errorMessage=String(f);e.K=!0;e.onDone()};
this.j=new nN;this.D=window.AbortController?new AbortController:void 0;this.start(a)};
J8a=function(a){a.C.read().then(a.Z,a.onError).then(void 0,Bsa)};
L8a=function(a,b,c){var d=this;c=c===void 0?{}:c;this.Eb=b;this.B=this.status=0;this.Na=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.v(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.EB(f)};
a=YN(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",YN(function(f){d.Fg(f)}),!1)};
VY=function(a,b,c,d,e){if(iP(a.base))return new I8a(a,c);a=a.Ge();return d?QPa()?new G8a(a,b,c,e):new K8a(a,b,c,e):new L8a(a,c,e)};
WY=function(a,b,c,d,e,f,h,l,m){m=m===void 0?!1:m;g.I.call(this);this.Eb=a;this.policy=b;this.ke=c;this.resource=d;this.timing=e;this.logger=f;this.C=h;this.ly=l;this.G=m;this.lastError=null;this.j=0;this.D=!1;this.B=new g.Dv(this.Hda,this.policy.Sk,this)};
M8a=function(a){a.resource.Z=(0,g.iC)();a=XY(a);a.B=(0,g.iC)();a.started+=1};
N8a=function(a,b,c){a.timing.xR((0,g.iC)(),b,c);b=a.resource;b.B=0;b.G=0;b.K=0;sSa(XY(a));if((b=a.ly)!=null&&(a=a.ke.base,!((0,g.iC)()<b.K+3E5||iP(a))&&(c=hP(a))&&v5a(c)&&b.B===xX(c))){var d;FRa(a)&&(d=hP(jP(a)));g.xB("yt-player-bandaid-host",{primary:c,secondary:d},864E3);b.K=(0,g.iC)();s5a(b,{primary:c,secondary:d})}};
YY=function(a){if(a.lastError==="ump.spsrejectfailure")a.timing.N||zSa(a.resource,!1,a.ke,a.policy,a.C);else{if(a.lastError==="net.timeout")a.timing.eL((0,g.iC)());else{var b=a.timing;QY(b,(0,g.iC)(),b.G)}if(a.lastError==="net.nocontent")++a.resource.K;else{if((b=a.lastError==="net.timeout"||a.lastError==="net.connect"||a.lastError==="net.closed")&&!iP(a.ke.base)){var c=XY(a);c.timedOut+=1}else c=XY(a),c.j+=1;a.timing.N||zSa(a.resource,b,a.ke,a.policy,a.C)}}a.Eb.Ic(5)};
ZY=function(a,b,c,d,e){return b>=400?(a.lastError="net.badstatus",!0):(e===void 0?0:e)?(a.lastError="ump.spsrejectfailure",!0):c||d!==void 0&&d?!1:(a.lastError=b===204?"net.nocontent":"net.connect",!0)};
XY=function(a){return TP(a.C,hP(a.ke.base))};
O8a=function(a){var b=a.timing.er();b.shost=hP(a.ke.base);return b};
P8a=function(a){var b="";if(!a)return b;a=g.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b+=c.videoCodec+"_"+c.maxWidth+"_"+c.maxHeight+"_"+c.maxFramerate+"_"+c.is10BitSupported+"_"+c.maxBitrateBps+";";return b};
Q8a=function(a,b){return(a==null?void 0:a.maxWidth)>(b==null?void 0:b.maxWidth)||(a==null?void 0:a.maxHeight)>(b==null?void 0:b.maxHeight)};
R8a=function(a,b){for(var c=g.v(b.keys()),d=c.next();!d.done;d=c.next())if(d=b.get(d.value),d.length!==0){g.Sb(d,function(l,m){return m.maxFramerate-l.maxFramerate});
for(var e=[d[0]],f=0,h=1;h<d.length;h++)Q8a(d[h],e[f])&&(e.push(d[h]),f++);a=a.concat(e)}return a};
T8a=function(a,b){var c=[];b=g.v(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=S8a[d]||0;a.j&&e>a.j||c.push(d)}return c};
X8a=function(a,b,c){var d=U8a[a]||[];c.L("html5_shorts_onesie_mismatched_fix")&&(d=V8a[a]||[]);b.push.apply(b,g.ra(d));c.L("html5_early_media_for_drm")&&b.push.apply(b,g.ra(W8a[a]||[]))};
c9a=function(a,b){var c=KS(a),d=a.U(),e=d.G;d=d.L("html5_shorts_onesie_mismatched_fix");var f=a.xk();if(d){if(!e.B){if(f&&$Y)return $Y;if(aZ)return aZ}}else if(aZ&&!e.B)return aZ;var h=[],l=[],m={},n=bZ.concat(Y8a);d&&(n=bZ.concat(Z8a));a.L("html5_early_media_for_drm")&&(n=n.concat($8a),a.L("allow_vp9_1080p_mq_enc")&&n.push(a9a));var p=[].concat(g.ra(b9a));c.Z&&(p[0]=["141"]);n=g.v(n);for(var q=n.next();!q.done;q=n.next()){var r=!1;q=g.v(q.value);for(var t=q.next();!t.done;t=q.next()){t=t.value;var u=
NR(t,f&&d);if(u&&u.video&&!(WJ(u)&&!c.Ga&&u.video.j>c.tj)){var w=g.oI(a.U().experiments,"html5_drm_byterate_soft_cap");w>0&&LEa(u)&&u.ub>w||(r?(h.push(t),X8a(t,h,a)):(u=ZO(c,u,e),u===!0?(r=!0,h.push(t),X8a(t,h,a)):m[t]=u))}}}p=g.v(p);for(n=p.next();!n.done;n=p.next())for(n=g.v(n.value),r=n.next();!r.done;r=n.next())if(r=r.value,(q=AVa(r))&&q.audio&&(a.L("html5_onesie_51_audio")||!KEa(q)&&!XJ(q)))if(q=ZO(c,q,e),q===!0){l.push(r);X8a(r,l,a);break}else m[r]=q;c.B&&b("orfmts",m);if(d)return e.B&&(e.B=
!1,$Y=aZ=void 0),f?$Y={video:h,audio:l}:aZ={video:h,audio:l};aZ={video:h,audio:l};e.B=!1;return aZ};
g9a=function(a,b){var c={},d=a.ea,e=a.Ea,f=d.getVideoData(),h=KO(0),l=d.getPlayerSize(),m=d.getVisibilityState();h&&(c.z$=h,c.lastManualDirection=SPa(),h=hsa()||0,h>0&&(h=(e.L("html5_use_date_now_for_local_storage")?Date.now():(0,g.iC)())-h,e.L("html5_use_date_now_for_local_storage")?h>0&&(c.timeSinceLastManualFormatSelectionMs=h):c.timeSinceLastManualFormatSelectionMs=h));c.Dea=KO();h=e.L("html5_use_streamer_bandwidth_for_low_latency_live")&&f.isLowLatencyLiveStream;if(e.schedule.Ga&&!h){var n;h=
e.L("html5_disable_bandwidth_cofactors_for_sabr_live")?!((n=a.Ve)==null||!n.Ej):!1;c.H7=iR(e.schedule,!h)}n=g.DR();var p=g.PJ.medium,q=Math.floor(p*16/9);h=f.xk()?p:q;p=f.xk()?q:p;c.R7=Math.max(l.width*n,h);c.Q7=Math.max(l.height*n,p);c.visibility=m;c.Sea=CD();c.t8=g.xM(d.uc().provider)*1E3;e.L("html5_sabr_support_quality_constraints")&&a.Pz&&(c.Pz=a.Pz);e.L("html5_enable_sabr_drm_hd720p")&&a.sabrLicenseConstraint&&(c.sabrLicenseConstraint=a.sabrLicenseConstraint);if(e.L("html5_enable_platform_backpressure_with_sabr")){if(c.Rw=
3,a.fH||(c.Rw^=1),!a.iH||JS(f))c.Rw^=2}else{if(e.L("html5_onesie_media_capabilities")||e.L("html5_enable_server_format_filter"))c.Rw=3;e.L("html5_onesie_audio_only_playback")&&JS(f)&&(c.Rw=1)}l=f.tf?f.tf:KS(f);if(e.L("html5_onesie_media_capabilities")){m=e.G;n=[];h=[];p=e.L("html5_shorts_onesie_mismatched_fix");f=f.xk();var r=bZ.concat(Y8a);p&&(r=bZ.concat(Z8a));e.L("html5_early_media_for_drm")&&(r=r.concat($8a),e.L("allow_vp9_1080p_mq_enc")&&r.push(a9a));q=[].concat(g.ra(b9a));l.Z&&(q[0]=["141"]);
r=g.v(r);for(var t=r.next();!t.done;t=r.next()){t=g.v(t.value);for(var u=t.next();!u.done;u=t.next()){u=u.value;var w=NR(u,f&&p);if(w&&w.video){var A=g.oI(e.experiments,"html5_drm_byterate_soft_cap");if(!(A>0&&LEa(w)&&w.ub>A)&&ZO(l,w,m)===!0){n.push({videoCodec:d9a[TJ[u]],maxWidth:w.video.width,maxHeight:w.video.height,maxFramerate:w.video.fps});break}}}}f=g.v(q);for(p=f.next();!p.done;p=f.next())for(p=g.v(p.value),q=p.next();!q.done;q=p.next())if(q=q.value,(r=AVa(q))&&r.audio&&(e.L("html5_onesie_51_audio")||
!KEa(r)&&!XJ(r))&&ZO(l,r,m)===!0){h.push({audioCodec:e9a[TJ[q]],numChannels:r.audio.numChannels});break}c.mediaCapabilities={videoFormatCapabilities:n,audioFormatCapabilities:h}}var C;if((C=a.Ve)==null?0:C.C&&C.Gn){h=e.G;b&&b("ssap",{clientCapabilities:aP(h)});C=[];m=[];n=new Map;if((f=h.j)&&f.size>0)for(f=g.v(f.values()),p=f.next();!p.done;p=f.next())q=p.value,q.Kh?m.push({audioCodec:e9a[q.sb],numChannels:q.numChannels,spatialCapabilityBitmask:f9a[q.sb]}):(r=d9a[q.sb],p={videoCodec:r,maxWidth:q.maxWidth||
0,maxHeight:q.maxHeight||0,maxFramerate:q.maxFramerate||0,is10BitSupported:q.BF||!1},q.maxBitrateBps&&(p.maxBitrateBps=q.maxBitrateBps,t=NR(q.itag),u=void 0,((u=t)==null?0:u.video)&&ZO(l,t,h)===!0&&(t=t.ub*8,t>p.maxBitrateBps&&(p.maxBitrateBps=t))),q=r+"_"+q.BF,r=n.get(q)||[],r.push(p),n.set(q,r));C=R8a(C,n);if(b){h="";if(n)for(f=g.v(n.keys()),p=f.next();!p.done;p=f.next())p=p.value,h+=p+"-"+P8a(n.get(p))+";";n=h;h=P8a(C);f="";if(m)for(p=g.v(m),q=p.next();!q.done;q=p.next())q=q.value,f+=q.audioCodec+
"_"+q.numChannels+"_"+q.maxBitrateBps+"_"+q.spatialCapabilityBitmask+";";b("ssap",{vfcm:n,vfcam:h,afcam:f})}c.mediaCapabilities={videoFormatCapabilities:C,audioFormatCapabilities:m,hdrModeBitmask:3}}var F;if((F=a.Ve)==null?0:F.C){c.To=l.To;var G;c.tj=(G=a.Ve)==null?void 0:G.tj}e.Wf&&(c.q8=e.Wf);c.CS=a.tE;c.Gy=a.Gy;if(e.L("html5_fix_time_since_last_seek_reporting")?a.jq!==void 0:a.jq)c.Tea=(0,g.iC)()-a.jq;a.isPrefetch&&e.L("html5_report_prefetch_requests")&&(c.isPrefetch=!0);VQ||(c.caa=!0);b=hR(e.schedule)*
1E3;b>0&&(c.W7=b);var K;((K=a.Ve)==null?0:K.Rv)&&a.Rx&&a.Rx<Infinity&&(c.Rx=a.Rx);d=d.getPlaybackRate();d!==1&&(c.playbackRate=d);var N;((N=a.Ve)==null?0:N.Ub)&&a.Fq&&(c.Gw=a.Gw,c.Ry=a.Ry,c.Fq=a.Fq);e.L("allow_proxima_live_latency")&&(RPa()===1&&(c.B$=1),e.L("html5_sabr_force_proxima")&&(c.A$=1),a=g.oI(e.experiments,"html5_sabr_force_max_network_interruption_duration_ms"),c.O$=a>0?a:e.schedule.interruptions[0]||0);return c};
cZ=function(a,b,c,d,e,f){var h={};b&&(h.cda={PB:b});if(!a)return h;h.playbackCookie=c==null?void 0:c.playbackCookie;e&&(h.IS=e);h.KM=[];h.fM=[];if(g.DS(a)&&a.sabrContextUpdates.size>0)for(b=g.v(a.sabrContextUpdates.values()),c=b.next();!c.done;c=b.next())h9a(h,c.value,d);BS(a)&&!g.DS(a)&&a.L("html5_enable_sabr_request_pipelining")&&f&&h9a(h,f,d);a.YA&&(h.vea=a.YA);d=a.U().j;h.clientInfo={clientName:i9a[d.c.toUpperCase()]||0};d.cbrand&&(h.clientInfo.deviceMake=d.cbrand);d.cmodel&&(h.clientInfo.deviceModel=
d.cmodel);d.cver&&(h.clientInfo.clientVersion=d.cver);d.cos&&(h.clientInfo.osName=d.cos);d.cosver&&(h.clientInfo.osVersion=d.cosver);a.mp&&(h.mp=a.mp);return h};
h9a=function(a,b,c){var d=b.type||0;(c==null?0:c.has(d))?a.fM.push(b):a.KM.push(d)};
HY=function(a,b,c,d,e,f){var h=f===void 0?{}:f;var l=h.NG===void 0?[]:h.NG;var m=h.IH===void 0?!1:h.IH;var n=h.Fw===void 0?0:h.Fw;var p=h.poToken===void 0?"":h.poToken;var q=h.ly===void 0?void 0:h.ly;var r=h.WG===void 0?"":h.WG;var t=h.Bh===void 0?0:h.Bh;var u=h.Bi===void 0?new Uint8Array(0):h.Bi;var w=h.wM===void 0?!1:h.wM;f=h.qq===void 0?0:h.qq;h=h.PB===void 0?void 0:h.PB;TY.call(this,b,e);var A=this;this.policy=a;this.logger=new g.FQ("dash/request");this.Qz=this.Dg=0;this.O1=!1;this.Ur=this.Zp=
null;this.aZ=!1;this.Bi=this.Bh=null;this.IM=this.b3=!1;this.QI=null;this.qq=this.Sp=0;this.Cu=!1;this.wd={Ic:function(F){A.Ic(F)},
Zqb:function(){return A.fg},
wsb:function(F){A.fg=F},
tsb:function(F){A.Dg=F},
rsb:function(F){A.Cd.lastError=F},
bQ:function(){return A.xhr}};
this.timing=new RY(this,c);this.IH=m;this.Bh=t;this.Bi=u;this.ke=g.hQ(this.info,this.policy,d);this.ke.set("rn",this.Up().toString());this.ke.set("rbuf",(n*1E3).toFixed().toString());this.IH&&this.ke.set("smb","1");this.policy.Wl&&p&&this.ke.set("pot",p);r&&this.ke.set("bbs",r);this.policy.useUmp&&!iP(this.ke.base)&&(this.Rl=new SY(this),this.ke.set("ump","1"),this.ke.set("srfvp","1"));if(a=this.policy.jt?this.policy.XC&&!isNaN(this.info.lh)&&this.info.lh>this.policy.ND?!1:!0:!1)b=null,this.policy.ID&&
this.policy.lk?b=[1]:w&&(b=[]),b!=null&&(this.policy.eI&&b.push(2),this.ke.set("defsel",b.join(",")));this.Cd=new WY(this,this.policy,this.ke,this.info.resource,this.timing,this.logger,d,q);this.NG=l||null;this.NB=j9a(this);M8a(this.Cd);d=void 0;if(this.policy.HD||this.Rl||this.policy.Ga)d={method:"POST"},l=(0,g.dZ)([120,0]),q={},this.policy.SC&&h&&(h=cZ(void 0,h),q.CC=h),this.policy.hw&&this.Bi&&(q.videoPlaybackUstreamerConfig=this.Bi),this.policy.Ga&&(h=this.info.D)&&Object.assign(q,h),Object.keys(q).length>
0?d.body=g.SN(q,g.BQa):d.body=l;if(this.Bh&&this.Bi){this.ke.set("iwts","1");d={method:"POST"};h={Gy:this.Bh*1E3};var C;l=(C=this.info.D)==null?void 0:C.hn;C=g.SN({zr:h,hn:l||void 0,videoPlaybackUstreamerConfig:this.Bi},g.BQa);d.body=C}try{this.xhr=VY(this.ke,this.policy.N,this.timing,a,d),this.Cd.B.start(),f&&(this.Ru=new g.Dv(this.p_,f,this),this.Ru.start(f+(this.timing.Pc.K.jh()||0)*1E3)),this.policy.jG&&w8a(this.timing,this.Ge()),this.logger.debug(function(){return"Sent, itag="+A.ke.get("itag")+
" seg="+A.info.kb[0].Qa+" range="+A.ke.get("range")+" time="+Math.round(A.info.kb[0].Xe)+"-"+Math.round(g.zb(A.info.kb).Pf)+" rtp="+(A.timing.VJ()-Date.now()).toFixed(0)}),g.dg(function(){})}catch(F){k9a(this,F,!0)}};
j9a=function(a){if(!(gQ(a.info)&&a.info.Lp()&&a.policy.le&&a.NG)||a.info.resource.B>=2||KO()>0||!ZPa())return!1;var b=a.ke.get("aitags");if(!b)return!1;b=$e(b).split(",");for(var c=[],d=g.v(a.NG),e=d.next();!e.done;e=d.next())e=e.value,g.Eb(b,e)&&c.push(e);if(!c.length)return!1;a.ke.set("altitags",g.Ze(c.join(",")));return!0};
k9a=function(a,b,c){c=c===void 0?!1:c;g.mE(b);a.Cd.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.dg(function(){YY(a.Cd)}):YY(a.Cd)};
l9a=function(a){if(a.policy.ZA)return!1;var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.XE();c=!c||c<=a.policy.Pp;return(!a.xhr.DC()||!b||b.indexOf("text/plain")!==-1)&&c};
m9a=function(a,b){var c=vN(b);return QI(c)?(a.logger.debug(function(){return"Redirecting to "+c}),c):""};
n9a=function(a,b){a.timing.N=!0;if(a.policy.Sc){var c;(c=a.Ru)==null||c.stop()}KX(a.fg,b,!1)};
o9a=function(a,b){a.info=b;if(a.fg){var c=a.fg;b=b.kb;(b.length!==c.kb.length||b.length<c.zf.length)&&kUa("dash/request",260511119,""+b.length,""+c.kb.length,""+c.zf.length);c.kb=b;for(var d=b[0].range,e=new nN,f=0;f<c.zf.length;f++)oN(e,c.zf[f].j);for(f=0;f<c.zf.length;f++){c.zf[f].info=b[f];var h=b[f].range;c.zf[f].j=pN(e,h.start-d.start,h.length)}}a.NB=!1};
p9a=function(a){a.Sp&&(a.xhr.status=a.Sp,a.Dg=a.Sp)};
eZ=function(a){this.B={};this.logger=new g.FQ(a)};
q9a=function(a){return a.itag+";"+(a.lmt||0)+";"+(a.xtags||"")};
fZ=function(a,b){PY.call(this,a,b);this.Ga=!0;this.va=!1;this.Xa=this.La=0;this.Ya=NaN};
r9a=function(a){eZ.call(this,"sabr");this.Eb=a};
gZ=function(a,b,c,d,e,f,h,l){g.I.call(this);this.policy=a;this.info=b;this.manifest=c;this.Eb=e;this.q_=l;this.logger=new g.FQ("sabr");this.Rl=new SY(this);this.Uda=new r9a(this);this.dg=new LX(this);this.state=1;this.I1=!1;this.VS=0;this.clipId="";this.uv=this.ij=-1;this.w1=0;this.Cu=this.QW=!1;this.policy.YC?this.Od=new fZ(this,f):this.Od=new RY(this,f);e=this.policy;e=vSa(b.resource,s9a(b,e,d),e);b.Zr()&&e.set("probe","1");this.ke=e;this.ke.set("rn",""+this.Up());j6a(this.dg,c,a);this.Cd=new WY(this,
this.policy,this.ke,b.resource,this.Od,this.logger,d,h,this.policy.enableServerDrivenRequestCancellation);M8a(this.Cd);var m;if((m=this.policy)==null?0:m.Zd)g.M(this,this.dg),g.M(this,this.Cd);a=b.B;b={method:"POST",body:a};a&&(this.w1=a.length);try{this.xhr=VY(this.ke,this.policy.N,this.Od,VQ,b),this.Cd.B.start()}catch(n){g.nE(n)}};
t9a=function(a,b){var c=-1,d=-1,e=-1,f;if((f=a.US)==null?0:f.items)for(a=g.v(a.US.items),f=a.next();!f.done;f=a.next())f=f.value,b<f.nR||f.nR<c||(c=f.nR,d=f.VK,e=f.minReadaheadMs);return{y$:c,VK:d,oR:e}};
u9a=function(a){this.j=a;this.Y=this.Oa=this.N=this.Ga=this.D=this.G=this.K=this.Ha=this.Z=this.La=this.va=this.Da=this.ra=0;this.ticks={}};
hZ=function(a){a.ra||(a.ra=(0,g.iC)(),QK("mb_s",a.ra,a.j))};
v9a=function(a){a.Da||(a.Da=(0,g.iC)(),QK("ovfs_rp",a.Da,a.j))};
w9a=function(a){a.va||(a.va=(0,g.iC)(),QK("oafs_rp",a.va,a.j))};
x9a=function(a){a.G||(a.G=(0,g.iC)(),QK("vda",a.G,a.j),a.D&&SB(g.QB(),4))};
y9a=function(a){a.D||(a.D=(0,g.iC)(),QK("ada",a.D,a.j),a.G&&SB(g.QB(),4))};
z9a=function(a){a.Ga||(a.Ga=(0,g.iC)(),QK("vis_a",a.Ga,a.j))};
A9a=function(a){a.N||(a.N=(0,g.iC)(),QK("ais_a",a.N,a.j))};
B9a=function(a){a.Oa||(a.Oa=(0,g.iC)(),QK("vrb_f",a.Oa,a.j))};
C9a=function(a){a.Y||(a.Y=(0,g.iC)(),QK("arb_f",a.Y,a.j))};
D9a=function(a,b,c){var d=b instanceof gZ&&!a.C&&!a.B,e=!a.C&&(c==null?void 0:c.info.video);c=!a.B&&(c==null?void 0:c.info.audio);b.state===3?((e||d)&&a.tick("vrr"),(c||d)&&a.tick("arr")):b.state===4?e?(a.C=b.Ge(),SB(g.QB(),4)):c&&(a.B=b.Ge()):b instanceof HY&&b.Bx()&&e&&SB(g.QB(),4)};
E9a=function(a){return!!a.B&&!!a.C};
F9a=function(a,b,c,d,e,f){g.GE.call(this);var h=this;this.Aa=a;this.manifest=b;this.policy=c;this.videoTrack=d;this.audioTrack=e;this.ra=this.j=null;this.G=this.K=NaN;this.Z=0;this.Y=NaN;this.N=null;this.va=new Map;this.C=this.D=NaN;this.wd={drb:function(){return h.B}};
this.B=f?1:0};
iZ=function(a,b,c){b.startSecs+=isNaN(a.Z)?0:a.Z;a=a.manifest;a.Ha.push(b);a.publish("cuepointsadded",c)};
H9a=function(a,b,c){if(a.B!==0&&c&&b.kb[0].Cg()){var d=b.kb[0].Qa,e=b.kb[0].Xe;b=b.eq();G9a(a,d,e,b,c)}};
G9a=function(a,b,c,d,e){var f;b!==((f=a.j)==null?void 0:f.Qa)||a.B===1||d||a.j.fh.event==="predictStart"||a.oa("sdai",{undecevt:1,sq:b,evt:a.j.fh.event});b>a.G&&(a.G=NaN,a.K=NaN);if(a.j&&a.j.Qa===b){d=a.j;f=d.fh;var h=e.Vu(f);a.oa("sdai",{onqevt:f.event,sq:b,gab:h});if(h)f.event!=="predictStart"?d.tF?jZ(a,4,"cue"):(a.G=b,a.K=c,a.oa("sdai",{joinad:a.B,sg:a.G,st:a.K.toFixed(3)}),a.Y=Date.now(),jZ(a,2,"join"),e.dK(d.fh)):(a.policy.G?(a.C=Math.floor(c-f.j/1E3),a.oa("sdai",{onpred:c,est:a.C})):(a.D=b+
Math.max(Math.ceil(-f.j/5E3),1),a.oa("sdai",{onpred:b,est:a.D})),a.Y=Date.now(),jZ(a,3,"predict"),e.dK(d.fh));else if(a.B===1){var l;((l=a.N)==null?0:l.fP(c))?(I9a(a.Aa,c,c,b),jZ(a,4,"sk2had")):jZ(a,5,"nogab")}else f.event==="predictStart"&&(a.policy.G&&a.C>0?(b=Math.floor(c-f.j/1E3),a.C!==b&&a.oa("sdai",{updateSt:b,old:a.C}),a.C=b):a.D>0&&(b+=Math.max(Math.ceil(-f.j/5E3),1),a.D!==b&&(a.oa("sdai",{updateSt:b,old:a.D}),a.D=b)))}else a.B===1&&jZ(a,5,"noad")};
L9a=function(a,b,c){if(a.B===1||a.B===2)return!1;if(a.B!==0&&b===a.audioTrack){if(a.policy.G){a=a.videoTrack;var d;return!((d=a.Z)==null||!j8a(d,c))||J9a(a.D,c)}d=K9a(a.videoTrack);if(c>(d?d.Qa:-1))return!1}return!0};
M9a=function(a,b,c){return(c<0||c===a.G)&&!isNaN(a.K)?a.K:b};
N9a=function(a,b){if(a.j){var c=a.j.fh.Hh-(b.startTime+a.Z-a.j.fh.startSecs);c<=0||(c=new tP(a.j.fh.startSecs-(isNaN(a.Z)?0:a.Z),c,a.j.fh.context,a.j.fh.identifier,"stop",a.j.fh.j+b.duration*1E3),a.oa("cuepointdiscontinuity",{segNum:b.Qa}),iZ(a,c,b.Qa))}};
jZ=function(a,b,c){a.B!==b&&(a.oa("sdai",{setsst:b,old:a.B,r:c}),a.B=b)};
kZ=function(a,b,c,d){(d===void 0?0:d)?jZ(a,1,"sk2h"):b>0&&Math.abs(b-c)>=5&&a.B===4&&jZ(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
lZ=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
mZ=function(a,b,c){this.j=a;this.reason=b;this.token=c;this.videoId=void 0};
nZ=function(a,b,c){g.I.call(this);this.policy=a;this.D=b;this.oa=c;this.C=new Map;this.G=0;this.K=!1;this.j="";this.B=!1};
oZ=function(a,b,c){if(c===void 0?0:c)a.K=!0;++a.G;c=6E4*Math.pow(2,a.G);c=(0,g.iC)()+c;a.C.set(b.info.id,c)};
pZ=function(a){for(var b=g.v(a.C.entries()),c=b.next();!c.done;c=b.next()){var d=g.v(c.value);c=d.next().value;d=d.next().value;d<(0,g.iC)()&&a.C.delete(c)}return a.C};
O9a=function(a){return a.K&&pZ(a).size>0};
qZ=function(a,b){a.j!==b&&(a.j=b,a.B=!0)};
P9a=function(a,b){if(b){var c=g.Cb(a.D.j,function(f){return f.id===b});
if(a.policy.Vj){var d,e;a.oa("iaudio",{id:b,sid:(d=c)==null?void 0:(e=d.Yb)==null?void 0:e.id})}}c||(c=g.Cb(a.D.j,function(f){var h;return!((h=f.Yb)==null||!h.isDefault)}));
return c};
Q9a=function(a,b,c,d,e,f){var h=this;f=f===void 0?[]:f;this.Aa=a;this.Da=b;this.policy=c;this.manifest=d;this.K=e;this.ib=f;this.logger=new g.FQ("dash/abr");this.j=rS;this.C=this.N=null;this.Y=-1;this.Oa=!1;this.nextVideo=this.B=null;this.D=[];this.Wa=new Set;this.La={};this.Ya=new cR(1);this.Z=0;this.Xa=this.va=this.ra=!1;this.Ha=0;this.eb=!1;this.Ga=new Set;this.Sa=!1;this.wd={K1:function(){rZ(h)}};
this.G=new nZ(this.policy,e,function(l,m){h.Aa.oa(l,m)})};
V9a=function(a,b,c){sZ(a,b);R9a(a,c);a.N=a.B;S9a(a);T9a(a);a.C=a.nextVideo;a.N=a.B;return U9a(a)};
Y9a=function(a,b){if(W9a(a,b))return null;if(b.reason==="m"&&b.isLocked())return a.logger.debug(function(){return"User sets constraint to: "+VO(b)}),sZ(a,b),a.Z=a.D.length-1,rZ(a),tZ(a),a.va=a.va||a.C!==a.nextVideo,a.C=a.nextVideo,new lZ(a.B,a.C,b.reason);
b.reason==="r"&&(a.Y=-1);sZ(a,b);tZ(a);if(b.reason==="r"&&a.nextVideo===a.C)return new lZ(a.B,a.nextVideo,b.reason);X9a(a);return null};
Z9a=function(a,b,c){a.B=a.manifest.j[b];a.N=a.B;return new lZ(a.N,a.C,c?"t":"m")};
$9a=function(a,b){if(b.info.video){if(a.C!==b)return a.C=b,U9a(a)}else a.Xa=a.N!==b,a.N=b;return null};
a$a=function(a,b){if(b.j.info.video&&b.Ue){var c=(b.Tb+b.B)/b.duration,d=b.j.info.ub;c&&d&&(a.Ya.Vi(1,c/d),a.policy.B&&c/d>1.5&&a.Aa.oa("overshoot",{sq:b.Qa,br:c,max:d}))}};
uZ=function(a,b,c){oZ(a.G,b,c===void 0?!1:c);a.Y=-1;sZ(a,a.j)};
vZ=function(a,b){return new lZ(a.N,a.C,b||a.j.reason)};
X9a=function(a){if(a.C&&a.nextVideo&&wZ(a,a.C.info)<wZ(a,a.nextVideo.info)){var b=a.j.reason;a.ra=a.ra||b==="r"||b==="u"||b==="v"}};
U9a=function(a){a.Oa?a.Oa=!1:a.Y=(0,g.iC)();a.ra=!1;a.Sa=!1;return new lZ(a.N,a.C,a.j.reason)};
b$a=function(a,b){var c={};b=g.v(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&&WJ(f)&&f.video.j>a.policy.tj,l=e<=a.policy.tj?WJ(d):VJ(d);if(!f||h||l)c[e]=d}return c};
sZ=function(a,b){a.j=b;var c=a.K.videoInfos;if(!a.j.isLocked()){var d=(0,g.iC)();c=g.Mt(c,function(r){if(r.ub>this.policy.ub)return!1;var t=this.manifest.j[r.id];return pZ(this.G).get(r.id)>d?!1:t.resource.B>4||t.K>4?(this.logger.debug(function(){return"Remove "+dK(r)+"; 4 load failures"}),!1):this.Ga.has(+r.itag)?!1:!0},a);
O9a(a.G)&&(c=g.Mt(c,function(r){return r.video.width<=854&&r.video.height<=480}))}c.length||(c=a.K.videoInfos);
var e=g.Mt(c,b.D,b);if(a.j.isLocked()&&a.G.j){var f=g.Cb(c,function(r){return r.id===a.G.j});
f?e=[f]:qZ(a.G,"")}f=b.reason==="m"||b.reason==="s";a.policy.fD&&CY&&g.dC&&(!f||b.j<1080)&&(e=e.filter(function(r){return r.video&&(!r.B||r.B.powerEfficient)}));
if(e.length>0)if(oK()){var h=b$a(a,e);e=e.filter(function(r){return!!r&&!!r.video&&r.sb===h[r.video.j].sb})}else{var l,m,n=(l=e[0])==null?void 0:(m=l.video)==null?void 0:m.j;
if(n){b=e.filter(function(r){return!!r&&!!r.video&&r.video.j===n});
var p=b$a(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 wZ(a,r)-wZ(a,t)});
c={};for(b=1;b<e.length;c={mO:void 0,SN:void 0},b++)c.SN=e[b-1],c.mO=e[b],c.SN.video.width>c.mO.video.width?(g.Fb(e,b),b--):wZ(a,c.SN)*a.policy.Z>wZ(a,c.mO)&&(g.Fb(e,b-1),b--);var q=e[e.length-1];a.eb=!!a.C&&!!a.C.info&&a.C.info.sb!==q.sb;a.logger.debug(function(){return"Constraint: "+VO(a.j)+", "+e.length+" fmts selectable, max selectable fmt: "+dK(q)});
a.D=e;a.Wa.clear();c=!1;for(b=0;b<e.length;b++)c?a.Wa.add(e[b].itag):e[b].video.j>=1080&&(c=!0);i0a(a.policy,q,a.manifest.hc)};
R9a=function(a,b){if(a.policy.Vj){var c=P9a(a.G,b);b||c||(c=c$a(a));c=c||a.K.j[0]}else b?a.B=a.manifest.j[b]:(c=g.Cb(a.K.j,function(d){return!!d.Yb&&d.Yb.isDefault}))||(c=c$a(a)),c=c||a.K.j[0];
a.B=a.manifest.j[c.id];rZ(a)};
d$a=function(a,b){for(var c=0;c+1<a.D.length&&a.D[c].video.quality==="tiny";)c++;var d=EY(a.Da)/a.policy.Z;return wZ(a,b.info)+wZ(a,a.D[c])>d};
rZ=function(a){if(!a.B||!a.policy.D&&!a.B.info.Yb){var b=a.K.j;a.B&&(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(b.length>1){var c=!1;if(c=a.policy.Zc?!0:a.j.isLocked()?a.j.j<240:d$a(a,a.B))a.B=a.manifest.j[g.zb(b).id]}}};
tZ=function(a){if(!a.nextVideo||!a.policy.D)if(a.j.isLocked())a.nextVideo=a.j.j<=360?a.manifest.j[a.D[0].id]:a.manifest.j[g.zb(a.D).id],a.logger.debug(function(){return"Select max fmt: "+dK(a.nextVideo.info)});
else{for(var b=Math.min(a.Z,a.D.length-1),c=EY(a.Da),d=wZ(a,a.B.info),e=c/a.policy.Y-d;b>0&&!(wZ(a,a.D[b])<=e);b--);for(var f=c/a.policy.Z-d;b<a.D.length-1&&!(wZ(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: "+dK(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+VO(a.j)});
a.Z=b}};
S9a=function(a){var b=a.policy.Y,c=EY(a.Da),d=c/b-wZ(a,a.B.info);b=g.Db(a.D,function(e){return wZ(this,e)<d},a);
b<0&&(b=0);a.Z=b;a.nextVideo=a.manifest.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+dK(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
T9a=function(a){if(a.ib.length){var b=a.ib,c=function(d,e){if(d.info.sb==="f"||b.includes(aK(d.info,a.manifest.hc)))return d;for(var f={},h=0;h<e.length;f={tP:void 0,ZT:void 0},h++){var l=a.manifest.j[e[h].id];if(b.includes(aK(l.info,a.manifest.hc))){var m=d.info.sb,n=l.info.sb;if(m===n||oK()){if(d.info.j!==l.info.j)return a.Aa.oa("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.tP=d.info.itag;f.ZT=l.info.itag;a.Aa.oa("ombifa",{f:f.tP,t:f.ZT});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
p.tP+" to "+p.ZT+" based on prefetched media."}}(f));
a.Oa=!0;return l}a.Aa.oa("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.Aa.oa("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.K.videoInfos);a.B=c(a.B,a.K.j)}};
wZ=function(a,b){if(!a.La[b.id]){var c=a.manifest.j[b.id].index.pY(a.Ha,15);c=b.Dw&&a.C&&a.C.index.isLoaded()?c||b.Dw:c||b.ub;a.La[b.id]=c}c=a.La[b.id];a.Wa.has(b.itag)&&(c*=1.5);return c*=Math.max(1,a.Ya.jh()||0)};
e$a=function(a,b){a=dba(a.manifest.j,function(c){return c.info.itag===b});
if(!a)throw Error("Itag "+b+" from server not known.");return a};
f$a=function(a){var b=[];if(a.j.reason==="m"||a.j.reason==="s")return b;if(ITa(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};
W9a=function(a,b){var c;return iRa(a.j,b)&&(!a.G.j||!a.j.isLocked()||((c=a.nextVideo)==null?void 0:c.info.id)===a.G.j)};
c$a=function(a){var b=g.Cb(a.K.j,function(d){return d.audio.j}),c=g.Cb(a.K.j,function(d){return!d.audio.j});
if(!b)return null;if(!a.policy.SF)return c;a.policy.cC&&b&&(a.Aa.oa("drcwr",{d:b.itag,dd:b.approxDurationMs,nd:c?c.itag:"",ndd:(c==null?0:c.approxDurationMs)?c.approxDurationMs:""}),c&&Math.abs(c.approxDurationMs-b.approxDurationMs)>1E3&&(b=c));return b};
g$a=function(a){var b=a===void 0?{}:a;a=b.pj===void 0?!1:b.pj;var c=b.lk===void 0?!1:b.lk;b=b.jt===void 0?!1:b.jt;return a?b?3:2:c?-1:1};
i$a=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Ha=c;this.D=this.B=0;this.Kf=null;this.ra=new Set;this.Y=[];this.indexRange=this.initRange=null;this.Z=new xK;this.va=this.Da=!1;this.wd={Tqb:function(){return d.C},
pqb:function(){return d.chunkSize},
kqb:function(){return d.N},
jqb:function(){return d.K}};
(b=h$a(this))?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.N=b.ck,this.K=b.civ):(this.chunkSize=a.ZB,this.C=0,this.N=g.zD(16),this.K=g.zD(16));this.G=new Uint8Array(this.chunkSize);this.N&&this.K&&(this.crypto=new H8a(this.N,this.K))};
h$a=function(a){if(a.policy.tf&&a.policy.PC)for(var b=g.v(a.policy.tf),c=b.next(),d={};!c.done;d={GO:void 0,XO:void 0},c=b.next())if(c=g.sA(c.value),d.GO=+c.clen,d.XO=+c.csz,d.GO>0&&d.XO>0&&a.policy.D===c.docid&&a.j.info.id===c.fmtid&&a.j.info.lastModified===+c.lmt)return a={},a.clen=d.GO,a.csz=d.XO,a.ck=c.ck,a.civ=c.civ,a};
xZ=function(a){return!!a.Kf&&aQ(a.Kf)};
n$a=function(a,b){if(!xZ(a)&&!a.Na()){if(!(a.Da||(a.Da=!0,a.C>0))){var c=j$a(a);c=wWa(a.policy.D,a.j.info,yZ(a),c,a.policy.eb);k$a(a,c)}if(b.info.type===1){if(a.Kf){zZ(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=YP(0,b.j.totalLength)}else if(b.info.type===2)a.Kf&&a.Kf.type===1||zZ(a,Error("Woffle: Index before init")),a.indexRange=YP(a.initRange.end+1,b.j.totalLength);else if(b.info.type===3){if(!a.Kf){zZ(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(a.Kf.type===3&&!dQ(a.Kf,b.info)&&(a.Y=[],b.info.Qa!==ESa(a.Kf)||b.info.Tb!==0))return;if(b.info.Ue){c=g.v(a.Y);for(var d=c.next();!d.done;d=c.next())l$a(a,d.value);a.Y=[]}else{a.Y.push(b);a.Kf=b.info;return}}else{zZ(a,Error("Woffle: Unexpected slice type"));return}a.Kf=b.info;l$a(a,b);m$a(a)}};
l$a=function(a,b){var c=0,d=qN(b.j);if(a.D<a.C){c=a.C*a.chunkSize;var e,f=(((e=b.info.range)==null?void 0:e.start)||0)+b.info.Tb;c-=f;if(c>=d.length)return;if(c<0)throw Error("Missing data");a.D=a.C;a.B=0}for(e={};c<d.length;e={TM:void 0})if(e.TM=Math.min(d.length-c,a.G.byteLength-a.B),f=new Uint8Array(d.buffer,d.byteOffset+c,e.TM),a.G.set(f,a.B),a.B+=e.TM,c+=e.TM,a.B===a.G.length){if(b.info===a.Kf&&xZ(a)&&c===d.length)break;e=j$a(a);e=wWa(a.policy.D,a.j.info,yZ(a),e,a.policy.eb,a.D,a.G,a.crypto);
a.ra.add(e);k$a(a,e);a.Na()||(e=j$a(a),a.Ha(yZ(a),e!==void 0?(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}};
m$a=function(a){if(xZ(a))if(a.Kf&&a.indexRange)if(a.B){var b=new Uint8Array(a.G.buffer,0,a.B),c=o$a(a),d=a.policy.D;Promise.all(a.ra).then(function(){var e=wWa(d,a.Kf.j.info,yZ(a,!0),c,a.policy.eb,a.D,b,a.crypto);k$a(a,e,!0)})}else zZ(a,new AZ("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else zZ(a,new AZ("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
j$a=function(a){return{downloadedEndTime:Math.round(a.Kf?a.Kf.Pf:0),maxKnownEndTime:Math.round(a.j.index.Yt()),averageByteRate:Math.round(a.j.info.Dw)}};
o$a=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.Yt()),averageByteRate:Math.round(a.j.info.Dw)}};
yZ=function(a,b){b===void 0||!b||a.indexRange&&a.initRange&&a.Kf||zZ(a,new AZ("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?"+qA(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:a.j.info.ub*8,lastModified:String(a.j.info.lastModified),initRange:(d=
a.initRange)==null?void 0:ASa(d),indexRange:(e=a.indexRange)==null?void 0:ASa(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};
k$a=function(a,b,c){c=c===void 0?!1:c;b.then(function(d){a.ra.delete(b);(c||d===4)&&a.Z.resolve(d)},function(d){a.Z.reject(d)})};
zZ=function(a,b){g.gS(a.policy.D)!==4&&(g.hS(a.policy.D,4),g.nE(b),a.Z.reject(new AZ(b.message)))};
AZ=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.j=b===void 0?!1:b};
p$a=function(a){a=g.EP(a,1886614376);for(var b=g.v(a),c=b.next();!c.done;c=b.next());return g.$r(a,function(d){return PRa(d)})};
q$a=function(a){var b=bs(a,function(e,f){return e+f.length},0);
b=new Uint8Array(b);var c=0;a=g.v(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
r$a=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.B=c;this.D=d;this.C=e;this.Az=f};
BZ=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.C=[];this.Ne=!1;this.B=null;if((b==null?void 0:b.toLowerCase())==="webm"||a.length===16)this.Ne=!0};
t$a=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(e<=1)break;if(d.getUint32(c+4)===1886614376){var f=32;if(d.getUint8(c+8)>0){var h=d.getUint32(c+28);f+=h*16+4}var l=d.getUint32(c+f-4);try{var m=s$a(b.subarray(c+f,c+f+l));if(m!==null){var n=m;break a}}catch(p){}}c+=e}n=null;break a}catch(p){n=null;break a}n=void 0}if(n!=null)for(b=xi(jj(n,7)),b==null||a.Ne||(a.cryptoPeriodIndex=b),b=xi(jj(n,10)),b!=null&&b>0&&!a.Ne&&(a.j=b),n=Rj(n,
2,ej(n.qa)&34?mea:nea,2),n=g.v(n),b=n.next();!b.done;b=n.next())a.C.push(g.Bg(Kg(b.value),4))};
u$a=function(a){return isNaN(a.cryptoPeriodIndex)?g.Bg(a.initData):""+a.cryptoPeriodIndex};
CZ=function(a,b,c){var d=c===void 0?{}:c;c=d.videoDuration===void 0?0:d.videoDuration;var e=d.QG===void 0?void 0:d.QG;d=d.pK===void 0?!1:d.pK;this.videoId=a;this.status=b;this.videoDuration=c;this.QG=e;this.pK=d};
v$a=function(a,b,c,d,e){this.videoId=a;this.sP=b;this.B=c;this.bytesDownloaded=d;this.j=e};
DZ=function(a){this.j=a;this.offset=0};
w$a=function(a){if(a.offset>=a.j.totalLength)throw Error();return sN(a.j,a.offset++)};
x$a=function(a,b){b=b===void 0?!1:b;var c=w$a(a);if(c===1){b=-1;for(c=0;c<7;c++){var d=w$a(a);b===-1&&d!==255&&(b=0);b>-1&&(b=b*256+d)}return b}d=128;for(var e=0;e<6&&d>c;e++)c=c*256+w$a(a),d*=128;return b?c:c-d};
y$a=function(a){try{var b=x$a(a,!0),c=x$a(a,!1);return{id:b,size:c}}catch(d){return{id:-1,size:-1}}};
z$a=function(a){for(var b=new DZ(a),c=-1,d=0,e=0;!d||!e;){var f=y$a(b),h=f.id;f=f.size;if(h<0)return;if(h===176){if(f!==2)return;d=b.Jm()}else if(h===186){if(f!==2)return;e=b.Jm()}h===374648427?c=b.Jm()+f:h!==408125543&&h!==174&&h!==224&&b.skip(f)}b=rN(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new nN([b]);oN(d,a);return d};
B$a=function(a,b,c){var d=this;this.Aa=a;this.policy=b;this.K=c;this.logger=new g.FQ("dash");this.B=[];this.j=null;this.Da=-1;this.Y=0;this.Ga=NaN;this.ra=0;this.C=NaN;this.Z=this.Oa=0;this.Xa=-1;this.La=this.G=this.D=this.Ha=null;this.Ya=this.Wa=NaN;this.N=this.va=this.eb=this.ib=null;this.rb=!1;this.Sa=this.timestampOffset=0;this.wd={wY:function(){return d.B}};
if(this.policy.D){var e=this.K,f=this.policy.D;this.policy.eb&&a.oa("atv",{ap:this.policy.eb});this.N=new i$a(this.policy,e,function(h,l,m){EZ(a,new CZ(d.policy.D,2,{QG:new v$a(f,h,e.info,l,m)}))});
this.N.Z.promise.then(function(h){d.N=null;h===1?EZ(a,new CZ(d.policy.D,h)):d.Aa.oa("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof AZ&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.Aa.oa("offlinenwerr",{em:l}),A$a(d),EZ(a,new CZ(d.policy.D,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.Aa.oa("dldbwerr",{em:l}),A$a(d),EZ(a,new CZ(d.policy.D,4,{pK:!0})))})}};
C$a=function(a){return a.B.length?a.B[0]:null};
J9a=function(a,b){return a.B.some(function(c){return c.info.Qa===b})};
J$a=function(a,b,c,d){d=d===void 0?0:d;if(a.G){var e=a.G.Tb+a.G.B;if(c.info.Tb>0)if(c.info.Qa===a.G.Qa&&c.info.Tb<e){if(c.info.Tb+c.info.B<=e)return;c=eTa(c,e-c.info.Tb)[1]}else if(c.info.Qa>=0&&a.G.Qa>=0&&!dQ(a.G,c.info))throw new g.FB("improper_continuation",a.G.Tc(),c.info.Tc());e=a.G;var f=c.info;(e.Qa!==f.Qa&&f.Qa!==e.Qa+1||e.type!==f.type?0:dQ(e,f)||(Math.abs(e.Xe-f.Xe)<=1E-6&&e.Qa===f.Qa?0:DSa(e,f)))||D$a(a,"d")}else if(c.info.Tb>0)throw new g.FB("continuation_of_null",c.info.Tc());a.G=c.info;
a.K=c.info.j;if(c.info.Tb===0){if(a.j)if(!a.Aa.isOffline()||a.policy.Rk)a.Aa.oa("slice_not_fully_processed",{buffered:a.j.info.Tc(),push:c.info.Tc()});else throw new g.FB("slice_not_fully_processed",a.j.info.Tc(),c.info.Tc());FZ(a);a.Oa=d}else{if(a.Oa&&d&&a.Oa!==d)throw a=new g.FB("lmt_mismatch",c.info.Qa,a.Oa,d),a.level="WARNING",a;!c.info.j.Sm()&&a.D&&(d=c.info,e=a.D.ij,d.C="updateWithEmsg",d.Qa=e)}if(a.j){d=rQ(a.j,c);if(!d)throw new g.FB("failed_to_merge",a.j.info.Tc(),c.info.Tc());a.j=d}else a.j=
c;a:{c=g.YJ(a.j.info.j.info);if(a.j.info.type!==3){if(!a.j.info.Ue)break a;a.j.info.type===6?E$a(a,b,a.j):F$a(a,a.j);a.j=null}for(;a.j;){d=a.j.j.totalLength;if(a.Da<=0&&a.Y===0){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8<h.totalLength;){var m=VKa(h,l),n=VKa(h,l+4);l+=m||1;if(n===1836019558)f=l;else if(n===1835295092){e=l;break}}e<0&&(f=-1)}else{h=new DZ(h);for(m=l=!1;;){n=h.Jm();var p=y$a(h),q=p.id;p=p.size;if(!(q>0))break;if(q!==408125543)if(q===524531317)l=!0,p>=0&&(e=h.Jm()+p,m=!0);else{if(l&&(q===
160||q===163)&&(f<0&&(f=n),m))break;q===163&&(f=Math.max(0,f),e=h.Jm()+p);if(q===160){f<0&&(e=f=h.Jm()+p);break}h.skip(p)}}f<0&&(e=-1)}if(f<0)break;a.Da=f;a.Y=e-f}if(a.Da>d)break;a.Da?(d=G$a(a,a.Da),d.G&&H$a(a,d),E$a(a,b,d),I$a(a,d),a.Da=0):a.Y&&(d=G$a(a,a.Y<0?Infinity:a.Y),a.Y-=d.j.totalLength,I$a(a,d))}}a.j&&a.j.info.Ue&&(I$a(a,a.j),a.j=null)};
F$a=function(a,b){!b.info.j.Sm()&&b.info.Tb===0&&(g.YJ(b.info.j.info)||b.info.j.info.Ne())&&lTa(b);if(b.info.type===1)try{H$a(a,b),K$a(a,b)}catch(e){g.mE(e);var c=eQ(b.info);c.hms="1";a.Aa.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.gQ(b);a.N&&n$a(a.N,b);if(c.qg()&&a.policy.C)a:{a=a.Aa.manifest;b=b.info.clipId;c=$J(c.info,a.hc);if(b){var d=JTa(a,c);if(a.Sa[d])break a;a.Sa[d]=b}a.Oa.push(c)}};
A$a=function(a){var b;(b=a.N)==null||b.dispose();a.N=null};
L$a=function(a){var b=a.B.reduce(function(c,d){return c+d.j.totalLength},0);
a.j&&(b+=a.j.j.totalLength);return b};
M$a=function(a){if(a.va&&!a.policy.iq){var b=a.Aa;b.manifest.isManifestless&&CQ(b.manifest,a.va.Qa,!!a.K.info.video)}a.va=null;a.D=null;a.G=a.ib;a.C=a.G?a.C-a.ra:NaN;FZ(a)};
G$a=function(a,b){var c=a.j;b=Math.min(b,c.j.totalLength);if(b===c.j.totalLength)return a.j=null,c;c=eTa(c,b);a.j=c[1];return c[0]};
H$a=function(a,b){var c=qQ(b);if(JEa(b.info.j.info)&&b.info.j.info.video.primaries==="bt2020"){var d=new FP(c);HP(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,c.getUint8(d)===129&&c.getUint8(d+1)===1&&c.setUint8(d+1,9))}d=b.info.j.info;VJ(d)&&!JEa(d)&&(d=qQ(b),(new FP(d)).Bo(),LP([408125543,374648427,174,224],21936,d));b.info.j.info.Cg()&&(d=b.info.j,d.info&&d.info.video&&d.info.video.projectionType==="MESH"&&!d.B&&(g.YJ(d.info)?d.B=$Ra(c):d.info.Ne()&&(d.B=jSa(c))));b.info.j.info.Ne()&&
b.info.Cg()&&(c=qQ(b),(new FP(c)).Bo(),LP([408125543,374648427,174,224],30320,c)&&LP([408125543,374648427,174,224],21432,c));if(a.policy.ZC&&b.info.j.info.Ne()){c=qQ(b);var e=new FP(c);if(HP(e,[408125543,374648427,174,29637])){d=KP(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.Kh()&&g.YJ(b.info.j.info)){d=qQ(b);c=g.xP(d,0,1701606260);f=g.xP(d,0,1836476516);if(c&&f){c.skip(2);var h=oP(c),l=qP(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(rP(c)),e.push(rP(c)),
m.push(oP(c)),n.push(oP(c));else for(h=0;h<l;++h)d.push(pP(c)),e.push(pP(c)),m.push(oP(c)),n.push(oP(c));c=g.yP(f);c=new XRa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.YJ(b.info.j.info))for(d=qQ(b),e=g.xP(d,0,1701082227);e;)f=e,f.type=1936419184,f.data.setUint32(f.offset+4,1936419184),e=g.xP(d,e.offset+e.size,1701082227);a.rb=!0;b.info.j.D=c}}b.info.j.Sm()||b.info.j.j||b.info.j.indexRange||nTa(b)};
E$a=function(a,b,c){if(c.info.j.Sm()){if(a.rb&&N$a(c)&&(b=qQ(c),b=g.xP(b,0,1953658222))){b.skip(1);var d=nP(b)<<16|oP(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=qP(b);m<2||(e&&b.skip(4),f&&b.skip(4),e=qP(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.Ha&&!!a.Ha.K.D)if(b=c.info.Cg())b=jTa(c),h=a.Ha,QX?(l=1/b,b=GZ(a,b)>=GZ(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&N$a(c)&&(b=a.Ha,QX?(l=jTa(c),h=1/l,l=GZ(a,l),b=GZ(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,ZRa(qQ(c),b))}else{h=!1;a.D||(lTa(c),c.B&&(a.D=c.B,h=!0,f=c.info,d=c.B.ij,f.C="updateWithEmsg",f.Qa=d,f=c.B,f.C&&(d=a.K.index,d.B=!f.C,d.C="emsg"),f=c.info.j.info,d=qQ(c),g.YJ(f)?eSa(d,1701671783):f.Ne()&&LP([408125543],307544935,d)));a:if((f=sQ(c,a.policy.Qb))&&kTa(c))l=O$a(a,c),a.Z+=l,f-=l,a.ra+=f,a.C=a.policy.Vk?a.C+f:NaN;else{if(a.policy.jw){if(d=m=a.Aa.vr(fTa(c),1),a.C>=0&&c.info.type!==6){if(a.policy.Vk&&isNaN(a.Wa)){g.nE(new g.FB("Missing duration while processing previous chunk",
c.info.Tc()));a.Aa.isOffline()&&!a.policy.Rk||P$a(a,c,d);D$a(a,"m");break a}var n=m-a.C,p=n-a.Z,q=c.info.Qa,r=a.La?a.La.Qa:-1,t=a.Ya,u=a.Wa,w=a.policy.Cp&&n>a.policy.Cp,A=Math.abs(p)>10,C=Math.abs(a.C-d)<1E-7;if(Math.abs(p)>1E-4){a.Sa+=1;var F=(e=a.D)==null?void 0:URa(e);e={audio:""+ +a.Kh(),sq:q.toFixed(),sliceStart:m,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:u,totalDrift:(n*1E3).toFixed(),segDrift:(p*1E3).toFixed(),skipRewrite:""+ +(w||A)};if(F==null?0:F.length)e.adCpn=F[0];a.Aa.handleError("qoe.avsync",
e);a.Xa=q}w||A||C||(d=a.C);e=O$a(a,c,m);f-=e;a.Z=n+e;a.policy.B&&(p&&!C||e)&&(n=(l=a.D)==null?void 0:URa(l),a.Aa.oa("discontinuityRewrite",{adCpn:(n==null?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Qa,originalStartTime:m,rewrittenStartTime:d,startTimeAdjustment:d-m,segDrift:(p*1E3).toFixed(),originalDuration:f+e,rewrittenDuration:f,durationAdjustment:e}))}}else d=isNaN(a.C)?c.info.startTime:a.C;P$a(a,c,d)&&(a.ra+=f,a.C=d+f,a.policy.Bp&&a.Sa>=a.policy.Bp&&(a.Sa=0,a.Aa.Hq({resetForRewrites:"count"})))}a.La=
c.info;a.Wa=iTa(c);c.C>=0&&(a.Ya=c.C);if(h&&a.D){h=Q$a(a,!0);NSa(c.info,h);a.j&&NSa(a.j.info,h);b=g.v(b);for(l=b.next();!l.done;l=b.next())l=l.value,e=void 0,a.policy.K&&l.Qa!==((e=a.D)==null?void 0:e.ij)||NSa(l,h);(c.info.Ue||a.j&&a.j.info.Ue)&&c.info.type!==6||(a.va=h,b=a.Aa,b.manifest.isManifestless&&R$a(b,h,null,!!a.K.info.video),a.policy.mf||S$a(a))}}K$a(a,c);a.timestampOffset&&hTa(c,a.timestampOffset)};
I$a=function(a,b){if(b.info.Ue){a.ib=b.info;if(a.D){var c=a.D,d=Q$a(a,!1),e=null;if(a.D.tF()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=URa(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.v(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.v(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.v(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 r$a(e,f,h,l,g.VRa(c),g.WRa(c))}a.Aa.XR(a.K,d,e);a.va||a.policy.mf||S$a(a);a.va=null}FZ(a)}a.N&&n$a(a.N,b);if(c=a.So())if(c=rQ(c,b,a.policy.Yl)){a.B.pop();a.B.push(c);return}a.B.push(b)};
FZ=function(a){a.j=null;a.Da=-1;a.Y=0;a.D=null;a.Ga=NaN;a.ra=0;a.va=null};
D$a=function(a,b){b={rst4disc:b,cd:a.Z.toFixed(3),sq:a.La?a.La.Qa:-1};a.C=NaN;a.Z=0;a.Xa=-1;a.La=null;a.Ya=NaN;a.Wa=NaN;a.eb=null;a.Aa.oa("mdstm",b)};
K$a=function(a,b){if(a.K.info.oe){if(b.info.j.info.Ne()){var c=new FP(qQ(b));if(HP(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=KP(c,!0);c=d!==16?null:iSa(c,d)}else c=null;d="webm"}else b.info.G=p$a(qQ(b)),c=q$a(b.info.G),d="cenc";c&&c.length&&(c=new BZ(c,d),a.policy.YD&&g.YJ(b.info.j.info)&&(d=gSa(qQ(b)))&&(c.B=d),c.Ne=b.info.j.info.Ne(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),b.B&&b.B.B&&(c.j=b.B.B),a.Aa.gy(c))}};
S$a=function(a){var b=a.D,c=SRa(b);c&&(c.startSecs+=a.Ga,a.Aa.WR(a.K,c,b.ij,b.tF()))};
Q$a=function(a,b){var c,d=a.D;if(c=SRa(d))c.startSecs+=a.Ga;return new lP(d.ij,a.Ga,b?d.Rj:a.ra,d.ingestionTime,"sq/"+d.ij,void 0,void 0,b,c)};
P$a=function(a,b,c){if(!gTa(b,c))return b=eQ(b.info),b.smst="1",a.Aa.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Ga)&&(a.Ga=c);return!0};
O$a=function(a,b,c){var d=0;if(b.info.j.info.Ne()&&!kTa(b))return 0;if(a.Ha&&!a.Kh()){var e=0;c&&g.YJ(b.info.j.info)?e=c-a.C:b.info.j.info.Ne()&&(e=a.Z);var f=b.info.Qa;c=sQ(b,a.policy.Qb);var h=a.Ha;var l=h.Xa;h=h.Z;var m=Math.abs(h-e)>.02;if((f===l||f>l&&f>a.Xa)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.YJ(b.info.j.info))ZRa(qQ(b),d);else if(b.info.j.info.Ne()&&(f=e-h,!g.YJ(b.info.j.info)&&(b.info.j.info.Ne(),d=new FP(qQ(b)),l=b.G?d:new FP(new DataView(b.info.j.j.buffer)),sQ(b,!0)))){var n=
f*1E3,p=QP(l);l=d.pos;d.pos=0;if(d.j.getUint8(d.pos)===160||RP(d))if(JP(d,160))if(KP(d,!0),JP(d,155)){if(f=d.pos,m=KP(d,!0),d.pos=f,n=n*1E9/p,p=MP(d),n=p+Math.max(-p*.7,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;f>=0;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=sQ(b,a.policy.Qb);d=c-d}d&&b.info.j.info.Ne()&&a.Aa.oa("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d};
N$a=function(a){return a.info.j.Sm()&&a.info.Qa===a.info.j.index.Bd()};
GZ=function(a,b){b=(b=b===void 0?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.K.D&&b&&(b+=a.K.D.j);return b+a.getDuration()};
T$a=function(a,b){b<0||(a.B.forEach(function(c){hTa(c,b)}),a.timestampOffset=b)};
GY=function(a,b,c,d,e){TY.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.dg=d;this.lastError=null;this.Fg=function(){f.Na()||(f.dg.bd.has(f.formatId)?(f.isComplete()||f.j.start(),OX(f.dg,f.formatId)&&f.yB(2),f.dg.Sg(f.formatId)&&(f6a(f.dg,f.formatId)?f.Ic(4):(f.lastError="net.closed",f.Ic(5)))):(f.lastError="player.exception",f.Ic(5)))};
this.j=new g.Dv(function(){f.isComplete()||(f.lastError="net.timeout",f.Ic(5))},this.policy.XD);
this.j.start();a6a(this.dg,this.formatId,this.Fg);g.dg(this.Fg)};
HZ=function(a,b,c,d){g.I.call(this);var e=this;this.Aa=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.FQ("dash");this.C=[];this.va=[];this.B=this.Sb=null;this.La=!1;this.Oa=this.Sa=0;this.K=-1;this.ra=!1;this.Ha=-1;this.Da=this.Ga=null;this.Y=NaN;this.wd={NP:function(){return e.D},
Sqb:function(){return e.C},
nqb:function(){return e.Z}};
this.D=new B$a(a,b,c);this.policy.C&&(this.Z=new a8a(this.D,this.Aa.getManifest(),this.policy,function(f){e.policy.zp&&e.Aa.oa("buftl",f)}));
this.ub=c.info.ub;this.N=this.policy.Xa?!1:c.RA();this.isManifestless=c.RA();this.G=this.N;g.M(this,this.Ga)};
IZ=function(a,b,c){c=c===void 0?!1:c;b&&QX&&T$a(a.D,b.ZP());if(!c){var d;(d=a.Z)==null||i8a(d)}a.Sb=b;(b=a.Z)!=null&&(b.Sb=a.Sb)};
JZ=function(a){var b=a.Sb&&a.Sb.qA();if(a.policy.qw){if((a=a.Z)==null)a=void 0;else{var c;a=(c=a.D)==null?void 0:c.info}return a||null}return b};
U$a=function(a){for(var b={},c=0;c<a.va.length;c++)b["r"+c]=a.va[c];return b};
V$a=function(a,b){isNaN(a.Y)||a.Aa.oa("aswr",{sq:b.info.kb[0].Qa,id:b.info.kb[0].j.info.itag,xtag:b.info.kb[0].j.info.j,ep:Date.now()-a.Y});a.C.push(b);a.B=g.zb(b.info.kb);a.va.push(b.Tc());a.va.length>4&&a.va.shift()};
W$a=function(a,b){if(b.Kl()){var c=b.Qk();c=g.v(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.B&&b instanceof GY&&a.Aa.oa("omblss",{s:d.info.Tc()}),KZ(a,b.info.kb,d,b.WP())}};
KZ=function(a,b,c,d){d=d===void 0?0:d;isNaN(a.Y)||(a.Aa.oa("aswm",{sq:b[0].Qa,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:X$a(a,c);break;case 4:var e=c.info.j,f=e.LV(c),h;((h=a.B)==null?0:h.type===4)&&LSa(c.info,a.B)&&(a.B=e.hC(a.B).pop());c=g.v(f);for(e=c.next();!e.done;e=c.next())KZ(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,e.Ha||(e.Ha=(0,g.iC)(),QK("fvb_r",e.Ha,e.j))):(e=a.timing,e.K||(e.K=(0,g.iC)(),QK("fab_r",e.K,e.j)));
J$a(a.D,b,c,d);a.policy.C&&Y$a(a);break;case 6:J$a(a.D,b,c,d),a.B=c.info}};
X$a=function(a,b){if(b.info.type===1)if(b.info.j.info.video){var c=a.timing;c.La||(c.La=(0,g.iC)(),QK("vis_r",c.La,c.j))}else c=a.timing,c.Z||(c.Z=(0,g.iC)(),QK("ais_r",c.Z,c.j));F$a(a.D,b);a=a.Aa;a.videoTrack.j.qg()&&a.audioTrack.j.qg()&&a.policy.C&&!a.manifest.hc&&(b=a.audioTrack.getDuration(),c=a.videoTrack.getDuration(),Math.abs(b-c)>1&&a.oa("trBug",{af:""+$J(a.audioTrack.j.info,!1),vf:""+$J(a.videoTrack.j.info,!1),a:""+b,v:""+c}))};
NY=function(a){return C$a(a.D)};
Y$a=function(a){a.C.length?a.B=g.zb(g.zb(a.C).info.kb):a.D.B.length?a.B=a.D.So().info:a.B=JZ(a)};
LZ=function(a,b){var c={jd:[],Ro:[]},d;if((a=a.Z)==null)a=void 0;else{h8a(a,a.jd,"og");f8a(a,b);h8a(a,a.jd,"trim");var e=g8a(a);b=e.jd;e=e.oy;for(var f=[],h=0;h<e.length;h++){var l=e[h];f.push({formatId:$J(l.info.j.info,a.manifest.hc),Pj:l.info.Pj,sequenceNumber:l.info.Qa+a.C,DJ:{Ah:((a.policy.Sa&&l.C!==-1?l.C:l.info.startTime)+a.timestampOffset)*1E3,CE:(a.policy.Sa&&l.D!==-1?l.D:l.info.duration)*1E3,Ev:1E3},SZ:l.info.B})}a={jd:b,Ro:f}}return(d=a)!=null?d:c};
JY=function(a,b,c){c=c===void 0?!1:c;if(a.Sb){var d=a.Sb.Ee(),e=iK(d,b),f=NaN,h=JZ(a);h&&(f=iK(d,h.j.index.getStartTime(h.Qa)));if(e===f&&a.B&&a.B.B&&Z$a($$a(a),0))return b}a=aab(a,b,c);return a>=0?a:NaN};
KY=function(a,b,c){a.j.qg();var d=aab(a,b);if(d>=0)return d;if((d=a.Z)!=null){var e=b;d.policy.Bc&&c!=null&&c.MF||(d.oy=[]);f8a(d,!0);d.B=b8a(d.jd,e*1E3)}c=Math;d=c.min;e=a.D;if(e.N)if(e=e.N,e.Kf&&e.Kf.type===3)e=e.Kf.startTime;else if(e.C>0){var f=e.j.index;f=g.Qb(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.j.index.getStartTime(f>=0?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=(h=a.Aa.Zf())==null?void 0:(l=kY(h,b))==null?void 0:l.clipId;a.B=a.j.Or(b,
void 0,c).kb[0]}else a.B=a.policy.Xa?null:a.j.Or(b).kb[0];MZ(a)&&a.Sb&&a.Sb.abort();a.Oa=0;return a.B?a.B.startTime:b};
l8a=function(a){a.N=!0;a.G=!0;a.K=-1;KY(a,Infinity)};
NZ=function(a){for(var b=0,c=g.v(a.C),d=c.next();!d.done;d=c.next())b+=PSa(d.value.info);return b+=L$a(a.D)};
PZ=function(a,b){b=b===void 0?!1:b;var c=a.Aa.getCurrentTime(),d=a.D.So(),e=(d==null?void 0:d.info.Pf)||0;a.policy.Jj&&(d==null?0:d.info.j.RA())&&!d.info.Ue&&(e=d.info.Xe);if(a.policy.j&&d&&d.info.clipId){var f,h=(((f=a.Aa.Zf())==null?void 0:iY(f,d.info.clipId))||0)/1E3;e+=h}if(!a.Sb)return a.policy.C&&b&&!isNaN(c)&&d?e-c:0;if((f=JZ(a))&&OZ(a,f))return f.Pf;f=a.Sb.Ee(!0);return b&&d?(b=0,a.policy.C&&(b=kK(f,e+.02)),b+e-c):kK(f,c)};
bab=function(a,b){if(a.C.length){if(a.C[0].info.kb[0].startTime<=b)return;IY(a)}for(var c=a.D,d=c.B.length-1;d>=0;d--)c.B[d].info.startTime>b&&c.B.pop();Y$a(a);a.B&&b<a.B.startTime&&(a.Oa=0,a.j.qg()?a.B=a.j.Or(b,!0).kb[0]:a.B=null)};
cab=function(a,b,c,d){IY(a);for(var e=a.D,f=null,h=e.B.length-1;h>=0;h--){var l=e.B[h];l.info.Qa>=b&&(e.B.pop(),e.C-=sQ(l,e.policy.Qb),f=l.info)}f&&(e.G=e.B.length>0?e.B[e.B.length-1].info:e.eb,e.B.length!==0||e.G||D$a(e,"r"));e.Aa.oa("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Qa:-1,sq:b,lastslc:e.G?e.G.Qa:-1,lastfraget:e.C.toFixed(3)});d>c?KY(a,d):a.B=a.j.xt(b-1,!1).kb[0]};
RZ=function(a,b){var c;for(c=0;c<a.C.length&&b!==a.C[c];c++);if(c===a.C.length)QZ(a,b);else{for(;c<a.C.length;)QZ(a,a.C.pop());var d=K9a(a);d&&d.j.Ax()&&Ys(b.info.kb,function(e){return MSa(e,d)})?(a.B=d,a.policy.B&&a.Aa.oa("cer",{lsr:"lsp",
lsp:d.Tc()})):(cQ(b.info.kb[0])?(a.B=b.fg&&b.fg.C?JSa(b.fg.C):ISa(b.info.kb[0]),a.policy.B&&a.Aa.oa("cer",{lsr:a.B.Tc(),lsp:d==null?void 0:d.Tc()})):(a.B=null,a.policy.B&&a.Aa.oa("cer",{lsr:"null",lsp:d==null?void 0:d.Tc()})),a.Aa.isOffline()&&!a.policy.Rk||QZ(a,b,!0))}};
OZ=function(a,b){if(!b)return!1;if(a.policy.j){var c;if((a=(c=a.Aa.Zf())==null?void 0:c.ea.getVideoData().clientPlaybackNonce)&&b.clipId!==a)return!1}return aQ(b)};
MZ=function(a){var b;!(b=a.j.info.sb==="f")&&(b=a.policy.D)&&(b=a.D,b=!!b.N&&xZ(b.N));if(b)return!0;b=JZ(a);if(!b)return!1;var c=OZ(a,b)&&b.Ue;return a.isManifestless&&a.Ha>0?c||b.Qa>=a.Ha:c};
SZ=function(a){var b;return MZ(a)||OZ(a,(b=a.D.So())==null?void 0:b.info)};
$$a=function(a){var b=[],c=JZ(a);c&&b.push(c);b=g.Jb(b,a.D.Zn());c=g.v(a.C);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.v(d.info.kb),f=e.next(),h={};!f.done;h={hH:void 0},f=e.next())h.hH=f.value,d.oQ&&(b=g.Mt(b,function(l){return function(m){return!LSa(m,l.hH)}}(h))),(cQ(h.hH)||h.hH.type===4)&&b.push(h.hH)}a.B&&!CSa(a.B,g.zb(b),a.B.j.Sm())&&b.push(a.B);
return b};
Z$a=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!DSa(a[b-1],a[b]))return!1;return!0};
aab=function(a,b,c){c=c===void 0?!1:c;if(!a.B||!a.B.B)return NaN;a=$$a(a);a:{b+=.02;var d=c;d=d===void 0?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.Xe<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return b<0?NaN:Z$a(a,c?b:0)?a[b].startTime:NaN};
TZ=function(a){return!(!a.B||a.B.j===a.j)};
dab=function(a){return TZ(a)&&a.j.qg()&&a.B.j.info.ub<a.j.info.ub};
eab=function(a,b,c){if(a.policy.Jj)return PZ(a,!0)<c;var d=K9a(a);return d&&!OZ(a,d)?d.Pf>b&&d.Pf<b+c:!1};
K9a=function(a){var b=a.D.So();return b?b.info:JZ(a)};
IY=function(a){for(var b=g.v(a.C),c=b.next();!c.done;c=b.next())QZ(a,c.value);a.C=[];a.B=null};
fab=function(a,b,c){b.oQ&&((c===void 0?0:c)||!b.info.kb[0].j.Ax())&&(a.logger.debug(function(){return"Rolling back request with segNum "+b.info.kb[0].Qa}),M$a(a.D))};
QZ=function(a,b,c){fab(a,b,c===void 0?!1:c);b.dispose()};
gab=function(a){return!!a.B&&a.B.Qa!==-1&&a.B.Qa<a.j.index.Wn()};
hab=function(a){var b=a.B;b&&b.Qa===-1&&(a=a.D.So())&&cQ(a.info)&&(a=a.info.Qa,b.C="updateLastSliceRequested",b.Qa=a)};
iab=function(a){return Ys(a.C,function(b){return b.NB})};
jab=function(a,b){a.B&&(a.B.j=b)};
UZ=function(a){var b=NY(a),c=a.Aa.Zf();if(a=b&&c&&!a.policy.zB&&b.info.clipId){a:if(b=b.info.clipId,c.BT&&c.Tw&&c.Tw!==b)c=!1;else{if(b=c.gk.get(b))if(b=b.getId().split(","),b.length>1)for(a=0;a<b.length;a++){var d=a<b.length-1?b[a+1]:"";if(c.Ek.has(b[a])){c=b[a]===c.Wb&&!c.Ek.has(d);break a}}c=!0}a=!c}return a?!0:!1};
kab=function(a){return a.Sb?a.Sb.JF():!1};
lab=function(a,b){var c=NY(a);return c&&c.info.type!==6?!L9a(b,a,c.info.Qa):!1};
mab=function(a){var b=JZ(a),c,d=(c=a.Sb)==null?void 0:c.Ee();c=NaN;b&&d&&MZ(a)&&(c=iK(d,(b.Xe+b.Pf)/2));return!isNaN(c)};
nab=function(a){var b=a===void 0?{}:a;a=b.lk;var c=b.pj;var d=b.Sj;var e=b.Bd;b=b.Ww;this.lk=a;this.pj=c;this.Sj=d;this.Bd=e;this.Ww=b};
B8a=function(a,b){if(b<0)return!0;var c=a.Bd();return b<c||b===c&&!a.lk||b===c&&(a=a.Ww())&&b===a.Qa?!0:!1};
C8a=function(a,b,c){if(!B8a(a,b))return 0;if(!a.pj||!isNaN(c)&&c>0)return 2;if(b<0)return 1;c=a.Bd();return b<c||b===c&&(a=a.Ww())&&b===a.Qa&&!a.pending?2:1};
VZ=function(a,b,c){g.I.call(this);this.Aa=a;this.policy=b;this.Pc=c;this.B=0;this.j=!1;this.delay=new g.Dv(this.C,this.policy.Xf,this);g.M(this,this.delay)};
oab=function(a,b){iP(b.j)||(a.resource=b,a.B=0,g.Ev(a.delay))};
pab=function(a,b,c,d,e){var f=this;this.Aa=a;this.policy=b;this.Pc=c;this.resource=d;this.Uj=e;this.done=!1;this.onTimeout=function(){f.done||(f.done=!0,f.onError("net.timeout"))};
this.size=Math.ceil(Math.min(1E5,.1*iR(this.Pc)));this.timing=new RY(this,{Pc:this.Pc,fA:this.size,Br:!0,ov:function(){},
sJ:this.policy.B});a=vSa(this.resource,this.Uj,this.policy).base.clone();gP(a);a.path!=="/videogoodput"&&(a.path="/videogoodput",a.url="");this.location=new SP(a);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=VY(this.location,this.policy.N,this.timing,this.policy.jt,{});setTimeout(this.onTimeout,1E4)};
qab=function(a,b,c){var d=a.bx();if(a.isComplete()||!d||a.info.resource.Uj(b,c)||d<2)return 0;a=TP(c,wSa(a.info.resource,!0,b));return a.j||a.timedOut||a.started?0:2};
rab=function(a,b,c){if(!(b.Pv&&a.isComplete()&&a.canRetry()&&a.info.resource.Uj(b,c)))return 0;a=TP(c,wSa(a.info.resource,!1,b));return a.B+b.Pv*tSa(a,!0)>(0,g.iC)()?0:1};
WZ=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){t=t===void 0?null:t;g.I.call(this);var u=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.wM=r;this.Bi=t;this.ra=!1;this.WG="";this.Il=null;this.lh=NaN;this.va=!1;this.B=null;this.Bh=this.Z=NaN;this.qq=this.K=0;this.logger=new g.FQ("dash");this.wd={OQ:function(w,A){return u.OQ(w,A)}};
this.policy.xq>0&&(this.WG=g.zD(this.policy.xq));this.policy.Xf&&(this.N=new VZ(this.Aa,this.policy,this.schedule),g.M(this,this.N))};
uab=function(a,b,c){var d=b.B?b.B.j.resource:b.j.resource;var e=a.D,f;(f=!a.policy.VG)||(f=hP(d.j)===hP(d.C));f?d=!1:(e=TP(e,hP(d.C)),f=6E4*Math.pow(e.D,1.6),(0,g.iC)()<e.B+f?d=!1:(e.B=(0,g.iC)(),e.D+=1,d.j=d.C.clone(),d=!0));d&&a.Aa.oa("hostch",{},!0);if(sab(a,b,c)){if(b.N)a.manifest.isLive?(c=a.manifest.gf&&a.manifest.C?b.j.xt(a.manifest.gf,!1):b.j.Or(Infinity),c.lh=a.lh):c=b.j.xt(0,!1),a.Y?c.lh===0&&(c.G=a.Y.Z):c.G=a.Z;else if(d=b.B,d.j.qg()){e=d.Pf-a.Aa.getCurrentTime();var h=!d.range||d.B===
0&&d.Tb===0?0:d.range.length-(d.Tb+d.B);f=d.j;a.OQ(b,e)&&h===0&&(a.manifest.isManifestless?f=b.j:(f=d.startTime+XZ,d.B&&(f+=d.duration),KY(b,f),d=b.B,f=d.j));f.Sm()?(h=a.C,e=Y7a(a.G,f.info.ub,c.j.info.ub,e,h.D.length>0&&h.Z===0&&a.Aa.gs),c=d,f=TZ(b),d=c.j.mz(c,e),(e=d.C)&&d.kb.length>1&&(f||d.resource.B||d.kb[0].j!==c.j?d=c.j.mz(c,d.kb[0].B):(f=d.kb[d.kb.length-1],h=f.B/e,!f.Ue&&h<.4&&(d=c.j.mz(c,e-f.B)))),c=d):(d.Qa<0&&(c=eQ(d),c.pr=""+b.C.length,a.Aa.isSeeking()&&(c.sk="1"),c.snss=d.C,a.Aa.oa("nosq",
c)),c=f.AD(d));if(a.policy.Ha)for(d=g.v(c.kb),e=d.next();!e.done;e=d.next())e.value.type=6}else d.j.Sm()?(c=Y7a(a.G,b.j.info.ub,c.j.info.ub,0),c=d.j.mz(d,c)):c=d.j.AD(d);if(a.B){var l=c.kb[0].j.info.id;d=a.j;e=c.kb[0].Qa;d=e<0&&!isNaN(d.G)?d.G:e;e=M9a(a.j,c.kb[0].Xe,d);var m=b===a.audioTrack?1:2;h=c.kb[0].j.info.sb;f=l.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.fh.event;if(n.j.Qa===d){n=p==="predictStart"?void 0:n.j.fh.event;break a}if(n.j.Qa===d-1){n=p==="start"||p==="continue"?p:void 0;break a}}n=
void 0}if(a.policy.Ga&&a.j.B!==0){var q=a.B.bK(e,d,l,m,h,n);d<0&&m===2&&kZ(a.j,0,0,!0);if(q){var r;l=((r=q.hn)==null?void 0:r.Ot)||"";var t;r=((t=q.hn)==null?void 0:t.j2)||-1;a.Aa.oa("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.lA(e,d,l,m,h,n),d<0&&m===2&&kZ(a.j,0,0,!0),t){r={dec_sq:d,itag:f,st:e.toFixed(3)};if(a.policy.bD&&b.isRequestPending(d-1)){a.Aa.oa("sdai",{wt_daistate_on_sg:d-1});return}a.Aa.oa("sdai",r);t&&(c.j=new g.fP(t));a.policy.B&&(t=c.resource.TJ("id")||
"",r=((q=c.j)==null?void 0:q.get("id"))||"",t!==r&&a.Aa.oa("stmidmismatch",{cid:t,aid:r}))}else a.j.B!==5&&a.Aa.oa("sdai",{nodec_sq:d,itag:f,st:e.toFixed(3)})}a.policy.fm&&c.kb[0].Qa!==-1&&c.kb[0].Qa<a.manifest.gf&&(c=b.j.xt(a.manifest.gf,!1));V$a(b,tab(a,c));hZ(a.timing);var u;(u=a.N)==null||oab(u,c.resource)}};
sab=function(a,b,c){if(a.policy.Uf&&a.policy.jD)return!1;var d;var e=a.j,f=((d=b.B)==null?void 0:d.Qa)||-1;e.B===3&&f+1>=e.D?(e.oa("sdai",{haltrq:f+1,est:e.D}),d=!1):d=e.B!==2;if(!d||!xSa(b.B?b.B.j.resource:b.j.resource,a.policy,a.D)||a.Aa.isSuspended&&(!jR(a.schedule)||a.Aa.oJ))return!1;if(a.policy.D&&jS>=5)return g.Ev(a.Aa.XF),!1;if(a.manifest.isManifestless){if(b.C.length>0&&b.B&&b.B.Qa===-1||b.C.length>=a.policy.Ap||!a.policy.RE&&b.C.length>0&&!a.policy.N.pj)return!1;if(b.N)return!a.manifest.isLive||
!isNaN(a.lh)}if(iab(b))return a.logger.debug("Pending request with server-selectable format found"),!1;if(!b.B){if(!b.j.qg())return!1;KY(b,a.Aa.getCurrentTime())}if(NY(b)&&(b.So()!==NY(b)||a.Aa.isSuspended))return!1;e=(d=a.policy.wz)&&!b.C.length&&PZ(b,!0)<Math.min(d,PZ(c));d=b.C.length+c.C.length;f=!a.policy.qB&&((b.C.length?b.C[0].Bx():!1)||(c.C.length?c.C[0].Bx():!1)||a.manifest.isLive);(e||f)&&--d;if(d+1>=a.policy.Dp)return!1;d=b.B;if(!d)return!0;d.type===4&&d.j.qg()&&(b.B=g.zb(d.j.hC(d)),d=b.B);
if(!aQ(d)&&!d.j.vt(d))return!1;if(!BTa&&(f=a.manifest.je||a.manifest.C,a.manifest.isManifestless&&f)){f=b.j.index.Bd();var h=c.j.index.Bd();f=Math.min(f,h);if(b.j.index.MJ()>0&&f>0&&d.Qa>=f)return b.Ha=f,c.Ha=f,!1}if(d.j.info.audio&&d.type===4||aQ(d))return!1;f=!b.G&&!c.G;if(e=!e)e=d.Pf,e=!!(c.B&&!OZ(c,c.B)&&c.B.Pf<e);h=b===a.videoTrack&&a.policy.Ha;return e&&(!a.manifest.isManifestless||c.B&&c.B.Pf&&d.Pf)&&f&&!h||a.policy.Kb&&!b.G&&c.G?!1:cQ(d)&&d.Pf>vab(a,b)?(vab(a,b),!1):(a=b.Sb)&&a.isLocked()?
!1:!0};
vab=function(a,b){var c=a.j;c=c.j?c.j.fh:null;if(a.policy.Ha&&c)return c.startSecs+c.Hh+15;b=YZ(a.Aa,b);a.policy.Ab>0&&(c=((0,g.iC)()-a.Aa.jq)/1E3,b=Math.min(b,a.policy.Ab+a.policy.Ng*c));c=a.Aa.getCurrentTime()+b;return a.policy.Nv&&(b=wab(a.Aa)+a.policy.Nv,b<c)?(a.Aa.oa("mrl",{ori:c,mod:b},!0),a.policy.lD&&(a=a.Aa,c=(0,g.iC)(),a.jq=c),b):c};
xab=function(a,b,c){if(c!==0){a:if(b=b.info,c=c===2,b.j)b=null;else{var d=b.kb[0];if(b.range)var e=YP(b.range.start,Math.min(4096,b.C));else{if(b.B&&b.B.indexOf("/range/")>=0||b.resource.TJ("defrag")==="1"||b.resource.TJ("otf")==="1"){b=null;break a}e=YP(0,4096)}e=new fQ([new $P(5,d.j,e,"createProbeRequestInfo"+d.C,d.Qa)],b.B);e.Uj=c;e.j=b.j;b=e}b&&tab(a,b)}};
tab=function(a,b){a.Aa.fK(b);var c=PSa(b),d=yab(a.Aa);c={Pc:a.schedule,fA:c,pS:W7a(a.G,c),Lp:bQ(b.kb[0]),Br:iP(b.resource.j),sJ:a.policy.B,ov:function(e,f){a.Aa.ZG(e,f)}};
a.Il&&(c.Qa=b.kb[0].Qa,c.lh=b.lh,c.Il=a.Il);d={Fw:QSa(b,a.Aa.getCurrentTime()),NG:a.policy.le&&gQ(b)&&b.kb[0].j.info.video?f$a(a.C):void 0,IH:a.policy.Ha,poToken:a.Aa.Zt(),ly:a.Aa.wA(),WG:a.WG,Bh:isNaN(a.Bh)?null:a.Bh,Bi:a.Bi,wM:a.wM,qq:a.qq,PB:d};return new HY(a.policy,b,c,a.D,function(e,f){try{a:{var h=e.info.kb[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(e.state>=2)||e.isComplete()||e.bx()||!(!a.Aa.Ra||a.Aa.isSuspended||PZ(l)>3)){var m=qab(e,a.policy,a.D);m===1&&(a.va=!0);xab(a,e,m);if(e.isComplete()||
e.Na()&&f<3){if(a.policy.B){var n=e.timing.er();n.rst=e.state;n.strm=e.xhr.DC();n.cncl=e.xhr&&e.Cd.D?1:0;a.Aa.oa("rqs",n)}e.O1&&a.Aa.oa("sbwe3",{},!0)}if(!a.Na()&&e.state>=2){D9a(a.timing,e,h);var p=a.Aa;a.Bh&&e.QI&&p&&(a.Bh=NaN,a.Aa.vT(e.QI),a.Aa.oE(),a.Aa.oa("cabrUtcSeek",{mediaTimeSeconds:e.QI}));e.lC&&(e.Sp>0&&a.Aa.oa("sError",{errorHttpResponseCode:e.Sp.toString()}),a.Bh&&e.lC&&!e.lC.action&&(a.Aa.Nu(a.Bh),a.Bh=NaN,a.Aa.oa("cabrUtcSeekFallback",{targetUtcTimeSeconds:a.Bh})));a.policy.xw&&e.lj&&
a.Aa.Xm(e.lj);a.policy.Sc&&(a.qq=e.qq);if(e.state===3){RZ(l,e);gQ(e.info)&&ZZ(a,l,h,!0);if(a.B){var q=e.info.lA();q&&a.B.Al(e.info.kb[0].Qa,h.info.id,q,e.info.kb[0].startTime)}a.Aa.jf()}else if(e.isComplete()&&e.info.kb[0].type===5){if(e.state!==4)e.Qm()&&a.Aa.handleError(e.ih(),e.Kr());else{var r=(e.info.kb[0].j.info.video?a.videoTrack:a.audioTrack).C[0]||null;r&&r instanceof HY&&r.bx()&&r.RH(!0)}e.dispose()}else{e.Qm()||zab(a,e);var t;((t=e.dB)==null?0:t.itagDenylist)&&a.Aa.mL(e.dB.itagDenylist);
if(e.state===4)Aab(a,e),a.j&&H9a(a.j,e.info,a.B);else if(a.policy.jt&&e.Kl()&&!e.isComplete()&&!Aab(a,e)&&!e.Qm())break a;e.Qm()&&(Bab(a,e),isNaN(a.Bh)||(a.Aa.Nu(a.Bh),a.Bh=NaN));a.Aa.jf();var u=rab(e,a.policy,a.D);xab(a,e,u)}}}}}catch(w){f=a.ra?1:0,a.ra=!0,e=HJ(f),f=IJ(w,f),a.Aa.handleError(f.errorCode,f.details,f.severity),e||a.Aa.ll()}},d)};
zab=function(a,b){if(b.NB&&b.state>=2&&b.state!==3){var c=b.xhr.getResponseHeader("X-Response-Itag");if(c){a.logger.debug(function(){return"Applying streamer-selected format "+c});
var d=e$a(a.C,c),e=b.info.C;e&&(e-=d.OP(),d.C=!0,b.info.kb[0].j.C=!1,o9a(b,d.ax(e)),$Z(a.Aa,a.videoTrack,d),jab(a.videoTrack,d),a.Aa.kS(d.info.video.quality),(e=b.WP())&&d.info.lastModified&&d.info.lastModified!==+e&&RZ(a.videoTrack,b))}else b.NB=!1}};
Bab=function(a,b){var c=b.info.kb[0].j,d=b.ih();if(iP(c.resource.j)){var e=g.Cg(b.uf(),3);a.Aa.oa("dldbrerr",{em:e||"none"})}e=b.info.kb[0].Qa;var f=M9a(a.j,b.info.kb[0].Xe,e);d==="net.badstatus"&&(a.K+=1);if(b.canRetry()&&Cab(a.Aa)){if(!(b.info.resource.B>=a.policy.mw&&a.B&&b.info.eq()&&d==="net.badstatus"&&a.B.yE(f,e))){e=(c.info.video&&c.resource.B>1||b.Dg===410||b.Dg===500||b.Dg===503)&&!(pZ(a.C.G).size>0)&&!iP(c.resource.j);f=b.Kr();var h=c.info.video?a.videoTrack:a.audioTrack;e&&(f.stun="1");
a.Aa.handleError(d,f);a.Na()||(e&&(a.logger.debug(function(){return"Stunning format "+c.info.id}),uZ(a.C,c)),RZ(h,b),a.Aa.jf())}}else h=1,a.B&&b.info.eq()&&d==="net.badstatus"&&a.B.yE(f,e)&&(h=0),a.manifest.isLive&&b.ih()==="net.badstatus"&&a.K<=a.policy.Bj*2?(eUa(a.manifest),a.manifest.je||a.manifest.isPremiere?MY(a.Aa,0,{hd:"badStatusWorkaround"}):a.manifest.C?MY(a.Aa,a.manifest.ib,{hd:"badStatusWorkaround",
vr:!0}):a_(a.Aa)):a.Aa.handleError(d,b.Kr(),h)};
Aab=function(a,b){if(a.policy.useUmp&&b.Na())return!1;try{var c=b.info.kb[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.manifest.isManifestless&&d){a.K=0;d.N&&(b.Na(),b.isComplete()||b.Kl(),d.N=!1);b.AP()&&a.Aa.aJ.Vi(1,b.AP());var e=b.MJ(),f=b.mY();fUa(a.manifest,e,f)}if(b.info.Lp()&&!OSa(b.info))for(var h=g.v(b.Qk()),l=h.next();!l.done;l=h.next())X$a(d,l.value);for(a.Aa.getCurrentTime();d.C.length&&d.C[0].state===4;){var m=d.C.shift();W$a(d,m);d.Sa=m.fY()}d.C.length&&W$a(d,d.C[0]);var n=!!NY(d);
n&&b instanceof GY&&(c.info.Kh()?w9a(a.timing):v9a(a.timing));return n}catch(p){b=b.Kr();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.FB&&c.args)for(d=g.v(Object.entries(c.args)),e=d.next();!e.done;e=d.next())f=g.v(e.value),e=f.next().value,f=f.next().value,b["arg"+e]=""+f;g.nE(c);if(c.level==="WARNING"){a.ea.Hq(b);break a}}a.handleError("fmt.unplayable",b,1)}return!1}};
Dab=function(a){var b=a.videoTrack.j.index;a.Il=new nab({lk:a.policy.lk,pj:a.policy.N.pj,Sj:b.Sj,Bd:function(){return b.Bd()},
Ww:function(){return b.Ww()}})};
ZZ=function(a,b,c,d){if(!(c.qg()||c.WA()||c.C||!xSa(c.resource,a.policy,a.D)||c.info.sb==="f"||a.policy.C)){if(d){d=a.G;var e=c.info;d=X7a(d,e.video?d.policy.yw:d.policy.Xl,e.ub)}else d=0;d=c.ax(d);a=tab(a,d);OSa(d)&&V$a(b,a);c.C=!0}};
b_=function(a,b,c,d,e,f,h,l){g.I.call(this);var m=this;this.Aa=a;this.Ve=b;this.videoTrack=c;this.audioTrack=d;this.manifest=e;this.N=f;this.isAudioOnly=h;this.Da=l;this.B=rS;this.va=!1;this.logger=new g.FQ("sabr");this.ra=this.Y=!1;this.videoInfos=this.G=this.N.videoInfos;this.C=this.Z=this.N.j;this.j=new nZ(b,f,function(n,p){m.Aa.oa(n,p)});
Eab(this);this.isAudioOnly&&Fab(this,this.manifest.j["0"])};
Gab=function(a,b){var c=[];b=g.v(b);for(var d=b.next();!d.done;d=b.next())c.push($J(d.value,a.manifest.hc));return c};
Fab=function(a,b,c){b!==a.D&&(a.D&&(a.va=!0),a.D=b,a.lL(b,a.videoTrack,c))};
Kab=function(a,b){a.logger.debug("setConstraint: "+VO(b));a.Ve.j&&(a.ra=b.reason==="m"||b.reason==="l"?!0:!1);b.reason==="m"?b.isLocked()&&Hab(a,b.j):Iab(a,b)?Jab(a,b.B,b.j):a.videoInfos=a.G;a.B=b};
Iab=function(a,b){return a.Ve.Fn&&b.reason==="b"||a.Ve.SH?!1:a.Ve.vz?!0:b.reason==="l"||b.reason==="b"||b.reason==="o"};
Lab=function(a,b){return b.isLocked()&&a.j.B||a.B===void 0?!1:iRa(b,a.B)};
Mab=function(a,b){var c,d=(c=a.D)==null?void 0:c.info.video.j;return a.va?!0:a.D?b!==d?!0:!a.j.B||a.Ve.Fo&&a.j.j===a.D.info.itag?!1:!0:!1};
Hab=function(a,b){var c=a.j.j;if(c){a.videoInfos=a.G;var d=g.Cb(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.oa("sabrpf",{pfid:""+c,
vfids:""+d.join(".")}),Jab(a,b,b),qZ(a.j,""))}else Jab(a,b,b)};
Jab=function(a,b,c){a.videoInfos=a.G;a.videoInfos=g.Mt(a.videoInfos,function(d){return d.video.j>=b&&d.video.j<=c})};
Eab=function(a){var b=null;if(b=a.Ve.Vj?P9a(a.j,a.Da):g.Cb(a.Z,function(c){var d;return!((d=c.Yb)==null||!d.isDefault)}))a.C=[b]};
Nab=function(a,b){return a.map(function(c){return aK(c,b)})};
Oab=function(a){var b;if((b=a.B)==null?0:b.isLocked())return a.videoInfos;var c=pZ(a.j);b=g.Mt(a.videoInfos,function(d){return d.ub>a.Ve.ub?!1:!c.has(d.id)});
O9a(a.j)&&(b=g.Mt(b,function(d){return d.video.width<=854&&d.video.height<=480}));
return b};
Pab=function(a,b,c){var d=a.manifest,e=a.ea.getVideoData(),f=g.DS(e),h=g9a({Ea:e.U(),ea:a.ea,tE:a.tE,Ve:a.Ve,jq:a.jq,Rx:a.Rx,Gw:a.Gw,Ry:a.Ry,Fq:a.Fq,isPrefetch:a.isPrefetch,fH:a.fH,iH:a.iH,Pz:a.Pz,sabrLicenseConstraint:e.sabrLicenseConstraint,Gy:a.Gy},c),l=cZ(e,a.PB,a.nextRequestPolicy,a.wk,a.IS,a.Ida),m=a.qH,n=a.rH;if(n===void 0&&m===void 0){var p;n=d.hc;n=(m=(p=a.qO)==null?void 0:p.video)?[$J(m.info,n)]:[];var q;p=d.hc;m=(m=(q=a.qO)==null?void 0:q.audio)?[$J(m.info,p)]:[]}if(e.Bi)var r=e.Bi;e={zr:h,
Ro:a.Ro,qH:m,rH:n,videoPlaybackUstreamerConfig:r,CC:l};a.hn&&(e.hn=a.hn);if(f&&b){f=new Map;var t=g.v(d.Oa);for(h=t.next();!h.done;h=t.next())h=h.value,(l=d.Sa[JTa(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.v(a.jd);for(h=t.next();!h.done;h=t.next())h=h.value,l=h.startTimeMs||0,q=void 0,r=(q=b)==null?void 0:kY(q,l),q=r.clipId,r=r.Jl,q?(d.has(q)||(n=f.get(q)||[],d.set(q,{clipId:q,jd:[],vx:n})),r!==0&&(h.startTimeMs=
l-r),d.get(q).jd.push(h)):c&&(q=void 0,c("ssap",{nocid4range:"1",fmt:((q=h.formatId)==null?void 0:q.itag)||"",st:l.toFixed(3),d:(h.durationMs||0).toFixed(3),timeline:jY(b)}));e.GH=[];d=g.v(d.entries());for(f=d.next();!f.done;f=d.next())f=g.v(f.value),f.next(),f=f.next().value,e.GH.push(f);if(a.jd.length&&!e.GH.length){if(c){e="";a=g.v(a.jd);for(d=a.next();!d.done;d=a.next())d=d.value,h=t=f=void 0,e+="fmt."+(((f=d.formatId)==null?void 0:f.itag)||"")+"_"+(((t=d.formatId)==null?void 0:t.lmt)||0)+"_"+
(((h=d.formatId)==null?void 0:h.xtags)||"")+";st."+(d.startTimeMs||0).toFixed(3)+";d."+(d.durationMs||0).toFixed(3)+";";c("ssap",{nobfrange:"1",br:e,timeline:jY(b)})}return}a.HK&&(e.HK=a.HK);a.EK&&(e.EK=a.EK)}else e.jd=a.jd,e.vx=d.Oa,f&&((t=a.jd)==null?void 0:t.length)>0&&!b&&c&&c("ssap",{bldmistlm:"1"});return e};
c_=function(a,b,c){var d=this;this.requestType=a;this.resource=b;this.Eb=c;this.B=null;this.wd={srb:function(){var e;return(e=d.data)==null?void 0:e.isPrefetch}}};
Qab=function(a,b,c){if(a.Zr())return!0;a.data=b;a.j=Pab(b,c,function(d,e){var f;(f=a.Eb)==null||f.Fl(d,e)});
if(!a.j)return!1;a.B=g.SN(a.j,AQa);return!0};
s9a=function(a,b,c){a.Uj===void 0&&(a.Uj=a.resource.Uj(b,c));return a.Uj};
Rab=function(a){var b,c;return((b=a.j)==null?void 0:(c=b.zr)==null?void 0:c.CS)||0};
Sab=function(a){var b={},c=[],d=[];if(!a.data)return b;for(var e=0;e<a.data.jd.length;e++){var f=a.data.jd[e],h=void 0;c.push("i."+((h=f.formatId)==null?void 0:h.itag)+"_st."+(f.startTimeMs+"_e."+(f.startTimeMs+f.durationMs)+"_d."+f.durationMs)+("_sn."+f.vn)+("_en."+f.Yi))}for(e=0;e<a.data.Ro.length;e++){f=a.data.Ro[e];var l=h=void 0,m=void 0,n=void 0;d.push("i."+((h=f.formatId)==null?void 0:h.itag)+"_sn."+f.sequenceNumber+"_sl."+(f.Pj||NaN)+"_lb."+f.SZ+"_tr.s_"+((l=f.DJ)==null?void 0:l.Ah)+"_d_"+
((m=f.DJ)==null?void 0:m.CE)+"_t_"+((n=f.DJ)==null?void 0:n.Ev))}b.ptime=Rab(a);b.rtype=a.requestType;b.brl=c.join(";");b.ps=d.join(";");return b};
d_=function(a,b){g.I.call(this);this.j=a;this.Ld=b;this.iv=(0,g.dZ)(yD(16))};
Uab=function(a,b){var c;return g.H(function(d){(0,g.iC)();c=OUa(a.j);return d.return(c.encrypt(b,a.iv))})};
Vab=function(a,b){var c;return g.H(function(d){(0,g.iC)();var e=a.j;e.D||(e.D=new KKa(e.C));c=e.D;return d.return(NKa(c,b,a.iv))})};
Wab=function(a,b,c){var d;return g.H(function(e){(0,g.iC)();d=OUa(a.j);return e.return(d.decrypt(b,c))})};
Xab=function(a){if(a.B)return a.B;if(a.Ld){var b=new aR(a.Ld,a.j.j);g.M(a,b);a.B=b}else a.B=new $Q(a.j.j);return a.B};
Yab=function(a){this.Ym=a;this.B=!1;this.j=[]};
f_=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.videoId,d=b.aq,e=b.formatId,f=b.buffer;b=b.O8;if(f)b=void 0,(b=e_(a.Ym.ud,c))==null||k6a(b,d,e,f);else if(b)a.Ym.ud.uq(c,d,e);else if(d=a.Ym,d.j[e].UY=!0,c=e_(d.ud,c),c==null?0:c.bd.has(e))c==null||b6a(c,e)}};
g.abb=function(a){this.data=a;this.j=0;this.D=!1;this.C=0;this.error=!1;this.register=this.B=0;if(g_.length===0){g_.length=288;g_.fill(8);for(a=144;a<280;a++)g_[a]=a<=255?9:7;Zab.length=32;Zab.fill(5);h_.length=286;h_.fill(0);for(a=261;a<285;a++)h_[a]=Math.floor((a-261)/4);i_[257]=3;for(a=258;a<285;a++){var b=i_[a-1];b+=1<<h_[a-1];i_[a]=b}i_[285]=258;for(a=0;a<30;a++)$ab[a]=a<=3?0:Math.floor((a-2)/2);for(a=j_[0]=1;a<30;a++)b=j_[a-1],b+=1<<$ab[a-1],j_[a]=b}a=100+7*this.data.length;this.data[0]===31&&
this.data[1]===139&&(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.gbb=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!k_(b,1);switch(k_(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=k_(b,5)+257;var f=k_(b,5)+1;for(var h=k_(b,4)+4,l=0;l<h;l++)d[bbb[l]]=k_(b,3);d=cbb(d);for(h=e+f;c.length<h;){l=dbb(b,d);switch(l){case 16:l=c[c.length-1];var m=k_(b,2)+3;break;case 17:l=0;m=k_(b,3)+3;break;case 18:l=0;m=k_(b,7)+11;break;default:m=1}for(;m>0;m--)c.push(l)}c.length!==h?b.error=!0:(f=c.slice(-f),c.length=e,ebb(b,c,f));break;case 1:ebb(b,g_,Zab);break;case 0:fbb(b,
b.j&7);c=k_(b,16);e=k_(b,16);(c^e)!==65535&&(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(a.C*2),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};
ebb=function(a,b,c){b=cbb(b);c=cbb(c);for(var d=a.data,e=a.output,f=a.C,h=a.register,l=a.j,m=a.B;;){if(l<15){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(n<0)for(h>>=7;n<0;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(n<256)e[f++]=n;else if(a.register=h,a.j=l,a.B=m,n>256){h=i_[n];h+=k_(a,h_[n]);m=dbb(a,c);l=j_[m];l+=k_(a,$ab[m]);if(hbb&&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};
dbb=function(a,b){if(a.j<7){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(c>=0)return fbb(a,c&15),c>>4;for(fbb(a,7);c<0;)c=b[k_(a,1)-c];return c>>4};
k_=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};
fbb=function(a,b){a.j-=b;a.register>>=b};
cbb=function(a){for(var b=[],c=g.v(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,h>7&&(f+=b[h]);for(e=1;e<f;)e<<=1;b=128;d=new Int16Array(128+(e+d)*2);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(h<=7)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};
ibb=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t;return g.H(function(u){switch(u.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=xV.Vo(b.cq?"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 u.return(h)}catch(w){g.mE(w)}if(!("DecompressionStream"in window))return xV.isActive()?u.return(xV.Vo("gzj",function(){return g.gbb(new g.abb(a))})):u.return(g.gbb(new g.abb(a)));
l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new nN([]);if(xV.isActive())return u.return(xV.Vo("gzn",function(){var w,A,C;return g.H(function(F){if(F.j==1)return g.z(F,n.read(),5);if(F.j!=4){w=F.B;A=w.value;if(C=w.done)return F.Ja(4);p.append(A);return F.Ja(1)}return F.return(qN(p))})}));
case 2:return g.z(u,n.read(),5);case 5:q=u.B;r=q.value;if(t=q.done){u.Ja(4);break}p.append(r);u.Ja(2);break;case 4:return u.return(qN(p))}})};
jbb=function(a){eZ.call(this,"onesie");this.ud=a;this.j={};this.D=!0;this.C=null;this.queue=new Yab(this);this.G={}};
kbb=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.B&&(b.j.length=0);b=g.v(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.UY){var e=a.queue;e.j.push({videoId:d.videoId,formatId:c,isEncrypted:!1});e.B||f_(e)}}};
mbb=function(a,b){var c=b.totalLength,d=!1;switch(a.C){case 0:a.aS(b,a.D).then(function(f){var h=a.ud;h.Td("oprr");h.playerResponse=f;h.iR||(h.jH=!1);l_(h)},function(f){a.ud.yj(f)});
break;case 2:a.Td("ormk");b=qN(b);var e;a.queue.decrypt(b,!lbb(a.ud),(e=a.ud.U())==null?void 0:e.Ld);break;default:d=!0}a.ud.Om&&a.ud.oa("ombup","id.11;pt."+a.C+";len."+c+(d?";ignored.1":""));a.C=null};
nbb=function(a){return new Promise(function(b){setTimeout(b,a)})};
obb=function(a,b){var c=a.U();c=a.Ed&&c.L("html5_onesie_preload_use_content_owner");var d=a.lS,e=WQ(b.X.experiments,"debug_bandaid_hostname");if(e)b=vX(b,e);else if((c===void 0?0:c)&&(d==null?0:d.url)&&!b.B){var f=hP(new g.fP(d.url));b=vX(b,f)}else b=(f=b.j.get(0))==null?void 0:f.location.clone();if(b&&a.videoId){f=bR(a.videoId);a=[];if(f)for(f=g.v(f),c=f.next();!c.done;c=f.next())a.push(c.value.toString(16).padStart(2,"0"));b.set("id",a.join(""));return b}};
pbb=function(a,b,c){c=c===void 0?0:c;var d,e;return g.H(function(f){if(f.j==1)return d=[],d.push(b.load()),c>0&&d.push(nbb(c)),g.z(f,Promise.race(d),2);e=obb(a,b);return f.return(e)})};
qbb=function(a,b,c,d){d=d===void 0?!1:d;a.set("cpn",b.clientPlaybackNonce);a.set("opr","1");var e=b.U();a.set("por","1");fN()||a.set("onem","1");b.startSeconds>0&&a.set("osts",""+b.startSeconds);d||(e.L("html5_onesie_disable_partial_segments")&&a.set("oses","1"),b=e.L("html5_gapless_onesie_no_media_bytes")&&IS(b)&&b.Ed,c&&!b?(b=c.audio,a.set("pvi",c.video.join(",")),e.L("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),VQ||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad",
"0"),a.set("oavd","0")))};
rbb=function(a,b,c,d,e){e=e===void 0?!1:e;var f=b.Uk,h="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.AQ&&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.oc()});g.jA("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.jA("EOM_VISITOR_DATA")}):(c=c.visitorData||g.jA("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=WQ(b.experiments,
"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=XKa(JSON.stringify(a));return{url:h,tQ:f,postBody:a,uda:e,zC:e}};
tbb=function(a,b,c,d,e,f){var h=g.SN(a,tQa,a.zC?void 0:c.Ld),l={encryptedClientKey:b.j.encryptedClientKey,N1:!0,LX:!0,hP:sbb(c,!!a.zC),x3:c.experiments.gb("html5_use_jsonformatter_to_parse_player_response")};if(a.zC)l.ifa=h;else{a=b.encrypt(h);var m;a=((m=c.Ld)==null?void 0:m.sR(a))||a;m=l.MX=a;(0,g.iC)();m=JKa(new IKa(b.j.C),m,b.iv);l.fZ=m;l.iv=b.iv}b=d.getVideoData();c=g9a({Ea:c,ea:d,tE:b.startSeconds*1E3,fH:!0,iH:!0});return{BQ:l,zr:c,onesieUstreamerConfig:e,mp:f,CC:cZ(b)}};
ubb=function(a,b,c){var d,e,f;return g.H(function(h){if(h.j==1)return d=g.SN(b,tQa),g.z(h,Uab(c,d),2);if(h.j!=3)return e=h.B,g.z(h,Vab(c,e),3);f=h.B;return h.return({MX:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,fZ:f,N1:!0,LX:!0,hP:sbb(a,!!b.zC),x3:a.experiments.gb("html5_use_jsonformatter_to_parse_player_response")})})};
vbb=function(a,b,c,d,e,f){var h,l,m;return g.H(function(n){if(n.j==1)return g.z(n,ubb(c,a,b),2);h=n.B;l=d.getVideoData();m=g9a({Ea:c,ea:d,tE:l.startSeconds*1E3,fH:!0,iH:!0});return n.return({BQ:h,zr:m,onesieUstreamerConfig:e,mp:f,CC:cZ(l)})})};
sbb=function(a,b){a=iR(a.schedule,!0);b=b||!!fN()&&a>1572864;return"DecompressionStream"in window||!b};
n_=function(a,b){g.I.call(this);var c=this;this.ea=a;this.playerRequest=b;this.X=this.ea.U();this.videoData=this.ea.getVideoData();this.logger=new g.FQ("onesie");this.Om=this.X.yc();this.YO=this.X.Vk;this.GG=new d_(this.YO.j,this.X.Ld);this.xhr=null;this.state=1;this.Qq=new xK;this.ZY=!1;this.playerResponse="";this.Rl=new SY(this);this.Ym=new jbb(this);this.WH=this.X.L("html5_onesie_check_timeout");this.AO=new g.Dv(this.M7,500,this);this.HG=new g.Dv(this.kQ,1E4,this);this.wL=new g.Dv(function(){if(!c.isComplete()){var d=
m_(c);c.yj(new GJ("net.timeout",d))}},g.oI(this.X.experiments,"html5_onesie_request_timeout_ms"));
this.z0=new g.Dv(this.T$,2E3,this);this.bv="";this.wK=this.xZ=!1;this.FA=this.ea.wA();this.mS="";this.jH=this.L("html5_onesie_wait_for_media_availability");this.enableCompression=this.iR=this.PA=!1;this.JH=[];this.uv=this.ij=-1;g.M(this.videoData,this);g.M(this,this.AO);g.M(this,this.HG);g.M(this,this.z0);g.M(this,this.GG);a=XQ();VQ&&a&&!this.X.L("html5_disable_onesie_media_bytes")&&(this.eg=new Map);this.aY=new Map;this.E_=new Map;this.z1=new Map};
e_=function(a,b){var c;return(c=a.eg)==null?void 0:c.get(b)};
wbb=function(a,b,c){var d;return g.H(function(e){if(e.j==1)return a.Td("oprd_s"),lbb(a)?g.z(e,Wab(a.GG,b,c),3):(d=a.GG.decrypt(b,c),e.Ja(2));e.j!=2&&(d=e.B);a.Td("oprd_c");return e.return(d)})};
xbb=function(a){return a.L("html5_onesie_host_probing")||a.Om?VQ:!1};
l_=function(a){if(!a.playerResponse)return!1;if(a.PA)return!0;var b=a.videoData.L("html5_onesie_audio_only_playback")&&JS(a.videoData);if(a.eg&&a.jH){if(!a.eg.has(a.bv))return!1;var c=a.eg.get(a.bv),d;if(d=c){d=!1;for(var e=g.v(c.bd.keys()),f=e.next();!f.done;f=e.next())if(f=c.bd.get(f.value))for(var h=g.v(f.cG),l=h.next();!l.done;l=h.next())l.value.Ls>0&&(f.Kh?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.Td("ofr");a.Qq.resolve(a.playerResponse);if(!a.WH){var m;(m=a.wL)==null||m.start();a.HG.start()}return a.PA=
!0};
zbb=function(a){if(a.eg&&!a.L("html5_onesie_media_capabilities")){a.Td("ogsf_s");var b=c9a(a.ea.getVideoData(),function(d,e){a.oa(d,e)}),c=ybb(a.ea);
b.video=T8a(c,b.video);a.Td("ogsf_c");if(b.video.length)return b;a.oa("ombspf","l."+c.B+";u."+c.j+";o."+c.C+";r."+c.reason)}};
lbb=function(a,b){return a.L("html5_onesie_sync_request_encryption")||(b==null?0:b.zC)||g.GR(a.X)&&a.L("html5_embed_onesie_use_sync_encryption")?!1:!!fN()};
m_=function(a){if(!a.Od)return{};var b=a.Od.er();b.d=v8a(a.Od);b.shost=a.L1;b.ty="o";return b};
Abb=function(a,b){var c,d;(d=(a=(c=a.eg)==null?void 0:c.get(b))==null)||(b=a.C?!1:a.C=!0,d=!b);return!d};
Bbb=function(a,b,c,d,e,f,h,l,m,n,p){g.I.call(this);var q=this;this.ea=a;this.Aa=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.manifest=f;this.Pc=h;this.va=l;this.D=m;this.timing=n;this.Z=p;this.j=[];this.G={};this.La=this.Oa=!1;this.wk=new Set;this.C=this.Ga=this.Y=this.Fq=0;this.K=null;this.wd={Yqb:function(){return q.j},
vqb:function(){return q.G},
Ipb:function(){q.j.length=0},
Jqb:function(){return q.wk},
Fqb:function(){return q.Y},
psb:function(r){q.Y=r},
xsb:function(r){q.C=r}};
this.videoData=this.ea.getVideoData();this.policy.Xf&&(this.Ha=new VZ(this.Aa,this.policy,this.Pc),g.M(this,this.Ha))};
Ebb=function(a,b){b=b===void 0?!1:b;if(Cbb(a,b)){a.policy.Ya&&a.Aa.oa("sabrcrq",{create:1});var c=new c_(0,a.manifest.ra,a);a.policy.Be>0&&a.C++;b=Dbb(a,c,b);a.j.push(b);var d;(d=a.Ha)==null||oab(d,a.manifest.ra)}};
Hbb=function(a,b){var c=LZ(a.audioTrack,a.Aa.isSeeking()),d=LZ(a.videoTrack,a.Aa.isSeeking()),e=[].concat(g.ra(c.jd),g.ra(d.jd)),f=[].concat(g.ra(c.Ro),g.ra(d.Ro)),h,l=((h=a.Aa)==null?void 0:h.HF())&&(WS(a.videoData)||g.VS(a.videoData));h=a.policy.K&&l;l=a.Aa.getCurrentTime()||0;l=Fbb(a,l);var m=a.Aa.Fc()||0;h=h?Number.MAX_SAFE_INTEGER:Math.min(Number.MAX_SAFE_INTEGER,Math.ceil((l+m)*1E3));l=!o_(a,a.audioTrack);m=!o_(a,a.videoTrack);var n=bR(a.Aa.Zt()),p=yab(a.Aa),q,r,t=a.ea,u=a.manifest,w=a.B,A=
a.wk,C=a.policy,F=a.Aa.jq,G=wab(a.Aa)*1E3,K=(q=a.Da)==null?void 0:q.Gw;q=(r=a.Da)==null?void 0:r.Ry;var N;r=Number((N=a.D.D)==null?void 0:N.info.itag)||0;var R;N=Number((R=a.D.K)==null?void 0:R.info.itag)||0;b={ea:t,manifest:u,jd:e,Ro:f,tE:h,nextRequestPolicy:w,wk:A,Ve:C,jq:F,Rx:G,Gw:K,Ry:q,Fq:a.Fq,isPrefetch:b||a.Aa.isSuspended,fH:l,iH:m,IS:n,HK:r,EK:N,PB:p};if(e=a.ea.ex())b.Gy=e*1E3;if(a.policy.Ci){e=a.D;f=e.Y;if(e.Ve.j&&!f&&e.Ve.dD)for(R=g.v(e.C),N=R.next();!N.done;N=R.next())if(N.value.Yb){f=
!0;break}e=e.Ve.j&&!f?[]:Gab(e,e.C);b.qH=e;e=a.D;e.Ve.j&&!e.ra?e=[]:(f=Oab(e),f.length===0&&(f=e.G),e=Gab(e,f));b.rH=e}else a.fK(a.videoTrack.j),a.fK(a.audioTrack.j),b.qO=vZ(a.va);a.policy.Fn&&(e=a.ea.xP().I0,b.Pz=e.j);if(a.policy.G){c=Gbb(a,c.jd,d.jd);var da;if(d=(da=a.K)==null?void 0:da.XP(c))b.hn=d}a.policy.ra&&a.j.length>0&&a.j[0].tO()&&(b.Ida=a.j[0].UP());return b};
Fbb=function(a,b){if(a.Aa.isSeeking())return b;var c=a.ea.Me();if(!c)return b;c=c.Ih();if(c.length===0||hK(c,b))return b;for(var d=b,e=Infinity,f=0;f<c.length;f++)if(!(c.start(f)>b)){var h=b-c.end(f);h<e&&(e=h,d=c.end(f))}d!==b&&a.Aa.oa("sundrn",{bre:d,lt:b});return d};
Gbb=function(a,b,c){var d=a.Aa.getCurrentTime()||0;b=Ibb(a,b,d);a=Ibb(a,c,d);return Math.min(b,a)};
Ibb=function(a,b,c){a=a.Aa.Fc()||0;b=g.v(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=e.startTimeMs?e.startTimeMs/1E3-a:0;e=d+(e.durationMs?e.durationMs/1E3:0);if(d<=c&&c<=e)return e}return c};
Cbb=function(a,b){if(a.policy.Be>0){var c=Math.floor((0,g.iC)()/1E4);if(c===a.Ga){if(a.C>=a.policy.Be){if(a.C===a.policy.Be){var d={reason:"toomanyrequests"};d.limit=a.C;a.Aa.handleError("player.exception",d);a.C+=1}return!1}}else a.Ga=c,a.C=0}b=!b&&!jR(a.Pc);if(a.Aa.isSuspended&&(a.Aa.oJ||b)||a.ra&&(0,g.iC)()<a.ra||a.j.length>0&&(!a.policy.ra||a.j.length!==1||!a.j[0].tO())||(d=a.manifest.ra)==null||!xSa(d,a.policy,a.G))return!1;d=a.policy.JD&&a.policy.j&&a.Aa.Zf();if(SZ(a.audioTrack)&&SZ(a.videoTrack)&&
!d)return!1;if(a.policy.j&&a.N&&!a.Aa.Zf())return a.Fl("ssap",{pauseontlm:1}),!1;if(a.policy.Lv&&o_(a,a.audioTrack)&&o_(a,a.videoTrack))return a.policy.B&&a.Aa.oa("sabrHeap",{a:""+NZ(a.audioTrack),v:""+NZ(a.videoTrack)}),!1;if(d=a.policy.G)d=!1,a.Z.B===2?d=!0:a.Z.B===3&&(b=Gbb(a,LZ(a.audioTrack,a.Aa.isSeeking()).jd,LZ(a.videoTrack,a.Aa.isSeeking()).jd),c=a.Z,b>=c.C?(c.oa("sdai",{haltrq:b,est:c.C}),b=!0):b=!1,b&&(d=!0)),d&&a.policy.Ya&&a.Aa.oa("sabrcrq",{waitad:1});if(d)return!1;if(!a.B)return a.policy.Ya&&
a.Aa.oa("sabrcrq",{nopolicy:1}),!0;if(!a.B.targetAudioReadaheadMs||!a.B.targetVideoReadaheadMs)return a.policy.Ya&&a.Aa.oa("sabrcrq",{noreadahead:1}),!0;if(a.policy.K&&a.Aa.HF())return a.policy.Ya&&a.Aa.oa("sabrcrq",{seekToHead:1}),!0;d=Math.min(YZ(a.Aa,a.audioTrack)*1E3,a.B.targetAudioReadaheadMs);b=Math.min(YZ(a.Aa,a.videoTrack)*1E3,a.B.targetVideoReadaheadMs);var e=Math.min(d,b);c=PZ(a.audioTrack,!0)*1E3;var f=PZ(a.videoTrack,!0)*1E3;var h=c>e;e=f>e;if((!h||!e)&&a.policy.B&&a.policy.Wf){var l=
a.Aa.qc();l.car=c;l.vac=f;l.mar=d;l.mvr=b;l.tar=a.B.targetAudioReadaheadMs;l.tvr=a.B.targetVideoReadaheadMs;a.Aa.oa("sabrrnm",l)}!(d=h&&e)&&(d=a.policy.j)&&(a=a.Aa,a.Ra&&a.Ra.j&&a.Ra.B&&a.xb&&!DQ(a.manifest)?(d=a.getCurrentTime(),c=a.Ra.j.Ee(),b=a.Ra.B.Ee(),c=c?iK(c,d):d,d=b?iK(b,d):d,d=Math.min(c,d),isNaN(d)?d=!1:(a=lY(a.xb),d=d>=a-.01)):d=!1);return d?!1:!0};
Dbb=function(a,b,c){var d={Pc:a.Pc,ov:function(m,n){a.ea.ZG(m,n)},
Lp:a.policy.pm,sJ:a.policy.B},e=s9a(b,a.policy,a.G)?2:1;e!==a.Y&&(a.Y=e,Jbb(a));c=Hbb(a,c);if((a.policy.j||a.policy.ra)&&a.policy.B&&c.wk){for(var f=e="",h=g.v(c.wk),l=h.next();!l.done;l=h.next())l=l.value,a.videoData.sabrContextUpdates.has(l)?e+="_"+l:f+="_"+l;a.Aa.oa("sabrbldrqs",{ctxts:e,misctxts:f})}Qab(b,c,a.Aa.Zf())||!a.policy.j&&!a.policy.ra||a.Aa.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);d=new gZ(a.policy,b,a.manifest,a.G,a,d,a.Aa.wA(),a.policy.Ch?a.Aa.Zf():void 0);
hZ(a.timing);a.policy.Ya&&a.Aa.oa("sabrcrq",{rn:d.Up(),probe:b.Zr()});return d};
Mbb=function(a,b){if(!b.Na()&&!a.Na()){if(a.policy.B&&b.isComplete()&&b instanceof gZ){var c=a.Aa,d=c.oa;var e=Object.assign(b.Od.er(),{rst:b.state,strm:b.xhr.DC(),d:v8a(b.Od),cncl:b.xhr&&b.Cd.D?1:0,rqb:b.w1});e=Object.assign(Sab(b.info),e);d.call(c,"rqs",e)}if(b.isComplete()&&b.Zr())b.dispose();else{if(b.CZ())b instanceof gZ&&D9a(a.timing,b),Jbb(a),Kbb(a);else if(b.Qm()){c=a.ea.ex();if(d=b instanceof gZ){var f,h;d=!!((f=b.info.j)==null?0:(h=f.zr)==null?0:h.Gy)}d&&c&&a.Aa.Nu(c);b instanceof n_?a.j.pop():
(f=1,b.canRetry()&&Cab(a.Aa)&&(Lbb(a,b),f=0),a.Aa.handleError(b.ih(),b.Kr(),f))}else{if(a.Aa.isSuspended&&!b.isComplete())return;Kbb(a);a.policy.G&&(b.isComplete()||a.policy.YA)&&(c=b.Up(),a.Sa!==c&&(h=b.BY(),f=h.ij,d=h.uv,h=h.eq,!a.K||d<0||(a.Sa=c,c=M9a(a.Z,d,f),d=a.Aa.Fc()||0,G9a(a.Z,f,c/1E3-d,h,a.K))))}b.Na()||b instanceof n_||(b.isComplete()?f=rab(b,a.policy,a.G):(f=qab(b,a.policy,a.G),f===1&&(a.Oa=!0)),f!==0&&(b=new c_(1,b.info.resource),b.Uj=f===2,Dbb(a,b)))}}a.Aa.jf()};
Kbb=function(a){for(;a.j.length&&a.j[0].bZ(a.ue());){var b=a.j.shift();Nbb(a,b);a.policy.Zd&&b instanceof gZ&&b.dispose()}a.j.length&&Nbb(a,a.j[0])};
Nbb=function(a,b){if(a.policy.Ci){var c=new Set(b.Ir(a.ue()));c=g.v(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(!(d=!(b instanceof n_))){var f=a.D,h=f.manifest.hc;d=Nab(f.C,h);f=Nab(f.videoInfos,h);d=d.includes(e)||f.includes(e)}if(d&&(d=b.Zn(e,a.ue()),b.Kl(e,a.ue()))){e=b.Qk(e,a.ue());if(a.policy.j&&(f=d[0].j.info,(h=a.Aa.Zf())&&f)){var l=b.dY();if(h.api.L("html5_ssap_set_format_info_for_all")||l!==h.ea.getVideoData().clientPlaybackNonce)if(h=UX(h.timeline,l))if(h=h[0].getVideoData())f.Kh()?
h.D=f:h.B=f}e=g.v(e);for(f=e.next();!f.done;f=e.next()){f=f.value;a.policy.B&&b instanceof n_&&a.Aa.oa("omblss",{s:f.info.Tc()});h=f.info.j.info.Kh();var m=f.info.j;if(h){l=void 0;var n=a.D,p=(l=b.SP(a.ue()))==null?void 0:l.token;m!==n.K&&(n.K=m,n.lL(m,n.audioTrack,p))}else l=void 0,Fab(a.D,m,(l=b.SP(a.ue()))==null?void 0:l.token);l=h?a.audioTrack:a.videoTrack;b instanceof n_&&(l.N=!1,b instanceof n_&&(h?w9a(a.timing):v9a(a.timing)));KZ(l,d,f)}}}}else for(d=b.cY()||vZ(a.va),c=new Set(b.Ir(a.ue())),
a.policy.j?e=c:e=[((f=d.video)==null?void 0:aK(f.info,a.manifest.hc))||"",((h=d.audio)==null?void 0:aK(h.info,a.manifest.hc))||""],d=g.v(e),e=d.next();!e.done;e=d.next())if(e=e.value,c.has(e)&&b.Kl(e,a.ue()))for(f=b.Qk(e,a.ue()),f=g.v(f),h=f.next();!h.done;h=f.next())h=h.value,a.policy.B&&b instanceof n_&&a.Aa.oa("omblss",{s:h.info.Tc()}),l=b.Zn(e,a.ue()),m=(n=h.info.j.info.Kh())?a.audioTrack:a.videoTrack,b instanceof n_&&(m.N=!1,b instanceof n_&&(n?w9a(a.timing):v9a(a.timing))),KZ(m,l,h)};
Lbb=function(a,b){a.policy.ra?a.j.splice(a.j.indexOf(b)).forEach(function(c){c.dispose()}):(a.j.pop(),b==null||b.dispose())};
Obb=function(a,b){for(var c=[],d=0;d<a.j.length;d++)b&&a.j[d]instanceof n_?c.push(a.j[d]):a.j[d].dispose();a.j=c};
Pbb=function(a,b,c){b.bO(c.Ht,c.version)?a.videoData.YA=c.version||"":a.Aa.oa("ssap",{v:c.version,tlnu:1})};
Jbb=function(a){a.wk.clear();if(a.videoData.sabrContextUpdates.size>0)for(var b=g.v(a.videoData.sabrContextUpdates.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;((d=a.videoData.sabrContextUpdates.get(c))==null?0:d.sendByDefault)&&a.wk.add(c)}if(a.policy.ra&&a.j.length)for(b=g.v(a.j),c=b.next();!c.done;c=b.next())(c=c.value.UP())&&c.type&&c.sendByDefault&&a.wk.add(c.type)};
Qbb=function(a){a.policy.Ub&&(a.Da=void 0,a.Fq=0)};
Rbb=function(a,b){if(b.Qm()||b.Na()){var c=a.Aa,d=c.oa,e=b.state;a=a.ue();var f,h;if((b=(f=b.eg)==null?void 0:f.get(a))==null)b=void 0;else{f=0;a=b.Ir();for(var l=0;l<a.length;l++){var m=void 0;f+=((m=b.bd.get(a[l]))==null?void 0:m.bytesReceived)||0}b=f}b=(h=b)!=null?h:-1;d.call(c,"sabromb",{s:e,tbytes:b})}else a.j.push(b),b.JH.push(a),hZ(a.timing)};
o_=function(a,b){return!a.Aa.Fp&&NY(b)&&(b.So()!==NY(b)||a.Aa.isSuspended)};
Sbb=function(a){var b="";a=g.v(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;b+=".cid."+c.clipId;if(c.Xq){var d=c.Xq;b+=".vid."+d.K3+(".pst."+d.N0)+(".ps."+d.O0)+(".lst."+d.I$)+(".ld."+d.a_)+(".ls."+d.b_)}c.wR&&(b+=".nonv."+c.wR.KK)}return b};
Tbb=function(a,b,c,d,e){this.Aa=a;this.policy=b;this.schedule=c;this.Qz=d;this.Y=e;this.ra=NaN;this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1;this.Z=NaN};
Ubb=function(a,b,c,d,e,f){return b.zj&&b.Tf&&c===3?new Tbb(a,b,d,e,f):null};
Vbb=function(a,b){if(a.policy.gD){var c=b.info.ub,d=iR(a.schedule);b=b.index.Sj;c=Math.max(1,d/c);a.Z=Math.round(Math.max(((c-1)*b+a.policy.Cc)/c,b-a.policy.Xk)*1E3)}};
Ybb=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.K,f=e>=a.policy.ow,h=!1;if(f){var l=0;!isNaN(b)&&b>a.G&&(l=b-a.G,a.G=b);l/e<a.policy.kD&&(h=!0);a.K=c}c=d>=a.policy.Xk&&!a.C;if(!f&&!c&&Wbb(a,b))return NaN;c&&(a.C=!0);a:{d=h;c=(0,g.iC)()/1E3-(a.Qz.jh()||0)-a.N.j-a.policy.Cc;f=a.B.startTime;c=f+c;if(d){if(isNaN(b)){p_(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.Wk;d<c&&(c=d)}else a.C&&(d=c+a.policy.Cc-a.ra+a.policy.mD,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.Wk))),c=d);f=c=Math.max(c,
f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&Wbb(a,b))return Xbb(a,b),NaN;if(a.j<=a.B.startTime)return p_(a,NaN,"y",b),a.clear(),NaN;if(!a.Y(a.j,!1))return!Xbb(a,b)&&h&&(p_(a,NaN,"t",b),a.clear()),NaN;h=a.j;p_(a,h,"s",b);a.clear();return h};
Xbb=function(a,b){return a.Y(a.j,!0)?!1:(p_(a,NaN,"ns",b),a.clear(),!0)};
Wbb=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.C?a.policy.Wk:a.policy.iD)};
p_=function(a,b,c,d){var e=a.D.Kr();e.ssr_sk=(b*1E3).toFixed(0);e.ssr_t=(a.j*1E3).toFixed(0);e.ssr_r=c;e.ssr_st=(a.startTimeSecs*1E3).toFixed(0);e.ssr_n=(0,g.iC)().toFixed(0);e.ssr_f=(a.N.j*1E3).toFixed(0);e.ssr_fa=a.C?"1":"0";e.ssr_o=(a.Qz.jh()*1E3||0).toFixed(0);e.ssr_v=(d*1E3).toFixed(0);b=a.B.j.index;b.qo(a.B.Qa,!0)&&(e.ssr_ist=(b.getStartTime(a.B.Qa)*1E3).toFixed(0),e.ssr_id=(b.getDuration(a.B.Qa)*1E3).toFixed(0));a.Aa.oa("ssr",e)};
Zbb=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((c=window.h5vcc)==null?0:c.cVal)a.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),a.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used");return a};
g.r_=function(a,b,c,d,e,f,h,l,m,n){l=l===void 0?!1:l;g.I.call(this);var p=this;this.ea=a;this.schedule=b;this.policy=c;this.manifest=d;this.va=m;this.Qb=n;this.timing=new u9a(this.Qb);this.Z=new V7a(this.schedule,this.policy);this.Ra=null;this.ib=new g.Dv(this.jf,0,this);this.XF=new g.Dv(this.jf,1E3,this);this.Lb=new g.Dv(this.jf,void 0,this);this.Xa=new g.Dv(this.jf,1E4,this);this.Kb=new g.Dv(this.jda,250,this);this.N=this.currentTime=NaN;this.Ga=this.Fp=0;this.gs=this.oJ=this.isSuspended=!1;this.Oa=
"";this.aJ=new cR(5);this.Ub={};this.timestampOffset=NaN;this.rb=!1;this.eb=0;this.K=null;this.Da=NaN;this.Ya=this.La=!1;this.logger=new g.FQ("dash");this.jq=0;this.Sa=!1;this.Wa=0;this.Ab=Infinity;this.wd={getAudioTrack:function(){return p.audioTrack},
getManifest:function(){return p.manifest},
crb:function(){return p.Y},
jf:function(){p.jf()},
TB:function(){p.Fp=0;p.TB()},
Srb:function(G){return q_(p,p.videoTrack,p.Ra.B,G)}};
a=m&&m.Ir();m&&(j6a(m,this.manifest,this.policy),this.Da=Date.now());this.j=new Q9a(this,this.Z,c,this.manifest,e,a);c=V9a(this.j,f,h&&h.id);this.audioTrack=new HZ(this,this.policy,c.audio,this.timing);this.videoTrack=new HZ(this,this.policy,c.video,this.timing);this.videoTrack.D.Ha=this.audioTrack.NP();this.Ha={updateend:this.J4,error:this.yaa};g.M(this,this.ib);g.M(this,this.XF);g.M(this,this.Lb);g.M(this,this.Xa);c=this.policy.KD&&this.policy.lk?!IEa(this.videoTrack.j.info):!1;this.Cb=g$a({pj:this.policy.N.pj||
c,lk:this.policy.lk&&!c,jt:this.policy.jt});this.G=Ubb(this,this.policy,this.Cb,this.schedule,this.aJ,function(G,K){return $bb(p,G,K)});
this.B=new F9a(this,this.manifest,this.policy,this.videoTrack,this.audioTrack,l);this.Qg=new FY(this,this.manifest,this.videoTrack,this.audioTrack,this.policy);l=this.policy.hw?this.ea.getVideoData().Bi:null;this.D=new WZ(this,this.policy,this.videoTrack,this.audioTrack,this.Ub,this.B,this.timing,this.Z,this.schedule,this.manifest,this.j,this.G,c,l);g.M(this,this.D);this.C=new b_(this,this.policy,this.videoTrack,this.audioTrack,this.manifest,e,JS(this.ea.getVideoData()),h==null?void 0:h.id);g.M(this,
this.C);Kab(this.C,f);this.Y=new Bbb(this.ea,this,this.policy,this.audioTrack,this.videoTrack,this.manifest,this.schedule,this.j,this.C,this.timing,this.B);g.M(this,this.Y);this.ra=this.ea.zd.Pu.hA;var q,r;if((q=this.ra)==null?0:(r=q.dB)==null?0:r.itagDenylist){var t;this.mL((t=this.ra)==null?void 0:t.dB.itagDenylist)}var u;if((u=this.ra)==null?0:u.playbackStartPolicy){var w,A;j0a(this.policy,(w=this.ra)==null?void 0:w.playbackStartPolicy,3,(A=this.ra)==null?void 0:A.Up())}if(this.policy.Wf){e=this.ue();
var C;(f=e?(C=this.ra)==null?void 0:C.E_.get(e):void 0)&&this.Y.wq(f)}if(!this.manifest.va){var F;C=(F=this.ra)==null?void 0:F.VZ;(C==null?0:C.lK)&&(C==null?0:C.mK)&&this.manifest.hc&&fUa(this.manifest,C.lK,C.mK)}this.logger.debug("Created")};
acb=function(a,b){if(a.policy.j&&!a.policy.sz)return!1;var c=aK(b.j.info,a.manifest.hc),d,e=((d=a.va)==null?void 0:d.Zn(c))||[];if(e.length===0)return a.oa("ombmsi",{}),!1;e=new fQ(e);if(d=!a.policy.Xa||isFinite(a.getCurrentTime())||a.ea.ex()){a:{d=a.getCurrentTime();e=g.v(e.kb);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.type===3&&d>=f.Xe&&d<=f.Pf){d=!0;break a}d=!1}d=!d}if(d)return a.oa("ostmf",{ct:a.getCurrentTime(),a:b.j.info.Kh()}),!1;(a=a.va)!=null&&(a.bd.get(c).aE=!0);return!0};
bcb=function(a){if(!a.manifest.hc)return!0;var b=a.ea.getVideoData();if(b.L("html5_skip_live_preroll_onesie")&&s_(a.ea)||b.L("html5_skip_live_preroll_onesie_post_live")&&s_(a.ea)&&(b.je||b.isPremiere))return a.oa("ombpa",{}),!1;var c,d;if(a.policy.IC&&!!((c=a.ra)==null?0:(d=c.VZ)==null?0:d.kda)!==a.manifest.je)return a.oa("ombplmm",{}),!1;c=b.Qb||b.liveUtcStartSeconds||b.Zd;if(a.manifest.je&&c)return a.oa("ombplst",{}),!1;if(a.manifest.va)return a.oa("ombab",{}),!1;c=Date.now();if(DQ(a.manifest)&&
!isNaN(a.Da)&&c-a.Da>a.policy.WD*1E3)return a.oa("ombttl",{}),!1;if(!(a=a.manifest.gf&&a.manifest.C||!a.policy.FD&&a.manifest.isPremiere||MS(b))&&(a=b.L("html5_disable_onesie_media_for_mosaic"))){var e;a=!((e=b.playerResponse)==null||!e.compositePlayabilityStatus)}return a||b.L("html5_disable_onesie_media_for_ssdai")&&b.isDaiEnabled()&&b.enableServerStitchedDai?!1:!0};
ccb=function(a,b){var c=b.j,d=a.manifest.hc;if(bcb(a))if(a.va&&a.va.bd.has(aK(c.info,d))){if(d=aK(c.info,d),acb(a,b)){var e=new fQ(a.va.Zn(d)),f=function(h){try{if(h.Qm())a.handleError(h.ih(),h.Kr()),RZ(b,h),gQ(h.info)&&ZZ(a.D,b,c,!0),a.jf();else if(Aab(a.D,h)){var l;(l=a.B)==null||H9a(l,h.info,a.K);a.jf()}}catch(m){h=IJ(m),a.handleError(h.errorCode,h.details,h.severity),a.ll()}};
c.C=!0;OSa(e)&&(V$a(b,new GY(a.policy,d,e,a.va,f)),hZ(a.timing))}}else a.oa("ombfmt",{})};
t_=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.getCurrentTime();var c=$Z,d=a.videoTrack,e=a.j;b=e.nextVideo&&e.nextVideo.index.Ki(b)||0;e.Ha!==b&&(e.La={},e.Ha=b,sZ(e,e.j));b=!e.j.isLocked()&&e.Y>-1&&(0,g.iC)()-e.Y<e.policy.RD*1E3;var f=e.nextVideo&&wZ(e,e.nextVideo.info)*3<EY(e.Da);if(!b||f)rZ(e),tZ(e),e.va=e.va||e.nextVideo!==e.C;e.nextVideo&&!e.nextVideo.index.isLoaded()&&(e.Ha=-1);c(a,d,e.nextVideo);$Z(a,a.audioTrack,a.j.B)};
u_=function(a,b){a.oJ=b;a.policy.Ha||(a.logger.debug("Suspended."),a.isSuspended=!0,a.policy.nw&&(a.XF.stop(),a.ib.stop()))};
I9a=function(a,b,c,d){a.policy.G&&a.kH(!1);cab(a.videoTrack,d,c,b);cab(a.audioTrack,d,c,b);CQ(a.manifest,d,!0);CQ(a.manifest,d,!1);a.oa("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
dcb=function(a){a.logger.debug("Rebuffering.");a.gs=!0;if(a.policy.La&&a.Ra){var b,c,d,e;a.oa("lr_rb",{c:a.getCurrentTime(),s:a.isSeeking(),ab:fK(a.Ra.j.Ee()),ala:(b=JZ(a.audioTrack))==null?void 0:b.Tc(),alr:(c=a.audioTrack.B)==null?void 0:c.Tc(),vb:fK(a.Ra.B.Ee()),vla:(d=JZ(a.videoTrack))==null?void 0:d.Tc(),vlr:(e=a.videoTrack.B)==null?void 0:e.Tc()})}a.policy.aD&&a.ea.yA()!==0&&a.oa("sps_rebuffer",{c:a.getCurrentTime()})};
ecb=function(a){a.policy.Wa=!1;try{a.TB()}catch(b){g.mE(b)}};
hcb=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;a.policy.Ha&&(a.logger.debug("disable updateMetadataWithoutMediaSource"),a.policy.Ga&&a.oa("loader",{setsmb:0}),a.ll(),a.policy.Ha=!1);a.logger.debug("attaching media source");fcb(a,d);if(mV(a.policy)&&!oK()&&a.policy.Dn)a.oa("ssap",{delaysb:1}),a.Ra=b;else{if(!vK(b)){var e=NY(a.videoTrack);e=e?e.info.j:a.videoTrack.j;var f=NY(a.audioTrack);f=f?f.info.j:a.audioTrack.j;a.policy.j&&a.oa("ssap",{initsb:1,v:e.info.id,vf:e.info.sb,a:f.info.id,af:f.info.sb});
VEa(b,e.info,f.info,a.policy.Lb)}gcb(a,b,c,d);try{a.jf()}catch(h){g.mE(h)}}};
gcb=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;IZ(a.videoTrack,b.B||null,d);IZ(a.audioTrack,b.j||null,d);a.Ra=b;a.Ra.G=!0;c||a.resume();g.HE(b.j,a.Ha,a);g.HE(b.B,a.Ha,a)};
fcb=function(a,b){b=b===void 0?!1:b;a.Ra&&a.Ra.j&&a.Ra.B&&(IE(a.Ra.j,a.Ha,a),IE(a.Ra.B,a.Ha,a));IZ(a.audioTrack,null,b);IZ(a.videoTrack,null,b);a.Ra&&(a.Ra.G=!1);a.Ra=null};
icb=function(a){a.Ra&&a.Ra.Sg()&&(a.cA(),a.policy.VC&&a.handleError("fmt.unplayable",{unexpected:1},1))};
kcb=function(a,b){if(!a.Na())if(mV(a.policy)){if(!Lab(a.C,b)){var c=a.C.B;Kab(a.C,b);var d=!1;d=b.isLocked()&&b.reason==="m"&&Mab(a.C,b.j);var e=a.policy.Vf&&b.reason==="l";c=c.j>b.j&&b.reason==="b";d||e||c?(a.ea.Hq({reattachOnConstraint:d?"u":e?"drm":"perf",lo:b.B,up:b.j}),a.policy.Fo||(a.C.j.B=!1)):(a.policy.Fo&&(a.C.j.B=!1),v_(a))}}else if(!W9a(a.j,b)&&a.videoTrack){a.logger.debug(function(){return"Setting constraint: r="+b.reason+" u="+b.j});
c=a.j.j;jcb(a,Y9a(a.j,b));t_(a);d=b.isLocked()&&b.reason==="m"&&a.j.va;e=a.policy.Vf&&b.reason==="l"&&TZ(a.videoTrack);c=c.j>b.j&&b.reason==="b";var f=a.j.eb&&!oK();d||e||c||f?a.ea.Hq({reattachOnConstraint:d?"u":e?"drm":f?"codec":"perf"}):v_(a)}};
lcb=function(a,b,c){if((!a.Ra||rK(a.Ra)&&!a.policy.mm)&&!a.Qg.isSeeking()&&(mV(a.policy)||TZ(b)&&b.j.qg()&&a.j.ra)){var d=a.getCurrentTime()+Z7a(a.Z,b,c);a.logger.debug(function(){return"Clearing back to "+d.toFixed(3)});
bab(b,d)}};
jcb=function(a,b){b&&(a.logger.debug(function(){return"Logging new format: "+dK(b.video.info)}),mcb(a.ea,new mZ(b.video,b.reason)));
if(a.j.Xa){var c=vZ(a.j,"a");a.ea.ey(new mZ(c.audio,c.reason))}};
yab=function(a){a=a.ea;a=a.videoData.videoId?a.videoData.V3:void 0;if(a)return bR(a)||void 0};
v_=function(a){g.Ev(a.ib)};
ncb=function(a,b){var c=(0,g.iC)()-b,d=PZ(a.audioTrack,!0)*1E3,e=PZ(a.videoTrack,!0)*1E3;a.logger.debug(function(){return"Appends paused for "+c});
if(a.policy.B&&(a.oa("apdpe",{dur:c.toFixed(),abuf:d.toFixed(),vbuf:e.toFixed()}),nV(a.policy))){var f=EY(a.Z);a.oa("sdps",{ct:b,ah:d.toFixed(),vh:e.toFixed(),mr:$7a(a.Z,a.gs,f),bw:f.toFixed(),js:a.isSeeking(),re:+a.gs,ps:(a.policy.LF||"").toString(),rn:(a.policy.KF||"").toString()})}};
ocb=function(a){if(a.policy.j&&UZ(a.videoTrack)&&UZ(a.audioTrack))return"ssap";if(iab(a.videoTrack))return a.logger.debug("Pausing appends for server-selectable format"),"ssf";if(a.policy.rb&&kab(a.videoTrack)&&kab(a.audioTrack))return"updateEnd";if(SZ(a.audioTrack)||SZ(a.videoTrack)&&a.videoTrack.j.info.sb!=="f")return"";if(a.Qg.isSeeking()){var b=a.Z;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.C){var e=b.policy.Iq;nV(b.policy)&&(e=$7a(b,!1,EY(b)));b=e;c=PZ(d,!0)>=b&&PZ(c,!0)>=b}else c.C.length||
d.C.length?(e=c.j.info.ub+d.j.info.ub,e=10*(1-EY(b)/e),b=Math.max(e,b.policy.Iq),c=PZ(d,!0)>=b&&PZ(c,!0)>=b):c=!0;if(!c)return"abr";c=a.videoTrack;if(c.C.length>0&&c.D.B.length===1&&C$a(c.D).info.D<c.Sa)return"seek"}if(a.policy.G&&a.policy.Vq&&lab(a.videoTrack,a.B)&&lab(a.audioTrack,a.B))return"ssdai";c=!a.policy.Kj||a.getCurrentTime()<10;a.policy.Hn||(c=c||a.videoTrack.j.info.video.j>360);d=nV(a.policy)&&a.policy.nm;if(!a.gs||!d&&c)return"";c=a.policy.Kj;nV(a.policy)&&(c=$7a(a.Z,a.gs,EY(a.Z)));c=
eab(a.videoTrack,a.getCurrentTime(),c)||eab(a.audioTrack,a.getCurrentTime(),c);return nV(a.policy)?c?"mbnm":"":(a.videoTrack.C.length>0||a.audioTrack.C.length>0||sab(a.D,a.videoTrack,a.audioTrack)||sab(a.D,a.audioTrack,a.videoTrack))&&c?"nord":""};
pcb=function(a){if(a.G){var b=a.G.jf(a.audioTrack,jK(a.Ra.B.Ee()));b&&a.ea.seekTo(b,{qx:!0,hd:"pollSubsegmentReadahead",vr:!0})}};
tcb=function(a,b,c){if(a.policy.rb&&kab(b))return!1;if(c.HQ())return!0;if(!c.UI())return!1;var d=NY(b);if(!d||d.info.type===6)return!1;var e=a.policy.PD;if(e&&!d.info.Ue){var f=d.info.Xe-a.getCurrentTime();if(d.info.D<f*e)return!1}var h;if((h=a.B)==null||!L9a(h,b,d.info.Qa))return a.Qg.isSeeking()&&v_(a),!1;if(!q_(a,b,c,d.info))return!1;if(a.manifest.B&&d.info.Tb===0){if(e=qcb(b,c,d))f=JZ(b),a.oa("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Qa});f=g.YJ(d.info.j.info);
a.policy.Ud&&f&&!e&&mTa(d)}e=a.G&&!!a.G.D&&b.j.info.audio;f=a.manifest.isManifestless||d.G;if(!(a.manifest.B&&d.info.Tb!==0||f&&!e)&&rcb(a,c,d))return!0;if(e)return!1;e=YZ(a,b);e=a.getCurrentTime()+e;if(d.info.Xe>e)return a.policy.C&&!a.Ga&&(a.Ga=(0,g.iC)()),!1;a.Ga&&(a.Ga=0);var l;a.policy.Ed&&c===((l=a.Ra)==null?void 0:l.j)&&a.Sa&&(c.cK()===0?(a.Sa=!1,a.policy.Ed=!1):a.Wa=c.cK());if(!scb(a,c,d))return!1;a.policy.rb?d.isLocked=!0:(b.Rs(d),a$a(a.j,d.info),a.logger.debug(function(){return"Appended "+
d.info.Tc()+", buffered: "+fK(c.Ee())}));
return!0};
scb=function(a,b,c){var d=a.policy.La?(0,g.iC)():0,e=c.G?c.info.j.j:null,f=c.j;c.G&&(f=ucb(a,c,f)||f);var h=qN(f);f=a.policy.La?(0,g.iC)():0;e=vcb(a,b,h,c.info,e);a.policy.La&&(!c.info.Tb||c.info.Ue||c.info.Xe<10)&&(b=b.qc({as:c.info.Tc(),pdur:Math.round(f-d),adur:Math.round((0,g.iC)()-f)}),b.omt=(a.getCurrentTime()+a.Fc()).toFixed(3),b.to=a.Fc(),a.oa("sba",b));if(e==="s")return a.La&&(a.logger.debug("Retry succeed, back to normal append logic."),a.La=!1,a.Ya=!1),a.eb=0,!0;if(e==="i"||e==="x")return wcb(a,
"checked",e,c.info),!1;if(e==="q"){if(!a.La)return a.logger.debug("QuotaExceeded, retrying."),a.La=!0,!1;if(!a.Ya)return a.Ya=!0,a.ea.seekTo(a.getCurrentTime(),{hd:"quotaExceeded",vr:!0}),!1;c.info.Cg()?(b=a.policy,b.Da=Math.floor(b.Da*.8),b.Fd=Math.floor(b.Fd*.8),b.va=Math.floor(b.va*.8)):(b=a.policy,b.ib=Math.floor(b.ib*.8),b.va=Math.floor(b.va*.8));mV(a.policy)?oZ(a.C.j,c.info.j,!1):uZ(a.j,c.info.j)}a.ea.Hq({reattachOnAppend:e});return!1};
ucb=function(a,b,c){var d;if(d=a.policy.lw&&a.Ra&&!a.Ra.ra&&!a.ea.uJ())b=b.info.j.info,d=b.Ne()&&VJ(b)&&b.video&&b.video.width<3840&&b.video.width>b.video.height;if(d&&(a.Ra.ra=!0,MJ('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=z$a(c),a.policy.B&&a.oa("sp4k",{s:!!c}),c};
wcb=function(a,b,c,d){var e="fmt.unplayable",f=1;c==="x"||c==="m"?(e="fmt.unparseable",mV(a.policy)?!d.j.info.video||pZ(a.C.j).size>0||oZ(a.C.j,d.j,!1):!d.j.info.video||pZ(a.j.G).size>0||uZ(a.j,d.j)):c==="i"&&(a.eb<15?(a.eb++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=eQ(d);var h;d.mrs=(h=a.Ra)==null?void 0:wK(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
R$a=function(a,b,c,d,e){var f=a.manifest;var h=!1,l=-1;for(p in f.j){var m=bK(f.j[p].info.mimeType)||f.j[p].info.Cg();if(d===m)if(m=f.j[p].index,m.qo(b.Qa)){if(!f.Xa){h=m;m=b;var n=h.Un(m.Qa);n&&n.startTime!==m.startTime?(h.segments=[],h.vN(m),h=!0):h=!1}h&&(l=b.Qa)}else m.vN(b),h=!0}if(l>=0){var p={};f.publish("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;r8a(a.Qg,b,d,f);a.B.XR(b,c,d,e);b.Qa===a.manifest.gf&&f&&AQ(a.manifest)&&b.startTime>AQ(a.manifest)&&(a.manifest.ib=b.startTime+(isNaN(a.timestampOffset)?
0:a.timestampOffset),a.Qg.isSeeking()&&a.Qg.j<a.manifest.pd()&&a.Qg.seek(a.manifest.pd(),{}))};
q_=function(a,b,c,d){b=JZ(b);!b||b.Ue||dQ(b,d)||c.abort();if(!c.cF()||oK())try{c.lU(d.j.info.containerType,d.j.info.mimeType)}catch(e){return c=e,g.nE(c),a.oa("ctexp",{name:c.name,msg:c.message}),!1}else d.j.info.containerType!==c.cF()&&a.oa("ctu",{ct:oK(),prev_c:c.cF(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.En&&b&&(d=0+b.duration,b=-b.j,0===c.SE()&&d===c.FJ()||c.mT(0,d),b!==c.Fc()&&(c.Mq(b),QX&&T$a(a.audioTrack.NP(),c.ZP())));return!0};
rcb=function(a,b,c){c.info.j.qg();var d=c.info.j.j;if(!d||!b.UI()||b.Vw()===d)return!1;var e=d,f=b.NJ();if(a.policy.Uv&&f&&b.isView()&&g.YJ(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=fSa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.oa("fenc",{})}a.policy.lw&&(f=ucb(a,c,new nN([e])))&&(e=qN(f));f=null;(h=c.info.j.ax(0,c.info.clipId))&&(f=h.kb[0]);a.policy.La&&a.oa("sbi",b.qc({as:c.info.Tc()}));a.policy.qz&&b.abort();d=vcb(a,b,e,f,d);if(d!=="s")return xcb(a,
d,c),!0;c.info.Cg()?z9a(a.timing):A9a(a.timing);a.logger.debug(function(){return"Appended init for "+c.info.j.info.id});
return b.Ak()};
qcb=function(a,b,c){if(b.Vw()==null){a=JZ(a);if(!(b=!a||a.j!==c.info.j)){a:if(a=a.G,c=c.info.G,a.length!==c.length)c=!1;else{for(b=0;b<a.length;b++)if(!g.Wb(a[b],c[b])){c=!1;break a}c=!0}b=!c}return b}a=b.Vw();c.info.j.WA()&&nTa(c);c=c.info.j.j;return a!==c&&!g.Wb(a,c)};
vcb=function(a,b,c,d,e){var f=0;if(a.policy.j&&d&&d.clipId&&a.xb){var h;f=(((h=a.xb)==null?void 0:iY(h,d.clipId))||0)/1E3}try{a.policy.j&&b.Fc()!==f&&b.Mq(f);var l,m=b===((l=a.Ra)==null?void 0:l.j)?a.audioTrack:a.videoTrack;a.policy.rb&&(d==null?void 0:d.type)===3&&(m.Ga=new g.Dv(function(){if(!a.Na()&&b.JF()){var p;a.oa("nue",{ls:(p=b.qA())==null?void 0:p.Tc()});b.YI();a.Ra&&a.TB()}},5E3,a),m.Ga.start());
if(a.policy.yp&&(d==null?void 0:d.type)===3){var n;if((n=m.Da)==null?0:n.isActive())g.Fv(m.Da),a.oa("sbac",{as:d.Tc()});m.Da=new g.Dv(function(){a.oa("sbum5s",{as:d.Tc()})},5E3,a);
m.Da.start()}a.policy.uw&&(d==null?void 0:d.j)instanceof iQ&&aQ(d)&&a.oa("poseos",{itag:d.j.info.itag,seg:d.Qa,lseg:d.j.index.Bd(),es:d.j.index.C});b.appendBuffer(c,d,e)}catch(p){if(p instanceof DOMException){if(p.code===11)return"i";if(p.code===12)return"x";if(p.code===22||p.message.indexOf("Not enough storage")===0)return c=Object.assign({name:"QuotaExceededError",buffered:fK(b.Ee()).replace(/,/g,"_"),vheap:NZ(a.videoTrack),aheap:NZ(a.audioTrack),message:g.Cg(p.message,3),track:a.Ra?b===a.Ra.B?
"v":"a":"u"},Zbb()),a.handleError("player.exception",c),"q";g.mE(p)}return"u"}return a.Ra.Sg()?"m":"s"};
MY=function(a,b,c){a.ea.seekTo(b,c)};
EZ=function(a,b){a.ea.oL(b)};
YZ=function(a,b){if(a.La&&!a.gs)return 3;if(a.isSuspended)return 1;var c;if((c=a.Ra)==null?0:c.Ra&&c.Ra.streaming===!1)return 4;c=(b.j.info.audio?a.policy.ib:a.policy.Da)/(b.ub*a.policy.Zl);if(a.policy.hq>0&&a.Ra&&rK(a.Ra)&&(b=b.j.info.video?a.Ra.B:a.Ra.j)&&!b.Ak()){b=b.Ee();var d=gK(b,a.getCurrentTime());d>=0&&(b=a.getCurrentTime()-b.start(d),c+=Math.max(0,Math.min(b-a.policy.hq,a.policy.QD)))}a.policy.va>0&&(c=Math.min(c,a.policy.va));return c};
zcb=function(a){a.Oa&&!a.isSuspended&&jR(a.schedule)&&(ycb(a,a.Oa),a.Oa="")};
ycb=function(a,b){tX(b,"cms",function(c){a.policy.B&&a.oa("pathprobe",c)},function(c){a.ea.handleError(c)})};
Acb=function(a,b){if(a.Ra&&a.Ra.G&&!a.Ra.Sg()&&(b.Fw=PZ(a.videoTrack),b.B=PZ(a.audioTrack),a.policy.B)){var c=NZ(a.videoTrack),d=NZ(a.audioTrack),e=fK(a.Ra.B.Ee(),"_",5),f=fK(a.Ra.j.Ee(),"_",5);Object.assign(b.j,{lvq:c,laq:d,lvb:e,lab:f})}b.bandwidthEstimate=DY(a.Z);a.logger.debug(function(){return FJ(b.j)})};
Bcb=function(a,b){a.K=b;a.B&&(a.B.N=b);a.K.xT(a.videoTrack.j.info.Ne());a.D.B=a.K;a.policy.G&&(a.Y.K=a.K)};
Ccb=function(a,b){if(a.Ra&&a.Ra.B){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;a.getCurrentTime()!==b&&a.resume();if(a.Qg.isSeeking()&&a.Ra&&!a.Ra.Sg()){var c=a.getCurrentTime()<=b&&b<a.getCurrentTime()+10,d=hK(a.Ra.B.Ee(),a.getCurrentTime()+XZ);c&&d&&(a.Qg.G=!1)}a.Qg.isSeeking()||a.policy.Cb||(a.currentTime=b);g.Ev(a.XF)}};
Dcb=function(a,b){var c=$$a(a.videoTrack).find(function(d){return d.startTime>=b&&$bb(a,d.startTime,!1)});
return c&&c.startTime<b+c.duration*1.5?c.startTime+.1:0};
$bb=function(a,b,c){if(!(a.videoTrack.j.qg()&&a.audioTrack.j.qg()&&a.Ra&&a.Ra.B&&a.Ra.j))return!1;if(c&&a.manifest.isManifestless&&(a.videoTrack.K===-1||a.audioTrack.K===-1))return!0;var d=JY(a.videoTrack,b,c);if(isNaN(d))return!1;a=JY(a.audioTrack,a.policy.Tf?b:d,c);return isNaN(a)?!1:!0};
a_=function(a){a.ll();a.Qg.isSeeking()&&a.logger.debug("seeking cancelled by seek-to-head");a.G&&Vbb(a.G,a.videoTrack.j);v_(a);return m8a(a.Qg)};
$Z=function(a,b,c,d){(d===void 0?0:d)&&!b.La&&(oK()||(d=b.Sb)&&d.Ex(c.info)||Ecb(a,b,c),b.La=!0);b.j!==c&&(a.logger.debug(function(){return"Setting target itag: "+c.info.id+" (was "+b.j.info.id+")"}),b.j=c)};
Ecb=function(a,b,c){if(a.Ra){var d=c.info.Cg(),e=d?a.Ra.B:a.Ra.j;e&&IE(e,a.Ha,a);a.oa("ssap",{reinitsb:1,itag:c.info.id,mime:c.info.mimeType});e=a.Ra;var f=c.info,h=a.policy.Lb;h=h===void 0?"":h;if(e.Ra){h=(c=f.Cg())?f.mimeType+h:f.mimeType;var l=c?"1":"0";e.yg&&e.yg.webkitSourceAddId(l,h);var m=c?e.B:e.j;m&&IE(m,e.D,e);(m=c?e.Y:e.Z)&&e.Ra.removeSourceBuffer(m);var n;m=(n=e.Ra)==null?void 0:n.addSourceBuffer(h);c?e.Y=m:e.Z=m;n=new nK(m,e.yg,l,SJ(h),f.sb,c);sK&&g.HE(n,e.D,e);c?e.B=n:e.j=n;g.M(e,n)}d=
d?a.Ra.B:a.Ra.j;IZ(b,d||null);d&&g.HE(d,a.Ha,a)}else a.oa("ssap",{missmse:1})};
Gcb=function(a,b){var c=JZ(b),d;(d=!c)||(c=Math.min(c.Xe+XZ,c.Pf),d=b.Sb?hK(b.Sb.Ee(),c):!0);d&&Fcb(a,b===a.audioTrack)};
Fcb=function(a,b){if(a.policy.rb&&a.Ra){var c,d,e=b?(c=a.Ra)==null?void 0:c.j:(d=a.Ra)==null?void 0:d.B;c=b?a.audioTrack:a.videoTrack;if((b=NY(c))&&(e==null?0:e.JF())){e.YI();var f;(f=c.Ga)==null||f.stop();b.isLocked=!1;c.Rs(b);a$a(a.j,b.info);e=e.qA();(e==null?void 0:e.Tc())!==b.info.Tc()&&a.oa("oue",{bls:e==null?void 0:e.Tc(),tls:b.info.Tc()})}}};
Hcb=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.logger.debug(function(){return"Timestamps will be made relative to "+a.timestampOffset}),a.B.Z=a.timestampOffset,a.ea.jS(a.timestampOffset),a.manifest.isManifestless&&(a.manifest.timestampOffset=a.timestampOffset),a.videoTrack.Mq(a.timestampOffset),a.audioTrack.Mq(a.timestampOffset))};
wab=function(a){var b=a.wl().filter(function(d){return d.namespace==="ad"});
b=g.v(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};
Icb=function(a){var b=JZ(a.videoTrack),c=JZ(a.audioTrack);return b&&!mab(a.videoTrack)?b.startTime:c&&!mab(a.audioTrack)?c.startTime:NaN};
xcb=function(a,b,c){a.policy.hD&&IS(a.ea.getVideoData())?(a.ea.GF()||wcb(a,"sepInit",b,c.info),Jcb(a.ea,"sie")):wcb(a,"sepInit",b,c.info)};
Cab=function(a){return a.ea.yA()<a.Ab};
g.w_=function(a){this.Yc=a};
x_=function(){g.GE.apply(this,arguments)};
y_=function(a,b,c,d){x_.call(this);var e=this;this.C=-1;this.j={};this.D=new g.Dv(this.G,0,this);g.M(this,this.D);this.B=new g.Dv(function(){e.Na()||(e.D.start(Math.random()*c),e.B.start(b))},a,this);
g.M(this,this.B);d.subscribe("fairplay_next_need_key_info",this.K,this)};
Kcb=function(a){if(!(a.length<=28))for(var b=(0,g.dZ)([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;d<24;++d)b[d]=a[c+d*2];a=vN(b);a=Dg(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++}};
z_=function(a,b,c){x_.call(this);var d=this;this.C=a;this.j=[];this.wd={xqb:function(){return d.j.length}};
this.D=c.gb("html5_ignore_widevine_key_rotation_license_requests");this.B=new g.Dv(function(){d.publish("log_qoe",{wvagt:"timer",reqlen:d.j?d.j.length:-1});if(d.j){if(d.j.length>0){var e=d.j.shift();Lcb(d,e.info)}d.j.length>0&&(e=d.j[0].time-(0,g.iC)(),d.B.start(Math.max(0,e)))}},0);
g.M(this,this.B);b.subscribe("widevine_set_need_key_info",this.G,this)};
Lcb=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&a.C.size>0)c=!0;else{for(var d=g.v(a.C.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.publish("log_qoe",{wvagt:"reqnews",canskip:c});c||a.publish("rotated_need_key_info_ready",b)};
Mcb=function(a){var b=a.url;var c=a.interval;a=a.retries;this.url=b;this.interval=c;this.retries=a};
Ncb=function(a,b){this.statusCode=a;this.message=b;this.B=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null};
Ocb=function(a){var b=tN(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(c===-1)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(e==null)return null;e=e[1];isFinite(e)&&(e=String(e));e=typeof e==="string"?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=wP(b.slice(d+2));if(b==null)return null;a=new Ncb(e,a.subarray(c+4));a.statusCode!==0&&(a.errorMessage=g.CEa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new Mcb({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.v(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),e.length===2&&(c[e[1]]=e[0]);else c={};a.j=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a};
Pcb=function(a,b,c){c=c===void 0?"":c;g.I.call(this);this.message=a;this.requestNumber=b;this.Ye=c;this.onError=this.onSuccess=null;this.j=new g.Rm(5E3,2E4,.2)};
Qcb=function(a,b,c){a.onSuccess=b;a.onError=c};
Scb=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.Na())if(e.status!==0&&e.response)if(KG("drm_net_r",void 0,a.Ye),e=new Uint8Array(e.response),e=Ocb(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else Rcb(a,e)},
onError:function(e){Rcb(a,e)}};
c&&(b=Qfa(b,"access_token",c));g.HA(b,d)};
Rcb=function(a,b){if(!a.Na())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
Ucb=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.Na()){KG("drm_net_r",void 0,a.Ye);var h=f.status==="LICENSE_STATUS_OK"?0:9999,l=null;if(f.license)try{l=Dg(f.license)}catch(u){g.mE(u)}if(h!==0||l){l=new Ncb(h,l);h!==0&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.v(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=Tcb[q.trackType];if(r){r==="HD"&&f.isHd720&&(r="HD720");q.isHdr&&(r+="HDR");h[r]||
(m.push(r),h[r]=!0);var t=null;try{t=Dg(q.keyId)}catch(u){g.mE(u)}t&&(n[g.Bg(t,4)]=r)}}l.B=m;l.j=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f.sabrLicenseConstraint&&(l.sabrLicenseConstraint=Dg(f.sabrLicenseConstraint));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.Na())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.SW="Bearer "+d);g.lD(c,"player/get_drm_license",b,e)};
Vcb=function(a,b,c,d){g.GE.call(this);this.videoData=a;this.X=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.Ha=[];this.D=[];this.Z=!1;this.j={};this.Da=NaN;this.status="";this.K=NaN;this.B=a.K;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.X.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Da&&(a.vvt=this.videoData.Da,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.X.Da&&(a.authuser=this.X.Da);this.X.pageId&&(a.pageid=this.X.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.oc()))?e[1]:"";e==="ATV"&&(a.cdt=e);this.G=a;this.G.session_id=d;this.ra=!0;this.B.flavor==="widevine"&&(this.G.hdr="1");this.B.flavor==="playready"&&(b=Number(WQ(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&b>=0&&(this.G.mfpe=""+b),this.ra=!1);b="";g.PQ(this.B)?OQ(this.B)?(d=c.B)&&(b="https://www.youtube.com/api/drm/fps?ek="+
Qca(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=vo(this.baseUrl,"ek")||"";if(b=vo(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Ga=this.videoData.L("html5_use_drm_retry");this.Ha=c.Ne?[g.Bg(c.initData,4)]:c.C;A_(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
Zcb=function(a,b){A_(a,{createkeysession:1});a.status="gr";KG("drm_gk_s",void 0,a.videoData.Wa);a.url=Wcb(a);try{a.C=b.createSession(a.Y,function(c){A_(a,{m:c})})}catch(c){b="t.g";
c instanceof DOMException&&(b+=";c."+c.code);a.publish("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.C&&(Xcb(a.C,function(c,d){Ycb(a,c,d)},function(c,d,e){if(!a.Na()){d=void 0;
var f=1;g.PQ(a.B)&&g.tR(a.X)&&a.X.L("html5_enable_safari_fairplay")&&e===1212433232&&(d="ERROR_HDCP",f=a.X.L("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.Na()||(A_(a,{onkyadd:1}),a.N||(a.publish("sessionready"),a.N=!0))},function(c){a.tq(c)}),g.M(a,a.C))};
Wcb=function(a){var b=a.baseUrl;TCa(b)||a.error("drm.net",2,"t.x");if(!vo(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.X.experiments.experiments[e]});
c.length>0&&(a.G.fexp=c.join())}c=g.v(Object.keys(a.G));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Qfa(b,d,a.G[d]);return b};
Ycb=function(a,b,c){if(!a.Na())if(b){A_(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":$cb(a,b);return;default:a.publish("ctmp","message_type",{t:c,l:b.byteLength})}a.va||(KG("drm_gk_f",void 0,a.videoData.Wa),a.va=!0,a.publish("newsession",a));if(LQ(a.B)&&(b=adb(b),!b))return;g.PQ(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=WKa(g.Bg(b)));b=new Pcb(b,++a.requestNumber,a.videoData.Wa);Qcb(b,function(d){bdb(a,
d)},function(d,e,f){if(!a.Na()){var h=0,l;
(l=d.j.B>=3)||(l=a.Ga&&(0,g.iC)()-a.Da>36E4);l&&(h=1,e="drm.net.retryexhausted");A_(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(HJ(h),d)&&cdb(a,d)}});
g.M(a,b);ddb(a,b)}else a.error("drm.unavailable",1,"km.empty")};
$cb=function(a,b){A_(a,{sdpvrq:1});a.K=Date.now();if(a.B.flavor!=="widevine")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.X.j);c=g.to("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:tN(b)}),responseType:"arraybuffer"};
g.KA(c,b,3,500).then(YN(function(d){d=d.xhr;if(!a.Na()){d=new Uint8Array(d.response);var e=tN(d);try{var f=JSON.parse(e)}catch(h){}f&&f.signedResponse?(a.publish("ctmp","drminfo",{provisioning:1}),f=(Date.now()-a.K)/1E3,a.K=NaN,a.publish("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))}}),YN(function(d){a.Na()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
B_=function(a){var b;if(b=a.ra&&a.C!=null)a=a.C,b=!(!a.j||!a.j.keyStatuses);return b};
ddb=function(a,b){a.status="km";KG("drm_net_s",void 0,a.videoData.Wa);if(a.videoData.useInnertubeDrmService()){var c=new g.kD(a.X.Uk),d={context:g.$ta(c.config_||g.LC())};d.drmSystem=edb[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Bg(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!((e=a.videoData.B)==null?0:(f=e.video)==null?
0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.X.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.Da&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Da,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Kb&&(d.context.user.kidsParent={oauthToken:a.videoData.Kb});g.PQ(a.B)&&(d.fairplayKeyId=g.Bg(Rca(a.fairplayKeyId)));g.MR(a.X,g.fT(a.videoData)).then(function(l){Ucb(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.MR(a.X,g.fT(a.videoData)).then(function(l){Scb(b,a.url,l);
a.status="rs"})};
bdb=function(a,b){if(!a.Na())if(A_(a,{onlcsrsp:1}),a.status="rr",b.statusCode!==0)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{KG("drm_kr_s",void 0,a.videoData.Wa);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.publish("newlicense",b.heartbeatParams);b.B&&(a.D=b.B,a.videoData.useInnertubeDrmService()&&
!a.videoData.RD&&a.publish("newlicense",new Mcb({})),a.videoData.RD=!0,a.Z=Ys(a.D,function(d){return d.includes("HDR")}));
b.j&&(a.X.L("html5_enable_vp9_fairplay")&&OQ(a.B)?(c=g.Bg(Rca(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=Vc(b.j,function(d){return{type:d,status:"unknown"}}));
MQ(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=Dg(tN(b.message)):NQ(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=WKa(g.Bg(b.message)));a.C&&(A_(a,{updtks:1}),a.status="ku",a.C.update(b.message).then(function(){KG("drm_kr_f",void 0,a.videoData.Wa);B_(a)||(A_(a,{ksApiUnsup:1}),a.publish("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Cg(d.message,3);
a.error("drm.keyerror",1,d)}));
a.N&&(a.Da=(0,g.iC)());g.PQ(a.B)&&a.publish("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.X.L("html5_enable_vp9_fairplay")&&OQ(a.B)&&a.publish("qualitychange",fdb(a.D));b.sabrLicenseConstraint&&a.publish("sabrlicenseconstraint",b.sabrLicenseConstraint)}};
cdb=function(a,b){var c=b.j.getValue();c=new g.Dv(function(){ddb(a,b)},c);
g.M(a,c);c.start();g.Sm(b.j);A_(a,{rtyrq:1})};
gdb=function(a,b){for(var c=[],d=g.v(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)};
hdb=function(a){var b={};b[a.status]=B_(a)?gdb(a,"."):a.D.join(".");return b};
idb=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};
jdb=function(a,b){for(var c in a.j)if(a.j[c].status==="usable"&&a.j[c].type===b)return!0;return!1};
kdb=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status};
A_=function(a,b){var c=c===void 0?!1:c;FJ(b);(c||a.X.yc())&&a.publish("ctmp","drmlog",b)};
ldb=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};
fdb=function(a){return g.Eb(a,"UHD2")||g.Eb(a,"UHD2HDR")?"highres":g.Eb(a,"UHD1")||g.Eb(a,"UHD1HDR")?"hd2160":g.Eb(a,"HD")||g.Eb(a,"HDHDR")?"hd1080":g.Eb(a,"HD720")||g.Eb(a,"HD720HDR")?"hd720":"large"};
adb=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=Oba(new DOMParser,te(b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&a.childNodes.length!==0?new Uint8Array((0,g.dZ)(Wca(a.childNodes[0].nodeValue)).buffer):null:null};
C_=function(a,b,c,d,e,f){f=f===void 0?!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.NJ(this);g.M(this,this.D);mdb(this)};
mdb=function(a){a.j?(a.D.T(a.j,"message",a.K4),a.D.T(a.j,"keystatuseschange",a.tq),a.j.closed&&a.j.closed.then(YN(function(){a.onClosed()}),null)):a.B&&(tB(a.D,a.B,["mskeymessage",
"webkitkeymessage"],a.j0),tB(a.D,a.B,["mskeyerror","webkitkeyerror"],a.h0),tB(a.D,a.B,["mskeyadded","webkitkeyadded"],a.g0))};
Xcb=function(a,b,c,d,e){a.G=b;a.C=c;a.K=d;a.N=e};
ndb=function(a,b,c){g.mE(c);a.C&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.C(b))};
D_=function(a,b,c,d){d=d===void 0?!1:d;g.I.call(this);this.element=a;this.j=b;this.oa=c;this.N=d;this.K={};this.D=null;this.G=new g.NJ(this);this.C=this.B=null;g.M(this,this.G)};
pdb=function(a,b){b=odb(b,a.j.eb);b=a.C.createSession("video/mp4",b);return new C_(null,null,null,null,b,a.N)};
qdb=function(a,b){for(var c=new Uint8Array(270),d=0;d<135;d++)c[d*2]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);a=a.C.createSession("video/mp4",b,c);return new C_(null,null,null,null,a)};
rdb=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};
odb=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(c.length*2);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};
E_=function(){this.keys=[];this.values=[]};
udb=function(a,b,c){g.GE.call(this);this.element=a;this.videoData=b;this.X=c;this.j=this.videoData.K;this.drmSessionId=this.videoData.drmSessionId||g.tva();this.B=new Map;this.K=new E_;this.N=new E_;this.C=[];this.Oa=2;this.va=new g.NJ(this);this.Sa=this.Ga=!1;this.heartbeatParams=null;this.Ha=this.Y=!1;this.G=null;this.La=!1;this.Da=this.X.L("html5_eme_ignore_teardown_errors");(a=this.element)&&(a.addKey||a.webkitAddKey)||JQ()||pUa(c.experiments);this.X.L("html5_enable_vp9_fairplay")&&OQ(this.j)?
c=sdb:(c=this.videoData.Vj,c=this.j.flavor==="fairplay"||c?rS:sdb);this.Z=c;this.D=new D_(this.element,this.j,this.jL.bind(this),this.Da);g.M(this,this.D);KQ(this.j)&&(this.ra=new D_(this.element,this.j,this.jL.bind(this),this.Da),g.M(this,this.ra));g.M(this,this.va);c=this.element;this.j.keySystemAccess?this.va.T(c,"encrypted",this.Waa):tB(this.va,c,KQ(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.yba);tdb(this);a:switch(c=this.j,a=this.X.experiments,b=this.B,c.flavor){case "fairplay":jra()>
19.2999?(a=c.xw,c=c.uw,c>=a&&(c=a*.75),b=(a-c)*.5,c=new y_(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new z_(b,this,a);break a;default:c=null}if(this.G=c)g.M(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.MW,this),this.G.subscribe("log_qoe",this.rj,this);pUa(this.X.experiments);this.rj({cks:this.j.getInfo()})};
tdb=function(a){var b=a.D.hO();b?b.then(YN(function(){vdb(a)}),YN(function(c){if(!a.Na()){g.mE(c);
var d="t.a";c instanceof DOMException&&(d+=";n."+c.name+";m."+c.message);a.publish("licenseerror","drm.unavailable",1,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(a.rj({mdkrdy:1}),a.Y=!0);
a.ra&&(b=a.ra.hO())};
xdb=function(a,b,c){a.Sa=!0;c=new BZ(b,c);a.X.L("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));wdb(a,c)};
wdb=function(a,b){if(!a.Na()){a.rj({onInitData:1});if(a.X.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.rj({initd:b.initData.length,ct:b.contentType});if(a.j.flavor==="widevine")if(a.Ga&&!a.videoData.isLivePlayback)F_(a);else{if(!(a.X.L("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Ne)){a.Ga=!0;c=b.cryptoPeriodIndex;var d=b.j;t$a(b);b.Ne||(d&&b.j!==d?a.publish("ctmp","cpsmm",
{emsg:d,pssh:b.j}):c&&b.cryptoPeriodIndex!==c&&a.publish("ctmp","cpimm",{emsg:c,pssh:b.cryptoPeriodIndex}));a.publish("widevine_set_need_key_info",b)}}else a.MW(b)}};
vdb=function(a){if(!a.Na())if(a.X.L("html5_drm_set_server_cert")||OQ(a.j)){var b=a.D.setServerCertificate();b?b.then(YN(function(c){a.X.yc()&&a.publish("ctmp","ssc",{success:c})}),YN(function(c){a.publish("ctmp","ssce",{n:c.name,
m:c.message})})).then(YN(function(){ydb(a)})):ydb(a)}else ydb(a)};
ydb=function(a){a.Na()||(a.Y=!0,a.rj({onmdkrdy:1}),F_(a))};
zdb=function(a){return a.j.flavor==="widevine"&&a.videoData.L("html5_drm_cpi_license_key")};
F_=function(a){if((a.Sa||a.X.L("html5_widevine_use_fake_pssh"))&&a.Y&&!a.Ha){for(;a.C.length;){var b=a.C[0],c=zdb(a)?u$a(b):g.Bg(b.initData);if(OQ(a.j)&&!b.B)a.C.shift();else{if(a.B.get(c))if(a.j.flavor!=="fairplay"||OQ(a.j)){a.C.shift();continue}else a.B.delete(c);t$a(b);break}}a.C.length&&a.createSession(a.C[0])}};
Adb=function(a){var b;if(b=g.UA()){var c;b=!((c=a.D.B)==null||!c.getMetrics)}b&&(b=a.D.getMetrics())&&(b=g.xN(b),a.publish("ctmp","drm",{metrics:b}))};
Bdb=function(a){g.I.call(this);var b=this;this.ea=a;this.Ea=this.ea.U();this.videoData=this.ea.getVideoData();this.RF=0;this.K=this.B=this.G=!1;this.D=0;this.C=g.oI(this.Ea.experiments,"html5_delayed_retry_count");this.j=new g.Dv(function(){G_(b.ea)},g.oI(this.Ea.experiments,"html5_delayed_retry_delay_ms"));
g.M(this,this.j)};
Fdb=function(a,b,c){var d=a.videoData.B,e=a.videoData.D;IS(a.ea.getVideoData())&&a.Ea.L("html5_gapless_fallback_on_qoe_restart")&&Jcb(a.ea,"pe");if((b==="progressive.net.retryexhausted"||b==="fmt.unplayable"||b==="fmt.decode")&&!a.ea.Jk.G&&d&&d.itag==="22")return a.ea.Jk.G=!0,a.Sd("qoe.restart",{reason:"fmt.unplayable.22"}),H_(a.ea),!0;var f=!1;if(a.videoData.isExternallyHostedPodcast){if(f=a.videoData.A4)c.mimeType=f.type,a.oa("3pp",{url:f.url});c.ns="3pp";a.ea.Of(b,1,"VIDEO_UNAVAILABLE",FJ((new GJ(b,
c,1)).details));return!0}var h=a.RF+3E4<(0,g.iC)()||a.j.isActive();if(a.Ea.L("html5_empty_src")&&a.videoData.isAd()&&b==="fmt.unplayable"&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.Sd("auth",c),!0;h||s_a(a.ea.Mm())||(c.nonfg="paused",h=!0,a.ea.pauseVideo());(b==="fmt.decode"||b==="fmt.unplayable")&&(e==null?0:KEa(e)||XJ(e))&&(MUa(a.Ea.G,e.sb),c.acfallexp=e.sb,f=h=!0);!h&&a.C>0&&(a.j.start(),h=!0,c.delayed="1",--a.C);e=a.ea.Aa;!h&&((d==null?0:WJ(d))||(d==null?0:VJ(d)))&&(MUa(a.Ea.G,d.sb),
f=h=!0,c.cfallexp=d.sb);if(!h)return Cdb(a,c);if(a.Ea.L("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.DS(a.videoData)&&b==="fmt.unplayable"&&c.cid&&c.ccid&&c.cid!==c.ccid&&s_a(a.ea.Mm())&&(a.Sd("ssap.transitionfailure",c),h=a.ea,g.DS(h.videoData)&&h.xb&&a7a(h.xb)))return!0;h=!1;a.G?a.RF=(0,g.iC)():h=a.G=!0;var l=a.videoData;if(l.rb){l=l.rb.iY();var m=Date.now()/1E3+1800;l=l<m}else l=!1;c.e=b;c.bkg=W5a();l&&(c.staleprog="1");a.Sd("qoe.restart",c);if(l&&Ddb(a))return Edb(a),!0;if(!(!g.SA("philips")||
b==="fmt.unplayable"&&e&&e.Da||a.Ea.j.cplatform==="GAME_CONSOLE"))try{window.close()}catch(n){}d&&WJ(d)&&!a.Ea.L("html5_allow_av1_retry_in_session")?(f=a.Ea.G,f.Y=!0,f=f.B=!0):e?h||(b=(b=JZ(e.videoTrack)||e.videoTrack.B)?b.j:e.videoTrack.j,b.K+=1,mV(e.policy)?oZ(e.C.j,b,!0):uZ(e.j,b,!0)):a.videoData.rb&&a.videoData.rb.lT();a.j.isActive()||G_(a.ea,f);return!0};
Cdb=function(a,b){if(a.videoData.Ha)return!1;a.Ea.Lb+=1;if(a.Ea.Lb<=10)return!1;b.exiled=""+a.Ea.Lb;a.Sd("qoe.start15s",b);a.ea.publish("playbackstalledatstart");return!0};
Ddb=function(a){return a.B?!0:a.Ea.ra==="yt"?a.videoData.Ha?a.videoData.Cc<25:!a.videoData.Cc:!1};
Edb=function(a){if(!a.B){a.B=!0;var b=a.ea.getPlayerState();b=b.isPaused()||b.isSuspended();a.ea.Xo();b&&!gT(a.videoData)||a.ea.publish("signatureexpired")}};
Gdb=function(a,b){if((a=a.ea.Me())&&(b.errorCode==="fmt.unplayable"||b.errorCode==="html5.invalidstate")){var c=a.ih();b.details.merr=c?c.toString():"0";b.details.mmsg=a.uf()}};
Hdb=function(a){return a.errorCode==="net.badstatus"&&(a.severity===1||!!a.details.fmt_unav)};
Idb=function(a,b){return a.Ea.L("html5_use_network_error_code_enums")&&b.details.rc===403||b.details.rc==="403"?(a=b.errorCode,a==="net.badstatus"||a==="manifest.net.retryexhausted"):!1};
Kdb=function(a,b){if(!Idb(a,b)&&!a.B)return!1;b.details.sts="19912";if(Ddb(a))return HJ(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new GJ("qoe.restart",b)),a.Sd(b.errorCode,b.details),Edb(a),!0;(0,g.iC)()-a.Ea.Vf>6048E5&&Jdb(a,"signature");return!1};
Jdb=function(a,b){try{window.location.reload(),a.Sd("qoe.restart",{detail:"pr."+b})}catch(c){}};
Ldb=function(a,b){var c=a.Ea.G;c.K=!1;c.B=!0;a.Sd("qoe.restart",{e:b===void 0?"fmt.noneavailable":b,detail:"hdr"});G_(a.ea,!0)};
Mdb=function(a,b,c,d,e){this.videoData=a;this.j=b;this.reason=c;this.B=d;this.token=e};
Ndb=function(a,b,c){this.X=a;this.CH=b;this.ea=c;this.Z=this.K=this.j=this.D=this.N=this.B=0;this.G=!1;this.Y=g.oI(this.X.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.C=new Map};
Pdb=function(a,b,c){!a.X.L("html5_tv_ignore_capable_constraint")&&g.zI(a.X)&&(c=c.compose(Odb(a,b)));return c};
Rdb=function(a,b){var c,d=Qdb(a,(c=b.j)==null?void 0:c.videoInfos);c=a.ea.getPlaybackRate();return c>1&&d?(a=GUa(a.X.G,b.j.videoInfos,c),new PO(0,a,!0,"o")):new PO(0,0,!1,"o")};
Qdb=function(a,b){return b&&g.zI(a.X)?b.some(function(c){return c.video.fps>32}):!1};
Sdb=function(a,b){var c=a.ea.KJ();a.L("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&c.uU>0&&SO(b.videoData.ZB)&&(a=c.uU,b.videoData.ZB=new PO(0,a,!1,"u"));return b.videoData.ZB};
Odb=function(a,b){if(g.zI(a.X)&&dP(a.X.G,eP.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.rR(a.X)&&(e=window.screen&&window.screen.width?new g.Me(window.screen.width,window.screen.height):null);e||(e=a.X.Gn?a.X.Gn.clone():a.CH.ai());(XA||CY||d)&&e.scale(g.DR());d=e;JS(b.videoData)||gT(b.videoData);b=b.j.videoInfos;if(b.length){e=g.oI(a.X.experiments,"html5_override_oversend_fraction")||.85;var f=b[0].video;f.projectionType!=="MESH"&&f.projectionType!=="EQUIRECTANGULAR"&&f.projectionType!==
"EQUIRECTANGULAR_THREED_TOP_BOTTOM"||jVa||(e=.45);a=g.oI(a.X.experiments,"html5_viewport_undersend_maximum");for(f=0;f<b.length;f++){c=b[f];var h=c.video;if(d===null||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 PO(0,c.itag==="93"?g.PJ[HEa(d.width,d.height)]:d.j,!1,"r")}else c=rS;c=c.j}c&&(c=Math.max(c,360));return new PO(0,c,!1,"r")};
Tdb=function(a){var b,c,d,e;return g.H(function(f){switch(f.j){case 1:return a.j.j&&typeof((b=navigator.mediaCapabilities)==null?void 0:b.decodingInfo)==="function"?g.z(f,Promise.resolve(),2):f.return(Promise.resolve());case 2:c=g.v(a.j.videoInfos),d=c.next();case 3:if(d.done){f.Ja(0);break}e=d.value;return g.z(f,MEa(e),4);case 4:d=c.next(),f.Ja(3)}})};
Vdb=function(a,b){if(!b.videoData.B||a.L("html5_disable_performance_downgrade"))return!1;g.kb()-a.N>6E4&&(a.B=0);a.B++;a.N=g.kb();if(a.B!==4)return!1;Udb(a,b.videoData.B);return!0};
Xdb=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.oI(a.X.experiments,"html5_df_downgrade_thresh"),f=a.L("html5_log_media_perf_info");if(!((0,g.iC)()-a.D<5E3?0:f||e>0))return!1;var h=((0,g.iC)()-a.D)/1E3;a.D=(0,g.iC)();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=c.displayCompositedVideoFrames===0?0:c.displayCompositedVideoFrames||-1;f&&a.X.yc()&&a.ea.oa("ddf",{dr:c.droppedVideoFrames,
de:c.totalVideoFrames,comp:n});if(d)return a.j=0,!1;if((m-l)/h>a.Y||!e||g.zI(a.X))return!1;a.j=(m>60?l/m:0)>e?a.j+1:0;if(a.j!==3)return!1;Udb(a,b.videoData.B);a.ea.oa("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},Wdb()));return!0};
Udb=function(a,b){var c=a.X,d=b.sb,e=b.video.fps,f=b.video.j-1,h=a.C;b=""+d+(e>49?"p60":e>32?"p48":"");if(c.L("html5_gradual_perf_cap"))if(f<=0&&kUa("VideoPlayer",321298775,b,f.toFixed(0)),c=HQ(c,d,e,h),f>0&&(c=Math.min(c,f)),!I_.has(b)&&WPa().includes(b))UPa(b,c,!0);else if(I_.has(b)||h==null){a:{var l=l===void 0?!0:l;d=WPa().slice();if(l){if(d.includes(b))break a;d.push(b)}else{if(!d.includes(b))break a;d.splice(d.indexOf(b),1)}g.xB("yt-player-performance-cap-active-set",d,2592E3)}GQ.set(b,c)}else I_.add(b),
h==null||h.set(b,c);else UPa(b,f);a.ea.hp()};
Ydb=function(a,b){if(!b.j.j)return a.G?new PO(0,360,!1,"b"):rS;for(var c=!1,d=!1,e=g.v(b.j.videoInfos),f=e.next();!f.done;f=e.next())WJ(f.value)?c=!0:d=!0;c=c&&d;d=0;e=g.oI(a.X.experiments,"html5_performance_cap_floor");e=a.X.B?240:e;b=g.v(b.j.videoInfos);for(f=b.next();!f.done;f=b.next()){var h=f.value;if(!c||!WJ(h))if(f=HQ(a.X,h.sb,h.video.fps,a.C),h=h.video.j,Math.max(f,e)>=h){d=h;break}}return new PO(0,d,!1,"b")};
Zdb=function(a,b){var c=a.ea.Mm();return c.isInline()&&!b.LN?new PO(0,480,!1,"v"):c.isBackground()&&CD()/1E3>60&&!g.zI(a.X)?new PO(0,360,!1,"v"):rS};
aeb=function(a,b,c){if(a.X.experiments.gb("html5_disable_client_autonav_cap_for_onesie")&&b.fetchType==="onesie"||g.zI(a.X)&&(KO(-1)>=1080||b.osid))return rS;var d=g.oI(a.X.experiments,"html5_autonav_quality_cap"),e=g.oI(a.X.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&CD()/1E3>e?(c&&(d=$db(a,c,d)),new PO(0,d,!1,"e")):rS};
$db=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};
beb=function(a,b){a.L("html5_log_media_perf_info")&&(a.ea.oa("perfdb",Wdb()),a.L("html5_gradual_perf_cap")&&(a.ea.oa("sessionperfdb",Object.fromEntries(GQ.entries())),a.ea.oa("playbackperfdb",Object.fromEntries(a.C.entries()))),a.ea.oa("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.ea.oa("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return((d=c.B)==null?void 0:d.smooth)===!1}).map(function(c){return c.itag}).join("-")}))};
Wdb=function(){return Vc(LO(),function(a){return""+a})};
J_=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.AK;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.Dv(this.send,6E4,this);this.C=!1;this.jsErrorCount=0;this.wd={CB:function(){b.CB()}};
this.CB=function(){b.jsErrorCount++};
g.M(this,this.delay);window.addEventListener("error",this.CB);window.addEventListener("unhandledrejection",this.CB)};
ceb=function(a){a.j>=0||(a.provider.ea.getVisibilityState()===3?a.G=!0:(a.j=g.xM(a.provider),a.delay.start()))};
deb=function(a){if(!(a.B<0)){var b=g.xM(a.provider),c=b-a.D;a.D=b;a.playerState.state===8?a.playTimeSecs+=c:a.playerState.isBuffering()&&!g.yF(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
eeb=function(a){var b;switch((b=a.X.playerCanaryStage)==null?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"}};
geb=function(a,b){b?feb.test(a):(a=g.sA(a),Object.keys(a).includes("cpn"))};
ieb=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(vA(a)&&wA()){if(h){var n;((n=heb.uaChPolyfill)==null?void 0:n.state.type)!==2?h=null:(h=heb.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.jA("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
d:g.jA("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.jA("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);(d=b.Da)&&!FR(b)&&(m["X-Goog-AuthUser"]=d);e&&(m.Authorization="Bearer "+e);b.L("enable_datasync_id_header_in_web_vss_pings")&&b.Zl&&b.datasyncId&&(m["X-Yt-DataSync-Id"]=b.datasyncId);h||m["X-Goog-Visitor-Id"]||e||c||d?l.withCredentials=!0:b.L("html5_send_cpn_with_options")&&feb.test(a)&&(l.withCredentials=!0)}Object.keys(m).length>0&&(l.headers=m);f&&(l.onFinish=f);return Object.keys(l).length>1?l:null};
jeb=function(a,b,c,d,e,f,h,l){wA()&&c.token&&(a=g.tA(a,{ctt:c.token,cttype:c.bU,mdx_environment:c.mdxEnvironment}));f||l&&d.L("nwl_skip_retry")?(b==null?b={}:geb(a,d.L("html5_assert_cpn_with_regex")),h?jD().sendAndWrite(a,b):jD().sendThenWrite(a,b,l)):b?(geb(a,d.L("html5_assert_cpn_with_regex")),g.HA(a,b)):g.cD(a,e)};
leb=function(a){for(var b=[],c=0;c<a;c++){for(var d={},e=Math.floor(Math.random()*9*keb)+keb,f="",h=0;h<9;h++)f+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(Math.random()*52)];d.videoDecoderName=f;d.elapsedTimeMs=e;b.push(d)}return b};
g.M_=function(a,b){g.I.call(this);var c=this;this.provider=a;this.logger=new g.FQ("qoe");this.j={};this.sequenceNumber=1;this.K=NaN;this.Ie="N";this.Z=this.WB=this.VB=this.Ab=this.G=0;this.Sa=this.Oa=this.Cc="";this.Ub=this.Wa=NaN;this.Qb=0;this.Sc=-1;this.Bc=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.ib=this.Cb=this.Ha=this.isOffline=this.isBuffering=!1;this.Ud=[];this.ra=null;this.Ya=this.C=this.eb=this.N=!1;this.B=-1;this.Xa=!1;this.Zc=new g.Dv(this.N9,750,this);this.Y=this.adCpn=this.va=
this.contentCpn="";this.adFormat=void 0;this.le=0;this.Ed=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.Fd=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.rb=!1;this.Lb=NaN;this.Ga=0;this.Kb=!1;this.Da=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.wd={UL:function(e){c.UL(e)},
Lqb:function(){return c.D},
jg:function(){return c.contentCpn},
tqb:function(){return c.va},
reportStats:function(){c.reportStats()},
oqb:function(){return c.j.cat},
TJ:function(e){return c.j[e]},
irb:function(){return c.Da}};
var d=g.oI(this.provider.X.experiments,"html5_qoe_proto_mock_length");d&&!K_.length&&(K_=leb(d));g.M(this,this.Zc);try{navigator.getBattery().then(function(e){c.ra=e})}catch(e){}g.L_(this,0,"vps",["N"]);
a.X.yc()&&(this.Ga=(0,g.iC)(),this.Lb=g.CA(function(){var e=(0,g.iC)(),f=e-c.Ga;f>500&&c.oa("vmlock",{diff:f.toFixed()});c.Ga=e},250));
a.ea.Zf()&&b&&(this.Da=b-Math.round(g.xM(a)*1E3));this.provider.videoData.hj&&(this.remoteControlMode=meb[this.provider.videoData.hj]||0);this.provider.videoData.Nj&&(a=hRa(this.provider.videoData.Nj),a==null?0:a.length)&&(this.remoteConnectedDevices=a)};
g.L_=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
neb=function(a,b){var c=a.adCpn||a.provider.videoData.clientPlaybackNonce,d=a.provider.getCurrentTime(c);g.L_(a,b,"cmt",[d.toFixed(3)]);d=a.provider.Yf(c);if(a.D&&d*1E3>a.D.G_+100&&a.D){var e=a.D;c=e.isAd;d=d*1E3-e.G_;a.La=b*1E3-e.Rda-d-e.Ada;e=(0,g.iC)()-d;b=a.La;d=a.provider.videoData;var f=d.isAd();if(c||f){f=(c?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.G&&(h.cttAuthInfo={token:d.G,videoId:d.videoId});h.startTime=e-b;QG(f,h);g.LG({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},
f);KG("pbs",e,f)}else e=a.provider.ea.Ii(),e.K!==d.clientPlaybackNonce?(e.G=d.clientPlaybackNonce,e.B=b):d.xk()||g.nE(new g.FB("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.oa("gllat",{l:a.La.toFixed(),prev_ad:+c});delete a.D}};
N_=function(a,b){b=b===void 0?NaN:b;b=b>=0?b:g.xM(a.provider);var c=a.provider.ea.kF(),d=c.Xs-(a.Wa||0);d>0&&g.L_(a,b,"bwm",[d,(c.Gv-(a.Ub||0)).toFixed(3)]);isNaN(a.Wa)&&c.Xs&&a.isOffline&&a.UL(!1);a.Wa=c.Xs;a.Ub=c.Gv;isNaN(c.bandwidthEstimate)||g.L_(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.X.yc()&&Object.keys(c.j).length!==0&&a.oa("bwinfo",c.j);if(a.provider.X.yc()||a.provider.X.L("html5_log_meminfo"))d=Zbb(),Object.values(d).some(function(e){return e!==void 0})&&a.oa("meminfo",d);
a.ra&&g.L_(a,b,"bat",[a.ra.level,a.ra.charging?"1":"0"]);d=a.provider.ea.getVisibilityState();a.Sc!==d&&(g.L_(a,b,"vis",[d]),a.Sc=d);neb(a,b);(d=oeb(a.provider))&&d!==a.Qb&&(g.L_(a,b,"conn",[d]),a.Qb=d);peb(a,b,c)};
peb=function(a,b,c){if(!isNaN(c.Fw)){var d=c.Fw;c.B<d&&(d=c.B);g.L_(a,b,"bh",[d.toFixed(3)])}};
qeb=function(a,b){b={cpn:a.provider.videoData.clientPlaybackNonce,sequenceNumber:b,serializedWatchEndpointLoggingContext:a.provider.videoData.x4};a.serializedHouseBrandPlayerServiceLoggingContext&&(b.serializedHouseBrandPlayerServiceLoggingContext=Dg(a.serializedHouseBrandPlayerServiceLoggingContext)||void 0);a.provider.videoData.playerResponseCpn&&(b.playerResponseCpn=a.provider.videoData.playerResponseCpn);K_.length&&(b.decoderInfo=K_);a.provider.ea.Zf()&&(b.transitionStitchType=4,a.Da&&(b.timestampOffsetMsecs=
a.Da));a.remoteControlMode&&(b.remoteControlMode=a.remoteControlMode);a.remoteConnectedDevices.length&&(b.remoteConnectedDevices=a.remoteConnectedDevices);a=g.SN(b,EQa);return g.Bg(a,4)};
reb=function(a,b,c){g.MR(a.provider.X,g.fT(a.provider.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.provider.X.L("kevlar_woffle")||a.provider.X.L("qoe_nwl_downloads"))e=!0}else a.provider.X.L("qoe_with_networkless")&&(e=!0);var f=a.provider.X.L("qoe_send_and_write"),h=a.provider.X;d=ieb(b,h,a.provider.X.pageId,a.provider.X.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,d);h.L("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,
jeb(b,d,{token:a.provider.videoData.G,bU:a.provider.videoData.An,mdxEnvironment:a.provider.videoData.mdxEnvironment},h,void 0,e,f&&a.Ha)):e?(e=a.provider.X.L("networkless_ajax"),h={method:"POST",postBody:c},f&&a.Ha?jD().sendAndWrite(b,h):e?g.HA(b,{method:"POST",postBody:c}):jD().sendThenWrite(b,h)):(f=c,f=f===void 0?"":f,Sua(b,f)||g.cD(b,void 0,void 0,void 0,f))})};
seb=function(a){for(var b=0,c=g.v(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(bs(a.j[d],function(e,f){return e+f.length},0));
b>96E3&&(new g.Dv(a.reportStats,0,a)).start()};
teb=function(a){a.provider.videoData.Ed&&O_(a,"prefetch");a.provider.videoData.Cc&&a.oa("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.Cc});a.provider.videoData.Cb&&O_(a,"monitor");a.provider.videoData.isLivePlayback&&O_(a,"live");VQ&&O_(a,"streaming");a.provider.videoData.Rm()&&O_(a,"lifa");a.provider.videoData.hj&&a.oa("ctrl",{mode:a.provider.videoData.hj},!0);if(a.provider.videoData.Nj){var b=a.provider.videoData.Nj.replace(/,/g,"_");a.oa("ytp",{type:b},!0)}a.provider.videoData.OW&&
(b=a.provider.videoData.OW.replace(/,/g,"."),a.oa("ytrexp",{ids:b},!0));var c=a.provider.videoData;b=a.provider.X.L("enable_white_noise")||a.provider.X.L("enable_webgl_noop");c=g.NS(c)||g.XS(c)||g.YS(c)||g.ZS(c);(b||c)&&(b=(0,g.P_)())&&(a.j.gpu=[b]);gT(a.provider.videoData)&&g.L_(a,g.xM(a.provider),"dt",["1"]);a.provider.X.yc()&&(b=(0,g.iC)()-a.provider.X.Vf,a.oa("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.C=!0;a.K=g.CA(function(){a.reportStats()},1E4)};
veb=function(a,b,c){var d=g.xM(a.provider);ueb(a,d,b,0,c);N_(a,d);seb(a)};
ueb=function(a,b,c,d,e){var f=a.provider.X.j.cbrver;a.provider.X.j.cbr==="Chrome"&&/^96[.]/.test(f)&&c==="net.badstatus"&&/rc\.500/.test(e)&&web(a,3);a.provider.X.L("html5_use_ump")&&/b248180278/.test(e)&&web(a,4);f=a.provider.getCurrentTime(a.adCpn||a.provider.videoData.clientPlaybackNonce);d=d===1?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+fH());e&&c.push(xeb(e));g.L_(a,b,"error",c);a.C=!0};
yeb=function(a){a.B>=0||(a.provider.X.Tf||a.provider.ea.getVisibilityState()!==3?a.B=g.xM(a.provider):a.Xa=!0)};
l7a=function(a,b,c,d){if(c!==a.Ie){b<a.G||(a.Ie==="PL"?a.playTimeSecs+=b-a.G:a.Ie==="B"&&a.isBuffering&&(a.isBuffering=!1,a.rebufferTimeSecs+=b-a.Ab,!a.ib&&a.rebufferTimeSecs>=10&&a.playTimeSecs<=180&&(a.provider.ea.pG(),a.j.qoealert=["1"],a.ib=!0)),c!=="B"||a.Ie!=="PL"&&a.Ie!=="PB"||(a.isBuffering=!0),a.G=b);a.Ie==="PL"&&(c==="B"||c==="S")||a.provider.X.yc()?N_(a,b):(a.rb||c!=="PL"||(a.rb=!0,peb(a,b,a.provider.ea.kF())),neb(a,b));c==="PL"&&g.Ev(a.Zc);var e=[c];c==="S"&&d&&e.push("ss."+d);g.L_(a,
b,"vps",e);a.Ie=c;a.Ab=b;a.G=b;a.C=!0}};
O_=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c};
mY=function(a,b,c,d,e,f){var h=g.xM(a.provider);c!==1&&c!==3&&c!==5||g.L_(a,h,"vps",[a.Ie]);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};
web=function(a,b){if(!a.Ya){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.Ya=!0}};
xeb=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
zeb=function(a){this.provider=a;this.N=!1;this.j=0;this.D=-1;this.kq=NaN;this.C=0;this.segments=[];this.K=this.G=0;this.previouslyEnded=!1;this.Y=this.provider.ea.getVolume();this.Z=this.provider.ea.isMuted()?1:0;this.B=Q_(this.provider)};
R_=function(a){a.B.startTime=a.C;a.B.endTime=a.j;var b=!1;a.segments.length&&g.zb(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?a.B.endTime===0&&(a.previouslyEnded=!1):a.B.previouslyEnded&&(a.previouslyEnded=!0);a.G+=a.j-a.C;a.B=Q_(a.provider);a.B.previouslyEnded=a.previouslyEnded;a.previouslyEnded=!1;a.C=a.j};
Beb=function(a){Aeb(a);a.K=g.CA(function(){a.update()},100);
a.kq=g.xM(a.provider);a.B=Q_(a.provider)};
Aeb=function(a){g.EA(a.K);a.K=NaN};
Ceb=function(a,b,c){c-=a.kq;return b===a.j&&c>.5};
Deb=function(a,b,c,d){this.X=b;this.Cc=c;this.segments=[];this.experimentIds=[];this.eb=this.Ub=this.isFinal=this.delayThresholdMet=this.Ab=this.Ed=this.autoplay=this.autonav=!1;this.Sc="yt";this.K=[];this.G=this.Z=null;this.sendVisitorIdHeader=this.Ya=!1;this.N=this.pageId="";this.D=c==="watchtime";this.C=c==="playback";this.va=c==="atr";this.Ch=c==="engage";this.sendVisitorIdHeader=!1;this.uri=this.va?"/api/stats/"+c:"//"+b.Hn+"/api/stats/"+c;d&&(this.Ub=d.fs,d.rtn&&(this.G=d.rtn),this.D?(this.playerState=
d.state,d.rti>0&&(this.Z=d.rti)):(this.Uf=d.mos,this.Ng=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),d.inview!=null&&(this.Ud=d.inview),d.size&&(this.Zc=d.size),d.playerwidth&&(this.playerWidth=d.playerwidth),d.playerheight&&(this.playerHeight=d.playerheight));this.Be=g.jd(b.j);this.N=WQ(b.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.N==="all"||this.N==="once")this.Qb=g.jd(b.Qb);this.Tf=b.Sc;this.experimentIds=CUa(b.experiments);this.Xa=b.wj;this.Sc=b.ra;this.region=
b.region;this.userAge=b.userAge;this.rb=b.zj;this.le=CD();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Da=b.L("vss_pings_using_networkless")||b.L("kevlar_woffle");this.Vf=b.L("vss_final_ping_send_and_write");this.Ha=b.L("vss_use_send_and_write");this.pageId=b.pageId;this.Wf=b.L("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Sf=b.D&&b.L("embeds_append_synth_ch_headers");g.nR(b)&&(this.Sa=b.Ga);g.fB(g.wR(b))&&this.K.push(1);this.accessToken=
g.fT(a);a.L("html5_add_per_destination_base_query_for_video_stats_urls")?a.zp[this.Cc]?this.Ga=a.zp[this.Cc]:a.zp.playback&&(this.Ga=a.zp.playback):a.Ga&&(this.Ga=a.Ga);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=TXa(a);this.C&&(this.Ed=(a.L("html5_enable_log_server_autoplay")||a.L("enable_cleanup_masthead_autoplay_hack_fix"))&&a.Kq&&bT(a)=="adunit"?!0:!1);this.autonav=a.isAutonav||this.autonav;this.contentVideoId=dT(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Ab=
a.Jf;a.G&&(this.Y=a.G,this.Kb=a.An);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.Rk;this.Lb=a.Lb;a.B&&(this.Zd=a.B.itag,a.D&&a.D.itag!==this.Zd&&(this.Cb=a.D.itag));a.j&&XO(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=bT(a);this.eb=a.Ci?!1:a.Wi;this.mf=a.Bn;if(b=QS(a))this.Xf=b;this.tf=a.Nv;this.Oa=a.Oa;this.eventId=a.eventId;this.playlistId=a.eZ||a.playlistId;this.CA=a.CA;this.hj=a.hj;this.Nj=a.Nj;this.Pp=a.Pp;this.subscribed=a.subscribed;this.videoId=a.videoId;
this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.VC=a.VC;this.referrer=a.referrer;this.Cp=a.DW||a.Cp;this.ib=a.aD;this.qB=a.qB;this.userGenderAge=a.userGenderAge;this.Qv=a.Qv;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;g.nR(this.X)&&a.mutedAutoplay&&this.K.push(2);a.fd(new g.Me(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.K.push(3);g.kT(a)&&this.K.push(4);this.Wa=a.uW;a.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=
a.compositeLiveIngestionOffsetToken)};
Eeb=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.MR(a.X,a.accessToken).then(function(d){return ieb(a.uri,a.X,a.pageId,c,d,b,a.Sf)})};
Heb=function(a,b){return function(){a.X.L("html5_simplify_pings")?(a.j=a.La,a.Fd=b(),a.le=0,a.send()):Eeb(a).then(function(c){var d=Feb(a);d.cmt=d.len;d.lact="0";var e=b().toFixed(3);d.rt=Number(e).toString();d=g.to(a.uri,d);a.X.L("vss_through_gel_double")&&Geb(d);a.Da?(c==null&&(c={}),a.Ha?jD().sendAndWrite(d,c):jD().sendThenWrite(d,c)):c?g.HA(d,c):g.cD(d)})}};
Feb=function(a){var b={ns:a.Sc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.B(a.j),fmt:a.Zd,fs:a.Ub?"1":"0",rt:a.B(a.Fd),adformat:a.adFormat,content_v:a.contentVideoId,euri:a.Tf,lact:a.le,live:a.Xf,cl:(650102465).toString(),mos:a.Uf,state:a.playerState,volume:a.Ng};a.subscribed&&(b.subscribed="1");Object.assign(b,a.Be);a.N==="all"?Object.assign(b,a.Qb):a.N==="once"&&a.C&&Object.assign(b,a.Qb);a.autoplay&&(b.autoplay="1");a.Ed&&(b.sautoplay="1");a.Ab&&(b.dni="1");!a.D&&a.Sa&&(b.epm=Ieb[a.Sa]);
a.isFinal&&(b["final"]="1");a.eb&&(b.splay="1");a.Lb&&(b.delay=a.Lb);a.Xa&&(b.hl=a.Xa);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);a.userAge!==void 0&&a.rb&&(b.uga=a.rb+a.userAge);a.La!==void 0&&(b.len=a.B(a.La));!a.D&&a.experimentIds.length>0&&(b.fexp=a.experimentIds.toString());a.G!==null&&(b.rtn=a.B(a.G));a.Cp&&(b.feature=a.Cp);a.hj&&(b.ctrl=a.hj);a.Nj&&(b.ytr=a.Nj);a.Cb&&(b.afmt=a.Cb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.Bc&&(b.lio=a.B(a.Bc));
a.D?(b.idpj=a.mf,b.ldpj=a.tf,a.delayThresholdMet&&(b.dtm="1"),a.Z!=null&&(b.rti=a.B(a.Z)),a.Qv&&(b.ald=a.Qv),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken)):a.adType!==void 0&&(b.at=a.adType);a.Zc&&(a.C||a.D)&&(b.size=a.Zc);a.C&&a.K.length&&(b.pbstyle=a.K.join(","));a.Ud!=null&&(a.C||a.D)&&(b.inview=a.B(a.Ud));a.D&&(b.volume=S_(a,g.$r(a.segments,function(d){return d.volume})),b.st=S_(a,g.$r(a.segments,function(d){return d.startTime})),b.et=S_(a,g.$r(a.segments,function(d){return d.endTime})),
Ys(a.segments,function(d){return d.playbackRate!==1})&&(b.rate=S_(a,g.$r(a.segments,function(d){return d.playbackRate}))),Ys(a.segments,function(d){return d.j!=="-"})&&(b.als=g.$r(a.segments,function(d){return d.j}).join(",")),Ys(a.segments,function(d){return d.previouslyEnded})&&(b.pe=g.$r(a.segments,function(d){return""+ +d.previouslyEnded}).join(",")));
b.muted=S_(a,g.$r(a.segments,function(d){return d.muted?1:0}));
Ys(a.segments,function(d){return d.visibilityState!==0})&&(b.vis=S_(a,g.$r(a.segments,function(d){return d.visibilityState})));
Ys(a.segments,function(d){return d.connectionType!==0})&&(b.conn=S_(a,g.$r(a.segments,function(d){return d.connectionType})));
Ys(a.segments,function(d){return d.B!==0})&&(b.blo=S_(a,g.$r(a.segments,function(d){return d.B})));
Ys(a.segments,function(d){return!!d.C})&&(b.blo=g.$r(a.segments,function(d){return d.C}).join(","));
Ys(a.segments,function(d){return!!d.compositeLiveStatusToken})&&(b.cbs=g.$r(a.segments,function(d){return d.compositeLiveStatusToken}).join(","));
Ys(a.segments,function(d){return d.G!=="-"})&&(b.cc=g.$r(a.segments,function(d){return d.G}).join(","));
Ys(a.segments,function(d){return d.clipId!=="-"})&&(b.clipid=g.$r(a.segments,function(d){return d.clipId}).join(","));
if(Ys(a.segments,function(d){return!!d.D})){var c="au";
a.C&&(c="au_d");b[c]=g.$r(a.segments,function(d){return d.D}).join(",")}wA()&&a.Y&&(b.ctt=a.Y,b.cttype=a.Kb,b.mdx_environment=a.mdxEnvironment);
a.Ch&&(b.etype=a.ra!==void 0?a.ra:0);a.ib&&(b.uoo=a.ib);a.livingRoomAppMode&&a.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(b.clram=Jeb[a.livingRoomAppMode]||a.livingRoomAppMode);a.Ga?Keb(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.VC,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.Pp&&(b.ssrt="1"),a.qB&&(b.upt=a.qB));a.C&&(a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn=
a.embedsRctn),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken));a.Wa&&(b.host_cpn=a.Wa);return b};
Keb=function(a,b){if(b&&a.Ga){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"]);a.Ga.ns==="3pp"&&(b.ns="3pp");for(var f=g.v(Object.keys(a.Ga)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.Ga[h]||(b[h]=a.Ga[h])}};
S_=function(a,b){return g.$r(b,a.B).join(",")};
Geb=function(a){a.indexOf("watchtime")!==-1&&g.VB("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:a}})};
Leb=function(a,b){a.attestationResponse&&Eeb(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.Da?a.Ha?jD().sendAndWrite(b,c):jD().sendThenWrite(b,c):g.HA(b,c)})};
T_=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.va=this.Ha=this.Da=this.ra=this.C=!1;this.B=this.G=NaN;this.j=new zeb(a)};
Peb=function(a){if(!a.C){a.provider.videoData.mH===16623&&g.nE(Error("Playback for EmbedPage"));var b=U_(a,"playback");a:{if(a.provider.X.L("web_player_use_server_vss_schedule")){var c,d=(c=a.provider.videoData.getPlayerResponse())==null?void 0:c.playbackTracking,e=d==null?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=d==null?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&e.length>0&&d){c=[];var f=a.provider.videoData.Bn,h=a.provider.videoData.Nv,l=-f;e=g.v(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.Bn,10,10,40+a.provider.videoData.Nv-a.provider.videoData.Bn,40]}Beb(a.j);b.G=V_(a);a.B>0&&(b.j-=a.B);b.send();a.provider.videoData.vz&&(b=a.provider.X,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.vz,oid:d.aW,ptchn:d.YV,pltype:d.bW,content_v:dT(d)},d.pw&&Object.assign(c,{m:d.pw}),b=g.to(b.Ha+"ptracking",c),Meb(a,b));a.provider.videoData.Lb||(Neb(a),
Oeb(a),a.gt());a.C=!0;b=a.j;b.j=b.provider.ea.Yf();b.kq=g.xM(b.provider);!(b.C===0&&b.j<5)&&b.j-b.C>2&&(b.C=b.j);b.N=!0;a.provider.X.L("html5_log_vss_details")&&a.provider.ea.oa("vssinit",{})}};
V_=function(a,b){b=b===void 0?NaN:b;var c=g.xM(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.BA(function(){if(!a.Na()){a.D=NaN;var f=Qeb(a),h=Reb(a,f);h.Z=e;var l=a.Y>1E3;!(f.length>1)&&f[0].isEmpty()||l||(h.G=V_(a,e));h.send();a.Y++}},(e-c)*1E3);
return a.G=e};
W_=function(a){g.DA(a.D);a.D=NaN};
Qeb=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.C||R_(a);var b=a.segments;a.segments=[];return b};
U_=function(a,b){var c=Seb(a.provider);Object.assign(c,{state:a.K});b=new Deb(a.provider.videoData,a.provider.X,b,c);b.j=a.provider.ea.Yf();c=a.provider.videoData.clientPlaybackNonce;a.provider.X.L("html5_ssap_vss_fix")&&(b.j=a.provider.ea.HJ(c));a.provider.videoData.isLivePlayback||(b.La=a.provider.ea.getDuration(c));a.provider.videoData.j&&(c=a.provider.videoData.j.qf(b.j))&&(b.Bc=c-b.j);b.Fd=g.xM(a.provider);b.segments=[Q_(a.provider)];return b};
Reb=function(a,b){var c=U_(a,"watchtime");Teb(a)&&(c.delayThresholdMet=!0,a.Da=!0);if(a.B>0){for(var d=g.v(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.LP();c.segments=b;return c};
X_=function(a,b){var c=Ueb(a,!isNaN(a.G));b&&(a.G=NaN);return c};
Ueb=function(a,b){var c=Reb(a,Qeb(a));!isNaN(a.G)&&b&&(c.Z=a.G);return c};
Teb=function(a){var b;if(b=a.provider.videoData.isLoaded()&&a.provider.videoData.Lb&&a.C&&!a.Da)b=a.j,b=b.G+b.provider.ea.Yf()-b.C>=a.provider.videoData.Lb;return!!b};
Neb=function(a){a.provider.videoData.youtubeRemarketingUrl&&!a.Ha&&(Meb(a,a.provider.videoData.youtubeRemarketingUrl),a.Ha=!0)};
Oeb=function(a){a.provider.videoData.googleRemarketingUrl&&!a.va&&(Meb(a,a.provider.videoData.googleRemarketingUrl),a.va=!0)};
Veb=function(a){a.provider.X.L("html5_log_vss_details")&&a.provider.ea.oa("vssfi",{});if(!a.Na()&&a.C){a.K="paused";var b=X_(a);b.isFinal=!0;b.send();a.dispose()}};
Web=function(a,b){if(!a.Na())if(g.yF(b.state,2)||g.yF(b.state,512)){if(a.K="paused",g.AF(b,2)||g.AF(b,512))g.AF(b,2)&&(a.j.previouslyEnded=!0),a.C&&(W_(a),X_(a).send(),a.G=NaN)}else if(g.yF(b.state,8)){a.provider.X.L("html5_shorts_gapless_vss_pbs_fix")&&IS(a.provider.videoData)&&!a.C&&Peb(a);a.K="playing";var c=a.C&&isNaN(a.D)?V_(a):NaN;!isNaN(c)&&(zF(b,64)<0||zF(b,512)<0)&&(a=Ueb(a,!1),a.G=c,a.send())}else a.K="paused"};
Xeb=function(a,b,c){if(!a.ra){c||(c=U_(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if(d.message!=="Unknown Error")throw d;}a.ra=!0}};
Meb=function(a,b){var c=a.provider.X;g.MR(a.provider.X,g.fT(a.provider.videoData)).then(function(d){var e=a.provider.X.pageId,f=a.provider.X.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.X.L("vss_pings_using_networkless")||a.provider.X.L("kevlar_woffle"),l=a.provider.X.L("allow_skip_networkless");d=ieb(b,c,e,f,d);jeb(b,d,{token:a.provider.videoData.G,bU:a.provider.videoData.An,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
Yeb=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};
Y_=function(a,b,c){this.videoData=a;this.X=b;this.ea=c;this.j=void 0};
g.xM=function(a){return Zeb(a)()};
Zeb=function(a){if(!a.j){var b=g.jb(function(d){var e=(0,g.iC)();d&&e<=631152E6&&(a.ea.oa("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.X.L("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.ea.cS()}return a.j};
Seb=function(a){var b=a.ea.Pr()||{};b.fs=a.ea.AF();b.volume=a.ea.getVolume();b.muted=a.ea.isMuted()?1:0;b.mos=b.muted;b.clipid=a.ea.jA();var c;b.playerheight=((c=a.ea.getPlayerSize())==null?void 0:c.height)||0;var d;b.playerwidth=((d=a.ea.getPlayerSize())==null?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.Vk&&(c.infringe=1);(a.Ci?0:a.Wi)&&(c.splay=1);
(d=QS(a))&&(c.live=d);a.Kq&&(c.sautoplay=1);a.Kk&&(c.autoplay=1);a.CA&&(c.sdetail=a.CA);a.Oa&&(c.partnerid=a.Oa);a.osid&&(c.osid=a.osid);a.LD&&(c.cc=g.VVa(a.LD));return Object.assign(b,c)};
oeb=function(a){if(navigator.connection&&navigator.connection.type)return $eb[navigator.connection.type]||$eb.other;if(g.zI(a.X)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0};
Q_=function(a){var b=new Yeb,c;b.G=((c=Seb(a).cc)==null?void 0:c.toString())||"-";b.playbackRate=a.ea.getPlaybackRate();c=a.ea.getVisibilityState();c!==0&&(b.visibilityState=c);a.X.rb&&(b.B=1);b.C=a.videoData.Yy;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.ea.getAudioTrack();c.Yb&&c.Yb.id&&c.Yb.id!=="und"&&(b.D=c.Yb.id);b.connectionType=oeb(a);b.volume=a.ea.getVolume();b.muted=a.ea.isMuted();b.clipId=a.ea.jA()||"-";b.j=a.videoData.sW||"-";return b};
g.Z_=function(a,b){g.I.call(this);var c=this;this.provider=a;this.D=!1;this.C=new Map;this.Ie=new g.AK;this.wd={Uqb:function(){return c.qoe},
hrb:function(){return c.j},
Eqb:function(){return c.B}};
this.provider.videoData.xe()&&!this.provider.videoData.mm&&(this.j=new T_(this.provider),this.provider.X.L("html5_ssap_vss_fix")&&(this.j.B=this.provider.videoData.Vf/1E3),g.M(this,this.j),this.qoe=new g.M_(this.provider,b),g.M(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Rg=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.Rg,this.j));if(a.X.playerCanaryState==="canary"||a.X.playerCanaryState==="holdback")this.B=new J_(this.provider),g.M(this,this.B)};
afb=function(a){return!!a.j&&!!a.qoe};
nY=function(a){a.B&&ceb(a.B);a.qoe&&yeb(a.qoe)};
bfb=function(a){if(a.qoe){a=a.qoe;for(var b=g.v(a.provider.X.Ch),c=b.next();!c.done;c=b.next())O_(a,c.value);if(a.provider.L("html5_enable_qoe_cat_list"))for(b=g.v(a.provider.videoData.Bp),c=b.next();!c.done;c=b.next())O_(a,c.value);else a.provider.videoData.Ch&&O_(a,a.provider.videoData.Ch);a.provider.videoData.hc()&&(b=a.provider.videoData.j,CS(a.provider.videoData)&&O_(a,"manifestless"),b&&BQ(b)&&O_(a,"live-segment-"+BQ(b).toFixed(1)));BS(a.provider.videoData)&&O_(a,"sabr");a.provider.videoData.gatewayExperimentGroup&&
(b=a.provider.videoData.gatewayExperimentGroup,b==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?b="spkadtrt":b==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(b="spkadctrl"),O_(a,b));a.provider.X.ra!=="yt"&&(a.j.len=[a.provider.videoData.lengthSeconds.toFixed(2)]);a.provider.videoData.cotn&&!gT(a.provider.videoData)&&a.UL(!0);a.provider.X.yc()&&(b=m6a())&&a.oa("cblt",{m:b});MS(a.provider.videoData)&&(a.provider.ea.getProximaLatencyPreference()?O_(a,"proximaui"):O_(a,"proximaexp"))}};
n7a=function(a){if(a.provider.ea.Zf()){if(a.D)return;a.D=!0}a.j&&Peb(a.j);if(a.B){a=a.B;var b=g.xM(a.provider);a.j<0&&(a.j=b,a.delay.start());a.B=b;a.D=b}};
m7a=function(a,b){if(g.AF(b,1024)||g.AF(b,512)||g.AF(b,4)){if(a.B){var c=a.B;c.B>=0||(c.j=-1,c.delay.stop())}a.qoe&&(c=a.qoe,c.N||(c.B=-1))}if(a.provider.videoData.enableServerStitchedDai&&a.Rg){var d;(d=a.C.get(a.Rg))==null||Web(d,b)}else a.j&&Web(a.j,b);if(a.qoe){d=a.qoe;c=b.state;var e=g.xM(d.provider),f=d.getPlayerState(c);l7a(d,e,f,c.seekSource||void 0);f=c.hh;g.yF(c,128)&&f&&(f.RL=f.RL||"",ueb(d,e,f.errorCode,f.IE,f.RL));(g.yF(c,2)||g.yF(c,128))&&d.reportStats(e);c.isPlaying()&&!d.N&&(d.B>=
0&&(d.j.user_intent=[d.B.toString()]),d.N=!0);seb(d)}a.B&&(d=a.B,deb(d),d.playerState=b.state,d.B>=0&&g.AF(b,16)&&d.seekCount++,b.state.isError()&&d.send());a.provider.ea.Zf()&&(a.Ie=b.state)};
cfb=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Rg){var b;(b=a.C.get(a.Rg))!=null&&R_(b.j)}else a.j&&R_(a.j.j)};
dfb=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.C){b.Ie==="PL"&&(b.Ie="N");var c=g.xM(b.provider);g.L_(b,c,"vps",[b.Ie]);b.N||(b.B>=0&&(b.j.user_intent=[b.B.toString()]),b.N=!0);b.provider.X.yc()&&b.oa("finalized",{});b.Ha=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.v(a.C.values()),c=b.next();!c.done;c=b.next())Veb(c.value);else a.j&&Veb(a.j);a.dispose()};
efb=function(a,b){a.j&&Xeb(a.j,b)};
ffb=function(a){if(!a.j)return null;var b=U_(a.j,"atr");return function(c){a.j&&Xeb(a.j,c,b)}};
gfb=function(a,b,c,d){c.adFormat=c.Bc;var e=b.ea;b=new T_(new Y_(c,b.X,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Yf:function(){return e.Yf()},
HJ:function(){return e.HJ()},
Zf:function(){return e.Zf()},
kF:function(){return e.kF()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
oF:function(){return e.oF()},
getVisibilityState:function(){return e.getVisibilityState()},
Ii:function(){return e.Ii()},
Pr:function(){return e.Pr()},
getVolume:function(){return e.getVolume()},
isMuted:function(){return e.isMuted()},
AF:function(){return e.AF()},
jA:function(){return e.jA()},
getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()},
cS:function(){e.cS()},
pG:function(){e.pG()},
oa:function(f,h){e.oa(f,h)}}));
b.B=d;g.M(a,b);return b};
hfb=function(){this.Fw=0;this.C=this.Gv=this.Xs=this.B=NaN;this.j={};this.bandwidthEstimate=NaN};
$_=function(a,b,c){g.I.call(this);var d=this;this.X=a;this.ea=b;this.B=c;this.j=new Map;this.Rg="";this.wd={Yn:function(){return Array.from(d.j.keys())}}};
o7a=function(a,b){a.j.has(b)&&(dfb(a.j.get(b)),a.j.delete(b))};
ifb=function(){this.j=g.$Ca;this.array=[]};
kfb=function(a,b,c){var d=[];for(b=jfb(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};
lfb=function(a,b){var c=[];a=g.v(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};
mfb=function(a){return a.array.slice(jfb(a,0x7ffffffffffff),a.array.length)};
jfb=function(a,b){a=Rb(a.array,function(c){return b-c.start||1});
return a<0?-(a+1):a};
nfb=function(a,b){var c=NaN;a=g.v(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};
ofb=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
a0=function(a,b,c,d,e){g.I.call(this);this.Y=a;this.Da=b;this.K=c;this.ra=d;this.D=e;this.C=NaN;this.N=this.Z=this.started=!1;this.B=[];this.va=new g.Dv(this.sync,250,this);g.M(this,this.va);this.G=new g.Dv(this.sync,0,this);g.M(this,this.G);this.j=new ifb};
pfb=function(a){a.started=!0;a.sync()};
qfb=function(a,b){a.started&&(a.sync(),g.yF(b.AB,16)&&(b=nfb(a.j,Math.max(a.C-2E3,0)),!isNaN(b)&&b<0x7ffffffffffff&&a.G.start()))};
rfb=function(a,b){b=g.v(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];c[0]===1?a.ra(g.VI(d.namespace),d):a.ra(g.WI(d.namespace),d)}};
sfb=function(a){this.timeStamp=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.zI(a)&&(this.C=.01)};
b0=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
iFa=function(a,b,c,d){if(d=d>1)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(b>0&&a.mediaTime===b)return c-a.timeStamp>(d||!a.B?1500:400);a.mediaTime=b;a.timeStamp=c;return!1};
tfb=function(a,b){this.videoData=a;this.j=b};
ufb=function(a,b,c){return b.LI(c).then(function(){return NA(new tfb(b,b.C))},function(d){d instanceof Error&&g.nE(d);
var e=KJ('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=MJ('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.HUa(a.G,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.lx(),d:!!b.Zc,drm:b.bj(),f18:b.Xf.indexOf("itag=18")>=0,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=MJ('video/mp4; codecs="avc1.42001E"'),
e.cVP9=MJ('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 GJ(d,e,h)})};
vfb=function(a){this.G=a;this.C=this.B=0;this.D=new OU(50)};
d0=function(a,b,c){g.GE.call(this);this.videoData=a;this.experiments=b;this.K=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.N=0;c=new wfb;a.latencyClass==="ULTRALOW"&&(c.D=!1);a.Cb?c.B=3:g.VS(a)&&(c.B=2);a.latencyClass==="NORMAL"&&(c.G=!0);var d=g.oI(b,"html5_liveness_drift_proxima_override");if(MS(a)&&d){c.j=d;var e;((e=a.j)==null?0:CTa(e))&&c.j--}if(g.SA("trident/")||g.SA("edge/"))c.C=Math.max(c.C,g.oI(b,"html5_platform_minimum_readahead_seconds")||3);g.oI(b,"html5_minimum_readahead_seconds")&&
(c.C=g.oI(b,"html5_minimum_readahead_seconds"));g.oI(b,"html5_maximum_readahead_seconds")&&(c.K=g.oI(b,"html5_maximum_readahead_seconds"));b.gb("html5_force_adaptive_readahead")&&(c.D=!0);if(b=g.oI(b,"html5_liveness_drift_chunk_override"))c.j=b;LS(a)&&(c.j=(c.j+1)/5,a.latencyClass==="LOW"&&(c.j*=2));this.policy=c;this.Z=this.policy.B!==1;this.j=c0(this,xfb(this,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a))};
yfb=function(a,b){if(b)return b=a.videoData,b=xfb(a,isNaN(b.liveChunkReadahead)?3:b.liveChunkReadahead,b),c0(a,b);if(a.B.length){if(Math.min.apply(null,a.B)>1)return c0(a,a.j-1);if(a.policy.D)return c0(a,a.j+1)}return a.j};
zfb=function(a,b){if(!a.B.length)return!1;var c=a.j;a.j=yfb(a,b===void 0?!1:b);if(b=c!==a.j)a.B=[],a.D=0;return b};
e0=function(a,b){return b>=a.Xn()-Afb(a)};
Bfb=function(a,b,c){b=e0(a,b);c||b?b&&(a.C=!0):a.C=!1;a.Z=a.policy.B===2||a.policy.B===3&&a.C};
Cfb=function(a,b){b=e0(a,b);a.G!==b&&a.publish("livestatusshift",b);a.G=b};
Afb=function(a){var b=a.policy.j;a.G||(b=Math.max(b-1,0));return b*f0(a)};
xfb=function(a,b,c){c.Cb&&b--;LS(c)&&(b=1);if(MS(c)&&(a=g.oI(a.experiments,"html5_live_chunk_readahead_proxima_override"))){b=a;var d;((d=c.j)==null?0:CTa(d))&&b++}return b};
f0=function(a){return a.videoData.j?BQ(a.videoData.j)||5:5};
c0=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.C/f0(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.K/f0(a))),b)};
wfb=function(){this.C=0;this.K=Infinity;this.D=!0;this.j=2;this.B=1;this.G=!1};
i0=function(a){g.I.call(this);this.ea=a;this.X=this.ea.U();this.j=0;this.D=null;this.K=this.C=0;this.G=new g.Dv(this.jf,1E3,this);this.rb=new g0({delayMs:g.oI(this.X.experiments,"html5_seek_timeout_delay_ms")});this.Ga=new g0({delayMs:g.oI(this.X.experiments,"html5_long_rebuffer_threshold_ms")});this.Cb=h0(this,"html5_seek_set_cmt");this.Wa=h0(this,"html5_seek_jiggle_cmt");this.eb=h0(this,"html5_seek_new_elem");this.Ub=h0(this,"html5_unreported_seek_reseek");this.Da=h0(this,"html5_long_rebuffer_jiggle_cmt");
this.La=h0(this,"html5_long_rebuffer_ssap_clip_not_match");this.Ha=new g0({delayMs:2E4});this.Xa=h0(this,"html5_seek_new_elem_shorts");this.ib=h0(this,"html5_seek_new_media_source_shorts_reuse");this.Ya=h0(this,"html5_seek_new_media_element_shorts_reuse");this.Sa=h0(this,"html5_reseek_after_time_jump");this.Z=h0(this,"html5_gapless_handoff_close_end_long_rebuffer");this.ra=h0(this,"html5_gapless_slow_seek");this.Y=h0(this,"html5_gapless_slice_append_stuck");this.va=h0(this,"html5_gapless_slow_start");
this.N=h0(this,"html5_ads_preroll_lock_timeout");this.Qb=h0(this,"html5_ssap_ad_longrebuffer_new_element");this.Kb=new g0({delayMs:g.oI(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Yz:!this.X.L("html5_report_slow_ads_as_error")});this.Ab=new g0({delayMs:g.oI(this.X.experiments,"html5_skip_slow_ad_delay_ms")||5E3,Yz:!this.X.L("html5_skip_slow_buffering_ad")});this.Lb=new g0({delayMs:g.oI(this.X.experiments,"html5_slow_start_timeout_delay_ms")});this.Oa=h0(this,"html5_slow_start_no_media_source");
this.B={};g.M(this,this.G)};
h0=function(a,b){var c=g.oI(a.X.experiments,b+"_delay_ms");a=a.X.L(b+"_cfl");return new g0({delayMs:c,Yz:a})};
Dfb=function(a,b){a.j=b};
j0=function(a,b,c,d,e,f,h,l){b.test(c)?(a.Sd(e,b,h),b.Yz||f()):(b.ZL&&b.B&&!b.D?(c=(0,g.iC)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.B>b.ZL,c=b.j&&c-b.j>b.QS||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.ea.oa("workaroundReport",l),d&&(b.reset(),a.B[e]=!1)))};
g0=function(a){var b=a===void 0?{}:a;a=b.delayMs===void 0?0:b.delayMs;var c=b.QS===void 0?1E3:b.QS;var d=b.ZL===void 0?3E4:b.ZL;b=b.Yz===void 0?!1:b.Yz;this.j=this.B=this.C=this.startTimestamp=0;this.D=!1;this.G=Math.ceil(a/1E3);this.QS=c;this.ZL=d;this.Yz=b};
Hfb=function(a){g.I.call(this);var b=this;this.ea=a;this.X=this.ea.U();this.videoData=this.ea.getVideoData();this.policy=new Efb;this.Da=new i0(this.ea);this.K=this.j=this.Aa=this.mediaElement=this.playbackData=null;this.B=NaN;this.D=0;this.Oa=NaN;this.C=null;this.Sa=NaN;this.G=this.Y=null;this.ra=!1;this.rb=NaN;this.Kb=0;this.N=!1;this.La=new g.Dv(function(){Ffb(b,!1)},2E3);
this.Ab=new g.Dv(function(){k0(b)});
this.Xa=new g.Dv(function(){b.ra=!0;Gfb(b,{})});
this.timestampOffset=0;this.Ha=!0;this.Wa=0;this.Cb=NaN;this.Ga=new g.Dv(function(){var c=b.X.Sf;c.j+=1E4/36E5;c.j-c.C>1/6&&($Ua(c),c.C=c.j);b.Ga.start()},1E4);
this.eb=this.Lb=!1;this.Z=0;this.ib=!1;this.va=0;g.M(this,this.Da);g.M(this,this.La);g.M(this,this.Xa);g.M(this,this.Ab);g.M(this,this.Ga)};
Kfb=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new vfb(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(CS(a.videoData)&&a.Aa){var c=a.Aa.aJ.jh()||0;break a}if(a.videoData.j){c=a.videoData.j.Ga;break a}}c=0}return c}),a.j=new d0(a.videoData,a.X.experiments,function(){return a.qe(!0)}));
l0(a.ea)?(b=Ifb(a),b.tU?(BS(a.videoData)&&a.L("html5_sabr_enable_utc_seek_requests")&&a.fC(b.tU,b.startSeconds),a.D=b.startSeconds):a.seekTo(b.startSeconds,{hd:"seektimeline_startPlayback",seekSource:15})):Jfb(a)||(a.D=a.D||(g.DS(a.videoData)?0:a.videoData.startSeconds)||0)};
Mfb=function(a,b){(a.Aa=b)?Lfb(a,!0):m0(a)};
Nfb=function(a,b){g.Ev(a.Da.G);a.L("html5_exponential_memory_for_sticky")&&(b.state.isPlaying()?g.Ev(a.Ga):a.Ga.stop());if(a.mediaElement)if(b.AB.state===8&&kFa(b.state)&&b.state.isBuffering()){b=a.mediaElement.getCurrentTime();var c=a.mediaElement.Ih();var d=a.L("manifestless_post_live_ufph")||a.L("manifestless_post_live")?gK(c,Math.max(b-3.5,0)):gK(c,b-3.5);d>=0&&b>c.end(d)-1.1&&d+1<c.length&&c.start(d+1)-c.end(d)<11&&(d=c.start(d+1)+.2,Math.abs(a.Cb-d)<.2||(a.ea.oa("seekover",{b:fK(c,"_"),cmt:b}),
a.Cb=d,a.seekTo(d,{qx:!0,hd:"seektimeline_postLiveDisc"})))}else((c=b.state)==null?0:c.state===8)&&!a.eb&&(a.videoData.limitedPlaybackDurationInSeconds>0?(n0(a.ea,a.getCurrentTime()+a.videoData.limitedPlaybackDurationInSeconds),a.eb=!0):a.videoData.isLivePlayback&&a.videoData.endSeconds>0&&(n0(a.ea,a.getCurrentTime()+a.videoData.endSeconds),a.eb=!0))};
Pfb=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.Ki(c);f!==-1&&(e.B=e.j.getStartTime(f),e.C=e.B+e.j.getDuration(f),f=(0,g.iC)()/1E3-e.j.qf(f),f-=e.G(),e.D.add(f))}}a.j&&(d&&(e=a.j,f=Ofb(a),e.D++,e.D<3||g.kb()-e.N<3E3||(e.N=g.kb(),e.B.push(f),e.B.length>50&&e.B.shift())),e=a.j,Bfb(e,c,b===void 0?!0:b),Cfb(e,c),b&&Ffb(a,!0));d!==a.Lb&&(b=a.getCurrentTime()-a.rb<=500,c=a.Kb>=1E3,b||c||(b=a.ea.uc(),b.qoe&&(b=b.qoe,c=g.xM(b.provider),
g.L_(b,c,"lh",[d?"1":"0"])),a.Lb=d,a.Kb++,a.rb=a.getCurrentTime()))};
Ffb=function(a,b){if(a.j){var c=a.j;var d=a.getCurrentTime();!e0(c,d)&&c.gq()?(c.policy.G&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.pd()?Math.min(c.videoData.pd()+10,c.Xn()):NaN;if(!isNaN(c)){if(a.Aa&&b&&(b=a.La.isActive(),d=a.j.Xn(),(d=Dcb(a.Aa,d-a.Fc()))&&!b)){a.La.start();a.ea.oa("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.Fc()});a.seekTo(d+a.Fc(),{hd:"seektimeline_inBufferSeek"});return}a.seekTo(c,{hd:"seektimeline_pegToLive"})}}};
Lfb=function(a,b){if(a.j&&a.Aa){var c=!1;b?c=!0:a.videoData.isLowLatencyLiveStream||a.videoData.latencyClass==="LOW"||a.videoData.latencyClass==="ULTRALOW"?c=zfb(a.j):a.ib&&(a.ib=!1,c=zfb(a.j,!0));c&&(b=a.ea.uc(),c=a.j,c=f0(c)*c.j,b.qoe&&(b=b.qoe,g.L_(b,g.xM(b.provider),"lra",[c]),b.oa("live-readahead-seconds",{v:c})));b=a.Aa;var d=a.j.j;a=a.j;a=(a.j-1+a.policy.j)*f0(a);c=NaN;var e=b.Cb;e===2||e===-1?LS(b.ea.getVideoData())&&(c=b.policy.ED):(--d,e=b.ea.getVideoData(),e.hc()&&e.latencyClass!=="ULTRALOW"&&
!e.isLowLatencyLiveStream&&(c=MS(e)?b.policy.UD:b.policy.lq));d=Math.max(d,0);e=b.D;e.lh=d;e.Z=c;b.G&&(b.G.ra=a)}};
Qfb=function(a,b){a.D=b};
Gfb=function(a,b){Rfb(a,b).then(void 0,function(){m0(a)});
Sfb(a).then(function(c){Tfb(a,c)},function(){m0(a)});
J6a(a.ea,b);a.X.yc()&&(b=a.qc(),b["native"]=""+ +a.N,b.tgt=""+a.B,b.otgt=""+(a.B+a.timestampOffset),a.j&&a.L("html5_high_res_seek_logging")&&(b.tht=""+a.j.K(),b.ht=""+a.j.Xn(),b.adft=""+Afb(a.j)),a.L("html5_sabr_parse_live_metadata_playback_boundaries")&&a.videoData.j&&BS(a.videoData)&&(b.minst=""+a.videoData.j.Y,b.cminst=""+(a.videoData.j.pd(!0)+a.timestampOffset),b.maxst=""+a.videoData.j.Z,b.cmaxst=""+(a.videoData.j.qe(!0)+a.timestampOffset)),a.ea.oa("startSeek",b))};
Rfb=function(a,b){a.Y||(a.Aa?isFinite(a.B)?a.Y=a.Aa.seek(a.B-a.timestampOffset,b):(AS(a.videoData),a.Y=a_(a.Aa),YXa(a.videoData)||(a.B=a.Aa.getCurrentTime()+a.timestampOffset)):a.Y=hg(a.B-a.timestampOffset));return a.Y};
Sfb=function(a){var b=a.C;b||(a.C=new xK,b=a.C,k0(a));return b};
Ufb=function(a,b,c){return isNaN(b)?NaN:g.ze(b,a.pd(),a.qe(c))};
k0=function(a){if(a.C)if(a.videoData.isLivePlayback&&a.videoData.C&&!a.videoData.C.j&&a.mediaElement&&a.mediaElement.al()>0&&$Ea(a.mediaElement)>0&&(a.B=Ufb(a,a.B,!1)),!a.mediaElement||!Vfb(a))a.Ab.start(750);else if(!isNaN(a.B)&&isFinite(a.B)){var b=a.Sa-(a.B-a.timestampOffset);if(!(b===0||a.L("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005))if(b=a.mediaElement.getCurrentTime()-a.B,Math.abs(b)<=a.Wa||a.L("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005)a.C&&a.C.resolve(a.mediaElement.getCurrentTime());
else{if(a.videoData.OD)a.videoData.OD=!1;else if(!AS(a.videoData)&&a.B>=a.qe()-.1){a.B=a.qe();a.C.resolve(a.qe());GX(a.ea);return}try{var c=a.B-a.timestampOffset;a.mediaElement.seekTo(c);a.Da.j=c;a.Sa=c;a.D=a.B;a.L("html5_enable_new_seek_timeline_logic")&&(a.N=!1)}catch(d){}}}};
Vfb=function(a){if(!a.mediaElement||a.mediaElement.al()===0||a.mediaElement.hasError())return!1;var b=a.mediaElement.getCurrentTime()>0;if(!(a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&a.videoData.bj())return b;if(a.B>=0){var c=a.mediaElement.xA();if(c.length||!b)return hK(c,a.B-a.timestampOffset)}return b};
Tfb=function(a,b){a.G&&(a.G.resolve(b),a.ea.publish("SEEK_COMPLETE"),a.X.yc()&&(b=a.qc(),b["native"]=""+ +a.N,b.otgt=""+(a.B+a.timestampOffset),a.ea.oa("seekEnd",b)));m0(a)};
m0=function(a){a.B=NaN;a.Sa=NaN;a.C=null;a.Y=null;a.G=null;a.ra=!1;a.N=!1;a.Wa=0;a.La.stop();a.Xa.stop()};
Xfb=function(a,b,c){var d=a.mediaElement,e=b.type;switch(e){case "seeking":var f=d.getCurrentTime()+a.timestampOffset;if(!a.C||a.N&&f!==a.B){var h=!!a.C;a.C=new xK;a.L("html5_enable_new_seek_timeline_logic")&&a.C.then(function(m){Tfb(a,m)},function(){m0(a)});
if(a.videoData.isAd()&&a.L("enabled_asd_timeline")){var l;hza({adCpn:a.videoData.clientPlaybackNonce,contentCpn:(l=a.videoData.uW)!=null?l:""},b.j);a.L("enable_ask_gating")&&a.ea.hL()}a.Sa=f;Dfb(a.Da,d.getCurrentTime());a.seekTo(f,{seekSource:104,hd:"seektimeline_mediaElementEvent"});c&&q7a(c,f*1E3,!!h);a.N=!0}break;case "seeked":a.C&&a.C.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":l0(a.ea)||Wfb(a);k0(a);break;case "progress":k0(a);break;case "pause":a.Z=a.getCurrentTime()}a.Z&&
((e==="play"||e==="playing"||e==="timeupdate"||e==="progress")&&a.getCurrentTime()-a.Z>10&&a.seekTo(a.Z,{hd:"pauseJump"}),e!=="pause"&&e!=="play"&&e!=="playing"&&e!=="progress"&&(a.Z=0))};
Yfb=function(a){return(WS(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||Jfb(a))&&!!a.videoData.j};
Jfb=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&a.videoData.startSeconds>1E9};
Ifb=function(a){var b=0,c=NaN,d="";AS(a.videoData)&&(b=Infinity);if(g.VS(a.videoData))return{startSeconds:b,tU:c,source:d};a.videoData.startSeconds?(d="ss",b=a.videoData.startSeconds):a.videoData.Zd&&(d="stss",b=a.videoData.Zd);a.videoData.liveUtcStartSeconds&&(c=a.videoData.liveUtcStartSeconds);return{startSeconds:b,tU:c,source:d}};
Wfb=function(a){if(a.Ha)if(g.VS(a.videoData))a.Ha=!1;else{var b="ss",c=0;a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.Qb&&!Jfb(a)&&(b="mss",c=a.videoData.Qb);(a.videoData.Ya?a.L("html5_prioritize_windowed_st_start_seconds"):a.L("html5_prioritize_st_start_seconds"))&&!c&&a.videoData.Zd&&(b="stss",c=a.videoData.Zd);!c&&Yfb(a)&&(c=a.videoData.liveUtcStartSeconds||a.videoData.Qb,b="utc",c=a.qe()-a.qf(a.qe())+c);!c&&a.videoData.Zd&&(b="stss",c=a.videoData.Zd);var d={};if(c){if(c>a.qe()||c<
a.pd())d.minSeekableTime=a.pd(),d.maxSeekableTime=a.qe(),d.cmt=a.getCurrentTime(),d.it=a.qf(a.getCurrentTime()),d.ss=c,d.utc=Yfb(a)?a.videoData.liveUtcStartSeconds||a.videoData.Qb:0,a.ea.oa("startSecondsOutOfBounds",d),a.videoData.hc()&&(c=Ufb(a,c,!1));a.seekTo(c,{hd:"seektimeline_startSeconds"});d[b]=c;a.ea.oa("startSeconds",d);a.Ha=!1}else a.videoData.Qb&&(d[b]=a.videoData.Qb+a.Fc(),a.ea.oa("startSeconds",d))}};
Zfb=function(a,b){a.ea.oa("sdai",{adj4t:b.toFixed(3)});a.Oa=b;b+=1;a.B=b;a.D=b;Sfb(a).then(function(c){Tfb(a,c)},function(){m0(a)})};
Ofb=function(a){return a.mediaElement?zK(a.mediaElement):0};
Efb=function(){};
o0=function(){this.j=this.started=!1};
egb=function(a){function b(e){return c.Xl&&(!d.Fn||!d.Ea.N)||c.ra!=="yt"&&(d.Oa===38&&c.playerStyle==="books"||d.Oa===30&&c.playerStyle==="docs"||d.Oa===33&&c.playerStyle==="google-live")?$fb(a,d,e):agb(a,d).then(function(){p0(a,d)},function(f){p0(a,d,!0);
throw f;})}
var c=a.U(),d=a.getVideoData();d.Na();d.loading=!0;return bgb(a)?cgb(a,d).then(function(){p0(a,d)},function(e){e=IJ(e);
if(HJ(e.severity))return p0(a,d,!0),Promise.reject(e);e.errorCode==="onesie.response.badproxystatus"&&""+e.details.st==="3"&&(dgb=!0);a.handleError(e);return b("onesie")}):b("gvi")};
bgb=function(a){var b=a.U();if(b.L("html5_disable_onesie")||!b.L("html5_onesie")||!b.L("html5_onesie_inline")&&a.getVisibilityState()===5||b.ra!=="yt")return!1;var c=b.Vk;if(!c||!c.j)return a.handleError(new GJ("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.G<(0,g.iC)()&&(a.oa("okexp","1"),(c=a.wA())&&b.L("html5_prefer_trusted_host_on_key_expiration"))){c.B=!0;var d;(b=(d=c.j.get(0))==null?void 0:hP(d.location))&&!xX(b)&&c.j.delete(0)}if(dgb)return a.oa("ost3","1"),!1;d={};return Object.keys(d).length>
0?(d.onesie="0",a.handleError(new GJ("html5.missingapi",d)),!1):!0};
fgb=function(a){var b=JT();KT(b,a);return g.eH(b,zPa())};
cgb=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C,F,G,K,N,R,da,oa,qa,ha,ta;return g.H(function(P){if(P.j==1)return b.fetchType="onesie",c=lYa(b,a.getPlayerSize(),a.getVisibilityState()),d=new n_(a,c),g.z(P,d.fetch(),2);e=P.B;f={player_response:e};b.loading=!1;h=a.zd.Pu;if(d.eg){l=g.v(d.eg.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.v(n),q=p.next().value,r=p.next().value,t=q,u=r,h.j.set(t,u,180),t===b.videoId&&(w=u.Ir(),b.fI=w);h.hA=d}A=g.v(d.aY.entries());for(C=A.next();!C.done;C=
A.next())F=C.value,G=g.v(F),K=G.next().value,N=G.next().value,R=K,da=N,h.B.set(R,da,180);g.vS(b,f,!0);if(b.loading||tS(b))return P.return(Promise.resolve());h.j.removeAll();h.B.removeAll();b.fI=[];oa={};qa="onesie.response";ha=0;b.errorCode?(qa="auth",oa.ec=b.errorCode,oa.ed=b.errorDetail,oa.es=b.Rn||"",ha=2):(oa.successButUnplayable="1",oa.disposed=""+ +b.Na(),oa.afmts=""+ +/adaptiveFormats/.test(e),oa.cpn=b.clientPlaybackNonce);ta=new GJ(qa,oa,ha);return P.return(Promise.reject(ta))})};
agb=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.Ja(4);break}if(!(f>0)){t.Ja(5);break}return g.z(t,og(5E3),6);case 6:h=new g.FB("Retrying OnePlatform request",{attempt:f}),g.nE(h);case 5:return g.Ba(t,7),g.z(t,ggb(a,b),9);case 9:return t.return();case 7:l=g.Da(t);m=IJ(l);n=m.errorCode;p=a.U();p.L("html5_use_network_error_code_enums")?d&&n==="manifest.net.badstatus"&&m.details.rc===401&&(d=!1,f===e-1&&(e+=1)):d&&n===
"manifest.net.badstatus"&&m.details.rc==="401"&&(d=!1,f===e-1&&(e+=1));if(n==="auth"||n==="manifest.net.retryexhausted")return t.return(Promise.reject(m));a.handleError(m);if(HJ(m.severity)){t.Ja(4);break}case 3:f++;t.Ja(2);break;case 4:return q=c?"auth":"manifest.net.retryexhausted",r=c?2:1,t.return(Promise.reject(new GJ(q,{backend:"op"},r)))}})};
ggb=function(a,b){function c(qa){qa.readyState===2&&a.Td("ps_c")}
var d,e,f,h,l,m,n,p,q,r,t,u,w,A,C,F,G,K,N,R,da,oa;return g.H(function(qa){switch(qa.j){case 1:b.fetchType="gp";d=a.U();e=g.MR(d,g.fT(b));if(!e.j){f=e.getValue();qa.Ja(2);break}return g.z(qa,e.j,3);case 3:f=qa.B;case 2:return h=f,l=fgb(h),m=lYa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.cG(hgb),p=g.fT(b),q=(0,g.iC)(),r=!1,t="empty",u=0,a.Td("psns"),w={EB:c},g.z(qa,g.VG(l,m,n,void 0,w),4);case 4:A=qa.B;a.Td("psnr");if(b.Na())return qa.return();A?"error"in A&&A.error?(r=!0,t="esf:"+A.error.message,
u=A.error.code):A.errorMetadata&&(r=!0,t="its",u=A.errorMetadata.status):r=!0;if(r)return C=0,F=((0,g.iC)()-q).toFixed(),G={},G=d.L("html5_use_network_error_code_enums")?{backend:"op",rc:u,rt:F,reason:t,has_kpt:b.Kb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.jA("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.Da?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.hj||"",token_eq:p===g.fT(b)?"1":"0"}:{backend:"op",
rc:""+u,rt:F,reason:t,has_kpt:b.Kb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.jA("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.Da?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.hj||"",token_eq:p===g.fT(b)?"1":"0"},K="manifest.net.connect",u===429?(K="auth",C=2):u>200&&(K="manifest.net.badstatus",u===400&&(C=2)),qa.return(Promise.reject(new GJ(K,G,C)));b.loading=!1;g.vS(b,{raw_player_response:A},!0);
N=A;g.sR(b.U())&&N&&N.trackingParams&&EO(N.trackingParams);if(b.errorCode)return R={ec:b.errorCode,ed:b.errorDetail,es:b.Rn||""},qa.return(Promise.reject(new GJ("auth",R,2)));if(!b.loading&&!tS(b))return da=b.isAd()?"auth":"manifest.net.retryexhausted",oa=b.isAd()?2:1,qa.return(Promise.reject(new GJ(da,{successButUnplayable:"1",hasMedia:g.SS(b)?"1":"0"},oa)));g.Aa(qa)}})};
$fb=function(a,b,c){function d(u){u=IJ(u);if(HJ(u.severity))return Promise.reject(u);a.handleError(u);return!1}
function e(){return!0}
var f,h,l,m,n,p,q,r,t;return g.H(function(u){switch(u.j){case 1:var w=a.U(),A=a.getPlayerSize(),C=a.getVisibilityState();a.isFullscreen();var F=window.location.search;if(b.Oa===38&&w.playerStyle==="books")F=b.videoId.indexOf(":"),F=g.to("//play.google.com/books/volumes/"+b.videoId.slice(0,F)+"/content/media",{aid:b.videoId.slice(F+1),sig:b.Z3});else if(b.Oa===30&&w.playerStyle==="docs")F=g.to("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.vda,authkey:b.Bfa,eurl:w.Sc});else if(b.Oa===
33&&w.playerStyle==="google-live")F=g.to("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{w.ra!=="yt"&&g.mE(Error("getVideoInfoUrl for invalid namespace: "+w.ra));var G={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:w.Sc,ps:w.playerStyle,el:bT(b),hl:w.wj,list:b.playlistId,agcid:b.BW,aqi:b.adQueryId,sts:19912,lact:CD()};Object.assign(G,w.j);w.forcedExperiments&&(G.forced_experiments=w.forcedExperiments);b.Da?(G.vvt=b.Da,b.mdxEnvironment&&(G.mdx_environment=b.mdxEnvironment)):
g.fT(b)&&(G.access_token=g.fT(b));b.adFormat&&(G.adformat=b.adFormat);b.slotPosition>=0&&(G.slot_pos=b.slotPosition);b.breakType&&(G.break_type=b.breakType);b.dD!==null&&(G.ad_id=b.dD);b.hD!==null&&(G.ad_sys=b.hD);b.QD!==null&&(G.encoded_ad_playback_context=b.QD);b.JD&&(G.tpra="1");w.captionsLanguagePreference&&(G.cc_lang_pref=w.captionsLanguagePreference);w.Kb&&w.Kb!==2&&(G.cc_load_policy=w.Kb);var K=g.DB(g.CB(),65);g.ER(w)&&K!=null&&!K&&(G.device_captions_on="1");w.mute&&(G.mute=w.mute);b.annotationsLoadPolicy&&
w.annotationsLoadPolicy!==2&&(G.iv_load_policy=b.annotationsLoadPolicy);b.qw&&(G.endscreen_ad_tracking=b.qw);(K=w.Oa.get(b.videoId))&&K.DM&&(G.ic_track=K.DM);b.va&&(G.itct=b.va);TXa(b)&&(G.autoplay="1");b.mutedAutoplay&&(G.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(G.autonav="1");b.YD&&(G.noiba="1");b.isMdxPlayback&&(G.mdx="1",G.ytr=b.Nj);b.mdxControlMode&&(G.mdx_control_mode=b.mdxControlMode);b.Kw&&(G.ytrcc=b.Kw);b.SF&&(G.utpsa="1");b.isFling&&(G.is_fling="1");b.isInlinePlaybackNoAd&&(G.mute="1");
b.vnd&&(G.vnd=b.vnd);b.forceAdsUrl&&(K=b.forceAdsUrl.split("|").length===3,G.force_ad_params=K?b.forceAdsUrl:"||"+b.forceAdsUrl);b.Ed&&(G.preload=b.Ed);A.width&&(G.width=A.width);A.height&&(G.height=A.height);(b.Ci?0:b.Wi)&&(G.splay="1");b.ypcPreview&&(G.ypc_preview="1");dT(b)&&(G.content_v=dT(b));b.Cb&&(G.livemonitor=1);w.Da&&(G.authuser=w.Da);w.pageId&&(G.pageid=w.pageId);w.ib&&(G.ei=w.ib);w.D&&(G.iframe="1");b.contentCheckOk&&(G.cco="1");b.racyCheckOk&&(G.rco="1");w.N&&b.SH&&(G.live_start_walltime=
b.SH);w.N&&b.Vl&&(G.live_manifest_duration=b.Vl);w.N&&b.playerParams&&(G.player_params=b.playerParams);w.N&&b.cycToken&&(G.cyc=b.cycToken);w.N&&b.GN&&(G.tkn=b.GN);C!==0&&(G.vis=C);w.enableSafetyMode&&(G.enable_safety_mode="1");b.Kb&&(G.kpt=b.Kb);b.yp&&(G.kids_age_up_mode=b.yp);b.kidsAppInfo&&(G.kids_app_info=b.kidsAppInfo);b.zB&&(G.upg_content_filter_mode="1");w.widgetReferrer&&(G.widget_referrer=w.widgetReferrer.substring(0,128));b.ra?(A=b.ra.latitudeE7!=null&&b.ra.longitudeE7!=null?b.ra.latitudeE7+
","+b.ra.longitudeE7:",",A+=","+(b.ra.clientPermissionState||0)+","+(b.ra.locationRadiusMeters||"")+","+(b.ra.locationOverrideToken||"")):A=null;A&&(G.uloc=A);b.wp&&(G.internalipoverride=b.wp);w.embedConfig&&(G.embed_config=w.embedConfig);w.qm&&(G.co_rel="1");w.ancestorOrigins.length>0&&(G.ancestor_origins=Array.from(w.ancestorOrigins).join(","));w.homeGroupInfo!==void 0&&(G.home_group_info=w.homeGroupInfo);w.livingRoomAppMode!==void 0&&(G.living_room_app_mode=w.livingRoomAppMode);w.enablePrivacyFilter&&
(G.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(G.is_living_room_deeplink="1");b.hw&&b.jw&&(G.clip=b.hw,G.clipt=b.jw);b.ow&&(G.disable_watch_next="1");b.Hn&&(G.forced_by_var="1");for(var N in G)!igb.has(N)&&G[N]&&String(G[N]).length>512&&(g.nE(Error("GVI param too long: "+N)),G[N]="");N=w.Ha;g.tR(w)&&(N=NCa(N.replace(/\b(?:www|web)([.-])/,"tv$1"))||w.Ha);w=g.to(N+"get_video_info",G);F&&(w=Sqa(w,F));F=w}f=F;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m<l)){u.Ja(4);break}n=f;if(!(m>0)){u.Ja(5);break}return g.z(u,
og(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=uA(f,p);case 5:return g.z(u,jgb(b,n).then(e,d),7);case 7:if(q=u.B)return u.return();m++;u.Ja(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";t=h?2:1;if(!h&&Math.random()<1E-4)try{g.nE(new g.FB("b/152131571",btoa(f)))}catch(R){}return u.return(Promise.reject(new GJ(r,{backend:"gvi"},t)))}})};
jgb=function(a,b){function c(A){return d(A.xhr)}
function d(A){if(!a.Na()){A=A?A.status:-1;var C=0,F=((0,g.iC)()-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";A===429?(G="auth",C=2):A>200&&(G="manifest.net.badstatus",A===400&&(C=2));return Promise.reject(new GJ(G,F,C))}}
var e,f,h,l,m,n,p,q,r,t,u,w;return g.H(function(A){if(A.j==1){a.fetchType="gvi";e=a.U();var C={};a.kD&&(C.ytrext=a.kD);(l=g.gd(C)?void 0:C)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=uA(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=WQ(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);Object.keys(m).length>
0&&(f.headers=m);p=(0,g.iC)();return g.z(A,uTa(JA,h,f).then(void 0,c),2)}q=A.B;if(!q||!q.responseText)return A.return(d(q));a.loading=!1;r=rA(q.responseText);g.vS(a,r,!0);if(a.errorCode)return t={ec:a.errorCode,ed:a.errorDetail,es:a.Rn||""},A.return(Promise.reject(new GJ("auth",t,2)));if(!a.loading&&!tS(a))return u=a.isAd()?"auth":"manifest.net.retryexhausted",w=a.isAd()?2:1,A.return(Promise.reject(new GJ(u,{successButUnplayable:"1"},w)));g.Aa(A)})};
p0=function(a,b,c){c=c===void 0?!1:c;var d,e,f,h;g.H(function(l){if(l.j==1){d=a.U();if(c&&(!g.GR(d)||bT(b)!=="embedded")||b.ow||bT(b)!=="adunit"&&(g.zI(d)||zR(d)||g.QF(d)||g.tR(d)||g.UQ(d)==="WEB_CREATOR"))return l.return();e=g.MR(d,g.fT(b));return e.j?g.z(l,e.j,3):(f=e.getValue(),l.Ja(2))}l.j!=2&&(f=l.B);h=f;return l.return(kgb(a,b,h))})};
kgb=function(a,b,c){var d,e,f,h,l;return g.H(function(m){if(m.j==1){g.Ba(m,2);d=fgb(c);var n=b.U();g.CB();var p={context:g.lT(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};bT(b)==="adunit"&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.qm&&(p.showContentOwnerOnly=!0);b.EX&&(p.showShortsOnly=!0);g.DB(0,141)&&(p.autonavState=g.DB(0,140)?"STATE_OFF":"STATE_ON");if(g.ER(n)){var q=g.DB(0,65);q=q!=null?
!q:!1;var r=!!g.yB("yt-player-sticky-caption");p.captionsRequested=q&&r}var t;q=(t=n.getWebPlayerContextConfig())==null?void 0:t.encryptedHostFlags;n.L("embeds_web_enable_havs_getwatchnext")&&q&&(p.playbackContext={encryptedHostFlags:q});e=p;f=g.cG(lgb);a.Td("wn_s");return g.z(m,g.VG(d,e,f),4)}if(m.j!=2)return h=m.B,a.Td("wn_r"),!h||"error"in h&&h.error||(l=h,g.sR(b.U())&&l.trackingParams&&EO(l.trackingParams),g.vS(b,{raw_watch_next_response:h},!1)),g.Ca(m,0);g.Da(m);g.Aa(m)})};
mgb=function(a){a.Td("vir");a.Td("ps_s");SG("vir",void 0,"video_to_ad");var b=egb(a);b.then(function(){a.Td("virc");SG("virc",void 0,"video_to_ad");a.Td("ps_r");SG("ps_r",void 0,"video_to_ad")},function(){a.Td("virc");
SG("virc",void 0,"video_to_ad")});
return b};
g.s0=function(a,b,c,d,e,f,h,l,m,n){m=m===void 0?new g.sS(a):m;n=n===void 0?!0:n;g.GE.call(this);var p=this;this.X=a;this.playerType=b;this.Ob=c;this.CH=d;this.getVisibilityState=f;this.visibility=h;this.zd=l;this.videoData=m;this.I7=n;this.logger=new g.FQ("VideoPlayer");this.iE=new sfb(this.X);this.Ce=null;this.OB=new E_;this.Dr=null;this.Jk=new Ndb(this.X,this.CH,this);this.SY=!0;this.Ra=this.Aa=null;this.yq=[];this.zq=new o0;this.Mf=this.JG=null;this.Gs=new o0;this.GL=null;this.nQ=this.Au=!1;this.HL=
NaN;this.K0=!1;this.playerState=new g.AK;this.KL=[];this.MC=new g.NJ;this.rl=new Bdb(this);this.mediaElement=null;this.Kx=new g.Dv(this.lba,15E3,this);this.iT=this.cL=!1;this.wy=NaN;this.II=!1;this.iO=0;this.zF=!1;this.DK=NaN;this.QT=new PU(new Map([["bufferhealth",function(){return Ofb(p.Rc)}],
["bandwidth",function(){return p.yP()}],
["networkactivity",function(){return p.X.schedule.Y}],
["livelatency",function(){return p.isAtLiveHead()&&p.isPlaying()?ngb(p):NaN}],
["rawlivelatency",function(){return ngb(p)}]]));
this.RF=0;this.loop=!1;this.playbackRate=1;this.LZ=0;this.Rc=new Hfb(this);this.WW=!1;this.JL=[];this.VQ=this.L0=0;this.dT=this.n3=!1;this.Gv=this.Xs=0;this.VN=new g.Dv(this.B9,0,this);this.v2=!1;this.xb=this.Yc=null;this.oaa=[this.MC,this.VN,this.Kx,this.QT];this.Lf=function(){var q=p.uc();q.provider.X.Tf||q.provider.ea.getVisibilityState()===3||(q.provider.X.Tf=!0);cfb(q);if(q.B){var r=q.B;r.G&&r.j<0&&r.provider.ea.getVisibilityState()!==3&&ceb(r)}q.qoe&&(q=q.qoe,q.Xa&&q.B<0&&q.provider.X.Tf&&yeb(q),
q.C&&N_(q));p.Aa&&q0(p);p.X.Dp&&!p.videoData.backgroundable&&p.mediaElement&&!p.ji()&&(p.isBackground()&&p.mediaElement.uI()?(p.oa("bgmobile",{suspend:1}),p.Xo(!0,!0)):p.isBackground()||r0(p)&&p.oa("bgmobile",{resume:1}))};
this.wd={tq:function(q){p.tq(q)},
osb:function(q){p.Ce=q},
Nqb:function(){return p.jB},
uA:function(){return p.kB},
lqb:function(){return p.jO},
mqb:function(){return p.kO},
Grb:function(){},
U:function(){return p.X},
Me:function(){return p.mediaElement},
Irb:function(q){p.uL(q)}};
this.logger.debug(function(){return"creating, type "+b});
this.Fh=new a0(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.VI("endcr")||g.yF(p.playerState,32)||GX(p);
e(q,r,p.playerType)},function(q,r){g.DS(p.videoData)&&p.oa(q,r)});
g.M(this,this.Fh);g.M(this,this.Rc);ogb(this,m);this.videoData.subscribe("dataupdated",this.Rca,this);this.videoData.subscribe("dataloaded",this.BO,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.oa,this);this.videoData.subscribe("ctmpstr",this.Ay,this);this.gJ();Y5a(this.Lf);this.visibility.subscribe("visibilitystatechange",this.Lf);this.jO=new g.Dv(this.hM,g.oI(this.X.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.kO=
new g.Dv(this.hM,g.oI(this.X.experiments,"html5_player_att_retry_delay_ms")||4500,this)};
uK=function(a){return a.L("html5_not_reset_media_source")&&!a.bj()&&!a.videoData.isLivePlayback&&g.cT(a.videoData)&&!a.X.supportsGaplessShorts()};
ogb=function(a,b){if(a.playerType===2||a.X.Yp)b.GU=!0;var c=ZVa(b.Bc,b.cC,a.X.D,a.X.N);c&&(b.adFormat=c);a.playerType===2&&(b.Kk=!0);if(a.isFullscreen()||a.X.D)c=g.yB("yt-player-autonavstate"),b.autonavState=c||(a.X.D?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&n0(a,b.endSeconds)};
qgb=function(a){if(a.videoData.Y){var b=a.zd.Wc();a.videoData.Ov=a.videoData.Ov||(b==null?void 0:b.CP());a.videoData.Pv=a.videoData.Pv||(b==null?void 0:b.FP())}if(LXa(a.videoData)||!ZXa(a.videoData))b=a.videoData.errorDetail,a.Of(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.Rn||void 0);a.videoData.Ng=a.getUserAudio51Preference();a.L("html5_generate_content_po_token")&&pgb(a);a.L("html5_enable_d6de4")&&a.mU()};
rgb=function(a){dfb(a.jB);g.ub(a.jB);for(var b=a.kB,c=g.v(b.j.values()),d=c.next();!d.done;d=c.next())dfb(d.value);b.j.clear();g.ub(a.kB)};
sgb=function(a){return a.mediaElement&&a.mediaElement.ew()?a.mediaElement.Jb():null};
t0=function(a){if(a.L("html5_check_video_data_errors_before_playback_start")&&a.videoData.errorCode)return!1;if(a.videoData.xe())return!0;a.Of("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.FX=function(a,b){(b=b===void 0?!1:b)||g.DS(a.videoData)||nY(a.uc());a.Au=b;!t0(a)||a.zq.Du()?g.zI(a.X)&&a.videoData.isLivePlayback&&a.zq.Du()&&!a.zq.j&&!a.Au&&a.BO():(a.zq.start(),b=a.uc(),g.xM(b.provider),b.qoe&&teb(b.qoe),a.BO())};
tgb=function(a){var b=a.videoData;mgb(a).then(void 0,function(c){a.videoData!==b||b.Na()||(c=IJ(c),c.errorCode==="auth"&&a.videoData.errorDetail?a.Of(c.errorCode,2,unescape(a.videoData.errorReason),FJ(c.details),a.videoData.errorDetail,a.videoData.Rn||void 0):a.handleError(c))})};
B6a=function(a,b){a.Yc=b;a.Aa&&Bcb(a.Aa,new g.w_(b))};
wgb=function(a){if(!g.yF(a.playerState,128))if(a.videoData.isLoaded(),a.logger.debug("finished loading playback data"),a.yq=g.Kb(a.videoData.La),g.SS(a.videoData)){a.Ob.tick("bpd_s");u0(a).then(function(){a.Ob.tick("bpd_c");if(!a.Na()){a.Au&&(a.Hc(DK(DK(a.playerState,512),1)),r0(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&n0(a,c.endSeconds);a.zq.j=!0;v0(a,"dataloaded");a.Gs.Du()&&ugb(a);beb(a.Jk,a.Mf)}});
a.L("html5_log_media_perf_info")&&a.oa("loudness",{v:a.videoData.Uf.toFixed(3)},!0);var b=$Xa(a.videoData);b&&a.oa("playerResponseExperiment",{id:b},!0);vgb(a)}else v0(a,"dataloaded")};
u0=function(a){w0(a);a.Mf=null;var b=ufb(a.X,a.videoData,a.ji());a.JG=b;a.JG.then(function(c){xgb(a,c)},function(c){a.Na()||(c=IJ(c),a.visibility.isBackground()?(x0(a,"vp_none_avail"),a.JG=null,a.zq.reset()):(a.zq.j=!0,a.Of(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",FJ(c.details))))});
return b};
H_=function(a){a.logger.debug("Updating for format change");u0(a).then(function(){return r0(a)});
a.playerState.isOrWillBePlaying()&&a.playVideo()};
xgb=function(a,b){if(!a.Na()&&!b.videoData.Na()){a.logger.debug("finished building playback data");a.Mf=b;Kfb(a.Rc,a.Mf);if(a.videoData.isLivePlayback){var c=J7a(a.zd.Pu,a.videoData.videoId)||a.Aa&&!isNaN(a.Aa.Da);c=a.L("html5_onesie_live")&&c;l0(a)||a.videoData.Qb>0&&!CS(a.videoData)||c||a.seekTo(a.qe(),{hd:"videoplayer_playbackData",seekSource:18})}if(a.videoData.C.j){if(a.L("html5_sabr_report_missing_url_as_error")&&XXa(a.videoData)){a.handleError(new GJ("fmt.missing",{missabrurl:"1"},2));return}a.Aa?
g.nE(Error("Duplicated Loader")):(c=g.oI(a.X.experiments,"html5_onesie_defer_content_loader_ms"))&&s_(a)&&J7a(a.zd.Pu,a.videoData.j4)?g.BA(function(){a.Na()||a.Aa||ygb(a)},c):ygb(a)}else!a.videoData.C.j&&gT(a.videoData)&&a.oL(new CZ(a.videoData.videoId||"",4));
y0(a);Tdb(b).then(function(){var d={};a.hp(d);a.X.yc()&&a.L("html5_log_media_perf_info")&&a.oa("av1Info",d);q0(a)})}};
zgb=function(a){a.logger.debug("start readying playback");a.mediaElement&&a.mediaElement.activate();g.FX(a);t0(a)&&!g.yF(a.playerState,128)&&(a.Gs.Du()||(a.Gs.start(),a.videoData.Wl?a.Hc(DK(a.playerState,4)):a.Hc(DK(DK(a.playerState,8),1))),ugb(a))};
ugb=function(a){a.Na();a.logger.debug("try finish readying playback");if(a.Gs.j)a.logger.debug("already finished readying");else if(a.zq.j)if(g.yF(a.playerState,128))a.logger.debug("cannot finish readying because of error");else if(a.yq.length)a.logger.debug(function(){return"cannot finish readying because of pending preroll: "+a.yq});
else if(a.Fh.started||pfb(a.Fh),a.po())a.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{a.Aa&&(a.nQ=E9a(a.Aa.timing));a.Gs.j||(a.Gs.j=!0);var b=a.L("html5_onesie_live")&&a.Aa&&!isNaN(a.Aa.Da);!a.videoData.isLivePlayback||a.videoData.Qb>0&&!CS(a.videoData)||b||l0(a)||(a.logger.debug("seek to head for live"),a.seekTo(Infinity,{hd:"videoplayer_readying",seekSource:18}),a.isBackground()&&(a.iT=!0));bfb(a.uc());a.logger.debug("finished readying playback");a.publish("playbackready",
a);RG("pl_c",a.Ob.timerName)||(a.Ob.tick("pl_c"),SG("pl_c",void 0,"video_to_ad"));RG("pbr",a.Ob.timerName)||(a.Ob.tick("pbr"),SG("pbr",void 0,"video_to_ad"))}else a.logger.debug("playback data not loaded")};
GX=function(a,b,c){b=b===void 0?!0:b;(c===void 0||c)&&a.mediaElement&&a.mediaElement.pause();a.Hc(b?new g.AK(14):new g.AK)};
n0=function(a,b){a.Dr&&Agb(a);a.Dr=new g.UI(b*1E3,0x7ffffffffffff);a.Dr.namespace="endcr";a.addCueRange(a.Dr)};
Agb=function(a){a.removeCueRange(a.Dr);a.Dr=null};
Bgb=function(a,b,c,d,e){var f=a.uc(e);e=g.DS(a.videoData)?f.getVideoData():a.videoData;e.B=c;var h=g.SU(a);f.FG(new Mdb(e,c,b,h?h.itag:"",d));c=a.Jk;c.B=0;c.j=0;a.publish("internalvideoformatchange",e,b==="m")};
g.SU=function(a){var b=z0(a);return SO(b)||!a.Mf?null:g.Cb(a.Mf.j.videoInfos,function(c){return b.D(c)})};
z0=function(a){if(a.Mf){var b=a.Jk;var c=a.Mf;a=a.Yw();if(b.ea.Mm().isInline())var d=rS;else b.L("html5_exponential_memory_for_sticky")?d=cVa(b.X.Sf,"sticky-lifetime")<.5?"auto":TO[KO()]:d=TO[KO()],d=g.RO("auto",d,!1,"s");if(SO(d)){d=Odb(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.v(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if((m=l.B)==null?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;kra()&&!g.zI(b.X)&&VJ(c.j.videoInfos[0])&&
(f=Math.min(f,g.PJ.large));h=g.oI(b.X.experiments,"html5_chipset_soft_cap");h>0&&(f=Math.min(f,h));d=e.call(d,new PO(0,f,!1,"o"));e=d.compose;f=4320;!b.X.B||g.sR(b.X)||b.X.L("hls_for_vod")||b.X.L("mweb_remove_360p_cap")||g.oI(b.X.experiments,"html5_byterate_soft_cap_mweb")!==0||(f=g.PJ.medium);(h=g.oI(b.X.experiments,"html5_default_quality_cap"))&&c.j.j&&(b.X.L("html5_always_apply_default_quality_cap")||!c.videoData.hj&&!c.videoData.oe)&&(f=Math.min(f,h));(h=g.oI(b.X.experiments,"html5_ns_yt_progressive_quality_cap"))&&
!c.j.j&&b.X.ra==="yt"&&(f=Math.min(f,h));h=g.oI(b.X.experiments,"html5_random_playback_cap");l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.oI(b.X.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.v(l.videoInfos),m=l.next();!m.done;m=l.next())if(m.value.video.fps>32){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.oI(b.X.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=$db(b,c,f);d=e.call(d,g.oI(b.X.experiments,"html5_byterate_soft_cap_mweb")>
0&&b.X.B&&!g.sR(b.X)?new PO(0,f===4320?0:f,!1,"d",g.oI(b.X.experiments,"html5_byterate_soft_cap_mweb")):new PO(0,f===4320?0:f,!1,"d")).compose(Zdb(b,c.videoData)).compose(aeb(b,c.videoData,c)).compose(Ydb(b,c)).compose(Rdb(b,c));if(SO(a)||b.L("html5_apply_pbr_cap_for_drm"))d=d.compose(Sdb(b,c))}else b.L("html5_perf_cap_override_sticky")&&(d=d.compose(Ydb(b,c))),b.L("html5_ustreamer_cap_override_sticky")&&(d=d.compose(Sdb(b,c)));d=d.compose(Rdb(b,c));b=c.videoData.MB.compose(d).compose(c.videoData.HZ).compose(a)}else b=
rS;return b};
ybb=function(a){var b=a.Jk;a=a.videoData;var c=Zdb(b,a);b.L("html5_disable_client_autonav_cap_for_onesie")||c.compose(aeb(b,a));return c};
g.Cgb=function(a,b,c,d){a.videoData.MB=b;if(a.Mf&&c){c=a.Jk;var e=a.Mf;if(e.j.j){var f=KO(),h=e.j.videoInfos[0].video.j;if(!(f>h&&h!==0&&b.j===h)){var l;f=Qdb(c,(l=e.j)==null?void 0:l.videoInfos);l=c.ea.getPlaybackRate();l>1&&f&&(l=GUa(c.X.G,e.j.videoInfos,l),b.j!==0&&l<b.j&&c.ea.setPlaybackRate(1));var m,n;b=g.PJ[UO(b)];e=((m=e.videoData.B)==null?void 0:(n=m.video)==null?void 0:n.j)||0;g.xB("yt-player-quality",{quality:b,previousQuality:e},31104E3);c.X.schedule.policy.C=KO()>=480;if(c.L("html5_exponential_memory_for_sticky")){m=
c.X.Sf;n=1;var p=p===void 0?!1:p;bVa(m,"sticky-lifetime");m.values["sticky-lifetime"]&&m.Rr["sticky-lifetime"]||(m.values["sticky-lifetime"]=0,m.Rr["sticky-lifetime"]=0);p&&cVa(m,"sticky-lifetime")>.0625&&(n=m.Rr["sticky-lifetime"]*2);m.values["sticky-lifetime"]+=1*Math.pow(2,m.j/n);m.Rr["sticky-lifetime"]=n;m.D.start()}if(c.L("html5_perf_cap_override_sticky")){m=c.X;p=c.C;c=c.L("html5_perserve_av1_perf_cap");n=c=c===void 0?!1:c;m=m.L("html5_gradual_perf_cap");m=m===void 0?!1:m;if(n===void 0?0:n){n=
LO();b=g.v(Object.keys(n));for(e=b.next();!e.done;e=b.next())e=e.value,e.indexOf("1")!==0&&(n[e]=0);g.xB("yt-player-performance-cap",n,m?2592E3:604800)}else g.zB("yt-player-performance-cap");XPa(c);if(c){c=g.v(GQ.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||GQ.delete(m);c=g.v(I_.values());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||I_.delete(m);c=g.v(p.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||p.delete(m)}else GQ.clear(),I_.clear(),
p.clear()}}}}a.Aa&&(p=a.Aa,d=d||"",mV(p.policy)?qZ(p.C.j,d):qZ(p.j.G,d));y0(a)};
pgb=function(a){a.videoData.lw="";a.videoData.videoId?a.zd.vP(a.videoData.videoId).then(function(b){a.videoData.lw=b;a.publish("contentPoTokenReady",a.videoData,!0)}):a.oa("pomvid",{})};
y0=function(a){if(!a.Na()&&!g.yF(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)q0(a);else{var b=z0(a),c=a.videoData;a:{var d=a.videoData.Fd;if(b.j){for(var e=g.v(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.getInfo(),l=g.PJ[h.video.quality];if((!b.C||h.video.quality!=="auto")&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.rb=d;Bgb(a,b.reason,Dgb(a,a.videoData.rb))}if(a.L("html5_check_unstarted")?a.playerState.isOrWillBePlaying():a.isPlaying())a.Rc.Ha=!1,a.playVideo()}};
q0=function(a){if(a.videoData.C&&a.videoData.C.j){var b=z0(a);a.Aa&&kcb(a.Aa,b)}};
Egb=function(a){var b;return!!(a.L("html5_native_audio_track_switching")&&g.dC&&((b=a.videoData.B)==null?0:ZJ(b)))};
Fgb=function(a){if(!Egb(a))return!1;var b;a=(b=a.mediaElement)==null?void 0:b.audioTracks();return!!(a&&a.length>1)};
Hgb=function(a){var b=Ggb(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.Yb.getName()===b})};
Ggb=function(a){var b;if(a=(b=a.mediaElement)==null?void 0:b.audioTracks())for(b=0;b<a.length;++b){var c=a[b];if(c.enabled)return c.label}};
Igb=function(a){var b,c=a.videoData.getAvailableAudioTracks(),d=a.videoData.vfa;d&&(b=c.find(function(f){return f.getLanguageInfo().id===d}));
if(a.X.experiments.gb("enable_audio_description_setting")&&g.DB(g.CB(),198)){c=g.v(c);for(var e=c.next();!e.done;e=c.next())if(e=e.value,e.G){b=e;break}}b||(a=a.getAudioTrack(),b=a.Yb.isDefault?void 0:a);return b};
ygb=function(a){for(var b=a.videoData.j,c=g.v(Object.entries({cpn:a.videoData.clientPlaybackNonce,c:a.X.j.c,cver:a.X.j.cver})),d=c.next();!d.done;d=c.next()){var e=g.v(d.value);d=e.next().value;e=e.next().value;for(var f=g.v(Object.values(b.j)),h=f.next();!h.done;h=f.next())ySa(h.value.resource,d,e);f=void 0;(f=b.ra)==null||ySa(f,d,e)}c=a.X;d=a.videoData;b=new g.h0a(c);e=g0a({hasSubfragmentedFmp4:d.hasSubfragmentedFmp4,uF:d.uF});b.N=e;b.va=d.maxReadAheadMediaTimeMs/1E3||b.va;e=c.schedule;e.B.jh()===
e.policy.B?b.Ab=10:b.Ab=d.minReadAheadMediaTimeMs/1E3||b.Ab;b.Ng=d.readAheadGrowthRateMs/1E3||b.Ng;Js&&(b.Fd=41943040);b.mm=!WEa();g.zI(c)||!WEa()?(e=c.experiments,b.Da=8388608,b.ib=524288,b.Xl=5,b.Oa=1048576,b.Tv=1.5,b.ub=4587520,lra()&&(b.ub=786432),b.Z*=1.1,b.Y*=1.1,b.Ud=!0,b.Fd=b.Da,b.Sf=e.gb("persist_disable_player_preload_on_tv")||e.gb("persist_disable_player_preload_on_tv_for_living_room")||!1):c.B&&(b.Z*=1.3,b.Y*=1.3);g.LJ&&g.SA("crkey")&&(e=c.j.cmodel==="CHROMECAST/ANCHOVY",b.Da=20971520,
b.ib=1572864,e&&(b.ub=812500,b.Sk=1E3,b.yw=5,b.Oa=2097152));g.QQ&&(b.Ud=!0);c.supportsGaplessAudio()||(b.En=!1);lR&&(b.Zc=!0);b.le=c.L("html5_peak_shave");d.fetchType==="onesie"&&c.L("html5_disable_peak_shave_for_onesie")&&(b.le=!1);var l;e=(l=d.j)==null?void 0:$O(l);if(CS(d)){b.mf=!0;b.Ej=!0;b.Qb=!0;b.Vk=!0;b.jw=!0;if(d.latencyClass==="ULTRALOW"||d.latencyClass==="LOW"&&!c.L("html5_disable_low_pipeline"))b.Ap=2,b.Dp=4;b.lk=d.defraggedFromSubfragments;if(d.If||c.L("html5_publish_all_cuepoints"))b.Qv=
!0;g.VS(d)&&(b.Kb=!1);b.fm=g.xI(c)}d.isAd()&&(b.Kj=0,b.Cj=0);b.zj=c.L("html5_enable_subsegment_readahead_v3")||c.L("html5_ultra_low_latency_subsegment_readahead")&&d.latencyClass==="ULTRALOW";b.B=/^rq/.test(d.clientPlaybackNonce)||c.yc();rra()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(c.j.cmodel)&&!c.L("html5_disable_move_pssh_to_moov")&&e&&(b.Ud=!1);f=0;c.L("html5_live_use_alternate_bandwidth_window_sizes")&&(f=c.schedule.policy.j,d.isLivePlayback&&(f=g.oI(c.experiments,d.latencyClass==="ULTRALOW"?"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.Sa.C=CS(d)?.5:0;if(!l.policy.D&&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;n<0&&(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.ql=!0;l.G=QUa(l)}d.isLivePlayback&&(b.Iq=g.oI(c.experiments,"html5_min_startup_buffered_media_duration_for_live_secs")||
.25,b.rb=!1);LS(d)&&(b.zj=!0,d.latencyClass==="LOW"?b.Cc=g.oI(c.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):d.latencyClass==="ULTRALOW"&&(b.Cc=g.oI(c.experiments,"html5_jumbo_ull_subsegment_readahead_target")),b.iq=!0);d.hc()&&(b.Zl=1.3);b.Zc=b.Zc||d.YC;b.j=g.DS(d);b.Wa=d.Y||b.j&&!c.L("html5_enable_ssap_seteos");c.yc()&&(b.La=!0);d.Y&&!e&&(b.Uv=!0);d.Y&&d.isAd()&&(b.Z*=1.6,b.Y*=1.6);gT(d)&&(b.D=d.videoId,b.Vl=!0,b.pw=g.oI(c.experiments,"html5_offline_download_timeout_retry_limit"),
d.Zy&&d.Zy.length>0&&(b.tf=d.Zy));b.Vf=d.Vj;b.tj=oUa(c,{},d.C||void 0,qXa(d));b.eb=JS(d)&&g.QF(c);BS(d)&&(c.L("html5_sabr_report_full_segment_for_partial_eviction")&&(b.gw=!0),b.C=!0,b.Di=c.L("html5_sabr_enable_utc_seek_requests"),b.nm=c.L("html5_disable_client_resume_policy_for_sabr"),b.nw=c.L("html5_trigger_loader_when_idle_network"),b.Sq=c.L("html5_sabr_parse_live_metadata_playback_boundaries"),b.Lv=c.L("html5_enable_platform_backpressure_with_sabr"),b.Wf=c.L("html5_consume_onesie_next_request_policy_for_sabr"),
b.Rv=c.L("html5_sabr_report_next_ad_break_time"),b.G=d.enableServerStitchedDai&&c.L("html5_enable_sabr_ssdai"),b.Vq=c.L("html5_pause_ssdai_append"),b.Hn=c.L("html5_sabr_exclude_quality_ordinal_check"),b.zp=c.L("html5_log_high_res_buffer_timeline"),b.qw=c.L("html5_gapless_sabr_btl_last_slice")&&IS(d),CS(d)&&(b.pm=c.L("html5_disable_variability_tracker_for_live"),b.Sa=c.L("html5_sabr_use_accurate_slice_info_params")),b.Ov=c.L("html5_serve_start_seconds_seek_for_post_live_sabr"),b.ra=c.L("html5_enable_sabr_request_pipelining")&&
!g.DS(d),b.Jj=c.L("html5_ignore_partial_segment_from_live_readahead"),b.uw=c.L("html5_use_non_active_broadcast_for_post_live"),b.Cb=c.L("html5_use_centralized_player_time"),b.Xa=c.L("html5_enable_sabr_seek_loader_refactor"));b.K=b.C&&c.L("html5_sabr_live");dP(c.G,eP.BITRATE)&&(b.ub=NaN);if(l=g.oI(c.experiments,"html5_request_size_max_kb"))b.Oa=l*1024;c.G.D?b.Lb="; "+eP.EXPERIMENTAL.name+"=allowed":c.L("html5_enable_cobalt_tunnel_mode")&&(b.Lb="; tunnelmode=true");l=d.serverPlaybackStartConfig;(l==
null?0:l.enable)&&(l==null?0:l.playbackStartPolicy)&&(b.Wi=!0,j0a(b,l.playbackStartPolicy,2));l=Igb(a);a.OB.removeAll();a:{c=a.zd.Pu;if(d=a.videoData.videoId)if(e=c.j.get(d)){c.j.remove(d);c=e;break a}c=void 0}a.Aa=new g.r_(a,a.X.schedule,b,a.videoData.j,a.videoData.C,z0(a),l,a.videoData.enableServerStitchedDai,c,a.videoData.Wa);b=a.Au&&g.zI(a.X)&&a.videoData.isLivePlayback;a.Aa.initialize(a.getCurrentTime(),z0(a),b);a.videoData.probeUrl&&(a.Aa.Oa=a.videoData.probeUrl);if(a.yq.length||a.Au)a.videoData.cotn||
A0(a,!1);Mfb(a.Rc,a.Aa);a.Yc&&Bcb(a.Aa,new g.w_(a.Yc));a.xb&&(a.Aa.mM(a.xb),a.Rc.Ha=!1);g.hT(a.videoData)&&(a=a.Aa,a.policy.Bj=a.policy.VD)};
w0=function(a){a.Aa&&(a.Aa.dispose(),a.Aa=null,Mfb(a.Rc,null));uK(a)?Jgb(a):IX(a)};
Jgb=function(a){if(a.Ra)if(a.logger.debug("release media source"),a.cA(),a.Ra.K)try{a.X.yc()&&a.oa("rms",{l:"vprms",sr:uK(a),rs:wK(a.Ra)});a.Ra.clear();var b;(b=a.mediaElement)!=null&&(b.B=a.Ra);a.Ra=null}catch(c){b=new g.FB("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=IJ(b),a.handleError(b),IX(a)}else IX(a)};
IX=function(a){a.Ra&&(a.logger.debug("remove media source"),ZEa(a.Ra),a.cA(),a.Ra.dispose(),a.Ra=null)};
Kgb=function(a){if(a.Ra)return a.Ra.C;a.logger.debug("update media source");a:{try{g.UA()&&a.videoData.JQ()&&bFa(a.mediaElement);var b=a.mediaElement.Nr(a.kA(),a.DP())}catch(d){if(Fdb(a.rl,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.Of("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}L5a(a,b)}var c;return((c=a.Nr())==null?void 0:c.C)||null};
L5a=function(a,b,c,d){function e(f){try{Lgb(a,f,c,d)}catch(h){g.nE(h),a.handleError(new GJ("fmt.unplayable",{msi:"1",ename:h&&typeof h==="object"&&"name"in h?String(h.name):void 0},1))}}
c=c===void 0?!1:c;d=d===void 0?!1:d;Mgb(a);a.Ra=b;uK(a)&&wK(a.Ra)==="open"?e(a.Ra):TEa(a.Ra,e)};
Mgb=function(a){if(a.Aa){var b=a.getCurrentTime()-a.Fc();a.Aa.seek(b,{}).Pl(function(){})}else ygb(a)};
Lgb=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;if(a.Ra&&(!b||a.Ra===b)){a.logger.debug("media source opened");var e=a.getDuration();!e&&CS(a.videoData)&&(e=25200);if(a.Ra.isView){var f=e;a.logger.debug(function(){return"Set media source duration to "+f+", video duration "+e});
f>a.Ra.getDuration()&&a.Ra.Nl(f)}else a.Ra.Nl(e);hcb(a.Aa,a.Ra,c,d);a.publish("mediasourceattached")}};
mcb=function(a,b){Bgb(a,b.reason,b.j.info,b.token,b.videoId)};
G_=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!1:c;var d,e,f;return g.H(function(h){if(h.j==1){a.Aa&&a.Aa.kx();a.Aa&&a.Aa.Na()&&w0(a);if(a.L("html5_enable_vp9_fairplay")&&a.bj()&&(d=a.videoData.j)!=null)for(var l in d.j)d.j.hasOwnProperty(l)&&(d.j[l].j=null,d.j[l].C=!1);a.Hc(DK(a.playerState,2048));a.publish("newelementrequired");return b?g.z(h,u0(a),2):h.Ja(2)}a.videoData.hc()&&((e=a.Aa)==null?0:e.Da)&&!l0(a)&&((f=a.isAtLiveHead())&&AS(a.videoData)?a.seekTo(Infinity,{hd:"videoPlayer_getNewElement"}):
a.videoData.je&&a.Aa&&(l=a.Aa,l.manifest.hc&&(l.manifest.je||l.manifest.C||l.manifest.isPremiere?(l.seek(0,{hd:"loader_resetSqless"}),l.videoTrack.N=!0,l.audioTrack.N=!0,l.videoTrack.G=!0,l.audioTrack.G=!0):DQ(l.manifest)&&a_(l))));c&&a.seekTo(0,{seekSource:105});g.yF(a.playerState,8)&&a.playVideo();g.Aa(h)})};
B0=function(a,b){a.oa("hgte",{ne:+b});a.videoData.Y=!1;b&&G_(a);a.Aa&&ecb(a.Aa)};
T5a=function(a,b){a.oa("newelem",{r:b});G_(a)};
Ngb=function(a,b){a.Ob.D.CR();g.yF(a.playerState,32)||(a.Hc(DK(a.playerState,32,b==null?void 0:b.seekSource)),g.yF(a.playerState,8)&&a.pauseVideo(!0),a.publish("beginseeking",a));a.Uc()};
J6a=function(a,b){b=b==null?void 0:b.seekSource;g.yF(a.playerState,32)?(a.Hc(FK(a.playerState,16,32,b)),a.publish("endseeking",a)):g.yF(a.playerState,2)||a.Hc(DK(a.playerState,16,b));a.Ob.D.HR(a.videoData,a.playerState.isPaused())};
Ogb=function(a,b){a.X.experiments.gb("enable_adb_handling_in_sabr")&&(a.pauseVideo(!0),a.hL(),b&&a.Of("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))};
w_a=function(a){var b=0,c="";if(a.Yc){if(a.Yc.Pn)return"D,";b=a.Yc.BP();c=a.Yc.xl().substring(0,4)}else a.xb&&(b=a.xb.BP(),c=a.xb.xl().substring(0,4));return b>0?(a="AD"+b+", ",c&&(a+=c+", "),a):""};
v0=function(a,b){a.publish("internalvideodatachange",b===void 0?"dataupdated":b,a,a.videoData)};
Pgb=function(a){for(var b=g.v("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.MC.T(a.mediaElement,c.value,a.uL,a);a.X.nm&&a.mediaElement.ew()&&(a.MC.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.taa,a),a.MC.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.uaa,a))};
I5a=function(a){g.EA(a.HL);Qgb(a)||(a.HL=g.CA(function(){return Qgb(a)},100))};
Qgb=function(a){var b=a.mediaElement;b&&a.cL&&!a.videoData.Ha&&!RG("vfp",a.Ob.timerName)&&b.al()>=2&&!b.isEnded()&&jK(b.Ih())>0&&a.Ob.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Ha&&b.getDuration()>0&&(b.isPaused()&&b.al()>=2&&jK(b.Ih())>0&&(RG("pbp",a.Ob.timerName)||a.Ob.tick("pbp"),!a.videoData.Wl||a.K0||b.isSeeking()||(a.K0=!0,a.publish("onPlaybackPauseAtStart"))),b=b.getCurrentTime(),b0(a.iE,b))?(J5a(a),!0):!1};
J5a=function(a){g.EA(a.HL);a.Kx.stop();a.videoData.Ha=!0;a.X.wp=!0;a.X.Lb=0;var b=a.rl;if(b.videoData.B){var c=b.Ea.G,d=b.videoData.B.sb;c.C.has(d)&&(c.C.delete(d),c.B=!0)}b.j.stop();Rgb(a);g.yF(a.playerState,8)&&a.Hc(EK(a.playerState,65));a.Au=!1;n7a(a.uc());g.Ev(a.jO);a.publish("playbackstarted");(a=g.Wa("yt.scheduler.instance.clearPriorityThreshold"))?a():SB(0,0)};
Rgb=function(a){var b=a.zd.Nd(),c={},d={};!RG("pbs",a.Ob.timerName)&&qG.measure&&qG.getEntriesByName&&(qG.getEntriesByName("mark_nr")[0]?vAa("mark_nr"):vAa());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.X.experiments.gb("web_csi_via_jspb")){var e=new Uz;Ok(e,6,!0);var f=new Vz;gk(f,Uz,22,e);g.nA(FG)(f,a.Ob.timerName)}else d.isPausedOnLoad=!0;a.X.experiments.gb("web_csi_via_jspb")?
(e=new Uz,b.B?Pk(e,1,Number(b.B.itag)):Pk(e,1,-1),f=new Vz,gk(f,Uz,22,e),g.nA(FG)(f,a.Ob.timerName)):d.itag=b.B?Number(b.B.itag):-1;b.Ed&&(f=a.nQ?2:1,a.X.experiments.gb("web_csi_via_jspb")?(e=new Uz,T(e,8,f),f=new Vz,gk(f,Uz,22,e),g.nA(FG)(f,a.Ob.timerName)):d.preloadType=String(a.nQ?2:1));c.liveStreamMode=Sgb[QS(b)];c.playerInfo=d;a.Ob.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.Ob.tick(h,b[h])}};
Tgb=function(a){a.uc().Fg();if(AS(a.videoData)&&Date.now()>a.LZ+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&$Ta(a.videoData.j))){var b=a.uc();if(b.qoe){b=b.qoe;var c=b.provider.ea.kF(),d=g.xM(b.provider);peb(b,d,c);c=c.C;isNaN(c)||g.L_(b,d,"e2el",[c.toFixed(3)])}}a.L("html5_alc_live_log_rawlat")?(b=a.videoData,b=g.xI(b.U())?!0:g.UQ(b.U())==="TVHTML5"?b.Xk==="6":!1):b=g.xI(a.X);b&&a.oa("rawlat",{l:RU(a.QT,"rawlivelatency").toFixed(3)});a.LZ=Date.now()}a.videoData.B&&ZJ(a.videoData.B)&&(b=sgb(a))&&
b.videoHeight!==a.VQ&&(a.VQ=b.videoHeight,Bgb(a,"a",Dgb(a,a.videoData.rb)))};
Dgb=function(a,b){if(b.j.video.quality==="auto"&&ZJ(b.getInfo())&&a.videoData.Fd)for(var c=g.v(a.videoData.Fd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.VQ&&d.j.video.quality!=="auto")return d.getInfo();return b.getInfo()};
ngb=function(a){if(!AS(a.videoData))return NaN;var b=0;a.Aa&&a.videoData.j&&(b=CS(a.videoData)?a.Aa.aJ.jh()||0:a.videoData.j.Ga);return(0,g.iC)()/1E3-a.qf()-b};
Vgb=function(a){a.mediaElement&&a.mediaElement.ji()&&(a.DK=(0,g.iC)());a.X.xq?g.BA(function(){Ugb(a)},0):Ugb(a)};
Ugb=function(a){var b;if((b=a.Ra)==null||!b.Pm()){if(a.mediaElement)try{a.GL=a.mediaElement.playVideo()}catch(d){x0(a,"err."+d)}if(a.GL){var c=a.GL;c.then(void 0,function(d){a.logger.debug(function(){return"playMediaElement failed: "+d});
if(!g.yF(a.playerState,4)&&!g.yF(a.playerState,256)&&a.GL===c)if(d&&d.name==="AbortError"&&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);x0(a,e);a.WW=!0;a.videoData.Ci=!0}})}}};
x0=function(a,b){g.yF(a.playerState,128)||(a.Hc(FK(a.playerState,1028,9)),a.oa("dompaused",{r:b}),a.publish("onAutoplayBlocked"))};
r0=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if((b=a.videoData.C)==null?0:b.j){c=Kgb(a);var d;(d=a.Aa)==null||d.resume()}else w0(a),a.videoData.rb&&(c=a.videoData.rb.BD());b=c;d=a.mediaElement.uI();c=!1;d&&b!==null&&b.resource===d.resource||(Wgb(a,b),c=!0);g.yF(a.playerState,2)||(b=a.Rc,b.G||!(b.D>0)||b.mediaElement&&b.mediaElement.getCurrentTime()>0||(d={hd:"seektimeline_resumeTime"},b.videoData.Ha||(d.seekSource=15),b.seekTo(b.D,d)));a:{b=c;if(BS(a.videoData)){if(!a.videoData.bj())break a}else if(!g.PS(a.videoData))break a;
if(a.mediaElement)if((d=a.videoData.K)&&a.mediaElement.ew()){var e=a.mediaElement.Jb();if(a.Ce)if(e!==a.Ce.element)C0(a);else if(b&&d.flavor==="fairplay"&&!VA())C0(a);else break a;if(a.L("html5_report_error_for_unsupported_tvos_widevine")&&VA()&&d.flavor==="widevine")a.Of("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.Ce=new udb(e,a.videoData,a.X);a.Ce.subscribe("licenseerror",a.nL,a);a.Ce.subscribe("qualitychange",a.jba,a);a.Ce.subscribe("heartbeatparams",
a.sG,a);a.Ce.subscribe("keystatuseschange",a.tq,a);a.Ce.subscribe("ctmp",a.oa,a);a.L("html5_widevine_use_fake_pssh")&&!a.videoData.isLivePlayback&&d.flavor==="widevine"&&a.Ce.gy(new BZ(Xgb,"cenc",!1));b=g.v(a.OB.keys);for(d=b.next();!d.done;d=b.next())d=a.OB.get(d.value),a.Ce.gy(d);a.L("html5_eme_loader_sync")||a.OB.removeAll()}}else a.Of("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return c};
Wgb=function(a,b){a.Ob.tick("vta");SG("vta",void 0,"video_to_ad");a.getCurrentTime()>0&&Qfb(a.Rc,a.getCurrentTime());a.mediaElement.activate(b);a.Ra&&SB(0,4);!a.videoData.Ha&&a.playerState.isOrWillBePlaying()&&a.Kx.start();if(Egb(a)){var c;if(b=(c=a.mediaElement)==null?void 0:c.audioTracks())b.onchange=function(){a.publish("internalaudioformatchange",a.videoData,!0)}}};
C0=function(a){a.Ce&&(a.Ce.dispose(),a.Ce=null)};
DX=function(a,b){b=b===void 0?!1:b;AS(a.videoData)&&(a.isAtLiveHead()&&!a.playerState.isPaused()||a.gq()||g.VS(a.videoData))?a=a.getCurrentTime():g.DS(a.videoData)&&a.xb?(b=a.xb,a=a.getCurrentTime(),a=(a=c7a(b,a*1E3))?(a.Zh()-a.cf())/1E3:0):a=a.qe(b);return a};
Ygb=function(a){a.logger.debug("reattachVideoSource");a.mediaElement&&(a.Ra?(C0(a),IX(a),Kgb(a)):(a.videoData.rb&&a.videoData.rb.lT(),a.mediaElement.stopVideo()),a.playVideo())};
Zgb=function(a,b){a.X.L("html5_log_rebuffer_reason")&&a.oa("bufreason",{r:b,lact:CD()})};
$X=function(a,b,c,d,e,f,h,l,m){var n;if((n=a.videoData.j)==null?0:n.isLive){var p=c.playerType===2?c:b,q=b.videoData.videoId,r=c.videoData.videoId;if(q&&r){n=a.uc();if(n.qoe){var t=n.qoe,u=b.cpn,w=c.cpn,A=p.videoData.Bc,C=t.provider.videoData.clientPlaybackNonce,F=t.provider.videoData.videoId,G=w!==C&&r!==F;C=u!==C&&q!==F;t.reportStats();t.adCpn&&t.adCpn!==u||(t.adCpn=C?u:"",t.Y=C?q:"",t.adFormat=C?A:void 0,mY(t,2,h?4:f?2:0,w,r,e),t.reportStats(),t.adCpn=G?w:"",t.Y=G?r:"",t.adFormat=G?A:void 0,mY(t,
2,h?5:f?3:1,u,q,d),t.reportStats())}d=b.cpn;if(n.C.has(d)){if(f=n.C.get(d),X_(f,!0).send(),W_(f),d!==n.provider.videoData.clientPlaybackNonce){Veb(f);var K;(K=n.j)==null||Qeb(K);n.C.delete(d)}}else n.Rg=n.provider.videoData.clientPlaybackNonce,n.Rg&&n.j&&(n.C.set(n.Rg,n.j),X_(n.j).send(),W_(n.j));K=c.cpn;p=p.videoData;e-=a.fu();if(n.C.has(K)){e=n.C.get(K);var N=e.C&&isNaN(e.D)?V_(e):NaN;e=Ueb(e,!1);isNaN(N)||(e.G=N);e.send()}else e=gfb(n,n.provider,p,e),n.C.set(K,e),Web(e,new g.xF(DK(new g.AK,8),
new g.AK)),Peb(e),(N=n.j)==null||W_(N);n.Rg=K;a.L("html5_unify_csi_server_stitched_transition_logging")?T_a(b.cpn,c.cpn,a.videoData.clientPlaybackNonce,c.videoData,l,void 0,m):(n=a.videoData.clientPlaybackNonce,a=c.videoData,b=(b.cpn===n?"video":"ad")+"_to_"+(c.cpn===n?"video":"ad"),n={},a.G&&(n.cttAuthInfo={token:a.G,videoId:a.videoId}),l&&(n.startTime=l),QG(b,n),g.LG({targetVideoId:a.videoId,targetCpn:c.cpn,isSsdai:!0},b),KG("pbs",m!=null?m:(0,g.iC)(),b))}}};
$gb=function(a,b){if(a.X.yc()&&a.mediaElement){var c=a.mediaElement.qc();c.omt=(a.mediaElement.getCurrentTime()+a.Fc()).toFixed(3);c.ps=a.playerState.state.toString(16);c.rt=(g.xM(a.uc().provider)*1E3).toFixed();c.e=b;a.JL[a.L0++%5]=c}try{if(b==="timeupdate"||b==="progress")return}catch(d){}a.logger.debug(function(){return"video element event "+b})};
ahb=function(a){if(a.X.yc()){a.JL.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.v(a.JL),c=b.next();!c.done;c=b.next())c=c.value,a.oa("vpe",Object.assign({t:c.rt},c));a.JL=[];a.L0=0}};
bhb=function(a){if(g.SA("cobalt")&&g.SA("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.oa("nxdock",{d:b})}};
H5a=function(a,b,c,d,e){a.oa("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
A0=function(a,b){var c;(c=a.Aa)==null||u_(c,b)};
s_=function(a){return g.Eb(a.yq,"ad")};
vgb=function(a){yS(a.videoData,"html5_set_debugging_opt_in")&&(a=g.CB(),g.DB(0,183)||(psa(183,!0),a.save()))};
chb=function(a){return g.DS(a.videoData)&&a.xb?lY(a.xb):a.videoData.qe()};
Jcb=function(a,b){a.zd.Co()||(a.oa("sgap",{f:b}),a.zd.clearQueue(!1,b==="pe"))};
l0=function(a){return BS(a.videoData)&&a.L("html5_disable_video_player_initiated_seeks")};
g.D0=function(a,b,c,d){g.I.call(this);var e=this;this.logger=new g.FQ("App");this.wB=this.xj=!1;this.kt={};this.QL={};this.kC=[];this.pZ=!1;this.CQ=null;this.uZ=!1;this.Cx=!0;this.DT=!1;this.PZ=this.XQ=null;this.c_=!0;this.mediaElement=this.Fb=null;this.tR=NaN;this.IG=!1;this.Ae=this.OC=this.xb=this.ye=this.screenLayer=this.wb=this.playlist=null;this.wd={bO:function(h,l){e.xb&&e.xb.bO(h,l)}};
this.logger.debug("constructor begin");this.config=fsa(b||{});this.webPlayerContextConfig=c;Csa();b=this.config.args||{};this.X=new oVa(b,c,c?c.canaryState:this.config.assets.player_canary_state,d,this);g.M(this,this.X);r6a(this.X);t6a(this.X);this.X.experiments.gb("jspb_serialize_with_worker")&&Rva();this.X.experiments.gb("gzip_gel_with_worker")&&qua();this.X.experiments.gb("web_player_empty_translator")?Jwa({},{}):this.X.experiments.gb("web_player_all_payloads_via_jspb")&&Jwa(dhb,ehb);this.X.B&&
!fhb&&(window.addEventListener(kR?"touchstart":"click",z5a,{capture:!0,passive:!0}),fhb=!0);this.L("html5_onesie")&&(this.ly=new uX(this.X),g.M(this,this.ly));this.f2=aB(pR(this.X)&&!0,b.enablesizebutton);this.QQ=aB(!1,b.player_wide);this.visibility=new $5a;g.M(this,this.visibility);this.L("web_log_theater_mode_visibility")&&this.xC(aB(!1,b.player_wide));this.xj=aB(!1,b.external_list);this.events=new g.NJ(this);g.M(this,this.events);this.L("start_client_gcf")&&(xva(HD(),{TG:JC,sU:Jta()}),this.V7=
HD().resolve(JC),Mta(this.V7));this.tda=new rT;g.M(this,this.tda);this.Wr=new T7a;d=new pYa;b=this.L("web_player_one_api");this.Va=new g.AT(this,d,b);g.M(this,this.Va);this.template=new N7a(this);g.M(this,this.template);this.appState=1;this.Ri=ghb(this);b?this.J=this.Va:(this.J=new g.wT(this,d,!0),g.M(this,this.J));g.M(this,d);d={};this.gO=(d.internalvideodatachange=this.xaa,d.playbackready=this.zaa,d.playbackstarted=this.Aaa,d.statechange=this.Baa,d);this.J8=new aV(this.Va);this.Qd=hhb(this);d=this.L("html5_load_wasm");
b=this.L("html5_allow_asmjs");if(d&&ihb||b)uV(Q0a(this.Qd,b).bk(function(h){e.X.Ld=h;var l;(l=g.uT(e))==null||l.oa("wasm",{a:h.cq})}),function(h){g.nE(h);
h="message"in h&&h.message||h.toString()||"";var l;(l=g.uT(e))==null||l.oa("wasm",{e:h})});
else if(d&&!ihb){var f;(f=g.uT(this))==null||f.oa("wasm",{e:"wasm unavailable"})}this.Ob=new R_a(this.X,this.Qd);this.Va.publish("csiinitialized");this.tb=jhb(this);this.tb.setPlaybackRate(this.X.D?1:khb(this,Number(g.yB("yt-player-playback-rate"))||1));g.HE(this.tb,this.gO,this);qgb(this.tb);f={};this.R0=(f.airplayactivechange=this.onAirPlayActiveChange,f.airplayavailabilitychange=this.onAirPlayAvailabilityChange,f.beginseeking=this.CR,f.contentPoTokenReady=this.qG,f.endseeking=this.HR,f.internalAbandon=
this.tG,f.internalaudioformatchange=this.kG,f.internalvideodatachange=this.onVideoDataChange,f.internalvideoformatchange=this.FG,f.liveviewshift=this.kba,f.playbackstalledatstart=this.Dca,f.progresssync=this.Rba,f.onAbnormalityDetected=this.hL,f.onLoadProgress=this.onLoadProgress,f.SEEK_COMPLETE=this.GB,f.SEEK_TO=this.rca,f.onVideoProgress=this.onVideoProgress,f.onLoadedMetadata=this.onLoadedMetadata,f.onAutoplayBlocked=this.onAutoplayBlocked,f.onPlaybackPauseAtStart=this.Gba,f.playbackready=this.Hba,
f.statechange=this.y0,f.connectionissue=this.pG,f.newelementrequired=this.b0,f.heartbeatparams=this.sG,f.videoelementevent=this.uL,f.drmoutputrestricted=this.onDrmOutputRestricted,f.signatureexpired=this.yca,f.nonfatalerror=this.zba,f);this.Ou=new g.NJ(this);g.M(this,this.Ou);f=10;g.zI(this.X)&&(f=3);FR(this.X)&&(f=g.oI(this.X.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Pu=new yY;g.M(this,this.Pu);this.uy=new wY(f,function(h){h!==g.uT(e,h.getPlayerType())&&h.dispose()});
g.M(this,this.uy);this.oP=this.CJ=-1;this.dM=new g.Dv(this.template.resize,16,this.template);g.M(this,this.dM);this.Yc=new s7a(this.Va,this.X,this.tb);this.Aq=new RX(this.X);this.Tk=new R5a(this);g.M(this,this.Tk);this.SM=new zX(this);g.M(this,this.SM);H7a(this.X.j.c);this.events.T(this.Va,g.VI("appapi"),this.vaa);this.events.T(this.Va,g.WI("appapi"),this.waa);this.events.T(this.Va,g.VI("appprogressboundary"),this.Qba);this.events.T(this.Va,g.WI("applooprange"),this.gM);this.events.T(this.Va,"presentingplayerstatechange",
this.Gk);this.events.T(this.Va,"resize",this.dca);this.template.Ka(nf(document,a));this.events.T(this.Va,"offlineslatestatechange",this.Bba);this.Qd.J.U().Bj&&zV(this.Qd,"offline");this.X.eb&&g.fV("ux",g.sX);this.RW=new g.Dv(this.yda,g.oI(this.X.experiments,"html5_defer_fetch_att_ms"),this);g.M(this,this.RW);this.Nd().xe()&&(g.AB()&&this.Nd().La.push("remote"),lhb(this));this.Ob.tick("fs");mhb(this);this.X.eb&&zV(this.Qd,"ux",!0);g.nR(this.Qd.J.U())&&zV(this.Qd,"embed");this.L("web_player_sentinel_is_uniplayer")||
g.nE(new g.FB("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.L("web_player_sentinel_yt_experiments_sync");f=g.FA("web_player_sentinel_yt_experiments_sync");a!==f&&g.nE(new g.FB("b/195699950",{yt:a,player:f}));c||g.nE(new g.FB("b/179532961"));this.d3=nhb(this);if(c=g.oI(this.X.experiments,"html5_block_pip_safari_delay"))this.uP=new g.Dv(this.fX,c,this),g.M(this,this.uP);OA=this.X.Cc;c=g.oI(this.X.experiments,"html5_performance_impact_profiling_timer_ms");c>0&&(this.G0=
new g.mg(c),g.M(this,this.G0),this.events.T(this.G0,"tick",function(){e.H0&&ohb.Hr("apit",e.H0);e.H0=ohb.Ts()}));
this.Va.publish("applicationInitialized");this.logger.debug("constructor end")};
nhb=function(a){function b(c){c.stack&&c.stack.indexOf("player")!==-1&&(c={n:c.name,m:c.message},(a.wb||a.tb).uc().Sd("player.exception",FJ(c)))}
oE.subscribe("handleError",b);lA.push(b);return function(){oE.unsubscribe("handleError",b);var c=lA.indexOf(b);c!==-1&&lA.splice(c,1)}};
jhb=function(a){var b=new g.sS(a.X,a.config.args);a.Va.publish("initialvideodatacreated",b);return a.Zz(1,b)};
phb=function(a,b){if(a.tb!==b){b.getVideoData().autonavState=a.tb.getVideoData().autonavState;IE(a.tb,a.gO,a);var c=a.tb.getPlaybackRate();a.tb.dispose();a.tb=b;a.tb.setPlaybackRate(c);g.HE(b,a.gO,a);lhb(a)}};
hhb=function(a){var b="",c=L7a(a);c.indexOf("//")===0&&(c=a.X.protocol+":"+c);var d=c.lastIndexOf("/base.js");d!==-1&&(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.nE(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new z0a(a.Va,b);qhb(a,b);return b};
qhb=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.C=c};
ghb=function(a){if(a.X.storeUserVolume){a=g.yB("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.ze(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.X.mute};return a};
E0=function(a){a.mediaElement=a.X.deviceIsAudioOnly?new g.NU(g.Bf("AUDIO")):yX.pop()||new g.NU(g.Bf("VIDEO"));g.M(a,a.mediaElement);a.wb&&a.wb.setMediaElement(a.mediaElement);try{a.X.Zc?(a.OC&&a.events.Oc(a.OC),a.OC=a.events.T(a.mediaElement,"volumechange",a.tba)):(a.mediaElement.pC(a.Ri.muted),a.mediaElement.setVolume(a.Ri.volume/100))}catch(e){a.Gg("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g,
"_")));return}g.uB(a.Ou);rhb(a);var b=a.template,c=a.mediaElement.Jb();b.Ec=c;b.oK=!1;b.Ec.parentNode||Hf(b.Wz,b.Ec,0);b.OL=new g.Fs(0,0,0,0);S7a(b);AY(b);c=b.Ec;g.Kv(c,"video-stream");g.Kv(c,g.zY.MAIN_VIDEO);var d=b.app.U();d.Rk&&c.setAttribute("data-no-fullscreen","true");d.L("html5_local_playsinline")?"playsInline"in JJ()&&(c.playsInline=!0):d.mm&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.lq&&b.Ec&&b.T(c,"click",c.play,c);try{a.mediaElement.activate()}catch(e){a.Gg("html5.missingapi",
2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&typeof e==="object"&&"message"in e&&typeof e.message==="string"&&e.message.replace(/[;:,]/g,"_")))}};
HX=function(a,b,c){if(a.wb!==b){a.logger.debug(function(){return"start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId});
var d=null;if(a.wb){d=a.wb.getPlayerState();a.logger.debug("set presenting player, destroy modules");AV(a.Qd,3);F0(a,"cuerangesremoved",a.wb.wl());a.Tk&&!b.isGapless()&&a.wb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=uK(b)&&uK(a.wb);a.L("html5_rebase_video_to_ad_timeline")&&a.Ob.Dv("iv_s");shb(a,e)}b.getPlayerType()===1&&phb(a,b);thb(a,b);a.wb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.HE(b,a.R0,a);if(b.AK())uhb(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",
b,b.getVideoData());d&&!g.jFa(d,b.getPlayerState())&&a.y0(new g.xF(b.getPlayerState(),d));c=c&&a.L("html5_player_preload_ad_fix")&&b.getPlayerType()===1;if(b.zq.j&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Va.dn("onPlaybackQualityChange",c.quality);F0(a,"cuerangesadded",a.wb.wl());c=b.getPlayerState();g.yF(c,2)?vhb(a):g.yF(c,8)?b.playVideo():b.EF()&&b.pauseVideo();if(b.getPlayerType()===2){var f;b.getVideoData().uW=(f=g.uT(a,1))==null?void 0:f.getVideoData().clientPlaybackNonce}b.getPlayerType()!==
2||a.If()||(f=b.getVideoData(),a.tb.zy(f.clientPlaybackNonce,f.Bc||"",f.breakType||0,f.Uf,f.videoId||""));a.logger.debug("finish set presenting player")}}};
vhb=function(a){if(!whb(a)){var b=a.tb.Me();b&&(b=b.JE(),b instanceof Promise&&b.catch(function(){}));
G0(a,GK(a.getPlayerStateObject()))}};
rhb=function(a){var b=a.mediaElement;FEa()?a.Ou.T(b,"webkitpresentationmodechanged",a.oca):window.document.pictureInPictureEnabled&&(a.Ou.T(b,"enterpictureinpicture",function(){a.sC(!0)}),a.Ou.T(b,"leavepictureinpicture",function(){a.sC(!1)}));
XA&&(a.Ou.T(b,"webkitbeginfullscreen",function(){a.pn(3)}),a.Ou.T(b,"webkitendfullscreen",function(){a.pn(0)}))};
thb=function(a,b){var c=b.getPlayerType();if(b!==a.tb&&b!==a.kt[c]){var d;(d=a.kt[c])==null||d.dispose();a.kt[c]=b}};
shb=function(a,b){b=b===void 0?!0:b;a.logger.debug("start clear presenting player");var c;if(c=a.Ae){c=a.Ae;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c&&(a.Oj(),E0(a));a.wb&&(a.wb.Oj(!b),IE(a.wb,a.R0,a),a.wb.getPlayerType()!==1&&a.wb.dispose());a.wb=null;a.logger.debug("finish clear presenting player")};
g.uT=function(a,b){return b?b===1?a.tb:a.getVideoData().enableServerStitchedDai&&b===2?a.getVideoData().enablePreroll?a.kt[2]||a.wb:a.wb:g.DS(a.getVideoData())&&b===2?a.kt[2]||a.wb:a.kt[b]||null:a.wb};
xhb=function(a,b,c,d){a=a.Zz(b,c,d);qgb(a);return a};
H0=function(a,b){return a.If(b)?a.tb:b};
I0=function(a,b){var c=a.wb;return c&&b===a.tb&&a.If(b)&&a.If(c)?c:b};
Ahb=function(a){a.logger.debug("start application playback");if(a.tb.getPlayerState().isError())a.logger.debug("start application playback done, player in error state");else{var b=J0(a);a.Nd().isLoaded();b&&a.Lq(6);yhb(a);J0a(a.Qd)||zhb(a)}};
zhb=function(a){if(!J0(a)){var b=BV(a.Qd);b&&!b.created&&A0a(a.Qd)&&(a.logger.debug("reload ad module"),b.create())}};
yhb=function(a){a.logger.debug("start presenter playback");var b=a.getVideoData(),c=a.Qd;J0a(c)||c.TO();!ihb&&c.J.L("html5_allow_asmjs")&&P0a(c);zV(c,"embed");zV(c,"inline_preview");zV(c,"kids");zV(c,"remote");zV(c,"miniplayer");zV(c,"offline");zV(c,"unplugged");zV(c,"ypc",!1,!0);zV(c,"ypc_clickwrap",!1,!0);zV(c,"yto",!1,!0);zV(c,"webgl",!1,!0);K0a(c)||(zV(c,"captions",!0),zV(c,"endscreen"),c.fJ(),zV(c,"creatorendscreen",!0));c.uX();a.Va.publish("videoready",b)};
K0=function(a){a=a.Nd();a.xe();return eT(a)};
mhb=function(a){a.logger.debug("start prepare initial playback");a.aP();var b=a.config.args;E0(a);var c=a.Nd();a.Va.Ac("onVolumeChange",a.Ri);if(b&&W_a(b)){var d=CR(a.X);d&&!a.xj&&(b.fetch=0);var e=g.nR(a.X);e&&!a.xj&&(b.fetch=0);L0(a,b);g.nR(a.X)&&a.Ob.tick("ep_pr_s");if(!d||a.xj)if(e&&!a.xj)Bhb(a);else if(!c.xe())a.playlist.onReady(function(){M0(a)})}HX(a,a.tb);
g.yF(a.tb.getPlayerState(),128)||(b=EEa(!a.X.deviceIsAudioOnly),b==="fmt.noneavailable"?a.Gg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):b==="html5.missingapi"?a.Gg(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.xe()&&K0(a)&&(a.X.Ci||a.X.Di)?N0(a):c.FD?a.Va.mutedAutoplay():g.yB("yt-player-playback-on-reload")?(g.VB("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.X.Da}),g.xB("yt-player-playback-on-reload",!1),N0(a)):KR(a.X)||Chb(a),g.ER(a.X)||g.UQ(a.X)===
"MWEB"?(g.OB(g.QB(),function(){O0(a)}),g.OB(g.QB(),function(){RAa()})):(O0(a),RAa()),a.logger.debug("finish prepare initial playback"))};
O0=function(a){if(!a.L("use_rta_only_for_player"))if(a.L("fetch_att_independently"))g.Ev(a.RW);else{var b=a.getVideoData().botguardData;b&&g.PPa(b,a.X,a.getVideoData().wr||"")}};
Chb=function(a){a.logger.debug("start initialize to CUED mode");a.Va.publish("initializingmode");a.Lq(2);a.L("embeds_web_enable_defer_loading_remote_js")&&g.GR(a.X)?g.OB(g.QB(),function(){zV(a.Qd,"remote")}):zV(a.Qd,"remote");
zV(a.Qd,"miniplayer");a.logger.debug("initialized to CUED mode")};
N0=function(a){a.logger.debug("start initialize application playback");if(g.yF(a.tb.getPlayerState(),128))return!1;var b=a.tb.getVideoData();K0(a)&&a.X.Di&&(yX.length&&a.wB?(P0(a,{muted:!1,volume:a.Ri.volume},!1),Q0(a,!1)):yX.length||a.Ri.muted||(P0(a,{muted:!0,volume:a.Ri.volume},!1),Q0(a,!0)));K0(a)&&g.nR(a.X)&&b.mutedAutoplay&&(P0(a,{muted:!0,volume:a.Ri.volume},!1),Q0(a,!0));b.GY&&P0(a,{muted:!0,volume:a.Ri.volume},!1);Dhb(a,1,b,!1);a.Va.publish("initializingmode");HX(a,a.tb);a.Lq(3);var c;if(!(c=
!a.X.Fn)){if(c=a.Ae){c=a.Ae;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c=c&&a.pZ}c&&(a.Oj(),E0(a),a.tb.setMediaElement(a.mediaElement));zgb(a.tb);if(g.yF(a.tb.getPlayerState(),128))return!1;b.Wl||G0(a,3);return a.pZ=!0};
J0=function(a){a=DT(a.Qd);return!!a&&a.loaded};
Ehb=function(a,b){if(!a.Fb)return!1;var c=a.Fb.startTimeMs*.001-1,d=a.Fb.endTimeMs*.001;a.Fb.type==="repeatChapter"&&d--;return Math.abs(b-c)<=1E-6||Math.abs(b-d)<=1E-6||b>=c&&b<=d};
Hhb=function(a){var b,c=(b=g.uT(a))==null?void 0:b.Aa;a.wb&&IS(a.getVideoData())&&c&&c.policy.Wa&&(b=g.oI(a.U().experiments,"html5_gapless_loop_seek_offset_in_milli"),b=Fhb(a)*1E3-b,a.L("html5_gapless_new_slr")?(a=a.SM,Ghb(a.app,"gaplessshortslooprange"),b=new g.UI(0,b,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(a=a.app.Wc())&&a.addCueRange(b)):a.setLoopRange({startTimeMs:0,endTimeMs:b,type:"shortsLoop"}))};
Ihb=function(a){if(!(g.yF(a.tb.getPlayerState(),64)&&a.Nd().isLivePlayback&&a.Fb.startTimeMs<5E3)){if(a.Fb.type==="repeatChapter"){var b,c=(b=DYa(a.Bb()))==null?void 0:b.Hi(),d;b=(d=a.getVideoData())==null?void 0:d.Sk;c instanceof g.PV&&b&&(d=b[gW(b,a.Fb.startTimeMs)],c.cH(0,d.title));isNaN(Number(a.Fb.loopCount))?a.Fb.loopCount=0:a.Fb.loopCount++;a.Fb.loopCount===1&&a.Va.jb("innertubeCommand",a.getVideoData().m4)}c={hd:"application_loopRangeStart"};if(a.Fb.type==="clips"||a.Fb.type==="shortsLoop")c.seekSource=
58;a.tb.seekTo(a.Fb.startTimeMs*.001,c)}};
khb=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(b*100+.001)%5,b=a===0?b:Math.floor((b-a*.01)*100+.001)/100);return b};
Fhb=function(a,b){b=g.uT(a,b);if(!b)return 0;b=H0(a,b);return R0(a,DX(b),b)};
R0=function(a,b,c){if(a.If(c)){c=c.getVideoData();if(S0(a))c=b;else{a=a.Yc;for(var d=g.v(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.qd===e.qd){b+=e.pc/1E3;break}d=b;a=g.v(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.qd===e.qd)break;var f=e.pc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Xd/1E3;else break}c=d}return c}return b};
Jhb=function(a,b){if(a.getPresentingPlayerType()===3)return GK(DT(a.Qd).Ie);if((a.getVideoData().enableServerStitchedDai||g.DS(a.getVideoData()))&&b===2){var c,d;return((c=a.ye)==null?0:c.Cl(a.getCurrentTime()))||((d=a.xb)==null?0:d.Cl())?a.CJ:-1}return b!==2||a.If()?a.CJ:a.oP};
lhb=function(a){a.logger.debug("reset for new application playback");T0(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Va.publish("legacyadtrackingpingreset");a.QL={};a.kC=[];U_a(a.Ob);if(a.ye){var b=a.ye,c=a.tb;c.getPlayerType();cY(b,!1);K6a(b);L6a(b);b.ea=c}b=a.Yc;a=a.tb;a.getPlayerType()!==1&&pY(b,"invalidParentVideoPlayerType");tY(b,!1);F7a(b);b.j=a};
Bhb=function(a,b){var c=(b?b:a.Nd()).H_;a.Ob.tick("ep_pr_r");if(c!=null&&($_a(a.playlist,c),a.DT))a.playlist.onReady(function(){M0(a,b)})};
L0=function(a,b){a.playlist&&(g.ub(a.playlist),a.playlist=null);b&&(a.xj&&(b.fetch=0),a.playlist=new V_a(a.X,b))};
Khb=function(a){var b,c=Number((b=a.getVideoData().progressBarEndPosition)==null?void 0:b.utcTimeMillis)/1E3;!isNaN(c)&&(b=a.qf())&&(b-=a.getCurrentTime(),c=(c-b)*1E3,b=a.QL.progressEndBoundary,(b==null?void 0:b.start)!==c&&(b&&a.bH([b]),c=new g.UI(c,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),a.tb.addCueRange(c),a.QL.progressEndBoundary=c))};
G0=function(a,b){a.logger.debug(function(){return"set external state "+b});
if(a.wb){var c=a.wb.getPlayerType();if(c===2&&!a.If()){a.oP!==b&&(a.oP=b,a.Va.jb("onAdStateChange",b));return}if(c===2&&a.If()||c===5||c===6||c===7)if(b===-1||b===0||b===5)return}if(b===0){if(a.Fb)return;var d;if(((d=a.wb)==null?0:d.Xt())&&!JR(a.X)){a.playVideo();return}}a.CJ!==b&&(a.CJ=b,a.Va.dn("onStateChange",b))};
Lhb=function(a,b,c,d,e){d=d===void 0?Infinity:d;e=e===void 0?0:e;a.logger.debug(function(){return"Enqueuing playerType="+c+" at time="+d+"\n        videoId="+b.videoId});
c=c||a.wb.getPlayerType();var f=Dhb(a,c,b,!0);f||(f=xhb(a,c,b));if(c===2&&a.tb){var h=f.getVideoData();a.tb.zy(h.clientPlaybackNonce,h.Bc||"",h.breakType||0,h.Uf,h.videoId||"")}a.wJ(f,d,0,e)};
Mhb=function(a,b,c,d,e){var f="";f=a.X.L("html5_autonav_autoplay_in_preload_key")?U0(a,c,b):V0(a,c,b.videoId,b.qd);a.logger.debug(function(){return"start preload video "+f+", trigger="+e});
var h="";if(a.wb&&(h=a.X.L("html5_autonav_autoplay_in_preload_key")?U0(a,a.wb.getPlayerType(),a.wb.getVideoData()):V0(a,a.wb.getPlayerType(),a.wb.getVideoData().videoId,a.wb.getVideoData().qd),f===h))return g.FX(a.wb,!0),b.dispose(),null;b.Ed=!0;b=xhb(a,c,b);c===1&&FR(a.X)||g.FX(b,!0);a.uy.set(f,b,d||3600);return b};
Nhb=function(a,b,c,d){var e=eB(c);return V0(a,b,e,d,c.autonav==="1"||c.autonav===!0,c.autoplay==="1"||c.autoplay===!0||c.autoplay===1)};
U0=function(a,b,c){return V0(a,b,c.videoId,c.qd,c.isAutonav,c.Kq)};
V0=function(a,b,c,d,e,f){e=e===void 0?!1:e;f=f===void 0?!1:f;b=b+"_"+c+"_"+d;a.X.L("html5_autonav_autoplay_in_preload_key")&&(b+="_"+ +e+ +f);return b};
Dhb=function(a,b,c,d){var e=a.X.L("html5_autonav_autoplay_in_preload_key")?U0(a,b,c):V0(a,b,c.videoId,c.qd);var f=a.uy.get(e);if(!f||f.Na())return null;a.uy.remove(e);if(g.yF(f.getPlayerState(),128))return f.dispose(),null;if(f===g.uT(a,b))return a.Ob.infoGel({isCacheHit:!0}),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;b===1&&T0(a);d||HX(a,f,!0);a.Ob.infoGel({isCacheHit:!0});return f};
W0=function(a,b,c){c=g.uT(a,c);b&&c===a.tb&&(c.getVideoData().Wi=!0)};
X0=function(a,b,c){c=c===void 0?1:c;a.logger.debug(function(){return"start cue video, vid "+b.videoId+", type "+c});
if(b.xe()){var d=a.Zz(c,b);a.cancelPlayback(4,c);HX(a,d);qgb(d);if(c===1){a.Lq(1);if(g.nR(a.X)&&!ZXa(b)){b.dispose();g.ub(g.uT(a,c));return}Chb(a)}a.logger.debug("finish cue video")}else a.logger.debug(function(){return"invalid VideoData in cueVideo"}),b.dispose(),g.ub(g.uT(a,c)),WXa(a.Nd())&&c===2&&delete a.kt[2]};
Ohb=function(a,b,c,d,e){b=sYa(b,c,d,e);(c=g.nR(a.X)&&!a.X.va)&&!a.xj&&(b.fetch=0);L0(a,b);g.nR(a.X)&&a.Ob.tick("ep_a_pr_s");if(c&&!a.xj)c=a.Nd(),c0a(c,b).then(function(f){a.DT=!0;Bhb(a,f)});
else a.playlist.onReady(function(){M0(a)});
g.nR(a.X)&&a.Ob.tick("ep_a_pr_r")};
M0=function(a,b){var c=g.nR(a.X)&&!a.X.va,d=c&&b?b:g.dV(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.Kk&&(a.X.Ci||a.X.Di)||!a.Cx?(b=b.Wi,d=a.Lu(d,1),b&&W0(a,d)):X0(a,d,1));g.nR(a.X)&&a.Ob.tick("ep_p_l");a.DT=!1;a.Va.Ac("onPlaylistUpdate")};
whb=function(a){if(a.playlist&&g.sR(a.X)&&a.VE()){var b=a.X.L("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
Phb=function(a,b,c,d,e,f,h){b={id:b,namespace:h!=null?h:"appapi"};f==="chapter"?(b.style=TI.CHAPTER_MARKER,b.visible=!0):isNaN(e)||(f==="ad"?b.style=TI.AD_MARKER:(b.style=TI.TIME_MARKER,b.color=e),b.visible=!0);a.Bz([new g.UI(c*1E3,d*1E3,b)],1);return!0};
Qhb=function(a,b,c,d,e,f){f=f===void 0?!0:f;var h=a.qf();if(!h)return f&&a.getVideoData().isLivePlayback&&a.kC.push({id:b,ufa:c,tfa:d}),!1;f=h-a.getCurrentTime();return Phb(a,b,c-f,d-f,void 0,void 0,e)};
Rhb=function(a,b){a.kC=g.Mt(a.kC,function(f){return f.id!==b});
for(var c=a.tb.wl(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.tb.removeCueRange(e),F0(a,"cuerangesremoved",[e]),!0}return!1};
Ghb=function(a,b,c){var d=g.uT(a,c);d&&(b=d.Fh.sf(b),c&&a.getPresentingPlayerType()!==c||F0(a,"cuerangesremoved",b))};
Shb=function(a){var b=(0,g.iC)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
P0=function(a,b,c){a.X.Wa&&(a.Ri=b,b.muted||Q0(a,!1),c&&a.X.storeUserVolume&&!a.X.Zc&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.xB("yt-player-volume",c),g.xB("yt-player-volume",c,2592E3))),Thb(a),c=g.LJ&&a.mediaElement&&!a.mediaElement.Ff(),a.X.Zc&&!c||a.Va.Ac("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.X.storeUserVolume}))};
Thb=function(a){var b=a.getVideoData();if(!b.Vk){b=a.X.Zc?1:UXa(b);var c=a.mediaElement;c.pC(a.Ri.muted);try{c.setVolume(a.Ri.volume*b/100)}catch(d){g.nE(new g.FB("b183742307","multiplier: "+b+", volume: "+a.Ri.volume))}}};
Q0=function(a,b){b!==a.wB&&(a.wB=b,a.Va.Ac("onMutedAutoplayChange",b))};
g.tT=function(a){return a.wB&&a.getVideoData().mutedAutoplay};
Uhb=function(a){var b=kB(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.Jb())?b:null};
Whb=function(a,b){var c=window.screen&&window.screen.orientation;if((a.X.L("lock_fullscreen2")||a.X.Z)&&c&&c.lock&&(!g.LJ||!Vhb))if(b){b=c.type.indexOf("portrait")===0;var d=a.template.getVideoAspectRatio(),e=b;d<1?e=!0:d>1&&(e=!1);if(!a.IG||e!==b){c=c.lock(e?"portrait":"landscape");if(c!=null)c["catch"](function(){});
a.IG=!0}}else a.IG&&(a.IG=!1,c.unlock())};
F0=function(a,b,c){a.Va.publish(b,c);var d=g.zI(a.X)||g.tR(a.X)||g.QF(a.X);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Va.jb(e,c.map(function(f){return{getId:function(){return this.id},
end:f.end,id:f.getId(),namespace:f.namespace==="ad"?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}};
Y0=function(a,b,c,d,e,f){c=c===void 0?!0:c;var h=g.uT(a,e);h&&(h.getPlayerType()===2&&!a.If(h)||g.VS(h.getVideoData()))||(a.getPresentingPlayerType()===3?DT(a.Qd).rG("control_seek",b,c):(h===a.tb&&a.Fb&&!Ehb(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e,f)))};
uhb=function(a,b,c){c&&(a.Oj(),E0(a));c=g.uT(a);c.Sd(new GJ("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?CS(d)&&g.xI(a.X)&&(e.live_utc_start=c.qf(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.Da&&(e.vvt=d.Da);d.G&&(e.vss_credentials_token=d.G,e.vss_credentials_token_type=d.An);d.oauthToken&&(e.oauth_token=d.oauthToken);d.Hn&&(e.force_gvi=d.Hn);e.autoplay=1;e.reload_count=d.Cc+1;e.reload_reason=b;d.aD&&(e.unplugged_partner_opt_out=
d.aD);d.wj&&(e.ypc_is_premiere_trailer=d.wj);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);b==="signature"&&a.ye&&zhb(a)};
Xhb=function(a,b){a.Nd().autonavState=b;g.xB("yt-player-autonavstate",b);a.Va.publish("autonavchange",b)};
Yhb=function(a){var b=a.getVideoData().Vk,c=a.X.rb,d=a.isInline()&&!a.getVideoData().f1,e=a.mediaElement;b||c||d?e.cP():(e.gP(),P0(a,a.Ri))};
T0=function(a){var b=BV(a.Bb());b&&b.created&&(a.logger.debug("reset ad module"),b.destroy())};
S0=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.ye};
Zhb=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.v(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Ms(a,d);b.hidden=!!a.hidden};
L7a=function(a){if(a.webPlayerContextConfig){var b=a.webPlayerContextConfig.trustedJsUrl;return b?Nw(b).toString():a.webPlayerContextConfig.jsUrl}return a.config.assets&&a.config.assets.js?a.config.assets.js:""};
$hb=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
aib=function(){var a=null;Fra().then(function(b){return a=b},function(b){return a=$hb(b)});
return a};
bib=function(){var a=og(1E3,"NO_BID");return kg(jca([Fra(),a]).Pl($hb),function(){a.cancel()})};
Z0=function(a){return a.Zd?g.DB(g.CB(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
$0=function(a){this.player=a;this.C=this.j=1};
eib=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=vA(c),h=g.yn(c)?!1:!0;(f||h)&&typeof Intl!=="undefined"&&(b.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=g.yn(c)?!1:!0;if(f||h||d!==""){var l={};c=qA(yA(d)).split("&");var m=new Map;c.forEach(function(n){n=n.split("=");n.length>1&&m.set(n[0].toString(),decodeURIComponent(n[1].toString()))});
m.has("bid")&&(l.bid=m.get("bid"));l.params=[];cib.forEach(function(n){m.has(n)&&(n={key:n,value:m.get(n)},l.params.push(n))});
dib(a,l);b.adSignalsInfo=l}b.client.unpluggedAppInfo||(b.client.unpluggedAppInfo={});b.client.unpluggedAppInfo.enableFilterMode=!1;a=e.j.cosver;a!=null&&a!=="cosver"&&(b.client.osVersion=a);a=e.j.cplatform;a!=null&&a!=="cplatform"&&a!==""&&(b.client.platform=a);a=e.j.cmodel;a!=null&&a!=="cmodel"&&(b.client.deviceModel=a);a=e.j.cplayer;a!=null&&a!=="cplayer"&&(b.client.playerType=a);e=e.j.cbrand;e!=null&&e!=="cbrand"&&(b.client.deviceMake=e);b.user||(b.user={});b.user.lockedSafetyMode=!1};
hib=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("-");d.length<3||(d[0]in fib&&(f.clientName=fib[d[0]]),d[1]in gib&&(f.platform=gib[d[1]]),f.applicationState=h,f.clientVersion=d.length>2?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
jib=function(a){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in iib))return!1;a=a.split(RegExp("[:&]"));var b=iib.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};
dib=function(a,b){if(g.zI(a.player.U())&&a.player.U().L("add_ifa_to_tvh5_requests")){a=g.jA("INNERTUBE_CONTEXT");var c,d;(a==null?0:(c=a.adSignalsInfo)==null?0:c.advertisingId)&&typeof(a==null?void 0:(d=a.adSignalsInfo)==null?void 0:d.limitAdTracking)!=="undefined"&&(b.advertisingId=a.adSignalsInfo.advertisingId,b.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",b.limitAdTracking=a.adSignalsInfo.limitAdTracking)}};
rib=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=kib.exec(b);h=h!=null&&h.length>=2?h[1]:"";var l=lib.test(b),m=mib.exec(b);m=m!=null&&m.length>=2?m[1]:"";var n=nib.exec(b);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=oib.exec(b),q=p!=null&&p.length>=2?p[1]:"0",r=yR(a.player.U().Ha);p=a.player.getVideoData(1);var t=g.$F(p.va,!0),u="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";eib(a,t,b,u.toString(),a.player.U());
var w={splay:!1,lactMilliseconds:c.LACT.toString(),playerHeightPixels:Math.trunc(c.P_H),playerWidthPixels:Math.trunc(c.P_W),vis:Math.trunc(c.VIS),signatureTimestamp:19912,autonavState:Z0(a.player.U())};d&&(d={},hib(d,c.YT_REMOTE)&&(w.mdxContext=d));if(d=pib.includes(r)?void 0:g.RA("PREF")){for(var A=d.split(RegExp("[:&]")),C=0,F=A.length;C<F;C++){var G=A[C].split("=");if((G[0].toUpperCase()==="SML"||G[0].toUpperCase()==="GSML")&&G.length>1&&G[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0;
break}}w.autoCaptionsDefaultOn=jib(d)}b=qib.exec(b);(b=b!=null&&b.length>=2?b[1]:"")&&m&&(t.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:w};h={adBlock:Math.trunc(c.AD_BLOCK),params:h,breakIndex:n,breakPositionMs:q,clientPlaybackNonce:c.CPN,topLevelDomain:r,isProxyAdTagRequest:l,context:t,adSignalsInfoString:qA(yA(u.toString())),overridePlaybackContext:b};e!==void 0&&(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(c.AD_BREAK_LENGTH*1E3).toString());f&&(h.driftFromHeadMs=f.toString());h.currentMediaTimeMs=Math.round(a.player.getCurrentTime(1)*1E3);(a=bYa(p))&&(h.getAdBreakContext=a);return h};
sib=function(){$0.apply(this,arguments)};
tib=function(a,b,c,d,e){var f=c.Nw;c=c.ge;var h=a.player.U().Ej,l={AD_BLOCK:e,AD_BREAK_LENGTH:f?f.Hh:0,AUTONAV_STATE:Z0(a.player.U()),CA_TYPE:"image",CPN:a.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:a.player.Mr()*1E3,LACT:CD(),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().ai().height,P_W:a.player.qb().ai().width,YT_REMOTE:h?h.join(","):
""},m=Gqa(Fqa);Object.keys(m).forEach(function(n){m[n]!=null&&(l[n.toUpperCase()]=m[n].toString())});
d!==""&&(l.BISCOTTI_ID=d);d={};xA(b)&&(d.sts="19912",(a=a.player.U().forcedExperiments)&&(d.forced_experiments=a));return uA(g.av(b,l),d)};
uib=function(a,b){var c=a.player.U(),d,e=(d=a.player.getVideoData(1))==null?void 0:d.oauthToken;return g.MR(c,e).then(function(f){if(f&&wA()){var h=JT();KT(h,f)}return g.VG(a.player.Hm(h),b,"/youtubei/v1/player/ad_break").then(function(l){return l})})};
vib=function(a){this.Pa=a};
wib=function(a){this.J=a};
xib=function(a){this.Pa=a};
zib=function(a){g.I.call(this);this.gh=a;this.O4=yib(this)};
yib=function(a){var b=new rBa(a.gh.md);g.M(a,b);a=g.v([new vib(a.gh.Pa),new wib(a.gh.J),new xib(a.gh.Pa),new nBa(a.gh.El,a.gh.Lo),new pBa,new xBa(a.gh.Nf,a.gh.vl,a.gh.Pa),new oBa,new lBa]);for(var c=a.next();!c.done;c=a.next())sBa(b,c.value);a=g.v(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())jH(b,c.value,function(){});
return b};
a1=function(a){var b=a.Ta,c=a.Ba;a=a.Oe;var d=new VJa,e={Qp:new AEa(b.get(),c),Ba:c};return{Rb:new sKa(c,a,b,e),context:e,Ug:d}};
b1=function(a,b,c,d,e){g.I.call(this);this.J=a;this.B=b;this.Ia=c;this.Ta=d;this.Bf=e;this.listeners=[];var f=new sB(this);g.M(this,f);f.T(a,"internalAbandon",this.tG);this.addOnDisposeCallback(function(){g.uB(f)})};
c1=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"};
Aib=function(a){a.contentCpn=null;a.adCpn=null;a.videoId=null;a.adVideoId=null;a.adFormat=null;a.C="AD_PLACEMENT_KIND_UNKNOWN";a.actionType="unknown_type";a.D=!1;a.B=!1};
Bib=function(a,b){a=g.v(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){KG("ad_i");g.LG({isMonetized:!0});break}};
d1=function(a){var b=a.J.getVideoData(1);if(!a.J.L("html5_no_video_to_ad_on_preroll")||b!=null&&b.Ha)a.B=!1,b={},a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId}),QG("video_to_ad",b)};
TFa=function(a){a.B=!1;var b={};a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});QG("ad_to_video",b);Cib(a)};
Cib=function(a){if(a.D)if(a.J.L("html5_no_video_to_ad_on_preroll_reset")&&a.C==="AD_PLACEMENT_KIND_START"&&a.actionType==="video_to_ad")IG("video_to_ad");else if(a.J.L("web_csi_via_jspb")){var b=new Uz;b=T(b,8,2);var c=new Vz;c=T(c,21,Dib(a.C));c=T(c,7,4);b=gk(c,Uz,22,b);b=T(b,53,a.videoStreamType);a.actionType==="ad_to_video"?(a.contentCpn&&S(b,76,a.contentCpn),a.videoId&&S(b,78,a.videoId)):(a.adCpn&&S(b,76,a.adCpn),a.adVideoId&&S(b,78,a.adVideoId));a.adFormat&&S(b,12,a.adFormat);a.contentCpn&&S(b,
8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&S(b,28,a.adCpn);a.adVideoId&&S(b,20,a.adVideoId);g.nA(FG)(b,a.actionType)}else b={adBreakType:NK(a.C),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},a.actionType==="ad_to_video"?(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.LG(b,a.actionType)};
Dib=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}};
e1=function(a){g.I.call(this);this.J=a;this.j=new Map;this.B=new sB(this);g.M(this,this.B);this.B.T(this.J,g.VI("ad"),this.onCueRangeEnter,this);this.B.T(this.J,g.WI("ad"),this.onCueRangeExit,this)};
Eib=function(a,b,c,d,e){g.UI.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
f1=function(a){this.J=a};
g1=function(a){this.J=a};
Fib=function(a){return h1(a)&&rM(a,"html5_ssap_play_cached_preroll")};
CM=function(a){return a.J.U().yc()&&a.J.U().L("html5_ssap_pacf_qoe_ctmp")};
h1=function(a){var b,c;return(c=(b=a.J.getVideoData(1))==null?void 0:g.DS(b))!=null?c:!1};
rM=function(a,b){return a.J.U().L(b)};
Gib=function(a){return a.J.U().L("substitute_ad_cpn_macro_in_ssdai")};
wM=function(a){var b,c,d;return((b=a.J.getVideoData(1).getPlayerResponse())==null?void 0:(c=b.playerConfig)==null?void 0:(d=c.daiConfig)==null?void 0:d.enableServerStitchedDai)||!1};
HJa=function(a){return a.J.U().L("html5_enable_vod_slar_with_notify_pacf")};
Hib=function(a){return a.J.U().L("html5_recognize_predict_start_cue_point")};
gIa=function(a){return a.J.U().experiments.gb("enable_desktop_player_underlay")};
Iib=function(a){return a.J.U().experiments.gb("html5_load_empty_player_in_media_break_sub_lra")};
UK=function(a){return a.J.U().experiments.gb("html5_load_ads_instead_of_cue")};
VK=function(a){return a.J.U().experiments.gb("html5_preload_ads")};
i1=function(a){return a.J.U().experiments.gb("html5_rebase_video_to_ad_timeline")};
hKa=function(a){return a.J.U().experiments.gb("enable_ads_control_flow_deterministic_id_generation")};
Jib=function(a){return a.J.U().experiments.gb("enable_desktop_discovery_video_abandon_pings")};
Kib=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}};
Lib=function(){g.GE.call(this);var a=this;this.j={};this.addOnDisposeCallback(function(){for(var b=g.v(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
j1=function(){if(Mib===null){Mib=new Lib;cs($u).B="b";var a=cs($u),b=Tu(a)=="h"||Tu(a)=="b",c=!(hs(),!1);b&&c&&(a.D=!0,a.G=new Aja)}return Mib};
Nib=function(a,b,c){a.j[b]=c};
Oib=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}};
k1=function(a,b,c){this.Ia=a;this.J=b;this.Ba=c;this.B=new Set;this.j=new Map;j1().subscribe("adactiveviewmeasurable",this.Wx,this);j1().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Vx,this);j1().subscribe("adviewableimpression",this.Xx,this);j1().subscribe("adaudioaudible",this.Tx,this);j1().subscribe("adaudiomeasurable",this.Ux,this)};
m1=function(a,b,c){var d=c.At,e=c.ZH,f=c.listener,h=c.k7;c=c.Do===void 0?!1:c.Do;if(a.j.has(b))wF("Unexpected registration of layout in LidarApi");else{if(h){if(a.B.has(h))return;a.B.add(h)}a.j.set(b,f);Hr(hs().Lc,"fmd",1);Kka(cs($u),d);var l=c?b:void 0;Nib(j1(),b,{HP:function(){if(!e)return{};var m=a.J.getPresentingPlayerType(!0),n;return(n=a.J.getVideoData(m))!=null&&n.isAd()?{currentTime:a.Ia.get().getCurrentTimeSec(m,!1,l),duration:e,isPlaying:l1(a.Ia.get(),m).isPlaying(),isVpaid:!1,isYouTube:!0,
volume:a.Ia.get().isMuted()?0:a.Ia.get().getVolume()/100}:{}}})}};
n1=function(a,b){a.j.has(b)?(a.j.delete(b),delete j1().j[b]):wF("Unexpected unregistration of layout in LidarApi")};
Rib=function(a,b,c){var d={};Pib(a,d,b,c);Qib(d);d.LACT=o1(function(){return CD().toString()});
d.VIS=o1(function(){return a.getVisibilityState().toString()});
d.SDKV="h.3.0";d.VOL=o1(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
d.VED="";return d};
Sib=function(a,b){var c={};if(b)return c;if(!a.kind)return g.mE(Error("AdPlacementConfig without kind")),c;if(a.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||a.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.mE(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=o1(Id(Math.round(ef(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=o1(Id("0"));return c};
o1=function(a){return{toString:function(){return a()}}};
Tib=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.gd(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};
Pib=function(a,b,c,d){b.CPN=o1(function(){var e;(e=a.getVideoData(1))?e=e.clientPlaybackNonce:(g.nE(Error("Video data is null.")),e=null);return e});
b.AD_MT=o1(function(){if(d!=null)var e=d;else{var f=c;a.U().L("html5_ssap_use_cpn_to_get_time")||(f=void 0);if(a.U().L("enable_h5_shorts_ad_fill_ad_mt_macro")||a.U().L("enable_desktop_discovery_pings_ad_mt_macro")){var h=a.getPresentingPlayerType(!0),l;e=((l=a.getVideoData(h))==null?0:l.isAd())?Uib(a,h,f):0}else e=Uib(a,2,f)}return Math.round(Math.max(0,e*1E3)).toString()});
b.MT=o1(function(){return Math.round(Math.max(0,a.getCurrentTime(1,!1)*1E3)).toString()});
b.P_H=o1(function(){return a.qb().ai().height.toString()});
b.P_W=o1(function(){return a.qb().ai().width.toString()});
b.PV_H=o1(function(){return a.qb().getVideoContentRect().height.toString()});
b.PV_W=o1(function(){return a.qb().getVideoContentRect().width.toString()})};
Qib=function(a){a.CONN=o1(Id("0"));a.WT=o1(function(){return Date.now().toString()})};
Uib=function(a,b,c){return c!==void 0?a.getCurrentTime(b,!1,c):a.getCurrentTime(b,!1)};
Vib=function(){};
Wib=function(a,b,c,d,e){var f,h,l,m,n,p,q,r,t,u,w,A,C,F;g.H(function(G){switch(G.j){case 1:f=!!b.scrubReferrer;h=g.av(b.baseUrl,Tib(c,f,d));l={};if(!b.headers){G.Ja(2);break}m=a.D();if(!m.j){n=m.getValue();G.Ja(3);break}return g.z(G,m.j,4);case 4:n=G.B;case 3:p=n;q=g.v(b.headers);for(r=q.next();!r.done;r=q.next())switch(t=r.value,t.headerType){case "VISITOR_ID":g.jA("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.jA("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.jA("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]=
g.jA("EOM_VISITOR_DATA"));break;case "USER_AUTH":p&&(l.Authorization="Bearer "+p);break;case "PLUS_PAGE_ID":(u=a.G())&&(l["X-Goog-PageId"]=u);break;case "AUTH_USER":w=a.B();!p&&w&&(l["X-Goog-AuthUser"]=w);break;case "ATTRIBUTION_REPORTING_ELIGIBLE":A=void 0;((A=a.j())==null?0:A.gb("clean_up_manual_attribution_header"))||(l["Attribution-Reporting-Eligible"]="event-source");break;case "DATASYNC_ID":if(C=void 0,(C=a.j())==null?0:C.gb("enable_datasync_id_header_in_web_vss_pings"))F=a.C(),vA(h)&&g.jA("LOGGED_IN")&&
F&&(l["X-Yt-DataSync-Id"]=F)}"X-Goog-EOM-Visitor-Id"in l&&"X-Goog-Visitor-Id"in l&&delete l["X-Goog-Visitor-Id"];case 2:g.cD(h,void 0,f,Object.keys(l).length!==0?l:void 0,"",!0,e),g.Aa(G)}})};
Xib=function(a,b,c,d,e){this.D=a;this.G=b;this.B=c;this.C=d;this.j=e};
Yib=function(a,b){this.j=a;this.Ba=b};
p1=function(a,b,c,d,e,f,h){var l=l===void 0?new Xib(function(){var m=a.U(),n=a.getVideoData(1);return g.MR(m,n?g.fT(n):"")},function(){return a.U().pageId},function(){return a.U().Da},function(){var m;
return(m=a.U().datasyncId)!=null?m:""},function(){return a.U().experiments}):l;
this.J=a;this.B=b;this.yb=c;this.Ta=d;this.Rb=e;this.Ba=f;this.Ug=h;this.D=l;this.EC=null;this.j=new Map;this.C=new Yib(l,this.Ba)};
$ib=function(a,b,c,d,e){var f=UJa(a.B.get(),c);f?(c=kJ(a,Zib(f),f,void 0,void 0,d),b.hasOwnProperty("baseUrl")?a.D.send(b,c):a.C.send(b,c,{},e)):wF("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
qDa=function(a,b,c,d,e,f){d=d===void 0?[]:d;var h=UJa(a.B.get(),b);if(h){var l=a.yb.get().Th(b,c),m=kJ(a,Zib(h),h,e,f);d.forEach(function(n,p){n.baseUrl&&(a.C.send(n.baseUrl,m,l,n.attributionSrcMode),n.serializedAdPingMetadata&&a.Rb.ws("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,h,new ZGa(n,p),void 0,void 0,h.adLayoutLoggingData))})}else wF("Trying to track from an unknown layout.",void 0,void 0,{layoutId:b,
trackingType:c})};
fL=function(a,b){g.VB("adsClientStateChange",b)};
ajb=function(a,b){a.j.has(b.Xw())?wF("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Xw(),b)};
bjb=function(a,b){a.j.delete(b.Xw())||wF("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
gL=function(a,b,c){typeof c==="string"?a.J.getVideoData(1).Ay(b,c):a.J.getVideoData(1).oa(b,c)};
Zib=function(a){var b=jI(a.Ca,"metadata_type_ad_placement_config");a=jI(a.Ca,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,r_:a}};
kJ=function(a,b,c,d,e,f){var h=c?cjb(a):{},l=c?djb(a,c.layoutId):{},m=ejb(a),n,p=e!=null?e:(n=a.Ta.get().Fe(2))==null?void 0:n.clientPlaybackNonce;a.J.U().L("enable_player_logging_lr_home_infeed_ads")&&!p&&(p=a.Ta.get().Fe(1).clientPlaybackNonce);e=void 0;if(c){var q;if((q=a.Ug.j.get(c.layoutId))==null?0:q.Do)e=c.layoutId}q={};a=Object.assign({},Rib(a.J,e,d),Sib(b.adPlacementConfig,(c==null?void 0:c.renderingContent)!==void 0),l,h,m,(q.FINAL=o1(function(){return"1"}),q.AD_CPN=o1(function(){return p||
""}),q));
(c==null?void 0:c.renderingContent)!==void 0||(a.SLOT_POS=o1(function(){return(b.r_||0).toString()}));
c={};f=Object.assign({},a,f);a=g.v(Object.values(fjb));for(d=a.next();!d.done;d=a.next())d=d.value,h=f[d],h!=null&&h.toString()!=null&&(c[d]=h.toString());return c};
cjb=function(a){var b={},c,d=(c=a.EC)==null?void 0:c.mj/1E3;d!=null&&(b.SURVEY_ELAPSED_MS=o1(function(){return Math.round(d*1E3).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=o1(function(){return Math.round(Date.now()/1E3).toString()});
return b};
djb=function(a,b){a=a.j.get(b);if(!a)return{};a=a.wP();if(!a)return{};b={};return b.YT_ERROR_CODE=a.UM.toString(),b.ERRORCODE=a.YH.toString(),b.ERROR_MSG=a.errorMessage,b};
ejb=function(a){var b={},c=a.J.getVideoData(1);b.ASR=o1(function(){var d;return(d=c==null?void 0:c.Sv)!=null?d:null});
b.EI=o1(function(){var d;return(d=c==null?void 0:c.eventId)!=null?d:null});
return b};
q1=function(a,b,c){g.I.call(this);this.J=a;this.Vs=b;this.Ba=c;this.listeners=[];this.aR=null;this.aO=new Map;b=new g.NJ(this);g.M(this,b);b.T(a,"videodatachange",this.Qca);b.T(a,"serverstitchedvideochange",this.sca);this.Ow=this.Fe()};
gjb=function(a,b,c){var d=a.LI(b,c);a.Ow=d;a.listeners.forEach(function(e){e.pL(d)})};
BJ=function(a,b,c){a.J.getVideoData(1).oa(b,c)};
hjb=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}};
r1=function(a,b,c){g.I.call(this);this.J=a;this.Ta=b;this.Ba=c;this.listeners=[];this.qE=[];this.j=function(){wF("Called 'doUnlockPreroll' before it's initialized.")};
b=new sB(this);c=new g.NJ(this);g.M(this,c);g.M(this,b);b.T(a,"progresssync",this.Sba);b.T(a,"presentingplayerstatechange",this.Jba);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.rh);b.T(a,"overlayvisibilitychange",this.Gj);b.T(a,"shortsadswipe",this.Ij);b.T(a,"resize",this.kc);c.T(a,g.VI("appad"),this.Fj)};
s1=function(a){h1(a.Ba.get())||a.j()};
ijb=function(a,b){a.qE=a.qE.filter(function(c){return c!==b})};
t1=function(a,b,c){return a.getCurrentTimeSec(b,c)};
jjb=function(a,b){var c;b=(c=a.Ta.get().aO.get(b))!=null?c:null;if(b===null)return wF("Expected ad video start time on playback timeline"),0;a=a.J.getCurrentTime(2,!0);return a<b?0:a-b};
l1=function(a,b){return a.J.getPlayerStateObject(b)};
kjb=function(a){var b=a.J.qb().ai();a=a.J.ao(!0,!0);return b.height-(a.height+a.top)};
ljb=function(a){a.J.cueVideoByPlayerVars({videoId:"empty_video"},2)};
yFa=function(a,b){var c=a.J.U();g.rR(c)||c.controlsType!=="3"||a.J.qb().jM(b)};
u1=function(a,b){g.Kv(a.J.getRootNode(),b)};
v1=function(a,b){g.Mv(a.J.getRootNode(),b)};
mjb=function(a,b,c,d,e){g.I.call(this);var f=this,h=HI(function(){return new SM(f.Ba)});
g.M(this,h);var l=HI(function(){return new TM(h,f.Ba)});
g.M(this,l);var m=HI(function(){return new DM});
g.M(this,m);d=HI(function(){return new AM(a)});
g.M(this,d);var n=HI(function(){return new UM(h,l,f.Ba)});
g.M(this,n);var p=HI(function(){return new XM});
g.M(this,p);this.Mb=HI(function(){return new II(e)});
g.M(this,this.Mb);this.zc=HI(function(){return new c1(b)});
g.M(this,this.zc);this.Qc=HI(function(){return new e1(b)});
g.M(this,this.Qc);this.md=HI(function(){return new f1(b)});
g.M(this,this.md);this.Ba=HI(function(){return new g1(b)});
g.M(this,this.Ba);var q=HI(function(){return new pI(f.Ba)});
g.M(this,q);var r=HI(function(){return new tM(h,n,l,f.Ba,q,null,null,null)});
g.M(this,r);this.Ta=HI(function(){return new q1(b,p,f.Ba)});
g.M(this,this.Ta);var t=a1({Ta:this.Ta,Ba:this.Ba,Oe:q}),u=t.context,w=t.Ug;this.Rb=t.Rb;this.Ia=HI(function(){return new r1(b,f.Ta,f.Ba)});
g.M(this,this.Ia);this.yb=HI(function(){return new k1(f.Ia,b,f.Ba)});
g.M(this,this.yb);this.Pa=HI(function(){return new p1(b,m,f.yb,f.Ta,f.Rb,f.Ba,w)});
g.M(this,this.Pa);this.Rd=new zM(d,r,c,this.Ba,a,this.Ta,this.Ia,this.zc);g.M(this,this.Rd);var A=new b1(b,this.Rd,this.Ia,this.Ta);this.Dh=HI(function(){return A});
this.Yx=A;this.Kg=new BM(d,n,this.Qc,this.Dh,u);g.M(this,this.Kg);this.Vd=new eM(this.Ba,d,n,r,this.Ta,this.Kg,c);g.M(this,this.Vd);this.uh={JB:new Map,Tt:new Map,zn:new Map,zv:new Map,Iu:new Map};this.listeners=[];this.eB={Vd:this.Vd,vl:this.Ba.get(),ob:this.Mb.get(),QB:this.Ia.get(),Rd:this.Rd,ox:h.get(),TF:null,Lo:{hQ:function(){}},
El:m.get(),Nf:this.Ta.get()}};
w1=function(a,b){g.I.call(this);this.Io=b;this.Io.get().addListener(this)};
x1=function(a){this.j=a};
njb=function(a,b){if(!a)return{zw:[],adSlots:[],FC:!0,ssdaiAdsConfig:void 0};a.trackingParams&&EO(a.trackingParams);if(a.adThrottled)return{zw:[],adSlots:[],FC:!0,ssdaiAdsConfig:void 0};var c,d=(c=a.adSlots)!=null?c:[],e;c=(e=a.playerAds)!=null?e:[];if(!(c&&c.length||d.length))return{zw:[],adSlots:d,FC:!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{zw:[],adSlots:d,FC:!1,ssdaiAdsConfig:void 0};if(b.end>0){var f=b.end.toString();e.forEach(function(h){(h=h.config&&h.config.adPlacementConfig)&&h.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&h.adTimeOffset&&h.adTimeOffset.offsetEndMilliseconds==="-1"&&h.adTimeOffset.offsetEndMilliseconds!==f&&(h.adTimeOffset.offsetEndMilliseconds=f)});
d.map(function(h){return g.V(h,fM)}).forEach(function(h){var l;
(h=h==null?void 0:(l=h.slotEntryTrigger)==null?void 0:l.mediaTimeRangeTrigger)&&h.offsetEndMilliseconds==="-1"&&(h.offsetEndMilliseconds=f)})}return{zw:e,
adSlots:d,FC:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
y1=function(a){g.I.call(this);this.J=a;this.listeners=[];this.j=new sB(this);g.M(this,this.j);this.j.T(this.J,"aduxclicked",this.onAdUxClicked);this.j.T(this.J,"aduxmouseover",this.AR);this.j.T(this.J,"aduxmouseout",this.zR);this.j.T(this.J,"muteadaccepted",this.saa)};
ojb=function(a,b,c){b=g.$r(b,function(d){return new Lya(d,c,d.id)});
a.J.jb("onAdUxUpdate",b)};
z1=function(a,b){a=g.v(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
A1=function(a,b){this.B=a;this.C=b===void 0?!1:b;this.j={}};
pjb=function(a,b){var c=a.startSecs+a.Hh;c=c<=0?null:c;if(c===null)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{b8:new Yv(b,c),n$:new tP(b,c-b,a.context,a.identifier,a.event,a.j)}};
qjb=function(){this.j=[]};
cGa=function(a,b,c){var d=g.Qb(a.j,b);if(d>=0)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
B1=function(a,b,c){g.I.call(this);this.J=a;this.Ba=b;this.Pa=c;this.listeners=[];this.D=!1;this.GM=[];this.B=null;this.G=new A1(this,Hib(b.get()));this.C=new qjb;this.j=null};
rjb=function(a,b){a.GM.push(b);for(var c=!1,d=g.v(a.listeners),e=d.next();!e.done;e=d.next())c=e.value.Y_(b)||c;a.D=c};
tjb=function(a,b){fL(a.Pa.get(),{cuepointTrigger:{event:sjb(b.event),cuepointId:b.identifier,totalCueDurationMs:b.Hh*1E3,playheadTimeMs:b.j,cueStartTimeMs:b.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:a.J.getVideoData(1).clientPlaybackNonce}})};
sjb=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 Pe(a,"Unexpected cuepoint event")}};
C1=function(a){this.J=a};
ujb=function(a,b){a.J.cueVideoByPlayerVars(b,2)};
D1=function(a){this.J=a};
E1=function(a){this.J=a};
vjb=function(a){this.J=a};
wjb=function(a,b,c,d,e){g.I.call(this);var f=this,h=HI(function(){return new SM(f.Ba)});
g.M(this,h);var l=HI(function(){return new TM(h,f.Ba)});
g.M(this,l);var m=HI(function(){return new DM});
g.M(this,m);var n=HI(function(){return new AM(a)});
g.M(this,n);var p=HI(function(){return new UM(h,l,f.Ba)});
g.M(this,p);var q=HI(function(){return new XM});
g.M(this,q);this.Dc=HI(function(){return new y1(b)});
g.M(this,this.Dc);this.Mb=HI(function(){return new II(e)});
g.M(this,this.Mb);this.zc=HI(function(){return new c1(b)});
g.M(this,this.zc);this.Qc=HI(function(){return new e1(b)});
g.M(this,this.Qc);this.kd=HI(function(){return new C1(b)});
g.M(this,this.kd);this.md=HI(function(){return new f1(b)});
g.M(this,this.md);this.Ba=HI(function(){return new g1(b)});
g.M(this,this.Ba);var r=HI(function(){return new x1(d)});
g.M(this,r);var t=HI(function(){return new pI(f.Ba)});
g.M(this,t);this.ag=HI(function(){return new D1(b)});
g.M(this,this.ag);this.Io=HI(function(){return new LI});
g.M(this,this.Io);this.Ta=HI(function(){return new q1(b,q,f.Ba)});
g.M(this,this.Ta);var u=a1({Ta:this.Ta,Ba:this.Ba,Oe:t}),w=u.context,A=u.Ug;this.Rb=u.Rb;this.Bf=HI(function(){return new B1(b,f.Ba,f.Pa)});
g.M(this,this.Bf);this.Gc=HI(function(){return new E1(b)});
g.M(this,this.Gc);this.Ia=HI(function(){return new r1(b,f.Ta,f.Ba)});
g.M(this,this.Ia);u=HI(function(){return new tM(h,p,l,f.Ba,t,"SLOT_TYPE_ABOVE_FEED",f.Ia,f.jk)});
g.M(this,u);this.lf=HI(function(){return new MI});
this.yb=HI(function(){return new k1(f.Ia,b,f.Ba)});
g.M(this,this.yb);this.Pa=HI(function(){return new p1(b,m,f.yb,f.Ta,f.Rb,f.Ba,A)});
g.M(this,this.Pa);this.Mk=new yM(OJa,F1,function(F,G,K,N){return lM(l.get(),F,G,K,N)},n,p,l,t,this.Ba,this.Ta);
g.M(this,this.Mk);this.Rd=new zM(n,u,c,this.Ba,a,this.Ta,this.Ia,this.zc);g.M(this,this.Rd);var C=new b1(b,this.Rd,this.Ia,this.Ta,this.Bf);this.Dh=HI(function(){return C});
this.Yx=C;this.jk=new vM(n,p,this.Dh,this.Bf,this.Ia,this.Ba,this.Pa,this.Gc);g.M(this,this.jk);this.Kg=new BM(n,p,this.Qc,this.Dh,w);g.M(this,this.Kg);this.Vd=new eM(this.Ba,n,p,u,this.Ta,this.Kg,c);g.M(this,this.Vd);this.Yj=HI(function(){return new XI(r,l,t,f.Ba,f.Pa,f.Ia,f.Gc)});
g.M(this,this.Yj);this.Ze=HI(function(){return new YI});
g.M(this,this.Ze);this.dh=new HM(a,this.Dc,this.Ba);g.M(this,this.dh);this.ac=new IM(a);g.M(this,this.ac);this.Jw=new JM(a);g.M(this,this.Jw);this.Eh=new LM(a,this.Dh,w);g.M(this,this.Eh);this.Cf=new MM(a,this.Qc,this.Ia,this.Ta,w);g.M(this,this.Cf);this.Jx=new NM(a,this.Ta);g.M(this,this.Jx);this.hf=new OM(a);g.M(this,this.hf);this.Yd=new RM(a);g.M(this,this.Yd);this.Ik=new PM(a);g.M(this,this.Ik);this.Sy=new QM(a);g.M(this,this.Sy);this.Yd=new RM(a);g.M(this,this.Yd);this.Se=HI(function(){return new EM});
g.M(this,this.Se);this.Nk=HI(function(){return new FM(f.Ia)});
g.M(this,this.Nk);this.GW=HI(function(){return new XDa(f.Dc,f.Pa,a,m,f.yb)});
g.M(this,this.GW);this.Xj=HI(function(){return new rJ(f.Vd,n,h)});
g.M(this,this.Xj);this.pk=HI(function(){return new tJ(f.Ba,f.Pa,f.hf,f.yb)});
g.M(this,this.pk);this.Lk=HI(function(){return new CGa(a,f.Yd,f.hf,f.Ta,f.Gc,f.Ia,f.Pa,q,f.Bf,f.yb,f.lf,f.kd,f.Qc,f.zc,f.md,f.Mb,f.ag,f.Ba,m,w,A)});
g.M(this,this.Lk);this.zS=HI(function(){return new pEa(f.Ia,f.Pa,f.Ba,f.yb)});
g.M(this,this.zS);this.vu=HI(function(){return new MGa(f.Dc,f.Ia,f.Pa,m,f.yb,f.Jw,f.Sy,f.Mb,f.Ba,c)});
g.M(this,this.vu);this.e3=HI(function(){return new ZDa(f.Dc)});
g.M(this,this.e3);this.WN=new w1(a,this.Io,h);g.M(this,this.WN);this.uh={JB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.jk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Mk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Kg]]),Tt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yj],["SLOT_TYPE_ABOVE_FEED",this.Ze],["SLOT_TYPE_FORECASTING",this.Ze],
["SLOT_TYPE_IN_PLAYER",this.Ze],["SLOT_TYPE_PLAYER_BYTES",this.Ze],["SLOT_TYPE_PLAYER_UNDERLAY",this.Ze],["SLOT_TYPE_PLAYBACK_TRACKING",this.Ze],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Ze]]),zn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.dh],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.dh],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ac],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_ENTERED",
this.ac],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ac],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.ac],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Jw],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Eh],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Cf],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.Cf],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Cf],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Cf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Cf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Jx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Jx],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.Eh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ik],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Sy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),zv:new Map([["SLOT_TYPE_ABOVE_FEED",this.Se],["SLOT_TYPE_AD_BREAK_REQUEST",this.Se],["SLOT_TYPE_FORECASTING",this.Se],["SLOT_TYPE_IN_PLAYER",this.Se],["SLOT_TYPE_PLAYER_BYTES",this.Nk],["SLOT_TYPE_PLAYER_UNDERLAY",this.Se],["SLOT_TYPE_PLAYBACK_TRACKING",this.Se],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Se]]),Iu:new Map([["SLOT_TYPE_ABOVE_FEED",
this.GW],["SLOT_TYPE_AD_BREAK_REQUEST",this.Xj],["SLOT_TYPE_FORECASTING",this.pk],["SLOT_TYPE_PLAYER_BYTES",this.Lk],["SLOT_TYPE_PLAYBACK_TRACKING",this.zS],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.zS],["SLOT_TYPE_IN_PLAYER",this.vu],["SLOT_TYPE_PLAYER_UNDERLAY",this.e3]])};this.listeners=[m.get()];this.eB={Vd:this.Vd,vl:this.Ba.get(),ob:this.Mb.get(),QB:this.Ia.get(),Rd:this.Rd,ox:h.get(),TF:this.Io.get(),Lo:this.dh,El:m.get(),Nf:this.Ta.get()}};
xjb=function(a,b,c,d,e){g.I.call(this);var f=this,h=HI(function(){return new SM(f.Ba)});
g.M(this,h);var l=HI(function(){return new TM(h,f.Ba)});
g.M(this,l);var m=HI(function(){return new DM});
g.M(this,m);var n=HI(function(){return new AM(a)});
g.M(this,n);var p=HI(function(){return new UM(h,l,f.Ba)});
g.M(this,p);var q=HI(function(){return new XM});
g.M(this,q);this.Dc=HI(function(){return new y1(b)});
g.M(this,this.Dc);this.Mb=HI(function(){return new II(e)});
g.M(this,this.Mb);this.zc=HI(function(){return new c1(b)});
g.M(this,this.zc);this.Qc=HI(function(){return new e1(b)});
g.M(this,this.Qc);this.kd=HI(function(){return new C1(b)});
g.M(this,this.kd);this.md=HI(function(){return new f1(b)});
g.M(this,this.md);this.Ba=HI(function(){return new g1(b)});
g.M(this,this.Ba);var r=HI(function(){return new x1(d)});
g.M(this,r);var t=HI(function(){return new pI(f.Ba)});
g.M(this,t);var u=HI(function(){return new tM(h,p,l,f.Ba,t,null,null,f.jk)});
g.M(this,u);this.ag=HI(function(){return new D1(b)});
g.M(this,this.ag);this.Io=HI(function(){return new LI});
g.M(this,this.Io);this.Ta=HI(function(){return new q1(b,q,f.Ba)});
g.M(this,this.Ta);var w=a1({Ta:this.Ta,Ba:this.Ba,Oe:t}),A=w.context,C=w.Ug;this.Rb=w.Rb;this.Bf=HI(function(){return new B1(b,f.Ba,f.Pa)});
this.Ia=HI(function(){return new r1(b,f.Ta,f.Ba)});
g.M(this,this.Ia);this.yb=HI(function(){return new k1(f.Ia,b,f.Ba)});
g.M(this,this.yb);this.Pa=HI(function(){return new p1(b,m,f.yb,f.Ta,f.Rb,f.Ba,C)});
g.M(this,this.Pa);this.lf=HI(function(){return new MI});
g.M(this,this.lf);this.Mk=new yM(OJa,F1,function(G,K,N,R){return lM(l.get(),G,K,N,R)},n,p,l,t,this.Ba,this.Ta);
g.M(this,this.Mk);this.Rd=new zM(n,u,c,this.Ba,a,this.Ta,this.Ia,this.zc);g.M(this,this.Rd);var F=new b1(b,this.Rd,this.Ia,this.Ta,this.Bf);this.Dh=HI(function(){return F});
this.Yx=F;this.jk=new vM(n,p,this.Dh,this.Bf,this.Ia,this.Ba,this.Pa);g.M(this,this.jk);this.Kg=new BM(n,p,this.Qc,this.Dh,A);g.M(this,this.Kg);this.Vd=new eM(this.Ba,n,p,u,this.Ta,this.Kg,c);g.M(this,this.Vd);this.Yj=HI(function(){return new XI(r,l,t,f.Ba,f.Pa,f.Ia)});
g.M(this,this.Yj);this.Ze=HI(function(){return new YI});
g.M(this,this.Ze);this.dh=new HM(a,this.Dc,this.Ba);g.M(this,this.dh);this.ac=new IM(a);g.M(this,this.ac);this.Jw=new JM(a);g.M(this,this.Jw);this.Eh=new LM(a,this.Dh,A);g.M(this,this.Eh);this.Cf=new MM(a,this.Qc,this.Ia,this.Ta,A);g.M(this,this.Cf);this.hf=new OM(a);g.M(this,this.hf);this.Ik=new PM(a);g.M(this,this.Ik);this.Sy=new QM(a);g.M(this,this.Sy);this.Gc=HI(function(){return new E1(b)});
g.M(this,this.Gc);this.Yd=new RM(a);g.M(this,this.Yd);this.Se=HI(function(){return new EM});
g.M(this,this.Se);this.Nk=HI(function(){return new FM(f.Ia)});
g.M(this,this.Nk);this.Xj=HI(function(){return new rJ(f.Vd,n,h)});
g.M(this,this.Xj);this.pk=HI(function(){return new tJ(f.Ba,f.Pa,f.hf,f.yb)});
g.M(this,this.pk);this.vu=HI(function(){return new NGa(f.Dc,f.Ia,f.Pa,m,f.yb,f.Jw,f.Sy,f.Mb,f.Ba,c)});
g.M(this,this.vu);this.Lk=HI(function(){return new iL(a,f.Yd,f.hf,f.Pa,f.yb,f.lf,f.kd,f.Ta,f.Ia,f.Qc,f.zc,f.md,f.Mb,f.ag,f.Ba,f.Gc,A,C)});
g.M(this,this.Lk);this.WN=new w1(a,this.Io,h);g.M(this,this.WN);this.uh={JB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.jk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Mk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Kg]]),Tt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yj],["SLOT_TYPE_FORECASTING",this.Ze],["SLOT_TYPE_IN_PLAYER",this.Ze],
["SLOT_TYPE_PLAYER_BYTES",this.Ze]]),zn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.dh],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ac],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ac],
["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.ac],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Jw],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Eh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Cf],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Cf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Eh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ik],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
this.Sy],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),zv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Se],["SLOT_TYPE_FORECASTING",this.Se],["SLOT_TYPE_IN_PLAYER",this.Se],["SLOT_TYPE_PLAYER_BYTES",this.Nk]]),Iu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xj],["SLOT_TYPE_FORECASTING",this.pk],["SLOT_TYPE_IN_PLAYER",this.vu],["SLOT_TYPE_PLAYER_BYTES",this.Lk]])};this.listeners=[m.get()];this.eB={Vd:this.Vd,vl:this.Ba.get(),ob:this.Mb.get(),QB:this.Ia.get(),Rd:this.Rd,ox:h.get(),TF:this.Io.get(),Lo:this.dh,
El:m.get(),Nf:this.Ta.get()}};
yjb=function(a,b,c,d,e){g.I.call(this);var f=this,h=HI(function(){return new SM(f.Ba)});
g.M(this,h);var l=HI(function(){return new TM(h,f.Ba)});
g.M(this,l);var m=HI(function(){return new DM});
g.M(this,m);var n=HI(function(){return new AM(a)});
g.M(this,n);var p=HI(function(){return new UM(h,l,f.Ba)});
g.M(this,p);var q=HI(function(){return new XM});
g.M(this,q);this.Dc=HI(function(){return new y1(b)});
g.M(this,this.Dc);this.Mb=HI(function(){return new II(e)});
g.M(this,this.Mb);this.zc=HI(function(){return new c1(b)});
g.M(this,this.zc);this.Qc=HI(function(){return new e1(b)});
g.M(this,this.Qc);this.kd=HI(function(){return new C1(b)});
g.M(this,this.kd);this.md=HI(function(){return new f1(b)});
g.M(this,this.md);this.Ba=HI(function(){return new g1(b)});
g.M(this,this.Ba);var r=HI(function(){return new x1(d)});
g.M(this,r);var t=HI(function(){return new pI(f.Ba)});
g.M(this,t);var u=HI(function(){return new tM(h,p,l,f.Ba,t,null,null,null)});
g.M(this,u);this.ag=HI(function(){return new D1(b)});
g.M(this,this.ag);this.Ta=HI(function(){return new q1(b,q,f.Ba)});
g.M(this,this.Ta);var w=a1({Ta:this.Ta,Ba:this.Ba,Oe:t}),A=w.context,C=w.Ug;this.Rb=w.Rb;this.Ia=HI(function(){return new r1(b,f.Ta,f.Ba)});
g.M(this,this.Ia);this.yb=HI(function(){return new k1(f.Ia,b,f.Ba)});
g.M(this,this.yb);this.Pa=HI(function(){return new p1(b,m,f.yb,f.Ta,f.Rb,f.Ba,C)});
g.M(this,this.Pa);this.lf=HI(function(){return new MI});
g.M(this,this.lf);this.Mk=new yM(OJa,F1,function(G,K,N,R){return lM(l.get(),G,K,N,R)},n,p,l,t,this.Ba,this.Ta);
g.M(this,this.Mk);this.Rd=new zM(n,u,c,this.Ba,a,this.Ta,this.Ia,this.zc);g.M(this,this.Rd);var F=new b1(b,this.Rd,this.Ia,this.Ta);this.Dh=HI(function(){return F});
this.Yx=F;this.Kg=new BM(n,p,this.Qc,this.Dh,A);g.M(this,this.Kg);this.Vd=new eM(this.Ba,n,p,u,this.Ta,this.Kg,c);g.M(this,this.Vd);this.Yj=HI(function(){return new XI(r,l,t,f.Ba,f.Pa,f.Ia)});
g.M(this,this.Yj);this.Ze=HI(function(){return new YI});
g.M(this,this.Ze);this.dh=new HM(a,this.Dc,this.Ba);g.M(this,this.dh);this.ac=new IM(a);g.M(this,this.ac);this.Eh=new LM(a,this.Dh,A);g.M(this,this.Eh);this.Cf=new MM(a,this.Qc,this.Ia,this.Ta,A);g.M(this,this.Cf);this.hf=new OM(a);g.M(this,this.hf);this.Ik=new PM(a);g.M(this,this.Ik);this.Gc=HI(function(){return new E1(b)});
g.M(this,this.Gc);this.Yd=new RM(a);g.M(this,this.Yd);this.Se=HI(function(){return new EM});
g.M(this,this.Se);this.Nk=HI(function(){return new FM(f.Ia)});
g.M(this,this.Nk);this.Xj=HI(function(){return new rJ(f.Vd,n,h)});
g.M(this,this.Xj);this.pk=HI(function(){return new tJ(f.Ba,f.Pa,f.hf,f.yb)});
g.M(this,this.pk);this.D0=HI(function(){return new mEa(f.Dc,f.Ia,f.Pa,m,c,f.Ba)});
g.M(this,this.D0);this.Lk=HI(function(){return new iL(a,f.Yd,f.hf,f.Pa,f.yb,f.lf,f.kd,f.Ta,f.Ia,f.Qc,f.zc,f.md,f.Mb,f.ag,f.Ba,f.Gc,A,C)});
g.M(this,this.Lk);this.uh={JB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Mk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Kg]]),Tt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yj],["SLOT_TYPE_FORECASTING",this.Ze],["SLOT_TYPE_IN_PLAYER",this.Ze],["SLOT_TYPE_PLAYER_BYTES",this.Ze]]),zn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.dh],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.ac],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ac],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ac],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Eh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Cf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Eh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ik],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),zv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Se],["SLOT_TYPE_ABOVE_FEED",this.Se],["SLOT_TYPE_FORECASTING",this.Se],["SLOT_TYPE_IN_PLAYER",this.Se],["SLOT_TYPE_PLAYER_BYTES",this.Nk]]),Iu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xj],["SLOT_TYPE_FORECASTING",this.pk],["SLOT_TYPE_IN_PLAYER",
this.D0],["SLOT_TYPE_PLAYER_BYTES",this.Lk]])};this.listeners=[m.get()];this.eB={Vd:this.Vd,vl:this.Ba.get(),ob:this.Mb.get(),QB:this.Ia.get(),Rd:this.Rd,ox:h.get(),TF:null,Lo:this.dh,El:m.get(),Nf:this.Ta.get()}};
zjb=function(a,b,c,d,e){g.I.call(this);var f=this,h=HI(function(){return new SM(f.Ba)});
g.M(this,h);var l=HI(function(){return new TM(h,f.Ba)});
g.M(this,l);var m=HI(function(){return new DM});
g.M(this,m);var n=HI(function(){return new AM(a)});
g.M(this,n);var p=HI(function(){return new UM(h,l,f.Ba)});
g.M(this,p);var q=HI(function(){return new XM});
g.M(this,q);this.In=HI(function(){return new vjb(b)});
g.M(this,this.In);this.Dc=HI(function(){return new y1(b)});
g.M(this,this.Dc);this.Mb=HI(function(){return new II(e)});
g.M(this,this.Mb);this.zc=HI(function(){return new c1(b)});
g.M(this,this.zc);this.Qc=HI(function(){return new e1(b)});
g.M(this,this.Qc);this.kd=HI(function(){return new C1(b)});
g.M(this,this.kd);this.md=HI(function(){return new f1(b)});
g.M(this,this.md);this.Ba=HI(function(){return new g1(b)});
g.M(this,this.Ba);var r=HI(function(){return new x1(d)});
g.M(this,r);var t=HI(function(){return new pI(f.Ba)});
g.M(this,t);var u=HI(function(){return new tM(h,p,l,f.Ba,t,null,null,null)});
g.M(this,u);this.ag=HI(function(){return new D1(b)});
g.M(this,this.ag);this.Ta=HI(function(){return new q1(b,q,f.Ba)});
g.M(this,this.Ta);var w=a1({Ta:this.Ta,Ba:this.Ba,Oe:t}),A=w.context,C=w.Ug;this.Rb=w.Rb;this.Ia=HI(function(){return new r1(b,f.Ta,f.Ba)});
g.M(this,this.Ia);this.yb=HI(function(){return new k1(f.Ia,b,f.Ba)});
g.M(this,this.yb);this.Pa=HI(function(){return new p1(b,m,f.yb,f.Ta,f.Rb,f.Ba,C)});
g.M(this,this.Pa);this.lf=HI(function(){return new MI});
g.M(this,this.lf);this.Mk=new yM(QJa,F1,function(G,K,N,R){return kKa(l.get(),G,K,N,R)},n,p,l,t,this.Ba,this.Ta);
g.M(this,this.Mk);this.Rd=new zM(n,u,c,this.Ba,a,this.Ta,this.Ia,this.zc);g.M(this,this.Rd);var F=new b1(b,this.Rd,this.Ia,this.Ta);this.Dh=HI(function(){return F});
this.Yx=F;this.Kg=new BM(n,p,this.Qc,this.Dh,A);g.M(this,this.Kg);this.Vd=new eM(this.Ba,n,p,u,this.Ta,this.Kg,c);g.M(this,this.Vd);this.Yj=HI(function(){return new XI(r,l,t,f.Ba,f.Pa,f.Ia)});
g.M(this,this.Yj);this.Ze=HI(function(){return new YI});
g.M(this,this.Ze);this.dh=new HM(a,this.Dc,this.Ba);g.M(this,this.dh);this.ac=new IM(a);g.M(this,this.ac);this.Eh=new LM(a,this.Dh,A);g.M(this,this.Eh);this.Cf=new MM(a,this.Qc,this.Ia,this.Ta,A);g.M(this,this.Cf);this.hf=new OM(a);g.M(this,this.hf);this.Ik=new PM(a);g.M(this,this.Ik);this.Gc=HI(function(){return new E1(b)});
g.M(this,this.Gc);this.Yd=new RM(a);g.M(this,this.Yd);this.Se=HI(function(){return new EM});
g.M(this,this.Se);this.Nk=HI(function(){return new FM(f.Ia)});
g.M(this,this.Nk);this.Xj=HI(function(){return new rJ(f.Vd,n,h)});
g.M(this,this.Xj);this.pk=HI(function(){return new tJ(f.Ba,f.Pa,f.hf,f.yb)});
g.M(this,this.pk);this.Lk=HI(function(){return new iL(a,f.Yd,f.hf,f.Pa,f.yb,f.lf,f.kd,f.Ta,f.Ia,f.Qc,f.zc,f.md,f.Mb,f.ag,f.Ba,f.Gc,A,C)});
g.M(this,this.Lk);this.E3=HI(function(){return new PGa(f.Dc,f.Ia,f.Pa,m,f.In,c,f.Ta)});
g.M(this,this.E3);this.uh={JB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Mk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Kg]]),Tt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yj],["SLOT_TYPE_FORECASTING",this.Ze],["SLOT_TYPE_IN_PLAYER",this.Ze],["SLOT_TYPE_PLAYER_BYTES",this.Ze]]),zn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.dh],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.ac],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ac],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ac],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Eh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Cf],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Eh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ik],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),zv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Se],["SLOT_TYPE_FORECASTING",this.Se],["SLOT_TYPE_IN_PLAYER",this.Se],["SLOT_TYPE_PLAYER_BYTES",this.Nk]]),Iu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xj],["SLOT_TYPE_FORECASTING",this.pk],["SLOT_TYPE_IN_PLAYER",this.E3],["SLOT_TYPE_PLAYER_BYTES",
this.Lk]])};this.listeners=[m.get()];this.eB={Vd:this.Vd,vl:this.Ba.get(),ob:this.Mb.get(),QB:this.Ia.get(),Rd:this.Rd,ox:h.get(),TF:null,Lo:this.dh,El:m.get(),Nf:this.Ta.get()}};
Ajb=function(a,b,c,d,e){g.I.call(this);var f=this,h=HI(function(){return new SM(f.Ba)});
g.M(this,h);var l=HI(function(){return new TM(h,f.Ba)});
g.M(this,l);var m=HI(function(){return new DM});
g.M(this,m);var n=HI(function(){return new AM(a)});
g.M(this,n);var p=HI(function(){return new UM(h,l,f.Ba)});
g.M(this,p);var q=HI(function(){return new XM});
g.M(this,q);this.In=HI(function(){return new vjb(b)});
g.M(this,this.In);this.Dc=HI(function(){return new y1(b)});
g.M(this,this.Dc);this.Mb=HI(function(){return new II(e)});
g.M(this,this.Mb);this.zc=HI(function(){return new c1(b)});
g.M(this,this.zc);this.Qc=HI(function(){return new e1(b)});
g.M(this,this.Qc);this.kd=HI(function(){return new C1(b)});
g.M(this,this.kd);this.md=HI(function(){return new f1(b)});
g.M(this,this.md);this.Ba=HI(function(){return new g1(b)});
g.M(this,this.Ba);var r=HI(function(){return new x1(d)});
g.M(this,r);var t=HI(function(){return new pI(f.Ba)});
g.M(this,t);this.ag=HI(function(){return new D1(b)});
g.M(this,this.ag);this.Ta=HI(function(){return new q1(b,q,f.Ba)});
g.M(this,this.Ta);var u=a1({Ta:this.Ta,Ba:this.Ba,Oe:t}),w=u.context,A=u.Ug;this.Rb=u.Rb;this.Bf=HI(function(){return new B1(b,f.Ba,f.Pa)});
g.M(this,this.Bf);this.Gc=HI(function(){return new E1(b)});
g.M(this,this.Gc);this.Ia=HI(function(){return new r1(b,f.Ta,f.Ba)});
g.M(this,this.Ia);u=HI(function(){return new tM(h,p,l,f.Ba,t,null,f.Ia,f.jk,3)});
g.M(this,u);this.lf=HI(function(){return new MI});
this.yb=HI(function(){return new k1(f.Ia,b,f.Ba)});
g.M(this,this.yb);this.Pa=HI(function(){return new p1(b,m,f.yb,f.Ta,f.Rb,f.Ba,A)});
g.M(this,this.Pa);this.Rd=new zM(n,u,c,this.Ba,a,this.Ta,this.Ia,this.zc);g.M(this,this.Rd);var C=new b1(b,this.Rd,this.Ia,this.Ta,this.Bf);this.Dh=HI(function(){return C});
this.Yx=C;this.Mk=new yM(RJa,F1,function(F,G,K,N){return kKa(l.get(),F,G,K,N)},n,p,l,t,this.Ba,this.Ta);
g.M(this,this.Mk);this.jk=new vM(n,p,this.Dh,this.Bf,this.Ia,this.Ba,this.Pa,this.Gc);g.M(this,this.jk);this.Kg=new BM(n,p,this.Qc,this.Dh,w);g.M(this,this.Kg);this.Vd=new eM(this.Ba,n,p,u,this.Ta,this.Kg,c);g.M(this,this.Vd);this.Yj=HI(function(){return new XI(r,l,t,f.Ba,f.Pa,f.Ia,f.Gc)});
g.M(this,this.Yj);this.Ze=HI(function(){return new YI});
g.M(this,this.Ze);this.dh=new HM(a,this.Dc,this.Ba);g.M(this,this.dh);this.ac=new IM(a);g.M(this,this.ac);this.Eh=new LM(a,this.Dh,w);g.M(this,this.Eh);this.Cf=new MM(a,this.Qc,this.Ia,this.Ta,w);g.M(this,this.Cf);this.Jx=new NM(a,this.Ta);g.M(this,this.Jx);this.hf=new OM(a);g.M(this,this.hf);this.Ik=new PM(a);g.M(this,this.Ik);this.Yd=new RM(a);g.M(this,this.Yd);this.Se=HI(function(){return new EM});
g.M(this,this.Se);this.Nk=HI(function(){return new FM(f.Ia)});
g.M(this,this.Nk);this.Xj=HI(function(){return new rJ(f.Vd,n,h)});
g.M(this,this.Xj);this.pk=HI(function(){return new tJ(f.Ba,f.Pa,f.hf,f.yb)});
g.M(this,this.pk);this.Lk=HI(function(){return new CGa(a,f.Yd,f.hf,f.Ta,f.Gc,f.Ia,f.Pa,q,f.Bf,f.yb,f.lf,f.kd,f.Qc,f.zc,f.md,f.Mb,f.ag,f.Ba,m,w,A)});
g.M(this,this.Lk);this.vu=HI(function(){return new QGa(f.Dc,f.Ia,f.Pa,m,f.In,c,f.Ba,f.Ta)});
g.M(this,this.vu);this.uh={JB:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.jk],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Mk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Kg]]),Tt:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Yj],["SLOT_TYPE_FORECASTING",this.Ze],["SLOT_TYPE_IN_PLAYER",this.Ze],["SLOT_TYPE_PLAYER_BYTES",this.Ze]]),zn:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
this.dh],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ac],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ac],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ac],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ac],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ac],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Eh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
this.Cf],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Cf],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Jx],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Jx],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.hf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Eh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.Ik],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Yd]]),zv:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Se],["SLOT_TYPE_FORECASTING",this.Se],["SLOT_TYPE_IN_PLAYER",this.Se],["SLOT_TYPE_PLAYER_BYTES",
this.Nk]]),Iu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Xj],["SLOT_TYPE_FORECASTING",this.pk],["SLOT_TYPE_PLAYER_BYTES",this.Lk],["SLOT_TYPE_IN_PLAYER",this.vu]])};this.listeners=[m.get()];this.eB={Vd:this.Vd,vl:this.Ba.get(),ob:this.Mb.get(),QB:this.Ia.get(),Rd:this.Rd,ox:h.get(),TF:null,Lo:this.dh,El:m.get(),Nf:this.Ta.get()}};
Cjb=function(a,b,c,d){g.I.call(this);var e=this;this.j=Bjb(function(){return e.B},a,b,c,d);
g.M(this,this.j);this.B=(new FCa(this.j)).C();g.M(this,this.B)};
G1=function(a){return a.j.eB};
Bjb=function(a,b,c,d,e){try{var f=b.U();if(g.ER(f))var h=new wjb(a,b,c,d,e);else if(g.GR(f))h=new xjb(a,b,c,d,e);else if(zR(f))h=new yjb(a,b,c,d,e);else if(g.QF(f))h=new zjb(a,b,c,d,e);else if(g.tR(f))h=new Ajb(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.U(),wF("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,qrb:h.j.cver,prb:h.j.ctheme,orb:h.j.cplayer,Qrb:h.playerStyle}),new mjb(a,b,c,d,e)}};
Djb=function(a){jF.call(this,a)};
Ejb=function(a,b,c,d,e){oF.call(this,a,{I:"div",S:"ytp-ad-timed-pie-countdown-container",V:[{I:"svg",S:"ytp-ad-timed-pie-countdown",W:{viewBox:"0 0 20 20"},V:[{I:"circle",S:"ytp-ad-timed-pie-countdown-background",W:{r:"10",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-inner",W:{r:"5",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-outer",W:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.va=this.Fa("ytp-ad-timed-pie-countdown");this.D=this.Fa("ytp-ad-timed-pie-countdown-container");
this.B=this.Fa("ytp-ad-timed-pie-countdown-inner");this.G=this.Fa("ytp-ad-timed-pie-countdown-outer");this.C=Math.ceil(Math.PI*10);this.hide()};
Fjb=function(a,b,c,d,e,f){PE.call(this,a,{I:"div",S:"ytp-ad-action-interstitial",W:{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.GT=e;this.oM=f;this.navigationEndpoint=this.j=this.skipButton=this.B=this.actionButton=null;this.Ga=this.Fa("ytp-ad-action-interstitial-instream-info");this.va=this.Fa("ytp-ad-action-interstitial-image-container");this.Y=new gF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,"ytp-ad-action-interstitial-image");g.M(this,this.Y);this.Y.Ka(this.va);this.Xa=this.Fa("ytp-ad-action-interstitial-headline-container");
this.G=new nF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,"ytp-ad-action-interstitial-headline");g.M(this,this.G);this.G.Ka(this.Xa);this.Wa=this.Fa("ytp-ad-action-interstitial-description-container");this.C=new nF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,"ytp-ad-action-interstitial-description");g.M(this,this.C);this.C.Ka(this.Wa);this.Ya=this.Fa("ytp-ad-action-interstitial-background-container");this.Oa=new gF(this.api,this.layoutId,this.interactionLoggingClientData,
this.ob,"ytp-ad-action-interstitial-background",!0);g.M(this,this.Oa);this.Oa.Ka(this.Ya);this.ib=this.Fa("ytp-ad-action-interstitial-action-button-container");this.slot=this.Fa("ytp-ad-action-interstitial-slot");this.Af=this.Fa("ytp-ad-action-interstitial-card");this.D=new sB;g.M(this,this.D);this.hide()};
Gjb=function(a){var b=g.wf("html5-video-player");b&&g.Ov(b,"ytp-ad-display-override",a)};
Kjb=function(a,b,c,d){PE.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.Ga=this.D=this.Ya=this.Wa=null;this.Xa=!1;this.G=null;this.va=0;a=this.Fa("ytp-ad-overlay-container");this.Oa=new uF(a,45E3,6E3,.3,.4);g.M(this,this.Oa);this.C=Hjb(this);g.M(this,this.C);this.C.Ka(a);this.B=Ijb(this);g.M(this,this.B);this.B.Ka(a);this.j=Jjb(this);g.M(this,this.j);this.j.Ka(a);this.hide()};
Hjb=function(a){var b=new g.OE({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:[ZE(Ljb)]}]},{I:"div",S:"ytp-ad-overlay-title",xa:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",xa:"{{description}}"},{I:"div",Ma:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],xa:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){H1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){H1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.XM);b.hide();return b};
Ijb=function(a){var b=new g.OE({I:"div",Ma:["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:[ZE(Ljb)]}]},{I:"div",S:"ytp-ad-overlay-text-image",V:[{I:"img",W:{src:"{{imageUrl}}"}}]},{I:"div",S:"ytp-ad-overlay-title",xa:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",xa:"{{description}}"},{I:"div",Ma:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
xa:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){H1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){H1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.XM);a.T(b.Fa("ytp-ad-overlay-text-image"),"click",a.Hca);b.hide();return b};
Jjb=function(a){var b=new g.OE({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:[ZE(Ljb)]}]},{I:"div",S:"ytp-ad-overlay-image",V:[{I:"img",W:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Fa("ytp-ad-overlay-image"),"click",function(c){H1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.XM);b.hide();return b};
Mjb=function(a,b){if(b){var c=g.V(b,aM)||null;if(c==null)g.mE(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.wf("video-ads ytp-ad-module")||null,b==null)g.mE(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Ga=new g.OE({I:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.M(a,a.Ga),a.Ga.Ka(b),b=new mF(a.api,a.layoutId,a.interactionLoggingClientData,a.ob,a.Ga.element,!1),g.M(a,b),b.init(EE("ad-info-hover-text-button"),
c,a.macros),a.G){b.Ka(a.G,0);b.subscribe("f",a.qaa,a);b.subscribe("e",a.ZR,a);a.T(a.G,"click",a.raa);var d=g.wf("ytp-ad-button",b.element);a.T(d,"click",function(){var e;if(g.V((e=g.V(c.button,g.cM))==null?void 0:e.serviceEndpoint,Xya))a.Xa=a.api.getPlayerState(1)===2,a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.ib=b}else g.mE(Error("Ad info button container within overlay ad was not present."))}else g.nE(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
Ojb=function(a,b){if(Njb(a,I1)||a.api.isMinimized())return!1;var c=QE(b.title),d=QE(b.description);if(g.fc(c)||g.fc(d))return!1;a.createServerVe(a.C.element,b.trackingParams||null);a.C.updateValue("title",QE(b.title));a.C.updateValue("description",QE(b.description));a.C.updateValue("displayUrl",QE(b.displayUrl));b.navigationEndpoint&&g.Lb(a.Y,b.navigationEndpoint);a.C.show();a.Oa.start();a.logVisibility(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.va++});
return!0};
Pjb=function(a,b){if(Njb(a,I1)||a.api.isMinimized())return!1;var c=QE(b.title),d=QE(b.description);if(g.fc(c)||g.fc(d))return!1;a.createServerVe(a.B.element,b.trackingParams||null);a.B.updateValue("title",QE(b.title));a.B.updateValue("description",QE(b.description));a.B.updateValue("displayUrl",QE(b.displayUrl));a.B.updateValue("imageUrl",eya(b.image));b.navigationEndpoint&&g.Lb(a.Y,b.navigationEndpoint);a.Ya=b.imageNavigationEndpoint||null;a.B.show();a.Oa.start();a.logVisibility(a.B.element,!0);
a.T(a.B.element,"mouseover",function(){a.va++});
return!0};
Qjb=function(a,b){if(a.api.isMinimized())return!1;var c=fya(b.image),d=c;c.width<I1.width&&(d=I1);if(c.width===0||c.height===0||Njb(a,d))return!1;a.createServerVe(a.j.element,b.trackingParams||null);a.j.updateValue("imageUrl",eya(b.image));a.j.updateValue("width",c.width);a.j.updateValue("height",c.height);b.navigationEndpoint&&g.Lb(a.Y,b.navigationEndpoint);b=a.j.Fa("ytp-ad-image-overlay");g.Is(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.AR("invideo-overlay",a.layoutId)});
a.T(a.j.element,"mouseout",function(){a.api.zR("invideo-overlay",a.layoutId)});
return!0};
Njb=function(a,b){var c=a.api.qb().ai(),d=a.api.ao(!0,!1);return(b=FGa(c,c.height-(d.height+d.top),b))?(a.Wa&&b&&(c=g.jd(a.macros),c.ERRORCODE=b.YH.toString(),c.ERROR_MSG=b.errorMessage,a.layoutId?KI(a.ob,a.Wa,a.layoutId,c):g.mE(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
H1=function(a,b,c){var d=g.jd(a.macros),e=g.Us(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Ss(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.v(a.Y);for(c=b.next();!c.done;c=b.next())c=c.value,a.layoutId?KI(a.ob,c,a.layoutId,d):g.mE(Error("Missing layoutId for invideo_overlay_ad."));a.api.pauseVideo()};
Rjb=function(a,b){a=a.api.getRootNode();g.Ov(a,"ytp-ad-overlay-open",b);g.Ov(a,"ytp-ad-overlay-closed",!b)};
Sjb=function(a,b,c,d,e){oF.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.Ga=this.Fa("ytp-ad-message-slot");this.B=new g.OE({I:"span",S:"ytp-ad-message-container"});this.B.Ka(this.Ga);g.M(this,this.B);this.messageText=new nF(this.api,this.layoutId,this.interactionLoggingClientData,d,"ytp-ad-message-text");g.M(this,this.messageText);this.messageText.Ka(this.B.element);this.D=new g.rF(this.B,
400,!1,100,function(){f.hide()});
g.M(this,this.D);this.hide()};
Tjb=function(a,b){a=a.api.getRootNode();g.Ov(a,"ytp-ad-overlay-open",b);g.Ov(a,"ytp-ad-overlay-closed",!b)};
Ujb=function(a,b,c,d){PE.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.Ga=this.Fa("ytp-ad-underlay-image-container");this.C=new gF(this.api,this.layoutId,this.interactionLoggingClientData,
this.ob,"ytp-ad-underlay-image");g.M(this,this.C);this.C.Ka(this.Ga);this.va=this.Fa("ytp-ad-underlay-headline-container");this.B=new nF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,"ytp-ad-underlay-headline");g.M(this,this.B);this.B.Ka(this.va);this.Y=this.Fa("ytp-ad-underlay-description-container");this.D=new nF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,"ytp-ad-underlay-description");g.M(this,this.D);this.D.Ka(this.Y);this.G=this.Fa("ytp-ad-underlay-action-button-container");
this.j=this.Fa("ytp-ad-underlay-side-container");this.hide()};
Vjb=function(a){var b=g.wf("html5-video-player");b&&g.Ov(b,"ytp-ad-display-override",a)};
J1=function(a,b,c,d,e,f){f=f===void 0?function(){}:f;
PE.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.Fa("ytp-ad-survey-answer");this.hide()};
Wjb=function(a,b,c,d){PE.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.Fa("ytp-ad-survey-none-of-the-above");this.hide()};
K1=function(a,b,c,d){var e=["ytp-ad-survey-submit-button"];e.push("ytp-ad-survey-submit-button-rounded");$E.call(this,a,b,c,d,e,"survey-submit")};
L1=function(a,b,c,d,e){PE.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.Fa("ytp-ad-survey-player-overlay-instream-info");
this.skipOrPreview=this.Fa("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.Fa("ytp-ad-survey-player-overlay-submit");g.M(this,this.D);this.hide()};
M1=function(a,b,c,d,e,f){f=f===void 0?function(){}:f;
PE.call(this,a,{I:"div",S:"ytp-ad-survey-question",V:[{I:"div",Ma:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{I:"div",Ma:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{I:"div",Ma:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{I:"div",S:"ytp-ad-survey-question-background"}]},e,b,c,d);this.Ga=f;this.D=null;this.B=[];this.j=null;this.Y=this.api.U().experiments.gb("a11y_h5_associate_survey_question");this.question=this.Fa("ytp-ad-survey-question");
this.Oa=this.Fa("ytp-ad-survey-question-background");this.questionText=this.Fa("ytp-ad-survey-question-text");this.answers=this.Fa("ytp-ad-survey-answers");this.playerOverlay=this.Fa("ytp-ad-survey-question-player-overlay");this.C=g.kb()};
Xjb=function(a,b){b=g.RE(b);g.Pf(a.questionText,b);a.Y&&a.questionText.setAttribute("id",EE("survey-question-text"))};
Yjb=function(a,b,c,d){d=new J1(a.api,a.layoutId,a.interactionLoggingClientData,a.ob,d,a.Ga);d.Ka(a.answers);d.init(EE("survey-answer"),b,c);a.Y&&(b=a.questionText.getAttribute("id"),b!=null&&(d.j!==null?d.j.B.setAttribute("aria-describedby",b):d.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",b)));a.B.push(d)};
$jb=function(a,b){if(b){var c=b.background;c&&g.V(c,Zjb)&&(c=(c=g.V(c,Zjb).image)&&fF(c)||"",g.fc(c)?g.nE(Error("Found ThumbnailDetails without valid image URL")):g.Is(a.Oa,"backgroundImage","url("+c+")"));if(b.durationMilliseconds==null||b.durationMilliseconds===void 0||b.durationMilliseconds===0)g.mE(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.kb();a.j=new GF(a.api,b.durationMilliseconds);g.M(a,a.j);if(a.j&&b.instreamAdPlayerOverlay&&g.V(b.instreamAdPlayerOverlay,
AHa))try{var d=new L1(a.api,a.layoutId,a.interactionLoggingClientData,a.ob,a.j);d.Ka(a.playerOverlay);d.init(EE("survey-player-overlay"),g.V(b.instreamAdPlayerOverlay,AHa),a.macros);a.D=d;g.M(a,d);a.q1()}catch(e){g.mE(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.mE(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.j&&b.durationMilliseconds&&b.durationMilliseconds>0?(b=new OF(a.api,a.j),b.Ka(a.playerOverlay),
g.M(a,b)):g.mE(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.mE(Error("addCommonComponents() needs to be called before starting countdown."))};
akb=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()})};
bkb=function(a,b,c,d,e){M1.call(this,a,b,c,d,"survey-question-multi-select");this.va=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()};
ckb=function(a,b,c){a.noneOfTheAbove=new Wjb(a.api,a.layoutId,a.interactionLoggingClientData,a.ob);a.noneOfTheAbove.Ka(a.answers);a.noneOfTheAbove.init(EE("survey-none-of-the-above"),b,c)};
ekb=function(a){a.B.forEach(function(b){b.j.toggleButton(!1)});
dkb(a,!0)};
dkb=function(a,b){var c=a.D;a=fkb(a);b=b===void 0?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof DF&&!c.j.D&&lza(c.j,!1));c.B&&(a?c.B.show():c.B.hide())};
fkb=function(a){return a.B.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()};
N1=function(a,b,c,d,e){M1.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()};
O1=function(a,b,c,d){PE.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.Fa("ytp-ad-survey-questions");this.api.U().L("fix_survey_color_contrast_on_destop")&&this.Fa("ytp-ad-survey").classList.add("color-contrast-fix");this.api.U().L("web_enable_speedmaster")&&this.Fa("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()};
ikb=function(a,b){var c=a.B[b],d;(d=a.C)==null||d.dispose();g.V(c,$L)?gkb(a,g.V(c,$L),a.macros):g.V(c,ZL)&&hkb(a,g.V(c,ZL),a.macros);a.j=b};
gkb=function(a,b,c){var d=new N1(a.api,a.layoutId,a.interactionLoggingClientData,a.ob,a.D.bind(a));d.Ka(a.G);d.init(EE("survey-question-single-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.M(a,d)};
hkb=function(a,b,c){var d=new bkb(a.api,a.layoutId,a.interactionLoggingClientData,a.ob,a.D.bind(a));d.Ka(a.G);d.init(EE("survey-question-multi-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.M(a,d)};
P1=function(a,b,c,d){PE.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.Fa("ytp-ad-survey-interstitial");this.B=this.Fa("ytp-ad-survey-interstitial-contents");this.text=this.Fa("ytp-ad-survey-interstitial-text");
this.logoImage=this.Fa("ytp-ad-survey-interstitial-logo-image");this.transition=new g.rF(this,500,!1,300);g.M(this,this.transition)};
kkb=function(a,b){b=b&&fF(b)||"";if(g.fc(b))g.nE(Error("Found ThumbnailDetails without valid image URL"));else{var c=a.style.cssText;var d=document.implementation.createHTMLDocument("").createElement("DIV");d.style.cssText=c;c=zla(d.style);b=new g.le([c,Kba(jkb,b)].map(Iba).join(""),ye);a.style.cssText=qe(b)}};
lkb=function(a){var b=g.wf("html5-video-player");b&&g.Ov(b,"ytp-ad-display-override",a)};
Q1=function(a){this.content=a.content;if(a.commandRuns){a=g.v(a.commandRuns);for(var b=a.next();!b.done;b=a.next())b=b.value,this.loggingDirectives=g.V(b,mkb),b.onTap&&(this.interaction={onTap:b.onTap})}};
R1=function(a,b,c,d){PE.call(this,a,{I:"div",S:"ad-simple-attributed-string"},"ad-simple-attributed-string",b,c,d);this.hide()};
S1=function(a,b,c,d){PE.call(this,a,{I:"span",S:"ytp-ad-badge"},"ad-badge",b,c,d);this.adBadgeText=new R1(this.api,this.layoutId,this.interactionLoggingClientData,this.ob);this.adBadgeText.Ka(this.element);g.M(this,this.adBadgeText);this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()};
T1=function(a,b,c,d,e,f){f=f===void 0?0:f;oF.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.Fa("ytp-preview-ad__text");switch(this.va){case 1:this.C.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.rF(this,400,!1,100,function(){h.hide()});
g.M(this,this.transition);this.hide()};
U1=function(a,b,c,d){PE.call(this,a,{I:"img",S:"ytp-ad-avatar"},"ad-avatar",b,c,d);this.hide()};
nkb=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}};
V1=function(a,b,c,d){PE.call(this,a,{I:"button",S:"ytp-ad-button-vm"},"ad-button",b,c,d);this.buttonText=this.buttonIcon=null;this.hide()};
okb=function(a,b,c,d,e){oF.call(this,a,{I:"div",Ma:["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 U1(this.api,this.layoutId,this.interactionLoggingClientData,this.ob);g.M(this,this.adAvatar);Hf(this.element,this.adAvatar.element,0);this.headline=new R1(this.api,this.layoutId,this.interactionLoggingClientData,
this.ob);g.M(this,this.headline);this.headline.Ka(this.Fa("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new R1(this.api,this.layoutId,this.interactionLoggingClientData,this.ob);g.M(this,this.description);this.description.Ka(this.Fa("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new V1(this.api,this.layoutId,this.interactionLoggingClientData,
this.ob);g.M(this,this.adButton);this.adButton.Ka(this.element);this.hide()};
pkb=function(a,b,c,d){PE.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.Fa("ytp-skip-ad-button__text");this.transition=new g.rF(this,500,!1,100,function(){e.hide()});
g.M(this,this.transition);this.j=new uF(this.element,15E3,5E3,.5,.5,!0);g.M(this,this.j);this.hide()};
qkb=function(a,b,c,d,e){oF.call(this,a,{I:"div",S:"ytp-skip-ad"},"skip-ad",b,c,d,e);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new T1(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.j);g.M(this,this.B);this.B.Ka(this.element);this.C=new pkb(this.api,this.layoutId,this.interactionLoggingClientData,this.ob);g.M(this,this.C);this.C.Ka(this.element);this.hide()};
W1=function(a,b,c,d){PE.call(this,a,{I:"div",S:"ytp-visit-advertiser-link"},"visit-advertiser-link",b,c,d);this.hide()};
X1=function(a,b,c,d,e){PE.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"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",b,c,d);this.B=e;this.va=this.Fa("ytp-ad-player-overlay-layout__player-card-container");this.j=this.Fa("ytp-ad-player-overlay-layout__ad-info-container");
this.G=this.Fa("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Y=this.Fa("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()};
Y1=function(a,b,c){jF.call(this,a);this.api=a;this.ob=b;this.B={};a=new g.W({I:"div",Ma:["video-ads","ytp-ad-module"]});g.M(this,a);lR&&g.Kv(a.element,"ytp-ads-tiny-mode");this.G=new wD(a.element);g.M(this,this.G);g.HT(this.api,a.element,4);gIa(c)&&(c=new g.W({I:"div",Ma:["ytp-ad-underlay"]}),g.M(this,c),this.C=new wD(c.element),g.M(this,this.C),g.HT(this.api,c.element,0));g.M(this,Fya())};
rkb=function(a,b){a=g.hd(a.B,b.id,null);a==null&&g.nE(Error("Component not found for element id: "+b.id));return a||null};
skb=function(a){g.gV.call(this,a);var b=this;this.B=null;this.created=!1;this.C=a.U().L("h5_use_refactored_get_ad_break")?new sib(this.player):new $0(this.player);this.D=function(){if(b.B!=null)return b.B;var d=new zib({Lo:G1(b.j).Lo,Nf:G1(b.j).Nf,J:b.player,vl:G1(b.j).vl,Pa:b.j.j.Pa,El:G1(b.j).El,md:b.j.j.md});b.B=d.O4;return b.B};
this.j=new Cjb(this.player,this,this.C,this.D);g.M(this,this.j);var c=a.U();!yI(c)||g.tR(c)||zR(c)||(g.M(this,new Y1(a,G1(this.j).ob,G1(this.j).vl)),g.M(this,new Djb(a)))};
tkb=function(a){a.created!==a.loaded&&wF("Created and loaded are out of sync")};
wkb=function(a){g.gV.prototype.load.call(a);var b=G1(a.j).vl;try{a.player.getRootNode().classList.add("ad-created")}catch(l){wF(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.gb("debug_ignore_ad_placements")&&e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}),h=((e==null?void 0:e.adSlots)||[]).map(function(l){return g.V(l,fM)});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;c&&c.hc();b=ukb(f,h,b,G1(a.j).ox);f=c&&c.clientPlaybackNonce||"";c=c&&c.Hp||!1;h=1E3*a.player.getDuration(1);vkb(a);a.j.j.Yx.Fk(f,h,c,b.CL,b.LW,b.CL,e,d)};
vkb=function(a){var b,c;if(c=!(((b=a.player.getVideoData(1))==null?0:b.Hp)||g.jA("SERVED_VIA_SPF_HISTORY")))b=a.player.U(),c=yI(b)&&!g.xI(b)&&b.playerStyle==="desktop-polymer";c&&(b=JYa(a.player),(a=a.player.L("web_player_deprecate_external_api")?a.player.getInternalApi():void 0)?(a.addEventListener("updateKevlarOrC3Companion",wza),a.addEventListener("updateEngagementPanelAction",yza),a.addEventListener("changeEngagementPanelVisibility",Aza)):(b.addEventListener("updateKevlarOrC3Companion",xza),b.addEventListener("updateEngagementPanelAction",
zza),b.addEventListener("changeEngagementPanelVisibility",Bza)),window.addEventListener("yt-navigate-start",Dza))};
Z1=function(a,b){b===a.zt&&(a.zt=void 0)};
xkb=function(a){var b=G1(a.j).Rd,c=b.D().VP("SLOT_TYPE_PLAYER_BYTES",1);b=b.Ta.get().Fe(1).clientPlaybackNonce;var d=!1;c=g.v(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f=e.slotType==="SLOT_TYPE_PLAYER_BYTES"&&e.slotEntryTrigger instanceof sL?e.slotEntryTrigger.Iv:void 0;f&&f===b&&(d&&wF("More than 1 preroll playerBytes slot detected",e),d=!0)}d||s1(G1(a.j).QB)};
ykb=function(a){if(h1(G1(a.j).vl))return!0;var b="";a=g.v(G1(a.j).El.jj.keys());for(var c=a.next();!c.done;c=a.next()){c=c.value;if(c.slotType==="SLOT_TYPE_PLAYER_BYTES"&&c.Za==="core")return!0;b+=c.slotType+" "}Math.random()<.01&&wF("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1};
zkb=function(a){a=g.v(G1(a.j).El.jj.values());for(var b=a.next();!b.done;b=a.next())if(b.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1};
EHa=function(a,b,c,d,e){c=c===void 0?[]:c;d=d===void 0?"":d;e=e===void 0?"":e;var f=G1(a.j).vl,h=a.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.hc();c=ukb(b,c,f,G1(a.j).ox);IHa(G1(a.j).Vd,d,c.CL,c.LW,b,e)};
ukb=function(a,b,c,d){b={CL:[],LW:b};a=g.v(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&e.renderer!=null){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.V((n=f.sandwichedLinearAdRenderer)==null?void 0:n.adVideoStart,sM)?(h=g.V((m=f.sandwichedLinearAdRenderer)==null?void 0:m.adVideoStart,sM),h=fKa(h,p),g.tE(f.sandwichedLinearAdRenderer.adVideoStart,sM,h)):g.V((l=f.linearAdSequenceRenderer)==null?void 0:l.adStart,sM)&&
(m=g.V((h=f.linearAdSequenceRenderer)==null?void 0:h.adStart,sM),h=fKa(m,p),g.tE(f.linearAdSequenceRenderer.adStart,sM,h))}b.CL.push(e)}return b};
g.$1=function(a){if(typeof DOMParser!="undefined"){var b=new DOMParser;a=Gma(a);return b.parseFromString(g.se(a),"application/xml")}throw Error("Your browser does not support loading xml documents");};
g.a2=function(a){g.I.call(this);this.callback=a;this.j=new Wv(0,0,.4,0,.2,1,1,1);this.delay=new g.Cv(this.next,window,this);g.M(this,this.delay)};
g.Akb=function(a){var b=a.U();return b.Ed&&!b.C&&g.nR(b)?a.fd()?(a=a.ao(),Math.min(a.width,a.height)>=315):!a.Tg():!1};
g.b2=function(a){g.W.call(this,{I:"div",S:"ytp-more-videos-view",W:{tabIndex:"-1"}});var b=this;this.api=a;this.B=!0;this.D=new g.NJ(this);this.C=[];this.suggestionData=[];this.columns=this.containerWidth=this.Y=this.G=this.j=0;this.title=new g.W({I:"h2",S:"ytp-related-title",xa:"{{title}}"});this.previous=new g.W({I:"button",Ma:["ytp-button","ytp-previous"],W:{"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.TE()]});this.N=new g.a2(function(c){b.suggestions.element.scrollLeft=-c});
this.next=new g.W({I:"button",Ma:["ytp-button","ytp-next"],W:{"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.UE()]});g.M(this,this.D);this.K=a.U().D;g.M(this,this.title);this.title.Ka(this.element);this.suggestions=new g.W({I:"div",S:"ytp-suggestions"});g.M(this,this.suggestions);this.suggestions.Ka(this.element);g.M(this,this.previous);this.previous.Ka(this.element);
this.previous.listen("click",this.Q4,this);g.M(this,this.N);Bkb(this);g.M(this,this.next);this.next.Ka(this.element);this.next.listen("click",this.P4,this);this.D.T(this.api,"appresize",this.kc);this.D.T(this.api,"fullscreentoggled",this.Zx);this.D.T(this.api,"videodatachange",this.onVideoDataChange);this.kc(this.api.qb().getPlayerSize());this.onVideoDataChange()};
Bkb=function(a){for(var b={HA:0};b.HA<16;b={HA:b.HA},++b.HA){var c=new g.W({I:"a",S:"ytp-suggestion-link",W:{href:"{{link}}",target:a.api.U().Y,"aria-label":"{{aria_label}}"},V:[{I:"div",S:"ytp-suggestion-image"},{I:"div",S:"ytp-suggestion-overlay",W:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{I:"div",S:"ytp-suggestion-title",xa:"{{title}}"},{I:"div",S:"ytp-suggestion-author",xa:"{{author_and_views}}"},{I:"div",W:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration",
xa:"{{duration}}"}]}]});g.M(a,c);var d=c.Fa("ytp-suggestion-link");g.Is(d,"transitionDelay",b.HA/20+"s");a.D.T(d,"click",function(e){return function(f){var h=e.HA;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.zl(),l={},g.LYa(a.api,l,"emb_rel_pause"),h=g.to(h,l),g.$T(h,a.api,f)):g.ZT(f,a.api,a.K,m||void 0)&&a.api.qp(l.videoId,m,l.playlistId)}else f.preventDefault(),document.activeElement.blur()}}(b));
c.Ka(a.suggestions.element);a.C.push(c);a.api.createServerVe(c.element,c)}};
Ckb=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.c2=function(a){var b=a.api.Lh()?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.Ov(a.element,"ytp-scroll-min",b>=0);g.Ov(a.element,"ytp-scroll-max",b<=c)};
Ekb=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.fd()?l.shortViewCount||"":l.shortViewCount?l.author+" \u2022 "+l.shortViewCount:l.author;m.element.style.display="";e=m.Fa("ytp-suggestion-link");g.Is(e,"display","inline-block");Dkb.test(l.title)&&(m.Fa("ytp-suggestion-title").dir="rtl");Dkb.test(f)&&(m.Fa("ytp-suggestion-author").dir="rtl");e=l.isLivePlayback?"\u0412 \u044d\u0444\u0438\u0440\u0435":
l.lengthSeconds?g.IF(l.lengthSeconds):"";var n=l.zl(d.api.fd());if(g.nR(h)&&!h.L("web_player_log_click_before_generating_ve_conversion_params")){var p={};g.qT(d.api,"addEmbedsConversionTrackingParams",[p]);d.api.L("embeds_web_enable_referring_feature_deprecation")||g.JO(p,"emb_rel_pause");n=g.to(n,p)}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.LJ||g.mR?"will-change: opacity":void 0});f=m.Fa("ytp-suggestion-image");d=d.api.fd()?l.kh("hq2.jpg"):l.kh();f.style.backgroundImage=d?"url("+d+")":""}if(b<16)for(;b<16;++b)c=a.C[b].Fa("ytp-suggestion-link"),g.Is(c,"display","none");g.c2(a)};
aaa=[];ma=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
g.ea=caa(this);na("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;ma(this,"description",{configurable:!0,writable:!0,value:h})}
if(a)return a;c.prototype.toString=function(){return this.j};
var d="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",e=0;return b});
na("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=g.ea[b[c]];typeof d==="function"&&typeof d.prototype[a]!="function"&&ma(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a});
var Fkb=typeof Object.assign=="function"?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)sa(d,e)&&(a[e]=d[e])}return a};
na("Object.assign",function(a){return a||Fkb});
var faa=typeof Object.create=="function"?Object.create:function(a){function b(){}
b.prototype=a;return new b},Gkb=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if(typeof Reflect!="undefined"&&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){e===void 0&&(e=c);
e=faa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),Hkb;
if(typeof Object.setPrototypeOf=="function")Hkb=Object.setPrototypeOf;else{var Ikb;a:{var Jkb={a:!0},Kkb={};try{Kkb.__proto__=Jkb;Ikb=Kkb.a;break a}catch(a){}Ikb=!1}Hkb=Ikb?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var va=Hkb;
wa.prototype.Z=function(a){this.B=a};
wa.prototype.return=function(a){this.C={return:a};this.j=this.G};
wa.prototype.Ja=function(a){this.j=a};
na("Reflect",function(a){return a?a:{}});
na("Reflect.construct",function(){return Gkb});
na("Reflect.setPrototypeOf",function(a){return a?a:va?function(b,c){try{return va(b,c),!0}catch(d){return!1}}:null});
na("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(this.j==null){this.j=[];var l=this;this.C(function(){l.G()})}this.j.push(h)};
var e=g.ea.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.Da),reject:h(this.G)}};
b.prototype.Da=function(h){if(h===this)this.G(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Ga(h);else{a:switch(typeof h){case "object":var l=h!=null;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}typeof l=="function"?this.La(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(this.j!=0)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.j);this.j=h;this.C=l;this.j===2&&this.Ha();this.Y()};
b.prototype.Ha=function(){var h=this;e(function(){if(h.ra()){var l=g.ea.console;typeof l!=="undefined"&&l.error(h.C)}},1)};
b.prototype.ra=function(){if(this.N)return!1;var h=g.ea.CustomEvent,l=g.ea.Event,m=g.ea.dispatchEvent;if(typeof m==="undefined")return!0;typeof h==="function"?h=new h("unhandledrejection",{cancelable:!0}):typeof l==="function"?h=new l("unhandledrejection",{cancelable:!0}):(h=g.ea.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.C;return m(h)};
b.prototype.Y=function(){if(this.B!=null){for(var h=0;h<this.B.length;++h)f.B(this.B[h]);this.B=null}};
var f=new c;b.prototype.Ga=function(h){var l=this.D();h.TI(l.resolve,l.reject)};
b.prototype.La=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 typeof r=="function"?function(u){try{n(r(u))}catch(w){p(w)}}:t}
var n,p,q=new b(function(r,t){n=r;p=t});
this.TI(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.TI=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;this.B==null?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.v(h),p=n.next();!p.done;p=n.next())d(p.value).TI(l,m)})};
b.all=function(h){var l=g.v(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(u){return function(w){r[u]=w;t--;t==0&&n(r)}}
var r=[],t=0;do r.push(void 0),t++,d(m.value).TI(q(r.length-1),p),m=l.next();while(!m.done)})};
return b});
na("Object.setPrototypeOf",function(a){return a||va});
na("Symbol.dispose",function(a){return a?a:Symbol("Symbol.dispose")});
na("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.v(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 n==="object"&&m!==null||n==="function"}
function e(m){if(!sa(m,h)){var n=new c;ma(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(p.get(m)!=2||p.get(n)!=3)return!1;p.delete(m);p.set(n,4);return!p.has(m)&&p.get(n)==4}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(!sa(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&sa(m,h)?m[h][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&sa(m,h)&&sa(m[h],this.j)};
b.prototype.delete=function(m){return d(m)&&sa(m,h)&&sa(m[h],this.j)?delete m[h][this.j]:!1};
return b});
na("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;n=="object"||n=="function"?f.has(m)?n=f.get(m):(n=""+ ++h,f.set(m,n)):n="p_"+m;var p=l[0][n];if(p&&sa(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.v(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var l=Object.seal({x:4}),m=new a(g.v([[l,"s"]]));if(m.get(l)!="s"||m.size!=1||m.get({x:4})||m.set({x:4},"t")!=m||m.size!=2)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||p.value[1]!="s")return!1;p=n.next();return p.done||p.value[0].x!=4||p.value[1]!="t"||!n.next().done?!1:!0}catch(q){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(l,m){l=l===0?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});
na("Array.prototype.keys",function(a){return a?a:function(){return Ka(this,function(b){return b})}});
na("Array.prototype.find",function(a){return a?a:function(b,c){return kaa(this,b,c).QM}});
na("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ma(this,b,"endsWith");b+="";c===void 0&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;e>0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}});
na("Set",function(a){function b(c){this.j=new Map;if(c){c=g.v(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size}
if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),d=new a(g.v([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)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||f.value[0].x!=4||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;
b.prototype.add=function(c){c=c===0?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});
na("Array.prototype.entries",function(a){return a?a:function(){return Ka(this,function(b,c){return[b,c]})}});
na("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ma(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}});
na("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});
na("String.prototype.repeat",function(a){return a?a:function(b){var c=Ma(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
na("Array.prototype.values",function(a){return a?a:function(){return Ka(this,function(b,c){return c})}});
na("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
na("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
na("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});
na("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0)return b;var c=Math.floor(Math.abs(b));return b<0?-c:c}});
na("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
na("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)sa(b,d)&&c.push(b[d]);return c}});
na("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});
na("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(c<0&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
na("String.prototype.includes",function(a){return a?a:function(b,c){return Ma(this,b,"includes").indexOf(b,c||0)!==-1}});
na("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}});
na("Array.from",function(a){return a?a:function(b,c,d){c=c!=null?c:function(l){return l};
var e=[],f=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof f=="function"){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}});
na("Math.clz32",function(a){return a?a:function(b){b=Number(b)>>>0;if(b===0)return 32;var c=0;(b&4294901760)===0&&(b<<=16,c+=16);(b&4278190080)===0&&(b<<=8,c+=8);(b&4026531840)===0&&(b<<=4,c+=4);(b&3221225472)===0&&(b<<=2,c+=2);(b&2147483648)===0&&c++;return c}});
na("Math.log10",function(a){return a?a:function(b){return Math.log(b)/Math.LN10}});
na("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;c<0&&(c=Math.max(0,e+c));if(d==null||d>e)d=e;d=Number(d);d<0&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
na("Int8Array.prototype.fill",Na);na("Uint8Array.prototype.fill",Na);na("Uint8ClampedArray.prototype.fill",Na);na("Int16Array.prototype.fill",Na);na("Uint16Array.prototype.fill",Na);na("Int32Array.prototype.fill",Na);na("Uint32Array.prototype.fill",Na);na("Float32Array.prototype.fill",Na);na("Float64Array.prototype.fill",Na);na("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)sa(b,d)&&c.push([d,b[d]]);return c}});
na("globalThis",function(a){return a||g.ea});
na("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;
})})}});
na("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}});
na("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ma(this,null,"padStart");b-=d.length;c=c!==void 0?String(c):" ";return(b>0&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
na("Array.prototype.findIndex",function(a){return a?a:function(b,c){return kaa(this,b,c).i}});
na("Math.sign",function(a){return a?a:function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1}});
na("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.v(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});
na("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)}});
na("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError(""+b+" is not iterable");b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("iterable for fromEntries should yield objects");c[d[0]]=d[1]}return c}});
na("Array.prototype.copyWithin",function(a){function b(c){c=Number(c);return c===Infinity||c===-Infinity?c:c|0}
return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=e===void 0?f:b(e);c=c<0?Math.max(f+c,0):Math.min(c,f);d=d<0?Math.max(f+d,0):Math.min(d,f);e=e<0?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}});
na("Int8Array.prototype.copyWithin",Oa);na("Uint8Array.prototype.copyWithin",Oa);na("Uint8ClampedArray.prototype.copyWithin",Oa);na("Int16Array.prototype.copyWithin",Oa);na("Uint16Array.prototype.copyWithin",Oa);na("Int32Array.prototype.copyWithin",Oa);na("Uint32Array.prototype.copyWithin",Oa);na("Float32Array.prototype.copyWithin",Oa);na("Float64Array.prototype.copyWithin",Oa);na("Array.prototype.findLastIndex",function(a){return a?a:function(b,c){return laa(this,b,c).i}});
na("Int8Array.prototype.findLastIndex",Qa);na("Uint8Array.prototype.findLastIndex",Qa);na("Uint8ClampedArray.prototype.findLastIndex",Qa);na("Int16Array.prototype.findLastIndex",Qa);na("Uint16Array.prototype.findLastIndex",Qa);na("Int32Array.prototype.findLastIndex",Qa);na("Uint32Array.prototype.findLastIndex",Qa);na("Float32Array.prototype.findLastIndex",Qa);na("Float64Array.prototype.findLastIndex",Qa);na("Number.parseInt",function(a){return a||parseInt});
na("String.raw",function(a){return a?a:function(b,c){if(b==null)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 zo,eb,maa;zo=zo||{};g.Ua=this||self;eb="closure_uid_"+(Math.random()*1E9>>>0);maa=0;g.k=rb.prototype;g.k.r7=function(a){var b=g.Ja.apply(1,arguments),c=this.zP(b);c?c.push(new paa(a)):this.Q1(a,b)};
g.k.Q1=function(a){this.j.set(this.yV(g.Ja.apply(1,arguments)),[new paa(a)])};
g.k.zP=function(){var a=this.yV(g.Ja.apply(0,arguments));return this.j.has(a)?this.j.get(a):void 0};
g.k.W8=function(){var a=this.zP(g.Ja.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.j.clear()};
g.k.yV=function(){var a=g.Ja.apply(0,arguments);return a?a.join(","):"key"};g.x(sb,rb);sb.prototype.B=function(a){var b=g.Ja.apply(1,arguments),c=0,d=this.W8(b);d&&(c=d.j);this.Q1(c+a,b)};g.x(tb,rb);tb.prototype.Sh=function(a){this.r7(a,g.Ja.apply(1,arguments))};g.I.prototype.Iq=!1;g.I.prototype.Na=function(){return this.Iq};
g.I.prototype.dispose=function(){this.Iq||(this.Iq=!0,this.ya())};
g.I.prototype[Symbol.dispose]=function(){this.dispose()};
g.I.prototype.addOnDisposeCallback=function(a,b){this.Iq?b!==void 0?a.call(b):a():(this.Fo||(this.Fo=[]),this.Fo.push(b!==void 0?(0,g.ib)(a,b):a))};
g.I.prototype.ya=function(){if(this.Fo)for(;this.Fo.length;)this.Fo.shift()()};g.lb(wb,Error);wb.prototype.name="CustomError";var Tba;g.lb(xb,wb);xb.prototype.name="AssertionError";g.yb.prototype.stopPropagation=function(){this.B=!0};
g.yb.prototype.preventDefault=function(){this.defaultPrevented=!0};var saa,bs,Ys;saa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if(typeof a==="string")return typeof b!=="string"||b.length!=1?-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.Lkb=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
c<0&&(c=Math.max(0,a.length+c));if(typeof a==="string")return typeof b!=="string"||b.length!=1?-1:a.lastIndexOf(b,c);for(;c>=0;c--)if(c in a&&a[c]===b)return c;return-1};
g.Zb=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.Mt=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=typeof a==="string"?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.$r=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=typeof a==="string"?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
return e};
bs=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.Zb)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Ys=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d=typeof a==="string"?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.as=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=typeof a==="string"?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 iba=function(){if(!g.Ua.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{var c=function(){};
g.Ua.addEventListener("test",c,b);g.Ua.removeEventListener("test",c,b)}catch(d){}return a}();var Mkb=Xa(1,!0),pc=Xa(610401301,!1),Lea,iea;Xa(899588437,!1);Lea=Xa(188588736,Mkb);g.Nkb=Xa(641353869,!1);g.Okb=Xa(644029907,!1);iea=Xa(645172343,Mkb);Xa(2147483644,!1);Xa(2147483645,!1);Xa(2147483646,Mkb);Xa(2147483647,!0);var rc=!!g.Wa("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var jc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Haa=/&/g,Iaa=/</g,Jaa=/>/g,Kaa=/"/g,Laa=/'/g,Maa=/\x00/g,Gaa=/[\x00&<>"']/;var sc,Pkb=g.Ua.navigator;sc=Pkb?Pkb.userAgentData||null:null;Kc[" "]=function(){};var Js,CY,Vhb,Qkb,Rkb,Skb,kR,lR,Tkb;g.mR=Ac();g.Ks=Naa();g.zC=xc("Edge");g.HR=g.zC||g.Ks;Js=xc("Gecko")&&!(ic(g.oc(),"WebKit")&&!xc("Edge"))&&!(xc("Trident")||xc("MSIE"))&&!xc("Edge");g.Nc=ic(g.oc(),"WebKit")&&!xc("Edge");CY=Ic();Vhb=Uaa();g.ZA=Taa();Qkb=Gc();Rkb=xc("iPad");Skb=xc("iPod");kR=Hc();lR=ic(g.oc(),"KaiOS");
a:{var Ukb="",Vkb=function(){var a=g.oc();if(Js)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.zC)return/Edge\/([\d\.]+)/.exec(a);if(g.Ks)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Nc)return/WebKit\/(\S+)/.exec(a);if(g.mR)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
Vkb&&(Ukb=Vkb?Vkb[1]:"");if(g.Ks){var d2,Wkb=g.Ua.document;d2=Wkb?Wkb.documentMode:void 0;if(d2!=null&&d2>parseFloat(Ukb)){Tkb=String(d2);break a}}Tkb=Ukb}var Xaa=Tkb,Vaa={};var v1a=Yaa("AnimationEnd"),jZa=Yaa("TransitionEnd");g.lb(Oc,g.yb);var Xkb={2:"touch",3:"pen",4:"mouse"};
Oc.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)?Js&&(Lc(b,"nodeName")||(b=null)):c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=a.clientX!==void 0?
a.clientX:a.pageX,this.clientY=a.clientY!==void 0?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||(c=="keypress"?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=typeof a.pointerType==="string"?a.pointerType:Xkb[a.pointerType]||"";this.state=a.state;this.timeStamp=a.timeStamp;this.j=
a;a.defaultPrevented&&Oc.Rf.preventDefault.call(this)};
Oc.prototype.stopPropagation=function(){Oc.Rf.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
Oc.prototype.preventDefault=function(){Oc.Rf.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Zaa="closure_listenable_"+(Math.random()*1E6|0);var $aa=0;var fba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=od.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=qd(a,b,d,e);h>-1?(b=a[h],c||(b.SI=!1)):(b=new aba(b,this.src,f,!!d,e),b.SI=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=qd(e,b,c,d);return b>-1?(Rc(e[b]),g.Fb(e,b),e.length==0&&(delete this.listeners[a],this.j--),!0):!1};
g.k.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e<d.length;e++)++b,Rc(d[e]);delete this.listeners[c];this.j--}return b};
g.k.eF=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=qd(a,b,c,d));return e>-1?a[e]:null};
g.k.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return g.Xc(this.listeners,function(f){for(var h=0;h<f.length;++h)if(!(c&&f[h].type!=d||e&&f[h].capture!=b))return!0;return!1})};var yd="closure_lm_"+(Math.random()*1E6|0),Cd={},kba=0,Dd="__closure_events_fn_"+(Math.random()*1E9>>>0);g.lb(g.Fd,g.I);g.Fd.prototype[Zaa]=!0;g.k=g.Fd.prototype;g.k.addEventListener=function(a,b,c,d){g.vd(this,a,b,c,d)};
g.k.removeEventListener=function(a,b,c,d){mba(this,a,b,c,d)};
g.k.dispatchEvent=function(a){var b=this.sS;if(b){var c=[];for(var d=1;b;b=b.sS)c.push(b),++d}b=this.l7;d=a.type||a;if(typeof a==="string")a=new g.yb(a,b);else if(a instanceof g.yb)a.target=a.target||b;else{var e=a;a=new g.yb(d,b);g.md(a,e)}e=!0;if(c)for(var f=c.length-1;!a.B&&f>=0;f--){var h=a.currentTarget=c[f];e=Gd(h,d,!0,a)&&e}a.B||(h=a.currentTarget=b,e=Gd(h,d,!0,a)&&e,a.B||(e=Gd(h,d,!1,a)&&e));if(c)for(f=0;!a.B&&f<c.length;f++)h=a.currentTarget=c[f],e=Gd(h,d,!1,a)&&e;return e};
g.k.ya=function(){g.Fd.Rf.ya.call(this);this.Dm&&this.Dm.removeAll(void 0);this.sS=null};
g.k.listen=function(a,b,c,d){return this.Dm.add(String(a),b,!1,c,d)};
g.k.VF=function(a,b,c,d){return this.Dm.add(String(a),b,!0,c,d)};
g.k.Oc=function(a,b,c,d){this.Dm.remove(String(a),b,c,d)};
g.k.eF=function(a,b,c,d){return this.Dm.eF(String(a),b,c,d)};
g.k.hasListener=function(a,b){return this.Dm.hasListener(a!==void 0?String(a):void 0,b)};Hd.prototype.get=function(){if(this.B>0){this.B--;var a=this.j;this.j=a.next;a.next=null}else a=this.C();return a};var Ykb={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};Pd.prototype.toString=function(){return this.j};
var rba={},qba={};Sd("");var Td;g.Yd.prototype.toString=function(){return this.X0+""};
var sba={};g.ce.prototype.toString=function(){return this.Z0};
g.ge=new g.ce("about:invalid#zClosurez");var $1a=fe("tel"),Y1a=fe("sms"),tba=[fe("data"),fe("http"),fe("https"),fe("mailto"),fe("ftp"),new ee(function(a){return/^[^:]*([/?#]|$)/.test(a)})],uba=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var ye={};g.le.prototype.toString=function(){return this.W0.toString()};
var ula=new g.le("",ye),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 Fba={};g.re.prototype.toString=function(){return this.V0.toString()};
var Zkb=/^[a-zA-Z0-9-]+$/,$kb={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},alb={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Cba=new g.re(g.Ua.trustedTypes&&g.Ua.trustedTypes.emptyHTML||"",Fba);ue.prototype.toString=function(){return this.j};ve.prototype.toString=function(){return this.Y0.toString()};var blb=Kd(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.se(Cba);return!b.parentElement});g.k=g.Ge.prototype;g.k.clone=function(){return new g.Ge(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*=typeof b==="number"?b:a;return this};g.k=g.Me.prototype;g.k.clone=function(){return new g.Me(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*=typeof b==="number"?b:a;return this};g.clb=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Uba={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=ff.prototype;g.k.Jb=function(a){return nf(this.j,a)};
g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.k.Fa=function(a){return g.wf(a,this.j)};
g.k.setProperties=xf;g.k.createElement=function(a){return zf(this.j,a)};
g.k.appendChild=g.Df;g.k.append=function(a,b){Yba(gf(a),a,arguments,1)};
g.k.canHaveChildren=function(a){if(a.nodeType!=1)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.If;g.k.getChildren=function(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(b){return b.nodeType==1})};
g.k.contains=g.Of;var Sf;Wf.prototype.add=function(a,b){var c=eca.get();c.set(a,b);this.B?this.B.next=c:this.j=c;this.B=c};
Wf.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 eca=new Hd(function(){return new Xf},function(a){return a.reset()});
Xf.prototype.set=function(a,b){this.Fm=a;this.scope=b;this.next=null};
Xf.prototype.reset=function(){this.next=this.scope=this.Fm=null};var Yf,cg=!1,cca=new Wf;fca.prototype.reset=function(){this.context=this.B=this.C=this.j=null;this.D=!1};
var gca=new Hd(function(){return new fca},function(a){a.reset()});
g.fg.prototype.then=function(a,b,c){return qca(this,typeof a==="function"?a:null,typeof b==="function"?b:null,c)};
g.fg.prototype.$goog_Thenable=!0;g.k=g.fg.prototype;g.k.Pl=function(a,b){return qca(this,null,a,b)};
g.k.catch=g.fg.prototype.Pl;g.k.cancel=function(a){if(this.j==0){var b=new lg(a);g.dg(function(){mca(this,b)},this)}};
g.k.ffa=function(a){this.j=0;eg(this,2,a)};
g.k.gfa=function(a){this.j=0;eg(this,3,a)};
g.k.F8=function(){for(var a;a=nca(this);)oca(this,a,this.j,this.N);this.K=!1};
var uca=Uf;g.lb(lg,wb);lg.prototype.name="cancel";g.lb(g.mg,g.Fd);g.k=g.mg.prototype;g.k.enabled=!1;g.k.rd=null;g.k.setInterval=function(a){this.aj=a;this.rd&&this.enabled?(this.stop(),this.start()):this.rd&&this.stop()};
g.k.Rea=function(){if(this.enabled){var a=g.kb()-this.QZ;a>0&&a<this.aj*.8?this.rd=this.OH.setTimeout(this.bX,this.aj-a):(this.rd&&(this.OH.clearTimeout(this.rd),this.rd=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.rd||(this.rd=this.OH.setTimeout(this.bX,this.aj),this.QZ=g.kb())};
g.k.stop=function(){this.enabled=!1;this.rd&&(this.OH.clearTimeout(this.rd),this.rd=null)};
g.k.ya=function(){g.mg.Rf.ya.call(this);this.stop();delete this.OH};g.x(g.pg,g.I);g.k=g.pg.prototype;g.k.sendIsolatedPayload=function(a){this.G=a;this.C=1};
g.k.un=function(){var a=this.B.values();a=[].concat(g.ra(a)).filter(function(b){return b.j.size});
a.length&&this.N.flush(a,this.G);xca(a);this.D=0;this.j.enabled&&this.j.stop()};
g.k.Zj=function(a){var b=g.Ja.apply(1,arguments);this.B.has(a)||this.B.set(a,new sb(a,b))};
g.k.bE=function(a){var b=g.Ja.apply(1,arguments);this.B.has(a)||this.B.set(a,new tb(a,b))};
g.k.jm=function(a){this.pN(a,1,g.Ja.apply(1,arguments))};
g.k.pN=function(a,b){var c=g.Ja.apply(2,arguments),d=wca(this,a);d&&d instanceof sb&&(d.B(b,c),vca(this))};
g.k.Sh=function(a,b){var c=g.Ja.apply(2,arguments),d=wca(this,a);d&&d instanceof tb&&(d.Sh(b,c),vca(this))};Aca.prototype.Sh=function(a,b,c){this.j.Sh("/client_streamz/bg/fil",a,b,c)};
Cca.prototype.Sh=function(a,b,c){this.j.Sh("/client_streamz/bg/fcd",a,b,c)};
Eca.prototype.Sh=function(a,b,c){this.j.Sh("/client_streamz/bg/fsl",a,b,c)};
Fca.prototype.Sh=function(a,b,c,d,e,f){this.j.Sh("/client_streamz/bg/wrl",a,b,c,d,e,f)};
Gca.prototype.Sh=function(a,b,c,d,e){this.j.Sh("/client_streamz/bg/el",a,b,c,d,e)};var Ah=void 0,zh,qda=typeof TextDecoder!=="undefined",Oca,Nca=typeof String.prototype.v$==="function",Mca=typeof TextEncoder!=="undefined";var XA,YA;g.QQ=Bc();XA=Gc()||xc("iPod");YA=xc("iPad");g.iVa=Paa();g.LJ=Cc();g.dC=Dc()&&!Hc();var Tca={},Eg=null,Uca=Js||g.Nc||typeof g.Ua.btoa=="function";var cda=typeof Uint8Array!=="undefined",Xca=!g.Ks&&typeof btoa==="function",ada=/[-_.]/g,Zca={"-":"+",_:"/",".":"="},Gg={};var eda;Hg.prototype.isEmpty=function(){return this.j==null};
Hg.prototype.sizeBytes=function(){var a=Jg(this);return a?a.length:0};var mda=typeof Uint8Array.prototype.slice==="function",Vg=0,Wg=0,efa;bh.prototype.init=function(a,b,c,d){d=d===void 0?{}:d;this.DI=d.DI===void 0?!1:d.DI;a&&(a=Mg(a),this.B=a.buffer,this.G=a.xx,this.D=b||0,this.C=c!==void 0?this.D+c:this.B.length,this.j=this.D)};
bh.prototype.free=function(){this.clear();vh.length<100&&vh.push(this)};
bh.prototype.clear=function(){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.DI=!1};
bh.prototype.reset=function(){this.j=this.D};
var vh=[];wh.prototype.free=function(){this.j.clear();this.B=this.D=-1;e2.length<100&&e2.push(this)};
wh.prototype.reset=function(){this.j.reset();this.C=this.j.j;this.B=this.D=-1};
var e2=[];var tda,wda;Ch.prototype.length=function(){return this.j.length};
Ch.prototype.end=function(){var a=this.j;this.j=[];return a};var ck=typeof Symbol==="function"&&typeof Symbol()==="symbol",f2=Kh(),kj=Kh("2ex"),eea=Kh("0dg"),dk=Kh("1oa");Math.max.apply(Math,g.ra(Object.values({cMa:1,WLa:2,NLa:4,R0a:8,Q0a:16,VXa:32,bwa:64,Pgb:128,IIa:256,FIa:512,XLa:1024,jIa:2048,Ddb:4096,kIa:8192})));var gj=ck?function(a,b){a[f2]|=b}:function(a,b){a.xo!==void 0?a.xo|=b:Object.defineProperties(a,{xo:{value:b,
configurable:!0,writable:!0,enumerable:!1}})},Mj=ck?function(a,b){a[f2]&=~b}:function(a,b){a.xo!==void 0&&(a.xo&=~b)},Qh=ck?function(a){return a[f2]|0}:function(a){return a.xo|0},ej=ck?function(a){return a[f2]}:function(a){return a.xo},Lh=ck?function(a,b){a[f2]=b}:function(a,b){a.xo!==void 0?a.xo=b:Object.defineProperties(a,{xo:{value:b,
configurable:!0,writable:!0,enumerable:!1}})};var Wi={},Dda={},Lj,dlb=[];Lh(dlb,55);Lj=Object.freeze(dlb);var oi,Rea;Object.freeze({});Object.freeze({});var oea=Object.freeze({});var hea;var Lda=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Xi,Zi,Uda;var bj=void 0,cj=void 0;var Zk,Yk;g.k=U.prototype;g.k.toJSON=function(){return $k(this)};
g.k.Pk=function(a){try{return Yk=!0,a&&(Zk=a===Xk||a!==Bea&&a!==Fea&&a!==Iea?Xk:a),JSON.stringify($k(this),$da)}finally{a&&(Zk=void 0),Yk=!1}};
g.k.clone=function(){var a=this.qa;return Yi(this.constructor,fj(a,ej(a),!1))};
g.k.xx=function(){return!!(Qh(this.qa)&2)};
g.k.SK=Wi;g.k.toString=function(){try{return Yk=!0,$k(this).toString()}finally{Yk=!1}};var Oea=Symbol(),cl,dl,gl=Symbol(),Wea=Symbol(),jl=Symbol(),kl=Symbol(),elb=ll(function(a,b,c){if(a.B!==1)return!1;nl(b,c,ih(a.j));return!0},ol),flb=ll(function(a,b,c){if(a.B!==1)return!1;
a=ih(a.j);nl(b,c,a===0?void 0:a);return!0},ol),glb=ll(function(a,b,c,d){if(a.B!==1)return!1;
ak(b,c,d,ih(a.j));return!0},ol),hlb=ll(function(a,b,c){if(a.B!==0)return!1;
nl(b,c,dh(a.j));return!0},pl),ilb=ll(function(a,b,c){if(a.B!==0)return!1;
a=dh(a.j);nl(b,c,a===0?void 0:a);return!0},pl),jlb=ll(function(a,b,c,d){if(a.B!==0)return!1;
ak(b,c,d,dh(a.j));return!0},pl),klb=ll(function(a,b,c){if(a.B!==0)return!1;
nl(b,c,eh(a.j));return!0},Wl),llb=ll(function(a,b,c){if(a.B!==0)return!1;
a=eh(a.j);nl(b,c,a===0?void 0:a);return!0},Wl),mlb=ll(function(a,b,c,d){if(a.B!==0)return!1;
ak(b,c,d,eh(a.j));return!0},Wl),nlb=ll(function(a,b,c){if(a.B!==1)return!1;
nl(b,c,hh(a.j));return!0},function(a,b,c){Bda(a,c,Rda(b))}),olb=ml(function(a,b,c){if(a.B!==1&&a.B!==2)return!1;
b=Nj(b,ej(b),c,2,!1);if(a.B==2)for(c=eh(a.j)>>>0,c=a.j.j+c;a.j.j<c;)b.push(hh(a.j));else b.push(hh(a.j));return!0},function(a,b,c){b=al(Rda,b,!1);
if(b!=null)for(var d=0;d<b.length;d++)Bda(a,c,b[d])}),plb=ll(function(a,b,c){if(a.B!==0)return!1;
nl(b,c,uh(a.j));return!0},ffa),qlb=ll(function(a,b,c,d){if(a.B!==0)return!1;
ak(b,c,d,uh(a.j));return!0},ffa),g2=ll(function(a,b,c){if(a.B!==2)return!1;
nl(b,c,Bh(a));return!0},gfa),rlb=ml(function(a,b,c){if(a.B!==2)return!1;
a=Bh(a);Uj(b,c,qea,a);return!0},function(a,b,c){b=al(Gi,b,!0);
if(b!=null)for(var d=0;d<b.length;d++){var e=a,f=c,h=b[d];h!=null&&Hh(e,f,Pca(h))}}),slb=ll(function(a,b,c,d){if(a.B!==2)return!1;
ak(b,c,d,Bh(a));return!0},gfa),Mea=new Ih(function(a,b,c,d,e){if(a.B!==2)return!1;
yh(a,ek(b,d,c,!0),e);return!0},Xl,!1,!0),Vea=new Ih(function(a,b,c,d,e){if(a.B!==2)return!1;
yh(a,ek(b,d,c),e);return!0},Xl,!1,!0),h2;
h2=new Ih(function(a,b,c,d,e){if(a.B!==2)return!1;d=Q(void 0,d[0],d[1]);var f=ej(b);ni(f);var h=Nj(b,f,c,3);f=ej(b);Qh(h)&4&&(h=Jh(h),Lh(h,(Qh(h)|1)&-2079),lj(b,f,c,h));h.push(d);yh(a,d,e);return!0},function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)Xl(a,b[f],c,d,e)},!0,!0);
var i2=new Ih(function(a,b,c,d,e,f){if(a.B!==2)return!1;Yj(b,ej(b),f,c);b=ek(b,d,c);yh(a,b,e);return!0},Xl,!1,!0),tlb=ll(function(a,b,c){if(a.B!==2)return!1;
nl(b,c,rda(a));return!0},function(a,b,c){b=Sda(b);
b!=null&&Hh(a,c,Mg(b).buffer)}),ulb=ml(function(a,b,c){if(a.B!==2)return!1;
a=rda(a);Uj(b,c,qea,a);return!0},function(a,b,c){b=al(Sda,b,!1);
if(b!=null)for(var d=0;d<b.length;d++){var e=a,f=c,h=b[d];h!=null&&Hh(e,f,Mg(h).buffer)}}),j2=ll(function(a,b,c){if(a.B!==0)return!1;
nl(b,c,eh(a.j)>>>0);return!0},function(a,b,c){b=xi(b);
b!=null&&b!=null&&(Gh(a,c,0),Dh(a.j,b))}),vlb=ll(function(a,b,c){if(a.B!==0)return!1;
nl(b,c,eh(a.j));return!0},function(a,b,c){b=wi(b);
b!=null&&(b=parseInt(b,10),Gh(a,c,0),zda(a.j,b))});g.x(Zl,U);Zl.zb=[1,2,3,4];var jfa={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);a>0;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};g.x(bm,U);var hm=[1,2,3],wlb=[0,hm,slb,mlb,qlb];var xlb=[0,h2,[0,elb,hlb]];g.x(cm,U);var gm=[1,2,3],ylb=[0,gm,jlb,glb,i2,xlb];g.x(dm,U);dm.zb=[1];var zlb=[0,h2,wlb,ylb];var Alb=[0,[1,2,3],i2,[0,g2,-1,plb],i2,[0,g2,-1,klb,plb],i2,[0,g2]];g.x(em,U);em.prototype.Lr=function(){var a=yea(this,3,3,void 0,!0);Eda(a);return a[void 0]};
em.zb=[3,6,4];em.prototype.j=hfa([0,g2,Alb,rlb,h2,zlb,nlb,olb]);g.x(fm,U);fm.zb=[1];var qfa={};g.k=im.prototype;g.k.isEnabled=function(){if(!g.Ua.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{aG:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.k.set=function(a,b,c){var d=!1;if(typeof c==="object"){var e=c.Wda;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.aG}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');l===void 0&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=l<0?"":l==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+l*1E3)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(e!=null?";samesite="+
e:"")};
g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e<d.length;e++){f=jc(d[e]);if(f.lastIndexOf(c,0)==0)return f.slice(c.length);if(f==a)return""}return b};
g.k.remove=function(a,b,c){var d=this.get(a)!==void 0;this.set(a,"",{aG:0,path:b,domain:c});return d};
g.k.Yn=function(){return jm(this).keys};
g.k.Lm=function(){return jm(this).values};
g.k.isEmpty=function(){return!this.j.cookie};
g.k.clear=function(){for(var a=jm(this).keys,b=a.length-1;b>=0;b--)this.remove(a[b])};
var PA=new im(typeof document=="undefined"?null:document);g.x(lm,U);lm.zb=[2];mm.prototype.setInterval=function(a){this.intervalMs=a;this.Ye&&this.enabled?(this.stop(),this.start()):this.Ye&&this.stop()};
mm.prototype.start=function(){var a=this;this.enabled=!0;this.Ye||(this.Ye=setTimeout(function(){a.tick()},this.intervalMs),this.B=this.j())};
mm.prototype.stop=function(){this.enabled=!1;this.Ye&&(clearTimeout(this.Ye),this.Ye=void 0)};
mm.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.j()-this.B,0);b<this.intervalMs*.8?this.Ye=setTimeout(function(){a.tick()},this.intervalMs-b):(this.Ye&&(clearTimeout(this.Ye),this.Ye=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.Ye=void 0};g.x(nm,U);g.x(Qm,U);g.Rm.prototype.B=0;g.Rm.prototype.reset=function(){this.j=this.C=this.D;this.B=0};
g.Rm.prototype.getValue=function(){return this.C};g.x(Tm,U);Tm.prototype.ZJ=function(){return Nk(this,1)};g.x(Um,U);g.x(Vm,U);Vm.zb=[1];g.x(Wm,U);var vfa=["platform","platformVersion","architecture","model","uaFullVersion"],Ym=new Vm,Xm=null;g.x(Zm,U);g.x($m,U);$m.zb=[1,2,3,4,5];g.x(an,U);g.x(bn,U);bn.prototype.L=function(){return Kj(this,$m,7)};
bn.prototype.Mz=function(){return Jj(this,16)};
bn.zb=[3,20,27];g.x(cn,U);cn.prototype.tH=function(a){return T(this,2,a)};
cn.zb=[3,5];g.x(dn,U);var Blb=Yl(dn);dn.zb=[5,6,7];g.x(xfa,U);var k2=new function(){this.j=xfa;this.isRepeated=0;this.B=g.fk;this.defaultValue=void 0};g.x(gn,g.I);g.k=gn.prototype;g.k.ya=function(){this.pP();this.j.stop();this.ra.stop();g.I.prototype.ya.call(this)};
g.k.dispatch=function(a){if(this.N)if(a instanceof bn)this.log(a);else{var b=new bn;a=a.Pk();b=S(b,8,a);this.log(b)}};
g.k.log=function(a){if(this.N){a=a.clone();var b=this.Ha++;a=Rk(a,21,b);this.componentId&&S(a,26,this.componentId);if(vea(a)==null){var c=Date.now();b=a;c=Number.isFinite(c)?c.toString():"0";Jj(b,1,Ai(c))}kk(a,15)!=null||Rk(a,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(b=a,c=this.experimentIds.clone(),gk(b,lm,16,c));b=this.C.length-1E3+1;b>0&&(this.C.splice(0,b),this.G+=b);this.C.push(a);this.xE||this.j.enabled||this.j.start()}};
g.k.flush=function(a,b){var c=this;if(this.C.length===0)a&&a();else{var d=Date.now();if(this.Da>d&&this.Y<d)b&&b("throttled");else{this.network&&(typeof this.network.ZJ==="function"?Afa(this.B,this.network.ZJ()):Afa(this.B,0));var e=this.B.build(this.C,this.G,this.Z,this.YB,0,0);d={};var f=this.TE();f&&(d.Authorization=f);this.K||(this.K=fn());try{var h=(new URL(this.K)).toString()}catch(m){h=(new URL(this.K,yf().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.Pk();d={url:h.toString(),body:l,Epb:1,requestHeaders: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=Blb(p)}catch(q){}n&&(m=Number,p="-1",p=p===void 0?"0":p,p=lk(vea(n),p),m=m(p),m>0&&(c.Y=Date.now(),c.Da=c.Y+m),n=k2.j?k2.B(n,k2.j,175237375,!0):k2.B(n,175237375,null,!0),n=n===null?void 0:n)&&(n=nk(n,1,-1),n!==-1&&(c.D=new g.Rm(n<1?1:n,3E5,.1),c.j.setInterval(c.D.getValue())))}a&&a();c.Z=0};
l=function(m,n){var p=tea(e,bn);var q=kk(e,14);g.Sm(c.D);c.j.setInterval(c.D.getValue());m===401&&f&&(c.va=f);q&&(c.G+=q);n===void 0&&(n=c.isRetryable(m));n&&(c.C=p.concat(c.C),c.xE||c.j.enabled||c.j.start());b&&b("net-send-failed",m);++c.Z};
c.network&&c.network.send(d,h,l)}}}};
g.k.pP=function(){Bfa(this.B,!0);this.flush();Bfa(this.B,!1)};
g.k.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0};
en.prototype.tH=function(a){this.j.tH(a);return this};
en.prototype.build=function(a,b,c,d,e,f){b=b===void 0?0:b;e=e===void 0?0:e;f=f===void 0?0:f;c=c===void 0?0:c;if(Kj(jn(this),Wm,11)){var h=kn(this);Pk(h,3,c)}Kj(jn(this),Wm,11)&&(c=kn(this),Pk(c,4,e));Kj(jn(this),Wm,11)&&(e=kn(this),Pk(e,5,f));f=this.j.clone();e=Date.now().toString();f=Jj(f,4,Ai(e));a=ik(f,bn,3,a.slice());d&&(f=new nm,d=Pk(f,13,d),f=new Qm,d=gk(f,nm,2,d),f=new an,d=gk(f,Qm,1,d),d=T(d,2,9),gk(a,an,18,d));b&&Rk(a,14,b);return a};ln.prototype.send=function(a,b,c){var d=this,e,f,h,l,m,n,p,q,r,t;return g.H(function(u){switch(u.j){case 1:return f=(e=d.i7?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,g.Ba(u,2,3),h=Object.assign({},{method:a.requestType,
headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),g.z(u,fetch(a.url,h),5);case 5:l=u.B;if(l.status!==200){(m=c)==null||m(l.status);u.Ja(3);break}if((n=b)==null){u.Ja(7);break}return g.z(u,l.text(),8);case 8:n(u.B);case 7:case 3:g.Ea(u);clearTimeout(f);g.Fa(u,0);break;case 2:p=g.Da(u);switch((q=p)==null?void 0:q.name){case "AbortError":(r=c)==null||r(408);break;default:(t=c)==null||t(400)}u.Ja(3)}})};
ln.prototype.ZJ=function(){return 4};g.x(mn,g.I);mn.prototype.FX=function(){this.D=!0;return this};
mn.prototype.build=function(){this.network||(this.network=new ln);var a=new gn({logSource:this.logSource,TE:this.TE?this.TE:tfa,sessionIndex:this.sessionIndex,qfa:this.B,Dx:this.C,xE:!1,FX:this.D,YW:this.YW,network:this.network});g.M(this,a);if(this.j){var b=this.j,c=hn(a.B);S(c,7,b)}this.componentId&&(a.componentId=this.componentId);this.YB&&(a.YB=this.YB);this.pageId&&(a.pageId=this.pageId);this.Mz&&((c=this.Mz)?(a.experimentIds||(a.experimentIds=new lm),b=a.experimentIds,c=c.Pk(),S(b,4,c)):a.experimentIds&&
Jj(a.experimentIds,4));Cfa(a.B);this.network.tH&&this.network.tH(this.logSource);this.network.qea&&this.network.qea(a);return a};g.x(nn,g.I);nn.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new fm,c=[],d=0;d<a.length;d++){var e=a[d],f=g.kfa(e);c.push(f);e.clear()}ik(b,em,1,c);this.j.dispatch(b);this.j.flush()}};g.x(pn,Error);pn.prototype.toString=function(){var a="RpcError("+(Dfa(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};Efa.prototype.Pk=function(a){var b=[];rn(this,a,b);return b.join("")};
var Hfa={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Gfa=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;sn.prototype.C=null;sn.prototype.getOptions=function(){return this.C||(this.C=this.D())};var Clb;g.lb(tn,sn);tn.prototype.j=function(){return new XMLHttpRequest};
tn.prototype.D=function(){return{}};
Clb=new tn;var wn=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Ofa=/#|$/,Pfa=/[?&]($|#)/;g.lb(g.xo,g.Fd);var Xfa=/^https?$/i,Dlb=["POST","PUT"],Rfa=[];g.k=g.xo.prototype;g.k.O7=function(){this.dispose();g.Gb(Rfa,this)};
g.k.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Y+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Y=a;this.D="";this.B=0;this.Ha=!1;this.C=!0;this.j=this.N?this.N.j():Clb.j();this.Da=this.N?this.N.getOptions():Clb.getOptions();this.j.onreadystatechange=(0,g.ib)(this.l0,this);try{this.getStatus(),this.Ga=!0,this.j.open(b,String(a),!0),this.Ga=!1}catch(h){this.getStatus();Ufa(this,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===
Object.prototype)for(var e in d)c.set(e,d[e]);else if(typeof d.keys==="function"&&typeof d.get==="function"){e=g.v(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.Ua.FormData&&a instanceof g.Ua.FormData;!g.Eb(Dlb,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.v(c);for(d=b.next();!d.done;d=b.next())c=g.v(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.La&&(this.j.responseType=this.La);"withCredentials"in this.j&&this.j.withCredentials!==this.K&&(this.j.withCredentials=this.K);try{Wfa(this),this.va>0&&(this.getStatus(),this.ra=g.ng(this.S5,this.va,this)),this.getStatus(),this.Z=!0,this.j.send(a),
this.Z=!1}catch(h){this.getStatus(),Ufa(this,h)}};
g.k.S5=function(){typeof zo!="undefined"&&this.j&&(this.D="Timed out after "+this.va+"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"),yo(this))};
g.k.ya=function(){this.j&&(this.C&&(this.C=!1,this.G=!0,this.j.abort(),this.G=!1),yo(this,!0));g.xo.Rf.ya.call(this)};
g.k.l0=function(){this.Na()||(this.Ga||this.Z||this.G?Vfa(this):this.Uba())};
g.k.Uba=function(){Vfa(this)};
g.k.isActive=function(){return!!this.j};
g.k.isComplete=function(){return g.Ao(this)==4};
g.k.getStatus=function(){try{return g.Ao(this)>2?this.j.status:-1}catch(a){return-1}};
g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),a===null?void 0:a};
g.k.getLastError=function(){return typeof this.D==="string"?this.D:String(this.D)};Fo.prototype.send=function(a,b,c){b=b===void 0?function(){}:b;
c=c===void 0?function(){}:c;
Sfa(a.url,function(d){d=d.target;Bo(d)?b(g.Co(d)):c(d.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};
Fo.prototype.ZJ=function(){return 1};Ho.prototype.start=function(){this.startMillis=Go()};
Ho.prototype.done=function(){this.startMillis!=null&&this.logger.hB(this.event,Go()-this.startMillis)};
g.k=Io.prototype;g.k.cR=function(){};
g.k.hB=function(){};
g.k.Jo=function(a,b){a=a();this.hB(b,0);return a};
g.k.Gl=function(){};
g.k.un=function(){};
g.k.dR=function(a,b,c){return c};
g.k.f_=function(){};
g.k.d_=function(){};
g.k.e_=function(){};
g.x(Jo,g.I);g.k=Jo.prototype;g.k.cR=function(){this.Ha.j.jm("/client_streamz/bg/fsc",this.D,this.Mi)};
g.k.hB=function(a,b){if(a==="t")this.Da.Sh(b,this.D,this.Mi);else if(a==="n")this.Ga.Sh(b,this.D,this.Mi);else if(a==="h"||a==="u"||a==="k"||a==="P"||a==="p"){if(a=this.B.get(a))this.Z.j.jm("/client_streamz/bg/fcc",a,this.Mi),this.Y.Sh(b,a,this.Mi)}else this.ra.Sh(b,a,"",this.C,this.Mi)};
g.k.Jo=function(a,b){var c=Go();a=a();this.hB(b,Go()-c);return a};
g.k.Gl=function(a){var b=this.G.get(a);b?this.va.j.jm("/client_streamz/bg/fiec",this.D,this.Mi,b):this.errorCount.j.jm("/client_streamz/bg/cec",a,"",this.C,this.Mi)};
g.k.dR=function(a,b,c){function d(h){var l=Go()-f;e.La.Sh(l,a,b,h,e.C,e.Mi)}
var e=this,f=Go();c.then(function(){d(0)},function(h){h instanceof pn?d(h.code):d(-1)});
return c};
g.k.f_=function(a){this.Sa.j.jm("/client_streamz/bg/po/csc",a,this.C,this.Mi)};
g.k.d_=function(a){this.N.j.jm("/client_streamz/bg/po/ctav",a,this.C,this.Mi)};
g.k.e_=function(a){this.Oa.j.jm("/client_streamz/bg/po/cwsc",a,this.C,this.Mi)};
g.k.un=function(){this.j.un()};g.x(Ko,U);g.x(Lo,U);g.x(Mo,U);var gga=Yl(Mo);Mo.messageId="bfkj";g.x(Oo,g.I);Oo.prototype.snapshot=function(a){var b=this;if(this.Na())throw Error("Already disposed");this.zg.cR();return this.B.then(function(c){var d=c.F7;return new Promise(function(e){var f=new Ho(b.zg,"n");d(function(h){f.done();b.zg.un();e(h)},[a.Ar,
a.wea,a.D3,a.zea])})})};
Oo.prototype.m2=function(a){var b=this;if(this.Na())throw Error("Already disposed");this.zg.cR();var c=this.zg.Jo(function(){return b.C([a.Ar,a.wea,a.D3,a.zea])},"n");
this.zg.un();return c};
g.x(Po,Error);g.x(So,U);g.x(To,U);g.x(Uo,U);Vo.prototype.ME=function(a,b){var c=this,d,e,f,h,l;return g.H(function(m){if(m.j==1){var n=new So;d=Uk(n,1,c.Hs);a&&Uk(d,2,a);b&&Uk(d,3,b);e=c.j();return g.z(m,c.client.create(d,e),2)}f=m.B;h=Kg(Sj(f,2));if(h.length)return m.return(hga(h));l=g.fk(f,Mo,1);if(!l)throw Error("Missing field");return m.return(l)})};
Vo.prototype.TX=function(a){var b=this,c,d;return g.H(function(e){c=b.j();var f=new To;f=Uk(f,1,b.Hs);d=Uk(f,2,a);f=e.return;var h=b.client;h=Jq(h.j,h.B+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},Elb);return f.call(e,h)})};
Vo.prototype.ping=function(a,b){var c=this,d,e;return g.H(function(f){d=c.j();e=b||new Uo;var h=S(e,1,c.Hs);S(h,2,a);return g.z(f,c.client.ping(e,d),0)})};var Flb,jga=(Flb=Math.imul)!=null?Flb:function(a,b){return a*b|0},Xo=[196,
200,224,18];Yo.prototype.Pk=function(){return String(this.j)+","+this.B.join()};
Yo.prototype.Jh=function(a,b){var c=void 0;if(this.B[this.j]!==a){var d=this.B.indexOf(a);d!==-1?(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=iga("iU5q-!O9@$",this.Pk());c&&a&&b(c);return a};g.x(Zo,g.I);Zo.prototype.dG=function(a,b){var c=this.j(a);b==null||b(c);return this.logger.Jo(function(){return g.Bg(c,2)},this.B)};
g.x(bp,Zo);bp.prototype.j=function(a){var b=this;++this.K>=this.N&&this.D.resolve();var c=a();a=this.logger.Jo(function(){return b.G(c)},"C");
if(a===void 0)throw new Po(17,"YNJ:Undefined");if(!(a instanceof Uint8Array))throw new Po(18,"ODM:Invalid");return a};
g.x(cp,Zo);cp.prototype.j=function(){return this.G};
g.x(dp,Zo);dp.prototype.j=function(){var a=this;return this.logger.Jo(function(){return Dg(a.G)},"d")};
dp.prototype.dG=function(){return this.G};
g.x(ep,Zo);ep.prototype.j=function(){if(this.G)return this.G;this.G=uga(this,function(a){return"_"+am(a)});
return uga(this,function(a){return a})};
g.x(fp,Zo);fp.prototype.j=function(a){var b=a();if(b.length>118)throw new Po(19,"DFO:Invalid");a=Math.floor(Date.now()/1E3);var c=[Math.random()*255,Math.random()*255],d=c.concat([this.G&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.f_(this.clientState);return a};g.x(gp,g.I);gp.prototype.reportError=function(a){this.logger.Gl(a.code);this.onError(a);return a};g.x(ip,U);var Glb=Yl(ip);jp.prototype.PJ=function(){return this.C};
jp.prototype.getMetadata=function(){return this.B};kp.prototype.getMetadata=function(){return this.j};
kp.prototype.PJ=function(){return this.B};
kp.prototype.getStatus=function(){return null};lp.prototype.getName=function(){return this.name};
lp.prototype.getName=lp.prototype.getName;var Hlb=new lp("/google.internal.waa.v1.Waa/Create",So,ip,function(a){return a.Pk()},Glb);g.x(mp,U);var Ilb=Yl(mp);var Elb=new lp("/google.internal.waa.v1.Waa/GenerateIT",To,mp,function(a){return a.Pk()},Ilb);g.x(np,U);var Jlb=new lp("/google.internal.waa.v1.Waa/Ping",Uo,np,function(a){return a.Pk()},Yl(np));var $ga=new Set(["SAPISIDHASH","APISIDHASH"]);var Vga=Promise;g.x(op,U);op.prototype.getValue=function(){var a=jj(this,2);if(Array.isArray(a)||a instanceof U)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Sj(this,2)};g.x(pp,U);pp.prototype.getMessage=function(){return Mk(this,2)};
var Ega=Yl(pp);pp.zb=[3];qp.prototype.on=function(a,b){a=="data"?this.C.push(b):a=="metadata"?this.G.push(b):a=="status"?this.K.push(b):a=="end"?this.D.push(b):a=="error"&&this.B.push(b);return this};
qp.prototype.removeListener=function(a,b){a=="data"?fq(this.C,b):a=="metadata"?fq(this.G,b):a=="status"?fq(this.K,b):a=="end"?fq(this.D,b):a=="error"&&fq(this.B,b);return this};
qp.prototype.cancel=function(){this.j.abort()};
qp.prototype.cancel=qp.prototype.cancel;qp.prototype.removeListener=qp.prototype.removeListener;qp.prototype.on=qp.prototype.on;g.lb(g.gq,sn);g.gq.prototype.j=function(){var a=new hq(this.K,this.G);this.B&&a.setCredentialsMode(this.B);return a};
g.gq.prototype.D=Id({});g.gq.prototype.setCredentialsMode=function(a){this.B=a};
g.lb(hq,g.Fd);g.k=hq.prototype;g.k.open=function(a,b){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.ra=a;this.Y=b;this.readyState=1;iq(this)};
g.k.send=function(a){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.Z,method:this.ra,credentials:this.G,cache:void 0};a&&(b.body=a);(this.va||g.Ua).fetch(new Request(this.Y,b)).then(this.Q9.bind(this),this.iK.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(){});
this.readyState>=1&&this.j&&this.readyState!=4&&(this.j=!1,jq(this));this.readyState=0};
g.k.Q9=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,iq(this)),this.j&&(this.readyState=3,iq(this),this.j)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.O9.bind(this),this.iK.bind(this));else if(typeof g.Ua.ReadableStream!=="undefined"&&"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;Fga(this)}else a.text().then(this.P9.bind(this),this.iK.bind(this))};
g.k.F9=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?jq(this):iq(this);this.readyState==3&&Fga(this)}};
g.k.P9=function(a){this.j&&(this.response=this.responseText=a,jq(this))};
g.k.O9=function(a){this.j&&(this.response=a,jq(this))};
g.k.iK=function(){this.j&&jq(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(hq.prototype,"withCredentials",{get:function(){return this.G==="include"},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.kq.prototype.toString=function(){var a=[],b=this.G;b&&a.push(rq(b,Klb,!0),":");var c=this.j;if(c||b=="file")a.push("//"),(b=this.Z)&&a.push(rq(b,Klb,!0),"@"),a.push(g.Ze(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,c!=null&&a.push(":",String(c));if(c=this.B)this.j&&c.charAt(0)!="/"&&a.push("/"),a.push(rq(c,c.charAt(0)=="/"?Llb:Mlb,!0));(c=this.C.toString())&&a.push("?",c);(c=this.K)&&a.push("#",rq(c,Nlb));return a.join("")};
g.kq.prototype.resolve=function(a){var b=this.clone(),c=!!a.G;c?g.lq(b,a.G):c=!!a.Z;c?b.Z=a.Z:c=!!a.j;c?g.mq(b,a.j):c=a.D!=null;var d=a.B;if(c)g.nq(b,a.D);else if(c=!!a.B){if(d.charAt(0)!="/")if(this.j&&!this.B)d="/"+d;else{var e=b.B.lastIndexOf("/");e!=-1&&(d=b.B.slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(g.hc(e,"./")||g.hc(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==".."?((f.length>1||f.length==1&&f[0]!="")&&f.pop(),
d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.B=d:c=a.C.toString()!=="";c?oq(b,a.C.clone()):c=!!a.K;c&&(b.K=a.K);return b};
g.kq.prototype.clone=function(){return new g.kq(this)};
var Klb=/[#\/\?@]/g,Mlb=/[#\?:]/g,Llb=/[#\?]/g,Hga=/[#\?@]/g,Nlb=/#/g;g.k=qq.prototype;g.k.add=function(a,b){uq(this);this.C=null;a=vq(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){uq(this);a=vq(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(){uq(this);return this.B==0};
g.k.forEach=function(a,b){uq(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.Yn=function(){uq(this);for(var a=Array.from(this.j.values()),b=Array.from(this.j.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.k.Lm=function(a){uq(this);var b=[];if(typeof a==="string")Jga(this,a)&&(b=b.concat(this.j.get(vq(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){uq(this);this.C=null;a=vq(this,a);Jga(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.Lm(a);return a.length>0?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.Ze(d);d=this.Lm(d);for(var f=0;f<d.length;f++){var h=e;d[f]!==""&&(h+="="+g.Ze(d[f]));a.push(h)}}return this.C=a.join("&")};
g.k.clone=function(){var a=new qq;a.C=this.C;this.j&&(a.j=new Map(this.j),a.B=this.B);return a};g.lb(g.xq,g.I);var Olb=[];g.k=g.xq.prototype;g.k.listen=function(a,b,c,d){Array.isArray(b)||(b&&(Olb[0]=b.toString()),b=Olb);for(var e=0;e<b.length;e++){var f=g.vd(a,b[e],c||this.handleEvent,d||!1,this.B||this);if(!f)break;this.j[f.key]=f}return this};
g.k.VF=function(a,b,c,d){return Mga(this,a,b,c,d)};
g.k.Oc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Oc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.db(d)?!!d.capture:!!d,e=e||this.B||this,c=wd(c),d=!!d,b=Qc(a)?a.eF(b,c,d,e):a?(a=xd(a))?a.eF(b,c,d,e):null:null,b&&(Bd(b),delete this.j[b.key])};
g.k.removeAll=function(){g.Tc(this.j,function(a,b){this.j.hasOwnProperty(b)&&Bd(a)},this);
this.j={}};
g.k.ya=function(){g.xq.Rf.ya.call(this);this.removeAll()};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Nga.prototype.isInputValid=function(){return this.C};yq.prototype.isInputValid=function(){return this.j!=3};
yq.prototype.uf=function(){return this.K};
yq.prototype.zI=function(){return!0};
yq.prototype.parse=function(a){function b(m){m&128&&zq(f,h,l,"invalid tag");(m&7)!=2&&zq(f,h,l,"invalid wire type");f.C=m>>>3;f.C!=1&&f.C!=2&&f.C!=15&&zq(f,h,l,"unexpected tag");f.j=1;f.B=0;f.D=0}
function c(m){f.D++;f.D==5&&m&240&&zq(f,h,l,"message length too long");f.B|=(m&127)<<(f.D-1)*7;m&128||(f.j=2,f.Z=0,typeof Uint8Array!=="undefined"?f.G=new Uint8Array(f.B):f.G=Array(f.B),f.B==0&&e())}
function d(m){f.G[f.Z++]=m;f.Z==f.B&&e()}
function e(){if(f.C<15){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:zq(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 a.length>0?a:null};Aq.prototype.isInputValid=function(){return this.j===null};
Aq.prototype.uf=function(){return this.j};
Aq.prototype.zI=function(){return!1};
Aq.prototype.parse=function(a){this.j!==null&&Pga(this,a,"stream already broken");var b=null;try{var c=this.C;c.C||Oga(c,a,"stream already broken");c.j+=a;var d=Math.floor(c.j.length/4);if(d==0)var e=null;else{try{var f=Wca(c.j.slice(0,d*4))}catch(h){Oga(c,c.j,h.message)}c.B+=d*4;c.j=c.j.slice(d*4);e=f}b=e===null?null:this.D.parse(e)}catch(h){Pga(this,a,h.message)}this.B+=a.length;return b};var Plb={INIT:0,TD:1,JN:2,pz:3,UC:4,TC:5,STRING:6,FN:7,ZV:8,mW:9,nW:10,oW:11,CU:12,DU:13,EU:14,FU:15,dW:16,eW:17,fW:18,P6:19,HN:20};g.k=Cq.prototype;g.k.isInputValid=function(){return this.G!=3};
g.k.uf=function(){return this.Y};
g.k.done=function(){return this.G===2};
g.k.zI=function(){return!1};
g.k.parse=function(a){function b(){for(;r<a.length;)if(Bq(a[r]))r++,f.C++;else break;return r<n}
function c(){for(var u;;){u=a[r++];if(!u)break;f.C++;switch(f.j){case m.INIT:u==="{"?f.j=m.JN:u==="["?f.j=m.UC:Bq(u)||Dq(f,a,r);continue;case m.FN:case m.JN:if(Bq(u))continue;if(f.j===m.FN)h.push(m.ZV);else if(u==="}"){e("{}");f.j=d();continue}else h.push(m.pz);u==='"'?f.j=m.STRING:Dq(f,a,r);continue;case m.ZV:case m.pz:if(Bq(u))continue;u===":"?(f.j===m.pz&&(h.push(m.pz),f.B++),f.j=m.TD):u==="}"?(f.B--,e(),f.j=d()):u===","?(f.j===m.pz&&h.push(m.pz),f.j=m.FN):Dq(f,a,r);continue;case m.UC:case m.TD:if(Bq(u))continue;
if(f.j===m.UC)if(f.B++,f.j=m.TD,u==="]"){f.B--;if(f.B===0){f.j=m.TC;return}e("[]");f.j=d();continue}else h.push(m.TC);u==='"'?f.j=m.STRING:u==="{"?f.j=m.JN:u==="["?f.j=m.UC:u==="t"?f.j=m.mW:u==="f"?f.j=m.CU:u==="n"?f.j=m.dW:u!=="-"&&("0123456789".indexOf(u)!==-1?f.j=m.HN:Dq(f,a,r));continue;case m.TC:if(u===",")h.push(m.TC),f.j=m.TD,f.B===1&&(q=r);else if(u==="]"){f.B--;if(f.B===0)return;e();f.j=d()}else if(Bq(u))continue;else Dq(f,a,r);continue;case m.STRING:var w=r;a:for(;;){for(;f.Z>0;)if(u=a[r++],
f.Z===4?f.Z=0:f.Z++,!u)break a;if(u==='"'&&!f.N){f.j=d();break}if(u==="\\"&&!f.N&&(f.N=!0,u=a[r++],!u))break;if(f.N)if(f.N=!1,u==="u"&&(f.Z=1),u=a[r++])continue;else break;l.lastIndex=r;u=l.exec(a);if(!u){r=a.length+1;break}r=u.index+1;u=a[u.index];if(!u)break}f.C+=r-w;continue;case m.mW:if(!u)continue;u==="r"?f.j=m.nW:Dq(f,a,r);continue;case m.nW:if(!u)continue;u==="u"?f.j=m.oW:Dq(f,a,r);continue;case m.oW:if(!u)continue;u==="e"?f.j=d():Dq(f,a,r);continue;case m.CU:if(!u)continue;u==="a"?f.j=m.DU:
Dq(f,a,r);continue;case m.DU:if(!u)continue;u==="l"?f.j=m.EU:Dq(f,a,r);continue;case m.EU:if(!u)continue;u==="s"?f.j=m.FU:Dq(f,a,r);continue;case m.FU:if(!u)continue;u==="e"?f.j=d():Dq(f,a,r);continue;case m.dW:if(!u)continue;u==="u"?f.j=m.eW:Dq(f,a,r);continue;case m.eW:if(!u)continue;u==="l"?f.j=m.fW:Dq(f,a,r);continue;case m.fW:if(!u)continue;u==="l"?f.j=d():Dq(f,a,r);continue;case m.P6:u==="."?f.j=m.HN:Dq(f,a,r);continue;case m.HN:if("0123456789.eE+-".indexOf(u)!==-1)continue;else r--,f.C--,f.j=
d();continue;default:Dq(f,a,r)}}}
function d(){var u=h.pop();return u!=null?u:m.TD}
function e(u){f.B>1||(u||(u=q===-1?f.D+a.substring(p,r):a.substring(q,r)),f.ra?f.K.push(u):f.K.push(JSON.parse(u)),q=r)}
for(var f=this,h=f.va,l=f.Da,m=Plb,n=a.length,p=0,q=-1,r=0;r<n;)switch(f.G){case 3:return Dq(f,a,r),null;case 2:return b()&&Dq(f,a,r),null;case 0:if(b()){var t=a[r++];f.C++;if(t==="["){f.G=1;p=r;f.j=m.UC;continue}else Dq(f,a,r)}return null;case 1:return c(),f.B===0&&f.j==m.TC?(f.G=2,f.D=a.substring(r)):f.D=q===-1?f.D+a.substring(p):a.substring(q),f.K.length>0?(t=f.K,f.K=[],t):null}return null};Eq.prototype.isInputValid=function(){return this.G===null};
Eq.prototype.uf=function(){return this.G};
Eq.prototype.zI=function(){return!1};
Eq.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 Cq({Apb:!0,k8:!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||m.length>1)&&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=f.B!==2){a:{for(;h<a.length;){if(!Bq(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]===","||a.slice(h,h+5)=="null,"?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]===","||a.slice(h,h+5)=="null,"?(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 f.D.length>0?(a=f.D,f.D=[],a):null};Fq.prototype.bQ=function(){return this.j};
Fq.prototype.getStatus=function(){return this.D};
Fq.prototype.ra=function(a){a=a.target;try{if(a==this.j)a:{var b=g.Ao(this.j),c=this.j.B,d=this.j.getStatus(),e=g.Co(this.j);a=[];if(g.Do(this.j)instanceof Array){var f=g.Do(this.j);f.length>0&&f[0]instanceof Uint8Array&&(this.Y=!0,a=f)}if(!(b<3||b==3&&!e&&a.length==0))if(d=d==200||d==206,b==4&&(c==8?Gq(this,7):c==7?Gq(this,8):d||Gq(this,3)),this.B||(this.B=Qga(this.j),this.B==null&&Gq(this,5)),this.D>2)Hq(this);else{if(a.length>this.C){var h=a.length;c=[];try{if(this.B.zI())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(typeof TextDecoder==="undefined")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:b==4&&l==h-1});c=this.B.parse(m)}a.splice(0,h);c&&this.G(c)}catch(p){Gq(this,5);Hq(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);n!=null&&this.G&&this.G(n)}catch(p){Gq(this,5);Hq(this);break a}}b==4?(e.length!=
0||this.Y?Gq(this,2):Gq(this,4),Hq(this)):Gq(this,1)}}}catch(p){Gq(this,6),Hq(this)}};g.k=Rga.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.Gb(c,b);(a=this.j[a])&&g.Gb(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.Qaa=function(a){var b=this.B.data;b&&Sga(a,b);(b=this.j.data)&&Sga(a,b);this.j.data=[]};
g.k.Eca=function(){switch(this.C.getStatus()){case 1:Iq(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Iq(this,"error");break;case 8:Iq(this,"close");break;case 2:Iq(this,"end")}};Tga.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Uga(function(h){var l=h.PJ(),m=h.getMetadata(),n=Xga(e,!1);m=Yga(e,m,n,f+l.getName());var p=Zga(n,l.B,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.D).call(this,zga(d,b,c))};Kq.prototype.create=function(a,b){return Jq(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},Hlb)};
Kq.prototype.ping=function(a,b){return Jq(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},Jlb)};var Qlb=1,Sq=new WeakMap;g.x(Lq,g.I);Lq.prototype.signal=function(){var a=new Nq(!1);this.signals.add(a);g.M(this,a);return a};
Lq.prototype.aB=function(a){return Mq(this,a).aB()};
g.x(Nq,g.I);g.k=Nq.prototype;g.k.hO=function(){var a=this,b=Qlb++;Oq(function(){aha(a,b)});
return b};
g.k.detach=function(a){var b=this;Oq(function(){var c=b.slots.get(a);c&&c.CX()})};
g.k.value=function(a){return this.promise(!0,a)};
g.k.aB=function(){return this.OZ};
g.k.next=function(a){return this.promise(!1,a)};
g.k.promise=function(a,b){var c=this,d=lca();Oq(function(){if(c.Na())d.reject(new lg("Signal initially disposed"));else if(b&&b.Na())d.reject(new lg("Owner initially disposed"));else if(a&&c.cX&&c.WY)d.resolve(c.OZ);else if(c.iC.add(d),kg(d.promise,function(){c.iC.delete(d)}),b){var e=function(){d.reject(new lg("Owner asynchronously disposed"))};
kg(d.promise,function(){var f=Sq.get(b);f&&g.Gb(f,e)});
dha(b,e)}});
return d.promise};
g.k.ya=function(){var a=this;g.I.prototype.ya.call(this);Oq(function(){for(var b=g.v(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.CX,c();a.slots.clear();b=g.v(a.iC);for(c=b.next();!c.done;c=b.next())c.value.reject(new lg("Signal asynchronously disposed"));a.iC.clear()})};
var Qq=[],Rq=!1;g.x(Tq,g.I);Tq.prototype.start=function(){var a=this;if(this.Na())throw new Vq("Cannot start a disposed timer.");if(!this.K){this.D=0;if(this.N){var b=Date.now();this.handle=setInterval(function(){a.D=a.milliseconds>0?Math.trunc((Date.now()-b)/a.milliseconds):a.D+1;var c;(c=a.B)==null||c.resolve();a.B=void 0;if(a.C){var d;(d=a.j)!=null&&Pq(Mq(d,a.C),a)}a.Eb.hS(a)},this.milliseconds)}else this.handle=setTimeout(function(){a.state=3;
a.handle=void 0;a.D=1;var c;(c=a.B)==null||c.resolve();a.B=void 0;if(a.C){var d;(d=a.j)!=null&&Pq(Mq(d,a.C),a)}a.Eb.hS(a)},this.milliseconds);
this.state=1}};
Tq.prototype.cancel=function(){if(this.K){this.clear();this.state=2;var a;(a=this.B)==null||a.reject(new Uq);var b;(b=this.Eb.O_)==null||b.call(this);if(this.G){var c;(c=this.j)!=null&&Pq(Mq(c,this.G))}}};
Tq.prototype.ya=function(){this.clear();var a;(a=this.B)==null||a.reject(new Vq);this.state=4;g.I.prototype.ya.call(this)};
Tq.prototype.clear=function(){this.N?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0};
g.ea.Object.defineProperties(Tq.prototype,{K:{configurable:!0,enumerable:!0,get:function(){return this.state===1}},
isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}},
isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}},
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 this.B!=null||(this.B=new g.No),this.B.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new Uq("Timer has been cancelled."));case 4:return Promise.reject(new Vq("Timer has been disposed."));default:Pe(this.state)}}},
hS:{configurable:!0,enumerable:!0,get:function(){if(this.Na())throw new Vq("Cannot attach a signal to a disposed timer.");this.C||(this.j!=null||(this.j=new Lq(this)),this.C=this.j.signal());return this.C}},
O_:{configurable:!0,enumerable:!0,get:function(){if(this.Na())throw new Vq("Cannot attach a signal to a disposed timer.");this.G||(this.j!=null||(this.j=new Lq(this)),this.G=this.j.signal());return this.G}}});
g.x(Uq,wb);g.x(Vq,wb);g.x(Wq,gp);g.k=Wq.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.ME=function(a){return gha(this,this.logger.dR("c",a===void 0?1:a,this.hA.ME(Ro().j,null)),new Po(10,"JVZ:Timeout"))};
g.k.prefetch=function(){this.state===1&&(this.B=this.ME())};
g.k.start=function(){if(this.state===1){this.state=2;var a=new Ho(this.logger,"r");this.ready().finally(function(){return void a.done()});
iha(this)}};
g.k.dG=function(a){if(a.dk&&!this.cache){var b=Math.min(a.dk.k_,150);if(!(b>150))try{this.cache=new qga(b,this.logger)}catch(f){this.reportError(new Po(22,"GBJ:init",f))}}b={Ar:a.Ar,tJ:a.tJ,aaa:!0,baa:!0};a.dk&&(a=a.dk,b.dk={lE:a.lE,HI:a.HI,vM:a.vM});a:{try{if(this.Na())throw new Po(21,"BNT:disposed");var c,d;var e=(d=(c=vga(this,b))!=null?c:wga(this,b))!=null?d:xga(this,b);break a}catch(f){if(!b.baa)throw f;e=yga(this,f);break a}e=void 0}return e};var mha={NONE:0,nza:1},Tha={l4:0,U6a:1,T6a:2,V6a:3},is={Q3:"a",Lya:"d",VIDEO:"v"};Yq.prototype.isVisible=function(){return this.yx?this.De>=.3:this.De>=.5};var Kr={mwa:0,PFa:1},Rha={NONE:0,fLa:1,nIa:2};Br.prototype.getValue=function(){return this.B};
g.x(Cr,Br);Cr.prototype.C=function(a){this.B===null&&g.ed(this.D,a)&&(this.B=a)};
g.x(Dr,Br);Dr.prototype.C=function(a){this.B===null&&typeof a==="number"&&(this.B=a)};
g.x(Er,Br);Er.prototype.C=function(a){this.B===null&&typeof a==="string"&&(this.B=a)};Fr.prototype.disable=function(){this.B=!1};
Fr.prototype.enable=function(){this.B=!0};
Fr.prototype.isEnabled=function(){return this.B};
Fr.prototype.reset=function(){this.j={};this.B=!0;this.C={}};var $s=document,Or=window;var Via=!g.Ks&&!Dc();Lr.prototype.now=function(){return 0};
Lr.prototype.B=function(){return 0};
Lr.prototype.C=function(){return 0};
Lr.prototype.j=function(){return 0};g.x(Nr,Lr);Nr.prototype.now=function(){return Mr()&&Or.performance.now?Or.performance.now():Lr.prototype.now.call(this)};
Nr.prototype.B=function(){return Mr()&&Or.performance.memory?Or.performance.memory.totalJSHeapSize||0:Lr.prototype.B.call(this)};
Nr.prototype.C=function(){return Mr()&&Or.performance.memory?Or.performance.memory.usedJSHeapSize||0:Lr.prototype.C.call(this)};
Nr.prototype.j=function(){return Mr()&&Or.performance.memory?Or.performance.memory.jsHeapSizeLimit||0:Lr.prototype.j.call(this)};var pha=Kd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.Ua.addEventListener("test",null,b)}catch(c){}return a});qha.prototype.isVisible=function(){return Rr($s)===1};Sd("csi.gstatic.com");Sd("googleads.g.doubleclick.net");Sd("partner.googleadservices.com");Sd("pubads.g.doubleclick.net");Sd("securepubads.g.doubleclick.net");Sd("tpc.googlesyndication.com");var sha={Xla:"allow-forms",Yla:"allow-modals",Zla:"allow-orientation-lock",ama:"allow-pointer-lock",bma:"allow-popups",cma:"allow-popups-to-escape-sandbox",dma:"allow-presentation",ema:"allow-same-origin",fma:"allow-scripts",gma:"allow-top-navigation",hma:"allow-top-navigation-by-user-activation"},wha=Kd(function(){return tha()});var Aha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Wr.prototype.Ge=function(a,b,c){a=a+"//"+b+c;var d=Eha(this)-c.length;if(d<0)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=c==null?f:c;break}var m=Dha(h[l],this.C,",$");if(m){m=b+m;if(d>=m.length){d-=m.length;a+=m;b=this.C;break}c=c==null?f:c}}d="";c!=null&&(d=b+"trn="+c);return a+d};ds.prototype.setInterval=function(a,b){return Or.setInterval(a,b)};
ds.prototype.clearInterval=function(a){Or.clearInterval(a)};
ds.prototype.setTimeout=function(a,b){return Or.setTimeout(a,b)};
ds.prototype.clearTimeout=function(a){Or.clearTimeout(a)};g.x(fs,U);fs.prototype.j=hfa([0,flb,ilb,-2,llb]);var Sha={c4a:1,f7:2,FXa:3};Uha.prototype.FS=function(a){if(typeof a==="string"&&a.length!=0){var b=this.Lc;if(b.B){a=a.split("&");for(var c=a.length-1;c>=0;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);d.length>1?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.C(d)}}}};var l2=null;var ls=g.Ua.performance,Rlb=!!(ls&&ls.mark&&ls.measure&&ls.clearMarks),js=Kd(function(){var a;if(a=Rlb){var b;if(l2===null){l2="";try{a="";try{a=g.Ua.top.location.hash}catch(c){a=g.Ua.location.hash}a&&(l2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=l2;a=!!b.indexOf&&b.indexOf("1337")>=0}return a});
ks.prototype.disable=function(){this.j=!1;this.events!=this.B.google_js_reporting_queue&&(js()&&g.Zb(this.events,$ha),this.events.length=0)};
ks.prototype.start=function(a,b){if(!this.j)return null;var c=Yha()||Xha();a=new Zha(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";ls&&js()&&ls.mark(b);return a};
ks.prototype.end=function(a){if(this.j&&typeof a.value==="number"){var b=Yha()||Xha();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";ls&&js()&&ls.mark(b);!this.j||this.events.length>2048||this.events.push(a)}};aia.prototype.gR=function(a,b,c,d,e){e=e||this.PX;try{var f=new Wr;f.j.push(1);f.B[1]=Xr("context",a);b.error&&b.meta&&b.id||(b=new ps(qs(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.B[2]=Xr("msg",h)}var l=b.meta||{};if(this.cO)try{this.cO(l)}catch(t){}if(d)try{d(l)}catch(t){}b=[l];f.j.push(3);f.B[3]=b;var m=Cha();if(m.B){var n=m.B.url||"";f.j.push(4);f.B[4]=Xr("top",n)}var p={url:m.j.url||""};if(m.j.url){var q=m.j.url.match(wn);var r=un(q[1],null,q[3],q[4])}else r="";n=[p,{url:r}];f.j.push(5);
f.B[5]=n;Vha(this.j,e,f,c)}catch(t){try{Vha(this.j,e,{context:"ecmserr",rctx:a,msg:qs(t),url:m&&m.j.url},c)}catch(u){}}return this.IT};
g.x(ps,Wha);var ns,os,ms=new ks;ns=new function(){var a="https:";Or&&Or.location&&Or.location.protocol==="http:"&&(a="http:");this.B=a;this.j=.01};
os=new aia;Or&&Or.document&&(Or.document.readyState=="complete"?cia():ms.j&&Qr(Or,"load",function(){cia()}));var fia=Date.now(),ys=-1,ws=-1,wja,zs=-1,xs=!1;g.k=As.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new As(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof As?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=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};Ds.prototype.Jb=function(){return this.N};var Slb={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},cu={Y6:"start",u4:"firstquartile",L6:"midpoint",Z6:"thirdquartile",COMPLETE:"complete",ERROR:"error",K6:"metric",PAUSE:"pause",T6:"resume",U6:"skip",e7:"viewable_impression",O6:"mute",d7:"unmute",v4:"fullscreen",s4:"exitfullscreen",Y3:"bufferstart",X3:"bufferfinish",w4:"fully_viewable_audible_half_duration_impression",J6:"measurable_impression",N3:"abandon",r4:"engagedview",C4:"impression",f4:"creativeview",I6:"loaded",
H5a:"progress",CLOSE:"close",Fva:"collapse",Y1a:"overlay_resize",Z1a:"overlay_unmeasurable_impression",a2a:"overlay_unviewable_impression",c2a:"overlay_viewable_immediate_impression",b2a:"overlay_viewable_end_of_session_impression",i4:"custom_metric_viewable",R3:"audio_audible",T3:"audio_measurable",S3:"audio_impression"},Hka="start firstquartile midpoint thirdquartile resume loaded".split(" "),Ika=["start","firstquartile","midpoint","thirdquartile"],yja=["abandon"],xu={UNKNOWN:-1,Y6:0,u4:1,L6:2,
Z6:3,COMPLETE:4,K6:5,PAUSE:6,T6:7,U6:8,e7:9,O6:10,d7:11,v4:12,s4:13,w4:14,J6:15,N3:16,r4:17,C4:18,f4:19,I6:20,i4:21,Y3:22,X3:23,S3:27,T3:28,R3:29};var iia={Tga:"addEventListener",pIa:"getMaxSize",qIa:"getScreenSize",rIa:"getState",sIa:"getVersion",N6a:"removeEventListener",jMa:"isViewable"};g.k=g.Fs.prototype;g.k.clone=function(){return new g.Fs(this.left,this.top,this.width,this.height)};
g.k.contains=function(a){return a instanceof g.Ge?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.Me(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=typeof b==="number"?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var mia={};via.prototype.update=function(a){a&&a.document&&(this.N=Es(!1,a,this.isMobileDevice),this.j=Es(!0,a,this.isMobileDevice),xia(this,a),wia(this,a))};it.prototype.cancel=function(){es().clearTimeout(this.j);this.j=null};
it.prototype.schedule=function(){var a=this,b=es(),c=hs().j.j;this.j=b.setTimeout(gs(c,ts(143,function(){a.B++;a.C.sample()})),gia())};g.k=jt.prototype;g.k.xD=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.nA=function(){return this.j.Ga};
g.k.rF=function(){return this.j.ra};
g.k.yj=function(a,b){if(!this.ra||(b===void 0?0:b))this.ra=!0,this.Ga=a,this.Z=0,this.j!=this||lt(this)};
g.k.getName=function(){return this.j.Sa};
g.k.Wt=function(){return this.j.nY()};
g.k.nY=function(){return{}};
g.k.Qr=function(){return this.j.Z};
g.k.zV=function(){var a=Zs();a.j=Es(!0,this.C,a.isMobileDevice)};
g.k.AV=function(){wia(Zs(),this.C)};
g.k.CY=function(){return this.D.j};
g.k.sample=function(){};
g.k.isActive=function(){return this.j.K};
g.k.AA=function(a){var b=this.j;this.j=a.Qr()>=this.Z?a:this;b!==this.j?(this.K=this.j.K,lt(this)):this.K!==this.j.K&&(this.K=this.j.K,lt(this))};
g.k.nu=function(a){if(a.B===this.j){var b=this.D,c=this.Y;if(c=a&&(c===void 0||!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&&Aia(this)}};
g.k.Gq=function(){return this.Y};
g.k.dispose=function(){this.Ha=!0};
g.k.Na=function(){return this.Ha};g.k=mt.prototype;g.k.qN=function(){return!0};
g.k.rI=function(){};
g.k.dispose=function(){if(!this.Na()){var a=this.B;g.Gb(a.G,this);a.Y&&this.Gq()&&zia(a);this.rI();this.ra=!0}};
g.k.Na=function(){return this.ra};
g.k.Wt=function(){return this.B.Wt()};
g.k.Qr=function(){return this.B.Qr()};
g.k.nA=function(){return this.B.nA()};
g.k.rF=function(){return this.B.rF()};
g.k.AA=function(){};
g.k.nu=function(){this.Et()};
g.k.Gq=function(){return this.va};g.k=nt.prototype;g.k.Qr=function(){return this.j.Qr()};
g.k.nA=function(){return this.j.nA()};
g.k.rF=function(){return this.j.rF()};
g.k.create=function(a,b,c){var d=null;this.j&&(d=this.sI(a,b,c),kt(this.j,d));return d};
g.k.BV=function(){return this.yD()};
g.k.yD=function(){return!1};
g.k.init=function(a){return this.j.initialize()?(kt(this.j,this),this.D=a,!0):!1};
g.k.AA=function(a){a.Qr()==0&&this.D(a.nA(),this)};
g.k.nu=function(){};
g.k.Gq=function(){return!1};
g.k.dispose=function(){this.G=!0};
g.k.Na=function(){return this.G};
g.k.Wt=function(){return{}};ot.prototype.add=function(a,b,c){++this.C;a=new Bia(a,b,c);this.j.push(new Bia(a.B,a.j,a.C+this.C/4096));this.B=!0;return this};Gia.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=qt(this.j);b.length>0&&(a+="?"+b);return a};rt.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(c===void 0?!a:c)this.D=0};var Lia=[1,.75,.5,.3,0];tt.prototype.update=function(a,b,c,d,e,f){f=f===void 0?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.B.length;e++){var h=this.B[e],l=b>0&&b>=h;h=!(a>0&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};At.prototype.update=function(a,b,c,d){this.N=this.N!=-1?Math.min(this.N,b.De):b.De;this.va=Math.max(this.va,b.De);this.Da=this.Da!=-1?Math.min(this.Da,b.Ok):b.Ok;this.Ga=Math.max(this.Ga,b.Ok);this.Ya.update(b.Ok,c.Ok,b.j,a,d);this.B.update(b.De,c.De,b.j,a,d);c=d||c.yx!=b.yx?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Sa.update(c,a,b)};
At.prototype.us=function(){return this.Sa.C>=this.eb};if($s&&$s.URL){var Tlb=$s.URL,Ulb;if(Ulb=!!Tlb){var Vlb;a:{if(Tlb){var Wlb=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var m2=Wlb.exec(decodeURIComponent(Tlb));if(m2){Vlb=m2[1]&&m2[1].length>1?m2[1].substring(1):"true";break a}}catch(a){}}Vlb=""}Ulb=Vlb.length>0}os.IT=!Ulb};var Xlb=new As(0,0,0,0);var Tia=new As(0,0,0,0);g.x(Ft,g.I);g.k=Ft.prototype;
g.k.ya=function(){if(this.hk.j){if(this.Mw.rR){var a=this.hk.j;a.removeEventListener&&a.removeEventListener("mouseover",this.Mw.rR,Pr());this.Mw.rR=null}this.Mw.qR&&(a=this.hk.j,a.removeEventListener&&a.removeEventListener("mouseout",this.Mw.qR,Pr()),this.Mw.qR=null)}this.HH&&this.HH.dispose();this.cg&&this.cg.dispose();delete this.PK;delete this.hR;delete this.g3;delete this.hk.Mu;delete this.hk.j;delete this.Mw;delete this.HH;delete this.cg;delete this.Lc;g.I.prototype.ya.call(this)};
g.k.au=function(){return this.cg?this.cg.j:this.position};
g.k.FS=function(a){hs().FS(a)};
g.k.Gq=function(){return!1};
g.k.SJ=function(){return new At};
g.k.Aj=function(){return this.PK};
g.k.rY=function(a){return Xia(this,a,1E4)};
g.k.Ua=function(a,b,c,d,e,f,h){this.wu||(this.DE&&(a=this.pO(a,c,e,h),d=d&&this.ri.De>=(this.yx()?.3:.5),this.oU(f,a,d),this.kq=b,a.De>0&&-1===this.H2&&(this.H2=b),this.M2==-1&&this.us()&&(this.M2=b),this.bR==-2&&(this.bR=Dt(this.au())?a.De:-1),this.ri=a),this.hR(this))};
g.k.oU=function(a,b,c){this.Aj().update(a,b,this.ri,c)};
g.k.PP=function(){return new Yq};
g.k.pO=function(a,b,c,d){c=this.PP();c.j=b;b=es().B;b=Rr($s)===0?-1:b.isVisible()?0:1;c.B=b;c.De=this.KO(a);c.yx=this.yx();c.Ok=d;return c};
g.k.KO=function(a){return this.opacity===0&&Ir(this.Lc,"opac")===1?0:a};
g.k.yx=function(){return!1};
g.k.qM=function(){return this.r$||this.u$};
g.k.Px=function(){vs()};
g.k.vB=function(){vs()};
g.k.Vp=function(){return 0};
g.k.us=function(){return this.PK.us()};
g.k.FY=function(){var a=this.DE;a=(this.hasCompleted||this.Na())&&!a;var b=hs().B!==2||this.Yea;return this.wu||b&&a?2:this.us()?4:3};
g.k.GJ=function(){return 0};g.Ht.prototype.next=function(){return g.n2};
g.n2={done:!0,value:void 0};g.Ht.prototype.tm=function(){return this};g.x(cja,Yq);var o2=eja([void 0,1,2,3,4,8,16]),p2=eja([void 0,4,8,16]),Ylb={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Lt("p0",p2),p1:Lt("p1",p2),p2:Lt("p2",p2),p3:Lt("p3",p2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Kt("mtos1",[0,2,4],!1,p2),mtos2:Kt("mtos2",[0,2,4],!1,p2),mtos3:Kt("mtos3",[0,2,4],!1,p2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Lt("a0",p2),a1:Lt("a1",p2),a2:Lt("a2",p2),a3:Lt("a3",p2),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:Lt("c0",p2),c1:Lt("c1",p2),c2:Lt("c2",p2),c3:Lt("c3",p2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Lt("qmtos",o2),qnc:Lt("qnc",o2),qmv:Lt("qmv",o2),qnv:Lt("qnv",o2),
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:Lt("ss0",p2),ss1:Lt("ss1",p2),ss2:Lt("ss2",p2),ss3:Lt("ss3",p2),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"},Zlb=Object.assign({},Ylb,{avid:Id("audio"),avas:"avas",vs:"vs"}),$lb={atos:"atos",avt:Kt("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return c[a]===void 0&&b!==void 0?b:c[a]}}("ss",0),
t:"t"};Pt.prototype.getValue=function(){return this.B};
Pt.prototype.update=function(a,b){a>=32||(this.j&1<<a&&!b?this.B&=~(1<<a):this.j&1<<a||!b||(this.B|=1<<a),this.j|=1<<a)};g.x(Qt,At);
Qt.prototype.update=function(a,b,c,d){if(!b.paused){At.prototype.update.call(this,a,b,c,d);var e=Jt(b)&&Jt(c),f=(d?Math.min(b.De,c.De):c.De)>=.5;Xs(b.volume)&&(this.D=this.D!=-1?Math.min(this.D,b.volume):b.volume,this.K=Math.max(this.K,b.volume));f&&(this.Ha+=a,this.Y+=e?a:0);this.j.update(b.De,c.De,b.j,a,d,e);this.C.update(!0,a);this.G.update(e,a);this.ra.update(c.fullscreen,a);this.ib.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.La.update(a,b.isVisible());this.Xa.update(a,b.De>=1);this.Wa.update(a,
Jt(b))}};kja.prototype.B=function(a){this.C||(this.j(a)?(a=vka(this.Y,this.D,a),this.G|=a,a=a==0):a=!1,this.C=a)};g.x(St,kja);St.prototype.j=function(){return!0};
St.prototype.K=function(){return!1};
St.prototype.getId=function(){var a=this,b=fd(cu,function(c){return c==a.D});
return xu[b].toString()};
St.prototype.toString=function(){var a="";this.K()&&(a+="c");this.C&&(a+="s");this.G>0&&(a+=":"+this.G);return this.getId()+a};g.x(Tt,St);Tt.prototype.B=function(a,b){b=b===void 0?null:b;b!=null&&this.N.push(b);St.prototype.B.call(this,a)};g.x(Ut,lja);Ut.prototype.B=function(){return null};
Ut.prototype.C=function(){return[]};g.x(Vt,mt);g.k=Vt.prototype;g.k.sO=function(){if(this.element){var a=this.element,b=this.B.j.C;try{try{var c=sia(a.getBoundingClientRect())}catch(n){c=new As(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=pia(a,b),h=f.x,l=f.y;var m=new As(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=Xlb.clone()}this.j=m}};
g.k.dX=function(){this.D=this.B.D.j};
g.k.zZ=function(a){var b=Ir(this.Lc,"od")==1;return Sia(a,this.D,this.element,b)};
g.k.eX=function(){this.timestamp=vs()};
g.k.Et=function(){this.eX();this.sO();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var a=this.element;var b=new g.Me(a.videoWidth,a.videoHeight);a=this.j;var c=Bs(a),d=a.getHeight(),e=b.width;b=b.height;e<=0||b<=0||c<=0||d<=0||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,d>0&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),c>0&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.j=a}this.dX();
a=this.j;c=this.D;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new As(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 As(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new As(0,0,0,0):a;a=this.B.D;b=e=d=0;(this.j.bottom-this.j.top)*(this.j.right-this.j.left)>0&&(this.zZ(c)?c=new As(0,0,0,0):(d=Zs().D,b=new As(0,d.height,d.width,0),d=Et(c,this.j),e=Et(c,Zs().j),b=Et(c,b)));c=c.top>=c.bottom||c.left>=c.right?new As(0,0,0,
0):Cs(c,-this.j.left,-this.j.top);at()||(e=d=0);this.N=new Ds(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.B.getName()};var amb=new As(0,0,0,0);g.x(Wt,Vt);g.k=Wt.prototype;g.k.qN=function(){this.C();return!0};
g.k.nu=function(){Vt.prototype.Et.call(this)};
g.k.eX=function(){};
g.k.sO=function(){};
g.k.Et=function(){this.C();Vt.prototype.Et.call(this)};
g.k.AA=function(a){a=a.isActive();a!==this.K&&(a?this.C():(Zs().j=new As(0,0,0,0),this.j=new As(0,0,0,0),this.D=new As(0,0,0,0),this.timestamp=-1));this.K=a};var q2={},vja=(q2.firstquartile=0,q2.midpoint=1,q2.thirdquartile=2,q2.complete=3,q2);g.x(Yt,Ft);g.k=Yt.prototype;g.k.Gq=function(){return!0};
g.k.Eo=function(){return this.Ck==2};
g.k.rY=function(a){return Xia(this,a,Math.max(1E4,this.C/3))};
g.k.Ua=function(a,b,c,d,e,f,h){var l=this,m=this.N(this)||{};g.md(m,e);this.C=m.duration||this.C;this.Y=m.isVpaid||this.Y;this.Sa=m.isYouTube||this.Sa;es();this.rb=!1;e=nja(this,b);mja(this)===1&&(f=e);Ft.prototype.Ua.call(this,a,b,c,d,m,f,h);this.xs&&this.xs.C&&g.Zb(this.K,function(n){n.B(l)})};
g.k.oU=function(a,b,c){Ft.prototype.oU.call(this,a,b,c);au(this).update(a,b,this.ri,c);this.ib=Jt(this.ri)&&Jt(b);this.Ga==-1&&this.Ya&&(this.Ga=this.Aj().C.j);this.Pg.C=0;a=this.us();b.isVisible()&&Ot(this.Pg,"vs");a&&Ot(this.Pg,"vw");Xs(b.volume)&&Ot(this.Pg,"am");Jt(b)?Ot(this.Pg,"a"):Ot(this.Pg,"mut");this.MA&&Ot(this.Pg,"f");b.B!=-1&&(Ot(this.Pg,"bm"),b.B==1&&(Ot(this.Pg,"b"),Jt(b)&&Ot(this.Pg,"umutb")));Jt(b)&&b.isVisible()&&Ot(this.Pg,"avs");this.ib&&a&&Ot(this.Pg,"avw");b.De>0&&Ot(this.Pg,
"pv");bu(this,this.Aj().C.j,!0)&&Ot(this.Pg,"gdr");xt(this.Aj().B,1)>=2E3&&Ot(this.Pg,"pmx");this.rb&&Ot(this.Pg,"tvoff")};
g.k.SJ=function(){return new Qt};
g.k.Aj=function(){return this.PK};
g.k.PP=function(){return new cja};
g.k.pO=function(a,b,c,d){a=Ft.prototype.pO.call(this,a,b,c,d===void 0?-1:d);a.fullscreen=this.MA;a.paused=this.Eo();a.volume=c.volume;Xs(a.volume)||(this.Kb++,b=this.ri,Xs(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=c!==void 0&&c>=0?c:-1;return a};
g.k.KO=function(a){return Zs(),this.MA?1:Ft.prototype.KO.call(this,a)};
g.k.Vp=function(){return 1};
g.k.getDuration=function(){return this.C};
g.k.FY=function(){return this.wu?2:pja(this)?5:this.us()?4:3};
g.k.GJ=function(){return this.Cb?this.Aj().G.C>=2E3?4:3:2};var bmb=g.kb();Gja.prototype.reset=function(){this.j=[];this.B=[]};
var hu=cs(Gja);g.x(ku,nt);g.k=ku.prototype;g.k.getName=function(){return(this.B?this.B:this.j).getName()};
g.k.Wt=function(){return(this.B?this.B:this.j).Wt()};
g.k.Qr=function(){return(this.B?this.B:this.j).Qr()};
g.k.init=function(a){var b=!1;(0,g.Zb)(this.C,function(c){c.initialize()&&(b=!0)});
b&&(this.D=a,kt(this.j,this));return b};
g.k.dispose=function(){(0,g.Zb)(this.C,function(a){a.dispose()});
nt.prototype.dispose.call(this)};
g.k.BV=function(){return Ys(this.C,function(a){return a.xD()})};
g.k.yD=function(){return Ys(this.C,function(a){return a.xD()})};
g.k.sI=function(a,b,c){return new Vt(a,this.j,b,c)};
g.k.nu=function(a){this.B=a.B};var Pja={threshold:[0,.3,.5,.75,1]};g.x(lu,Vt);g.k=lu.prototype;g.k.qN=function(){var a=this;this.Y||(this.Y=vs());if(eia(298,function(){return Qja(a)}))return!0;
this.B.yj("msf");return!1};
g.k.rI=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.Et=function(){var a=mu(this);a.length>0&&nu(this,a);Vt.prototype.Et.call(this)};
g.k.sO=function(){};
g.k.zZ=function(){return!1};
g.k.dX=function(){};
g.k.Wt=function(){var a={};return Object.assign(this.B.Wt(),(a.niot_obs=this.Y,a.niot_cbk=this.Z,a))};
g.k.getName=function(){return"nio"};g.x(ou,nt);ou.prototype.getName=function(){return"nio"};
ou.prototype.yD=function(){return!Zs().B&&this.j.j.C.IntersectionObserver!=null};
ou.prototype.sI=function(a,b,c){return new lu(a,this.j,b,c)};g.x(pu,jt);pu.prototype.CY=function(){return Zs().j};
pu.prototype.xD=function(){var a=Sja();this.Z!==a&&(this.j!=this&&a>this.j.Z&&(this.j=this,lt(this)),this.Z=a);return a==2};qu.prototype.sample=function(){uu(this,iu(),!1)};
qu.prototype.D=function(){var a=at(),b=vs();a?(xs||(ys=b,g.Zb(hu.j,function(c){var d=c.Aj();d.Oa=Rt(d,b,c.Ck!=1)})),xs=!0):(this.N=Xja(this,b),xs=!1,wja=b,g.Zb(hu.j,function(c){c.DE&&(c.Aj().Z=b)}));
uu(this,iu(),!a)};
var ru=cs(qu);var Zja=null,Ru="",Qu=!1;var bka=aka().Kp,wu=aka().Op;var eka={QFa:"visible",Pqa:"audible",qfb:"time",tfb:"timetype"},fka={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},
audible:function(a){return a=="0"||a=="1"},
timetype:function(a){return a=="mtos"||a=="tos"},
time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};
dka.prototype.setTime=function(a,b,c){b=="ms"?(this.C=a,this.D=-1):(this.C=-1,this.D=a);this.G=c===void 0?"tos":c;return this};g.x(Au,St);Au.prototype.getId=function(){return this.N};
Au.prototype.K=function(){return!0};
Au.prototype.j=function(a){var b=a.Aj(),c=a.getDuration();return Ys(this.Z,function(d){if(d.j!=void 0)var e=hka(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}e==0?d=!1:(d=d.C!=-1?d.C:c!==void 0&&c>0?d.D*c:-1,d=d!=-1&&e>=d);return d})};g.x(Bu,gja);Bu.prototype.j=function(a){var b=new fja;b.j=Nt(a,Ylb);b.B=Nt(a,$lb);return b};g.x(Cu,St);Cu.prototype.j=function(a){return pja(a)};g.x(Du,lja);g.x(Eu,St);Eu.prototype.j=function(a){return a.Aj().us()};g.x(Fu,Tt);Fu.prototype.j=function(a){var b=g.Eb(this.N,Ir(hs().Lc,"ovms"));return!a.wu&&(a.Ck!=0||b)};g.x(Gu,Du);Gu.prototype.B=function(){return new Fu(this.j)};
Gu.prototype.C=function(){return[new Eu("viewable_impression",this.j),new Cu(this.j)]};g.x(Hu,Wt);Hu.prototype.C=function(){var a=g.Wa("ima.admob.getViewability"),b=Ir(this.Lc,"queryid");typeof a==="function"&&b&&a(b)};
Hu.prototype.getName=function(){return"gsv"};g.x(Iu,nt);Iu.prototype.getName=function(){return"gsv"};
Iu.prototype.yD=function(){var a=Zs();hs();return a.B&&!1};
Iu.prototype.sI=function(a,b,c){return new Hu(this.j,b,c)};g.x(Ju,Wt);Ju.prototype.C=function(){var a=this,b=g.Wa("ima.bridge.getNativeViewability"),c=Ir(this.Lc,"queryid");typeof b==="function"&&c&&b(c,function(d){g.gd(d)&&a.G++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=tia(d.opt_nativeViewBounds||{});var h=a.B.D;h.j=f?amb.clone():tia(e);a.timestamp=d.opt_nativeTime||-1;Zs().j=h.j;d=d.opt_nativeVolume;d!==void 0&&(h.volume=d)})};
Ju.prototype.getName=function(){return"nis"};g.x(Ku,nt);Ku.prototype.getName=function(){return"nis"};
Ku.prototype.yD=function(){var a=Zs();hs();return a.B&&!1};
Ku.prototype.sI=function(a,b,c){return new Ju(this.j,b,c)};g.x(Lu,jt);g.k=Lu.prototype;g.k.xD=function(){return this.B.Ko!=null};
g.k.nY=function(){var a={};this.La&&(a.mraid=this.La);this.Da&&(a.mlc=1);a.mtop=this.B.yea;this.N&&(a.mse=this.N);this.Oa&&(a.msc=1);a.mcp=this.B.compatibility;return a};
g.k.tv=function(a){var b=g.Ja.apply(1,arguments);try{return this.B.Ko[a].apply(this.B.Ko,b)}catch(c){us(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.rF();this.isInitialized=!0;if(this.B.compatibility===2)return this.N="ng",this.yj("w"),!1;if(this.B.compatibility===1)return this.N="mm",this.yj("w"),!1;Zs().Z=!0;this.C.document.readyState&&this.C.document.readyState=="complete"?lka(this):Ct(this.C,"load",function(){es().setTimeout(ts(292,function(){return lka(a)}),100)},292);
return!0};
g.k.zV=function(){var a=Zs(),b=qka(this,"getMaxSize");a.j=new As(0,b.width,b.height,0)};
g.k.AV=function(){Zs().D=qka(this,"getScreenSize")};
g.k.dispose=function(){nka(this);jt.prototype.dispose.call(this)};var Pha=new function(a,b){this.key=a;this.defaultValue=b===void 0?!1:b;this.valueType="boolean"}("45378663");g.k=Nu.prototype;g.k.mJ=function(a){Gt(a,!1);Kja(a)};
g.k.aK=function(){};
g.k.aH=function(a,b,c,d){var e=this;a=new Yt(Or,a,c?b:-1,7,this.VO(),this.vX());a.gj=d;kha(a.Lc);Hr(a.Lc,"queryid",a.gj);a.FS("");$ia(a,function(){return e.MY.apply(e,g.ra(g.Ja.apply(0,arguments)))},function(){return e.S9.apply(e,g.ra(g.Ja.apply(0,arguments)))});
(d=cs(ju).j)&&Wia(a,d);a.hk.Mu&&cs(Tja);return a};
g.k.AA=function(a){switch(a.Qr()){case 0:if(a=cs(ju).j)a=a.j,g.Gb(a.G,this),a.Y&&this.Gq()&&zia(a);Pu();break;case 2:tu()}};
g.k.nu=function(){};
g.k.Gq=function(){return!1};
g.k.S9=function(a,b){a.wu=!0;switch(a.Vp()){case 1:wka(a,b);break;case 2:this.RS(a)}};
g.k.b$=function(a){var b=a.N(a);b&&(b=b.volume,a.Cb=Xs(b)&&b>0);sja(a,0);return du(a,"start",at())};
g.k.JC=function(a,b,c){uu(ru,[a],!at());return this.Wp(a,b,c)};
g.k.Wp=function(a,b,c){return du(a,c,at())};
g.k.W9=function(a){return Vu(a,"firstquartile",1)};
g.k.Y9=function(a){a.Ya=!0;return Vu(a,"midpoint",2)};
g.k.c$=function(a){return Vu(a,"thirdquartile",3)};
g.k.T9=function(a){var b=Vu(a,"complete",4);Zt(a);return b};
g.k.U9=function(a){a.Ck=3;return du(a,"error",at())};
g.k.C1=function(a,b,c){b=at();if(a.Eo()&&!b){var d=a.Aj(),e=vs();d.Z=e}uu(ru,[a],!b);a.Eo()&&(a.Ck=1);return du(a,c,b)};
g.k.a$=function(a,b){b=this.JC(a,b||{},"skip");Zt(a);return b};
g.k.X9=function(a,b){Gt(a,!0);return this.JC(a,b||{},"fullscreen")};
g.k.V9=function(a,b){Gt(a,!1);return this.JC(a,b||{},"exitfullscreen")};
g.k.vS=function(a,b,c){b=a.Aj();var d=vs();b.Oa=Rt(b,d,a.Ck!=1);uu(ru,[a],!at());a.Ck==1&&(a.Ck=2);return du(a,c,at())};
g.k.Z9=function(a){uu(ru,[a],!at());return a.B()};
g.k.lQ=function(a){uu(ru,[a],!at());this.t1(a);Zt(a);return a.B()};
g.k.MY=function(){};
g.k.RS=function(){};
g.k.t1=function(){};
g.k.CV=function(){};
g.k.WO=function(){};
g.k.vX=function(){this.j||(this.j=this.WO());return this.j==null?new Ut:new Gu(this.j)};
g.k.VO=function(){return new Bu};g.x(Wu,St);Wu.prototype.j=function(a){return a.GJ()==4};g.x(Xu,Tt);Xu.prototype.j=function(a){a=a.GJ();return a==3||a==4};g.x(Yu,Du);Yu.prototype.B=function(){return new Xu(this.j)};
Yu.prototype.C=function(){return[new Wu(this.j)]};g.x(Zu,gja);Zu.prototype.j=function(a){a&&(a.e===28&&(a=Object.assign({},a,{avas:3})),a.vs===4||a.vs===5)&&(a=Object.assign({},a,{vs:3}));var b=new fja;b.j=Nt(a,Zlb);b.B=Nt(a,$lb);return b};Aka.prototype.B=function(){return g.Wa(this.j)};g.x($u,Nu);g.k=$u.prototype;g.k.aK=function(a,b){var c=this,d=cs(ju);if(d.j!=null)switch(d.j.getName()){case "nis":var e=Eka(this,a,b);break;case "gsv":e=Dka(this,a,b);break;case "exc":e=Fka(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=yka(this,a,b.opt_adElement,b.opt_osdId)));e&&e.Vp()==1&&(e.N==g.Jd&&(e.N=function(f){return c.CV(f)}),Cka(this,e,b));
return e};
g.k.CV=function(a){a.B=0;a.Ha=0;if(a.D=="h"||a.D=="n"){hs();a.eb&&(hs(),Tu(this)!="h"&&Tu(this));var b=g.Wa("ima.common.getVideoMetadata");if(typeof b==="function")try{var c=b(a.gj)}catch(e){a.B|=4}else a.B|=2}else if(a.D=="b")if(b=g.Wa("ytads.bulleit.getVideoMetadata"),typeof b==="function")try{c=b(a.gj)}catch(e){a.B|=4}else a.B|=2;else if(a.D=="ml")if(b=g.Wa("ima.common.getVideoMetadata"),typeof b==="function")try{c=b(a.gj)}catch(e){a.B|=4}else a.B|=2;else a.B|=1;a.B||(c===void 0?a.B|=8:c===null?
a.B|=16:g.gd(c)?a.B|=32:c.errorCode!=null&&(a.Ha=c.errorCode,a.B|=64));c==null&&(c={});b=c;a.Z=0;for(var d in Slb)b[d]==null&&(a.Z|=Slb[d]);zka(b,"currentTime");zka(b,"duration");Xs(c.volume)&&Xs()&&(c.volume*=NaN);return c};
g.k.WO=function(){hs();Tu(this)!="h"&&Tu(this);var a=Gka(this);return a!=null?new Aka(a):null};
g.k.RS=function(a){!a.j&&a.wu&&Uu(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.k.t1=function(a){a.e2&&(a.us()?Uu(this,a,"overlay_viewable_end_of_session_impression"):Uu(this,a,"overlay_unviewable_impression"),a.e2=!1)};
g.k.MY=function(){};
g.k.aH=function(a,b,c,d){if(Qha()){var e=Ir(hs().Lc,"mm"),f={};(e=(f[is.Q3]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[is.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&Kka(this,e);this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&us(1044,Error())}a=Nu.prototype.aH.call(this,a,b,c,d);this.D&&(b=this.G,a.G==null&&(a.G=new aja),b.j[a.gj]=a.G,a.G.G=bmb);return a};
g.k.mJ=function(a){a&&a.Vp()==1&&this.D&&delete this.G.j[a.gj];return Nu.prototype.mJ.call(this,a)};
g.k.vX=function(){this.j||(this.j=this.WO());return this.j==null?new Ut:this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Yu(this.j):new Gu(this.j)};
g.k.VO=function(){return this.C==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Zu:new Bu};
var cmb=rs(193,Mka,void 0,xka);g.Va("Goog_AdSense_Lidar_sendVastEvent",cmb);var dmb=ts(194,function(a,b){b=b===void 0?{}:b;a=Jka(cs($u),a,b);return Lka(a)});
g.Va("Goog_AdSense_Lidar_getViewability",dmb);var emb=rs(195,function(){return Kha()});
g.Va("Goog_AdSense_Lidar_getUrlSignalsArray",emb);var fmb=ts(196,function(){return JSON.stringify(Kha())});
g.Va("Goog_AdSense_Lidar_getUrlSignalsList",fmb);var GCa=pa(["//tpc.googlesyndication.com/sodar/",""]);var dPa={U7a:0,R7a:1,O7a:2,P7a:3,Q7a:4,T7a:5,S7a:6};var Hqa=(new Date).getTime();var Oka="://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(" "),Pka=/\bocr\b/;var Rka=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var gmb=0,hmb=0,imb=0;var bv;bv=null;g.dv=!1;g.vv=1;g.uv=Symbol("SIGNAL");g.wv={version:0,JZ:0,ql:!1,xg:void 0,vy:void 0,cn:void 0,aL:0,cj:void 0,Ju:void 0,Lt:!1,OO:!1,b1:function(){return!1},
d1:function(){},
pE:function(){},
Npb:function(){}};var jmb=Symbol("UNSET"),kmb=Symbol("COMPUTING"),lmb=Symbol("ERRORED");Object.assign({},g.wv,{value:jmb,ql:!0,error:null,kP:Ska,b1:function(a){return a.value===jmb||a.value===kmb},
d1:function(a){if(a.value===kmb)throw Error("Detected cycle in computations.");var b=a.value;a.value=kmb;var c=g.ev(a);try{var d=a.Lpb()}catch(e){d=lmb,a.error=e}finally{g.hv(a,c)}b!==jmb&&b!==lmb&&d!==lmb&&a.kP(b,d)?a.value=b:(a.value=d,a.version++)}});var Yka;g.$ka=null;Yka=Object.assign({},g.wv,{kP:Ska,value:void 0});g.mmb=Object.assign({},g.wv,{OO:!0,Lt:!1,pE:function(a){a.schedule!==null&&a.schedule(a.dC)},
sF:!1,Jz:g.bla});g.nmb=dla(!1);g.omb=dla(!0);var pmb=Symbol("updater");jv=function(){if(bv===g.nmb)throw Error("A Signal Setter was called within onCleanup, which can lead to infinite update loops. See go/cow-errors#signal-write-in-oncleanup for more information.");throw Error("A Signal Setter was called within a Reaction, which can lead to infinite update loops. See go/cow-errors#signal-write-in-a-reactive-context for more information.");};g.x(yv,g.Fd);yv.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Go.ek(this.G);delete yv.instance};
yv.prototype.Mh=function(){return this.j};
yv.prototype.jf=function(){var a=this;this.G=this.Go.Ui(function(){var b;return g.H(function(c){if(c.j==1)return a.j?((b=window.navigator)==null?0:b.onLine)?c.Ja(3):g.z(c,xv(a),3):g.z(c,xv(a),3);a.jf();g.Aa(c)})},3E4)};fla.prototype.set=function(a,b){b=b===void 0?!0:b;0<=a&&a<52&&Number.isInteger(a)&&this.data[a]!==b&&(this.data[a]=b,this.j=-1)};
fla.prototype.get=function(a){return!!this.data[a]};var hla;g.lb(g.Cv,g.I);g.k=g.Cv.prototype;g.k.start=function(){this.stop();this.D=!1;var a=jla(this),b=kla(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.j=g.vd(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(oba(this.C),20)};
g.k.stop=function(){if(this.isActive()){var a=jla(this),b=kla(this);a&&!b&&this.B.mozRequestAnimationFrame?Bd(this.j):a&&b?b.call(this.B,this.j):this.B.clearTimeout(this.j)}this.j=null};
g.k.isActive=function(){return this.j!=null};
g.k.T5=function(){this.D&&this.j&&Bd(this.j);this.j=null;this.K.call(this.G,g.kb())};
g.k.ya=function(){this.stop();g.Cv.Rf.ya.call(this)};g.lb(g.Dv,g.I);g.k=g.Dv.prototype;g.k.zD=0;g.k.ya=function(){g.Dv.Rf.ya.call(this);this.stop();delete this.j;delete this.B};
g.k.start=function(a){this.stop();this.zD=g.ng(this.C,a!==void 0?a:this.aj)};
g.k.stop=function(){this.isActive()&&g.Ua.clearTimeout(this.zD);this.zD=0};
g.k.isActive=function(){return this.zD!=0};
g.k.EV=function(){this.zD=0;this.j&&this.j.call(this.B)};g.lla.prototype[Symbol.iterator]=function(){return this};
g.lla.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.lb(g.Pv,g.Fd);g.k=g.Pv.prototype;g.k.isPlaying=function(){return this.j==1};
g.k.isPaused=function(){return this.j==-1};
g.k.iL=function(){this.Qn("begin")};
g.k.Bs=function(){this.Qn("end")};
g.k.onFinish=function(){this.Qn("finish")};
g.k.onStop=function(){this.Qn("stop")};
g.k.Qn=function(a){this.dispatchEvent(a)};var qmb=Kd(function(){var a=g.Bf("DIV"),b=g.Nc?"-webkit":Js?"-moz":g.Ks?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!Zkb.test("div"))throw Error("");if("DIV"in alb)throw Error("");b=void 0;var d="";if(c)for(n in c)if(Object.prototype.hasOwnProperty.call(c,n)){if(!Zkb.test(n))throw Error("");var e=c[n];if(e!=null){var f=void 0;var h=n;if(e instanceof Pd)e=Rd(e);else if(h.toLowerCase()=="style"){if(!g.db(e))throw Error("");if(!(e instanceof
g.le)){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];m!=null&&(m=Array.isArray(m)?m.map(Bba).join(" "):Bba(m),l+=f+":"+m+";")}e=l?new g.le(l,ye):ula}e=qe(e)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in $kb)if(e instanceof g.Yd)e=g.Zd(e).toString();else if(e instanceof g.ce)e=g.de(e);else if(typeof e==="string")e=g.je(e).toString();else throw Error("");}f=h+'="'+gc(String(e))+
'"';d+=" "+f}}var n="<div"+d;b==null?b=[]:Array.isArray(b)||(b=[b]);Ykb.div===!0?n+=">":(b=Eba(b),n+=">"+g.se(b).toString()+"</div>");n=te(n);if(blb())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.se(n);return g.Ls(a.firstChild,"transition")!=""});g.lb(Qv,g.Pv);g.k=Qv.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.iL();this.Qn("play");this.startTime=g.kb();this.j=1;if(qmb())return g.Is(this.B,this.K),this.C=g.ng(this.fda,void 0,this),!0;this.rN(!1);return!1};
g.k.fda=function(){g.Us(this.B);ola(this.B,this.N);g.Is(this.B,this.D);this.C=g.ng((0,g.ib)(this.rN,this,!1),this.G*1E3)};
g.k.stop=function(){this.isPlaying()&&this.rN(!0)};
g.k.rN=function(a){g.Is(this.B,"transition","");g.Ua.clearTimeout(this.C);g.Is(this.B,this.D);this.endTime=g.kb();this.j=0;if(a)this.onStop();else this.onFinish();this.Bs()};
g.k.ya=function(){this.stop();Qv.Rf.ya.call(this)};
g.k.pause=function(){};var qla={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};Rv("Element","attributes")||Rv("Node","attributes");Rv("Element","innerHTML")||Rv("HTMLElement","innerHTML");Rv("Node","nodeName");Rv("Node","nodeType");Rv("Node","parentNode");Rv("Node","childNodes");Rv("HTMLElement","style")||Rv("Element","style");Rv("HTMLStyleElement","sheet");var xla=sla("getPropertyValue"),yla=sla("setProperty");Rv("Element","namespaceURI")||Rv("Node","namespaceURI");var wla={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var Dla,Dkb,Cla,Ala,Ela;Dla=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]");Dkb=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.rmb=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.Bla=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]");Cla=/^http:\/\/.*/;g.smb=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Ala=/\s+/;Ela=/[\d\u06f0-\u06f9]/;Tv.prototype.tm=function(){return new Uv(this.B())};
Tv.prototype[Symbol.iterator]=function(){return new Vv(this.B())};
Tv.prototype.j=function(){return new Vv(this.B())};
g.x(Uv,g.Ht);Uv.prototype.next=function(){return this.B.next()};
Uv.prototype[Symbol.iterator]=function(){return new Vv(this.B)};
Uv.prototype.j=function(){return new Vv(this.B)};
g.x(Vv,Tv);Vv.prototype.next=function(){return this.C.next()};Wv.prototype.clone=function(){return new Wv(this.j,this.C,this.x1,this.y1,this.x2,this.y2,this.B,this.D)};Yv.prototype.clone=function(){return new Yv(this.start,this.end)};(function(){if(Vhb){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.oc()))?a[1]:"0"}return CY?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.oc()))?a[0].replace(/_/g,"."):"10"):g.ZA?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.oc()))?a[1]:""):Qkb||Rkb||Skb?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.oc()))?a[1].replace(/_/g,"."):""):""})();var Hla=function(){if(g.QQ)return Zv(/Firefox\/([0-9.]+)/);if(g.Ks||g.zC||g.mR)return Xaa;if(g.LJ){if(Hc()||Ic()){var a=Zv(/CriOS\/([0-9.]+)/);if(a)return a}return Zv(/Chrome\/([0-9.]+)/)}if(g.dC&&!Hc())return Zv(/Version\/([0-9.]+)/);if(XA||YA){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.oc()))return a[1]+"."+a[2]}else if(g.iVa)return(a=Zv(/Android\s+([0-9.]+)/))?a:Zv(/Version\/([0-9.]+)/);return""}();g.lb(g.aw,g.I);g.k=g.aw.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.Uh(a)}return!1};
g.k.Uh=function(a){var b=this.j[a];if(b){var c=this.B[b];this.D!=0?(this.C.push(a),this.j[a+1]=function(){}):(c&&g.Gb(c,a),delete this.j[a],delete this.j[a+1],delete this.j[a+2])}return!!b};
g.k.publish=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];Ila(this.j[h+1],this.j[h+2],d)}else{this.D++;try{for(e=0,f=c.length;e<f&&!this.Na();e++)h=c[e],this.j[h+1].apply(this.j[h+2],d)}finally{if(this.D--,this.C.length>0&&this.D==0)for(;c=this.C.pop();)this.Uh(c)}}return e!=0}return!1};
g.k.clear=function(a){if(a){var b=this.B[a];b&&(b.forEach(this.Uh,this),delete this.B[a])}else this.j.length=0,this.B={}};
g.k.ya=function(){g.aw.Rf.ya.call(this);this.clear();this.C.length=0};g.bw.prototype.set=function(a,b){b===void 0?this.j.remove(a):this.j.set(a,g.qn(b))};
g.bw.prototype.get=function(a){try{var b=this.j.get(a)}catch(c){return}if(b!==null)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.bw.prototype.remove=function(a){this.j.remove(a)};g.lb(cw,g.bw);cw.prototype.set=function(a,b){cw.Rf.set.call(this,a,Kla(b))};
cw.prototype.B=function(a){a=cw.Rf.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
cw.prototype.get=function(a){if(a=this.B(a)){if(a=a.data,a===void 0)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.lb(dw,cw);dw.prototype.set=function(a,b,c){if(b=Kla(b)){if(c){if(c<g.kb()){dw.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.kb()}dw.Rf.set.call(this,a,b)};
dw.prototype.B=function(a,b){var c=dw.Rf.B.call(this,a);if(c)if(!b&&g.Lla(c))dw.prototype.remove.call(this,a);else return c};g.lb(g.ew,dw);g.lb(fw,Mla);fw.prototype[Symbol.iterator]=function(){return g.Fla(this.tm(!0)).j()};
fw.prototype.clear=function(){var a=Array.from(this);a=g.v(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.lb(gw,fw);g.k=gw.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&&(c.name==="QuotaExceededError"||c.code===22||c.code===1014||c.name==="NS_ERROR_DOM_QUOTA_REACHED")&&a&&a.length!==0}else b=!1;return this.B=b};
g.k.set=function(a,b){hw(this);try{this.j.setItem(a,b)}catch(c){if(this.j.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.k.get=function(a){hw(this);a=this.j.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){hw(this);this.j.removeItem(a)};
g.k.tm=function(a){hw(this);var b=0,c=this.j,d=new g.Ht;d.next=function(){if(b>=c.length)return g.n2;var e=c.key(b++);if(a)return g.It(e);e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return g.It(e)};
return d};
g.k.clear=function(){hw(this);this.j.clear()};
g.k.key=function(a){hw(this);return this.j.key(a)};g.lb(Nla,gw);g.lb(Ola,gw);g.lb(iw,fw);iw.prototype.set=function(a,b){this.B.set(this.j+a,b)};
iw.prototype.get=function(a){return this.B.get(this.j+a)};
iw.prototype.remove=function(a){this.B.remove(this.j+a)};
iw.prototype.tm=function(a){var b=this.B[Symbol.iterator](),c=this,d=new g.Ht;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.It(a?e.slice(c.j.length):c.B.get(e))};
return d};kw.prototype.getValue=function(){return this.B};
kw.prototype.clone=function(){return new kw(this.j,this.B)};g.k=lw.prototype;g.k.Jh=function(a,b){var c=this.j;c.push(new kw(a,b));a=c.length-1;b=this.j;for(c=b[a];a>0;){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(!(b<=0)){if(b==1)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=a*2+1,h=a*2+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.Lm=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.k.Yn=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 lw(this)};
g.k.isEmpty=function(){return this.j.length===0};
g.k.clear=function(){this.j.length=0};g.x(Pla,lw);Pla.prototype.enqueue=function(a,b){this.Jh(a,b)};mw.nh=void 0;mw.getInstance=function(){return mw.nh?mw.nh:mw.nh=new mw};
mw.prototype.j=0;var nw={},tmb=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";nw.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if(typeof c!=="object")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};
nw.HT=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
var umb={Dz: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]},
XX: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}},vmb={Dz:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},
XX:function(a){return[].concat.apply([],a)}};
nw.sea=function(){tmb?(nw.cz=Uint8Array,nw.Zq=Uint16Array,nw.a4=Int32Array,nw.assign(nw,umb)):(nw.cz=Array,nw.Zq=Array,nw.a4=Array,nw.assign(nw,vmb))};
nw.sea();var wmb=!0;try{new Uint8Array(1)}catch(a){wmb=!1};var ima={};ima=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;c!==0;){f=c>2E3?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 Hw={},r2,xmb=[],s2=0;s2<256;s2++){r2=s2;for(var ymb=0;ymb<8;ymb++)r2=r2&1?3988292384^r2>>>1:r2>>>1;xmb[s2]=r2}Hw=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^xmb[(a^b[d])&255];return a^-1};var yw={};yw={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 $la=[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],vw=[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],tma=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],gma=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Cw=Array(576);ow(Cw);var Dw=Array(60);ow(Dw);var uw=Array(512);ow(uw);var tw=Array(256);ow(tw);var ama=Array(29);ow(ama);var ww=Array(30);ow(ww);var qma,rma,sma,pma=!1;var Lw;Lw=[new Kw(0,0,0,0,function(a,b){var c=65535;for(c>a.Zm-5&&(c=a.Zm-5);;){if(a.jc<=1){Iw(a);if(a.jc===0&&b===0)return 1;if(a.jc===0)break}a.Hb+=a.jc;a.jc=0;var d=a.jl+c;if(a.Hb===0||a.Hb>=d)if(a.jc=a.Hb-d,a.Hb=d,Ew(a,!1),a.ze.Le===0)return 1;if(a.Hb-a.jl>=a.qj-262&&(Ew(a,!1),a.ze.Le===0))return 1}a.Jh=0;if(b===4)return Ew(a,!0),a.ze.Le===0?3:4;a.Hb>a.jl&&Ew(a,!1);return 1}),
new Kw(4,4,8,4,jma),new Kw(4,5,16,8,jma),new Kw(4,6,32,32,jma),new Kw(4,4,16,16,Jw),new Kw(8,16,32,32,Jw),new Kw(8,16,128,128,Jw),new Kw(8,32,128,256,Jw),new Kw(32,128,258,1024,Jw),new Kw(32,258,258,4096,Jw)];var oma={};oma=function(){this.input=null;this.Uy=this.uj=this.Sx=0;this.output=null;this.dU=this.Le=this.xB=0;this.msg="";this.state=null;this.ZO=2;this.Wd=0};var uma=Object.prototype.toString;
Mw.prototype.push=function(a,b){var c=this.ze,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:b===!0?4:0;typeof a==="string"?c.input=Qla(a):uma.call(a)==="[object ArrayBuffer]"?c.input=new Uint8Array(a):c.input=a;c.Sx=0;c.uj=c.input.length;do{c.Le===0&&(c.output=new nw.cz(d),c.xB=0,c.Le=d);a=nma(c,e);if(a!==1&&a!==0)return this.Bs(a),this.ended=!0,!1;if(c.Le===0||c.uj===0&&(e===4||e===2))if(this.options.to==="string"){var f=nw.HT(c.output,c.xB);b=f;f=f.length;if(f<65537&&(b.subarray&&
wmb||!b.subarray))b=String.fromCharCode.apply(null,nw.HT(b,f));else{for(var h="",l=0;l<f;l++)h+=String.fromCharCode(b[l]);b=h}this.chunks.push(b)}else b=nw.HT(c.output,c.xB),this.chunks.push(b)}while((c.uj>0||c.Le===0)&&a!==1);if(e===4)return(c=this.ze)&&c.state?(d=c.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?a=zw(c,-2):(c.state=null,a=d===113?zw(c,-3):0)):a=-2,this.Bs(a),this.ended=!0,a===0;e===2&&(this.Bs(0),c.Le=0);return!0};
Mw.prototype.Bs=function(a){a===0&&(this.result=this.options.to==="string"?this.chunks.join(""):nw.XX(this.chunks));this.chunks=[];this.err=a;this.msg=this.ze.msg};var zma="@@redux/INIT"+yma(),Cma="@@redux/REPLACE"+yma();var Dma=typeof Symbol==="function"&&Symbol.observable||"@@observable";var zmb=[0,tlb,-3,j2];g.x(Ow,U);Ow.prototype.getType=function(){return Nk(this,11)};
Ow.zb=[2,13,14];var s$a=function(){var a=[0,vlb,ulb,g2,tlb,g2,-1,j2,tlb,j2,-1,vlb,j2,ulb,h2,zmb,g2,-1,j2];return function(b,c){if(e2.length){var d=e2.pop();oda(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new wh(b,c);try{var e=new Ow,f=e.qa;el(a)(f,b);var h=e}finally{b.free()}return h}}();var Xya=new g.Pw("adInfoDialogEndpoint");var uBa=new g.Pw("adPingingEndpoint");var qFa=new g.Pw("crossDeviceProgressCommand");var OL=new g.Pw("actionCompanionAdRenderer");var xJ=new g.Pw("adActionInterstitialRenderer");var Amb=new g.Pw("adDurationRemainingRenderer");var aM=new g.Pw("adHoverTextButtonRenderer");var Vya=new g.Pw("adInfoDialogRenderer");var sM=new g.Pw("adMessageRenderer");var bM=new g.Pw("adPreviewRenderer");var QL=new g.Pw("adsEngagementPanelRenderer");var qHa=new g.Pw("dismissablePanelTextPortraitImageRenderer");var Bmb=new g.Pw("flyoutCtaRenderer");var PL=new g.Pw("imageCompanionAdRenderer");var wJ=new g.Pw("instreamAdPlayerOverlayRenderer");var Cmb=new g.Pw("instreamAdPlayerUnderlayRenderer");var Zjb=new g.Pw("instreamSurveyAdBackgroundImageRenderer");var AHa=new g.Pw("instreamSurveyAdPlayerOverlayRenderer");var UL=new g.Pw("instreamSurveyAdRenderer"),$L=new g.Pw("instreamSurveyAdSingleSelectQuestionRenderer"),ZL=new g.Pw("instreamSurveyAdMultiSelectQuestionRenderer"),t2=new g.Pw("instreamSurveyAdAnswerRenderer"),Dmb=new g.Pw("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var SL=new g.Pw("instreamVideoAdRenderer");var Emb=new g.Pw("textOverlayAdContentRenderer"),Fmb=new g.Pw("enhancedTextOverlayAdContentRenderer"),Gmb=new g.Pw("imageOverlayAdContentRenderer");var lEa=new g.Pw("playerOverlayLayoutRenderer");var uHa=new g.Pw("aboveFeedAdLayoutRenderer");var vHa=new g.Pw("belowPlayerAdLayoutRenderer");var tHa=new g.Pw("inPlayerAdLayoutRenderer");var nHa=new g.Pw("playerBytesAdLayoutRenderer");var YL=new g.Pw("playerUnderlayAdLayoutRenderer");var TL=new g.Pw("adIntroRenderer");var lHa=new g.Pw("playerBytesSequentialLayoutRenderer");var KIa=new g.Pw("slidingTextPlayerOverlayRenderer");var VL=new g.Pw("surveyTextInterstitialRenderer");var Hmb=new g.Pw("simpleAdBadgeRenderer");var hL=new g.Pw("skipAdRenderer"),Imb=new g.Pw("skipButtonRenderer");var fM=new g.Pw("adSlotRenderer");var XL=new g.Pw("squeezebackPlayerSidePanelRenderer");var Jmb=new g.Pw("timedPieCountdownRenderer");var Kmb=new g.Pw("adAvatarViewModel");var Lmb=new g.Pw("adBadgeViewModel");var Mmb=new g.Pw("adButtonViewModel");var Nmb=new g.Pw("adDisclosureBannerViewModel");var Omb=new g.Pw("adPreviewViewModel");var Pmb=new g.Pw("playerAdAvatarLockupCardButtonedViewModel");var Qmb=new g.Pw("skipAdButtonViewModel");var Rmb=new g.Pw("skipAdViewModel");var Smb=new g.Pw("visitAdvertiserLinkViewModel");var dHa=new g.Pw("bannerImageLayoutViewModel");var eHa=new g.Pw("topBannerImageTextIconButtonedLayoutViewModel");var fHa=new g.Pw("adsEngagementPanelLayoutViewModel");g.x(Jma,U);g.x(Kma,U);g.x(Lma,U);g.x(Mma,U);g.x(Qw,U);Qw.prototype.clearVideo=function(){return Zj(this,1,fO)};
var fO=[1,2,3,4];var nLa={nma:0,lma:1,mma:2};var oLa={rma:0,qma:1,pma:2,oma:3};var sLa={Cqa:0,Bqa:1,Aqa:2};var dO={Lta:0,Mta:1,Jta:2,Ita:3,Gta:4,Kta:5,Hta:6,Fta:7};var rLa={Iua:0,Hua:1,Dua:2,zua:3,Gua:4,Jua:5,Cua:6,yua:7,Bua:8,Fua:9,Eua:10,Kua:11,Aua:12,Lua:13};var fMa={Zua:0,Nua:1,Qua:2,ava:3,Oua:4,Pua:5,Vua:6,Xua:7,Sua:8,Mua:9,Uua:10,Yua:11,Tua:12,Rua:13,Wua:14};var qLa={aza:0,Yya:1,Zya:2};var eMa={h7a:0,g7a:1,f7a:2,e7a:3};var dMa={o7a:0,i7a:1,j7a:5,k7a:6,m7a:2,n7a:3,l7a:4};var cMa={r7a:0,s7a:1,q7a:2,p7a:3};var bMa={w7a:0,u7a:1,v7a:2};var aMa={tmb:0,fmb:1,nmb:2,gmb:3,omb:4,jmb:5,qmb:6,lmb:7,imb:8,hmb:9,mmb:10,rmb:11,dmb:12};g.x(Rw,U);Rw.prototype.getType=function(){return Nk(this,1)};g.x(Nma,U);g.x(Oma,U);g.x(Sw,U);Sw.prototype.getViews=function(){return Nk(this,1)};g.x(Pma,U);g.x(Qma,U);g.x(Tw,U);Tw.prototype.getViews=function(){return Nk(this,1)};
Tw.prototype.j=function(a,b){return Vj(this,2,ti,a,b)};
Tw.zb=[2];g.x(Uw,U);Uw.prototype.j=function(a,b){return Vj(this,3,ti,a,b)};
Uw.zb=[3];g.x(Vw,U);g.x(Rma,U);g.x(Sma,U);g.x(Tma,U);g.x(Uma,U);g.x(Vma,U);g.x(Ww,U);Ww.prototype.getViews=function(){return Nk(this,1)};g.x(Wma,U);g.x(Xma,U);g.x(Yma,U);var bO=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17];var ALa={Yna:0,ena:2,aoa:3,fna:4,dna:5,Pna:6,Rna:58,qna:17,Uma:18,Una:15,Wna:7,xna:8,Bma:10,Cma:26,Xma:45,bna:11,pna:14,coa:16,xma:19,Dma:20,yma:21,doa:22,Ema:23,cna:25,tma:27,uma:53,vna:28,Wma:30,Gna:31,Rma:32,Fma:33,zna:34,sna:35,mna:36,zma:37,Mna:39,ina:41,nna:42,kna:43,jna:44,Ama:40,Hna:46,Ina:50,lna:51,ona:52,boa:54,Ima:57,Kma:91,Lma:93,Jma:92,Nna:60,Sma:67,vma:64,Yma:65,Nma:68,wma:69,yna:70,hna:71,gna:72,Qma:73,Pma:75,Zna:76,Fna:77,tna:78,Qna:79,Lna:80,Tma:81,Zma:82,Oma:83,ana:84,Sna:85,Kna:89,
una:86,Cna:87,Dna:88,Bna:90,Ana:100,Hma:94,Gma:95,Ena:96,wna:97,Vma:98,Vna:99,Xna:101,Tna:102,Mma:103,rna:104,Jna:105,Ona:106};var yLa={moa:0,eoa:1,loa:2,goa:3,foa:4,koa:5,joa:6,ioa:7,hoa:8,noa:9};var xLa={woa:0,qoa:1,poa:2,uoa:3,xoa:4,soa:5,toa:6,voa:7,roa:8,ooa:9};var zLa={Hoa:0,Doa:1,Coa:2,Foa:3,zoa:4,yoa:5,Eoa:6,Aoa:7,Ioa:8,Goa:9,Boa:10};var wLa={Voa:0,Uoa:1,Toa:2};var BLa={fRa:0,YQa:1,bRa:2,BQa:3,dRa:4,oQa:5,UQa:6,EQa:7,eRa:8,xQa:9,RQa:10,yQa:11,WQa:12,ZPa:13,IQa:14,GQa:15,HQa:16,VQa:17,KQa:18,TQa:19,SQa:20,OQa:21,tQa:22,aQa:23,FQa:24,MQa:25,vQa:26,uQa:27,LQa:28,bQa:29,PQa:30,AQa:31,cRa:32,nQa:33,NQa:34,mQa:35,pQa:36,qQa:37,wQa:38,sQa:39,rQa:40,QQa:41,JQa:42,XQa:43,CQa:44,ZQa:45,aRa:46,DQa:47,zQa:70,jQa:48,gQa:49,lQa:50,kQa:51,iQa:52,fQa:53,cQa:54,hQa:55,eQa:56,dQa:57,XPa:58,WPa:59,VPa:60,PPa:61,UPa:62,QPa:63,RPa:64,OPa:65,SPa:66,YPa:67,TPa:68,NPa:69};var mLa={yta:0,tta:1,sta:18,hta:2,Zsa:3,gta:9,ata:10,eta:14,bta:4,Ysa:5,dta:6,Ata:11,fta:12,Tsa:13,Ssa:15,kta:16,uta:17,vta:19,Cta:20,rta:21,nta:22,qta:23,Xsa:24,wta:25,Wsa:26,Vsa:34,Usa:35,zta:27,mta:28,pta:29,jta:30,xta:31,Bta:32,lta:33,ita:7};var CLa={Roa:0,Soa:1,Moa:2,Noa:3,Ooa:4,Joa:5,Loa:6,Poa:7,Qoa:8,Koa:9};var cO={tpa:0,fpa:1,spa:3,qpa:4,ppa:5,gpa:25,upa:6,dpa:7,Xoa:8,ipa:9,Woa:12,hpa:22,kpa:23,lpa:26,mpa:27,npa:28,rpa:24,opa:13,wpa:14,jpa:15,Yoa:16,bpa:17,Zoa:18,apa:19,cpa:20,epa:21};g.x(Zma,U);g.x(Xw,U);Xw.prototype.j=function(a,b){return jk(this,1,Zma,a,b)};
Xw.zb=[1];g.x(Yw,U);Yw.prototype.j=function(a,b){return Vj(this,2,ti,a,b)};
Yw.prototype.getMetrics=function(a){return Aea(this,2,a)};
Yw.zb=[2];g.x($ma,U);var DLa=[1,2];g.TS=new g.Pw("browseEndpoint");var Tmb=new g.Pw("confirmDialogEndpoint");var Awa=new g.Pw("rawColdConfigGroup");var zwa=new g.Pw("rawHotConfigGroup");var iMa={b4a:0,a4a:1,W3a:2,U3a:3,X3a:4,V3a:5,Z3a:6,Y3a:7};g.CF=new g.Pw("commandExecutorCommand");g.x(ana,U);g.x(bna,U);g.x(cna,U);g.x(dna,U);var GLa=[1,2,3];g.x(ena,U);g.x(Zw,U);Zw.prototype.B=function(a,b){return Vj(this,1,Ei,a,b)};
Zw.prototype.j=function(a,b){return Vj(this,2,Ei,a,b)};
Zw.prototype.Ff=function(){return mk(this,3)};
Zw.zb=[1,2];g.x(fna,U);g.x($w,U);$w.prototype.j=function(a,b){return Vj(this,1,ti,a,b)};
$w.prototype.getMetrics=function(a){return Aea(this,1,a)};
$w.zb=[1];g.x(gna,U);g.x(hna,U);g.x(ina,U);g.x(jna,U);g.x(kna,U);g.x(lna,U);g.x(mna,U);g.x(nna,U);g.x(ona,U);g.x(pna,U);var QLa=[1,2],TLa=[3,4,5];g.x(ax,U);ax.prototype.getName=function(){return mk(this,2)};g.x(qna,U);g.x(rna,U);g.x(bx,U);bx.prototype.getId=function(){return mk(this,1)};g.x(cx,U);cx.prototype.getType=function(){return ui(jj(this,1))};g.x(dx,U);dx.prototype.getType=function(){return ui(jj(this,1))};g.x(ex,U);ex.prototype.getType=function(){return ui(jj(this,1))};g.x(fx,U);var iO=[1,2,3,4];g.x(sna,U);g.x(gx,U);g.x(hx,U);var hO=[1,2,3,4];g.x(tna,U);g.x(ix,U);ix.prototype.j=function(a,b){return jk(this,2,hx,a,b)};
ix.zb=[2];var gO=[3,4,5,6,7];g.x(jx,U);g.x(una,U);var tMa=[1,2];g.x(kx,U);kx.prototype.getId=function(){return g.fk(this,jx,2)};g.x(lx,U);lx.prototype.j=function(a,b){return jk(this,2,kx,a,b)};
lx.zb=[2];g.x(mx,U);mx.prototype.j=function(a,b){return jk(this,1,kx,a,b)};
mx.prototype.B=function(a,b){return jk(this,2,lx,a,b)};
mx.zb=[1,2];g.x(vna,U);var ILa=[1,2,3];g.x(wna,U);g.x(nx,U);nx.prototype.j=function(a,b){return Vj(this,2,ti,a,b)};
nx.zb=[2];g.x(xna,U);g.x(yna,U);g.x(zna,U);g.x(Ana,U);g.x(Bna,U);g.x(ox,U);ox.prototype.j=function(a,b){return Vj(this,1,ti,a,b)};
ox.zb=[1];g.x(Cna,U);g.x(Dna,U);g.x(Ena,U);var hMa=[1,2,3];g.x(px,U);px.prototype.j=function(a,b){return jk(this,1,Ena,a,b)};
px.zb=[1];g.x(Fna,U);g.x(Gna,U);g.x(Hna,U);g.x(qx,U);qx.prototype.j=function(a,b){return jk(this,1,Hna,a,b)};
qx.zb=[1];g.x(Ina,U);g.x(rx,U);g.x(sx,U);sx.prototype.j=function(a,b){return jk(this,1,rx,a,b)};
sx.zb=[1];g.x(tx,U);tx.prototype.j=function(a,b){return jk(this,1,rx,a,b)};
tx.zb=[1];g.x(ux,U);g.x(vx,U);var LMa={clb:0,bnb:1,xnb:32,Gnb:61,Tnb:67,Inb:86,vnb:42,ynb:60,inb:62,Enb:73,Cnb:76,Knb:88,Lnb:90,Znb:99,snb:98,Mnb:100,fob:41,gob:69,hob:70,iob:71,WXa:2,rYa:27,ANDROID:3,Cpa:54,Dpa:14,Lpa:91,Epa:55,Fpa:24,Gpa:20,Hpa:18,Jpa:21,Npa:30,Qpa:29,Rpa:28,Omb:101,Spa:34,Mpa:36,Ipa:38,IOS:5,kLa:15,uLa:92,lLa:40,nLa:25,oLa:17,pLa:19,qLa:64,rLa:66,sLa:26,wLa:22,HLa:33,ILa:68,JLa:35,tLa:53,vLa:37,mLa:39,gjb:7,hkb:57,wkb:43,Hkb:59,xkb:93,Ppa:74,Okb:75,Pkb:85,Qkb:65,Skb:80,Tkb:8,ejb:10,Wkb:58,Vkb:63,Rkb:72,Opa:23,
Job:11,Kob:13,ova:12,fjb:16,tnb:56,Hnb:31,TXa:77,tIa:84,Bnb:87,vIa:89,uIa:94,RUa:95};var Umb={b7:0,d4:1,G6:2,D4:3,g4:4,N6:5,y4:6,qW:7};g.x(wx,U);wx.prototype.X8=function(){return Mk(this,3)};
wx.prototype.f9=function(){return Mk(this,5)};
wx.prototype.Ms=function(a){return S(this,5,a)};g.x(xx,U);g.x(Kna,U);g.x(Lna,U);g.x(yx,U);g.x(Mna,U);Mna.zb=[2];g.x(zx,U);zx.prototype.getDeviceId=function(){return Mk(this,6)};
zx.prototype.getPlayerType=function(){return Nk(this,36)};
zx.prototype.setHomeGroupInfo=function(a){return gk(this,Mna,81,a)};
zx.prototype.clearLocationPlayabilityToken=function(){return Jj(this,89)};
zx.zb=[9,66,32,86,100,101];g.x(Ax,U);Ax.prototype.getValue=function(){return Mk(this,bk(this,twa,2))};
var twa=[2,3,4,5,6];g.x(Bx,U);Bx.zb=[15,26,28];g.x(Cx,U);Cx.zb=[5];g.x(Dx,U);Dx.prototype.getToken=function(){return mk(this,2)};
Dx.prototype.setToken=function(a){return S(this,2,a)};g.x(Ex,U);Ex.prototype.setSafetyMode=function(a){return T(this,5,a)};
Ex.zb=[12];g.x(Fx,U);Fx.prototype.Hy=function(a){return gk(this,zx,1,a)};
Fx.zb=[12];var dM=new g.Pw("thumbnailLandscapePortraitRenderer");var qMa={vcb:0,qcb:1,tcb:2,ucb:3,rcb:4,scb:5};var oMa={bdb:0,adb:1,wcb:2,xcb:3,ycb:4,zcb:5,Acb:6,Bcb:7,Ccb:8,Ecb:9,Fcb:10,Gcb:11,Hcb:12,Icb:13,Jcb:14,Kcb:15,Mcb:16,Ncb:17,Qcb:18,Rcb:19,Scb:20,Vcb:21,Tcb:22,Ucb:23,Wcb:24,Xcb:25,Ycb:26,Zcb:27,Pcb:28,Dcb:29,Lcb:30,Ocb:31};var nMa={ldb:0,cdb:1,ddb:2,edb:3,fdb:4,gdb:5,hdb:6,idb:7,jdb:8,kdb:9,mdb:10};var pMa={qdb:0,odb:1,pdb:2,ndb:3};var RLa={rua:0,Rta:1,sua:2,iua:3,Nta:4,Ota:5,fua:6,Pta:7,cua:8,eua:13,Vta:9,Xta:10,aua:11,tua:12,Tta:14,Zta:15,Wta:16,kua:17,hua:18,pua:19,nua:20,Uta:21,oua:22,Sta:23,Yta:24,jua:25,gua:26,qua:27,Qta:28};var SLa={xua:0,wua:1,vua:2,uua:3};var jMa={Hfb:0,Ffb:1,Gfb:2};var KLa={Jqa:0,Hqa:4,Gqa:2,Eqa:5,Fqa:8,Iqa:9,Dqa:3,Kqa:6,Lqa:7};var LLa={hwa:0,ewa:1,fwa:2,iwa:3,jwa:4,gwa:5};var JLa={Jwa:0,Hwa:8,Fwa:2,Dwa:5,Ewa:9,Gwa:3,Cwa:4,Kwa:6,Lwa:7,Iwa:10};var WLa={ula:0,sla:1,tla:2,xla:3,yla:4,wla:5};var sMa={h5a:0,a5a:1,c5a:2,g5a:3,e5a:4,d5a:6,b5a:7,f5a:5};var Vmb={amb:0,Zlb:1,Ulb:2,Ylb:3,Wlb:4,Xlb:5,Vlb:6};var gMa={zmb:0,ymb:1,Amb:2};var XLa={Slb:0,Jlb:1,Klb:2,Llb:3,Mlb:4,Nlb:5,Olb:6,Plb:7,Qlb:8,Rlb:9};var Wmb={Cmb:0,Bmb:1};var YLa={gcb:0,Tbb:1,fcb:2,Ubb:3,Vbb:4,Zbb:5,Ybb:6,Xbb:7,hcb:8,Rbb:9,Sbb:10,ecb:11,dcb:12,ccb:13,Wbb:14,bcb:15,acb:16};var ENa={Ifa:0,Gfa:1,Ffa:2,Hfa:3};g.Xmb=new g.Pw("changeEngagementPanelVisibilityAction");var Jza=new g.Pw("continuationCommand");g.Ymb=new g.Pw("openPopupAction");g.u2=new g.Pw("webCommandMetadata");var mXa=new g.Pw("metadataBadgeRenderer");var Iza=new g.Pw("signalServiceEndpoint");var HOa={Nla:0,Ola:1,Jla:2,Mla:3,Kla:4,Lla:5,Ila:6};var IOa={Vla:0,Sla:1,Pla:2,Ula:3,Wla:4,Rla:5,Qla:6,Tla:7};g.x(Gx,U);Gx.prototype.getType=function(){return Nk(this,1)};var oO={rMa:0,sMa:1,qMa:2,mMa:3,oMa:4,pMa:5,tMa:6,nMa:7};var Zmb={RXa:0,JXa:1,KXa:2,QXa:11,PXa:3,OXa:6,NXa:7,LXa:8,MXa:9,IXa:10};var $mb={XYa:0,UYa:1,WYa:2,VYa:3,TYa:4};var anb={E2a:0,o2a:1,F2a:2,C2a:3,B2a:4,A2a:5,z2a:6,r2a:7,p2a:8,v2a:9,J2a:10,q2a:11,x2a:12,H2a:13,I2a:14,y2a:15,u2a:16,t2a:17,w2a:18,s2a:19,G2a:20,D2a:21};var FLa={N2a:0,M2a:86};var pO={C5a:0,B5a:1,t5a:2,q5a:3,s5a:4,D5a:5,A5a:6,m5a:7,E5a:8,k5a:9,y5a:10,F5a:11,z5a:12,n5a:13,j5a:14,r5a:15,v5a:16,u5a:17,x5a:18,l5a:19,w5a:20,o5a:21,p5a:22};var bnb={Nbb:0,Ibb:1,Pbb:2,Jbb:3,Obb:4,Lbb:5,Mbb:6,Kbb:7};var qE=new g.Pw("innertubeCommand");var mkb=new g.Pw("loggingDirectives");var cnb={q4:0,n4:1,p4:2,o4:3};var xra={q4:"EMBEDDED_PLAYER_MODE_UNKNOWN",n4:"EMBEDDED_PLAYER_MODE_DEFAULT",p4:"EMBEDDED_PLAYER_MODE_PFP",o4:"EMBEDDED_PLAYER_MODE_PFL"};var NXa=new g.Pw("channelThumbnailEndpoint");var MXa=new g.Pw("embeddedPlayerErrorMessageRenderer");var IXa=new g.Pw("embeddedPlayerOverlayVideoDetailsRenderer"),OXa=new g.Pw("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),PXa=new g.Pw("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var jXa=new g.Pw("embedsInfoPanelRenderer");var ULa={vTa:0,jTa:14,tTa:15,uTa:16,kTa:17,oTa:18,qTa:19,mTa:20,nTa:21,sTa:22,pTa:23,rTa:24,lTa:25};var dnb=new g.Pw("feedbackEndpoint");var enb=new g.Pw("callToActionButtonViewModel");g.x(Nna,U);g.x(Ona,U);g.x(Pna,U);var TNa=[1,2];var fnb={FMa:0,GMa:1,EMa:2,zMa:3,yMa:4,AMa:5,CMa:6,BMa:7,DMa:8};var gnb={aNa:0,OMa:1,ZMa:2,YMa:3,JMa:4,LMa:5,MMa:6,KMa:7,SMa:8,PMa:9,QMa:10,RMa:16,HMa:11,bNa:12,IMa:13,WMa:14,NMa:15,XMa:17,TMa:18,UMa:19,VMa:20};var hnb={fNa:0,cNa:1,eNa:2,dNa:3};var inb={HJa:0,oJa:1,IJa:8,zJa:16,AJa:17,DJa:2,BJa:3,CJa:4,rJa:5,pJa:6,qJa:7,GJa:9,EJa:10,FJa:11,yJa:12,vJa:13,xJa:14,wJa:15,uJa:18,sJa:19,tJa:20,nJa:21};var jnb={e2a:0,f2a:1,d2a:2};var knb={l2a:0,h2a:1,j2a:2,g2a:3,i2a:4,k2a:5};var lnb={uNa:0,lNa:1,mNa:2,nNa:3,sNa:4,pNa:5,qNa:6,oNa:7,rNa:8,kNa:9,tNa:10};var mnb={YRa:0,URa:1,HRa:2,TRa:3,CRa:4,RRa:5,QRa:6,PRa:7,bSa:8,JRa:9,DRa:10,KRa:11,LRa:12,ERa:13,ORa:14,aSa:15,NRa:16,MRa:17,FRa:18,GRa:19,IRa:20,VRa:21,WRa:22,XRa:23,ZRa:24,SRa:25};var nnb={xSa:0,tSa:9,nSa:8,zSa:1,ESa:2,CSa:3,DSa:13,uSa:4,pSa:21,qSa:20,rSa:5,jSa:6,iSa:7,lSa:14,kSa:15,GSa:17,HSa:10,sSa:16,mSa:18,wSa:19,gSa:11,hSa:12,ASa:22,BSa:23,fSa:24,ySa:25,eSa:26,FSa:27,oSa:28,vSa:29};var onb={ssa:0,qsa:1,rsa:2};var pnb={rRa:0,jRa:1,mRa:2,pRa:3,kRa:4,hRa:5,nRa:6,oRa:7,gRa:8,qRa:9,lRa:10,iRa:11};var qnb={vsa:0,tsa:1,wsa:2,usa:3};var rnb=new g.Pw("interactionLoggingCommandMetadata");var aua={qnb:"WEB_DISPLAY_MODE_UNKNOWN",mnb:"WEB_DISPLAY_MODE_BROWSER",onb:"WEB_DISPLAY_MODE_MINIMAL_UI",pnb:"WEB_DISPLAY_MODE_STANDALONE",nnb:"WEB_DISPLAY_MODE_FULLSCREEN"};g.x(Qna,U);g.x(Rna,U);g.x(Hx,U);Hx.prototype.j=function(a,b){return jk(this,1,Rna,a,b)};
Hx.zb=[1];var ePa={Gga:0,cga:1,nga:2,vga:3,Cga:4,Dga:5,Hga:6,xga:7,aga:8,jga:9,iga:10,Jfa:11,lga:12,Ufa:14,fga:15,tga:16,qga:17,pga:43,kga:18,dga:29,gga:19,Qfa:20,Xfa:21,Fga:22,Lfa:23,Jga:24,hga:25,Rfa:26,zga:27,Tfa:28,Aga:30,Bga:31,oga:32,Ega:33,Mfa:34,yga:35,Lga:36,Ofa:37,Pfa:38,Iga:39,Yfa:40,Zfa:41,Nfa:42,ega:44,Vfa:45,Wfa:52,rga:46,Mga:47,Kga:48,Sfa:49,wga:50,Kfa:51};var snb={Vva:0,Uva:1,Tva:2};g.x(Sna,U);g.x(Tna,U);var tnb={nja:0,hja:114,cia:1,bja:4,cja:14,Pha:15,dja:17,Bha:6,Eha:7,Gha:8,Fha:9,Nha:5,xia:16,tia:101,aja:20,Zia:26,Qia:28,Tha:104,mha:105,oja:50,Yia:88,Tia:89,Via:90,Uia:91,Uha:2,iia:92,jia:19,pha:25,jja:107,Dha:29,Xha:93,Zha:94,Yha:95,lja:30,uia:31,hia:116,fia:3,aia:82,Wha:83,Vha:84,dia:85,Sia:11,pja:27,yia:10,gja:115,iha:12,lha:13,jha:49,hha:106,zha:18,sia:21,Kha:22,gha:23,Xia:24,Wga:32,qia:33,aha:34,wja:35,wha:36,Gia:37,Rha:38,ija:39,eja:40,fja:41,rja:42,Aha:43,mja:44,Qha:45,Jha:46,zia:47,via:48,
bia:51,Oha:52,Cha:53,Ria:54,Sha:55,oha:56,vha:57,xha:99,nha:58,Dia:59,Lha:60,Eia:61,Aia:62,lia:63,vja:64,sja:65,qja:66,uja:67,tja:68,Vga:69,Cia:70,Hia:71,Iia:72,Lia:73,Mia:74,Jia:75,Kia:117,sha:76,uha:77,dha:78,yha:79,gia:80,Mha:81,qha:86,fha:87,Yga:97,Xga:103,kia:98,Fia:100,bha:102,Pia:108,Oia:109,Zga:110,eha:111,mia:112,Nia:113,Hha:118,kja:119,ria:120,oia:121,Iha:122,Wia:123,cha:124,Bia:125,wia:126,rha:127,tha:128,pia:129};var unb={Mja:0,Gja:1,Ija:2,Kja:3,Eja:4,yja:5,Aja:6,Dja:7,Jja:8,zja:9,Cja:10,Hja:13,Lja:14,Bja:15,xja:11,Fja:12};var vnb={Jka:0,Pja:1,Qja:2,Sja:3,Zja:4,Dka:42,vka:9,Eka:10,Xja:11,Bka:12,Aka:13,ika:43,uka:14,jka:15,Hka:47,lka:46,qka:16,pka:17,Tja:18,yka:19,Wja:20,zka:21,Ika:22,Fka:23,Gka:24,Vja:25,Rja:26,Cka:27,nka:28,ska:38,tka:39,rka:49,xka:5,kka:6,Yja:7,dka:8,oka:29,wka:30,mka:31,Nja:32,fka:33,cka:34,aka:35,Lka:36,hka:37,Kka:40,gka:41,Oja:44,bka:45,Uja:48};var rOa={Qka:0,Pka:1,Mka:2,Oka:3,Nka:4};var pOa={rwa:0,owa:1,nwa:2,qwa:3,pwa:4};var wnb={Uwa:0,Swa:1,Pwa:2,Twa:3,Qwa:4,Rwa:5};var xnb={Xwa:0,Vwa:1,Wwa:2};var ynb={exa:0,dxa:1,bxa:2,cxa:3,axa:4};var znb={hxa:0,fxa:1,gxa:2,ixa:3};var Anb={oxa:0,jxa:1,nxa:2,mxa:3,lxa:4,kxa:5};var Bnb={uxa:0,txa:1,pxa:2};var Cnb={sxa:0,qxa:1,rxa:2};var Dnb={xxa:0,vxa:1,wxa:2};var Enb={Lxa:0,Hxa:1,Gxa:2,Bxa:3,Fxa:4,zxa:5,Axa:6,Ixa:7,Cxa:8,Jxa:9,Exa:10,yxa:11,Dxa:12,Kxa:13};var Fnb={Qxa:0,Oxa:1,Pxa:2,Nxa:3,Mxa:4};var oOa={ePa:0,AOa:1,BOa:2,JNa:3,rOa:4,COa:5,sOa:6,KNa:7,DOa:8,CNa:9,DNa:10,SNa:11,INa:12,LNa:13,uOa:14,QNa:15,BNa:16,TOa:17,pOa:18,MNa:19,xOa:20,vOa:21,wOa:22,ANa:23,cPa:25,SOa:26,JPa:61,hOa:35,WNa:36,UNa:37,bOa:38,cOa:113,ZNa:93,aOa:114,fOa:39,eOa:115,dOa:40,lOa:41,ZOa:97,aPa:106,bPa:102,iOa:42,gOa:43,mOa:44,nOa:45,FNa:24,GNa:27,HNa:28,BPa:29,EPa:75,CPa:104,DPa:30,vPa:98,yPa:108,wPa:105,xPa:89,FPa:31,GPa:86,zPa:32,APa:91,jPa:51,lPa:52,uPa:62,nPa:70,rPa:63,pPa:64,kPa:65,tPa:66,mPa:71,qPa:67,oPa:68,
sPa:69,IPa:33,jOa:46,kOa:47,UOa:49,VOa:50,WOa:94,MOa:77,FOa:78,EOa:79,GOa:80,tOa:53,fPa:54,hPa:55,gPa:56,OOa:112,NOa:57,POa:101,ROa:110,QOa:96,iPa:58,yOa:59,zOa:60,HOa:72,IOa:107,LOa:84,JOa:92,ONa:73,XOa:74,ENa:76,dPa:81,VNa:82,YOa:83,XNa:85,YNa:95,HPa:87,qOa:88,RNa:90,KOa:99,TNa:100,NNa:103,PNa:109,oOa:111};var sOa={e4:0,tva:1,yNa:2,cwa:3,Q6:4,R6:5,R6a:6,H7a:7,v3a:8,g7:9,uva:10,Tka:11,Wka:12,Rmb:13,nla:14,qla:15,hla:16,ila:17,Xka:18,Wra:19,bAa:20,nKa:21,dLa:22,h7:23,sfb:24,Ska:25,tWa:26,sWa:47,V6:27,Vra:28,Q6a:29,hGa:30,mKa:31,Sva:32,Dlb:33,wlb:34,slb:35,Blb:36,Clb:37,ylb:38,zlb:39,Alb:40,vlb:41,tlb:42,nsa:43,H6:44,jra:45,O3:46,Rga:48,z4:49,mfb:50,Xya:51,JSa:52,qpb:53};var Gnb={i1a:0,W0a:1,b1a:2,Z0a:3,a1a:4,V0a:5,g1a:6,h1a:7,U0a:8,e1a:9,X0a:10,Y0a:11,d1a:12,f1a:13};var Hnb={n1a:0,o1a:1,j1a:2,k1a:3,m1a:4,l1a:5};var nOa={Q1a:0,L1a:1,G1a:2,H1a:3,I1a:21,B1a:4,v1a:5,y1a:6,x1a:7,A1a:8,w1a:24,P1a:9,u1a:10,O1a:11,N1a:12,F1a:22,K1a:13,J1a:20,C1a:14,E1a:15,D1a:16,t1a:17,s1a:19,z1a:18,q1a:23,M1a:25};var uOa={lbb:0,dbb:1,ebb:14,gbb:15,kbb:20,jbb:21,hbb:22,Qab:2,Zab:3,Wab:4,Xab:5,Nab:6,abb:7,Vab:8,Rab:9,Pab:10,cbb:11,Yab:12,bbb:13,Oab:16,fbb:17,Uab:18,Sab:19};var Inb={xbb:0,wbb:1,pbb:2,qbb:3,ubb:4,tbb:5,vbb:6,rbb:7,sbb:8};var vOa={Dhb:0,Ahb:1,Chb:2,Bhb:3,uhb:4,yhb:5,xhb:6,whb:8,vhb:9,zhb:7};var nO={cjb:0,Ehb:1,nib:2,Wib:3,Rib:4,Nhb:5,yib:6,cib:7,Fib:8,vib:9,Pib:10,Tib:11,Hib:12,Ohb:13,wib:14,aib:15,Lhb:16,tib:17,Gib:18,Sib:19,Xhb:20,fib:21,ajb:22,Zib:57,eib:23,Whb:24,Mhb:25,bjb:26,rib:27,Uib:28,Vib:29,Aib:30,Yib:31,Zhb:32,Iib:33,jib:34,lib:35,uib:36,sib:37,Kib:38,xib:39,djb:40,gib:41,hib:42,iib:43,Jhb:44,Ihb:45,Hhb:46,Fhb:58,Ghb:59,Nib:47,Oib:48,Bib:67,Cib:68,bib:49,Jib:50,Mib:51,Lib:52,pib:53,Uhb:54,Xib:55,kib:56,Dib:60,oib:61,dib:62,Qib:63,Yhb:64,qib:69,Phb:65,Khb:66,Thb:70,Shb:71,
zib:74,Vhb:72,Eib:73,Rhb:75,Qhb:76,mib:77};g.x(Una,U);g.x(Vna,U);g.x(Ix,U);Ix.prototype.jg=function(){return Mk(this,1)};g.x(Wna,U);g.x(Xna,U);g.x(Yna,U);var xOa=[1,2];g.x(Jx,U);Jx.prototype.getType=function(){return Nk(this,1)};
var wOa=[3,4];g.x(Kx,U);g.k=Kx.prototype;g.k.Xw=function(){return Mk(this,1)};
g.k.A7=function(a,b){return jk(this,2,Jx,a,b)};
g.k.B7=function(a,b){return jk(this,3,Jx,a,b)};
g.k.z7=function(a,b){return jk(this,4,Jx,a,b)};
g.k.D7=function(a,b){return jk(this,5,Jx,a,b)};
g.k.C7=function(a,b){return jk(this,6,Jx,a,b)};
Kx.zb=[2,3,4,5,6];g.x(Lx,U);Lx.prototype.getType=function(){return Nk(this,2)};
Lx.prototype.j=function(a,b){return Vj(this,5,ti,a,b)};
Lx.zb=[5];g.x(Mx,U);Mx.prototype.B=function(a,b){return Vj(this,2,ti,a,b)};
Mx.prototype.j=function(a,b){return jk(this,4,Jx,a,b)};
Mx.prototype.D=function(a,b){return jk(this,5,Jx,a,b)};
Mx.prototype.C=function(a,b){return jk(this,6,Jx,a,b)};
Mx.zb=[2,4,5,6];g.x(Nx,U);Nx.prototype.getType=function(){return Nk(this,2)};g.x(Ox,U);Ox.prototype.j=function(a,b){return jk(this,1,Nx,a,b)};
Ox.zb=[1];g.x(Zna,U);g.x(Px,U);Px.prototype.j=function(a,b){return Vj(this,1,ti,a,b)};
Px.zb=[1];g.x(Qx,U);Qx.prototype.j=function(a,b){return Vj(this,1,ti,a,b)};
Qx.prototype.B=function(a,b){return Vj(this,2,ti,a,b)};
Qx.zb=[1,2];g.x(Rx,U);Rx.prototype.j=function(a,b){return jk(this,2,Px,a,b)};
Rx.zb=[2];g.x(Sx,U);g.x($na,U);g.x($x,U);$x.prototype.jg=function(){return Mk(this,1)};
$x.prototype.j=function(a,b){return jk(this,3,$na,a,b)};
$x.zb=[3];g.x(ay,U);ay.prototype.ih=function(){return Nk(this,1)};g.x(by,U);by.prototype.uf=function(){return Nk(this,2)};g.x(aoa,U);g.x(boa,U);g.x(cy,U);cy.prototype.getType=function(){return Nk(this,1)};
cy.prototype.jg=function(){return Mk(this,8)};g.x(dy,U);dy.prototype.jg=function(){return Mk(this,1)};g.x(ey,U);ey.prototype.jg=function(){return Mk(this,1)};g.x(fy,U);fy.prototype.jg=function(){return Mk(this,1)};g.x(gy,U);gy.prototype.jg=function(){return Mk(this,2)};
gy.prototype.EJ=function(){return Mk(this,4)};g.x(hy,U);hy.prototype.jg=function(){return Mk(this,1)};g.x(iy,U);iy.prototype.jg=function(){return Mk(this,1)};g.x(jy,U);g.x(coa,U);g.x(doa,U);g.x(ky,U);ky.prototype.jg=function(){return Mk(this,2)};g.x(eoa,U);g.x(foa,U);g.x(goa,U);var v2=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];g.x(ly,U);g.x(hoa,U);g.x(ioa,U);g.x(joa,U);g.x(my,U);my.prototype.getState=function(){return Nk(this,1)};
my.prototype.Ic=function(a){return T(this,1,a)};g.x(koa,U);g.x(ny,U);ny.prototype.j=function(a,b){return jk(this,1,koa,a,b)};
ny.zb=[1];g.x(oy,U);oy.prototype.j=function(a,b){return jk(this,2,ny,a,b)};
oy.prototype.B=function(a,b){return jk(this,3,joa,a,b)};
oy.zb=[2,3];g.x(py,U);py.prototype.B=function(a,b){return jk(this,1,oy,a,b)};
py.prototype.j=function(a,b){return jk(this,2,ioa,a,b)};
py.zb=[1,2];g.x(loa,U);g.x(qy,U);g.x(moa,U);g.x(ry,U);ry.prototype.Gm=function(){return wea(this,4)};g.x(sy,U);sy.prototype.getStatus=function(){return nk(this,2)};g.x(noa,U);g.x(ty,U);ty.prototype.setConfig=function(a){return gk(this,noa,2,a)};g.x(ooa,U);g.x(uy,U);uy.prototype.getValue=function(){return Mk(this,2)};g.x(poa,U);g.x(qoa,U);g.x(roa,U);g.x(vy,U);vy.prototype.j=function(a,b){return jk(this,3,roa,a,b)};
vy.zb=[3];g.x(soa,U);g.x(wy,U);g.x(yy,U);g.x(zy,U);g.k=zy.prototype;g.k.getSettings=function(){return g.fk(this,yy,1)};
g.k.yh=function(a){return gk(this,yy,1,a)};
g.k.getState=function(){return Nk(this,2)};
g.k.Ic=function(a){return T(this,2,a)};
g.k.Gm=function(){return Lk(this,3)};g.x(toa,U);g.x(Ay,U);Ay.prototype.Gm=function(){return Lk(this,4)};g.x(uoa,U);g.x(By,U);g.k=By.prototype;g.k.getType=function(){return Nk(this,1)};
g.k.v7=function(a,b){return jk(this,2,uoa,a,b)};
g.k.Gm=function(){return Lk(this,6)};
g.k.getPlaybackRate=function(){return xea(this,7)};
g.k.setPlaybackRate=function(a){return Tk(this,7,a)};
g.k.setEnabled=function(a){return Ok(this,8,a)};
By.zb=[2];g.x(Cy,U);Cy.prototype.Gm=function(){return Lk(this,3)};g.x(Dy,U);Dy.prototype.j=function(a,b){return jk(this,1,By,a,b)};
Dy.prototype.B=function(a,b){return jk(this,2,Cy,a,b)};
Dy.zb=[1,2];g.x(Ey,U);Ey.prototype.getState=function(){return Nk(this,1)};
Ey.prototype.Ic=function(a){return T(this,1,a)};g.x(g.Fy,U);g.x(g.Gy,U);g.k=g.Gy.prototype;g.k.Hy=function(a){return T(this,1,a)};
g.k.s7=function(a,b){return jk(this,4,Dy,a,b)};
g.k.setComposition=function(a,b){uea(this,4,Dy,b,a,!1,1);return this};
g.k.getDeviceInfo=function(){return g.fk(this,wy,8)};
g.k.hx=ba(0);g.k.qc=function(){return g.fk(this,soa,12)};
g.Gy.zb=[4];g.x(Hy,U);Hy.prototype.Ff=function(){return Nk(this,4)};g.x(Iy,U);Iy.prototype.j=function(a,b){return Vj(this,1,ti,a,b)};
Iy.prototype.Gg=function(a,b){rea(this,1,ti,a,b,zea)};
Iy.zb=[1];g.x(Jy,U);g.k=Jy.prototype;g.k.ue=function(){return Mk(this,1)};
g.k.setVideoId=function(a){return S(this,1,a)};
g.k.getPlaylistId=function(){return Mk(this,2)};
g.k.getPlaylistIndex=function(){return Kk(this,3)};
g.k.getPlayerType=function(){return Nk(this,5)};g.x(voa,U);g.x(Ky,U);Ky.prototype.j=function(a,b){return jk(this,4,uy,a,b)};
Ky.prototype.B=function(a,b){return Vj(this,5,Oda,a,b)};
Ky.zb=[4,5];g.x(Ly,U);g.x(My,U);g.x(woa,U);g.x(Ny,U);Ny.prototype.Ff=function(){return Mk(this,2)};g.x(Oy,U);Oy.prototype.j=function(a,b){return jk(this,1,Ny,a,b)};
Oy.zb=[1];g.x(Py,U);Py.prototype.Ff=function(){return Mk(this,2)};g.x(Qy,U);Qy.prototype.j=function(a,b){return jk(this,1,Py,a,b)};
Qy.zb=[1];g.x(xoa,U);var ONa=[1,2,3];g.x(Ry,U);Ry.prototype.j=function(a,b){return jk(this,1,xoa,a,b)};
Ry.zb=[1];g.x(Sy,U);var pE=[2,3,4,5];g.x(Ty,U);Ty.prototype.getMessage=function(){return Mk(this,1)};g.x(Uy,U);g.x(Vy,U);g.x(yoa,U);g.x(Wy,U);Wy.prototype.Vi=function(a,b){return jk(this,5,yoa,a,b)};
Wy.zb=[5];g.x(zoa,U);g.x(Xy,U);Xy.prototype.j=function(a,b){return jk(this,3,zoa,a,b)};
Xy.prototype.B=function(a,b){return Vj(this,4,ti,a,b)};
Xy.zb=[3,4];g.x(Aoa,U);g.x(Boa,U);g.x(Yy,U);Yy.prototype.B=function(a,b){return jk(this,19,Lna,a,b)};
Yy.prototype.j=function(a,b){return jk(this,20,Kna,a,b)};
Yy.zb=[19,20];g.x(Zy,U);g.x(Coa,U);g.x($y,U);$y.prototype.j=function(a,b){return jk(this,2,Zy,a,b)};
$y.prototype.setConfig=function(a){return gk(this,Coa,3,a)};
$y.prototype.C=function(a,b){return jk(this,5,Zy,a,b)};
$y.prototype.B=function(a,b){return jk(this,9,Pna,a,b)};
$y.zb=[2,5,9];g.x(az,U);az.prototype.Gm=function(){return wea(this,2)};g.x(bz,U);bz.prototype.j=function(a,b){return jk(this,9,az,a,b)};
bz.zb=[9];g.x(Doa,U);g.x(Eoa,U);g.x(Foa,U);g.x(Goa,U);g.x(cz,U);cz.prototype.getType=function(){return Nk(this,2)};
cz.prototype.j=function(a,b){return jk(this,3,Goa,a,b)};
cz.zb=[3];g.x(dz,U);dz.prototype.j=function(a,b){return jk(this,10,loa,a,b)};
dz.prototype.B=function(a,b){return jk(this,17,bz,a,b)};
dz.zb=[10,17];g.x(Hoa,U);var BNa={xqa:0,wqa:1,tqa:2,uqa:3,vqa:4};var Jnb={Ira:0,Era:1,Gra:2,Fra:3,Hra:4};var Knb={Ura:0,Rra:1,Qra:2,Sra:3,Pra:4,Nra:5,Ora:6,Tra:7,Mra:8,Kra:9,Jra:10,Lra:11};g.x(ez,U);g.k=ez.prototype;g.k.Ff=function(){return Mk(this,2)};
g.k.jg=function(){return Mk(this,3)};
g.k.u7=function(a,b){return Vj(this,10,ti,a,b)};
g.k.EJ=function(){return Mk(this,7)};
g.k.Gm=function(){return nk(this,11)};
ez.zb=[10];var SMa={Yra:0,Xra:1,bsa:2,Zra:3};var RMa={lsa:0,ksa:1,dsa:2,esa:3,fsa:4,gsa:5,isa:6,jsa:7,csa:8,hsa:9};var gNa={Xza:0,Yza:3,Zza:1,Wza:2};var NMa={nBa:0,hAa:1,qAa:2,sAa:3,vAa:4,wAa:5,BAa:6,CAa:7,DAa:8,EAa:9,FAa:10,IAa:11,JAa:12,KAa:13,LAa:14,MAa:15,SAa:16,WAa:17,XAa:18,aBa:19,cBa:20,eBa:21,fBa:22,hBa:23,jBa:24,oBa:25,pBa:26,UAa:27,kBa:28,VAa:29,HAa:30,yAa:31,GAa:32,tBa:33,vBa:34,gAa:35,nAa:36,lBa:37,mBa:38,rAa:39,OAa:40,PAa:51,mAa:41,iAa:42,tAa:43,QAa:44,oAa:45,TAa:46,dBa:47,lAa:48,ZAa:49,RAa:50,pAa:52,uAa:53,xAa:54,gBa:55,iBa:56,rBa:57,qBa:58,bBa:59,jAa:60,zAa:61,kAa:62,sBa:63,uBa:64,YAa:65,AAa:66,NAa:67};var QMa={qFa:0,ZBa:1,UDa:2,mFa:3,KFa:4,NDa:5,VDa:6,lCa:7,oCa:8,nCa:9,jEa:10,MDa:11,LDa:12,tEa:13,IEa:14,nFa:15,EFa:16,kCa:17,FBa:18,aDa:19,ACa:20,SDa:21,ZDa:22,pFa:23,HBa:24,MBa:25,oEa:26,ICa:116,dDa:27,eDa:28,iEa:29,dCa:30,WCa:31,RDa:32,hEa:33,DBa:34,EBa:35,BBa:36,CBa:37,WDa:38,XDa:39,wEa:40,jCa:41,IFa:42,mEa:43,gEa:44,kEa:45,ODa:46,lEa:47,RCa:48,vCa:49,uCa:160,MFa:50,cDa:51,bDa:52,xCa:53,yCa:54,jFa:55,iFa:56,hFa:57,kFa:58,FCa:59,SCa:60,DFa:61,sEa:62,nEa:63,qEa:64,YDa:65,YCa:69,ZCa:121,LFa:70,VCa:71,
dFa:72,eFa:73,uEa:74,vEa:75,UCa:76,TCa:77,fEa:78,eEa:80,yBa:81,RBa:115,PBa:120,QBa:122,YBa:123,gDa:124,fDa:125,OBa:126,MEa:127,KEa:128,LEa:129,JFa:130,ABa:131,NBa:132,KBa:133,XCa:152,QCa:178,zCa:179,pEa:181,PCa:193,iCa:198,GFa:212,UBa:213,eCa:217,BEa:218,JBa:220,oFa:221,aCa:222,hCa:223,IBa:226,jDa:82,lDa:83,CDa:84,mDa:85,IDa:86,kDa:87,oDa:88,vDa:89,yDa:90,EDa:91,ADa:92,DDa:93,iDa:94,pDa:95,zDa:96,rDa:97,qDa:98,hDa:99,nDa:100,FDa:101,wDa:102,JDa:103,GDa:104,tDa:105,HDa:106,xDa:107,uDa:118,sDa:214,
BDa:224,sFa:108,wFa:109,vFa:110,uFa:111,xFa:112,tFa:113,rFa:114,zBa:134,LBa:138,SBa:139,TBa:140,XBa:141,fCa:142,mCa:144,pCa:165,gCa:143,wCa:135,CCa:145,DCa:146,TDa:147,zFa:148,BFa:149,FFa:150,gFa:153,wBa:154,AFa:155,HFa:156,GBa:157,BCa:158,NEa:159,KCa:161,xBa:162,JEa:163,lFa:164,JCa:166,ECa:167,dEa:168,HCa:169,GCa:170,cEa:171,rEa:172,MCa:173,LCa:210,WBa:174,NCa:175,CEa:176,OCa:177,bCa:182,cFa:183,bFa:184,QDa:136,PDa:137,fFa:151,sCa:180,tCa:190,rCa:192,qCa:225,yEa:185,AEa:186,zEa:187,xEa:191,VBa:188,
yFa:189,aEa:194,bEa:199,XEa:66,SEa:67,TEa:117,YEa:68,aFa:197,UEa:195,ZEa:196,OEa:201,VEa:202,PEa:203,HEa:204,GEa:205,FEa:206,QEa:207,REa:208,WEa:209,cCa:200,CFa:211,KDa:219,EEa:215,DEa:216};var Lnb={sva:0,rva:1,pva:2,qva:3};var pPa={J9a:0,w$a:1,E$a:2,h$a:3,i$a:4,j$a:5,G$a:39,H$a:6,C$a:7,v$a:50,F$a:69,x$a:70,y$a:71,r$a:74,k$a:32,l$a:44,m$a:33,D$a:8,n$a:9,o$a:10,q$a:11,p$a:12,s$a:73,t$a:77,u$a:78,B$a:84,z$a:87,A$a:88,N9a:56,O9a:57,P9a:58,Q9a:59,R9a:60,S9a:61,mab:13,nab:14,oab:15,xab:16,rab:17,zab:18,yab:19,uab:20,vab:21,pab:34,wab:35,sab:36,qab:49,W9a:37,X9a:38,Z9a:40,b$a:41,a$a:42,c$a:43,d$a:51,Y9a:52,V9a:67,T9a:22,U9a:23,L$a:24,R$a:25,S$a:62,Q$a:26,O$a:27,K$a:48,I$a:53,J$a:63,T$a:66,N$a:54,P$a:68,U$a:72,M$a:76,f$a:64,
e$a:65,V$a:28,Y$a:29,X$a:30,W$a:31,hab:45,jab:46,iab:47,eab:83,cab:55,aab:79,Z$a:80,bab:81,dab:82,g$a:86,K9a:89,L9a:90,M9a:91};var mPa={Bab:0,Cab:1,Aab:2};var rPa={Fab:0,Eab:1,Dab:2};var qPa={Mab:0,Kab:1,Iab:2,Lab:3,Gab:4,Hab:5,Jab:6};var WOa={gfb:0,ffb:1,efb:2};var VOa={kfb:0,ifb:1,hfb:2,jfb:3};g.x(Ioa,U);g.x(Joa,U);g.x(Koa,U);g.x(Loa,U);g.x(Moa,U);g.x(fz,U);fz.prototype.hasFeature=function(){return ui(jj(this,2))!=null};g.x(Noa,U);g.x(Ooa,U);g.x(Poa,U);g.x(gz,U);gz.prototype.getName=function(){return Nk(this,1)};
gz.prototype.getStatus=function(){return Nk(this,2)};
gz.prototype.getState=function(){return Nk(this,3)};
gz.prototype.Ic=function(a){return T(this,3,a)};g.x(hz,U);hz.prototype.j=function(a,b){return jk(this,2,gz,a,b)};
hz.zb=[2];g.x(Qoa,U);g.x(iz,U);iz.prototype.j=function(a,b){return jk(this,1,hz,a,b)};
iz.prototype.B=function(a,b){return jk(this,2,hz,a,b)};
iz.zb=[1,2];var lPa={iNa:0,gNa:1,hNa:2};var TOa={JTa:0,DTa:1,GTa:2,KTa:3,ETa:4,FTa:5,HTa:6,ITa:7};var UOa={NTa:0,MTa:1,LTa:2};var SOa={YXa:0,ZXa:1,XXa:2};var ROa={pYa:0,cYa:1,lYa:2,qYa:3,nYa:4,fYa:5,bYa:6,dYa:7,eYa:8,oYa:9,mYa:10,gYa:11,jYa:12,kYa:13,iYa:14,hYa:15,aYa:16};var OOa={Idb:0,Edb:1,Hdb:2,Gdb:3,Fdb:4};var NOa={Mdb:0,Kdb:1,Ldb:2,Jdb:3};var POa={Tdb:0,Pdb:1,Rdb:2,Ndb:3,Sdb:4,Odb:5,Qdb:6};var MOa={feb:0,heb:1,geb:2,Xdb:3,Vdb:4,Wdb:5,keb:6,Ydb:7,leb:8,beb:9,eeb:10,Udb:11,Zdb:12,jeb:13,ieb:14};var QOa={oeb:0,neb:1,meb:2};var $Oa={sjb:0,qjb:1,pjb:2,kjb:3,mjb:4,njb:5,jjb:6,ljb:7,rjb:8,ujb:9,ojb:10,hjb:11,ijb:12,tjb:13};var ZOa={wjb:0,vjb:1};var iPa={zjb:0,Ajb:1,xjb:2,yjb:3};var gPa={Wjb:0,Bjb:1,Vjb:2,Ujb:3,akb:4,Zjb:5,Tjb:19,Fjb:6,Hjb:7,Pjb:8,Gjb:24,Sjb:25,Qjb:20,Jjb:21,Djb:22,Rjb:23,Cjb:9,Ejb:10,Ijb:11,Kjb:12,Ljb:13,Mjb:14,Ojb:15,Njb:16,Xjb:17,Yjb:18};var aPa={fkb:0,ekb:1,gkb:2,bkb:3,dkb:4};var XOa={vkb:0,okb:1,jkb:2,skb:3,nkb:4,ukb:5,ikb:6,kkb:7,pkb:8,lkb:9,qkb:10,rkb:11,mkb:12,tkb:13};var cPa={Ckb:0,Akb:1,ykb:2,zkb:3,Bkb:4};var bPa={Gkb:0,Dkb:1,Ekb:2,Fkb:3};var YOa={Kkb:0,Jkb:1,Ikb:2};var hPa={Nkb:0,Lkb:1,Mkb:2};var jPa={klb:0,jlb:1,ilb:2,glb:3,hlb:4};var kPa={olb:0,mlb:1,llb:2,nlb:3};var Mnb={Mva:0,Jva:1,Kva:2,Hva:3,Lva:4,Iva:5};var KMa={Pga:0,Nga:1,Oga:2};var jLa={c7:0,AKa:1,lIa:2,mIa:3,jNa:4,FYa:5,Oqa:6};var kO={rya:0,Yxa:101,eya:102,Txa:103,Wxa:104,bya:105,cya:106,fya:107,gya:108,iya:109,jya:110,qya:111,dya:112,Zxa:113,hya:114,lya:115,sya:116,Vxa:117,aya:118,tya:119,mya:120,nya:121,Xxa:122,Uxa:123,kya:124,pya:125,oya:126};var MNa={Cya:0,zya:1,Aya:2,xya:3,yya:4,wya:5,Bya:6};var Nnb={tza:0,sza:1,qza:2,rza:3};var Onb={Fza:0,Dza:1,vza:2,Cza:3,uza:4,yza:5,Bza:6,Eza:7,Aza:8,xza:9,wza:10};var Pnb={Hza:0,Iza:1,Gza:2};g.x(Roa,U);g.x(Soa,U);g.x(jz,U);jz.prototype.getState=function(){return nk(this,1)};
jz.prototype.Ic=function(a){return Pk(this,1,a)};g.x(Toa,U);g.x(Uoa,U);g.x(Voa,U);g.x(Woa,U);g.x(kz,U);kz.prototype.ue=function(){return Mk(this,1)};
kz.prototype.setVideoId=function(a){return S(this,1,a)};g.x(lz,U);lz.prototype.setTrackingParams=function(a){return Vk(this,1,a)};g.x(mz,U);mz.prototype.hasVe=function(){return Kj(this,lz,2)};g.x(nz,U);nz.prototype.hasFeature=function(){return ui(jj(this,1))!=null};g.x(Xoa,U);g.x(Yoa,U);g.x(oz,U);oz.prototype.Ff=function(){return Nk(this,2)};
var Qnb=[1];g.x(Zoa,U);g.x($oa,U);g.x(apa,U);g.x(bpa,U);g.x(pz,U);pz.prototype.getVideoAspectRatio=function(){return xea(this,2)};g.x(cpa,U);g.x(dpa,U);g.x(epa,U);g.x(fpa,U);g.x(gpa,U);g.x(hpa,U);g.x(ipa,U);g.x(jpa,U);g.x(kpa,U);g.x(qz,U);qz.prototype.getId=function(){return Mk(this,1)};g.x(lpa,U);g.x(rz,U);g.x(sz,U);sz.prototype.j=function(a,b){return jk(this,5,rz,a,b)};
sz.zb=[5];g.x(mpa,U);g.x(npa,U);g.x(tz,U);tz.prototype.j=function(a,b){return jk(this,27,npa,a,b)};
tz.zb=[27];g.x(opa,U);g.x(ppa,U);g.x(qpa,U);g.x(rpa,U);var w2=[1,2,3,4];g.x(spa,U);g.x(tpa,U);g.x(upa,U);g.x(vpa,U);g.x(uz,U);uz.prototype.Gm=function(){return Lk(this,2)};g.x(wpa,U);g.x(xpa,U);g.x(ypa,U);g.x(vz,U);g.x(zpa,U);g.x(Apa,U);g.x(wz,U);wz.prototype.j=function(a,b){return Vj(this,1,ti,a,b)};
wz.zb=[1];g.x(xz,U);xz.prototype.Ff=function(){return Nk(this,3)};g.x(Bpa,U);g.x(Cpa,U);g.x(yz,U);g.x(zz,U);g.x(Dpa,U);g.x(Az,U);Az.prototype.j=function(a,b){return jk(this,2,zz,a,b)};
Az.prototype.B=function(a,b){return jk(this,3,zz,a,b)};
Az.zb=[2,3];g.x(Epa,U);g.x(Bz,U);g.x(Fpa,U);g.x(Cz,U);Cz.prototype.ue=function(){return g.fk(this,Bz,bk(this,x2,2))};
Cz.prototype.setVideoId=function(a){return hk(this,Bz,2,x2,a)};
Cz.prototype.getPlaylistId=function(){return g.fk(this,yz,bk(this,x2,4))};
Cz.prototype.getChannelId=function(){return g.fk(this,Cpa,bk(this,x2,10))};
var x2=[2,3,4,5,9,10];g.x(Dz,U);Dz.prototype.getType=function(){return Nk(this,1)};
Dz.prototype.ue=function(){return Mk(this,3)};
Dz.prototype.setVideoId=function(a){return S(this,3,a)};g.x(Gpa,U);g.x(Hpa,U);g.x(Ez,U);var KOa=[3];g.x(Ipa,U);g.x(Jpa,U);g.x(Fz,U);Fz.prototype.uf=function(){return Mk(this,2)};g.x(Kpa,U);g.x(Lpa,U);var Rnb=[1];g.x(Mpa,U);g.x(Npa,U);g.x(Opa,U);g.x(Ppa,U);g.x(Qpa,U);g.x(Rpa,U);g.x(Spa,U);g.x(Tpa,U);g.x(Gz,U);Gz.prototype.getStarted=function(){var a=a===void 0?!1:a;var b=Kda(jj(this,1));return lk(b,a)};g.x(Upa,U);g.x(Vpa,U);g.x(Hz,U);Hz.prototype.getDuration=function(){return nk(this,2)};
Hz.prototype.Nl=function(a){Pk(this,2,a)};g.x(Wpa,U);g.x(Iz,U);g.x(Jz,U);g.x(Xpa,U);g.x(Ypa,U);g.x(Kz,U);Kz.prototype.Fe=function(){return g.fk(this,Xpa,8)};
Kz.prototype.d$=function(){return Kj(this,Xpa,8)};
Kz.prototype.getVideoData=function(){return g.fk(this,Ypa,15)};
Kz.prototype.wH=function(a){gk(this,Ypa,15,a)};
Kz.zb=[4];g.x(Zpa,U);g.x(Lz,U);Lz.prototype.j=function(a){return S(this,2,a)};g.x(Mz,U);Mz.prototype.j=function(a){return S(this,1,a)};
Mz.zb=[3];g.x(Nz,U);Nz.prototype.j=function(a){return S(this,1,a)};
Nz.prototype.hasVe=function(){return Kj(this,lz,2)};g.x(Oz,U);Oz.prototype.j=function(a){return S(this,1,a)};
Oz.prototype.hasVe=function(){return Kj(this,lz,2)};g.x(Pz,U);Pz.prototype.j=function(a){return S(this,1,a)};
Pz.prototype.hasVe=function(){return Kj(this,lz,2)};g.x(Qz,U);Qz.prototype.j=function(a){return S(this,1,a)};
Qz.prototype.hasVe=function(){return Kj(this,lz,2)};g.x(cqa,U);g.x(Rz,U);Rz.prototype.getId=function(){return Mk(this,2)};g.x(Uz,U);Uz.prototype.getVisibilityState=function(){return Nk(this,5)};
Uz.zb=[16];g.x(dqa,U);g.x(Vz,U);Vz.prototype.getPlayerType=function(){return Nk(this,7)};
Vz.prototype.ue=function(){return Mk(this,19)};
Vz.prototype.setVideoId=function(a){return S(this,19,a)};
Vz.zb=[112,83,118,68];g.x(eqa,U);g.x(fqa,U);g.x(Xz,U);Xz.prototype.ue=function(){return Mk(this,1)};
Xz.prototype.setVideoId=function(a){return S(this,1,a)};
Xz.prototype.j=function(a,b){return jk(this,9,fqa,a,b)};
Xz.zb=[9];g.x(Yz,U);Yz.prototype.j=function(a,b){return jk(this,3,Xz,a,b)};
Yz.zb=[3];g.x(Zz,U);Zz.prototype.ue=function(){return Mk(this,1)};
Zz.prototype.setVideoId=function(a){return S(this,1,a)};g.x(gqa,U);g.x($z,U);$z.prototype.j=function(a,b){return jk(this,1,Zz,a,b)};
$z.prototype.B=function(a,b){return jk(this,2,gqa,a,b)};
$z.zb=[1,2];g.x(hqa,U);g.x(iqa,U);g.x(jqa,U);g.x(aA,U);aA.prototype.getId=function(){return Mk(this,1)};
aA.prototype.j=function(a,b){return Vj(this,2,Ei,a,b)};
aA.prototype.setVideoIds=function(a,b){return rea(this,2,Ei,a,b,yea)};
aA.zb=[2];g.x(kqa,U);g.x(lqa,U);g.x(mqa,U);g.x(bA,U);bA.prototype.j=function(a,b){return Vj(this,9,ti,a,b)};
bA.zb=[9];g.x(nqa,U);g.x(oqa,U);g.x(cA,U);cA.prototype.getId=function(){return Mk(this,1)};
cA.prototype.j=function(a,b){return jk(this,14,mqa,a,b)};
cA.prototype.B=function(a,b){return jk(this,17,nqa,a,b)};
cA.zb=[14,17];g.x(dA,U);dA.prototype.B=function(a,b){return jk(this,1,cA,a,b)};
dA.prototype.j=function(a,b){return jk(this,2,aA,a,b)};
dA.zb=[1,2];g.x(pqa,U);g.x(eA,U);eA.prototype.getOrigin=function(){return Mk(this,3)};
eA.prototype.ih=function(){return nk(this,6)};g.x(qqa,U);g.x(rqa,U);g.x(fA,U);
var fE=[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 Snb={Uya:0,Rya:1,Qya:2,Tya:3,Sya:4,Oya:5,Pya:6};var Tnb={YGa:0,HGa:1,KGa:2,IGa:3,NGa:4,JGa:5,rGa:6,TGa:7,BGa:8,kGa:9,CGa:10,OGa:11,LGa:12,uGa:13,pGa:14,sGa:15,XGa:16,lGa:17,mGa:18,UGa:19,vGa:20,qGa:21,SGa:22,eHa:23,dHa:24,ZGa:25,DGa:26,MGa:27,fHa:28,wGa:29,iGa:30,bHa:31,aHa:32,AGa:33,jHa:34,zGa:35,PGa:36,iHa:37,EGa:38,RGa:39,yGa:40,xGa:41,oGa:42,GGa:43,hHa:44,WGa:45,VGa:53,cHa:46,FGa:47,jGa:48,nGa:49,gHa:50,QGa:51,tGa:52};var Unb={XHa:0,GHa:1,JHa:2,HHa:3,MHa:4,IHa:5,uHa:6,SHa:7,AHa:8,mHa:9,BHa:10,NHa:11,KHa:12,xHa:13,sHa:14,vHa:15,WHa:16,oHa:17,pHa:18,THa:19,yHa:20,tHa:21,RHa:22,cIa:23,bIa:24,YHa:25,CHa:26,LHa:27,dIa:28,zHa:29,kHa:30,ZHa:31,nHa:32,hIa:33,OHa:34,gIa:35,DHa:36,QHa:37,rHa:38,FHa:39,fIa:40,VHa:41,UHa:49,aIa:42,EHa:43,lHa:44,qHa:45,eIa:46,PHa:47,wHa:48};var Vnb={dKa:0,cKa:1,eKa:2};var bNa={PIa:0,NIa:1,KIa:2,OIa:3,LIa:4,MIa:5};var Wnb={cJa:0,aJa:1,WIa:3,YIa:4,ZIa:5,bJa:6,XIa:7};var Xnb={iJa:0,fJa:1,hJa:2,gJa:3,eJa:4,dJa:5};var Ynb={SJa:0,TJa:1,RJa:2,QJa:3,PJa:4};var Znb={WJa:0,UJa:1,VJa:2};var $nb={jKa:0,kKa:1,lKa:2,iKa:3,gKa:4,hKa:5};var Oxa={UKa:0,BKa:1,HKa:2,IKa:4,OKa:8,JKa:16,KKa:32,TKa:64,SKa:128,DKa:256,FKa:512,MKa:1024,EKa:2048,GKa:4096,CKa:8192,LKa:16384,PKa:32768,NKa:65536,QKa:131072,RKa:262144};var LNa={ALa:0,zLa:1,yLa:2,xLa:4};var KNa={FLa:0,CLa:1,DLa:2,GLa:3,ELa:4,BLa:5};var aob={TFa:0,SFa:1,RFa:2};var bob={RTa:0,QTa:1,PTa:2};var cob={JUa:0,pUa:1,HUa:2,tUa:3,zUa:4,LUa:5,IUa:6,fUa:7,eUa:8,dUa:9,jUa:10,oUa:11,nUa:12,gUa:13,AUa:14,vUa:15,xUa:16,VTa:17,GUa:18,ZTa:19,wUa:20,UTa:21,yUa:22,mUa:23,WTa:24,YTa:25,DUa:26,KUa:27,EUa:28,uUa:29,hUa:30,kUa:31,lUa:32,cUa:33,MUa:34,aUa:35,iUa:36,BUa:37,XTa:38,STa:39,bUa:41,sUa:42,CUa:43,FUa:44,qUa:45,rUa:46,TTa:47};var dob={QUa:0,PUa:1,OUa:2,NUa:3};var YMa={Isa:0,Hsa:1,Gsa:2};var UMa={BVa:0,AVa:1,xVa:2,yVa:7,wVa:8,vVa:25,eVa:3,fVa:4,nVa:5,oVa:27,mVa:28,gVa:9,UUa:10,SUa:11,TUa:6,dVa:12,bVa:13,cVa:14,aVa:15,iVa:16,jVa:17,hVa:18,lVa:19,kVa:20,XUa:26,YUa:21,WUa:22,ZUa:23,VUa:24,DVa:34,CVa:35,FVa:39,EVa:29,sVa:30,tVa:32,uVa:33,qVa:36,rVa:38,pVa:37,zVa:31};var WMa={MVa:0,IVa:1,KVa:2,LVa:3,GVa:4,JVa:5,HVa:6};var VMa={SVa:0,QVa:1,RVa:2,OVa:3,PVa:4,NVa:5};var xMa={ZVa:0,TVa:1,VVa:2,UVa:3,WVa:4,XVa:5,YVa:6,aWa:7};var ZMa={AWa:0,uWa:1,zWa:2,wWa:3,xWa:4,vWa:5,yWa:6};var aNa={NWa:0,BWa:1,FWa:2,KWa:3,LWa:4,GWa:5,IWa:6,JWa:7,DWa:8,CWa:9,EWa:10,MWa:11,HWa:12};var $Ma={RWa:0,OWa:1,PWa:2,QWa:3};var YNa={mza:0,kza:1,lza:2,hza:3,iza:4,jza:5};var cOa={Y_a:0,X_a:1,Q_a:2,V_a:3,R_a:4,U_a:5,W_a:6,T_a:7,S_a:8};var xNa={s0a:0,k0a:1,t0a:2,r0a:4,o0a:8,n0a:16,m0a:32,p0a:64,l0a:128,q0a:256};var ZNa={M0a:0,G0a:1,L0a:2,D0a:3,v0a:4,B0a:5,w0a:6,x0a:7,z0a:8,E0a:9,I0a:10,H0a:11,J0a:12,y0a:13,A0a:14,C0a:15,F0a:16,u0a:17,K0a:18};var uNa={N_a:0,K_a:1,L_a:2,M_a:3};var ANa={f0a:0,h0a:1,e0a:2,a0a:3,g0a:4,b0a:5,c0a:6,d0a:7};var DMa={alb:0,Yva:1,BTa:2,KYa:3,MYa:4,NYa:5,HYa:6,zfb:7,dZa:8,cZa:9,IYa:10,LYa:11,fhb:12,Zka:13,kla:14,dla:15,s3a:16,F_a:17,eZa:18,hZa:19,j0a:20,gZa:21,Z_a:22,N0a:23,nZa:24,P_a:25,JYa:26,wfb:27,wdb:28,Y6a:29,Jsa:30,opb:31,O_a:32};var CMa={dlb:0,Sga:1,P0a:2,O0a:3,SUCCESS:4,lfb:5,FAILED:6,M6a:7,VIa:9,Zva:10,Rxa:11,CANCELLED:12,X6a:13,xdb:14,Cdb:15,xlb:16};var BMa={thb:0,khb:1,phb:2,ohb:3,lhb:4,mhb:5,ghb:6,shb:7,rhb:8,jhb:9,ihb:10,nhb:11,qhb:12,hhb:13};var PMa={h3a:0,T2a:1,Y2a:2,W2a:3,g3a:4,X2a:5,b3a:6,a3a:7,Z2a:8,U2a:9,c3a:10,e3a:11,f3a:12,V2a:13,d3a:14};var eob={r4a:0,q4a:1,p4a:2};var fob={u4a:0,s4a:1,t4a:2};var dNa={D6a:0,x6a:1,k6a:2,E6a:3,g6a:4,f6a:5,l6a:6,h6a:7,e6a:8,t6a:9,o6a:10,s6a:11,u6a:12,j6a:13,i6a:14,d6a:15,A6a:16,z6a:17,y6a:18,B6a:27,n6a:19,q6a:20,p6a:21,r6a:22,w6a:23,m6a:24,C6a:25,v6a:26};var cNa={K6a:0,J6a:1,I6a:2,H6a:3,F6a:4,G6a:5};var TMa={f8a:0,d8a:1,e8a:3,Z7a:4,b8a:2,c8a:5,a8a:6};var XMa={k8a:0,g8a:1,h8a:2,j8a:3,i8a:4,l8a:5};var gob={r8a:0,s8a:1};var FOa={y8a:0,w8a:1,x8a:2,z8a:3};var hob={obb:0,mbb:1,nbb:2};var iob={Ieb:0,Eeb:1,Feb:2,Geb:3,Heb:4};var zNa={Bbb:0,zbb:1,Abb:2};var bOa={pcb:0,mcb:1,ncb:2,ocb:3};var pNa={Bpa:0,Apa:1,ypa:2,zpa:3};var sNa={qqa:0,jqa:1,pqa:2,mqa:3,fqa:4,gqa:5,eqa:6,lqa:7,oqa:8,iqa:9,rqa:10,sqa:11,hqa:12,nqa:13,kqa:14};var SNa={Bra:0,vra:1,yra:2,zra:3,xra:4,Ara:5,Cra:6,wra:7};var jNa={Awa:0,zwa:1,Bwa:2};var GMa={Ykb:0,cva:1,dva:2,bva:3,eva:4};var FMa={Zkb:0,h4a:1,L2a:2};var VNa={cGa:0,YFa:1,UFa:2,bGa:3,WFa:4,ZFa:5,XFa:6,VFa:7,aGa:8};var XNa={aKa:0,ZJa:1,YJa:2};var RNa={ATa:0,zTa:1,yTa:2};var UNa={wYa:0,vYa:1,uYa:2};var QNa={D7a:0,B7a:1,C7a:2};var nNa={pfb:0,ofb:1,nfb:2};var job={USa:0,QSa:1,RSa:2,SSa:3,TSa:4,VSa:5};var kob={q3a:0,n3a:1,l3a:2,i3a:3,m3a:4,o3a:5,j3a:6,k3a:7,p3a:8,r3a:9};var lob={Rva:0,Nva:5,Qva:4,Ova:2,Pva:3};var mob={Fgb:0,ggb:1,Jgb:2,Kgb:3,Hgb:4,Ggb:16,Igb:47,bgb:17,hgb:33,agb:35,Sfb:36,dgb:34,Egb:38,fgb:45,mgb:8,Yfb:39,Vfb:40,Ofb:41,Rfb:42,Ufb:43,Nfb:46,Qfb:44,egb:5,lgb:6,Dgb:7,Cgb:9,Pfb:10,Bgb:11,Tfb:12,Agb:13,Zfb:14,kgb:15,jgb:18,igb:19,Xfb:20,cgb:21,Wfb:22,xgb:23,zgb:24,pgb:25,ygb:26,ngb:27,tgb:28,ogb:29,sgb:30,ugb:31,qgb:32,vgb:37,wgb:48};var nob={Ngb:0,Mgb:1,Ogb:2};var EOa={jpb:0,Tob:1,apb:2,Zob:3,Sob:4,kpb:5,gpb:6,Uob:7,Vob:8,Yob:9,Xob:12,Pob:10,hpb:11,cpb:13,dpb:14,lpb:15,bpb:16,epb:17,Qob:18,fpb:19,Rob:20,mpb:21,Wob:22,ipb:23};var yOa={YKa:0,WKa:1,XKa:2,VKa:3};g.x(sqa,U);g.x(gA,U);gA.prototype.ue=function(){return mk(this,bk(this,XD,1))};
gA.prototype.setVideoId=function(a){return Zj(this,1,XD,Fi(a))};
gA.prototype.getPlaylistId=function(){return mk(this,bk(this,XD,2))};
var XD=[1,2];g.x(tqa,U);tqa.zb=[3];var GS=new g.Pw("changeKeyedMarkersVisibilityCommand");var oob=new g.Pw("changeMarkersVisibilityCommand");var oXa=new g.Pw("loadMarkersCommand");var pob=new g.Pw("suggestedActionDataViewModel");var J2a=new g.Pw("productListItemRenderer");var qob=new g.Pw("shoppingOverlayRenderer");var JXa=new g.Pw("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var rob=new g.Pw("adFeedbackEndpoint");var sob=new g.Pw("menuEndpoint");var Z1a=new g.Pw("phoneDialerEndpoint");var X1a=new g.Pw("sendSmsEndpoint");var HXa=new g.Pw("copyTextEndpoint");var tob=new g.Pw("shareEndpoint"),uob=new g.Pw("shareEntityEndpoint"),vob=new g.Pw("shareEntityServiceEndpoint"),wob=new g.Pw("webPlayerShareEntityServiceEndpoint");g.dF=new g.Pw("urlEndpoint");g.ES=new g.Pw("watchEndpoint");var xob=new g.Pw("watchPlaylistEndpoint");var hOa={Fsa:0,Esa:1,Dsa:2,Bsa:3,Csa:4};var wNa={bZa:0,ZYa:1,aZa:2,YYa:3};var yob={sZa:0,rZa:1,pZa:2,qZa:3};var zob={wZa:0,tZa:1,uZa:2,vZa:3,xZa:4};var Aob={p_a:0,j_a:1,q_a:2,l_a:3,c_a:4,TZa:37,EZa:5,BZa:36,GZa:38,OZa:39,PZa:40,KZa:41,o_a:42,HZa:27,YZa:31,a_a:6,d_a:7,e_a:8,f_a:9,g_a:10,h_a:11,k_a:29,IZa:30,ZZa:32,SZa:12,RZa:13,DZa:14,XZa:15,yZa:16,AZa:35,FZa:43,JZa:28,VZa:17,UZa:18,WZa:19,n_a:20,NZa:25,CZa:33,r_a:21,QZa:22,MZa:26,s_a:46,LZa:34,b_a:44,m_a:45,i_a:23,zZa:24};var fOa={J_a:0,H_a:1,G_a:2,I_a:3};var lO={Bdb:0,ydb:1,Adb:2,zdb:3};var EMa={ehb:0,Rgb:1,Qgb:2,Wgb:3,dhb:4,Sgb:5,Zgb:6,Xgb:7,Ygb:8,Tgb:9,ahb:10,Ugb:11,bhb:12,Vgb:13};var tNa={i0a:0,oZa:1,fZa:2,lZa:3,mZa:4,iZa:5,jZa:6,kZa:7};var Bob={n8a:0,m8a:1};var Cob={Meb:0,Leb:1,Keb:2,Neb:3,Jeb:4};var Dob={Qeb:0,Peb:1,Oeb:2};var Eob={afb:0,Ueb:1,Veb:2,Web:5,Zeb:7,bfb:8,Xeb:9,Yeb:10};var Fob={Teb:0,Seb:1,Reb:2};var KZa=new g.Pw("compositeVideoOverlayRenderer");var Gob=new g.Pw("miniplayerRenderer");var FXa=new g.Pw("paidContentOverlayRenderer");var UWa=new g.Pw("playerMutedAutoplayOverlayRenderer"),VWa=new g.Pw("playerMutedAutoplayEndScreenRenderer");var dWa=new g.Pw("unserializedPlayerResponse"),WWa=new g.Pw("unserializedPlayerResponse");var dOa={E_a:0,B_a:1,z_a:2,y_a:3,x_a:4,w_a:5,A_a:6,D_a:7,v_a:8,C_a:9,u_a:10,t_a:11};var Hob=new g.Pw("playlistEditEndpoint");var y2;g.cM=new g.Pw("buttonRenderer");y2=new g.Pw("toggleButtonRenderer");var vNa={blb:0,KPa:4,F7a:1,QIa:2,fra:3,LPa:5,I7a:6,RIa:7,SIa:8,TIa:9,UIa:10};var oHa=new g.Pw("counterfactualRenderer");var Iob=new g.Pw("resolveUrlCommandMetadata");var Job=new g.Pw("modifyChannelNotificationPreferenceEndpoint");var tBa=new g.Pw("pingingEndpoint");var Kob=new g.Pw("unsubscribeEndpoint");var lLa={flb:0,CXa:1,yXa:2,xXa:3,YWa:71,XWa:4,AXa:5,DXa:6,BXa:16,zXa:69,ZWa:70,UWa:56,VWa:64,WWa:65,lXa:7,bXa:8,gXa:9,cXa:10,fXa:11,eXa:12,dXa:13,iXa:43,oXa:44,pXa:45,qXa:46,rXa:47,sXa:48,tXa:49,uXa:50,vXa:51,wXa:52,mXa:53,nXa:54,kXa:63,aXa:14,jXa:15,hXa:68,bob:17,kob:18,rnb:19,aob:20,Nnb:21,cob:22,jnb:23,Vnb:24,Qnb:25,wnb:26,hnb:27,Dnb:28,Ynb:29,enb:30,dnb:31,fnb:32,knb:33,Wnb:34,Unb:35,Onb:36,Snb:37,dob:38,znb:39,job:40,Fnb:41,unb:42,eob:55,Rnb:66,Eob:67,Jnb:57,Xnb:58,lnb:59,gnb:60,Anb:61,Pnb:62};var Lob={i9a:0,m9a:1,W8a:2,O8a:3,e9a:4,g9a:5,n9a:6,B8a:7,C8a:8,J8a:9,Y8a:10,P8a:11,T8a:12,R8a:13,S8a:14,U8a:15,V8a:19,E8a:16,d9a:17,b9a:18,G8a:20,Q8a:21,D8a:22,j9a:23,M8a:24,F8a:25,h9a:26,I8a:27,c9a:28,X8a:29,L8a:30,f9a:31,l9a:32,k9a:33,N8a:34,K8a:35,H8a:36,A8a:37,Z8a:38,a9a:39};g.US=new g.Pw("subscribeButtonRenderer");var Mob=new g.Pw("subscribeEndpoint");var qNa={Gbb:0,Dbb:1,Ebb:2,Fbb:3};var zZa=new g.Pw("buttonViewModel");var fPa={E9a:0,F9a:1,D9a:2,z9a:3,C9a:4,A9a:5,y9a:6,B9a:7};var pHa=new g.Pw("qrCodeRenderer");var MMa={Cva:0,Ava:1,xva:2,yva:3,zva:4,Bva:5};var nVa={fTa:"LIVING_ROOM_APP_MODE_UNSPECIFIED",cTa:"LIVING_ROOM_APP_MODE_MAIN",bTa:"LIVING_ROOM_APP_MODE_KIDS",dTa:"LIVING_ROOM_APP_MODE_MUSIC",eTa:"LIVING_ROOM_APP_MODE_UNPLUGGED",aTa:"LIVING_ROOM_APP_MODE_GAMING"};var fXa=new g.Pw("autoplaySwitchButtonRenderer");var lWa,O3a,mWa,Z3a;lWa=new g.Pw("decoratedPlayerBarRenderer");O3a=new g.Pw("chapteredPlayerBarRenderer");mWa=new g.Pw("multiMarkersPlayerBarRenderer");Z3a=new g.Pw("chapterRenderer");g.S3a=new g.Pw("markerRenderer");var kXa=new g.Pw("desktopOverlayConfigRenderer");var iXa=new g.Pw("gatedActionsOverlayViewModel");var W3a=new g.Pw("heatMarkerRenderer");var V3a=new g.Pw("heatmapRenderer");var nXa=new g.Pw("watchToWatchTransitionRenderer");var KXa=new g.Pw("playlistPanelRenderer");var Nob=new g.Pw("productUpsellSuggestedActionViewModel");var Oob=new g.Pw("suggestedActionTimeRangeTrigger"),Pob=new g.Pw("suggestedActionsRenderer"),Qob=new g.Pw("suggestedActionRenderer");var X3a=new g.Pw("timedMarkerDecorationRenderer");var Rob={Dob:0,zob:1,Aob:2,Cob:3,Bob:4,yob:5,xob:6,tob:7,vob:8,wob:9,uob:10,pob:11,nob:12,lob:13,sob:14,oob:15,qob:16,rob:17};var eO={c7:0,USER:74,yqa:459,TRACK:344,zqa:493,Mqa:419,gMa:494,Asa:337,MINUTE:237,HOUR:236,DAY:3,WEEK:78,Fob:248,MONTH:79,QUARTER:246,YEAR:247,QYa:382,PYa:383,OYa:384,rfb:235,VIDEO:4,Iob:186,lwa:126,Deb:127,twa:117,J5a:125,A7a:151,Mya:515,dwa:6,wIa:132,BIa:154,zIa:222,AIa:155,xIa:221,yIa:156,Ceb:209,Beb:210,Mmb:7,a6a:124,Cbb:96,BYa:97,Ymb:93,wRa:574,Zmb:275,sra:110,rra:120,o4a:121,qKa:72,Fmb:351,o9a:495,Dmb:377,Gmb:378,eGa:496,fGa:497,p9a:498,tra:381,Emb:386,anb:387,dqa:410,eLa:437,eAa:338,pra:380,
Qga:352,Q2a:113,R2a:114,Ifb:82,Jfb:112,Kya:354,Dfb:21,cqa:556,K2a:567,Z6a:566,Lgb:568,dza:523,fza:375,eza:514,ela:302,xwa:136,rKa:85,Ala:22,Lob:23,Mfb:252,Lfb:253,R1a:562,wwa:563,nra:254,Yka:165,Aeb:304,ULa:421,t7a:463,PLAYLIST:63,Kmb:27,Jmb:28,Lmb:29,reb:30,ueb:31,teb:324,veb:32,Dra:398,npb:613,yeb:399,zeb:400,DYa:411,CYa:413,EYa:414,GYa:415,T5a:39,U5a:143,Y5a:144,P5a:40,Q5a:145,S5a:146,bKa:625,xmb:504,X5a:325,F3a:262,H3a:263,G3a:264,J3a:355,iLa:615,jLa:616,M7a:617,K3a:249,M3a:250,L3a:251,Gva:46,
o8a:49,q8a:50,Rka:62,Cfb:561,cWa:105,ZLa:242,vdb:397,x4a:83,P2a:135,Zpa:87,bqa:153,aqa:187,Upa:89,Tpa:88,Vpa:139,Xpa:91,Wpa:104,Ypa:137,iva:99,plb:100,zYa:326,Eya:148,Dya:149,peb:150,qeb:395,Qqa:166,Wqa:199,Rqa:534,Vqa:167,Sqa:168,ara:169,cra:170,Tqa:171,Uqa:172,Xqa:179,Yqa:180,dra:512,Zqa:513,Flb:200,qlb:476,Glb:213,Nqa:191,I3a:192,C3a:305,D3a:306,O3a:329,icb:327,jcb:328,y3a:195,z3a:197,S2a:301,t3a:223,u3a:224,SLa:227,hLa:396,hMa:356,aMa:490,iMa:394,Ksa:230,gra:297,bmb:298,RLa:342,Nya:346,NFa:245,
Kfb:261,uKa:265,zKa:266,vKa:267,sKa:268,tKa:269,yKa:270,wKa:271,xKa:272,KSa:303,xRa:391,yRa:503,ARa:277,WSa:499,YSa:500,ISa:501,XSa:611,ZSa:612,MSa:278,zRa:489,LSa:598,Nza:332,Pza:333,Lza:334,Oza:335,Mza:336,hva:340,LLa:341,wmb:349,vmb:420,W5a:281,R5a:282,p8a:286,seb:288,V5a:291,Z5a:292,tRa:295,xeb:296,sRa:299,gla:417,lMa:308,Mob:309,Nob:310,Oob:311,Q3a:590,R3a:591,jma:350,Ilb:418,JJa:424,rlb:425,RYa:429,AYa:430,fMa:426,rdb:460,yYa:427,c7a:428,d7a:542,a7a:461,kcb:464,iWa:431,fWa:432,gWa:589,nWa:433,
eWa:434,kWa:435,lWa:436,hWa:438,mWa:439,oWa:453,jWa:454,dWa:472,Xkb:557,b7a:558,ora:559,qra:560,lra:565,G4a:545,B4a:546,Q4a:547,T4a:548,S4a:549,R4a:550,H4a:551,P4a:552,y4a:554,D4a:577,C4a:587,F4a:579,A4a:580,mra:583,V4a:584,W4a:586,J4a:516,n2a:621,K4a:553,L4a:570,N4a:571,I4a:572,O4a:573,M4a:588,U4a:585,X1a:592,V1a:593,W1a:594,U1a:595,Wmb:604,Umb:605,Vmb:606,Xmb:607,Tmb:608,vfb:520,z4a:521,E4a:522,bMa:543,PSa:618,Ukb:619,uRa:620,g4a:440,i4a:441,m4a:442,e4a:448,f4a:449,j4a:450,n4a:451,l4a:491,POST:445,
d4a:446,k4a:447,Z4a:456,SYa:483,zla:569,Wva:576,i5a:529,Xva:581,Efb:555,Y4a:458,t8a:480,u8a:502,v8a:482,MLa:452,r9a:465,s9a:466,Sxa:467,X4a:468,Qza:469,wva:470,vva:471,KLa:475,Mwa:477,OLa:478,GIa:479,P3a:484,N3a:485,B3a:486,A3a:487,lla:488,pza:492,Sza:505,cza:506,Nmb:507,xNa:508,EIa:509,HIa:510,JIa:511,Tlb:524,Hmb:530,K7a:531,Rza:532,w9a:533,J7a:575,PLa:535,kMa:536,VLa:537,dMa:538,QLa:539,YLa:540,TLa:541,CTa:578,Uka:582,T3a:596,vwa:597,BRa:599,cSa:600,dSa:601,NSa:602,OSa:603,PODCAST:609,uwa:610,eMa:614,
wMa:622,xMa:623,vMa:624,gGa:626,zNa:627};var LRa=new g.Pw("cipher");var eWa=new g.Pw("playerVars");var XWa=new g.Pw("playerVars");var z2=g.Ua.window,Sob,Tob,hA=(z2==null?void 0:(Sob=z2.yt)==null?void 0:Sob.config_)||(z2==null?void 0:(Tob=z2.ytcfg)==null?void 0:Tob.data_)||{};g.Va("yt.config_",hA);var lA=[];var Eqa=/^[\w.]*$/,zqa={q:!0,search_query:!0},yqa=String(pA);var Fqa=new function(){var a=window.document;this.j=window;this.B=a};
g.Va("yt.ads_.signals_.getAdSignalsString",function(a){return qA(yA(a))});g.kb();var Iqa="XMLHttpRequest"in g.Ua?function(){return new XMLHttpRequest}:null;var Uob="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.ra(Uob);var Qqa={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"},Rqa="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.ra(Uob)),Zqa=!1,Nqa=Sqa,Wqa=Pqa;g.x(IA,wb);LA.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):this.C===1&&a?(a=a.call(c,this.B))&&typeof a.then==="function"?a:NA(a):this.C===2&&b?(a=b.call(c,this.B))&&typeof a.then==="function"?a:MA(a):this};
LA.prototype.getValue=function(){return this.B};
LA.prototype.$goog_Thenable=!0;var OA=!1;var yC=XA||YA;var tra=/^([0-9\.]+):([0-9\.]+)$/;g.x(yra,wb);yra.prototype.name="BiscottiError";g.x(gB,wb);gB.prototype.name="BiscottiMissingError";var Ara={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},hB=null;var Gba=pa(["data-"]),Jra={};var Vob=0,Kra=g.Nc?"webkit":Js?"moz":g.Ks?"ms":g.mR?"o":"",Wob=g.Wa("ytDomDomGetNextId")||function(){return++Vob};
g.Va("ytDomDomGetNextId",Wob);var Xra={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};mB.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
mB.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
mB.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var nB=g.Ua.ytEventsEventsListeners||{};g.Va("ytEventsEventsListeners",nB);var $ra=g.Ua.ytEventsEventsCounter||{count:0};g.Va("ytEventsEventsCounter",$ra);var esa=Kd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),asa=Kd(function(){var a=!1;
try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});var A2;A2=window;g.iC=A2.ytcsi&&A2.ytcsi.now?A2.ytcsi.now:A2.performance&&A2.performance.timing&&A2.performance.now&&A2.performance.timing.navigationStart?function(){return A2.performance.timing.navigationStart+A2.performance.now()}:function(){return(new Date).getTime()};g.lb(rB,g.I);rB.prototype.Y=function(a){a.j===void 0&&Yra(a);var b=a.j;a.B===void 0&&Yra(a);this.j=new g.Ge(b,a.B)};
rB.prototype.au=function(){return this.j||new g.Ge};
rB.prototype.ra=function(){if(this.j){var a=(0,g.iC)();if(this.D!=0){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]=Math.abs((d-this.G)/this.G)>.5?1:0;for(c=b=0;c<4;c++)b+=this.B[c]||0;b>=3&&this.N();this.G=d}this.D=a;this.K=this.j;this.C=(this.C+1)%4}};
rB.prototype.ya=function(){g.EA(this.Z);g.pB(this.va)};g.x(sB,g.I);sB.prototype.T=function(a,b,c,d,e){c=g.nA((0,g.ib)(c,d||this.rb));c={target:a,name:b,callback:c};var f;e&&esa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.N.push(c);return c};
sB.prototype.Oc=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}};
sB.prototype.ya=function(){g.uB(this);g.I.prototype.ya.call(this)};vB.prototype.clone=function(){var a=new vB,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]=ab(c)=="object"?g.jd(c):c}return a};var mYa=["att/get"],b0a=["embedded_player"],Xob=["share/get_share_panel"],Yob=["share/get_web_player_share_panel"],Zob=["feedback"],$ob=["notification/modify_channel_preference"],hgb=["player"],apb=["browse/edit_playlist"],bpb=["subscription/subscribe"],cpb=["subscription/unsubscribe"],lgb=["next","unplugged/watch_next"];var gsa;g.wB=Kd(function(){var a=new Nla;return a.isAvailable()?new g.ew(a):null});
gsa=Kd(function(){var a=new Ola;return a.isAvailable()?new g.ew(a):null});BB.prototype.UE=function(a,b){a={};var c=[];"SESSION_ID"in hA&&c.push({key:"u",value:g.jA("SESSION_ID")});if(c=tfa(c))a.Authorization=c,c=b=b==null?void 0:b.sessionIndex,c===void 0&&(c=Number(g.jA("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.FA("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in hA||(a["X-Origin"]=window.location.origin),b===void 0&&"DELEGATED_SESSION_ID"in hA&&(a["X-Goog-PageId"]=g.jA("DELEGATED_SESSION_ID"));return a};var MC={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var EB=g.Wa("ytglobal.prefsUserPrefsPrefs_")||{};g.Va("ytglobal.prefsUserPrefsPrefs_",EB);var nsa;g.k=msa.prototype;g.k.get=function(a,b){rsa(a);qsa(a);a=EB[a]!==void 0?EB[a].toString():null;return a!=null?a:b?b:""};
g.k.set=function(a,b){rsa(a);qsa(a);if(b==null)throw Error("ExpectedNotNull");EB[a]=b.toString()};
g.k.remove=function(a){rsa(a);qsa(a);delete EB[a]};
g.k.save=function(){var a=!0;g.FA("web_secure_pref_cookie_killswitch")&&(a=!1);g.QA(this.j,this.dump(),63072E3,this.B,a)};
g.k.clear=function(){g.eba(EB)};
g.k.dump=function(){var a=[],b;for(b in EB)EB.hasOwnProperty(b)&&a.push(b+"="+encodeURIComponent(String(EB[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])&&(EB[d]=c.toString())}};var tsa={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"},bua={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},cua={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},vsa={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.x(g.FB,Error);MB.prototype.Ui=function(a,b){return NB(a,1,b)};
MB.prototype.J7=function(a){(a=this.j.get(a))&&a()};g.Wa("yt.scheduler.instance.timerIdMap_");g.x(PB,MB);PB.prototype.ek=function(a){if(a===void 0||!Number.isNaN(Number(a))){var b=g.Wa("yt.scheduler.instance.cancelJob");b?b(a):g.DA(a)}};
PB.prototype.start=function(){var a=g.Wa("yt.scheduler.instance.start");a&&a()};
PB.prototype.pause=function(){var a=g.Wa("yt.scheduler.instance.pause");a&&a()};
g.zv=g.QB();TB.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.j)try{this.j.set(a,b,Date.now()+c*1E3);return}catch(f){}var e="";if(d)try{e=escape(g.qn(b))}catch(f){return}else e=escape(b);g.QA(a,e,c,this.B)};
TB.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.RA(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
TB.prototype.remove=function(a){this.j&&this.j.remove(a);g.dra(a,"/",this.B)};
TB.prototype.getCreationTime=function(a){return this.j&&(a=(this.j.B(a)||{}).creation,typeof a==="number")?a:null};var ysa=function(){var a;return function(){a||(a=new TB("ytidb"));return a}}();var WB=[],UB,XB=!1;var B2={},Dsa=(B2.AUTH_INVALID="No user identifier specified.",B2.EXPLICIT_ABORT="Transaction was explicitly aborted.",B2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",B2.MISSING_INDEX="Index not created.",B2.MISSING_OBJECT_STORES="Object stores not created.",B2.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",B2.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",B2.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",B2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",B2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",B2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",B2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",B2),C2={},Esa=(C2.AUTH_INVALID="ERROR",C2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",C2.EXPLICIT_ABORT="IGNORED",
C2.IDB_NOT_SUPPORTED="ERROR",C2.MISSING_INDEX="WARNING",C2.MISSING_OBJECT_STORES="ERROR",C2.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",C2.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",C2.QUOTA_EXCEEDED="WARNING",C2.QUOTA_MAYBE_EXCEEDED="WARNING",C2.UNKNOWN_ABORT="WARNING",C2.INCOMPATIBLE_DB_VERSION="WARNING",C2),D2={},Fsa=(D2.AUTH_INVALID=!1,D2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,D2.EXPLICIT_ABORT=!1,D2.IDB_NOT_SUPPORTED=!1,D2.MISSING_INDEX=!1,D2.MISSING_OBJECT_STORES=!1,D2.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,D2.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,D2.QUOTA_EXCEEDED=!1,D2.QUOTA_MAYBE_EXCEEDED=!0,D2.UNKNOWN_ABORT=!0,D2.INCOMPATIBLE_DB_VERSION=!1,D2);g.x(g.bC,g.FB);g.x(Gsa,g.bC);g.x(cC,Error);var Hsa=["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.gC.all=function(a){return new g.gC(new fC(function(b,c){var d=[],e=a.length;e===0&&b(d);for(var f={GA:0};f.GA<a.length;f={GA:f.GA},++f.GA)g.gC.resolve(a[f.GA]).then(function(h){return function(l){d[h.GA]=l;e--;e===0&&b(d)}}(f)).catch(function(h){c(h)})}))};
g.gC.resolve=function(a){return new g.gC(new fC(function(b,c){a instanceof g.gC?a.then(b,c):b(a)}))};
g.gC.reject=function(a){return new g.gC(new fC(function(b,c){c(a)}))};
g.gC.prototype.then=function(a,b){var c=this,d=a!=null?a:Ksa,e=b!=null?b:Jsa;return new g.gC(new fC(function(f,h){c.state.status==="PENDING"?(c.j.push(function(){Msa(c,c,d,f,h)}),c.B.push(function(){Nsa(c,c,e,f,h)})):c.state.status==="FULFILLED"?Msa(c,c,d,f,h):c.state.status==="REJECTED"&&Nsa(c,c,e,f,h)}))};
g.gC.prototype.catch=function(a){return this.then(void 0,a)};g.k=Usa.prototype;g.k.add=function(a,b,c){return g.lC(this,[a],{mode:"readwrite",Pb:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return g.lC(this,[a],{mode:"readwrite",Pb:!0},function(b){return b.objectStore(a).clear()})};
g.k.close=function(){this.j.close();var a;((a=this.options)==null?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return g.lC(this,[a],{mode:"readonly",Pb:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return g.lC(this,[a],{mode:"readwrite",Pb:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return g.lC(this,[a],{mode:"readonly",Pb:!0},function(c){return c.objectStore(a).get(b)})};
g.k.getAll=function(a,b,c){return g.lC(this,[a],{mode:"readonly",Pb:!0},function(d){return d.objectStore(a).getAll(b,c)})};
g.k.objectStoreNames=function(){return Array.from(this.j.objectStoreNames)};
g.k.getName=function(){return this.j.name};
g.k=Vsa.prototype;g.k.add=function(a,b){return hC(this.j.add(a,b))};
g.k.autoIncrement=function(){return this.j.autoIncrement};
g.k.clear=function(){return hC(this.j.clear()).then(function(){})};
g.k.count=function(a){return hC(this.j.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?Zsa(this,a):hC(this.j.delete(a))};
g.k.get=function(a){return hC(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?hC(this.j.getAll(a,b)):$sa(this,a,b)};
g.k.index=function(a){try{return new eta(this.j.index(a))}catch(b){if(b instanceof Error&&b.name==="NotFoundError")throw new cC(a,this.j.name);throw b;}};
g.k.getName=function(){return this.j.name};
g.k.keyPath=function(){return this.j.keyPath};
oC.prototype.abort=function(){this.j.abort();this.B=!0;throw new g.bC("EXPLICIT_ABORT");};
oC.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.C.get(a);b||(b=new Vsa(a),this.C.set(a,b));return b};
g.k=eta.prototype;g.k.count=function(a){return hC(this.j.count(a))};
g.k.delete=function(a){return g.sC(this,{query:a},function(b){return b.delete().then(function(){return g.rC(b)})})};
g.k.get=function(a){return hC(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?hC(this.j.getAll(a,b)):fta(this,a,b)};
g.k.keyPath=function(){return this.j.keyPath};
g.k.unique=function(){return this.j.unique};
tC.prototype.delete=function(){return hC(this.cursor.delete()).then(function(){})};
tC.prototype.getValue=function(){return this.cursor.value};
tC.prototype.update=function(a){return hC(this.cursor.update(a))};vC.prototype.B=function(a,b,c){c=c===void 0?{}:c;return hta(a,b,c)};
vC.prototype.delete=function(a){a=a===void 0?{}:a;return uC(this.name,a)};
vC.prototype.open=function(){function a(){var f,h,l,m,n,p,q,r,t,u;return g.H(function(w){switch(w.j){case 1:return h=(f=Error().stack)!=null?f:"",g.Ba(w,2),g.z(w,c.B(c.name,c.options.version,e),4);case 4:for(var A=l=w.B,C=c.options,F=[],G=g.v(Object.keys(C.As)),K=G.next();!K.done;K=G.next()){K=K.value;var N=C.As[K],R=N.Gda===void 0?Number.MAX_VALUE:N.Gda;!(A.j.version>=N.Kn)||A.j.version>=R||A.j.objectStoreNames.contains(K)||F.push(K)}m=F;if(m.length===0){w.Ja(5);break}n=Object.keys(c.options.As);
p=l.objectStoreNames();if(c.G<g.GA("ytidb_reopen_db_retries",0))return c.G++,l.close(),YB(new g.bC("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),w.return(a());if(!(c.D<g.GA("ytidb_remake_db_retries",1))){w.Ja(6);break}c.D++;return g.z(w,c.delete(),7);case 7:return YB(new g.bC("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),w.return(a());case 6:throw new Gsa(p,n);case 5:return w.return(l);case 2:q=
g.Da(w);if(q instanceof DOMException?q.name!=="VersionError":"DOMError"in self&&q instanceof DOMError?q.name!=="VersionError":!(q instanceof Object&&"message"in q)||q.message!=="An attempt was made to open a database using a lower version than the existing version."){w.Ja(8);break}return g.z(w,c.B(c.name,void 0,Object.assign({},e,{upgrade:void 0})),9);case 9:r=w.B;t=r.j.version;if(c.options.version!==void 0&&t>c.options.version+1)throw r.close(),c.C=!1,ita(c,t);return w.return(r);case 8:throw b(),
q instanceof Error&&!g.FA("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),Isa(q,c.name,"",(u=c.options.version)!=null?u:-1);}})}
function b(){c.j===d&&(c.j=void 0)}
var c=this;if(!this.C)throw ita(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,Oea:b,upgrade:this.options.upgrade};return this.j=d=a()};var jta=new vC("YtIdbMeta",{As:{databases:{Kn:1}},upgrade:function(a,b){b(1)&&g.jC(a,"databases",{keyPath:"actualName"})}});var pta,nta=new function(){}(new function(){});new g.No;g.x(CC,vC);CC.prototype.B=function(a,b,c){c=c===void 0?{}:c;return(this.options.shared?uta:tta)(a,b,Object.assign({},c))};
CC.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?yta:vta)(this.name,a)};var dpb={},Ata=g.DC("ytGcfConfig",{As:(dpb.coldConfigStore={Kn:1},dpb.hotConfigStore={Kn:1},dpb),shared:!1,upgrade:function(a,b){b(1)&&(g.pC(g.jC(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.pC(g.jC(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.x(Gta,g.I);Gta.prototype.ya=function(){for(var a=g.v(this.B),b=a.next();!b.done;b=a.next()){var c=this.j;b=c.indexOf(b.value);b>=0&&c.splice(b,1)}this.B.length=0;g.I.prototype.ya.call(this)};JC.prototype.Ms=function(a){this.hotHashData=a;g.Va("yt.gcf.config.hotHashData",this.hotHashData||null)};var epb=typeof TextEncoder!=="undefined"?new TextEncoder:null,wua=epb?function(a){return epb.encode(a)}:function(a){a=g.Ag(a);
for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};var wAa={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},zAa={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};NC.prototype.Pk=function(){return{version:this.version,args:this.args}};OC.prototype.toString=function(){return this.topic};var fpb=g.Wa("ytPubsub2Pubsub2Instance")||new g.aw;g.aw.prototype.subscribe=g.aw.prototype.subscribe;g.aw.prototype.unsubscribeByKey=g.aw.prototype.Uh;g.aw.prototype.publish=g.aw.prototype.publish;g.aw.prototype.clear=g.aw.prototype.clear;g.Va("ytPubsub2Pubsub2Instance",fpb);var QC=g.Wa("ytPubsub2Pubsub2SubscribedKeys")||{};g.Va("ytPubsub2Pubsub2SubscribedKeys",QC);var RC=g.Wa("ytPubsub2Pubsub2TopicToKeys")||{};g.Va("ytPubsub2Pubsub2TopicToKeys",RC);var fua=g.Wa("ytPubsub2Pubsub2IsAsync")||{};
g.Va("ytPubsub2Pubsub2IsAsync",fua);g.Va("ytPubsub2Pubsub2SkipSubKey",null);var mua=void 0,kua=void 0;var sua=g.GA("max_body_size_to_compress",5E5),tua=g.GA("min_body_size_to_compress",500),UC=!0,XC=0,WC=0,xua=g.GA("compression_performance_threshold_lr",250),yua=g.GA("slow_compressions_before_abandon_count",4),oua=!1,TC=new Map,vua=1,uua=!0;g.k=ZC.prototype;g.k.writeThenSend=function(a,b){var c=this;b=b===void 0?{}:b;if(YC(this)&&this.j){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Nh.set(d,this.Df).then(function(e){d.id=e;c.ph.Mh()&&c.vF(d)}).catch(function(e){c.vF(d);
$C(c,e)})}else this.sendFn(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=b===void 0?{}:b;if(YC(this)&&this.j){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.gb&&this.gb("nwl_skip_retry")&&(e.skipRetry=c);if(this.ph.Mh()||this.gb&&this.gb("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(m.j==1)return g.z(m,d.Nh.set(e,d.Df).catch(function(n){$C(d,n)}),2);
f(h,l);g.Aa(m)})}}this.sendFn(a,b,e.skipRetry)}else this.Nh.set(e,this.Df).catch(function(h){d.sendFn(a,b,e.skipRetry);
$C(d,h)})}else this.sendFn(a,b,this.gb&&this.gb("nwl_skip_retry")&&c)};
g.k.sendAndWrite=function(a,b){var c=this;b=b===void 0?{}:b;if(YC(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){d.id!==void 0?c.Nh.bA(d.id,c.Df):e=!0;c.ph.Qx&&c.gb&&c.gb("vss_network_hint")&&c.ph.Qx(!0);f(h,l)};
this.sendFn(d.url,d.options,void 0,!0);this.Nh.set(d,this.Df).then(function(h){d.id=h;e&&c.Nh.bA(d.id,c.Df)}).catch(function(h){$C(c,h)})}else this.sendFn(a,b,void 0,!0)};
g.k.GC=function(){var a=this;if(!YC(this))throw Error("IndexedDB is not supported: throttleSend");this.B||(this.B=this.Go.Ui(function(){var b;return g.H(function(c){if(c.j==1)return g.z(c,a.Nh.sY("NEW",a.Df),2);if(c.j!=3)return b=c.B,b?g.z(c,a.vF(b),3):(a.wO(),c.return());a.B&&(a.B=0,a.GC());g.Aa(c)})},this.G2))};
g.k.wO=function(){this.Go.ek(this.B);this.B=0};
g.k.vF=function(a){var b=this,c;return g.H(function(d){switch(d.j){case 1:if(!YC(b))throw Error("IndexedDB is not supported: immediateSend");if(a.id===void 0){d.Ja(2);break}return g.z(d,b.Nh.N$(a.id,b.Df),3);case 3:(c=d.B)||b.BA(Error("The request cannot be found in the database."));case 2:if(b.bM(a,b.v1)){d.Ja(4);break}b.BA(Error("Networkless Logging: Stored logs request expired age limit"));if(a.id===void 0){d.Ja(5);break}return g.z(d,b.Nh.bA(a.id,b.Df),5);case 5:return d.return();case 4:a.skipRetry||
(a=Eua(b,a));if(!a){d.Ja(0);break}if(!a.skipRetry||a.id===void 0){d.Ja(8);break}return g.z(d,b.Nh.bA(a.id,b.Df),8);case 8:b.sendFn(a.url,a.options,!!a.skipRetry),g.Aa(d)}})};
g.k.bM=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0};
g.k.eM=function(){var a=this;if(!YC(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Nh.sY("QUEUED",this.Df).then(function(b){b&&!a.bM(b,a.l1)?a.Go.Ui(function(){return g.H(function(c){if(c.j==1)return b.id===void 0?c.Ja(2):g.z(c,a.Nh.ZS(b.id,a.Df),2);a.eM();g.Aa(c)})}):a.ph.Mh()&&a.GC()})};var aD;var Dwa={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,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,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,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500};var gpb={},Oua=g.DC("ServiceWorkerLogsDatabase",{As:(gpb.SWHealthLog={Kn:1},gpb),shared:!0,upgrade:function(a,b){b(1)&&g.pC(g.jC(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Vua={},Uua=0;var Xua;eD.prototype.requestComplete=function(a,b){b&&(this.B=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
eD.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:a===!1&&this.B?!0:null};
eD.prototype.removeParams=function(a){return a.split("?")[0]};
eD.prototype.removeParams=eD.prototype.removeParams;eD.prototype.isEndpointCFR=eD.prototype.isEndpointCFR;eD.prototype.requestComplete=eD.prototype.requestComplete;eD.getInstance=fD;g.x(gD,g.Fd);g.k=gD.prototype;g.k.Mh=function(){return this.j.Mh()};
g.k.Qx=function(a){this.j.j=a};
g.k.y9=function(){var a=window.navigator.onLine;return a===void 0?!0:a};
g.k.y8=function(){this.B=!0};
g.k.listen=function(a,b){return this.j.listen(a,b)};
g.k.iM=function(a){a=xv(this.j,a);a.then(function(b){g.FA("use_cfr_monitor")&&fD().requestComplete("generate_204",b)});
return a};
gD.prototype.sendNetworkCheckRequest=gD.prototype.iM;gD.prototype.listen=gD.prototype.listen;gD.prototype.enableErrorFlushing=gD.prototype.y8;gD.prototype.getWindowStatus=gD.prototype.y9;gD.prototype.networkStatusHint=gD.prototype.Qx;gD.prototype.isNetworkAvailable=gD.prototype.Mh;gD.getInstance=Zua;g.x(g.hD,g.Fd);g.hD.prototype.Mh=function(){var a=g.Wa("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.B)():!0};
g.hD.prototype.Qx=function(a){var b=g.Wa("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);b&&b(a)};
g.hD.prototype.iM=function(a){var b=this,c;return g.H(function(d){c=g.Wa("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.B);return g.FA("skip_network_check_if_cfr")&&fD().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Qx(((f=window.navigator)==null?void 0:f.onLine)||!0);e(b.Mh())})):c?d.return(c(a)):d.return(!0)})};var ava;g.x(iD,ZC);iD.prototype.writeThenSend=function(a,b){b||(b={});b=eva(a,b);g.LB()||(this.j=!1);ZC.prototype.writeThenSend.call(this,a,b)};
iD.prototype.sendThenWrite=function(a,b,c){b||(b={});b=eva(a,b);g.LB()||(this.j=!1);ZC.prototype.sendThenWrite.call(this,a,b,c)};
iD.prototype.sendAndWrite=function(a,b){b||(b={});b=eva(a,b);g.LB()||(this.j=!1);ZC.prototype.sendAndWrite.call(this,a,b)};
iD.prototype.awaitInitialization=function(){return this.C.promise};var fva=g.Ua.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Va("ytNetworklessLoggingInitializationOptions",fva);g.kD.prototype.isReady=function(){!this.config_&&Tta()&&(this.config_=g.LC());return!!this.config_};var hpb,nD,pD;hpb=g.Ua.ytPubsubPubsubInstance||new g.aw;nD=g.Ua.ytPubsubPubsubSubscribedKeys||{};pD=g.Ua.ytPubsubPubsubTopicToKeys||{};g.oD=g.Ua.ytPubsubPubsubIsSynchronous||{};g.aw.prototype.subscribe=g.aw.prototype.subscribe;g.aw.prototype.unsubscribeByKey=g.aw.prototype.Uh;g.aw.prototype.publish=g.aw.prototype.publish;g.aw.prototype.clear=g.aw.prototype.clear;g.Va("ytPubsubPubsubInstance",hpb);g.Va("ytPubsubPubsubTopicToKeys",pD);g.Va("ytPubsubPubsubIsSynchronous",g.oD);
g.Va("ytPubsubPubsubSubscribedKeys",nD);var mva={};g.x(vD,g.I);vD.prototype.append=function(a){if(!this.B)throw Error("This does not support the append operation");a=a.Jb();this.Jb().appendChild(a)};
g.x(wD,vD);wD.prototype.Jb=function(){return this.j};g.x(rva,g.I);var xD=Date.now().toString();var vva={};var FD=Symbol("injectionDeps");DD.prototype.toString=function(){return"InjectionToken("+this.name+")"};
wva.prototype.resolve=function(a){return a instanceof ED?GD(this,a.key,[],!0):GD(this,a,[])};var zva;var ID=window;var JD=g.FA("web_enable_lifecycle_monitoring")&&Ava()!==0,Jva=g.FA("web_enable_lifecycle_monitoring");Eva.prototype.cancel=function(){for(var a=g.v(this.j),b=a.next();!b.done;b=a.next())b=b.value,b.jobId===void 0||b.PL||this.scheduler.ek(b.jobId),b.PL=!0;this.B.resolve()};g.k=KD.prototype;g.k.install=function(a){this.plugins.push(a);return this};
g.k.uninstall=function(){var a=this;g.Ja.apply(0,arguments).forEach(function(b){b=a.plugins.indexOf(b);b>-1&&a.plugins.splice(b,1)})};
g.k.transition=function(a,b){var c=this;JD&&Cva(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&&(Fva(this.B),this.B=void 0);Kva(this,a,b);this.state=a;JD&&Bva(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]});
d(Hva(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);};
g.k.Qda=function(a){var b=g.Ja.apply(1,arguments);g.QB();for(var c=g.v(a),d=c.next(),e={};!d.done;e={UF:void 0},d=c.next())e.UF=d.value,xsa(function(f){return function(){Iva(f.UF.name);f.UF.callback.apply(f.UF,g.ra(b));LD(f.UF.name)}}(e))};
g.k.Pda=function(a){var b=g.Ja.apply(1,arguments),c,d,e,f;return g.H(function(h){h.j==1&&(g.QB(),c=g.v(a),d=c.next(),e={});if(h.j!=3){if(d.done)return h.Ja(0);e.fB=d.value;e.GI=void 0;f=function(l){return function(){Iva(l.fB.name);var m=l.fB.callback.apply(l.fB,g.ra(b));typeof(m==null?void 0:m.then)==="function"?l.GI=m.then(function(){LD(l.fB.name)}):LD(l.fB.name)}}(e);
xsa(f);return e.GI?g.z(h,e.GI,3):h.Ja(3)}e={fB:void 0,GI:void 0};d=c.next();return h.Ja(2)})};
g.k.U1=function(a){var b=g.Ja.apply(1,arguments),c=this,d=a.map(function(e){return{SQ:function(){Iva(e.name);e.callback.apply(e,g.ra(b));LD(e.name)},
priority:Gva(c,e)}});
d.length&&(this.B=new Eva(d))};
g.ea.Object.defineProperties(KD.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Lva;g.x(MD,KD);MD.prototype.G=function(a,b){var c=this;this.j=g.OB(0,function(){c.currentState==="application_navigating"&&c.transition("none")},5E3);
a(b==null?void 0:b.event)};
MD.prototype.K=function(a,b){this.j&&(g.zv.ek(this.j),this.j=null);a(b==null?void 0:b.event)};var ywa=[];g.Va("yt.logging.transport.getScrapedGelPayloads",function(){return ywa});ND.prototype.storePayload=function(a,b){a=Nva(a);this.store[a]?this.store[a].push(b):(this.B={},this.store[a]=[b]);this.j++;return a};
ND.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=Ova(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.ra(this.store[b[d]])),delete this.store[b[d]]):c.push.apply(c,g.ra(this.store[b[d]].splice(0,a.sizeLimit))));this.j-=c.length;(a==null?0:a.sizeLimit)&&c.length<(a==null?void 0:a.sizeLimit)&&(a.sizeLimit-=c.length,c.push.apply(c,g.ra(this.smartExtractMatchingEntries(a))));
return c};
ND.prototype.extractMatchingEntries=function(a){a=Ova(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,g.ra(this.store[a[c]])),delete this.store[a[c]]);this.j-=b.length;return b};
ND.prototype.getSequenceCount=function(a){a=Ova(this,a);for(var b=0,c=0;c<a.length;c++){var d=void 0;b+=((d=this.store[a[c]])==null?void 0:d.length)||0}return b};
ND.prototype.getSequenceCount=ND.prototype.getSequenceCount;ND.prototype.extractMatchingEntries=ND.prototype.extractMatchingEntries;ND.prototype.smartExtractMatchingEntries=ND.prototype.smartExtractMatchingEntries;ND.prototype.storePayload=ND.prototype.storePayload;var lwa=g.GA("initial_gel_batch_timeout",2E3),kwa=g.GA("gel_queue_timeout_max_ms",6E4),xwa=Math.pow(2,16)-1,mwa=g.GA("gel_min_batch_size",5),WD=void 0,Cwa=new PD,Bwa=new PD,jwa=new PD,iwa=new PD,bwa,$D=!0,wwa=1,RD=new Map,ZD=g.Ua.ytLoggingTransportTokensToCttTargetIds_||{};g.Va("ytLoggingTransportTokensToCttTargetIds_",ZD);var YD=g.Ua.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Va("ytLoggingTransportTokensToJspbCttTargetIds_",YD);var UD={},Pva=!1;var aE=g.Ua.ytLoggingGelSequenceIdObj_||{};g.Va("ytLoggingGelSequenceIdObj_",aE);var Hwa,cE,Iwa,Kwa=g.kD,Gwa=!1,Nwa=[];var Pwa=g.Ua.ytLoggingGelSequenceIdObj_||{};g.Va("ytLoggingGelSequenceIdObj_",Pwa);var E2=g.Ua.ytLoggingDocDocumentNonce_;E2||(E2=g.zD(16),g.Va("ytLoggingDocDocumentNonce_",E2));var hxa=E2;var exa={l4:0,fva:1,swa:2,M6:3,Fya:4,Qmb:5,UXa:6,SHARE:7,M5a:8,x7a: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 Xwa=1;g.k=gE.prototype;g.k.getAsJson=function(){var a={};this.j.trackingParams!==void 0?a.trackingParams=this.j.trackingParams:(a.veType=this.j.veType,this.j.veCounter!==void 0&&(a.veCounter=this.j.veCounter),this.j.elementIndex!==void 0&&(a.elementIndex=this.j.elementIndex));this.j.dataElement!==void 0&&(a.dataElement=this.j.dataElement.getAsJson());this.j.youtubeData!==void 0&&(a.youtubeData=this.j.youtubeData);this.j.isCounterfactual&&(a.isCounterfactual=!0);return a};
g.k.getAsJspb=function(){var a=new lz;this.j.trackingParams!==void 0?a.setTrackingParams(this.j.trackingParams):(this.j.veType!==void 0&&Pk(a,2,this.j.veType),this.j.veCounter!==void 0&&Pk(a,6,this.j.veCounter),this.j.elementIndex!==void 0&&Pk(a,3,this.j.elementIndex),this.j.isCounterfactual&&Ok(a,5,!0));if(this.j.dataElement!==void 0){var b=this.j.dataElement.getAsJspb();gk(a,lz,7,b)}this.j.youtubeData!==void 0&&gk(a,vx,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",bxa);g.Va("yt_logging_screen.getCurrentCsn",g.jE);g.Va("yt_logging_screen.getCttAuthInfo",kE);g.Va("yt_logging_screen.setCurrentScreen",ixa);var mxa="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var zxa=[{kR:function(a){return"Cannot read property '"+a.key+"'"},
DL:{Error:[{Mj:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Mj:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Mj:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Mj:/\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"]},{Mj:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Mj:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Mj:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{kR:function(a){return"Cannot call '"+a.key+"'"},
DL:{TypeError:[{Mj:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Mj:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Mj:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Mj:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Mj:/\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"]},
{Mj:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{kR:function(a){return a.key+" is not defined"},
DL:{ReferenceError:[{Mj:/(.*) is not defined/,groups:["key"]},{Mj:/Can't find variable: (.*)/,groups:["key"]}]}}];var rxa={ys:[],Gt:[{callback:nxa,weight:500}]};var pxa;var oE=new g.aw;var Axa=new Set,xxa=0,Dxa=0,Cxa=0,yxa=[],Fxa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var Hxa=new g.Pw("parallelCommand");var Kxa=new g.Pw("performOnceCommand");var Jxa=new g.Pw("serialCommand");var rE=void 0;var ipb=g.v(function(a){var b=Zka(a);gmb++;return[function(){hmb++;return b()},
function(c){imb++;if(c&&c[pmb]){var d=b[g.uv];c=c[pmb];Vka()||jv();ala(d,c(d.value))}else ala(b[g.uv],c)}]}(null));
ipb.next();ipb.next();g.x(Mxa,NC);var Pxa=new OC("screen-created",Mxa),zE=[],Nxa=$xa,aya=0,vE=new Map,Qxa=new Map,Rxa=new Map;g.lb(g.GE,g.I);g.GE.prototype.subscribe=function(a,b,c){return this.Na()?0:this.Ej.subscribe(a,b,c)};
g.GE.prototype.unsubscribe=function(a,b,c){return this.Na()?!1:this.Ej.unsubscribe(a,b,c)};
g.GE.prototype.Uh=function(a){return this.Na()?!1:this.Ej.Uh(a)};
g.GE.prototype.publish=function(a,b){return this.Na()?!1:this.Ej.publish.apply(this.Ej,arguments)};var R7a=16/9,jpb=[.25,.5,.75,1,1.25,1.5,1.75,2],kpb=jpb.concat([3,4,5,6,7,8,9,10,15]);var cya=1;g.x(g.KE,g.I);g.k=g.KE.prototype;
g.k.createElement=function(a,b){b=b||a.I==="svg";var c=a.S,d=a.Ma;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.I);g.HR&&(a.W||(a.W={}),a.W.focusable="false")}else e=g.Bf(a.I);if(c){if(c=LE(this,e,"class",c))ME(this,e,"class",c),this.Kb[c]=e}else if(d){c=g.v(d);for(var f=c.next();!f.done;f=c.next())this.Kb[f.value]=e;ME(this,e,"class",d.join(" "))}d=a.xa;c=a.V;if(d)b=LE(this,e,"child",d),b!==void 0&&e.appendChild(g.Cf(b));else if(c)for(d=0,c=g.v(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if(typeof f==="string")f=LE(this,e,"child",f),f!=null&&e.appendChild(g.Cf(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Jc&&(h=JE(),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),Hf(e,f,d++))}if(a=a.W)for(b=e,d=g.v(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],ME(this,b,c,typeof f==="string"?
LE(this,b,c,f):f);return e};
g.k.Fa=function(a){return this.Kb[a]};
g.k.Ka=function(a,b){typeof b==="number"?Hf(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.If(this.element)};
g.k.update=function(a){for(var b=g.v(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.Zd["{{"+a+"}}"])&&ME(this,a[0],a[1],b)};
g.k.ya=function(){this.Kb={};this.Zd={};this.detach();g.I.prototype.ya.call(this)};g.x(g.W,g.KE);g.k=g.W.prototype;g.k.Dd=function(a,b){this.updateValue(b||"content",a)};
g.k.show=function(){this.Ib||(g.Is(this.element,"display",""),this.Ib=!0)};
g.k.hide=function(){this.Ib&&(g.Is(this.element,"display","none"),this.Ib=!1)};
g.k.Mc=function(a){this.Z=a};
g.k.listen=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.Oc=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(){this.element.focus()};
g.k.ya=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.KE.prototype.ya.call(this)};g.x(g.OE,g.W);g.OE.prototype.subscribe=function(a,b,c){return this.Sa.subscribe(a,b,c)};
g.OE.prototype.unsubscribe=function(a,b,c){return this.Sa.unsubscribe(a,b,c)};
g.OE.prototype.Uh=function(a){return this.Sa.Uh(a)};
g.OE.prototype.publish=function(a){return this.Sa.publish.apply(this.Sa,[a].concat(g.ra(g.Ja.apply(1,arguments))))};var lpb=new WeakSet;g.x(PE,g.OE);g.k=PE.prototype;g.k.bind=function(a){this.eb||a.renderer&&this.init(a.id,a.renderer,{},a);return Promise.resolve()};
g.k.init=function(a,b,c){this.eb=a;this.element.setAttribute("id",this.eb);this.Cb&&g.Kv(this.element,this.Cb);this.ra=b&&b.adRendererCommands;this.La=b.interaction;var d;((d=this.La)==null?0:d.onTap)&&g.Kv(this.element,"ytp-ad-component--clickable");this.macros=c;this.N=b.trackingParams||null;this.K=b.loggingDirectives;this.N!=null?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.OE.prototype.hide.call(this);(this.N!=null||this.K)&&this.logVisibility(this.element,!1)};
g.k.show=function(){g.OE.prototype.show.call(this);if(!this.Ab){this.Ab=!0;var a=this.ra&&this.ra.impressionCommand,b,c=(b=this.La)==null?void 0:b.onFirstVisible;a?this.nH(a):c&&(a=sE(c))&&this.nH(a)}(this.N!=null||this.K)&&this.logVisibility(this.element,!0)};
g.k.onClick=function(a){if((this.N||this.K)&&!lpb.has(a)){var b=this.element;this.api.hasVe(b)&&this.Ib&&this.api.logClick(b,this.interactionLoggingClientData);lpb.add(a)}var c=this.ra&&this.ra.clickCommand,d;b=(d=this.La)==null?void 0:d.onTap;if(c)b=this.e1(c),this.nH(b);else{if(d=b)a:{d=this.element;a=a.composedPath();a=g.v(a);for(c=a.next();!c.done;c=a.next()){c=c.value;if(c===d)break;if(c.className.indexOf("ytp-ad-component--clickable")>=0){d=!1;break a}}d=!0}d&&(b=sE(b))&&this.nH(b)}};
g.k.e1=function(a){return a};
g.k.W5=function(a){var b=this.Da;b.N=!0;b.B=a.touches.length;b.j.isActive()&&(b.j.stop(),b.G=!0);a=a.touches;b.K=sva(b,a)||a.length!=1;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.V5=function(a){var b=this.Da;a=a.changedTouches.item(0);var c;if(c=Hc()){c=g.oc();var d="";if(Uaa())d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0";else if(Hc())d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".");else if(Ic())d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10";else if(ic(g.oc(),"KaiOS"))d=/(?:KaiOS)\/(\S+)/i,d=(c=d.exec(c))&&c[1];else if(Taa())d=/Android\s+([^\);]+)(\)|;)/,d=(c=d.exec(c))&&c[1];else if(Ec()?sc.platform===
"Chrome OS":xc("CrOS"))d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,d=(c=d.exec(c))&&c[1];c=!(g.lc(d||"",8)>=0)}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.U5=function(a){if(this.Da){var b=this.Da,c=a.changedTouches;c&&b.N&&b.B==1&&!b.D&&!b.G&&!b.K&&sva(b,c)&&(b.ra=a,b.j.start());b.B=a.touches.length;b.B===0&&(b.N=!1,b.D=!1,b.C.length=0);b.G=!1}};
g.k.nH=function(a){this.layoutId?this.ob.executeCommand(a,this.layoutId):g.mE(new g.FB("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.ya=function(){this.clear(null);this.Oc(this.rb);for(var a=g.v(this.Ha),b=a.next();!b.done;b=a.next())this.Oc(b.value);g.OE.prototype.ya.call(this)};g.x($E,PE);
$E.prototype.init=function(a,b,c){PE.prototype.init.call(this,a,b,c);this.j=b;if(b.text==null&&b.icon==null)g.nE(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}a!=null&&g.Kv(this.element,a);b.text!=null&&(a=g.RE(b.text),g.fc(a)||(this.element.setAttribute("aria-label",a),this.C=new g.OE({I:"span",S:"ytp-ad-button-text",xa:a}),g.M(this,this.C),this.C.Ka(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);b.icon!=null&&(b=ZE(b.icon),b!=null&&(this.B=new g.OE({I:"span",S:"ytp-ad-button-icon",V:[b]}),g.M(this,this.B)),this.D?Hf(this.element,this.B.element,0):this.B.Ka(this.element))}};
$E.prototype.clear=function(){this.hide()};
$E.prototype.onClick=function(a){PE.prototype.onClick.call(this,a);a=g.v(Eya(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.ob.executeCommand(b,this.layoutId):g.mE(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.x(aF,g.I);aF.prototype.ya=function(){this.B&&g.pB(this.B);this.j.clear();bF=null;g.I.prototype.ya.call(this)};
aF.prototype.register=function(a,b){b&&this.j.set(a,b)};
var bF=null;g.x(eF,PE);
eF.prototype.init=function(a,b,c){PE.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.V(b.button,g.cM)||null;b==null?g.mE(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new $E(this.api,this.layoutId,this.interactionLoggingClientData,this.ob),g.M(this,this.button),this.button.init(EE("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.RE(a)),this.button.Ka(this.element),this.G&&!g.Jv(this.button.element,"ytp-ad-clickable")&&g.Kv(this.button.element,
"ytp-ad-clickable"),a&&(this.B=new g.OE({I:"div",S:"ytp-ad-hover-text-container"}),this.D&&(b=new g.OE({I:"div",S:"ytp-ad-hover-text-callout"}),b.Ka(this.B.element),g.M(this,b)),g.M(this,this.B),this.B.Ka(this.element),b=cF(a),Hf(this.B.element,b,0)),this.show())};
eF.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();PE.prototype.hide.call(this)};
eF.prototype.show=function(){this.button&&this.button.show();PE.prototype.show.call(this)};g.x(gF,PE);
gF.prototype.init=function(a,b,c){PE.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&fF(a)||"";g.fc(c)?Math.random()<.01&&g.nE(Error("Found AdImage without valid image URL")):(this.j?g.Is(this.element,"backgroundImage","url("+c+")"):xf(this.element,{src:c}),xf(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())};
gF.prototype.clear=function(){this.hide()};g.x(hF,PE);g.k=hF.prototype;g.k.hide=function(){PE.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.C=document.activeElement;PE.prototype.show.call(this);this.D.focus()};
g.k.init=function(a,b,c){PE.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||b.title!=null?b.confirmLabel==null?g.mE(Error("ConfirmDialogRenderer.confirmLabel was not set.")):b.cancelLabel==null?g.mE(Error("ConfirmDialogRenderer.cancelLabel was not set.")):Iya(this,b):g.mE(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.uB(this.j);this.hide()};
g.k.DR=function(){this.hide()};
g.k.sN=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.ob.executeCommand(a,this.layoutId):g.mE(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.k.ER=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.ob.executeCommand(a,this.layoutId):g.mE(Error("Missing layoutId for confirm dialog.")));this.hide()};g.x(iF,PE);g.k=iF.prototype;
g.k.init=function(a,b,c){PE.prototype.init.call(this,a,b,c);this.C=b;if(b.defaultText==null&&b.defaultIcon==null)g.mE(Error("ToggleButtonRenderer must have either text or icon set."));else if(b.defaultIcon==null&&b.toggledIcon!=null)g.mE(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}a!=null&&g.Kv(this.D,a)}a={};b.defaultText?
(c=g.RE(b.defaultText),g.fc(c)||(a.buttonText=c,this.api.U().experiments.gb("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",c),this.api.U().experiments.gb("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",c))):g.Vs(this.Ga,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.B.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=ZE(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.va=
!0,c=ZE(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.Vs(this.Y,!0),g.Vs(this.G,!1)),g.Vs(this.j,!1)):g.Vs(this.B,!1);g.gd(a)||this.update(a);b.isToggled&&(g.Kv(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));Jya(this);this.T(this.element,"change",this.FV);this.show()}};
g.k.onClick=function(a){this.Ha.length>0&&(this.toggleButton(!this.isToggled()),this.FV());PE.prototype.onClick.call(this,a)};
g.k.FV=function(){g.Ov(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.v(Kya(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.ob.executeCommand(b,this.layoutId):g.mE(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);Jya(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.Ov(this.D,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;Jya(this)};
g.k.isToggled=function(){return this.j.checked};g.x(jF,sB);jF.prototype.K=function(a){if(Array.isArray(a)){a=g.v(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof Lya&&this.D(b)}};g.x(Mya,PE);g.k=Mya.prototype;g.k.init=function(a,b,c){PE.prototype.init.call(this,a,b,c);b.reasons?b.confirmLabel==null?g.mE(Error("AdFeedbackRenderer.confirmLabel was not set.")):(b.cancelLabel==null&&g.nE(Error("AdFeedbackRenderer.cancelLabel was not set.")),b.title==null&&g.nE(Error("AdFeedbackRenderer.title was not set.")),Qya(this,b)):g.mE(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){dsa(this.G);dsa(this.Y);this.D.length=0;this.hide()};
g.k.hide=function(){this.j&&this.j.hide();this.B&&this.B.hide();PE.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;PE.prototype.show.call(this);this.G.focus()};
g.k.R_=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()};
g.k.Oca=function(){this.hide()};
kF.prototype.Jb=function(){return this.j.element};
kF.prototype.getCommand=function(){return this.B};
kF.prototype.isChecked=function(){return this.C.checked};g.x(lF,hF);lF.prototype.DR=function(a){hF.prototype.DR.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
lF.prototype.sN=function(a){hF.prototype.sN.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
lF.prototype.ER=function(a){hF.prototype.ER.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.x(Rya,PE);g.k=Rya.prototype;
g.k.init=function(a,b,c){PE.prototype.init.call(this,a,b,c);this.G=b;if(b.dialogMessage==null&&b.title==null)g.mE(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{b.confirmLabel==null&&g.nE(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.V(b.closeOverlayRenderer,g.cM)||null)this.j=new $E(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.M(this,this.j),this.j.init(EE("button"),a,this.macros),this.j.Ka(this.element);b.title&&(a=g.RE(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=cF(a[c]);if(!g.fc(d.textContent)){var e=Af("LI");e.appendChild(d);this.Oa.appendChild(e)}}else g.Vs(this.Oa,!1);b.dialogMessage&&(a=cF(b.dialogMessage,!0),this.Xa.appendChild(a));b.confirmLabel&&(a=g.RE(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=g.V(b.muteAdRenderer,g.cM)||null)&&
(a=b.navigationEndpoint&&g.V(b.navigationEndpoint,rob)||null,c=b.navigationEndpoint&&g.V(b.navigationEndpoint,Tmb)||null,a==null&&c==null?g.nE(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?Sya(this,a):c&&Tya(this,c),this.C=new $E(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,["ytp-ad-info-dialog-mute-button"],"button",!0),g.M(this,this.C),this.C.init(EE("button"),b,this.macros),this.C.listen("click",
this.xba,this),this.C.Ka(this.Ya)));Uya(this)}};
g.k.clear=function(){dsa(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();PE.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.v(this.G&&this.G.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.ob.executeCommand(b,this.layoutId):g.mE(Error("Missing layoutId for ad info dialog."));this.Wa=!0}this.va=document.activeElement;PE.prototype.show.call(this);this.Y.focus()};
g.k.GV=function(){if(this.G&&this.G.confirmServiceEndpoint){var a=this.G.confirmServiceEndpoint;this.layoutId?this.ob.executeCommand(a,this.layoutId):g.mE(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()};
g.k.xba=function(){var a=this.B?this.B:this.D;a&&!a.Ib&&(this.hide(),a.show())};g.x(mF,eF);mF.prototype.init=function(a,b,c){eF.prototype.init.call(this,a,b,c);a=b.button&&g.V(b.button,g.cM)||null;a!=null&&(Zya(this,a,c),this.show())};
mF.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();eF.prototype.hide.call(this)};
mF.prototype.show=function(){this.button&&this.button.show();eF.prototype.show.call(this)};
mF.prototype.clear=function(){this.hide()};g.x(nF,PE);
nF.prototype.init=function(a,b,c){PE.prototype.init.call(this,a,b,c);this.j=b;this.isTemplated()||g.Pf(this.element,QE(this.j));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?fF(a):"",c=(c=this.api.getVideoData(1))&&c.Zl,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.cf(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()};
nF.prototype.isTemplated=function(){return this.j.isTemplated||!1};
nF.prototype.clear=function(){this.hide()};var nza={seekableStart:0,seekableEnd:1,current:0};g.x(oF,PE);oF.prototype.clear=function(){this.dispose()};g.x(g.rF,g.I);g.k=g.rF.prototype;g.k.show=function(a){this.state!==1&&this.state!==2&&(this.state===4&&this.tI(),this.state===5?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.Ib||(sF(this,!0),this.state=1,a?this.delay.start(a):this.tI()))};
g.k.hide=function(){this.state!==4&&(this.state===1||this.state===2?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Ib&&(sF(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.tI=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:sF(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();sF(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(;this.state!==null&&this.state!==5;)this.delay.stop(),this.tI()};
g.k.ya=function(){this.element.Na()||this.element.element.removeAttribute("aria-hidden");g.I.prototype.ya.call(this)};g.x(tF,oF);g.k=tF.prototype;
g.k.init=function(a,b,c){oF.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;typeof a==="number"&&a<0&&g.mE(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.ib&&(this.D?g.Kv(this.B.element,"modern-countdown-next-to-thumbnail"):g.Kv(this.B.element,"countdown-next-to-thumbnail"));a=b.durationMilliseconds;this.Oa=a==null||a===0?this.j.Gm():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);
this.C.init(EE("ad-text"),d,c);(d=this.api.getVideoData(1))&&d.Zl&&b.thumbnail?this.G.init(EE("ad-image"),b.thumbnail,c):(this.va.hide(),this.D&&this.ib&&g.Kv(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();qF(this);oF.prototype.hide.call(this)};
g.k.show=function(){pF(this);this.B.show();this.C.show();this.G.show();oF.prototype.show.call(this)};
g.k.Cq=function(){this.hide()};
g.k.Uo=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&(a=1E3*a.current,!this.Xa&&a>=this.Oa?(this.Ga.hide(),this.Xa=!0,this.publish("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Oa-a)/1E3)),a!=this.Ya&&($ya(this.C,{TIME_REMAINING:String(a)}),this.Ya=a)))}};g.x(bza,oF);g.k=bza.prototype;
g.k.init=function(a,b,c){oF.prototype.init.call(this,a,b,c);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((a=b.actionButton&&g.V(b.actionButton,g.cM))&&a.navigationEndpoint){var d=this.api.getVideoData(2);if(d!=null)if(b.image&&b.image.thumbnail){var e=b.image.thumbnail.thumbnails;e!=null&&e.length>0&&g.fc(g.cf(e[0].url))&&(e[0].url=d.profilePicture)}else g.nE(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(EE("ad-image"),b.image,c);this.G.init(EE("ad-text"),
b.headline,c);this.D.init(EE("ad-text"),b.description,c);this.B.init(EE("button"),a,c);c=ila(this.B.element);Bv(this.B.element,c+" This link opens in new tab");this.va=a.navigationEndpoint;this.api.FF()||this.show();this.api.U().L("enable_larger_flyout_cta_on_desktop")&&(this.Fa("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Fa("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Fa("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"),
this.Fa("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Fa("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Fa("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.Fa("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large"));
this.api.addEventListener("playerUnderlayVisibilityChange",this.HV.bind(this));this.Ga=b.startMs||0;pF(this)}else g.mE(Error("FlyoutCtaRenderer has no valid action button."));else g.mE(Error("FlyoutCtaRenderer has no description AdText."));else g.mE(Error("FlyoutCtaRenderer has no headline AdText."));else g.nE(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){oF.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Of(this.B.element,a.target)&&this.va&&(this.layoutId?this.ob.executeCommand(this.va,this.layoutId):g.mE(Error("Missing layoutId for flyout cta.")))};
g.k.Uo=function(){if(this.j){var a=this.j.getProgressState();(a&&a.current||this.Oa)&&1E3*a.current>=this.Ga&&(qF(this),g.Mv(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}};
g.k.Cq=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.HV.bind(this))};
g.k.show=function(){this.B&&this.B.show();oF.prototype.show.call(this)};
g.k.hide=function(){this.B&&this.B.hide();oF.prototype.hide.call(this)};
g.k.HV=function(a){a=="hidden"?this.show():this.hide()};g.x(cza,PE);g.k=cza.prototype;
g.k.init=function(a,b,c){PE.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.V(this.j.likeButton,y2),b=this.j.dislikeButton&&g.V(this.j.dislikeButton,y2),this.C.init(EE("toggle-button"),a,c),this.B.init(EE("toggle-button"),b,c),this.T(this.element,"change",this.IV),this.D.show(100),this.show(),c=g.v(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.ob.executeCommand(a,this.layoutId):g.mE(Error("Missing layoutId for instream user sentiment."))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.B.hide();PE.prototype.hide.call(this)};
g.k.show=function(){this.C.show();this.B.show();PE.prototype.show.call(this)};
g.k.IV=function(){nla(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.jb("onYtShowToast",this.j.postMessageAction);this.D.hide()};
g.k.onClick=function(a){this.Ha.length>0&&this.IV();PE.prototype.onClick.call(this,a)};g.x(uF,g.I);g.k=uF.prototype;g.k.ya=function(){this.reset();g.I.prototype.ya.call(this)};
g.k.reset=function(){g.uB(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.KV,this);this.D.T(this.B,"mouseout",this.JV,this);this.ra&&(this.D.T(this.B,"focusin",this.KV,this),this.D.T(this.B,"focusout",this.JV,this));this.j?this.j.start():(this.K=this.C=!0,g.Is(this.B,{opacity:this.Y}))};
g.k.KV=function(){this.C&&(this.C=!1,this.N.play());this.G.stop();this.j&&this.j.stop()};
g.k.JV=function(){this.K?this.G.start():this.j&&this.j.start()};
g.k.TW=function(){this.C||(this.C=!0,this.Z.play(),this.K=!0)};g.x(BF,oF);g.k=BF.prototype;
g.k.init=function(a,b,c){oF.prototype.init.call(this,a,b,c);this.va=b;(this.Ga=kza(this))&&g.nE(Error("hasAdControlInClickCommands_ is true."));if(!b||g.gd(b))g.mE(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.gd(b.message))g.mE(Error("SkipButtonRenderer.message was not specified or empty."));else{a=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};b=ZE(a);b==null?g.mE(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")):
(this.C=new g.OE({I:"button",Ma:[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.M(this,this.C),this.C.Ka(this.D.element),this.B=new nF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,"ytp-ad-skip-button-text"),this.G&&this.B.element.classList.add("ytp-ad-skip-button-text-centered"),this.B.init(EE("ad-text"),this.va.message,c),g.M(this,this.B),Hf(this.C.element,this.B.element,
0));var d=d===void 0?null:d;c=this.api.U();!(this.Ha.length>0)&&c.B&&(lR?0:"ontouchstart"in document.documentElement&&(rha()||Sr()))&&(this.Oc(this.rb),d&&this.Oc(d),this.Ha=[this.T(this.element,"touchstart",this.W5,this),this.T(this.element,"touchmove",this.V5,this),this.T(this.element,"touchend",this.U5,this)])}};
g.k.clear=function(){this.Oa.reset();this.hide()};
g.k.hide=function(){this.D.hide();this.B&&this.B.hide();qF(this);oF.prototype.hide.call(this)};
g.k.onClick=function(a){if(this.C!=null){if(a){var b=a||window.event;b.returnValue=!1;b.preventDefault&&b.preventDefault()}var c;if(gza(a,{contentCpn:((c=this.api.getVideoData(1))==null?void 0:c.clientPlaybackNonce)||""})===0&&(this.api.U().L("enable_isk_gating")&&this.api.jb("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;oF.prototype.onClick.call(this,a);this.publish("j");this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.jb("onAdSkip");if(this.Xa||!this.Ga)this.api.onAdUxClicked(this.componentType,
this.layoutId)}};
g.k.e1=function(a){if(!this.Xa)return this.Ga&&wF("SkipButton click commands not pruned while ALC exist"),a;var b,c=(b=g.V(a,g.CF))==null?void 0:b.commands;if(!c)return a;a=[];for(b=0;b<c.length;b++){var d=c[b];d.adLifecycleCommand&&jza(d.adLifecycleCommand)||d.pingingEndpoint||d.adPingingEndpoint||a.push(d)}return{commandExecutorCommand:{commands:a}}};
g.k.show=function(){this.Oa.start();this.D.show();this.B&&this.B.show();pF(this);oF.prototype.show.call(this);this.Ya&&this.api.U().L("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};
g.k.Cq=function(){this.publish("k")};
g.k.Uo=function(){};g.x(DF,oF);g.k=DF.prototype;
g.k.init=function(a,b,c){oF.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&g.V(b.preskipRenderer,bM)||{};(a=g.gd(a)?null:a)?(this.G=a.durationMilliseconds!=null&&a.durationMilliseconds!==void 0?a.durationMilliseconds:5E3,this.B=new tF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.j,WQ(this.api.U().experiments,"preskip_button_style_ads_backend")=="countdown_next_to_thumbnail"&&yI(this.api.U())),this.B.init(EE("preskip-component"),a,c),aza(this.B),g.M(this,this.B),this.B.Ka(this.element)):
b.skipOffsetMilliseconds&&(this.G=b.skipOffsetMilliseconds);a=b&&b.skippableRenderer&&g.V(b.skippableRenderer,Imb)||{};a=g.gd(a)?null:a;a==null?g.mE(Error("SkipButtonRenderer was not set in player response.")):(this.C=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.j,this.va),this.C.init(EE("skip-button"),a,c),g.M(this,this.C),this.C.Ka(this.element),this.api.U().experiments.gb("enable_skip_to_next_messaging")&&(b=g.cf(b.targetId))&&(c=this.C,c.C!=null&&(c.Ya=!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();pF(this);oF.prototype.show.call(this)};
g.k.Cq=function(){};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();qF(this);oF.prototype.hide.call(this)};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();qF(this);oF.prototype.hide.call(this)};
g.k.Uo=function(){1E3*this.j.getProgressState().current>=this.G&&lza(this,!0)};g.x(mza,$E);mza.prototype.init=function(a,b,c){$E.prototype.init.call(this,a,b,c);a=!1;b.text!=null&&(a=g.RE(b.text),a=!g.fc(a));a?b.navigationEndpoint==null?g.nE(Error("No visit advertiser clickthrough provided in renderer,")):b.style!=="STYLE_UNKNOWN"?g.nE(Error("Button style was not a link-style type in renderer,")):this.show():g.nE(Error("No visit advertiser text was present in the renderer."))};g.x(EF,PE);
EF.prototype.init=function(a,b,c){PE.prototype.init.call(this,a,b,c);a=b.text;g.fc(QE(a))?g.nE(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 nF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob),a.init(EE("simple-ad-badge"),b,c),a.Ka(this.element),g.M(this,a)),this.api.U().experiments.gb("enable_unified_ad_badge_style_fix")&&this.C&&
this.j.classList.add("ytp-ad-simple-ad-badge-unified"),this.show())};
EF.prototype.clear=function(){this.hide()};g.x(FF,FE);g.x(GF,g.GE);g.k=GF.prototype;g.k.Gm=function(){return this.durationMs};
g.k.stop=function(){this.j&&this.Hd.Oc(this.j)};
g.k.Uc=function(a){this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:a.current};this.publish("h")};
g.k.getProgressState=function(){return this.B};
g.k.X5=function(a){g.AF(a,2)&&this.publish("g")};g.x(HF,g.GE);g.k=HF.prototype;g.k.Gm=function(){return this.durationMs};
g.k.start=function(){this.j||(this.j=!0,this.Ye.start())};
g.k.stop=function(){this.j&&(this.j=!1,this.Ye.stop())};
g.k.Uc=function(){this.mj+=100;var a=!1;this.mj>this.durationMs&&(this.mj=this.durationMs,this.Ye.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.mj/1E3};this.publish("h");a&&this.publish("g")};
g.k.getProgressState=function(){return this.B};g.x(KF,oF);g.k=KF.prototype;g.k.init=function(a,b,c){oF.prototype.init.call(this,a,b,c);var d;if(b==null?0:(d=b.templatedCountdown)==null?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.nE(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new nF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob);this.B.init(EE("ad-text"),a,{});this.B.Ka(this.element);g.M(this,this.B)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){qF(this);oF.prototype.hide.call(this)};
g.k.Cq=function(){this.hide()};
g.k.Uo=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&this.B&&(a=(this.j instanceof GF?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:a.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.j instanceof HF?a.seekableEnd:this.api.getDuration(2,!1))-a.current,$ya(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.IF(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
g.k.show=function(){pF(this);oF.prototype.show.call(this)};g.x(oza,nF);oza.prototype.onClick=function(a){nF.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};g.x(LF,PE);LF.prototype.init=function(a,b){PE.prototype.init.call(this,a,b,{});if(b!=null&&b.text){var c;if(((c=b.text)==null?0:c.content)&&!g.fc(b.text.content)){this.j=new g.OE({I:"div",S:"ytp-ad-disclosure-banner__text",xa:b.text.content});g.M(this,this.j);this.j.Ka(this.element);var d;if((d=b.interaction)==null?0:d.onTap)this.B=new g.OE({I:"div",S:"ytp-ad-disclosure-banner__chevron",V:[g.UE()]}),g.M(this,this.B),this.B.Ka(this.element);this.show()}}else g.mE(Error("No banner text found in AdDisclosureBanner."))};
LF.prototype.clear=function(){this.hide()};g.x(OF,g.OE);OF.prototype.Uc=function(){var a=this.B.getProgressState();this.progressBar.style.width=NF(new MF(a.seekableStart,a.seekableEnd),a.current,0)*100+"%"};
OF.prototype.onStateChange=function(){g.tR(this.api.U())||(this.api.getPresentingPlayerType()===2?this.j===-1&&(this.show(),this.j=this.B.subscribe("h",this.Uc,this),this.Uc()):this.j!==-1&&(this.hide(),this.B.Uh(this.j),this.j=-1))};g.x(PF,PE);
PF.prototype.init=function(a,b,c,d){PE.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.V(c,hL),c=g.V(c,bM),a?(c=new DF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.B,this.Y),c.Ka(this.G),c.init(EE("skip-button"),a,this.macros),g.M(this,c)):c&&(a=new tF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.B,!1),a.Ka(this.G),a.init(EE("ad-preview"),c,this.macros),aza(a),g.M(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,
c=new cza(this.api,this.layoutId,this.interactionLoggingClientData,this.ob),c.Ka(this.Ga),c.init(EE("instream-user-sentiment"),a,this.macros),g.M(this,c));if(a=g.V(b,Bmb))if(a=g.V(a,Bmb))c=new bza(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.B,!!b.showWithoutLinkedMediaLayout),g.M(this,c),c.Ka(this.C),c.init(EE("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,a==null&&(a={text:{text:"\u0420\u0435\u043a\u043b\u0430\u043c\u0430",
isTemplated:!1}}),c=new EF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,!0,!1),g.M(this,c),c.Ka(this.j),c.init(EE("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&!b.showWithoutLinkedMediaLayout&&(a=b.adDurationRemaining.adDurationRemainingRenderer,a==null&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new KF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.B,d),g.M(this,d),d.Ka(this.j),d.init(EE("ad-duration-remaining"),
a,this.macros));b.adInfoRenderer&&(d=g.V(b.adInfoRenderer,aM))&&(a=new mF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.element),g.M(this,a),a.Ka(this.j),a.init(EE("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(a=g.V(b.visitAdvertiserRenderer,g.cM))&&(c=qza(this)&&this.D?this.D:this.j)&&(d=new mza(this.api,this.layoutId,this.interactionLoggingClientData,this.ob),g.M(this,d),d.Ka(c),d.init(EE("visit-advertiser"),a,this.macros),Av(d.element),a=ila(d.element),
Bv(d.element,a+" This link opens in new tab"));(d=this.api.U())&&!g.rR(d)&&d.controlsType=="3"&&(d=new OF(this.api,this.B),d.Ka(this.Oa),g.M(this,d));b.adDisclosureBannerRenderer&&(b=g.V(b.adDisclosureBannerRenderer,Nmb))&&(d=new LF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob),d.Ka(this.va),d.init(EE("ad-disclosure-banner"),b),g.M(this,d));this.api.U().L("enable_updated_html5_player_focus_style")&&g.Kv(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()};
PF.prototype.clear=function(){this.hide()};SF.prototype.set=function(a,b,c){c=c!==void 0?Date.now()+c:void 0;this.j.set(a,b,c)};
SF.prototype.get=function(a){return this.j.get(a)};
SF.prototype.remove=function(a){this.j.remove(a)};var VF=null,WF=null,XF=null,Cza=null;g.Va("yt.www.ads.eventcache.getLastCompanionData",function(){return VF});
g.Va("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Va("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return WF});
g.Va("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return XF});
g.Va("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Cza});var Eza=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);YF.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=((c=b.bq.context)==null?void 0:(d=c.request)==null?void 0:d.consistencyTokenJars)||[];var e;(a=(e=a.responseContext)==null?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
YF.prototype.replace=function(a,b){a=g.v(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];Gza(this,b)};var mpb=window.location.hostname.split(".").slice(-2).join("."),F2;ZF.getInstance=function(){F2=g.Wa("yt.clientLocationService.instance");F2||(F2=new ZF,g.Va("yt.clientLocationService.instance",F2));return F2};
g.k=ZF.prototype;
g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});if(this.j)a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(this.j.coords.latitude*1E7),a.client.locationInfo.longitudeE7=Math.floor(this.j.coords.longitude*1E7),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.C||this.locationPlayabilityToken)a.client.locationPlayabilityToken=this.C||
this.locationPlayabilityToken};
g.k.handleResponse=function(a){var b;a=(b=a.responseContext)==null?void 0:b.locationPlayabilityToken;a!==void 0&&(this.locationPlayabilityToken=a,this.j=void 0,g.jA("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=Hza(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.QA("YT_CL",JSON.stringify({loctok:a}),15552E3,mpb,!0))};
g.k.clearLocationPlayabilityToken=function(a){a==="TVHTML5"?(this.localStorage=Hza(this))&&this.localStorage.remove("yt-location-playability-token"):g.dra("YT_CL");this.C=void 0;this.B!==-1&&(clearTimeout(this.B),this.B=-1)};
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;g.jA("INNERTUBE_CLIENT_NAME")==="MWEB"&&(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(a==null?0:a.latitude)b.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)b.longitudeE7=Math.floor(a.longitude*1E7);if(a==null?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};
g.k.createLocationInfo=function(a){var b={};a=a.coords;if(a==null?0:a.latitude)b.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)b.longitudeE7=Math.floor(a.longitude*1E7);return b};g.k=Mza.prototype;g.k.contains=function(a){return Object.prototype.hasOwnProperty.call(this.j,a)};
g.k.get=function(a){if(this.contains(a))return this.j[a]};
g.k.set=function(a,b){this.j[a]=b};
g.k.Yn=function(){return Object.keys(this.j)};
g.k.remove=function(a){delete this.j[a]};aG.prototype.getModuleId=function(a){return a.serviceId.getModuleId()};
aG.prototype.get=function(a){a:{var b=this.mappings.get(a.toString());switch(b.type){case "mapping":a=b.value;break a;case "factory":b=b.value();this.mappings.set(a.toString(),{type:"mapping",value:b});a=b;break a;default:a=Pe(b)}}return a};
aG.prototype.registerService=function(a,b){this.mappings.set(a.toString(),{type:"mapping",value:b});return a};
new aG;var G2={},Nza=(G2.WEB_UNPLUGGED="^unplugged/",G2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",G2.WEB_UNPLUGGED_OPS="^unplugged/",G2.WEB_UNPLUGGED_PUBLIC="^unplugged/",G2.WEB_CREATOR="^creator/",G2.WEB_KIDS="^kids/",G2.WEB_EXPERIMENTS="^experiments/",G2.WEB_MUSIC="^music/",G2.WEB_REMIX="^music/",G2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",G2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",G2);Pza.prototype.G=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?MC:c;var d={context:g.$F(a.clickTrackingParams,!1,this.D)};var e=this.B(a);if(e){this.j(d,e,b);var f;b=g.cG(this.C());(e=(f=g.V(a.commandMetadata,g.u2))==null?void 0:f.apiUrl)&&(b=e);f=gra(fra(b));a=Object.assign({},{command:a},void 0);d={input:f,qv:hra(f),bq:d,config:a};d.config.Cw?d.config.Cw.identity=c:d.config.Cw={identity:c};return d}g.mE(new g.FB("Error: Failed to create Request from Command.",a))};
g.ea.Object.defineProperties(Pza.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}});
g.x(dG,Pza);g.x(eG,dG);eG.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",qv:hra("/getDatasyncIdsEndpoint","GET"),bq:{}}};
eG.prototype.C=function(){return[]};
eG.prototype.B=function(){};
eG.prototype.j=function(){};var npb={},CAa=(npb.GET_DATASYNC_IDS=bG(eG),npb);var H2={},Wza=(H2.auto_search="LATENCY_ACTION_AUTO_SEARCH",H2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",H2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",H2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",H2.app_startup="LATENCY_ACTION_APP_STARTUP",H2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",H2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",H2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",H2["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",
H2["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",H2["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",H2["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",H2["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",H2["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",H2["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",H2["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",H2["asset.metadata"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",H2["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",H2["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",H2["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",H2["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",H2["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",H2["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",H2["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",
H2["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",H2["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",H2["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",H2.browse="LATENCY_ACTION_BROWSE",H2.cast_splash="LATENCY_ACTION_CAST_SPLASH",H2.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",H2.channels="LATENCY_ACTION_CHANNELS",H2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",H2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",
H2["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",H2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",H2["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",H2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",H2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",H2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",H2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",H2["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",
H2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",H2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",H2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",H2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",H2.chips="LATENCY_ACTION_CHIPS",H2.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",H2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",H2["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",
H2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",H2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",H2.embed="LATENCY_ACTION_EMBED",H2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",H2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",H2.explore="LATENCY_ACTION_EXPLORE",H2.favorites="LATENCY_ACTION_FAVORITES",H2.home="LATENCY_ACTION_HOME",H2.inboarding="LATENCY_ACTION_INBOARDING",H2.library="LATENCY_ACTION_LIBRARY",H2.live=
"LATENCY_ACTION_LIVE",H2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",H2.mini_app="LATENCY_ACTION_MINI_APP_PLAY",H2.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",H2.onboarding="LATENCY_ACTION_ONBOARDING",H2.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",H2["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",H2["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",H2["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",H2["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",
H2["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",H2["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",H2["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",H2["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",H2["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",H2["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",H2["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",H2["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",
H2["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",H2["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",H2["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",H2["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",H2["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",H2["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",H2["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",H2["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",H2["owner.videos"]=
"LATENCY_ACTION_CREATOR_CMS_VIDEOS",H2.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",H2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",H2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",H2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",H2["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",H2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",H2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",H2.prebuffer="LATENCY_ACTION_PREBUFFER",
H2.prefetch="LATENCY_ACTION_PREFETCH",H2.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",H2.profile_switcher="LATENCY_ACTION_LOGIN",H2.reel_watch="LATENCY_ACTION_REEL_WATCH",H2.results="LATENCY_ACTION_RESULTS",H2["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",H2.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",H2.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",H2.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",H2.search_ui="LATENCY_ACTION_SEARCH_UI",H2.search_suggest=
"LATENCY_ACTION_SUGGEST",H2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",H2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",H2.seek="LATENCY_ACTION_PLAYER_SEEK",H2.settings="LATENCY_ACTION_SETTINGS",H2.store="LATENCY_ACTION_STORE",H2.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",H2.tenx="LATENCY_ACTION_TENX",H2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",H2.watch="LATENCY_ACTION_WATCH",H2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",H2["watch,watch7"]="LATENCY_ACTION_WATCH",
H2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",H2["watch,watch7ad"]="LATENCY_ACTION_WATCH",H2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",H2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",H2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",H2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",H2["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",H2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",H2["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",H2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",
H2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",H2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",H2["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",H2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",H2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",H2["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",H2["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",H2["video.translations"]=
"LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",H2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",H2.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",H2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",H2.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",H2.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",H2);var X={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_SHORTS_THUMBNAIL_EDITOR:290,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_EXTERNAL_GREEN_SCREEN_IMAGE_DOWNLOAD:291,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_SHORTS_PARSE_VIDEO_METADATA:287,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_SHORTS_EXTERNAL_SHARE_TRANSCODING:285,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_FETCH_ENDPOINT:286,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_CHANNEL_ACTIVITY:292,LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD:289,LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS:288,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};X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE";
X[X.LATENCY_ACTION_THUMBNAIL_LOAD]="LATENCY_ACTION_THUMBNAIL_LOAD";X[X.LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION_TRANSCODING";X[X.LATENCY_ACTION_KIDS_PROFILE_SWITCHER]="LATENCY_ACTION_KIDS_PROFILE_SWITCHER";X[X.LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER]="LATENCY_ACTION_OFFLINE_THUMBNAIL_TRANSFER";X[X.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC";X[X.LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR";
X[X.LATENCY_ACTION_SPINNER_DISPLAYED]="LATENCY_ACTION_SPINNER_DISPLAYED";X[X.LATENCY_ACTION_PLAYABILITY_CHECK]="LATENCY_ACTION_PLAYABILITY_CHECK";X[X.LATENCY_ACTION_PROCESS]="LATENCY_ACTION_PROCESS";X[X.LATENCY_ACTION_APP_STARTUP]="LATENCY_ACTION_APP_STARTUP";X[X.LATENCY_ACTION_COSTREAM_JOIN_FLOW]="LATENCY_ACTION_COSTREAM_JOIN_FLOW";X[X.LATENCY_ACTION_COSTREAM_INVITE_FLOW]="LATENCY_ACTION_COSTREAM_INVITE_FLOW";X[X.LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER]="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER";
X[X.LATENCY_ACTION_MINI_APP_PLAY]="LATENCY_ACTION_MINI_APP_PLAY";X[X.LATENCY_ACTION_DMA_CONSENT_FLOW]="LATENCY_ACTION_DMA_CONSENT_FLOW";X[X.LATENCY_ACTION_GEL_FETCH]="LATENCY_ACTION_GEL_FETCH";X[X.LATENCY_ACTION_GEL_JSPB_SERIALIZE]="LATENCY_ACTION_GEL_JSPB_SERIALIZE";X[X.LATENCY_ACTION_GEL_COMPRESSION]="LATENCY_ACTION_GEL_COMPRESSION";X[X.LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE]="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE";X[X.LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC]="LATENCY_ACTION_COMMERCE_ACTION_COMMAND_RPC";
X[X.LATENCY_ACTION_COMMERCE_TRANSACTION]="LATENCY_ACTION_COMMERCE_TRANSACTION";X[X.LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC]="LATENCY_ACTION_LOG_PAYMENT_SERVER_ANALYTICS_RPC";X[X.LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC]="LATENCY_ACTION_GET_PAYMENT_INSTRUMENTS_PARAMS_RPC";X[X.LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC]="LATENCY_ACTION_GET_FIX_INSTRUMENT_PARAMS_RPC";X[X.LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC]="LATENCY_ACTION_RESUME_SUBSCRIPTION_RPC";
X[X.LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC]="LATENCY_ACTION_PAUSE_SUBSCRIPTION_RPC";X[X.LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC]="LATENCY_ACTION_GET_OFFLINE_UPSELL_RPC";X[X.LATENCY_ACTION_GET_OFFERS_RPC]="LATENCY_ACTION_GET_OFFERS_RPC";X[X.LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_YT_FLOW_RPC";X[X.LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC]="LATENCY_ACTION_GET_CANCELLATION_FLOW_RPC";X[X.LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC]="LATENCY_ACTION_UPDATE_CROSS_DEVICE_OFFLINE_STATE_RPC";
X[X.LATENCY_ACTION_GET_OFFER_DETAILS_RPC]="LATENCY_ACTION_GET_OFFER_DETAILS_RPC";X[X.LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC]="LATENCY_ACTION_CANCEL_RECURRENCE_TRANSACTION_RPC";X[X.LATENCY_ACTION_GET_TIP_MODULE_RPC]="LATENCY_ACTION_GET_TIP_MODULE_RPC";X[X.LATENCY_ACTION_HANDLE_TRANSACTION_RPC]="LATENCY_ACTION_HANDLE_TRANSACTION_RPC";X[X.LATENCY_ACTION_COMPLETE_TRANSACTION_RPC]="LATENCY_ACTION_COMPLETE_TRANSACTION_RPC";X[X.LATENCY_ACTION_GET_CART_RPC]="LATENCY_ACTION_GET_CART_RPC";
X[X.LATENCY_ACTION_THUMBNAIL_FETCH]="LATENCY_ACTION_THUMBNAIL_FETCH";X[X.LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK]="LATENCY_ACTION_ABANDONED_DIRECT_PLAYBACK";X[X.LATENCY_ACTION_SHARE_VIDEO]="LATENCY_ACTION_SHARE_VIDEO";X[X.LATENCY_ACTION_AD_TO_VIDEO_INT]="LATENCY_ACTION_AD_TO_VIDEO_INT";X[X.LATENCY_ACTION_ABANDONED_BROWSE]="LATENCY_ACTION_ABANDONED_BROWSE";X[X.LATENCY_ACTION_PLAYER_ROTATION]="LATENCY_ACTION_PLAYER_ROTATION";X[X.LATENCY_ACTION_GENERIC_WEB_VIEW]="LATENCY_ACTION_GENERIC_WEB_VIEW";
X[X.LATENCY_ACTION_SHOPPING_IN_APP]="LATENCY_ACTION_SHOPPING_IN_APP";X[X.LATENCY_ACTION_PLAYER_ATTESTATION]="LATENCY_ACTION_PLAYER_ATTESTATION";X[X.LATENCY_ACTION_PLAYER_SEEK]="LATENCY_ACTION_PLAYER_SEEK";X[X.LATENCY_ACTION_SUPER_STICKER_BUY_FLOW]="LATENCY_ACTION_SUPER_STICKER_BUY_FLOW";X[X.LATENCY_ACTION_SHORTS_THUMBNAIL_EDITOR]="LATENCY_ACTION_SHORTS_THUMBNAIL_EDITOR";X[X.LATENCY_ACTION_DOWNLOADS_DATA_ACCESS]="LATENCY_ACTION_DOWNLOADS_DATA_ACCESS";X[X.LATENCY_ACTION_BLOCKS_PERFORMANCE]="LATENCY_ACTION_BLOCKS_PERFORMANCE";
X[X.LATENCY_ACTION_ASSISTANT_QUERY]="LATENCY_ACTION_ASSISTANT_QUERY";X[X.LATENCY_ACTION_ASSISTANT_SETTINGS]="LATENCY_ACTION_ASSISTANT_SETTINGS";X[X.LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF";X[X.LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF]="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF";X[X.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN";X[X.LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE]="LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE";
X[X.LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION]="LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION";X[X.LATENCY_ACTION_NETWORKLESS_PERFORMANCE]="LATENCY_ACTION_NETWORKLESS_PERFORMANCE";X[X.LATENCY_ACTION_DOWNLOADS_EXPANSION]="LATENCY_ACTION_DOWNLOADS_EXPANSION";X[X.LATENCY_ACTION_ENTITY_TRANSFORM]="LATENCY_ACTION_ENTITY_TRANSFORM";X[X.LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER]="LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER";X[X.LATENCY_ACTION_EMBEDS_SET_VIDEO]="LATENCY_ACTION_EMBEDS_SET_VIDEO";
X[X.LATENCY_ACTION_SETTINGS]="LATENCY_ACTION_SETTINGS";X[X.LATENCY_ACTION_ABANDONED_STARTUP]="LATENCY_ACTION_ABANDONED_STARTUP";X[X.LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY]="LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY";X[X.LATENCY_ACTION_MEDIA_BROWSER_SEARCH]="LATENCY_ACTION_MEDIA_BROWSER_SEARCH";X[X.LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE]="LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE";X[X.LATENCY_ACTION_WHO_IS_WATCHING]="LATENCY_ACTION_WHO_IS_WATCHING";X[X.LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH]="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH";
X[X.LATENCY_ACTION_LITE_SWITCH_ACCOUNT]="LATENCY_ACTION_LITE_SWITCH_ACCOUNT";X[X.LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION]="LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION";X[X.LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION]="LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION";X[X.LATENCY_ACTION_OFFLINE_STORE_START]="LATENCY_ACTION_OFFLINE_STORE_START";X[X.LATENCY_ACTION_REEL_EDITOR]="LATENCY_ACTION_REEL_EDITOR";X[X.LATENCY_ACTION_CHANNEL_SUBSCRIBE]="LATENCY_ACTION_CHANNEL_SUBSCRIBE";
X[X.LATENCY_ACTION_CHANNEL_PREVIEW]="LATENCY_ACTION_CHANNEL_PREVIEW";X[X.LATENCY_ACTION_PREFETCH]="LATENCY_ACTION_PREFETCH";X[X.LATENCY_ACTION_ABANDONED_WATCH]="LATENCY_ACTION_ABANDONED_WATCH";X[X.LATENCY_ACTION_LOAD_COMMENT_REPLIES]="LATENCY_ACTION_LOAD_COMMENT_REPLIES";X[X.LATENCY_ACTION_LOAD_COMMENTS]="LATENCY_ACTION_LOAD_COMMENTS";X[X.LATENCY_ACTION_EDIT_COMMENT]="LATENCY_ACTION_EDIT_COMMENT";X[X.LATENCY_ACTION_NEW_COMMENT]="LATENCY_ACTION_NEW_COMMENT";
X[X.LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING]="LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING";X[X.LATENCY_ACTION_EMBED]="LATENCY_ACTION_EMBED";X[X.LATENCY_ACTION_MDX_LAUNCH]="LATENCY_ACTION_MDX_LAUNCH";X[X.LATENCY_ACTION_RESOLVE_URL]="LATENCY_ACTION_RESOLVE_URL";X[X.LATENCY_ACTION_CAST_SPLASH]="LATENCY_ACTION_CAST_SPLASH";X[X.LATENCY_ACTION_MDX_CONNECT_TO_SESSION]="LATENCY_ACTION_MDX_CONNECT_TO_SESSION";X[X.LATENCY_ACTION_MDX_STREAM_TRANSFER]="LATENCY_ACTION_MDX_STREAM_TRANSFER";
X[X.LATENCY_ACTION_MDX_CAST]="LATENCY_ACTION_MDX_CAST";X[X.LATENCY_ACTION_MDX_COMMAND]="LATENCY_ACTION_MDX_COMMAND";X[X.LATENCY_ACTION_MOBILE_LIVE_NAV_MDE]="LATENCY_ACTION_MOBILE_LIVE_NAV_MDE";X[X.LATENCY_ACTION_REEL_SELECT_SEGMENT]="LATENCY_ACTION_REEL_SELECT_SEGMENT";X[X.LATENCY_ACTION_ACCELERATED_EFFECTS]="LATENCY_ACTION_ACCELERATED_EFFECTS";X[X.LATENCY_ACTION_EXTERNAL_GREEN_SCREEN_IMAGE_DOWNLOAD]="LATENCY_ACTION_EXTERNAL_GREEN_SCREEN_IMAGE_DOWNLOAD";
X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE";
X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO";X[X.LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO]="LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO";X[X.LATENCY_ACTION_SHORTS_PARSE_VIDEO_METADATA]="LATENCY_ACTION_SHORTS_PARSE_VIDEO_METADATA";X[X.LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO]="LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO";X[X.LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD]="LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD";
X[X.LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET]="LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET";X[X.LATENCY_ACTION_SHORTS_LOAD_PROJECT]="LATENCY_ACTION_SHORTS_LOAD_PROJECT";X[X.LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING]="LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING";X[X.LATENCY_ACTION_SHORTS_EXTERNAL_SHARE_TRANSCODING]="LATENCY_ACTION_SHORTS_EXTERNAL_SHARE_TRANSCODING";X[X.LATENCY_ACTION_EDIT_AUDIO_GEN]="LATENCY_ACTION_EDIT_AUDIO_GEN";X[X.LATENCY_ACTION_UPLOAD_AUDIO_MIXER]="LATENCY_ACTION_UPLOAD_AUDIO_MIXER";
X[X.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING_RECOMPOSITION";X[X.LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING]="LATENCY_ACTION_SHORTS_CLIENT_SIDE_RENDERING";X[X.LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING]="LATENCY_ACTION_SHORTS_SEG_IMP_TRANSCODING";X[X.LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK]="LATENCY_ACTION_SHORTS_AUDIO_PICKER_PLAYBACK";X[X.LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD]="LATENCY_ACTION_SHORTS_WAVEFORM_DOWNLOAD";
X[X.LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD]="LATENCY_ACTION_SHORTS_CAMERA_AUDIO_DOWNLOAD";X[X.LATENCY_ACTION_SHORTS_VIDEO_INGESTION]="LATENCY_ACTION_SHORTS_VIDEO_INGESTION";X[X.LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING]="LATENCY_ACTION_SHORTS_RECOMPOSITION_TRANSCODING";X[X.LATENCY_ACTION_SHORTS_RECOMPOSITION]="LATENCY_ACTION_SHORTS_RECOMPOSITION";X[X.LATENCY_ACTION_SHORTS_GALLERY]="LATENCY_ACTION_SHORTS_GALLERY";X[X.LATENCY_ACTION_SHORTS_TRIM]="LATENCY_ACTION_SHORTS_TRIM";
X[X.LATENCY_ACTION_SHORTS_EDIT]="LATENCY_ACTION_SHORTS_EDIT";X[X.LATENCY_ACTION_SHORTS_CAMERA]="LATENCY_ACTION_SHORTS_CAMERA";X[X.LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_NON_CREATION_MODES_GLOBAL_ENTRYPOINT";X[X.LATENCY_ACTION_CREATION_MODES_FETCH_ENDPOINT]="LATENCY_ACTION_CREATION_MODES_FETCH_ENDPOINT";X[X.LATENCY_ACTION_CREATION_MODES_MODE_SWITCH]="LATENCY_ACTION_CREATION_MODES_MODE_SWITCH";X[X.LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT]="LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT";
X[X.LATENCY_ACTION_SWITCH_CAMERA]="LATENCY_ACTION_SWITCH_CAMERA";X[X.LATENCY_ACTION_OPEN_CAMERA]="LATENCY_ACTION_OPEN_CAMERA";X[X.LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE]="LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE";X[X.LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME]="LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME";X[X.LATENCY_ACTION_MEDIA_ENGINE_EXPORT]="LATENCY_ACTION_MEDIA_ENGINE_EXPORT";X[X.LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA]="LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA";
X[X.LATENCY_ACTION_PRODUCER_EXPORT_PROJECT]="LATENCY_ACTION_PRODUCER_EXPORT_PROJECT";X[X.LATENCY_ACTION_PRODUCER_EDITOR]="LATENCY_ACTION_PRODUCER_EDITOR";X[X.LATENCY_ACTION_PARENT_TOOLS_DASHBOARD]="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD";X[X.LATENCY_ACTION_PARENT_TOOLS_COLLECTION]="LATENCY_ACTION_PARENT_TOOLS_COLLECTION";X[X.LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL";X[X.LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL";
X[X.LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS";X[X.LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS]="LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS";X[X.LATENCY_ACTION_MUSIC_ALBUM_DETAIL]="LATENCY_ACTION_MUSIC_ALBUM_DETAIL";X[X.LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL]="LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL";X[X.LATENCY_ACTION_STORE]="LATENCY_ACTION_STORE";X[X.LATENCY_ACTION_CHIPS]="LATENCY_ACTION_CHIPS";X[X.LATENCY_ACTION_SEARCH_ZERO_STATE]="LATENCY_ACTION_SEARCH_ZERO_STATE";
X[X.LATENCY_ACTION_LIVE_PAGINATION]="LATENCY_ACTION_LIVE_PAGINATION";X[X.LATENCY_ACTION_LIVE]="LATENCY_ACTION_LIVE";X[X.LATENCY_ACTION_PREBUFFER]="LATENCY_ACTION_PREBUFFER";X[X.LATENCY_ACTION_TENX]="LATENCY_ACTION_TENX";X[X.LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY]="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY";X[X.LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD]="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD";X[X.LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS]="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS";
X[X.LATENCY_ACTION_KIDS_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PROFILE_SETTINGS";X[X.LATENCY_ACTION_KIDS_WATCH_IT_AGAIN]="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN";X[X.LATENCY_ACTION_KIDS_SECRET_CODE]="LATENCY_ACTION_KIDS_SECRET_CODE";X[X.LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS]="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS";X[X.LATENCY_ACTION_KIDS_ONBOARDING]="LATENCY_ACTION_KIDS_ONBOARDING";X[X.LATENCY_ACTION_KIDS_VOICE_SEARCH]="LATENCY_ACTION_KIDS_VOICE_SEARCH";
X[X.LATENCY_ACTION_KIDS_CURATED_COLLECTION]="LATENCY_ACTION_KIDS_CURATED_COLLECTION";X[X.LATENCY_ACTION_KIDS_LIBRARY]="LATENCY_ACTION_KIDS_LIBRARY";X[X.LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS";X[X.LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT";X[X.LATENCY_ACTION_CREATOR_VIDEO_POLICY]="LATENCY_ACTION_CREATOR_VIDEO_POLICY";X[X.LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION";
X[X.LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING";X[X.LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS";X[X.LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC";X[X.LATENCY_ACTION_CREATOR_VIDEO_EDITOR]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR";X[X.LATENCY_ACTION_CREATOR_VIDEO_EDIT]="LATENCY_ACTION_CREATOR_VIDEO_EDIT";X[X.LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT";
X[X.LATENCY_ACTION_CREATOR_VIDEO_COMMENTS]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS";X[X.LATENCY_ACTION_CREATOR_VIDEO_CLAIMS]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS";X[X.LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS";X[X.LATENCY_ACTION_CREATOR_SONG_ANALYTICS]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS";X[X.LATENCY_ACTION_CREATOR_PROMOTION_LIST]="LATENCY_ACTION_CREATOR_PROMOTION_LIST";X[X.LATENCY_ACTION_CREATOR_PROMOTION_EDIT]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT";
X[X.LATENCY_ACTION_CREATOR_POST_LIST]="LATENCY_ACTION_CREATOR_POST_LIST";X[X.LATENCY_ACTION_CREATOR_POST_EDIT]="LATENCY_ACTION_CREATOR_POST_EDIT";X[X.LATENCY_ACTION_CREATOR_POST_COMMENTS]="LATENCY_ACTION_CREATOR_POST_COMMENTS";X[X.LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST";X[X.LATENCY_ACTION_CREATOR_LIVE_STREAMING]="LATENCY_ACTION_CREATOR_LIVE_STREAMING";X[X.LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT";
X[X.LATENCY_ACTION_CREATOR_DIALOG_UPLOADS]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS";X[X.LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES";X[X.LATENCY_ACTION_CREATOR_CMS_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CMS_REPORTS]="LATENCY_ACTION_CREATOR_CMS_REPORTS";X[X.LATENCY_ACTION_CREATOR_CMS_RELEASES]="LATENCY_ACTION_CREATOR_CMS_RELEASES";X[X.LATENCY_ACTION_CREATOR_CMS_POLICIES]="LATENCY_ACTION_CREATOR_CMS_POLICIES";
X[X.LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC";X[X.LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING";X[X.LATENCY_ACTION_CREATOR_CMS_LICENSES]="LATENCY_ACTION_CREATOR_CMS_LICENSES";X[X.LATENCY_ACTION_CREATOR_CMS_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ISSUES";X[X.LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES";X[X.LATENCY_ACTION_CREATOR_CMS_DASHBOARD]="LATENCY_ACTION_CREATOR_CMS_DASHBOARD";
X[X.LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY";X[X.LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES";X[X.LATENCY_ACTION_CREATOR_CMS_CHANNELS]="LATENCY_ACTION_CREATOR_CMS_CHANNELS";X[X.LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS";X[X.LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY";
X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP";
X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA";
X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS";
X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION";X[X.LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CMS_ASSETS]="LATENCY_ACTION_CREATOR_CMS_ASSETS";
X[X.LATENCY_ACTION_CREATOR_CMS_ART_TRACKS]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS";X[X.LATENCY_ACTION_CREATOR_CMS_ANALYTICS]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS";X[X.LATENCY_ACTION_CREATOR_CMS_ALLOWLIST]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST";X[X.LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS";X[X.LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS";X[X.LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS";
X[X.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT";X[X.LATENCY_ACTION_CREATOR_CHANNEL_MUSIC]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC";X[X.LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION";X[X.LATENCY_ACTION_CREATOR_CHANNEL_EDITING]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING";X[X.LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD]="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD";X[X.LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT";
X[X.LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS";X[X.LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS";X[X.LATENCY_ACTION_CREATOR_ARTIST_PROFILE]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE";X[X.LATENCY_ACTION_CREATOR_ARTIST_CONCERTS]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS";X[X.LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS";X[X.LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE";
X[X.LATENCY_ACTION_EXPERIMENTAL_WATCH_UI]="LATENCY_ACTION_EXPERIMENTAL_WATCH_UI";X[X.LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS]="LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS";X[X.LATENCY_ACTION_STORYBOARD_THUMBNAILS]="LATENCY_ACTION_STORYBOARD_THUMBNAILS";X[X.LATENCY_ACTION_SEARCH_THUMBNAILS]="LATENCY_ACTION_SEARCH_THUMBNAILS";X[X.LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD]="LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD";X[X.LATENCY_ACTION_VOICE_ASSISTANT]="LATENCY_ACTION_VOICE_ASSISTANT";
X[X.LATENCY_ACTION_SEARCH_UI]="LATENCY_ACTION_SEARCH_UI";X[X.LATENCY_ACTION_SUGGEST]="LATENCY_ACTION_SUGGEST";X[X.LATENCY_ACTION_AUTO_SEARCH]="LATENCY_ACTION_AUTO_SEARCH";X[X.LATENCY_ACTION_PLAYLIST_AGGREGATION]="LATENCY_ACTION_PLAYLIST_AGGREGATION";X[X.LATENCY_ACTION_DOWNLOADS]="LATENCY_ACTION_DOWNLOADS";X[X.LATENCY_ACTION_EXPLORE]="LATENCY_ACTION_EXPLORE";X[X.LATENCY_ACTION_VIDEO_LIST]="LATENCY_ACTION_VIDEO_LIST";X[X.LATENCY_ACTION_HOME_RESUME]="LATENCY_ACTION_HOME_RESUME";
X[X.LATENCY_ACTION_SUBSCRIPTIONS_LIST]="LATENCY_ACTION_SUBSCRIPTIONS_LIST";X[X.LATENCY_ACTION_FIRST_THUMBNAIL_LOAD]="LATENCY_ACTION_FIRST_THUMBNAIL_LOAD";X[X.LATENCY_ACTION_SUBSCRIPTIONS_FEED]="LATENCY_ACTION_SUBSCRIPTIONS_FEED";X[X.LATENCY_ACTION_SUBSCRIPTIONS]="LATENCY_ACTION_SUBSCRIPTIONS";X[X.LATENCY_ACTION_TRENDING]="LATENCY_ACTION_TRENDING";X[X.LATENCY_ACTION_LIBRARY]="LATENCY_ACTION_LIBRARY";X[X.LATENCY_ACTION_VIDEO_THUMBNAIL]="LATENCY_ACTION_VIDEO_THUMBNAIL";
X[X.LATENCY_ACTION_SHOW_MORE]="LATENCY_ACTION_SHOW_MORE";X[X.LATENCY_ACTION_VIDEO_PREVIEW]="LATENCY_ACTION_VIDEO_PREVIEW";X[X.LATENCY_ACTION_AD_TO_AD]="LATENCY_ACTION_AD_TO_AD";X[X.LATENCY_ACTION_VIDEO_TO_AD]="LATENCY_ACTION_VIDEO_TO_AD";X[X.LATENCY_ACTION_AD_TO_VIDEO]="LATENCY_ACTION_AD_TO_VIDEO";X[X.LATENCY_ACTION_DIRECT_PLAYBACK]="LATENCY_ACTION_DIRECT_PLAYBACK";X[X.LATENCY_ACTION_NETWORK_INSTRUMENTATION]="LATENCY_ACTION_NETWORK_INSTRUMENTATION";X[X.LATENCY_ACTION_IMAGE_LOAD]="LATENCY_ACTION_IMAGE_LOAD";
X[X.LATENCY_ACTION_PREBUFFER_VIDEO]="LATENCY_ACTION_PREBUFFER_VIDEO";X[X.LATENCY_ACTION_PREFETCH_VIDEO]="LATENCY_ACTION_PREFETCH_VIDEO";X[X.LATENCY_ACTION_STARTUP]="LATENCY_ACTION_STARTUP";X[X.LATENCY_ACTION_ELEMENTS_PERFORMANCE]="LATENCY_ACTION_ELEMENTS_PERFORMANCE";X[X.LATENCY_ACTION_INFRASTRUCTURE_CONTAINER]="LATENCY_ACTION_INFRASTRUCTURE_CONTAINER";X[X.LATENCY_ACTION_INBOARDING]="LATENCY_ACTION_INBOARDING";X[X.LATENCY_ACTION_FAVORITES]="LATENCY_ACTION_FAVORITES";
X[X.LATENCY_ACTION_INLINE_TO_WATCH]="LATENCY_ACTION_INLINE_TO_WATCH";X[X.LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH]="LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH";X[X.LATENCY_ACTION_ONBOARDING]="LATENCY_ACTION_ONBOARDING";X[X.LATENCY_ACTION_LOGIN]="LATENCY_ACTION_LOGIN";X[X.LATENCY_ACTION_REEL_WATCH]="LATENCY_ACTION_REEL_WATCH";X[X.LATENCY_ACTION_WATCH]="LATENCY_ACTION_WATCH";X[X.LATENCY_ACTION_RESULTS]="LATENCY_ACTION_RESULTS";X[X.LATENCY_ACTION_CHANNELS]="LATENCY_ACTION_CHANNELS";X[X.LATENCY_ACTION_HOME]="LATENCY_ACTION_HOME";
X[X.LATENCY_ACTION_BROWSE]="LATENCY_ACTION_BROWSE";X[X.LATENCY_ACTION_USER_ACTION]="LATENCY_ACTION_USER_ACTION";X[X.LATENCY_ACTION_INFRASTRUCTURE]="LATENCY_ACTION_INFRASTRUCTURE";X[X.LATENCY_ACTION_PAGE_NAVIGATION]="LATENCY_ACTION_PAGE_NAVIGATION";X[X.LATENCY_ACTION_UNKNOWN]="LATENCY_ACTION_UNKNOWN";var vG={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};vG[vG.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";vG[vG.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";
vG[vG.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";var wG={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};wG[wG.CONN_INVALID]="CONN_INVALID";wG[wG.CONN_WIRED]="CONN_WIRED";wG[wG.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";wG[wG.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";
wG[wG.CONN_WIFI_METERED]="CONN_WIFI_METERED";wG[wG.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";wG[wG.CONN_DISCO]="CONN_DISCO";wG[wG.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";wG[wG.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";wG[wG.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";wG[wG.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";wG[wG.CONN_WIFI]="CONN_WIFI";wG[wG.CONN_NONE]="CONN_NONE";wG[wG.CONN_UNKNOWN]="CONN_UNKNOWN";wG[wG.CONN_DEFAULT]="CONN_DEFAULT";
var xG={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};xG[xG.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
xG[xG.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";xG[xG.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";xG[xG.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";xG[xG.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";xG[xG.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";xG[xG.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
xG[xG.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";xG[xG.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";xG[xG.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";xG[xG.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";xG[xG.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";xG[xG.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";xG[xG.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";xG[xG.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
xG[xG.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";xG[xG.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";xG[xG.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";xG[xG.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";xG[xG.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";xG[xG.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";xG[xG.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";xG[xG.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
xG[xG.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";xG[xG.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";xG[xG.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";xG[xG.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var yG={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};
yG[yG.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";yG[yG.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";yG[yG.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";yG[yG.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";yG[yG.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";yG[yG.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";yG[yG.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";yG[yG.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var zG={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};zG[zG.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";zG[zG.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";zG[zG.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";zG[zG.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var AG={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
AG[AG.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";AG[AG.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var BG={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};BG[BG.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";BG[BG.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";BG[BG.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
BG[BG.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";BG[BG.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";BG[BG.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var CG={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};CG[CG.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";CG[CG.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";CG[CG.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";CG[CG.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var DG={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};DG[DG.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";DG[DG.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";DG[DG.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var EG={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};EG[EG.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
EG[EG.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";EG[EG.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var $za="actionVisualElement spinnerInfo cacheAttempts resourceInfo preloadThumbnailInfo startupEdgeCaseInfo startupInfo renderCounters 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 videoMetadataParsingContext browseEarlyRequested".split(" ");g.x(Xza,NC);var qAa=new OC("aft-recorded",Xza);var oG=g.Ua.ytLoggingLatencyUsageStats_||{};g.Va("ytLoggingLatencyUsageStats_",oG);mG.prototype.tick=function(a,b,c,d){pG(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.FA("web_csi_via_jspb")?(d=new eqa,S(d,1,a),S(d,2,b),a=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA,hk(a,eqa,5,fE,d),eE("latencyActionTicked",a,c)):g.VB("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
mG.prototype.info=function(a,b,c){var d=Object.keys(a).join("");pG(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.VB("latencyActionInfo",a,{cttAuthInfo:c}))};
mG.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e<$k(a).length;e++)$k(a)[e]!==void 0&&(d=e===0?d.concat(""+e):d.concat("_"+e));pG(this,"info_"+d+"_"+b)||(S(a,2,b),b={cttAuthInfo:c},c=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA,hk(c,Vz,7,fE,a),eE("latencyActionInfo",c,b))};
mG.prototype.span=function(a,b,c){var d=Object.keys(a).join("");pG(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.VB("latencyActionSpan",a,{cttAuthInfo:c}))};var I2=window,qG=I2.performance||I2.mozPerformance||I2.msPerformance||I2.webkitPerformance||new Yza;var pAa=!1,bAa=!1,kAa={'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"},rAa=(0,g.ib)(qG.clearResourceTimings||qG.webkitClearResourceTimings||qG.mozClearResourceTimings||qG.msClearResourceTimings||qG.oClearResourceTimings||g.Jd,qG);var opb=window;opb.ytcsi&&(opb.ytcsi.infoGel=g.LG,opb.ytcsi.tick=KG);var IAa="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD".split(" "),KAa=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var OAa=new DD("INNERTUBE_TRANSPORT_TOKEN");g.x(WG,dG);WG.prototype.C=function(){return bpb};
WG.prototype.B=function(a){return g.V(a,Mob)||void 0};
WG.prototype.j=function(a,b,c){c=c===void 0?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
g.ea.Object.defineProperties(WG.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.x(XG,dG);XG.prototype.C=function(){return cpb};
XG.prototype.B=function(a){return g.V(a,Kob)||void 0};
XG.prototype.j=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
g.ea.Object.defineProperties(XG.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ppb=new DD("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");g.x(YG,dG);YG.prototype.C=function(){return Xob};
YG.prototype.B=function(a){return g.V(a,uob)||g.V(a,vob)||g.V(a,tob)};
YG.prototype.j=function(a,b){b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);if(b.clientParamIdentifier){var c;if((c=this.K)==null?0:c.j(b.clientParamIdentifier))a.clientParams=this.K.B(b.clientParamIdentifier)}};
YG[FD]=[ppb];g.x(ZG,dG);ZG.prototype.C=function(){return Zob};
ZG.prototype.B=function(a){return g.V(a,dnb)||void 0};
ZG.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.ea.Object.defineProperties(ZG.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.x($G,dG);$G.prototype.C=function(){return $ob};
$G.prototype.B=function(a){return g.V(a,Job)||void 0};
$G.prototype.j=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.x(aH,dG);aH.prototype.C=function(){return apb};
aH.prototype.B=function(a){return g.V(a,Hob)||void 0};
aH.prototype.j=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.x(bH,dG);bH.prototype.C=function(){return Yob};
bH.prototype.B=function(a){return g.V(a,wob)};
bH.prototype.j=function(a,b,c){c=c===void 0?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};g.x(g.cH,g.FB);var qpb=new DD("NETWORK_SLI_TOKEN");dH.prototype.fetch=function(a,b,c){var d=this,e;return g.H(function(f){e=LAa(d,a,b);return f.return(fetch(e).then(function(h){return d.handleResponse(h,c)}).catch(function(h){g.nE(h);
if((c==null?0:c.Fr)&&h instanceof g.cH&&h.errorType===1)return Promise.reject(h)}))})};
dH.prototype.handleResponse=function(a,b){var c=a.text().then(function(d){if((b==null?0:b.w$)&&a.ok)return Kea(b.w$,d);d=d.replace(")]}'","");if((b==null?0:b.Fr)&&d)try{var e=JSON.parse(d)}catch(h){throw new g.cH(1,"JSON parsing failed after fetch");}var f;return(f=e)!=null?f:JSON.parse(d)});
a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.dqb(),c=c.then(function(d){g.nE(new g.FB("Error: API fetch failed",a.status,a.url,d));return Object.assign({},d,{errorMetadata:{status:a.status}})}));
return c};
dH[FD]=[new ED(qpb)];var NAa=new DD("NETWORK_MANAGER_TOKEN");var MAa;var JOa={Gla:0,Hla:1,Fla:2,Cla:3,Bla:4,Dla:5,Ela:6};var QAa=[],PAa=!1;hH.prototype.D=function(){var a=this;return g.H(function(b){return b.j==1?g.z(b,Promise.race([a.j,null]),2):b.return(!!b.B)})};
hH.prototype.C=function(a,b,c){var d=this,e,f,h;return g.H(function(l){d.j===null&&SAa(d,gH(d));e=!1;f={};h=function(){var m,n,p;return g.H(function(q){switch(q.j){case 1:return g.z(q,d.j,2);case 2:m=q.B;f.challenge=m.challenge;if(!m.Yq){"c1a"in m.yr&&(f.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");q.Ja(3);break}n=Object.assign({},{c:m.challenge,e:a},b);g.Ba(q,4);e=!0;return g.z(q,m.Yq.snapshot({Ar:n}),6);case 6:(p=q.B)?f.webResponse=p:f.error="ATTESTATION_ERROR_VM_NO_RESPONSE";g.Ca(q,3);break;case 4:g.Da(q),
f.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(a==="ENGAGEMENT_TYPE_PLAYBACK"){var r=m.yr,t={};r.c6a&&(t.reportingStatus=String(Number(r.c)^fH()));r.c6b&&(t.broadSpectrumDetectionResult=String(Number(r.c)^Number(g.jA("CATSTAT",0))));f.adblockReporting=t}return q.return(f)}})};
return l.return(Promise.race([h(),YAa(c,function(){var m=Object.assign({},f);e&&(m.error="ATTESTATION_ERROR_VM_TIMEOUT");return m})]))})};var aBa=["APP_STATE","PI"];g.k=hBa.prototype;g.k.initialize=function(a,b,c){if(a.program){var d,e=(d=a.interpreterUrl)!=null?d:null;if(a.interpreterSafeScript)d=Ema(a.interpreterSafeScript);else{var f;d=(f=a.interpreterScript)!=null?f:null}a.interpreterSafeUrl&&(e=Nw(a.interpreterSafeUrl).toString());jBa(this,d,e,a.program,b,c)}else g.nE(Error("Cannot initialize botguard without program"))};
g.k.isInitialized=function(){return this.vU()};
g.k.getState=function(){return this.state};
g.k.isLoading=function(){return this.state===2};
g.k.invoke=function(a){a=a===void 0?{}:a;return this.vU()?this.C3({Ar:a}):null};
g.k.dispose=function(){this.wT(null);this.Ic(8)};
g.k.vU=function(){return!!this.Yq};
g.k.C3=function(a){return this.Yq.m2(a)};
g.k.wT=function(a){g.ub(this.Yq);this.Yq=a};
g.k.Ic=function(a){this.state=a};g.x(iH,hBa);iH.prototype.wT=function(a){var b;(b=kBa())==null||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.m2.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))};
iH.prototype.vU=function(){return!!kBa()};
iH.prototype.C3=function(a){return kBa().bgvmc(a)};lBa.prototype.Lr=function(){return"crossDeviceProgressCommand"};
lBa.prototype.ju=function(a){if(a.crossDevicePings){var b=[];a=g.v(a.crossDevicePings);for(var c=a.next();!c.done;c=a.next())b.push({baseUrl:c.value.baseUrl});g.VB("crossDeviceNotificationTransfer",{crossDevicePings:b})}};nBa.prototype.Lr=function(){return"muteAdEndpoint"};
nBa.prototype.ju=function(a,b){switch(a.type){case "SKIP":mBa(this.El,this.Lo,b)}};oBa.prototype.Lr=function(){return"openPopupAction"};
oBa.prototype.ju=function(){};pBa.prototype.Lr=function(){return"pingingEndpoint"};
pBa.prototype.ju=function(){};var wBa={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.x(rBa,g.I);var fjb={Efa:"FINAL",O3:"AD_BREAK_LENGTH",Vka:"AD_CPN",fla:"AH",jla:"AD_MT",mla:"ASR",rla:"AW",kva:"NM",mva:"NX",nva:"NY",e4:"CONN",ywa:"CPN",bza:"DV_VIEWABILITY",Tza:"ERRORCODE",cAa:"ERROR_MSG",fAa:"EI",z4:"GOOGLE_VIEWABILITY",fKa:"IAS_VIEWABILITY",wNa:"LACT",H6:"LIVE_TARGETING_CONTEXT",wTa:"I_X",xTa:"I_Y",bWa:"MT",qWa:"MIDROLL_POS",rWa:"MIDROLL_POS_MS",SWa:"MOAT_INIT",TWa:"MOAT_VIEWABILITY",Q6:"P_H",w3a:"PV_H",x3a:"PV_W",R6:"P_W",S3a:"TRIGGER_TYPE",G7a:"SDKV",V6:"SLOT_POS",dfb:"SURVEY_LOCAL_TIME_EPOCH_S",
cfb:"SURVEY_ELAPSED_MS",f7:"VIS",Imb:"VIEWABILITY",Pmb:"VED",g7:"VOL",Smb:"WT",h7:"YT_ERROR_CODE"};xBa.prototype.Lr=function(){return"urlEndpoint"};
xBa.prototype.ju=function(a,b,c){var d=this.Pa.get(),e=UJa(d.B.get(),b);e?b=kJ(d,Zib(e),e,void 0,void 0,c):(wF("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});b=Object.assign({},b);rM(this.j,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(c=this.Nf.Fe(2))&&(b.AD_CPN=c.clientPlaybackNonce);b=g.av(a.url,b);g.UF(b,void 0,void 0,void 0,a.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME")};lH.prototype.get=function(){return this.value};
g.x(mH,lH);mH.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.x(nH,lH);nH.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
g.x(yBa,lH);yBa.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.x(zBa,lH);zBa.prototype.getType=function(){return"metadata_type_ads_engagement_panel_layout_view_model"};
g.x(oH,lH);oH.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.x(pH,lH);pH.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.x(ABa,lH);ABa.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.x(BBa,lH);BBa.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.x(CBa,lH);CBa.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"};
g.x(DBa,lH);DBa.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.x(EBa,lH);EBa.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.x(FBa,lH);FBa.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.x(qH,lH);qH.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.x(rH,lH);rH.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.x(sH,lH);sH.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.x(tH,lH);tH.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.x(uH,lH);uH.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.x(vH,lH);vH.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.x(wH,lH);wH.prototype.getType=function(){return"metadata_type_content_cpn"};
g.x(xH,lH);xH.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.x(yH,lH);yH.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"};
g.x(zH,lH);zH.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.x(AH,lH);AH.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.x(GBa,lH);GBa.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"};
g.x(HBa,lH);HBa.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.x(BH,lH);BH.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.x(IBa,lH);IBa.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.x(JBa,lH);JBa.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.x(KBa,lH);KBa.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.x(LBa,lH);LBa.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.x(CH,lH);CH.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.x(DH,lH);DH.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.x(EH,lH);EH.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.x(FH,lH);FH.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.x(MBa,lH);MBa.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.x(GH,lH);GH.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.x(HH,lH);HH.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.x(IH,lH);IH.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.x(NBa,lH);NBa.prototype.getType=function(){return"metadata_type_cue_point"};
g.x(JH,lH);JH.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.x(KH,lH);KH.prototype.getType=function(){return"metadata_type_player_vars"};
g.x(LH,lH);LH.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.x(MH,lH);MH.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.x(NH,lH);NH.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.x(OH,lH);OH.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.x(PH,lH);PH.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.x(QH,lH);QH.prototype.getType=function(){return"metadata_type_dai"};
g.x(RH,lH);RH.prototype.getType=function(){return"metadata_type_ad_intro"};
g.x(OBa,lH);OBa.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.x(SH,lH);SH.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.x(TH,lH);TH.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.x(UH,lH);UH.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.x(PBa,lH);PBa.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.x(VH,lH);VH.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.x(WH,lH);WH.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.x(XH,lH);XH.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.x(YH,lH);YH.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.x(QBa,lH);QBa.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.x(ZH,lH);ZH.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.x($H,lH);$H.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.x(RBa,lH);RBa.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.x(aI,lH);aI.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.x(SBa,lH);SBa.prototype.getType=function(){return"metadata_type_active_view_identifier"};
g.x(TBa,lH);TBa.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};
g.x(bI,lH);bI.prototype.getType=function(){return"metadata_type_eligible_for_ssap"};
g.x(UBa,lH);UBa.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};
g.x(cI,lH);cI.prototype.getType=function(){return"metadata_type_player_bytes_slot_metadata"};
g.x(VBa,lH);VBa.prototype.getType=function(){return"metadata_type_high_ccv_prefetch_METADATA"};var oCa=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 zCa=new Map([["TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL","trigger_category_layout_exit_normal"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED","trigger_category_layout_exit_user_skipped"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED","trigger_category_layout_exit_user_muted"],["TRIGGER_CATEGORY_SLOT_EXPIRATION","trigger_category_slot_expiration"],["TRIGGER_CATEGORY_SLOT_FULFILLMENT","trigger_category_slot_fulfillment"],["TRIGGER_CATEGORY_SLOT_ENTRY","trigger_category_slot_entry"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
"trigger_category_layout_exit_user_input_submitted"],["TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED","trigger_category_layout_exit_user_cancelled"]]);g.x(gI,wb);g.x(hI,wb);new Promise(function(){});var ZBa=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"]]),XBa=new Map([["normal",{Fy:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Qy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{Fy:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Qy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{Fy:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Qy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{Fy:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Qy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{Fy:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Qy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{Fy:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Qy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{Fy:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Qy:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.x(eCa,g.I);g.k=eCa.prototype;g.k.VP=function(a,b){return this.j.VP(a,b)};
g.k.Vg=function(a,b){this.Rb.xI("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.v(this.B),d=c.next();!d.done;d=c.next())d.value.Vg(a,b)};
g.k.xf=function(a){if(tI(this.j,a)){this.Rb.Wj("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.xf(a);for(var b=g.v(this.B),c=b.next();!c.done;c=b.next())c.value.xf(a);hCa(this,a)}};
g.k.yf=function(a){if(tI(this.j,a)){this.Rb.Wj("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.yf(a);for(var b=g.v(this.B),c=b.next();!c.done;c=b.next())c.value.yf(a);tI(this.j,a)&&uI(this.j,a).G&&sI(this,a,!1)}};
g.k.sL=function(a){this.Rb.Wj("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);tI(this.j,a)&&(this.j.sL(a),sI(this,a,!1))};
g.k.wc=function(a,b){if(tI(this.j,a)){this.Rb.Wh("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.v(this.B),d=c.next();!d.done;d=c.next())d.value.wc(a,b)}};
g.k.Nc=function(a,b,c){if(tI(this.j,a)){this.Rb.Wh(YBa(c),a,b);this.j.Nc(a,b);for(var d=g.v(this.B),e=d.next();!e.done;e=d.next())e.value.Nc(a,b,c);(c=DI(this.j,a))&&b.layoutId===c.layoutId&&vCa(this,a,!1)}};
g.k.wf=function(a,b,c,d){c.fl&&d?(wF(c,a,b,void 0,c.Bw),this.Rb.lm(d,c.fl,a,b)):wF("adsClientErrorMessage is missing.",a,b);sI(this,a,!0)};
g.k.ya=function(){var a=yCa(this.j);a=g.v(a);for(var b=a.next();!b.done;b=a.next())sI(this,b.value,!1);g.I.prototype.ya.call(this)};
g.k.rg=function(a,b){this.Rb.Wh("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",a,b);this.Rb.Wh("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",a,b);for(var c=g.v(this.B),d=c.next();!d.done;d=c.next())d=d.value,b&&d.rg(a,b)};wCa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.x(xCa,g.I);g.k=xCa.prototype;g.k.VP=function(a,b){b=CI(this,a+"_"+b);a=[];b=g.v(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.Wg=function(a){a=uI(this,a);a.j!=="not_scheduled"&&EI(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.k.NE=function(a){a=uI(this,a);a.D="fill_requested";a.N.NE()};
g.k.xf=function(a){a=uI(this,a);a.j!=="enter_requested"&&EI(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.k.sL=function(a){uI(this,a).D="fill_canceled"};
g.k.yf=function(a){a=uI(this,a);a.j!=="exit_requested"&&EI(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.k.Nc=function(a,b){a=uI(this,a);a.layout!=null&&a.layout.layoutId===b.layoutId&&(a.j!=="rendering_stop_requested"&&EI(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.x(DCa,g.I);DCa.prototype.get=function(){this.Na()&&wF("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.j());return this.instance};g.x(FCa,g.I);FCa.prototype.C=function(){return this.j};II.prototype.executeCommand=function(a,b){kH(this.j(),a,b)};LI.prototype.addListener=function(a){this.listeners.add(a)};
LI.prototype.removeListener=function(a){this.listeners.delete(a)};var J2={},TI=(J2.AD_MARKER="ytp-ad-progress",J2.CHAPTER_MARKER="ytp-chapter-marker",J2.TIME_MARKER="ytp-time-marker",J2);var UYa=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/)"),MCa=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]+)?/)"),
VYa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),UCa=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)|$))"),
SCa=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)|$))"),PCa=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((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)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(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)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^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/)"),
WYa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),QCa=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)"),OCa=RegExp("^((http(s)?):)?\\/\\/((((lh[3-6](-tt|-d[a-g,z])?\\.((ggpht)|(googleusercontent)|(google)|(sandbox\\.google)))|(lh7\\-(eu|us|qw|rt)\\.((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)|(drive\\.google\\.com\\/drive\\-(usercontent|viewer))|(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)?)|(drive\\-qa\\.corp\\.google\\.com\\/drive\\-(usercontent|viewer)))\\/|^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/.*$)"),
fVa=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)"),
eVa=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://(books|localhost|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.googleusercontent\\.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|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)"),
rpb=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|localhost|play-books-(autopush|internal|preprod|staging)(-sandbox|\\.corp))\\.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$)");g.UI.prototype.getId=function(){return this.id};
g.UI.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+YCa(this.start)+", "+YCa(this.end)+"]"};
g.UI.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a===this.end&&this.start===this.end)&&(b==null||a<b&&b<=this.end)};
var XCa=1;g.UI.prototype.getId=g.UI.prototype.getId;aDa.prototype.NE=function(){var a=this,b=0;KCa(this.j,function(){var c=jI(a.slot.Ca,"metadata_type_ad_break_request_data");b=Date.now();gL(a.Pa.get(),"abrs","ct."+b+";cmt."+a.Ia.get().getCurrentTimeSec(1,!1)+";sid."+a.slot.slotId+";");return a.B.get().fetch({u3:c.getAdBreakUrl,yX:new g.UI(c.LS,c.KS),Nw:jI(a.slot.Ca,"metadata_type_cue_point"),cueProcessedMs:c.cueProcessedMs})},function(){bDa(a)},function(c){var d=Date.now()-b;
gL(a.Pa.get(),"abrr","ct."+(new Date).getTime()+";cmt."+a.Ia.get().getCurrentTimeSec(1,!1)+";l."+d.toString()+";sid."+a.slot.slotId+";");d=c.zw;d.length>=2&&c.ssdaiAdsConfig&&wF("Unexpected ad placement renderers length",a.slot,null,{length:d.length});d.some(function(e){var f,h,l,m;return!!((f=e.renderer)==null?0:(h=f.linearAdSequenceRenderer)==null?0:(l=h.linearAds)==null?0:l.length)||!((m=e.renderer)==null||!m.instreamVideoAdRenderer)})||bDa(a)})};
aDa.prototype.vO=function(){LCa(this.j)};cDa.prototype.NE=function(){var a=this;KCa(this.j,function(){var b=jI(a.slot.Ca,"metadata_type_ad_break_request_data");return a.B.get().fetch({u3:b.getAdBreakUrl,yX:new g.UI(b.LS,b.KS)})})};
cDa.prototype.vO=function(){LCa(this.j)};dDa.prototype.NE=function(){var a=this.slot.Ca,b,c=(b=this.slot.fulfilledLayout)!=null?b:jI(a,"metadata_type_fulfilled_layout");iCa(this.callback,this.slot,c)};
dDa.prototype.vO=function(){fCa(this.callback,this.slot,new hI("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")};fDa.prototype.build=function(a,b){return b.fulfilledLayout||eDa(b,{Md:["metadata_type_fulfilled_layout"]})?new dDa(a,b):this.C(a,b)};g.x(XI,fDa);
XI.prototype.C=function(a,b){if(eDa(b,{Md:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new aDa(a,b,this.j,this.B,this.Oe,this.Ba,this.Pa,this.Ia,this.Gc);if(eDa(b,{Md:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new cDa(a,b,this.j,this.B,this.Oe,this.Ba);throw new hI("Unsupported slot with type: "+b.slotType+" and client metadata: "+kI(b.Ca)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.x(YI,fDa);YI.prototype.C=function(a,b){throw new hI("Unsupported slot with type: "+b.slotType+" and client metadata: "+kI(b.Ca)+" in DefaultFulfillmentAdapterFactory.");};g.k=gDa.prototype;g.k.dc=function(){return this.slot};
g.k.bb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)this.callback.wf(this.slot,a,new gI("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=jI(a.Ca,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.wc(this.slot,a),GHa(this.B,this.slot,
b)):wF("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}};
g.k.Jd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new gI("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.Nc(this.slot,a,b),iDa(this))};g.x(bJ,g.GE);g.k=bJ.prototype;g.k.dc=function(){return this.B.slot};
g.k.bb=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.hQ=function(){};
g.k.fQ=function(){};
g.k.eQ=function(){};
g.k.eK=function(){};
g.k.startRendering=function(a){var b=this;lDa(this.B,a,function(){return void b.rM()})};
g.k.rM=function(){this.C.get().rM(this.j)};
g.k.Jd=function(a,b){var c=this;lDa(this.B,a,function(){var d=c.C.get();ojb(d,c.j,3);c.j=[];c.callback.Nc(c.slot,a,b)})};
g.k.ya=function(){this.C.Na()||this.C.get().removeListener(this);g.GE.prototype.ya.call(this)};
g.ea.Object.defineProperties(bJ.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.B.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.B.layout}}});iJ.prototype.Th=function(a,b){b=b===void 0?!1:b;var c=(this.C.get(a)||[]).concat();if(b=b&&mDa(a)){var d=this.C.get(b);d&&c.push.apply(c,g.ra(d))}nDa(this,a,c);this.j.add(a);b&&this.j.add(b)};
iJ.prototype.Zb=function(a,b){b=b===void 0?!1:b;if(!this.j.has(a)){var c=b&&mDa(a);c&&(b=!this.j.has(c));this.Th(a,b)}};g.x(rDa,FE);g.x(sDa,bJ);g.k=sDa.prototype;g.k.pg=function(a,b){eJ("ads-engagement-panel-layout",a,this.K.get().jj,this.Pa.get(),this.D,this.G,this.dc(),this.bb(),b)};
g.k.startRendering=function(a){dJ(this.fb,this.dc(),this.bb(),g.V(this.bb().renderingContent,fHa),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(b,c,d,e,f){return new rDa(b,c,d,e,f)},this.j);
bJ.prototype.startRendering.call(this,a)};
g.k.wc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Pa.get().Ji():wF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Nc=function(){};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.Oh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.Vg=function(){};
g.k.ya=function(){rI(this.vc(),this);bJ.prototype.ya.call(this)};g.x(uDa,FE);g.x(vDa,bJ);g.k=vDa.prototype;g.k.pg=function(a,b){eJ("banner-image",a,this.K.get().jj,this.Pa.get(),this.D,this.G,this.dc(),this.bb(),b)};
g.k.startRendering=function(a){dJ(this.fb,this.dc(),this.bb(),g.V(this.bb().renderingContent,dHa),this.callback,"metadata_type_banner_image_layout_view_model",function(b,c,d,e,f){return new uDa(b,c,d,e,f)},this.j);
bJ.prototype.startRendering.call(this,a)};
g.k.wc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Pa.get().Ji():wF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Nc=function(){};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.Oh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.Vg=function(){};
g.k.ya=function(){rI(this.vc(),this);bJ.prototype.ya.call(this)};g.x(xDa,FE);g.x(yDa,bJ);g.k=yDa.prototype;g.k.pg=function(a,b){eJ("action-companion",a,this.K.get().jj,this.Pa.get(),this.D,this.G,this.dc(),this.bb(),b)};
g.k.startRendering=function(a){dJ(this.fb,this.dc(),this.bb(),g.V(this.bb().renderingContent,OL),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new xDa(b,c,d,e,f)},this.j);
bJ.prototype.startRendering.call(this,a)};
g.k.wc=function(a,b){b.layoutId===this.layout.layoutId?this.fb.Zb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Pa.get().Ji():wF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Nc=function(){};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.Oh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.Vg=function(){};
g.k.ya=function(){rI(this.vc(),this);bJ.prototype.ya.call(this)};g.x(ADa,FE);g.x(BDa,bJ);g.k=BDa.prototype;g.k.pg=function(a,b){eJ("image-companion",a,this.K.get().jj,this.Pa.get(),this.D,this.G,this.dc(),this.bb(),b)};
g.k.startRendering=function(a){dJ(this.fb,this.dc(),this.bb(),g.V(this.bb().renderingContent,PL),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new ADa(b,c,d,e,f)},this.j);
bJ.prototype.startRendering.call(this,a)};
g.k.wc=function(a,b){b.layoutId===this.layout.layoutId?this.fb.Zb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Pa.get().Ji():wF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Nc=function(){};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.Oh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.Vg=function(){};
g.k.ya=function(){rI(this.vc(),this);bJ.prototype.ya.call(this)};g.x(DDa,FE);g.x(EDa,bJ);g.k=EDa.prototype;g.k.pg=function(a,b){eJ("shopping-companion",a,this.K.get().jj,this.Pa.get(),this.D,this.G,this.dc(),this.bb(),b)};
g.k.startRendering=function(a){dJ(this.fb,this.dc(),this.bb(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new DDa(b,c,d,e,f)},this.j);
bJ.prototype.startRendering.call(this,a)};
g.k.wc=function(a,b){b.layoutId===this.layout.layoutId?this.fb.Zb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Pa.get().Ji():wF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Nc=function(){};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.Oh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.Vg=function(){};
g.k.ya=function(){rI(this.vc(),this);bJ.prototype.ya.call(this)};g.x(KDa,bJ);g.k=KDa.prototype;g.k.startRendering=function(a){dJ(this.fb,this.dc(),this.bb(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new xDa(b,c,d,e,f)},this.j);
bJ.prototype.startRendering.call(this,a)};
g.k.wc=function(){};
g.k.Nc=function(){};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.Oh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.Vg=function(){};
g.k.ya=function(){rI(this.vc(),this);bJ.prototype.ya.call(this)};
g.k.pg=function(){};g.k=MDa.prototype;g.k.dc=function(){return this.slot};
g.k.bb=function(){return this.layout};
g.k.init=function(){this.Ia.get().addListener(this);this.Ia.get().qE.push(this);var a=jI(this.layout.Ca,"metadata_type_video_length_seconds"),b=jI(this.layout.Ca,"metadata_type_active_view_traffic_type");fJ(this.layout.Db)&&m1(this.yb.get(),this.layout.layoutId,{At:b,ZH:a,listener:this})};
g.k.release=function(){this.Ia.get().removeListener(this);ijb(this.Ia.get(),this);fJ(this.layout.Db)&&n1(this.yb.get(),this.layout.layoutId)};
g.k.startRendering=function(a){this.callback.wc(this.slot,a)};
g.k.Jd=function(a,b){Jib(this.Ba.get())&&!this.j&&(this.fb.Zb("abandon"),this.j=!0);this.callback.Nc(this.slot,a,b)};
g.k.Fj=function(a){switch(a.id){case "part2viewed":this.fb.Zb("start");this.fb.Zb("impression");break;case "videoplaytime25":this.fb.Zb("first_quartile");break;case "videoplaytime50":this.fb.Zb("midpoint");break;case "videoplaytime75":this.fb.Zb("third_quartile");break;case "videoplaytime100":Jib(this.Ba.get())?this.j||(this.fb.Zb("complete"),this.j=!0):this.fb.Zb("complete");nJ(this.fb)&&lJ(this.fb,Infinity,!0);break;case "engagedview":nJ(this.fb)||this.fb.Zb("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:wF("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.dj=function(){};
g.k.rh=function(){};
g.k.Gj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Eg=function(){};
g.k.Ni=function(){};
g.k.FR=function(a){nJ(this.fb)&&lJ(this.fb,a*1E3,!1)};
g.k.Ij=function(){};
g.k.Wx=function(){this.fb.Zb("active_view_measurable")};
g.k.Xx=function(){this.fb.Zb("active_view_viewable")};
g.k.Vx=function(){this.fb.Zb("active_view_fully_viewable_audible_half_duration")};
g.k.Ux=function(){this.fb.Zb("audio_measurable")};
g.k.Tx=function(){this.fb.Zb("audio_audible")};g.x(NDa,bJ);g.k=NDa.prototype;g.k.init=function(){bJ.prototype.init.call(this);var a=jI(this.layout.Ca,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Xb};this.j.push(new FF(a,this.layout.layoutId,jI(this.layout.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,!0))};
g.k.rq=function(){this.D||this.Ia.get().resumeVideo(1)};
g.k.startRendering=function(a){bJ.prototype.startRendering.call(this,a);u1(this.Ia.get(),"ad-showing");this.callback.wc(this.slot,a);this.G.zt=this};
g.k.Jd=function(a,b){bJ.prototype.Jd.call(this,a,b);v1(this.Ia.get(),"ad-showing");Z1(this.G,this)};
g.k.pg=function(a){switch(a){case "ad-info-icon-button":(this.D=this.Ia.get().Eo(1))||this.Ia.get().pauseVideo();break;case "visit-advertiser":this.Ia.get().pauseVideo()}};
g.k.ya=function(){bJ.prototype.ya.call(this)};g.x(ODa,FE);g.x(PDa,bJ);g.k=PDa.prototype;g.k.startRendering=function(a){dJ(this.fb,this.dc(),this.bb(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new ODa(b,c,d,e,f)},this.j);
bJ.prototype.startRendering.call(this,a)};
g.k.wc=function(){};
g.k.Nc=function(){};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.Oh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.Vg=function(){};
g.k.ya=function(){rI(this.vc(),this);bJ.prototype.ya.call(this)};
g.k.pg=function(){};g.x(oJ,FE);g.x(pJ,bJ);pJ.prototype.init=function(){bJ.prototype.init.call(this);var a=g.V(this.layout.renderingContent,xJ)||jI(this.layout.Ca,"metadata_type_ad_action_interstitial_renderer"),b=cJ(this.fb);this.j.push(new oJ(a,b,this.layout.layoutId,{adsClientData:this.layout.Xb},!0,!0))};
pJ.prototype.startRendering=function(a){bJ.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a)};
pJ.prototype.pg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=(c=jI(this.layout.Ca,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&a.rL(this.dc(),this.layout)}};
pJ.prototype.ya=function(){bJ.prototype.ya.call(this)};rJ.prototype.build=function(a,b,c,d){if(qJ(d,{Md:["metadata_type_ad_break_response_data"],Je:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new gDa(a,c,d,this.B,this.C,this.j);throw new gI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kI(d.Ca)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.x(SDa,FE);g.x(TDa,bJ);g.k=TDa.prototype;g.k.pg=function(a,b){eJ("ads-engagement-panel",a,this.K.get().jj,this.Pa.get(),this.D,this.G,this.dc(),this.bb(),b)};
g.k.startRendering=function(a){dJ(this.fb,this.dc(),this.bb(),g.V(this.bb().renderingContent,QL),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new SDa(b,c,d,e,f)},this.j);
bJ.prototype.startRendering.call(this,a)};
g.k.wc=function(a,b){b.layoutId===this.layout.layoutId?this.fb.Zb("impression"):this.G===b.layoutId&&(this.D===null?this.D=this.Pa.get().Ji():wF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Nc=function(){};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.Oh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.Vg=function(){};
g.k.ya=function(){rI(this.vc(),this);bJ.prototype.ya.call(this)};g.x(VDa,bJ);g.k=VDa.prototype;g.k.pg=function(a,b){eJ("top-banner-image-text-icon-buttoned",a,this.K.get().jj,this.Pa.get(),this.D,this.G,this.dc(),this.bb(),b)};
g.k.startRendering=function(a){dJ(this.fb,this.dc(),this.bb(),g.V(this.bb().renderingContent,eHa),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new ODa(b,c,d,e,f)},this.j);
bJ.prototype.startRendering.call(this,a)};
g.k.wc=function(a,b){this.G===b.layoutId&&(this.D===null?this.D=this.Pa.get().Ji():wF("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Nc=function(){};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.Oh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.Vg=function(){};
g.k.ya=function(){rI(this.vc(),this);bJ.prototype.ya.call(this)};XDa.prototype.build=function(a,b,c,d){if(qJ(d,UDa())||g.V(d.renderingContent,QL)!==void 0)return new TDa(a,c,d,this.Dc,this.Pa,this.vc,this.yb,this.j);if(qJ(d,zDa())||g.V(d.renderingContent,OL)!==void 0)return new yDa(a,c,d,this.Dc,this.Pa,this.vc,this.yb,this.j);if(qJ(d,CDa())||g.V(d.renderingContent,PL)!==void 0)return new BDa(a,c,d,this.Dc,this.Pa,this.vc,this.yb,this.j);if(qJ(d,FDa()))return new EDa(a,c,d,this.Dc,this.Pa,this.vc,this.yb,this.j);if(qJ(d,LDa()))return new KDa(a,c,d,this.Dc,this.Pa,
this.vc,this.yb,this.j);if(qJ(d,wDa())||g.V(d.renderingContent,dHa)!==void 0)return new vDa(a,c,d,this.Dc,this.Pa,this.vc,this.yb,this.j);if(qJ(d,WDa())||g.V(d.renderingContent,eHa)!==void 0)return new VDa(a,c,d,this.Dc,this.Pa,this.vc,this.yb,this.j);if(qJ(d,QDa()))return new PDa(a,c,d,this.Dc,this.Pa,this.vc,this.yb,this.j);if(qJ(d,tDa())||g.V(d.renderingContent,fHa)!==void 0)return new sDa(a,c,d,this.Dc,this.Pa,this.vc,this.yb,this.j);throw new gI("Unsupported layout with type: "+d.layoutType+
" and client metadata: "+kI(d.Ca)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.x(YDa,FE);g.x(sJ,bJ);sJ.prototype.init=function(){bJ.prototype.init.call(this);var a=jI(this.layout.Ca,"metadata_type_player_underlay_renderer");this.j.push(new YDa(g.V(a,Cmb),this.layout.layoutId,{adsClientData:this.layout.Xb}))};
sJ.prototype.pg=function(){};
sJ.prototype.startRendering=function(a){bJ.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a)};
sJ.prototype.ya=function(){bJ.prototype.ya.call(this)};ZDa.prototype.build=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.v(jJ()),f=e.next();!f.done;f=e.next())b.push(f.value);if(qJ(d,{Md:b,Je:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new sJ(a,c,d,this.Dc);throw new gI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kI(d.Ca)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.k=$Da.prototype;g.k.dc=function(){return this.slot};
g.k.bb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new gI("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.wc(this.slot,a),this.fb.Zb("impression"),cL(this.wi,a,"normal"))};
g.k.Jd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new gI("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.Nc(this.slot,a,b)};g.k=bEa.prototype;g.k.dc=function(){return this.slot};
g.k.bb=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new gI("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.wc(this.slot,a),this.fb.Zb("impression"),cL(this.wi,a,"normal"))};
g.k.Jd=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.wf(this.slot,a,new gI("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.Nc(this.slot,a,b)};tJ.prototype.build=function(a,b,c,d){if(!this.Ba.get().J.U().L("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(qJ(d,aEa()))return new $Da(a,c,d,this.Pa,this.wi)}else if(qJ(d,{Md:[],Je:["LAYOUT_TYPE_FORECASTING"]}))return new bEa(a,c,d,this.Pa,this.wi);throw new gI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kI(d.Ca)+" in ForecastingLayoutRenderingAdapterFactory.");};g.x(eEa,FE);g.x(fEa,bJ);g.k=fEa.prototype;g.k.init=function(){bJ.prototype.init.call(this);var a=g.V(this.layout.renderingContent,lEa)||jI(this.layout.Ca,"metadata_type_player_overlay_layout_renderer"),b={adsClientData:this.layout.Xb};this.j.push(new eEa(a,jI(this.layout.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,b))};
g.k.rq=function(){this.D||this.Ia.get().resumeVideo(2)};
g.k.startRendering=function(a){bJ.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a);this.G.zt=this};
g.k.Jd=function(a,b){bJ.prototype.Jd.call(this,a,b);Z1(this.G,this)};
g.k.pg=function(a){if(TJa(this.K.get(),this.N))switch(a){case "visit-advertiser-link":this.Pa.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.Ia.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ia.get().Eo(2))||this.Ia.get().pauseVideo();break;case "visit-advertiser-link":this.Ia.get().pauseVideo();gEa(this).YL();
break;case "skip-button":if(a=gEa(this),!this.layout.renderingContent&&a.xK)wF("Requesting to skip by LegacyPlayerBytes when components enabled"),a.iy(this.dc(),this.layout);else{var b;(a=(b=jI(this.layout.Ca,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&a.rL(this.dc(),this.layout)}}};
g.k.ya=function(){bJ.prototype.ya.call(this)};g.x(uJ,bJ);g.k=uJ.prototype;g.k.init=function(){bJ.prototype.init.call(this);var a=g.V(this.layout.renderingContent,wJ)||jI(this.layout.Ca,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.Xb},c;(c=!!this.layout.renderingContent)||(c=!iEa(this).xK);this.j.push(new FF(a,this.layout.layoutId,jI(this.layout.Ca,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.rq=function(){this.D||this.Ia.get().resumeVideo(2)};
g.k.startRendering=function(a){bJ.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a);this.G.zt=this};
g.k.Jd=function(a,b){bJ.prototype.Jd.call(this,a,b);Z1(this.G,this)};
g.k.pg=function(a){if(TJa(this.K.get(),this.N))switch(a){case "visit-advertiser":this.Pa.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.Ia.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ia.get().Eo(2))||this.Ia.get().pauseVideo();break;case "visit-advertiser":this.Ia.get().pauseVideo();iEa(this).YL();break;case "skip-button":if(a=
iEa(this),!this.layout.renderingContent&&a.xK)wF("Requesting to skip by LegacyPlayerBytes"),a.iy(this.dc(),this.layout);else{var b;(a=(b=jI(this.layout.Ca,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&a.rL(this.dc(),this.layout)}}};
g.k.ya=function(){bJ.prototype.ya.call(this)};g.x(jEa,FE);g.x(vJ,bJ);g.k=vJ.prototype;g.k.startRendering=function(a){var b=this;lDa(this.B,a,function(){b.j.push(new jEa(jI(b.layout.Ca,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.Xb));b.rM();b.callback.wc(b.slot,a);g.yF(l1(b.Ia.get(),1),512)&&b.callback.wf(b.dc(),b.bb(),new gI("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.k.Ni=function(){};
g.k.Eg=function(a){if(a.state.isError()){var b;this.callback.wf(this.dc(),this.bb(),new gI("A player error happened during adNotify",{playerErrorCode:(b=a.state.hh)==null?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.rh=function(){};
g.k.Gj=function(){};
g.k.dj=function(){};
g.k.onVolumeChange=function(){};
g.k.Fj=function(){};
g.k.Ij=function(){};
g.k.pg=function(){};mEa.prototype.build=function(a,b,c,d){if(a=yJ(a,c,d,this.Dc,this.Ia,this.Pa,this.B,this.j,this.Ba))return a;throw new gI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kI(d.Ca)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.k=nEa.prototype;g.k.dc=function(){return this.slot};
g.k.bb=function(){return this.layout};
g.k.init=function(){this.Ia.get().addListener(this);this.Ia.get().qE.push(this);var a=jI(this.layout.Ca,"metadata_type_video_length_seconds"),b=jI(this.layout.Ca,"metadata_type_active_view_traffic_type"),c=jI(this.layout.Ca,"metadata_type_active_view_identifier");fJ(this.layout.Db)&&m1(this.yb.get(),this.layout.layoutId,{At:b,ZH:a,listener:this,k7:c})};
g.k.release=function(){this.Ia.get().removeListener(this);ijb(this.Ia.get(),this);fJ(this.layout.Db)&&n1(this.yb.get(),this.layout.layoutId)};
g.k.startRendering=function(a){this.callback.wc(this.slot,a)};
g.k.Jd=function(a,b){oEa(this,"abandon");this.callback.Nc(this.slot,a,b)};
g.k.Fj=function(a){switch(a.id){case "part2viewed":this.fb.Zb("start");this.fb.Zb("impression");break;case "videoplaytime25":this.fb.Zb("first_quartile");break;case "videoplaytime50":this.fb.Zb("midpoint");break;case "videoplaytime75":this.fb.Zb("third_quartile");break;case "videoplaytime100":oEa(this,"complete");nJ(this.fb)&&lJ(this.fb,Infinity,!0);break;case "engagedview":nJ(this.fb)||this.fb.Zb("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:wF("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.dj=function(){};
g.k.rh=function(){};
g.k.Gj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Eg=function(a){this.j||(g.AF(a,4)&&!g.AF(a,2)?oDa(this.fb,"pause"):zF(a,4)<0&&!(zF(a,2)<0)&&oDa(this.fb,"resume"))};
g.k.Ni=function(){};
g.k.FR=function(a){nJ(this.fb)&&lJ(this.fb,a*1E3,!1)};
g.k.Ij=function(){oEa(this,"swipe")};
g.k.Wx=function(){this.fb.Zb("active_view_measurable")};
g.k.Xx=function(){this.fb.Zb("active_view_viewable")};
g.k.Vx=function(){this.fb.Zb("active_view_fully_viewable_audible_half_duration")};
g.k.Ux=function(){this.fb.Zb("audio_measurable")};
g.k.Tx=function(){this.fb.Zb("audio_audible")};pEa.prototype.build=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.v(jJ()),f=e.next();!f.done;f=e.next())b.push(f.value);if(qJ(d,{Md:b,Je:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return c.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new nEa(a,c,d,this.Ia,this.Pa,this.Ba,this.yb):new MDa(a,c,d,this.Ia,this.Pa,this.Ba,this.yb);throw new gI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kI(d.Ca)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");
};var CJ={contentCpn:"",Ht:new Map};AEa.prototype.Fl=function(a,b){var c={};b=Object.assign({},b,(c.cc=this.Nf.jg(),c));BJ(this.Nf,a,b)};var spb,K2,BEa;
spb={kma:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",hra:"AUTHENTICATION_MALFORMED",ira:"AUTHENTICATION_MISSING",ura:"BAD_REQUEST",Nsa:"CAST_SESSION_DEVICE_MISMATCHED",Osa:"CAST_SESSION_VIDEO_MISMATCHED",Psa:"CAST_TOKEN_EXPIRED",Qsa:"CAST_TOKEN_FAILED",Rsa:"CAST_TOKEN_MALFORMED",Dta:"CGI_PARAMS_MALFORMED",Eta:"CGI_PARAMS_MISSING",vya:"DEVICE_FALLBACK",Uza:"GENERIC_WITH_LINK_AND_CPN",Vza:"ERROR_HDCP",aAa:"LICENSE",dAa:"VIDEO_UNAVAILABLE",iIa:"FORMAT_UNAVAILABLE",oIa:"GEO_FAILURE",
KJa:"HTML5_AUDIO_RENDERER_ERROR",LJa:"GENERIC_WITHOUT_LINK",MJa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",NJa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",OJa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",XJa:"HTML5_SPS_UMP_STATUS_REJECTED",gLa:"INVALID_DRM_MESSAGE",K5a:"PURCHASE_NOT_FOUND",L5a:"PURCHASE_REFUNDED",O6a:"RENTAL_EXPIRED",W6a:"RETRYABLE_ERROR",V7a:"SERVER_ERROR",x9a:"SIGNATURE_EXPIRED",lcb:"STOPPED_BY_ANOTHER_PLAYBACK",sdb:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",tdb:"STREAMING_NOT_ALLOWED",
udb:"STREAM_LICENSE_NOT_FOUND",xfb:"TOO_MANY_REQUESTS",yfb:"TOO_MANY_REQUESTS_WITH_LINK",Afb:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Bfb:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",Hlb:"VIDEO_FORBIDDEN",cmb:"VIDEO_NOT_FOUND",ysa:"BROWSER_OR_EXTENSION_ERROR"};K2={};
g.LV=(K2.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.",K2.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.",K2.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",
K2.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.",K2.VIDEO_UNAVAILABLE="\u041e\u0448\u0438\u0431\u043a\u0430",K2.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.",
K2.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.",K2.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.",
K2.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.",K2.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",K2.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",
K2.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",K2.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",
K2.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.",K2.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.",
K2.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.",K2.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.",K2.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.",
K2.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.",K2.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.",
K2.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.",K2.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.",
K2.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.",K2.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.",
K2.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.",K2.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.",
K2.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.",K2.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.",
K2.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.",K2.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.",
K2.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.",
K2.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.",K2.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.",K2.VIDEO_FORBIDDEN="\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0438\u0434\u0435\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d.",K2.VIDEO_NOT_FOUND="\u041d\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u0432\u0438\u0434\u0435\u043e.",
K2.BROWSER_OR_EXTENSION_ERROR="\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",K2);
BEa={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 tpb;var upb=g.oc(),vpb=upb.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!vpb||vpb.length<2)tpb=void 0;else{var wpb=upb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);tpb=wpb&&wpb.length===6?Number(wpb[5].replace("_",".")):0}var wS=tpb,GV=wS>=0;g.x(g.NJ,sB);g.NJ.prototype.T=function(a,b,c,d,e){return sB.prototype.T.call(this,a,b,c,d,e)};var L2={},OTa=(L2.FAIRPLAY="fairplay",L2.PLAYREADY="playready",L2.WIDEVINE="widevine",L2.CLEARKEY=null,L2.FLASHACCESS=null,L2.UNKNOWN=null,L2.WIDEVINE_CLASSIC=null,L2);OJ.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var M2={},eP=(M2.WIDTH={name:"width",video:!0,valid:640,zo:99999},M2.HEIGHT={name:"height",video:!0,valid:360,zo:99999},M2.FRAMERATE={name:"framerate",video:!0,valid:30,zo:9999},M2.BITRATE={name:"bitrate",video:!0,valid:3E5,zo:2E9},M2.EOTF={name:"eotf",video:!0,valid:"bt709",zo:"catavision"},M2.CHANNELS={name:"channels",video:!1,valid:2,zo:99},M2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",zo:"invalidformat"},M2.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
zo:"nope"},M2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",zo:"av99.0.05M.08"},M2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",zo:"invalid"},M2);var xpb=["h","H"],ypb=["9","("],zpb=["9h","(h"],Apb=["8","*"],Bpb=["a","A"],Cpb=["o","O"],Dpb=["m","M"],Epb=["mac3","MAC3"],Fpb=["meac3","MEAC3"],N2={},nUa=(N2.h=xpb,N2.H=xpb,N2["9"]=ypb,N2["("]=ypb,N2["9h"]=zpb,N2["(h"]=zpb,N2["8"]=Apb,N2["*"]=Apb,N2.a=Bpb,N2.A=Bpb,N2.o=Cpb,N2.O=Cpb,N2.m=Dpb,N2.M=Dpb,N2.mac3=Epb,N2.MAC3=Epb,N2.meac3=Fpb,N2.MEAC3=Fpb,N2),Gpb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),vRa=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var O2={},TJ=(O2["0"]="f",O2["160"]="h",O2["133"]="h",O2["134"]="h",O2["135"]="h",O2["136"]="h",O2["137"]="h",O2["264"]="h",O2["266"]="h",O2["138"]="h",O2["298"]="h",O2["299"]="h",O2["304"]="h",O2["305"]="h",O2["214"]="h",O2["216"]="h",O2["374"]="h",O2["375"]="h",O2["140"]="a",O2["141"]="ah",O2["327"]="sa",O2["258"]="m",O2["380"]="mac3",O2["328"]="meac3",O2["161"]="H",O2["142"]="H",O2["143"]="H",O2["144"]="H",O2["222"]="H",O2["223"]="H",O2["145"]="H",O2["224"]="H",O2["225"]="H",O2["146"]="H",O2["226"]=
"H",O2["227"]="H",O2["147"]="H",O2["384"]="H",O2["376"]="H",O2["385"]="H",O2["377"]="H",O2["149"]="A",O2["261"]="M",O2["381"]="MAC3",O2["329"]="MEAC3",O2["598"]="9",O2["278"]="9",O2["242"]="9",O2["243"]="9",O2["244"]="9",O2["775"]="9",O2["776"]="9",O2["777"]="9",O2["778"]="9",O2["779"]="9",O2["780"]="9",O2["781"]="9",O2["782"]="9",O2["783"]="9",O2["247"]="9",O2["248"]="9",O2["353"]="9",O2["355"]="9",O2["356"]="9",O2["271"]="9",O2["577"]="9",O2["313"]="9",O2["579"]="9",O2["272"]="9",O2["302"]="9",
O2["303"]="9",O2["407"]="9",O2["408"]="9",O2["308"]="9",O2["315"]="9",O2["330"]="9h",O2["331"]="9h",O2["332"]="9h",O2["333"]="9h",O2["334"]="9h",O2["335"]="9h",O2["336"]="9h",O2["337"]="9h",O2["338"]="so",O2["600"]="o",O2["250"]="o",O2["251"]="o",O2["194"]="*",O2["195"]="*",O2["220"]="*",O2["221"]="*",O2["196"]="*",O2["197"]="*",O2["279"]="(",O2["280"]="(",O2["317"]="(",O2["318"]="(",O2["273"]="(",O2["274"]="(",O2["357"]="(",O2["358"]="(",O2["275"]="(",O2["359"]="(",O2["360"]="(",O2["276"]="(",O2["583"]=
"(",O2["584"]="(",O2["314"]="(",O2["585"]="(",O2["561"]="(",O2["277"]="(",O2["361"]="(h",O2["362"]="(h",O2["363"]="(h",O2["364"]="(h",O2["365"]="(h",O2["366"]="(h",O2["591"]="(h",O2["592"]="(h",O2["367"]="(h",O2["586"]="(h",O2["587"]="(h",O2["368"]="(h",O2["588"]="(h",O2["562"]="(h",O2["409"]="(",O2["410"]="(",O2["411"]="(",O2["412"]="(",O2["557"]="(",O2["558"]="(",O2["394"]="1",O2["395"]="1",O2["396"]="1",O2["397"]="1",O2["398"]="1",O2["399"]="1",O2["400"]="1",O2["401"]="1",O2["571"]="1",O2["402"]=
"1",O2["694"]="1h",O2["695"]="1h",O2["696"]="1h",O2["697"]="1h",O2["698"]="1h",O2["699"]="1h",O2["700"]="1h",O2["701"]="1h",O2["702"]="1h",O2["703"]="1h",O2["386"]="3",O2["387"]="w",O2["406"]="6",O2["645"]="(",O2["646"]="(",O2["647"]="(",O2["648"]="(",O2["649"]="(",O2["650"]="(",O2["651"]="(",O2["652"]="(",O2["653"]="(",O2["654"]="(",O2["655"]="(",O2["656"]="(",O2["657"]="(",O2["658"]="(",O2["659"]="(",O2["660"]="(",O2["661"]="(",O2["662"]="(",O2["663"]="(",O2["664"]="(",O2["665"]="(",O2["666"]="(",
O2["667"]="(",O2["668"]="(",O2["669"]="(",O2["670"]="(",O2["671"]="(",O2["672"]="(",O2["673"]="(",O2["674"]="(h",O2["675"]="(h",O2["676"]="(h",O2["677"]="(h",O2["678"]="(h",O2["679"]="(h",O2["680"]="(h",O2["681"]="(h",O2["682"]="(h",O2["683"]="(h",O2["684"]="(h",O2["685"]="(h",O2["686"]="(h",O2["687"]="(h",O2["688"]="A",O2["689"]="A",O2["690"]="A",O2["691"]="MEAC3",O2["773"]="i",O2);var P2={},LTa=(P2.STEREO_LAYOUT_UNKNOWN=0,P2.STEREO_LAYOUT_LEFT_RIGHT=1,P2.STEREO_LAYOUT_TOP_BOTTOM=2,P2);var Q2,TO;Q2={};g.PJ=(Q2.auto=0,Q2.tiny=144,Q2.light=144,Q2.small=240,Q2.medium=360,Q2.large=480,Q2.hd720=720,Q2.hd1080=1080,Q2.hd1440=1440,Q2.hd2160=2160,Q2.hd2880=2880,Q2.highres=4320,Q2);TO={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var RJ="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");QJ.prototype.isHdr=function(){return this.B==="smpte2084"||this.B==="arib-std-b67"};UJ.prototype.Ne=function(){return this.containerType===2};
UJ.prototype.isEncrypted=function(){return!!this.oe};
UJ.prototype.Kh=function(){return!!this.audio};
UJ.prototype.Cg=function(){return!!this.video};g.x(mK,g.GE);g.k=mK.prototype;g.k.appendBuffer=function(a,b,c){if(this.Id.SE()!==this.appendWindowStart+this.start||this.Id.FJ()!==this.appendWindowEnd+this.start||this.Id.Fc()!==this.timestampOffset+this.start)this.Id.supports(1),this.Id.mT(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Id.Mq(this.timestampOffset+this.start);this.Id.appendBuffer(a,b,c)};
g.k.abort=function(){this.Id.abort()};
g.k.remove=function(a,b){this.Id.remove(a+this.start,b+this.start)};
g.k.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.k.clear=function(){this.Id.clear()};
g.k.mT=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.ZP=function(){return this.timestampOffset+this.start};
g.k.SE=function(){return this.appendWindowStart};
g.k.FJ=function(){return this.appendWindowEnd};
g.k.Mq=function(a){this.timestampOffset=a};
g.k.Fc=function(){return this.timestampOffset};
g.k.Ee=function(a){a=this.Id.Ee(a===void 0?!1:a);return lK(a,this.start,this.end)};
g.k.Ak=function(){return this.Id.Ak()};
g.k.cK=function(){return this.Id.cK()};
g.k.Pm=function(){return this.Id.Pm()};
g.k.HQ=function(){return this.Id.HQ()};
g.k.Lz=function(){this.Id.Lz()};
g.k.Ex=function(a){return this.Id.Ex(a)};
g.k.Vw=function(){return this.Id.Vw()};
g.k.NJ=function(){return this.Id.NJ()};
g.k.lU=function(a,b){this.Id.lU(a,b)};
g.k.supports=function(a){return this.Id.supports(a)};
g.k.qA=function(){return this.Id.qA()};
g.k.isView=function(){return!0};
g.k.UI=function(){return this.Id.UI()?this.isActive:!1};
g.k.isLocked=function(){return this.dI&&!this.isActive};
g.k.qc=function(a){a=this.Id.qc(a);a.vw=this.start+"-"+this.end;return a};
g.k.OJ=function(){return this.Id.OJ()};
g.k.cF=function(){return this.Id.cF()};
g.k.TP=function(){return this.Id.TP()};
g.k.ya=function(){IE(this.Id,this.RY);g.GE.prototype.ya.call(this)};
g.k.JF=function(){return this.Id.JF()};
g.k.YI=function(){this.Id.YI()};var QX=!1;g.x(nK,g.GE);g.k=nK.prototype;g.k.appendBuffer=function(a,b,c){this.mE=!1;c&&(this.PF=c);if(a.length){var d;((d=this.Sb)==null?0:d.appendBuffer)?this.Sb.appendBuffer(a):this.Sb?this.Sb.append(a):this.yg&&this.yg.webkitSourceAppend(this.id,a)}b&&(b.isEncrypted()&&(this.WQ=this.PF),b.type===3&&(this.Kf=b,this.cI=!0),this.OF.push(b.Tc()),this.OF.length>4&&this.OF.shift());this.jC&&(this.jC.length>=2||a.length>1048576?delete this.jC:this.jC.push(a))};
g.k.abort=function(){try{this.Sb?this.Sb.abort():this.yg&&this.yg.webkitSourceAbort(this.id)}catch(a){q6a&&g.mE(new g.FB("Error while abort the source buffer: "+a.name+", "+a.message))}this.PF=this.Kf=null;this.cI=!1};
g.k.remove=function(a,b,c){this.mE=!1;var d;if((d=this.Sb)==null?0:d.remove)c&&c({b:fK(this.Ee()),s:a,e:b}),this.Sb.remove(a,b)};
g.k.removeAll=function(){this.remove(this.SE(),this.FJ())};
g.k.clear=function(){this.Pm()||(this.abort(),this.removeAll(),this.WQ=this.PF=this.Kf=null,this.appendWindowStart=this.timestampOffset=0,this.rO=eK([],[]),this.mE=!1,this.jC=REa?[]:void 0,this.ZI=!0,this.cI=!1)};
g.k.SE=function(){if(QX&&this.Cg)return this.appendWindowStart;var a;return((a=this.Sb)==null?void 0:a.appendWindowStart)||0};
g.k.FJ=function(){var a;return((a=this.Sb)==null?void 0:a.appendWindowEnd)||0};
g.k.mT=function(a,b){this.Sb&&(QX&&this.Cg?(this.appendWindowStart=a,this.Sb.appendWindowEnd=b):a>this.SE()?(this.Sb.appendWindowEnd=b,this.Sb.appendWindowStart=a):(this.Sb.appendWindowStart=a,this.Sb.appendWindowEnd=b))};
g.k.ZP=function(){return this.timestampOffset};
g.k.Mq=function(a){QX?this.timestampOffset=a:this.supports(1)&&(this.Sb.timestampOffset=a)};
g.k.Fc=function(){return QX?this.timestampOffset:this.supports(1)?this.Sb.timestampOffset:0};
g.k.Ee=function(a){if(a===void 0?0:a)return this.mE||this.Ak()||(this.rO=this.Ee(!1),this.mE=!0),this.rO;try{return this.Sb?this.Sb.buffered:this.yg?this.yg.webkitSourceBuffered(this.id):eK([0],[Infinity])}catch(b){return eK([],[])}};
g.k.Ak=function(){var a;return((a=this.Sb)==null?void 0:a.updating)||!1};
g.k.Pm=function(){return this.ZI};
g.k.HQ=function(){return!this.ZI&&this.Ak()};
g.k.Lz=function(){this.ZI=!1};
g.k.Ex=function(a){var b=a==null?void 0:a.sb;a=a==null?void 0:a.containerType;return!b&&!a||b===this.sb&&a===this.containerType};
g.k.Vw=function(){return this.PF};
g.k.NJ=function(){return this.WQ};
g.k.lU=function(a,b){this.containerType!==a&&(this.supports(4),oK()&&this.Sb.changeType(b));this.containerType=a};
g.k.qA=function(){return this.Kf};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:var b;return((b=this.Sb)==null?void 0:b.timestampOffset)!==void 0;case 0:var c;return!((c=this.Sb)==null||!c.appendBuffer);case 2:var d;return!((d=this.Sb)==null||!d.remove);case 3:var e,f;return!!(((e=this.Sb)==null?0:e.addEventListener)&&((f=this.Sb)==null?0:f.removeEventListener));case 4:return!(!this.Sb||!this.Sb.changeType);default:return!1}};
g.k.UI=function(){return!this.Ak()};
g.k.isLocked=function(){return!1};
g.k.qc=function(a){a.to=this.Fc();a.up=this.Ak();var b,c=((b=this.Sb)==null?void 0:b.appendWindowStart)||0,d;b=((d=this.Sb)==null?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=fK(this.Ee())}catch(e){}return a};
g.k.cK=function(){var a;return((a=this.Sb)==null?void 0:a.writeHead)||0};
g.k.OJ=function(){for(var a={},b=0;b<this.OF.length;b++)a["s"+b]=this.OF[b];return a};
g.k.ya=function(){this.supports(3)&&(this.Sb.removeEventListener("updateend",this.Hd),this.Sb.removeEventListener("error",this.Hd));g.GE.prototype.ya.call(this)};
g.k.cF=function(){return this.containerType};
g.k.TP=function(){return this.jC};
g.k.JF=function(){return this.cI};
g.k.YI=function(){this.cI=!1};
var REa=!1,q6a=!1;pK.prototype.dispose=function(){if(!this.Na){if(this.j)try{URL.revokeObjectURL(this.resource)}catch(a){}this.B=!0}};
pK.prototype.Na=function(){return this.B};
pK.prototype.toString=function(){return"MediaResource {"+this.resource+"}"};g.x(qK,g.I);g.k=qK.prototype;g.k.getDuration=function(){var a;return((a=this.Ra)==null?void 0:a.duration)||this.va};
g.k.Nl=function(a){try{this.Ra?this.Ra.duration=a:(this.va=a,this.yg.webkitSourceSetDuration(a))}catch(b){}};
g.k.Sg=function(){try{return wK(this)==="closed"}catch(a){return!0}};
g.k.Ak=function(){return!!(this.j&&this.j.Ak()||this.B&&this.B.Ak())};
g.k.isAsync=function(){return this.j?!!this.j.supports(0):WEa()};
g.k.Cca=function(){!this.Na()&&rK(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.Bca=function(){this.dispose()};
g.k.Y5=function(a){if(sK&&!this.G&&a.Pm()&&a.Ee().length===0){var b;tK(this.mediaElement,{l:"mswoue",sr:(b=this.mediaElement.ea)==null?void 0:uK(b)},!1);a.Lz();this.Pm()||(this.mediaElement.qK=!0,this.mediaElement.setCurrentTime(0))}};
g.k.uO=function(){return!!this.j.supports(2)};
g.k.clear=function(){TEa(this,function(){});
var a;(a=this.j)==null||a.clear();var b;(b=this.B)==null||b.clear()};
g.k.Pm=function(){var a,b;return((a=this.B)==null?void 0:a.Pm())||((b=this.j)==null?void 0:b.Pm())};
g.k.Ex=function(a,b){return!!this.j&&!!this.B&&this.j.Ex(b)&&this.B.Ex(a)};
var sK=!1;xK.prototype.then=function(a,b){return this.promise.then(a,b)};
xK.prototype.resolve=function(a){this.bT(a)};
xK.prototype.reject=function(a){this.OS(a)};g.x(yK,g.I);g.k=yK.prototype;g.k.uI=function(){return this.resource};
g.k.activate=function(a){var b="";a&&(dFa(this,a),b=a.resource);if(!this.Ff()||b)b&&this.Ff()!==b&&(this.wI(b),delete this.B,this.C&&(this.C.reject(),delete this.C),!window.MediaSource&&window.ManagedMediaSource&&this.pT(!(a==null||!a.j))),a&&a.j||this.load(),this.N||(this.addEventListener("volumechange",this.oX),this.N=!0)};
g.k.Nr=function(a,b){if(this.B)if(p6a&&vK(this.B)&&!this.B.Ex(a,b)){var c;tK(this,{l:"megms",sr:(c=this.ea)==null?void 0:uK(c)});bFa(this);this.stopVideo()}else return this.Ra=this.B,this.B=void 0,this.Ra;a=window.MediaSource?new qK(this,new window.MediaSource,!1):window.ManagedMediaSource?new qK(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new qK(this,new window.WebKitMediaSource,!1):new qK(this,void 0,!1);this.activate(a.C);this.Ra=a;this.qK=!1;return a};
g.k.playVideo=function(){var a=this;this.isEnded()&&this.seekTo(0);!this.Ff()&&this.resource&&(g.mE(Error("playVideo without src")),this.wI(this.resource.resource),this.resource.j||this.load());var b=this.play(),c;((c=this.ea)==null?0:c.L("html5_remove_ios_7_hack_force_play"))||!b&&GV&&(wS||0)>=7&&DEa(this,function(){g.BA(function(){cFa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){this.al()>0&&(GV&&wS<4&&(a=Math.max(.1,a)),this.setCurrentTime(a))};
g.k.Xo=function(){if(!this.B&&this.Ra)if(this.Ra.K)try{var a;tK(this,{l:"mer",sr:(a=this.ea)==null?void 0:uK(a),rs:wK(this.Ra)});this.Ra.clear();this.B=this.Ra;this.Ra=void 0}catch(b){a=new g.FB("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.mE(a),this.stopVideo()}else this.stopVideo()};
g.k.stopVideo=function(){var a=this;if(!this.B){var b;(b=this.Ra)==null||ZEa(b);if(n6a){if(!this.C){var c=new xK;c.then(void 0,function(){});
this.C=c;o6a&&this.pause();g.BA(function(){a.C===c&&(gFa(a),c.resolve())},200)}}else gFa(this)}};
g.k.sA=function(){var a=this.Ih();return jK(a)>0&&this.getDuration()?iK(a,this.getCurrentTime()):0};
g.k.Zw=function(){var a=this.getDuration();return a===Infinity?1:a?this.sA()/a:0};
g.k.qc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:fK(this.gx(),",",3),vbu:fK(this.Ih()),vbs:fK(this.xA()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.al(),vns:""+this.RJ(),vec:""+this.ih(),vemsg:this.uf(),vvol:""+this.getVolume(),vdom:""+ +this.IQ(),vsrc:""+ +!!this.Ff(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.hasError=function(){return this.ih()>0};
g.k.addEventListener=function(a,b){this.D.listen(a,b,!1,this);this.jP(a)};
g.k.removeEventListener=function(a,b){this.D.Oc(a,b,!1,this)};
g.k.dispatchEvent=function(a){if(this.C&&a.type==="pause")return!1;if(p6a){var b,c=((b=a.j)==null?void 0:b.timeStamp)||Infinity;b=c>performance.now()?c-Date.now()+performance.now():c;c=this.B||this.Ra;if((c==null?0:c.Pm())||b<=((c==null?void 0:c.N)||0)){var d;tK(this,{l:"mede",sr:(d=this.ea)==null?void 0:uK(d),et:a.type});return!1}if(this.qK)return tK(this,{l:"medes",et:a.type}),c&&a.type==="seeking"&&(c.N=performance.now(),this.qK=!1),!1}return this.D.dispatchEvent(a)};
g.k.gP=function(){this.K=!1};
g.k.cP=function(){this.K=!0;this.pC(!0)};
g.k.oX=function(){this.K&&!this.QJ()&&this.pC(!0)};
g.k.ya=function(){this.N&&this.removeEventListener("volumechange",this.oX);n6a&&gFa(this);g.I.prototype.ya.call(this)};
var n6a=!1,o6a=!1,p6a=!1,fFa=!1;g.k=g.AK.prototype;g.k.isPaused=function(){return g.yF(this,4)};
g.k.isPlaying=function(){return g.yF(this,8)&&!g.yF(this,512)&&!g.yF(this,64)&&!g.yF(this,2)};
g.k.isOrWillBePlaying=function(){return g.yF(this,8)&&!g.yF(this,2)&&!g.yF(this,1024)};
g.k.isCued=function(){return g.yF(this,64)&&!g.yF(this,8)&&!g.yF(this,4)};
g.k.isBuffering=function(){return g.yF(this,1)&&!g.yF(this,2)};
g.k.isError=function(){return g.yF(this,128)};
g.k.isSuspended=function(){return g.yF(this,512)};
g.k.EF=function(){return g.yF(this,64)&&g.yF(this,4)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};
var R2={},S2=(R2.BUFFERING="buffering-mode",R2.CUED="cued-mode",R2.ENDED="ended-mode",R2.PAUSED="paused-mode",R2.PLAYING="playing-mode",R2.SEEKING="seeking-mode",R2.UNSTARTED="unstarted-mode",R2);g.x(IK,g.I);g.k=IK.prototype;g.k.mA=function(){return this.B};
g.k.dc=function(){return this.slot};
g.k.bb=function(){return this.layout};
g.k.init=function(){var a=jI(this.layout.Ca,"metadata_type_video_length_seconds"),b=jI(this.layout.Ca,"metadata_type_active_view_traffic_type");fJ(this.layout.Db)&&m1(this.yb.get(),this.layout.layoutId,{At:b,ZH:a,listener:this,Do:this.kf()});ajb(this.Pa.get(),this);a=this.Ug;b=this.layout.layoutId;var c={Do:this.kf()};a.j.set(b,c);this.tx()};
g.k.release=function(){fJ(this.layout.Db)&&n1(this.yb.get(),this.layout.layoutId);bjb(this.Pa.get(),this);this.Ug.j.delete(this.layout.layoutId);this.By()};
g.k.Fs=function(){};
g.k.Is=function(){};
g.k.startRendering=function(a){wEa(JK(this));lFa(this,a)&&(mFa(this),this.Us(a),this.kf()||this.KI(!1))};
g.k.wc=function(a,b){if(b.layoutId===this.layout.layoutId){this.lc="rendering";this.j=this.Ia.get().isMuted()||this.Ia.get().getVolume()===0;this.Zb("impression");this.Zb("start");if(this.Ia.get().isMuted()){OK(this,"mute");var c;a=((c=HK(this))==null?void 0:c.muteCommands)||[];JI(this.Mb.get(),a,this.layout.layoutId)}if(this.Ia.get().isFullscreen()){this.Th("fullscreen");var d;c=((d=HK(this))==null?void 0:d.fullscreenCommands)||[];JI(this.Mb.get(),c,this.layout.layoutId)}this.kf()||(d=this.zc.get(),
d.D&&!d.B&&(d.G=!1,d.B=!0,d.actionType!=="ad_to_video"&&(d.J.L("html5_no_video_to_ad_on_preroll")?SG("pbs",void 0,d.actionType):KG("pbs",void 0,d.actionType),g.FA("finalize_all_timelines")&&uAa(d.actionType))));this.Dq(1);this.RR(b);var e;b=((e=HK(this))==null?void 0:e.impressionCommands)||[];JI(this.Mb.get(),b,this.layout.layoutId)}};
g.k.dL=function(a,b,c){this.K={UM:3,YH:a==="load_timeout"?402:400,errorMessage:b.message};this.Zb("error");var d;a=((d=HK(this))==null?void 0:d.errorCommands)||[];JI(this.Mb.get(),a,this.layout.layoutId);this.kf()||this.fp.wf(this.slot,this.layout,b,c)};
g.k.T2=function(){if(this.lc==="rendering"){OK(this,"pause");var a,b=((a=HK(this))==null?void 0:a.pauseCommands)||[];JI(this.Mb.get(),b,this.layout.layoutId);this.Dq(2)}};
g.k.U2=function(){if(this.lc==="rendering"){OK(this,"resume");var a,b=((a=HK(this))==null?void 0:a.resumeCommands)||[];JI(this.Mb.get(),b,this.layout.layoutId)}};
g.k.HC=function(a,b){b=b===void 0?!1:b;if(this.lc==="rendering"){lJ(this.fb,a*1E3,b);this.j||lJ(this.fb,a*1E3,b===void 0?!1:b);var c=this.rA();c&&(c/=1E3,(a>=c*.25||b)&&this.Zb("first_quartile"),(a>=c*.5||b)&&this.Zb("midpoint"),(a>=c*.75||b)&&this.Zb("third_quartile"),this.Ba.get().J.U().experiments.gb("enable_progress_command_flush_on_kabuki")?JDa(this.C,a*1E3,b):JDa(this.C,a*1E3,rFa(this)?b:!1))}};
g.k.jg=function(){var a;return((a=this.Ta.get().Fe(1))==null?void 0:a.clientPlaybackNonce)||""};
g.k.EJ=function(){var a;return((a=this.Ta.get().Fe(2))==null?void 0:a.clientPlaybackNonce)||""};
g.k.Wy=function(a,b){a.layoutId!==this.layout.layoutId?this.fp.wf(this.slot,a,new gI("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"):b()};
g.k.Nc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.lc="not_rendering",this.layoutExitReason=void 0,this.kf()||(a=c!=="normal"||this.position+1===this.G)&&this.KI(a),this.S2(c),this.Dq(0),c){case "abandoned":if(mJ(this.fb,"impression")){var d,e=((d=HK(this))==null?void 0:d.abandonCommands)||[];JI(this.Mb.get(),e,this.layout.layoutId)}break;case "normal":d=((e=HK(this))==null?void 0:e.completeCommands)||[];JI(this.Mb.get(),d,this.layout.layoutId);break;case "skipped":var f;d=((f=
HK(this))==null?void 0:f.skipCommands)||[];JI(this.Mb.get(),d,this.layout.layoutId)}};
g.k.Xw=function(){return this.layout.layoutId};
g.k.wP=function(){return this.K};
g.k.Wx=function(){if(this.lc==="rendering"){this.fb.Zb("active_view_measurable");var a,b=((a=HK(this))==null?void 0:a.activeViewMeasurableCommands)||[];JI(this.Mb.get(),b,this.layout.layoutId)}};
g.k.Vx=function(){if(this.lc==="rendering"){this.fb.Zb("active_view_fully_viewable_audible_half_duration");var a,b=((a=HK(this))==null?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];JI(this.Mb.get(),b,this.layout.layoutId)}};
g.k.Xx=function(){if(this.lc==="rendering"){this.fb.Zb("active_view_viewable");var a,b=((a=HK(this))==null?void 0:a.activeViewViewableCommands)||[];JI(this.Mb.get(),b,this.layout.layoutId)}};
g.k.Tx=function(){if(this.lc==="rendering"){this.fb.Zb("audio_audible");var a,b=((a=HK(this))==null?void 0:a.activeViewAudioAudibleCommands)||[];JI(this.Mb.get(),b,this.layout.layoutId)}};
g.k.Ux=function(){if(this.lc==="rendering"){this.fb.Zb("audio_measurable");var a,b=((a=HK(this))==null?void 0:a.activeViewAudioMeasurableCommands)||[];JI(this.Mb.get(),b,this.layout.layoutId)}};
g.k.KI=function(a){this.zc.get().KI(jI(this.layout.Ca,"metadata_type_ad_placement_config").kind,a,this.position,this.G,!1)};
g.k.onFullscreenToggled=function(a){if(this.lc==="rendering")if(a){this.Th("fullscreen");var b,c=((b=HK(this))==null?void 0:b.fullscreenCommands)||[];JI(this.Mb.get(),c,this.layout.layoutId)}else this.Th("end_fullscreen"),b=((c=HK(this))==null?void 0:c.endFullscreenCommands)||[],JI(this.Mb.get(),b,this.layout.layoutId)};
g.k.onVolumeChange=function(){if(this.lc==="rendering")if(this.Ia.get().isMuted()){OK(this,"mute");var a,b=((a=HK(this))==null?void 0:a.muteCommands)||[];JI(this.Mb.get(),b,this.layout.layoutId)}else OK(this,"unmute"),a=((b=HK(this))==null?void 0:b.unmuteCommands)||[],JI(this.Mb.get(),a,this.layout.layoutId)};
g.k.rh=function(){};
g.k.Gj=function(){};
g.k.dj=function(){};
g.k.Fj=function(){};
g.k.Ij=function(){};
g.k.Th=function(a){this.fb.Th(a,!this.j)};
g.k.Zb=function(a){this.fb.Zb(a,!this.j)};
g.k.kf=function(){var a=jI(this.slot.Ca,"metadata_type_eligible_for_ssap");return a===void 0?(wF("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Ba.get().kf(a)};g.x(RK,IK);g.k=RK.prototype;g.k.MO=function(){this.layoutExitReason?this.fp.Nc(this.slot,this.layout,this.layoutExitReason):nFa(this)};
g.k.tx=function(){};
g.k.By=function(){var a=this.Pa.get();a.EC===this&&(a.EC=null);this.Ye.stop()};
g.k.Fs=function(){this.Ye.stop();IK.prototype.T2.call(this)};
g.k.Is=function(){uFa(this);IK.prototype.U2.call(this)};
g.k.rA=function(){return jI(this.bb().Ca,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.Jd=function(a,b){var c=this;this.Wy(a,function(){c.lc!=="rendering_stop_requested"&&(c.lc="rendering_stop_requested",c.layoutExitReason=b,KK(c,b),c.Ye.stop())})};
g.k.Uc=function(){var a=Date.now(),b=a-this.ZQ;this.ZQ=a;this.mj+=b;this.mj>=this.rA()?this.JY():(this.HC(this.mj/1E3),tFa(this,this.mj))};
g.k.S2=function(){};
g.k.Ni=function(){};
g.x(wFa,RK);g.k=wFa.prototype;g.k.Eg=function(a){if(this.lc!=="not_rendering"){a=LK(this,a);var b=this.Ia.get().getPresentingPlayerType()===2;this.lc==="rendering_start_requested"?b&&zJ(a)&&this.Vz():b?g.AF(a,2)?wF("Receive player ended event during MediaBreak",this.dc(),this.bb()):MK(this,a):this.jx()}};
g.k.Us=function(){pFa(this);ljb(this.Ia.get());this.Pa.get().EC=this;RG("pbp")||RG("pbs")||SG("pbp");RG("pbp","watch")||RG("pbs","watch")||SG("pbp",void 0,"watch");this.Vz()};
g.k.RR=function(a){this.zc.get();var b=jI(a.Ca,"metadata_type_ad_placement_config").kind,c=this.position===0;a=jI(a.Ca,"metadata_type_linked_in_player_layout_type");a={adBreakType:NK(b),adType:FFa(a)};var d=void 0;c?b!=="AD_PLACEMENT_KIND_START"&&(d="video_to_ad"):d="ad_to_ad";KG("ad_mbs",void 0,d);g.LG(a,d);uFa(this)};
g.k.jx=function(){this.Uz()};
g.k.JY=function(){vFa(this);this.Uz()};
g.x(SK,RK);g.k=SK.prototype;g.k.Eg=function(a){this.lc!=="not_rendering"&&(a=LK(this,a),MK(this,a))};
g.k.Us=function(){wF("startRenderingHelper in SSAP");this.Pa.get().EC=this;this.Vz()};
g.k.RR=function(){uFa(this)};
g.k.jx=function(){wF("handleAdPlayerNoLongerPresenting in SSAP");oFa(this);this.Uz()};
g.k.JY=function(){vFa(this);this.fp.gC(this.dc(),this.bb(),"normal")};
g.x(TK,SK);TK.prototype.Jd=function(a,b){var c=this;this.Wy(a,function(){rEa(c.B,b)&&(c.lc="rendering_stop_requested",c.layoutExitReason=b,KK(c,b),c.Ye.stop())})};
TK.prototype.startRendering=function(a){wEa(JK(this));lFa(this,a)&&(mFa(this),this.Pa.get().EC=this)};g.x(WK,IK);g.k=WK.prototype;g.k.MO=function(){this.layoutExitReason?this.fp.Nc(this.slot,this.layout,this.layoutExitReason):nFa(this)};
g.k.jx=function(){oFa(this);this.Uz()};
g.k.Eg=function(a){if(this.lc!=="not_rendering"){a=LK(this,a);var b=this.Ia.get().getPresentingPlayerType()===2;this.lc==="rendering_start_requested"?b&&zJ(a)&&this.Vz():b?g.AF(a,2)?this.Uz():MK(this,a):this.jx()}};
g.k.tx=function(){jI(this.bb().Ca,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=jI(this.bb().Ca,"metadata_type_shrunken_player_bytes_config")};
g.k.By=function(){jI(this.bb().Ca,"metadata_type_player_bytes_callback_ref").current=null;this.Jt&&this.Qc.get().removeCueRange(this.Jt);this.Jt=void 0;var a;(a=this.RK)==null||a.dispose();this.rB&&this.rB.dispose()};
g.k.Us=function(a){var b=UK(this.Ba.get()),c=VK(this.Ba.get());if(b&&c&&!this.kf()){c=jI(a.Ca,"metadata_type_preload_player_vars");var d=g.oI(this.Ba.get().J.U().experiments,"html5_preload_wait_time_secs");c&&this.rB&&this.rB.start(d*1E3)}zFa(this,a);pFa(this);b?(c=this.kd.get(),a=jI(a.Ca,"metadata_type_player_vars"),c.J.loadVideoByPlayerVars(a,!1,2)):ujb(this.kd.get(),jI(a.Ca,"metadata_type_player_vars"));var e;(e=this.RK)==null||e.start();b||this.kd.get().J.playVideo(2)};
g.k.RR=function(){var a;(a=this.RK)==null||a.stop();this.Jt="adcompletioncuerange:"+this.bb().layoutId;this.Qc.get().addCueRange(this.Jt,0x7ffffffffffff,0x8000000000000,!1,this,2,2);a=this.context.Qp;var b=this.Jt,c=this.bb().layoutId;if(CM(a.Ba.get())){var d={};a.Fl("mccr",(d.cid=b,d.c=c,d))}(this.adCpn=this.EJ())||wF("Media layout confirmed started, but ad CPN not set.");this.md.get().ev("onAdStart",this.adCpn);this.KW=Date.now()};
g.k.rA=function(){var a;return(a=this.Ta.get().Fe(2))==null?void 0:a.gda};
g.k.YL=function(){this.fb.Th("clickthrough")};
g.k.Jd=function(a,b){var c=this;this.Wy(a,function(){if(c.lc!=="rendering_stop_requested"){c.lc="rendering_stop_requested";c.layoutExitReason=b;KK(c,b);var d;(d=c.RK)==null||d.stop();c.rB&&c.rB.stop();AFa(c)}})};
g.k.onCueRangeEnter=function(a){if(a!==this.Jt)wF("Received CueRangeEnter signal for unknown layout.",this.dc(),this.bb(),{cueRangeId:a});else{var b=this.context.Qp,c=this.bb().layoutId;if(CM(b.Ba.get())){var d={};b.Fl("mccre",(d.cid=a,d.c=c,d))}this.Qc.get().removeCueRange(this.Jt);this.Jt=void 0;a=jI(this.bb().Ca,"metadata_type_video_length_seconds");this.HC(a,!0);this.Zb("complete")}};
g.k.S2=function(a){a!=="abandoned"&&this.md.get().ev("onAdComplete");this.md.get().ev("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.Ni=function(a){this.lc==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ia.get().uC(!0),this.HC(a))};
g.k.HC=function(a,b){IK.prototype.HC.call(this,a,b===void 0?!1:b);if(a>=5&&!this.VY){b=Date.now()-this.KW;a*=1E3;var c={contentCpn:this.jg(),adCpn:this.EJ()},d=b<1E3?0:1;fza(d,"i.k_",{metadata:c,o7:b,p7:Math.floor(a/1E3)});iA("IKDSTAT",d);d===0&&this.FT()&&this.md.get().ev("onAbnormalityDetected");this.VY=!0}};
g.k.FT=function(){if(!this.Ba.get().FT())return!1;var a=jI(this.dc().Ca,"metadata_type_player_bytes_slot_metadata");a===void 0&&wF("PlayerBytesSlotMetadata is not filled",this.dc(),this.bb());return(a==null?void 0:a.Bu)===!0};g.x(XK,WK);XK.prototype.Eg=function(a){this.lc!=="not_rendering"&&(a=LK(this,a),MK(this,a))};
XK.prototype.Us=function(a){wF("startRenderingHelper in SSAP");zFa(this,a);this.Vz()};
g.x(YK,XK);YK.prototype.Jd=function(a,b){var c=this;this.Wy(a,function(){rEa(c.B,b)&&(c.lc="rendering_stop_requested",c.layoutExitReason=b,KK(c,b),AFa(c))})};
YK.prototype.startRendering=function(a){wEa(JK(this));lFa(this,a)&&(mFa(this),zFa(this,a))};g.x(ZK,g.I);g.k=ZK.prototype;g.k.init=function(){var a=jI(this.layout.Ca,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ta.get().addListener(this);this.Kd.init();sEa([this.layout],this.Ta.get());this.dO()};
g.k.dO=function(){var a=jI(this.Kd.bb().Ca,"metadata_type_player_vars");a?this.kd.get().addPlayerResponseForAssociation({playerVars:a}):(a=GFa(this.Kd.bb()),this.kd.get().addPlayerResponseForAssociation({jJ:a}))};
g.k.pL=function(){};
g.k.dc=function(){return this.slot};
g.k.bb=function(){return this.layout};
g.k.Fs=function(){this.Kd.Fs()};
g.k.Is=function(){this.Kd.Is()};
g.k.iy=function(){wF("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter.  Skip should be handled by Triggers")};
g.k.wc=function(a,b){this.Kd.wc(a,b)};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.Oh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.Vg=function(){};
g.k.Ni=function(a){this.Kd.Ni(a)};
g.k.onFullscreenToggled=function(a){this.Kd.onFullscreenToggled(a)};
g.k.rh=function(a){this.Kd.rh(a)};
g.k.dj=function(a){this.Kd.dj(a)};
g.k.onVolumeChange=function(){this.Kd.onVolumeChange()};
g.k.Fj=function(){};
g.k.Ij=function(){};
g.k.Gj=function(){};
g.x(HFa,ZK);g.k=HFa.prototype;g.k.GQ=function(){return this.Ia.get().getPresentingPlayerType()===2};
g.k.nG=function(a){yEa({cpn:a,Nf:this.Ta.get(),hs:!0});this.layout.layoutId===a&&(eKa(this.Yd,this.slot.slotId),this.Fv.wc(this.slot,this.layout))};
g.k.startRendering=function(a){if(a.layoutId!==this.layout.layoutId)return void wF("wrong layout");this.Ia.get().addListener(this);qI(this.vc(),this);this.Kd.startRendering(this.layout)};
g.k.Eg=function(a){this.Kd.Eg(a)};
g.k.Nc=function(a,b,c){this.Kd.Nc(a,b,c)};
g.k.release=function(){this.Ta.get().removeListener(this);this.Kd.release();tEa();rI(this.vc(),this)};
g.k.Jd=function(a,b){a.layoutId!==this.layout.layoutId?wF("wrong layout"):(this.Kd.Jd(this.layout,b),this.GQ()&&this.Gc.get().finishSegmentByCpn(this.layout.layoutId,this.Ta.get().Fe(1).clientPlaybackNonce),this.Ia.get().removeListener(this))};
g.k.oG=function(a,b,c){zEa({cpn:a,Nf:this.Ta.get(),hs:!0});this.bb().layoutId===a&&(this.Kd.mA().currentState<2&&(a=sFa(c),rM(this.params.context.Ba.get(),"html5_fix_non_video_expiration")&&a==="error"?this.Fv.wf(this.slot,this.layout,new gI("Non video ad expired during SSAP single layout.",{playerErrorCode:"non_video_expired"},"ADS_CLIENT_ERROR_MESSAGE_NON_VIDEO_AD_EXPIRED"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):cL(this.hf,this.layout,a)),this.Fv.Nc(this.slot,this.layout,this.Kd.mA().j))};g.x($K,g.I);g.k=$K.prototype;g.k.dc=function(){return this.slot};
g.k.bb=function(){return this.layout};
g.k.pL=function(){};
g.k.Ef=function(){return this.Jg[this.zz]};
g.k.rk=function(){return this.zz};
g.k.Fs=function(a,b){var c=this.Ef();b.layoutId!==bL(c,a,b)?wF("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.Fs()};
g.k.Is=function(a,b){var c=this.Ef();b.layoutId!==bL(c,a,b)?wF("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Is()};
g.k.iy=function(a,b){var c=this.Ef();LFa(this,a,b);MFa(c,a,b)&&this.BJ(c.dc(),c.bb(),"skipped")};
g.k.rL=function(a,b){var c=this.Ef();NFa(this);OFa(c,a,b)&&(a=PFa(this,c,a,b),a!==void 0&&(this.kf()?this.LO(c.bb(),a,"skipped"):SFa(this,c.dc(),c.bb(),a)))};
g.k.t0=function(a,b){var c=Object.assign({},aL(this),{layoutId:b.layoutId}),d=c.layoutId,e=c.hs;if(c.Do){var f={};EJ(c.Nf,"wrse",(f.ec=d,f.is=e,f.ctp=DJ(d),f))}mCa(this.Oq,a,b)};
g.k.wc=function(a,b){var c;(c=this.Ef())==null||c.wc(a,b)};
g.k.Nc=function(a,b,c){b.layoutId===this.bb().layoutId&&(this.sx=!1,rI(this.vc(),this));var d;(d=this.Ef())==null||d.Nc(a,b,c)};
g.k.Ni=function(a){var b;(b=this.Ef())==null||b.Ni(a)};
g.k.gK=function(a,b,c){this.rk()===-1&&(this.callback.wc(this.slot,this.layout),this.zz++);var d=this.Ef();d?(d.dL(a,b,c),this.kf()&&this.callback.wf(this.slot,this.layout,b,c)):wF("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.rk()),layoutId:this.bb().layoutId})};
g.k.onFullscreenToggled=function(a){var b;(b=this.Ef())==null||b.onFullscreenToggled(a)};
g.k.rh=function(a){var b;(b=this.Ef())==null||b.rh(a)};
g.k.dj=function(a){var b;(b=this.Ef())==null||b.dj(a)};
g.k.onVolumeChange=function(){var a;(a=this.Ef())==null||a.onVolumeChange()};
g.k.NO=function(a,b,c){nCa(this.Oq,a,b,c)};
g.k.OT=function(a){a.startRendering(a.bb())};
g.k.init=function(){var a=jI(this.bb().Ca,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);if(this.Jg.length<1)throw new hI("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Jg.length)});if(a=jI(this.bb().Ca,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=this;a=g.v(this.Jg);for(var b=a.next();!b.done;b=a.next())b=b.value,b.init(),jCa(this.Oq,this.slot,b.bb()),kCa(this.Oq,this.slot,b.bb());if(this.kf())for(this.Ta.get().addListener(this),
sEa(KFa(this),this.Ta.get()),a=KFa(this),a=g.v(a),b=a.next();!b.done;b=a.next())this.dO(b.value)};
g.k.dO=function(a){var b=jI(a.Ca,"metadata_type_player_vars");b?(a.layoutType!=="LAYOUT_TYPE_MEDIA"&&wF("Non-video ad contains playerVars",this.slot,a),this.kd.get().addPlayerResponseForAssociation({playerVars:b})):(a=GFa(a),this.kd.get().addPlayerResponseForAssociation({jJ:a}))};
g.k.release=function(){var a=jI(this.bb().Ca,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);if(a=jI(this.bb().Ca,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=null;a=g.v(this.Jg);for(var b=a.next();!b.done;b=a.next())b=b.value,lCa(this.Oq,this.slot,b.bb()),b.release();this.kf()&&(this.Ta.get().removeListener(this),tEa())};
g.k.Wy=function(a){return a.layoutId!==this.bb().layoutId?(this.callback.wf(this.dc(),a,new gI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.bb().layoutId+("and LayoutType: "+this.bb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0};
g.k.CI=function(){this.Ia.get().addListener(this);qI(this.vc(),this)};
g.k.Eg=function(a){if(a.state.isError()){var b,c;this.gK((b=a.state.hh)==null?void 0:b.errorCode,new gI("There was a player error during this media layout.",{playerErrorCode:(c=a.state.hh)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(b=this.Ef())&&b.Eg(a)};
g.k.kf=function(){var a=jI(this.dc().Ca,"metadata_type_eligible_for_ssap");return a===void 0?(wF("Expected SSAP eligibility in PlayerBytes slots",this.dc(),this.bb()),!1):this.Ba.get().kf(a)};
g.k.Gj=function(){};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.Oh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.Vg=function(){};
g.k.Fj=function(){};
g.k.Ij=function(){};
g.x(UFa,$K);g.k=UFa.prototype;g.k.eR=function(){var a=this.Ef();a&&a.jx()};
g.k.v0=function(a,b,c){this.BJ(a,b,c)};
g.k.u0=function(a,b){this.BJ(a,b,"error")};
g.k.BJ=function(a,b,c){var d=this;QFa(this,a,b,c,function(){RFa(d,d.rk()+1)})};
g.k.startRendering=function(a){this.Wy(a)&&(this.CI(),i1(this.Ba.get())&&d1(this.zc.get()),Iib(this.Ba.get())||ljb(this.Ia.get()),i1(this.Ba.get())||d1(this.zc.get()),this.rk()===-1&&RFa(this,this.rk()+1))};
g.k.Jd=function(a,b){var c=this;this.sx=!0;this.rk()===this.Jg.length?this.callback.Nc(this.slot,this.layout,b):(a=this.Ef(),a.Jd(a.bb(),b),this.jZ=function(){c.callback.Nc(c.slot,c.layout,b)});
this.Ia.get().J.Cy();ujb(this.kd.get(),{});a=l1(this.Ia.get(),1);a.isPaused()&&!g.yF(a,2)&&this.Ia.get().playVideo();this.Ia.get().removeListener(this);this.sx&&this.eR()};
g.k.oG=function(){};
g.k.nG=function(){};
g.k.gC=function(){};
g.k.LO=function(){};
g.x(dL,$K);dL.prototype.v0=function(a,b,c){a=Object.assign({},aL(this),{layoutId:b.layoutId,layoutExitReason:c});b=a.layoutId;c=a.layoutExitReason;var d={};EJ(a.Nf,"prse",(d.xc=b,d.ler=c,d.ctp=DJ(b),d))};
dL.prototype.u0=function(a,b,c,d){wF("onSubLayoutError in SSAP");this.callback.wf(this.slot,this.layout,c,d)};
dL.prototype.BJ=function(a,b,c){wF("exitSubLayoutAndPlayNext in SSAP");this.LO(b,this.rk()+1,c)};
dL.prototype.LO=function(a,b,c){var d=this;wF("confirmExitSubLayoutAndPlayTarget in SSAP");QFa(this,this.slot,a,c,function(){if(b>=d.Jg.length+1||b<0)wF("Unexpected target sublayout index",d.slot,d.layout,{targetSubLayoutIndex:b});else{d.zz=b;if(b===d.Jg.length){var e=d.Ta.get().Fe(1).clientPlaybackNonce;cL(d.wi,d.layout,"normal")}else e=d.Jg[b].bb().layoutId;d.Gc.get().finishSegmentByCpn(a.layoutId,e)}})};
g.x(VFa,dL);g.k=VFa.prototype;g.k.Ef=function(){return this.Gh};
g.k.rk=function(){var a=this;return this.Jg.findIndex(function(b){var c;return b.bb().layoutId===((c=a.Gh)==null?void 0:c.bb().layoutId)})};
g.k.OT=function(a){vF(this.Gh===void 0,"replacing another adapter");this.Gh=a;a.startRendering(a.bb())};
g.k.NO=function(a,b,c){nCa(this.Oq,a,b,c);var d;vF(b.layoutId===((d=this.Gh)==null?void 0:d.bb().layoutId),"currentAdapter does not match exiting layout",{slot:a?"slot:  "+a.slotType:"",subLayout:iza(b)})&&(this.Gh=void 0)};
g.k.release=function(){dL.prototype.release.call(this);vF(this.Gh===void 0,"currentAdapter is still active during release");this.Gh=void 0};
g.k.GQ=function(){return this.Ia.get().getPresentingPlayerType()===2};
g.k.Jd=function(a,b){vF(a.layoutId===this.bb().layoutId,"StopRendering for wrong layout")&&rEa(this.Lw.B,b)&&this.Gh&&(a=this.Gh,a.mA().currentState<2&&a.Jd(a.bb(),b),this.GQ()&&this.Gc.get().finishSegmentByCpn(this.Gh.bb().layoutId,this.Ta.get().Fe(1).clientPlaybackNonce))};
g.k.Nc=function(a,b,c){dL.prototype.Nc.call(this,a,b,c);b.layoutId===this.bb().layoutId&&this.Ia.get().removeListener(this)};
g.k.jg=function(){return this.Ta.get().Fe(1).clientPlaybackNonce};
g.k.oG=function(a,b,c){zEa(Object.assign({},aL(this),{cpn:a}));if(this.Gh&&this.Gh.bb().layoutId===a)WFa(this,this.Gh,c);else{var d,e;wF("Exiting cpn does not match active cpn",this.slot,(d=this.Gh)==null?void 0:d.bb(),{exitingCpn:a,transitionReason:c,activeCpn:(e=this.Gh)==null?void 0:e.bb().layoutId})}b===this.jg()&&(this.Gh!==void 0&&(wF("active adapter is not properly exited",this.slot,this.layout,{activeLayout:iza(this.Gh.bb())}),WFa(this,this.Gh,c)),this.Lw.B.currentState<2&&(a=sFa(c),rM(this.Ba.get(),
"html5_fix_non_video_expiration")&&a==="error"?this.callback.wf(this.slot,this.layout,new gI("Non video ad expired into content during SSAP composite layout.",{playerErrorCode:"non_video_expired"},"ADS_CLIENT_ERROR_MESSAGE_NON_VIDEO_AD_EXPIRED"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):cL(this.wi,this.layout,a)),this.callback.Nc(this.slot,this.layout,this.Lw.B.j))};
g.k.startRendering=function(a){this.Wy(a)&&(a=this.Lw,vF(a.j===1,"tickStartRendering: state is not initial"),a.j=2,this.CI())};
g.k.nG=function(a){yEa(Object.assign({},aL(this),{cpn:a}));var b=this.Jg.find(function(c){return c.bb().layoutId===a});
b?(this.Lw.j!==2&&(eKa(this.Yd,this.slot.slotId),vF(this.Lw.j===2,"Expect started"),this.callback.wc(this.slot,this.layout)),this.OT(b),mCa(this.Oq,this.slot,b.bb())):XFa(this,a)};
g.k.iy=function(a,b){LFa(this,a,b);var c=this.Ef();c?MFa(c,a,b)&&YFa(this,"skipped"):ZFa(this,"onSkipRequested")};
g.k.rL=function(a,b){var c;a:{if(c=this.Ef()){if(NFa(this),OFa(c,a,b)&&(a=PFa(this,c,a,b),a!==void 0)){c={j7:c,Mea:this.Jg[a]};break a}}else ZFa(this,"SkipWithAdPodSkip");c=void 0}if(a=c)c=a.j7,a=a.Mea,c.Jd(c.bb(),"skipped"),a=a.bb().layoutId,this.Gc.get().finishSegmentByCpn(c.bb().layoutId,a)};
g.k.t0=function(){wF("Not used in html5_ssap_fix_layout_exit")};
g.k.Eg=function(a){var b;(b=this.Ef())==null||b.Eg(a)};
g.k.gK=function(){wF("Not used in html5_ssap_fix_layout_exit")};
g.k.gC=function(a,b,c){var d;if(((d=this.Ef())==null?void 0:d.bb().layoutId)!==b.layoutId)return void wF("requestToExitSubLayout: wrong layout");YFa(this,c)};g.x(aGa,g.I);g.k=aGa.prototype;g.k.dc=function(){return this.Kd.dc()};
g.k.bb=function(){return this.Kd.bb()};
g.k.init=function(){var a=jI(this.bb().Ca,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.tx()};
g.k.tx=function(){this.Kd.init()};
g.k.release=function(){var a=jI(this.bb().Ca,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.By()};
g.k.By=function(){this.Kd.release()};
g.k.Fs=function(){this.Kd.Fs()};
g.k.Is=function(){this.Kd.Is()};
g.k.iy=function(a,b){wF("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.dc(),this.bb(),{requestingSlot:a,requestingLayout:b})};
g.k.startRendering=function(a){a.layoutId!==this.bb().layoutId?this.callback.wf(this.dc(),a,new gI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.bb().layoutId+("and LayoutType: "+this.bb().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ia.get().addListener(this),qI(this.vc(),this),i1(this.Ba.get())&&d1(this.zc.get()),Iib(this.Ba.get())||ljb(this.Ia.get()),i1(this.Ba.get())||d1(this.zc.get()),this.Us(a))};
g.k.Us=function(a){this.Kd.startRendering(a)};
g.k.Jd=function(a,b){this.sx=!0;this.uM(a,b);this.Ia.get().J.Cy();ujb(this.kd.get(),{});a=l1(this.Ia.get(),1);a.isPaused()&&!g.yF(a,2)&&this.Ia.get().playVideo();this.Ia.get().removeListener(this);this.sx&&this.eR()};
g.k.uM=function(a,b){this.Kd.Jd(a,b)};
g.k.wc=function(a,b){this.Kd.wc(a,b)};
g.k.Nc=function(a,b,c){b.layoutId===this.bb().layoutId&&(this.sx=!1,rI(this.vc(),this));this.Kd.Nc(a,b,c);b.layoutId===this.bb().layoutId&&TFa(this.zc.get())};
g.k.eR=function(){this.Kd.jx()};
g.k.Ni=function(a){this.Kd.Ni(a)};
g.k.Eg=function(a){if(a.state.isError()){var b,c;this.gK((b=a.state.hh)==null?void 0:b.errorCode,new gI("There was a player error during this media layout.",{playerErrorCode:(c=a.state.hh)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Kd.Eg(a)};
g.k.gK=function(a,b,c){this.Kd.dL(a,b,c)};
g.k.onFullscreenToggled=function(a){this.Kd.onFullscreenToggled(a)};
g.k.rh=function(a){this.Kd.rh(a)};
g.k.dj=function(a){this.Kd.dj(a)};
g.k.onVolumeChange=function(){this.Kd.onVolumeChange()};
g.k.Gj=function(){};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.Oh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.Vg=function(){};
g.k.Fj=function(){};
g.k.Ij=function(){};g.k=eL.prototype;g.k.dc=function(){return this.slot};
g.k.bb=function(){return this.layout};
g.k.init=function(){this.Bf.get().addListener(this);this.Ia.get().addListener(this);this.tx();var a=jI(this.layout.Ca,"metadata_type_layout_enter_ms"),b=jI(this.layout.Ca,"metadata_type_layout_exit_ms"),c,d=(c=this.Ta.get().Ow)==null?void 0:c.clientPlaybackNonce;c=this.layout.Xb.adClientDataEntry;fL(this.Pa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.Bf.get();e=cGa(e.C,a,b);e!==null&&(fL(this.Pa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.Gc.get().Kz(e,b))};
g.k.release=function(){this.By();this.Bf.get().removeListener(this);this.Ia.get().removeListener(this)};
g.k.startRendering=function(){this.Us();this.callback.wc(this.slot,this.layout)};
g.k.Jd=function(a,b){this.uM(b);this.driftRecoveryMs!==null&&(eGa(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(dGa(this)-jI(this.layout.Ca,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Ia.get().J.Mr()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.Nc(this.slot,this.layout,b)};
g.k.Y_=function(){return!1};
g.k.U_=function(a){var b=jI(this.layout.Ca,"metadata_type_layout_enter_ms"),c=jI(this.layout.Ca,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;fL(this.Pa.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:(d=this.Ta.get().Ow)==null?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.Xb.adClientDataEntry}});this.Gc.get().Kz(a,c)}};
g.k.Ni=function(a){this.K_(a);a=t1(this.Ia.get(),2,!0);if(TJa(this.D.get(),this.layout.layoutId)){var b=jI(this.layout.Ca,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(c===null||a*1E3<b+c)){this.driftRecoveryMs=null;var d=dGa(this),e=this.Ia.get().J.Mr(),f=Math.min(a+e,d/1E3);f<=a?eGa(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(e*1E3).toString()}):(eGa(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),
driftFromHeadMs:Math.round(e*1E3).toString(),appliedDriftRecoveryMs:Math.round(a*1E3-b).toString(),destinationMs:Math.round(f*1E3-b).toString()}),this.Ia.get().J.seekTo(f,void 0,void 0,1))}}};
g.k.rh=function(){};
g.k.Gj=function(){};
g.k.dj=function(){};
g.k.onVolumeChange=function(){};
g.k.Fj=function(){};
g.k.Ij=function(){};g.x(fGa,eL);g.k=fGa.prototype;g.k.tx=function(){this.Ta.get().addListener(this);this.C.forEach(function(a){a.init()});
this.B!=null&&gL(this.Pa.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
g.k.By=function(){this.Ta.get().removeListener(this);this.j=null;this.C.forEach(function(a){a.release()})};
g.k.Us=function(){if(this.j)wF("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=(a=this.Ta.get().Ow)==null?void 0:a.layoutId;hGa(this,b)}};
g.k.uM=function(a){var b,c,d,e;(d=this.j)==null||(e=d.xm)==null||e.Jd((b=this.j)==null?void 0:(c=b.xm)==null?void 0:c.bb(),a);this.j=null};
g.k.pL=function(a){var b=a.videoId;a=a.layoutId;if(b==="nPpU29QrbiU"){var c,d;gL(this.Pa.get(),"ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.B+";slrs."+!!this.j+";slrslid."+((c=this.j)==null?void 0:(d=c.xm)==null?void 0:d.bb().layoutId))}if(this.j){var e;if(((e=this.j.xm)==null?void 0:e.bb().layoutId)===a)wF("Unexpected transition into the same layout ID",this.slot,this.layout,{layoutId:a});else{var f,h;(h=this.j.xm)==null||h.Jd((f=this.j.xm)==null?void 0:f.bb(),"normal");
hGa(this,a)}}else wF("Unexpected playback transition when no subLRA is rendering",this.slot,this.layout,{layoutId:a})};
g.k.oG=function(){};
g.k.nG=function(){};
g.k.K_=function(){};
g.k.Eg=function(){};
g.k.onFullscreenToggled=function(){};g.k=vGa.prototype;g.k.dc=function(){return this.slot};
g.k.bb=function(){return this.layout};
g.k.mA=function(){wF("Should not get exitStateMachine for DAI");return new qEa};
g.k.init=function(){var a=this;jI(this.layout.Ca,"metadata_type_player_bytes_callback_ref").current=this;this.qd=iGa(this.slot,this.layout,jI(this.layout.Ca,"metadata_type_player_vars"),jI(this.layout.Ca,"metadata_type_layout_enter_ms"),jI(this.layout.Ca,"metadata_type_layout_exit_ms"),jI(this.layout.Ca,"metadata_type_video_length_seconds")*1E3,this.Gc.get(),this.Vs.get(),function(){var d=Object,e=d.assign,f=yGa(a.layout);var h=jI(a.slot.Ca,"metadata_type_fulfilled_layout");h=Object.assign({},yGa(h),
{adPlacementConfig:jI(h.Ca,"metadata_type_ad_placement_config"),subLayouts:jI(h.Ca,"metadata_type_sub_layouts").map(yGa)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:h,hasSurveyOverlay:dI(a.layout.Ca,"metadata_type_survey_overlay"),surveyOverlay:jI(a.layout.Ca,"metadata_type_survey_overlay")})},this.Pa.get());
this.Ia.get().addListener(this);var b=jI(this.layout.Ca,"metadata_type_video_length_seconds"),c=jI(this.layout.Ca,"metadata_type_active_view_traffic_type");fJ(this.layout.Db)&&m1(this.yb.get(),this.layout.layoutId,{At:c,ZH:b,listener:this});jCa(this.callback,this.slot,this.layout);kCa(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Ia.get().removeListener(this);fJ(this.layout.Db)&&n1(this.yb.get(),this.layout.layoutId);this.Ba.get();lCa(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;dI(this.layout.Ca,"metadata_type_survey_overlay")&&gL(this.Pa.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.lc)wF("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:dI(this.layout.Ca,"metadata_type_survey_overlay"),surveyOverlay:jI(this.layout.Ca,"metadata_type_survey_overlay")});else{this.lc={Ho:null,pH:!1};if(Gib(this.Ba.get())){var b;this.adCpn=(b=this.Ta.get().Fe(2))==null?void 0:b.clientPlaybackNonce}this.Ba.get().J.U().experiments.gb("html5_disable_sodar_for_tvhtml5")||
jGa(this.slot,this.layout,this.lf.get());this.fb.Zb("start");if(wM(this.Ba.get())){b=l1(this.Ia.get());var c=jI(this.layout.Ca,"metadata_type_video_length_seconds"),d=t1(this.Ia.get(),2,!1);lGa(this.fb,this.lc.Ho,b,c,d,function(){return void xGa(a,"teois")})}mCa(this.callback,this.slot,this.layout);
dI(this.layout.Ca,"metadata_type_survey_overlay")&&gL(this.Pa.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.Jd=function(a,b){var c=this;if(this.lc){if(wM(this.Ba.get()))if(this.qd===null)wF("Unexpected media sub layout exited without a timeline playback ID");else{a=jI(this.layout.Ca,"metadata_type_video_length_seconds");var d=jjb(this.Ia.get(),this.qd);Gib(this.Ba.get())&&this.adCpn===void 0&&wF("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:jI(this.layout.Ca,"metadata_type_content_cpn")});pDa(this.fb,d,this.adCpn);mGa(this.fb,null,this.lc.Ho,a,d,function(e){return void wGa(c,
e,"fue")},Gib(this.Ba.get()))}this.lc=null;
nCa(this.callback,this.slot,this.layout,b)}else wF("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.dL=function(){};
g.k.jx=function(){};
g.k.Ni=function(a){var b=this;if(this.lc){if(mJ(this.fb,"impression")){var c=l1(this.Ia.get()),d=jI(this.layout.Ca,"metadata_type_video_length_seconds");nGa(this.fb,c,a,this.lc.Ho,d,function(e){return void wGa(b,e,"tpaqe")})}this.lc.Ho=a}};
g.k.Eg=function(a){var b=this;if(this.lc){wM(this.Ba.get())||this.lc.pH||(this.lc.pH=!0,a=new g.xF(a.state,new g.AK));var c=jI(this.layout.Ca,"metadata_type_video_length_seconds"),d=t1(this.Ia.get(),2,!1);kGa(this.fb,this.lc.Ho,a,c,d,!wM(this.Ba.get()),function(){return void xGa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){oGa(this.fb,a)};
g.k.rh=function(){};
g.k.Gj=function(){};
g.k.dj=function(){};
g.k.iy=function(a,b){var c;a=this.Pa.get();var d="ti."+mJ(this.fb,"impression")+";ts."+mJ(this.fb,"skip")+";hp.",e;var f=!((e=this.fb.C.get("skip"))==null||!e.length);gL(a,"ads_dsr",d+f+";cpn."+jI(this.layout.Ca,"metadata_type_content_cpn")+";acpn."+((c=this.Ta.get().Fe(2))==null?void 0:c.clientPlaybackNonce)+";sl."+(jI(b.Ca,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));mJ(this.fb,"impression")&&this.fb.Zb("skip");b=this.Ta.get().Fe(1).Rm&&this.Ba.get().J.U().experiments.gb("html5_lifa_skip_to_content");
this.Gc.get().Ss(b)||wF("Unexpected failure to skip a server stitched ad",this.slot,this.layout)};
g.k.onVolumeChange=function(){};
g.k.wc=function(){};
g.k.Nc=function(){};
g.k.Fs=function(){};
g.k.Is=function(){};
g.k.YL=function(){pGa(this.fb)};
g.k.Wx=function(){qGa(this.fb)};
g.k.Vx=function(){rGa(this.fb)};
g.k.Xx=function(){sGa(this.fb)};
g.k.Tx=function(){tGa(this.fb)};
g.k.Ux=function(){uGa(this.fb)};
g.k.Fj=function(){};
g.k.Ij=function(){};g.x(zGa,eL);g.k=zGa.prototype;
g.k.tx=function(){var a=this;jI(this.layout.Ca,"metadata_type_player_bytes_callback_ref").current=this;var b=jI(this.layout.Ca,"metadata_type_layout_enter_ms"),c=jI(this.layout.Ca,"metadata_type_layout_exit_ms");this.qd=iGa(this.slot,this.layout,jI(this.layout.Ca,"metadata_type_player_vars"),b,c,jI(this.layout.Ca,"metadata_type_video_length_seconds")*1E3,this.Gc.get(),this.Vs.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:jI(a.layout.Ca,"metadata_type_ad_placement_config")}},
this.Pa.get());
var d=jI(this.layout.Ca,"metadata_type_video_length_seconds"),e=jI(this.layout.Ca,"metadata_type_active_view_traffic_type");fJ(this.layout.Db)&&m1(this.yb.get(),this.layout.layoutId,{At:e,ZH:d,listener:this})};
g.k.By=function(){fJ(this.layout.Db)&&n1(this.yb.get(),this.layout.layoutId)};
g.k.Us=function(){var a=this;if(this.lc)wF("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.lc={Ho:null,pH:!1},jGa(this.slot,this.layout,this.lf.get()),this.fb.Zb("start"),wM(this.Ba.get())){var b=l1(this.Ia.get()),c=jI(this.layout.Ca,"metadata_type_video_length_seconds"),d=t1(this.Ia.get(),2,!1);lGa(this.fb,this.lc.Ho,b,c,d,function(){return void AGa(a,"teois")})}};
g.k.uM=function(){var a=this;if(this.lc){if(wM(this.Ba.get()))if(this.qd===null)wF("Unexpected single media layout exited without a timeline playback ID");else{var b=jI(this.layout.Ca,"metadata_type_video_length_seconds"),c=jjb(this.Ia.get(),this.qd);pDa(this.fb,c);mGa(this.fb,null,this.lc.Ho,b,c,function(d){return void BGa(a,d,"fue")})}this.lc=null}else wF("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.K_=function(a){var b=this;if(this.lc){if(mJ(this.fb,"impression")){var c=l1(this.Ia.get()),d=jI(this.layout.Ca,"metadata_type_video_length_seconds");nGa(this.fb,c,a,this.lc.Ho,d,function(e){return void BGa(b,e,"tpaqe")})}this.lc.Ho=a}};
g.k.Eg=function(a){var b=this;if(this.lc){wM(this.Ba.get())||this.lc.pH||(this.lc.pH=!0,a=new g.xF(a.state,new g.AK));var c=jI(this.layout.Ca,"metadata_type_video_length_seconds"),d=t1(this.Ia.get(),2,!1);kGa(this.fb,this.lc.Ho,a,c,d,!wM(this.Ba.get()),function(){return void AGa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){oGa(this.fb,a)};
g.k.YL=function(){pGa(this.fb)};
g.k.Wx=function(){qGa(this.fb)};
g.k.Vx=function(){rGa(this.fb)};
g.k.Xx=function(){sGa(this.fb)};
g.k.Tx=function(){tGa(this.fb)};
g.k.Ux=function(){uGa(this.fb)};CGa.prototype.build=function(a,b,c,d){if(dI(c.Ca,"metadata_type_dai")){var e=jI(d.Ca,"metadata_type_ad_placement_config");qJ(d,{Md:"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(" "),Je:["LAYOUT_TYPE_MEDIA"]})&&e!==void 0?(e=new iJ(d.Db,this.Pa,e,d.layoutId,null),e=new zGa(a,c,d,this.Ta,this.Gc,this.Vs,this.Bf,this.Ia,e,this.Pa,this.lf,this.j,this.yb,this.Ba)):
e=null;if(e)return e;a:{var f=jI(d.Ca,"metadata_type_sub_layouts"),h=jI(d.Ca,"metadata_type_ad_placement_config");if(qJ(d,{Md:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Je:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&f!==void 0&&h!==void 0){e=[];f=g.v(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=jI(l.Ca,"metadata_type_media_sub_layout_index");if(!qJ(l,{Md:"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(" "),
Je:["LAYOUT_TYPE_MEDIA"]})||m===void 0){a=null;break a}m=new iJ(l.Db,this.Pa,h,l.layoutId,m);e.push(new vGa(b,c,l,this.Gc,m,this.Ia,this.Vs,this.yb,this.lf,this.Ba,this.Pa,this.Ta))}b=new iJ(d.Db,this.Pa,h,d.layoutId);a=new fGa(a,c,d,this.Ta,this.Gc,this.Bf,this.Ia,b,this.Pa,this.j,e)}else a=null}if(a)return a}else if(a=bGa(a,b,c,d,this.vc,this.Yd,this.wi,this.Pa,this.yb,this.lf,this.kd,this.Ta,this.Ia,this.Qc,this.zc,this.md,this.Mb,this.ag,this.Ba,this.Gc,this.context,this.Ug))return a;throw new gI("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+kI(d.Ca)+" in PlayerBytesLayoutRenderingAdapterFactory.");};iL.prototype.build=function(a,b,c,d){if(a=bGa(a,b,c,d,this.vc,this.Yd,this.wi,this.Pa,this.yb,this.lf,this.kd,this.Ta,this.Ia,this.Qc,this.zc,this.md,this.Mb,this.ag,this.Ba,this.Gc,this.context,this.Ug))return a;throw new gI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kI(d.Ca)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.x(DGa,FE);g.x(jL,bJ);jL.prototype.startRendering=function(a){var b=cJ(this.fb),c={adsClientData:this.layout.Xb};this.j.push(new DGa(jI(this.layout.Ca,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.bb().layoutId,c));bJ.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a)};
jL.prototype.pg=function(a,b){b!==this.layout.layoutId||a!=="survey-interstitial"&&a!=="button"||((a=jI(this.layout.Ca,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.iy(this.slot,this.layout):wF("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
jL.prototype.ya=function(){bJ.prototype.ya.call(this)};var EGa=new g.Me(320,63);g.x(HGa,FE);g.x(mL,bJ);g.k=mL.prototype;g.k.Ni=function(){};
g.k.Eg=function(){};
g.k.onFullscreenToggled=function(){};
g.k.rh=function(a){a&&KM(this.D,this.layout)};
g.k.Gj=function(){};
g.k.dj=function(a){var b=lL(this.layout);if(this.N=FGa(a,kjb(this.Ia.get())))b.onErrorCommand&&this.Mb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),KM(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Xw=function(){return this.bb().layoutId};
g.k.wP=function(){return this.N};
g.k.pg=function(a){this.G.pg(a);a==="in_video_overlay_close_button"&&KM(this.D,this.layout)};
g.k.eK=function(a){a==="invideo-overlay"&&KM(this.D,this.layout)};
g.k.rq=function(){this.G.rq()};
g.k.startRendering=function(a){bJ.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a);this.K.zt=this};
g.k.Jd=function(a,b){bJ.prototype.Jd.call(this,a,b);Z1(this.K,this)};
g.k.init=function(){bJ.prototype.init.call(this);ajb(this.Pa.get(),this);this.Ia.get().addListener(this);this.j.push(new HGa(lL(this.layout),cJ(this.fb),this.layout.layoutId,{adsClientData:this.layout.Xb}))};
g.k.release=function(){bJ.prototype.release.call(this);this.Ia.get().removeListener(this);bjb(this.Pa.get(),this)};
g.k.Fj=function(){};
g.k.Ij=function(){};g.x(nL,bJ);g.k=nL.prototype;g.k.init=function(){bJ.prototype.init.call(this);ajb(this.Pa.get(),this);this.Ia.get().addListener(this);this.j.push(new HGa(lL(this.layout),cJ(this.fb),this.layout.layoutId,{adsClientData:this.layout.Xb}))};
g.k.rq=function(){this.G.rq()};
g.k.startRendering=function(a){bJ.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a);this.K.zt=this};
g.k.Jd=function(a,b){bJ.prototype.Jd.call(this,a,b);Z1(this.K,this)};
g.k.pg=function(a){this.G.pg(a);a==="in_video_overlay_close_button"&&KM(this.D,this.layout)};
g.k.fQ=function(a){if(a==="invideo-overlay"){a=dKa(this.Z,this.layout);a=g.v(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.eK=function(a){a==="invideo-overlay"&&KM(this.D,this.layout)};
g.k.eQ=function(a){if(a==="invideo-overlay"){a=dKa(this.Z,this.layout);a=g.v(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Ni=function(){};
g.k.Eg=function(){};
g.k.onFullscreenToggled=function(){};
g.k.rh=function(a){a&&KM(this.D,this.layout)};
g.k.Gj=function(){};
g.k.dj=function(a){var b=lL(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=kjb(this.Ia.get());a:{c=c.image;c=c===void 0?null:c;if(c!=null&&(c=c.thumbnail,c!=null&&c.thumbnails!=null&&c.thumbnails.length!=0&&c.thumbnails[0].width!=null&&c.thumbnails[0].height!=null)){c=new g.Me(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Me(0,0)}if(this.N=FGa(a,d,c))b.onErrorCommand&&this.Mb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),KM(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Xw=function(){return this.bb().layoutId};
g.k.wP=function(){return this.N};
g.k.release=function(){bJ.prototype.release.call(this);this.Ia.get().removeListener(this);bjb(this.Pa.get(),this)};
g.k.Fj=function(){};
g.k.Ij=function(){};oL.prototype.pg=function(a){a==="ad-info-hover-text-button"&&((this.j=this.Ia.get().Eo(1))||this.Ia.get().pauseVideo())};
oL.prototype.rq=function(){this.j||this.Ia.get().resumeVideo(1)};g.x(KGa,FE);g.x(LGa,bJ);g.k=LGa.prototype;g.k.init=function(){bJ.prototype.init.call(this);this.Ia.get().addListener(this)};
g.k.startRendering=function(a){var b=jI(this.layout.Ca,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new KGa(b,this.layout.layoutId,{adsClientData:this.layout.Xb}));bJ.prototype.startRendering.call(this,a);this.callback.wc(this.slot,a)};
g.k.wc=function(){};
g.k.pg=function(a,b){b!==this.layout.layoutId||a!=="ad-info-icon-button"&&a!=="ad-info-dialog-close-button"||((b=jI(this.layout.Ca,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a==="ad-info-icon-button"?b.Fs(this.slot,this.layout):a==="ad-info-dialog-close-button"&&b.Is(this.slot,this.layout):wF("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.dj=function(a){a.width<450&&KM(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Ni=function(){};
g.k.onFullscreenToggled=function(){};
g.k.rh=function(){};
g.k.Gj=function(){};
g.k.Eg=function(){};
g.k.Fj=function(){};
g.k.Ij=function(){};
g.k.ya=function(){bJ.prototype.ya.call(this)};
g.k.release=function(){bJ.prototype.release.call(this);this.Ia.get().removeListener(this)};MGa.prototype.build=function(a,b,c,d){if(b=yJ(a,c,d,this.Dc,this.Ia,this.Pa,this.D,this.j,this.Ba))return b;if(qJ(d,JGa()))return new nL(c,d,this.Pa,this.yb,this.Dc,a,this.B,this.C,this.Ia,this.Mb,this.Ba,this.j,new oL(this.Ia));if(qJ(d,IGa()))return new mL(c,d,this.Pa,this.yb,this.Dc,a,this.B,this.Ia,this.Mb,this.Ba,this.j,new oL(this.Ia));if(qJ(d,{Md:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Je:["LAYOUT_TYPE_SURVEY"]}))return new LGa(c,d,a,this.Dc,this.B,this.Ia,this.Ba);if(qJ(d,
{Md:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Je:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new jL(c,d,a,this.Dc,this.Pa);if(qJ(d,kEa()))return new vJ(c,d,a,this.Dc,this.Ia,this.Ba);throw new gI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kI(d.Ca)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};NGa.prototype.build=function(a,b,c,d){if(b=yJ(a,c,d,this.Dc,this.Ia,this.Pa,this.D,this.j,this.Ba))return b;if(qJ(d,JGa()))return new nL(c,d,this.Pa,this.yb,this.Dc,a,this.B,this.C,this.Ia,this.Mb,this.Ba,this.j,new oL(this.Ia));if(qJ(d,IGa()))return new mL(c,d,this.Pa,this.yb,this.Dc,a,this.B,this.Ia,this.Mb,this.Ba,this.j,new oL(this.Ia));throw new gI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kI(d.Ca)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.x(pL,uJ);pL.prototype.startRendering=function(a){uJ.prototype.startRendering.call(this,a);if(a.renderingContent?dEa(a,this.Ta.get().Fe(2)||void 0):jI(this.layout.Ca,"metadata_ad_video_is_listed"))a=a.renderingContent?cEa(a,this.Ta.get().Fe(2)||void 0):jI(this.layout.Ca,"metadata_type_ad_info_ad_metadata"),this.In.get().J.jb("onAdMetadataAvailable",a)};PGa.prototype.build=function(a,b,c,d){if(qJ(d,OGa())||d.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.V(d.renderingContent,wJ)!==void 0)return new pL(a,c,d,this.Dc,this.Ia,this.Pa,this.B,this.In,this.j,this.Ta);throw new gI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kI(d.Ca)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};QGa.prototype.build=function(a,b,c,d){if(qJ(d,OGa()))return new pL(a,c,d,this.Dc,this.Ia,this.Pa,this.B,this.In,this.j,this.Ta);if(a=yJ(a,c,d,this.Dc,this.Ia,this.Pa,this.B,this.j,this.Ba))return a;throw new gI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+kI(d.Ca)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};EL.prototype.clone=function(a){var b=this;return new EL(function(){return b.triggerId},a)};FL.prototype.clone=function(a){var b=this;return new FL(function(){return b.triggerId},a)};GL.prototype.clone=function(a){var b=this;return new GL(function(){return b.triggerId},a)};HL.prototype.clone=function(a){var b=this;return new HL(function(){return b.triggerId},a)};IL.prototype.clone=function(a){var b=this;return new IL(function(){return b.triggerId},a)};JL.prototype.clone=function(a){var b=this;return new JL(function(){return b.triggerId},a)};g.x(eM,g.I);var tIa={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Xc:[],layoutExitUserInputSubmittedTriggers:[]};var XIa={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 xR={gTa:1,hTa:2,iTa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.x(vM,g.I);g.k=vM.prototype;g.k.Y_=function(a){if(!this.j){var b;(b=this.Gc)==null||b.get().Yu(a.identifier);return!1}MJa(this,this.j,a);return!0};
g.k.U_=function(){};
g.k.Fk=function(a){this.j&&this.j.contentCpn!==a&&(wF("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.k.Mo=function(a){this.j&&this.j.contentCpn!==a&&wF("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.ya=function(){g.I.prototype.ya.call(this);this.j=null};var F1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],Hpb=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.x(yM,g.I);g.k=yM.prototype;g.k.wc=function(a,b){var c=this;if(b.layoutType==="LAYOUT_TYPE_MEDIA"&&(eI(b,this.K)||eI(b,Hpb))){var d=this.Ta.get().Fe(2),e=this.D(b,d||void 0);e?ZI(this.C.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[fIa(c.j.get(),e.contentCpn,e.Rq,function(h){return c.G(h.slotId,"core",e,nI(c.Oe.get(),h))},e.inPlayerSlotId)];
e.instreamAdPlayerUnderlayRenderer&&gIa(c.Ba.get())&&f.push(SJa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):wF("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.xf=function(){};
g.k.Oh=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.Vg=function(){};
g.k.Nc=function(){};g.x(zM,g.I);zM.prototype.Fk=function(a,b,c,d,e,f,h){var l=this,m=this.Ta.get().Fe(1);!Fib(this.Ba.get())&&m.Hp?s1(this.Ia.get()):(Bib(this.zc.get(),d),ZI(this.B.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return HHa(l.j.get(),d,e,f,a,b,h,m,"")}),xkb(this.C))};
zM.prototype.Mo=function(){};g.x(AM,g.I);g.x(BM,g.I);BM.prototype.onCueRangeEnter=function(){};
BM.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.Qc.get().removeCueRange(a),ZI(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=$I(d.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,slotEntryTrigger:c.slotEntryTrigger?mKa(c.slotId,d,c.slotEntryTrigger):void 0,slotFulfillmentTriggers:nKa(c.slotId,d,c.slotFulfillmentTriggers),slotExpirationTriggers:nKa(c.slotId,d,c.slotExpirationTriggers)})]},
c.slotId))};
BM.prototype.Fk=function(){for(var a=g.v(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.Qc.get().removeCueRange(b);this.j.clear()};
BM.prototype.Mo=function(){};g.x(DM,g.I);g.k=DM.prototype;g.k.Wg=function(){};
g.k.Rh=function(a){var b=this;g.OB(g.QB(),function(){var c=b.j.get(a);c&&wF("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.ra(c)).map(function(d){return d.layoutType})})},0)};
g.k.xf=function(){};
g.k.Oh=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.k.rg=function(a,b){this.jj.has(a)&&this.jj.get(a)===b&&wF("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),c.size===0&&this.j.delete(a)):wF("Trying to unscheduled a Layout that was not scheduled.",a,b)}else wF("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.wc=function(a,b){this.jj.set(a,b)};
g.k.Nc=function(a){this.jj.delete(a)};
g.k.Vg=function(){};g.k=WJa.prototype;g.k.init=function(){};
g.k.dc=function(){return this.slot};
g.k.xJ=function(){this.callback.xf(this.slot)};
g.k.zJ=function(){this.callback.yf(this.slot)};
g.k.release=function(){};EM.prototype.build=function(a,b){return new WJa(a,b)};g.k=XJa.prototype;g.k.init=function(){};
g.k.dc=function(){return this.slot};
g.k.xJ=function(){u1(this.Ia.get(),"ad-showing");this.callback.xf(this.slot)};
g.k.zJ=function(){this.callback.yf(this.slot);v1(this.Ia.get(),"ad-showing")};
g.k.release=function(){};g.k=YJa.prototype;g.k.init=function(){};
g.k.dc=function(){return this.slot};
g.k.xJ=function(){u1(this.Ia.get(),"ad-showing");u1(this.Ia.get(),"ad-interrupting");this.B=this.Ia.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.xf(this.slot)};
g.k.zJ=function(){v1(this.Ia.get(),"ad-showing");v1(this.Ia.get(),"ad-interrupting");var a=this.B?Infinity:t1(this.Ia.get(),1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ia.get().J.seekTo(a,void 0,void 0,1);this.callback.yf(this.slot)};
g.k.release=function(){};g.k=ZJa.prototype;g.k.init=function(){};
g.k.dc=function(){return this.slot};
g.k.xJ=function(){u1(this.Ia.get(),"ad-showing");u1(this.Ia.get(),"ad-interrupting");this.callback.xf(this.slot)};
g.k.zJ=function(){s1(this.Ia.get());v1(this.Ia.get(),"ad-showing");v1(this.Ia.get(),"ad-interrupting");this.callback.yf(this.slot)};
g.k.release=function(){s1(this.Ia.get())};FM.prototype.build=function(a,b){if(lI(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new XJa(a,b,this.Ia);if(b.slotEntryTrigger instanceof zL&&lI(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new YJa(a,b,this.Ia);if(lI(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new ZJa(a,b,this.Ia);throw new hI("Unsupported slot with type "+b.slotType+" and client metadata: "+(kI(b.Ca)+" in PlayerBytesSlotAdapterFactory."));};g.x(GM,g.I);GM.prototype.j=function(a){for(var b=[],c=g.v(this.Vb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof DL&&d.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"&&e.triggeringLayoutId===a&&b.push(d)}b.length?AI(this.tN(),b):wF("Mute requested but no registered triggers can be activated.")};g.x(HM,GM);g.k=HM.prototype;g.k.pg=function(a,b){if(b)if(a==="skip-button"){a=[];for(var c=g.v(this.Vb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof DL&&d.category==="TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"&&e.triggeringLayoutId===b&&a.push(d)}a.length&&AI(this.tN(),a)}else rM(this.Ba.get(),"supports_multi_step_on_desktop")?a==="ad-action-submit-survey"&&$Ja(this,b):a==="survey-submit"?$Ja(this,b):a==="survey-single-select-answer-button"&&$Ja(this,b)};
g.k.hQ=function(a){GM.prototype.j.call(this,a)};
g.k.Ml=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new hI("Tried to register duplicate trigger for slot.");if(!(b instanceof KL||b instanceof DL))throw new hI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Vb.set(b.triggerId,new ML(a,b,c,d))};
g.k.Sl=function(a){this.Vb.delete(a.triggerId)};
g.k.fQ=function(){};
g.k.eQ=function(){};
g.k.eK=function(){};g.x(IM,g.I);g.k=IM.prototype;
g.k.Ml=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new hI("Tried to register duplicate trigger for slot.");if(!(b instanceof EL||b instanceof FL||b instanceof GL||b instanceof HL||b instanceof IL||b instanceof JL||b instanceof YGa||b instanceof wL||b instanceof yL||b instanceof xL||b instanceof AL||b instanceof vL))throw new hI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new ML(a,b,c,d);this.Vb.set(b.triggerId,a);b instanceof
IL&&this.G.has(b.triggeringSlotId)&&AI(this.j(),[a]);b instanceof EL&&this.C.has(b.triggeringSlotId)&&AI(this.j(),[a]);b instanceof wL&&this.B.has(b.triggeringLayoutId)&&AI(this.j(),[a])};
g.k.Sl=function(a){this.Vb.delete(a.triggerId)};
g.k.Wg=function(a){this.G.add(a.slotId);for(var b=[],c=g.v(this.Vb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof IL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&AI(this.j(),b)};
g.k.Rh=function(a){this.G.delete(a.slotId);for(var b=[],c=g.v(this.Vb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof JL&&e.triggeringSlotId===a.slotId&&b.push(d)}b.length>0&&AI(this.j(),b)};
g.k.Oh=function(a){for(var b=[],c=g.v(this.Vb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof YGa&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}b.length>0&&AI(this.j(),b)};
g.k.xf=function(a){this.C.add(a.slotId);for(var b=[],c=g.v(this.Vb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof EL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&AI(this.j(),b)};
g.k.yf=function(a){this.C.delete(a.slotId);this.D.add(a.slotId);for(var b=[],c=g.v(this.Vb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof FL)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof vL){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.triggeringLayoutId)&&b.push(d)}b.length>0&&AI(this.j(),b)};
g.k.Ph=function(a){for(var b=[],c=g.v(this.Vb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof GL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&AI(this.j(),b)};
g.k.Qh=function(a){for(var b=[],c=g.v(this.Vb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof HL&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);b.length>0&&AI(this.j(),b)};
g.k.qh=function(a,b){this.K.add(b.layoutId)};
g.k.rg=function(a,b){this.K.delete(b.layoutId)};
g.k.wc=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.v(this.Vb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof wL)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof AL){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof vL&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.D.has(f.slotId)&&c.push(e));c.length>0&&AI(this.j(),c)};
g.k.Nc=function(a,b,c){this.B.delete(b.layoutId);a=[];for(var d=g.v(this.Vb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof yL&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof xL){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}a.length>0&&AI(this.j(),a)};
g.k.Vg=function(){};
g.k.Fk=function(){this.D.clear()};
g.k.Mo=function(){};g.x(JM,g.I);JM.prototype.Ml=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new hI("Tried to register duplicate trigger for slot.");if(!(b instanceof tL))throw new hI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Vb.set(b.triggerId,new ML(a,b,c,d))};
JM.prototype.Sl=function(a){this.Vb.delete(a.triggerId)};g.x(LM,g.I);LM.prototype.Ml=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new hI("Tried to register duplicate trigger for slot.");if(!(b instanceof sL||b instanceof CL))throw new hI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Vb.set(b.triggerId,new ML(a,b,c,d))};
LM.prototype.Sl=function(a){this.Vb.delete(a.triggerId)};
LM.prototype.Fk=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.v(this.Vb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof sL&&l.trigger.Iv===a&&f.push(l);e.call(d,b,g.ra(f));if(!Fib(this.context.Ba.get())){d=b.push;e=d.apply;f=[];h=g.v(this.Vb.values());for(l=h.next();!l.done;l=h.next())if(l=l.value,l.trigger instanceof CL){var m=l.trigger.j===a;m?c&&m&&(wF("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:a}),
f.push(l)):f.push(l)}e.call(d,b,g.ra(f))}b.length&&AI(this.j(),b)};
LM.prototype.Mo=function(a){for(var b=[],c=b.push,d=c.apply,e=[],f=g.v(this.Vb.values()),h=f.next();!h.done;h=f.next()){h=h.value;var l=h.trigger;l instanceof CL&&l.j===a&&e.push(h)}d.call(c,b,g.ra(e));b.length&&AI(this.j(),b)};g.x(MM,g.I);g.k=MM.prototype;g.k.Ml=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new hI("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof zL)aKa(this,a,b,c,d,e,b.j.start,b.j.end,b.Iv,b.visible);else if(b instanceof uL)aKa(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Iv,b.visible);else throw new hI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");};
g.k.Sl=function(a){var b=this.Vb.get(a.triggerId);b&&this.Qc.get().removeCueRange(b.kJ);this.Vb.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a){var b=bKa(this,a);if(b&&(b=this.Vb.get(b)))if(g.yF(l1(this.Ia.get()),32))this.j.add(b.kJ);else{var c=b==null?void 0:b.jE.trigger;if(c instanceof zL||c instanceof uL){if(CM(this.context.Ba.get())){var d=b.jE.slot,e=b.jE.layout,f={};this.context.Qp.Fl("cre",(f.ca=b.jE.category,f.tt=c.triggerType,f.st=d.slotType,f.lt=e==null?void 0:e.layoutType,f.cid=a,f))}AI(this.B(),[b.jE])}}};
g.k.onCueRangeExit=function(a){(a=bKa(this,a))&&(a=this.Vb.get(a))&&this.j.delete(a.kJ)};
g.k.Eg=function(a){if(zF(a,16)<0){a=g.v(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.Oh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.wc=function(){};
g.k.Nc=function(){};
g.k.Vg=function(){};
g.k.Ni=function(){};
g.k.onFullscreenToggled=function(){};
g.k.rh=function(){};
g.k.Gj=function(){};
g.k.dj=function(){};
g.k.onVolumeChange=function(){};
g.k.Fj=function(){};
g.k.Ij=function(){};g.x(NM,g.I);g.k=NM.prototype;
g.k.Ml=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new hI("Tried to re-register the trigger.");a=new ML(a,b,c,d);if(a.trigger instanceof UGa)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof TGa)this.C.set(a.trigger.triggerId,a);else throw new hI("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&AI(this.D(),[a])};
g.k.Sl=function(a){this.B.delete(a.triggerId);this.C.delete(a.triggerId)};
g.k.pL=function(a){a=a.slotId;if(this.j!==a){var b=[];this.j!=null&&b.push.apply(b,g.ra(cKa(this.C,this.j)));a!=null&&b.push.apply(b,g.ra(cKa(this.B,a)));this.j=a;b.length&&AI(this.D(),b)}};
g.k.oG=function(){};
g.k.nG=function(){};g.x(OM,g.I);g.k=OM.prototype;g.k.Ml=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new hI("Tried to register duplicate trigger for slot.");if(!(b instanceof BL))throw new hI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Vb.set(b.triggerId,new ML(a,b,c,d))};
g.k.Sl=function(a){this.Vb.delete(a.triggerId)};
g.k.wc=function(){};
g.k.Nc=function(){};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.Oh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.Vg=function(){};g.x(PM,g.I);g.k=PM.prototype;g.k.Vg=function(a,b){for(var c=[],d=g.v(this.Vb.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&&AI(this.j(),c)};
g.k.Ml=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new hI("Tried to register duplicate trigger for slot.");if(!(b instanceof JCa))throw new hI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Vb.set(b.triggerId,new ML(a,b,c,d))};
g.k.Sl=function(a){this.Vb.delete(a.triggerId)};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.Oh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.wc=function(){};
g.k.Nc=function(){};g.x(QM,g.I);g.k=QM.prototype;g.k.Ml=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new hI("Tried to register duplicate trigger for slot.");if(!(b instanceof LL))throw new hI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Vb.set(b.triggerId,new ML(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.Sl=function(a){this.Vb.delete(a.triggerId);if(!(a instanceof LL))throw new hI("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),b.size===0&&this.j.delete(a.triggeringLayoutId)};
g.k.Wg=function(){};
g.k.Rh=function(){};
g.k.Oh=function(){};
g.k.xf=function(){};
g.k.yf=function(){};
g.k.Ph=function(){};
g.k.Qh=function(){};
g.k.qh=function(){};
g.k.rg=function(){};
g.k.Vg=function(){};
g.k.wc=function(a,b){var c=this;if(this.j.has(b.layoutId)){a=this.j.get(b.layoutId);a=g.v(a);var d=a.next();for(b={};!d.done;b={FM:void 0},d=a.next())b.FM=d.value,d=new g.Dv(function(e){return function(){var f=c.Vb.get(e.FM.triggerId);AI(c.C(),[f])}}(b),b.FM.durationMs),d.start(),this.B.set(b.FM.triggerId,d)}};
g.k.Nc=function(){};g.x(RM,g.I);RM.prototype.Ml=function(a,b,c,d){if(this.Vb.has(b.triggerId))throw new hI("Tried to register duplicate trigger for slot.");if(!(b instanceof qL))throw new hI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Vb.set(b.triggerId,new ML(a,b,c,d))};
RM.prototype.Sl=function(a){this.Vb.delete(a.triggerId)};UM.prototype.Bu=function(a){return a.kind==="AD_PLACEMENT_KIND_START"};g.x(WM,g.I);g.k=WM.prototype;g.k.logEvent=function(a){this.ws(a)};
g.k.Wj=function(a,b,c){this.ws(a,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,void 0,c)};
g.k.Wh=function(a,b,c,d){this.ws(a,void 0,void 0,void 0,b,c?c:void 0,void 0,void 0,b.adSlotLoggingData,c?c.adLayoutLoggingData:void 0,void 0,d)};
g.k.uN=function(a,b,c,d){rM(this.Ba.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"trigger:",c,"slot:",b,"layout:",d);dCa(this.j.get())&&this.ws(a,void 0,void 0,void 0,b,d?d:void 0,void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
g.k.xI=function(a,b,c,d,e){this.ws(a,b,c,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)};
g.k.lm=function(a,b,c,d){this.ws("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,c,d,void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0,{errorType:a,errorMessage:b})};
g.k.ws=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=this;q=q===void 0?0:q;rM(this.Ba.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"slot:",e,"layout:",f,"ping:",h,"Opportunity:",{opportunityType:b,associatedSlotId:c,Esb:d,Isb:l,adSlotLoggingData:m,adLayoutLoggingData:n});try{var t=function(){if(!r.Ba.get().J.U().L("html5_disable_client_tmp_logs")&&(a!=="ADS_CLIENT_EVENT_TYPE_ERROR"||r.CT())&&a!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){a||wF("Empty PACF event type",e,f);var u=dCa(r.j.get()),
w={eventType:a,eventOrder:++r.eventCount},A={};e&&(A.slotData=$Ba(u,e));f&&(A.layoutData=aCa(u,f));h&&(A.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:h.ping.serializedAdPingMetadata,pingIndex:h.index});l&&(A.triggerData=mI(l.trigger,l.category));b&&(A.opportunityData=bCa(u,b,c,d));u={organicPlaybackContext:{contentCpn:r.Ta.get().Fe(1).clientPlaybackNonce}};u.organicPlaybackContext.isLivePlayback=r.Ta.get().Fe(1).hc;var C;u.organicPlaybackContext.isMdxPlayback=
(C=r.Ta.get().Fe(1))==null?void 0:C.isMdxPlayback;var F;if((F=r.Ta.get().Fe(1))==null?0:F.daiEnabled)u.organicPlaybackContext.isDaiContent=!0;var G;if(C=(G=r.Ta.get().Fe(2))==null?void 0:G.clientPlaybackNonce)u.adVideoPlaybackContext={adVideoCpn:C};u&&(A.externalContext=u);w.adClientData=A;m&&(w.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(w.serializedAdServingData=n.serializedAdServingDataEntry);p&&(w.errorInfo=p);g.VB("adsClientStateChange",{adsClientEvent:w})}};
q&&q>0?g.OB(g.QB(),function(){return t()},q):t()}catch(u){rM(this.Ba.get(),"html5_log_pacf_logging_errors")&&g.OB(g.QB(),function(){wF(u instanceof Error?u:String(u),e,f,{pacf_message:"exception during pacf logging"})})}};
g.k.CT=function(){return this.Ba.get().CT()};g.x(sKa,WM);g.k=sKa.prototype;g.k.Wj=function(a,b,c){WM.prototype.Wj.call(this,a,b,c);CM(this.Ba.get())&&(c={},this.context.Qp.Fl("pacf",(c.et=a,c.st=b.slotType,c.si=b.slotId,c)))};
g.k.Wh=function(a,b,c,d){WM.prototype.Wh.call(this,a,b,c,d);CM(this.Ba.get())&&(d={},this.context.Qp.Fl("pacf",(d.et=a,d.st=b.slotType,d.si=b.slotId,d.lt=c==null?void 0:c.layoutType,d.li=c==null?void 0:c.layoutId,d)))};
g.k.xI=function(a,b,c,d,e){WM.prototype.xI.call(this,a,b,c,d,e);CM(this.Ba.get())&&(c={},this.context.Qp.Fl("pacf",(c.et=a,c.ot=b,c.ss=d==null?void 0:d.length,c)))};
g.k.uN=function(a,b,c,d){WM.prototype.uN.call(this,a,b,c,d);if(CM(this.Ba.get())){var e={};this.context.Qp.Fl("pacf",(e.et=a,e.tt=c.trigger.triggerType,e.tc=c.category,e.st=b.slotType,e.si=b.slotId,e.lt=d==null?void 0:d.layoutType,e.li=d==null?void 0:d.layoutId,e))}};
g.k.lm=function(a,b,c,d){WM.prototype.lm.call(this,a,b,c,d);if(CM(this.Ba.get())){var e={};this.context.Qp.Fl("perror",(e.ert=a,e.erm=b,e.st=c.slotType,e.si=c.slotId,e.lt=d==null?void 0:d.layoutType,e.li=d==null?void 0:d.layoutId,e))}};
g.k.ws=function(a,b,c,d,e,f,h,l,m,n,p){if(g.zI(this.Ba.get().J.U())){var q=this.Ba.get();q=g.oI(q.J.U().experiments,"H5_async_logging_delay_ms")}else q=void 0;WM.prototype.ws.call(this,a,b,c,d,e,f,h,l,m,n,p,q)};XM.prototype.clear=function(){this.j.clear()};var tKa=!1,ZM,$M,aN,bN,cN;g.x(dN,g.I);
dN.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&&this.j<16;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d<e;)uKa(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(uKa(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};
dN.prototype.kM=function(a){for(var b=0;b<4;b++)this.counter[b]=a[b*4]<<24|a[b*4+1]<<16|a[b*4+2]<<8|a[b*4+3];this.j=16};var vKa=!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 c.length===1&&c[0]===1?b:a})();
var eN;wKa.prototype.Sh=function(a,b){b=b===void 0?1:b;this.Ft+=b;this.B+=a;a/=b;for(var c=0;c<gN.length&&!(a<gN[c]);++c)this.j[c]+=b};
wKa.prototype.toString=function(){return""};
var gN=[20,100,500,2E3];g.k=zKa.prototype;g.k.isActive=function(){return!0};
g.k.uK=function(a,b){var c=this;if(b){var d={},e;for(e in b)d={B0:void 0,o1:void 0},b.hasOwnProperty(e)&&(d.B0=a.prototype[e],d.o1=b[e],a.prototype[e]=function(f){return function(){var h=g.Ja.apply(0,arguments),l=(0,g.iC)();h=f.B0.apply(this,h);return CKa(c,h,f.o1,l)}}(d))}};
g.k.DQ=function(a,b){if(b){var c=this,d={},e;for(e in b)d={rX:void 0,v_:void 0},b.hasOwnProperty(e)&&(d.v_=a.prototype[e],d.rX=b[e],a.prototype[e]=function(f){return function(){var h=g.Ja.apply(0,arguments),l=this,m=(0,g.iC)(),n=f.v_.apply(l,h);return CKa(c,n,null,m,function(p){return f.rX.apply(l,[p].concat(h))})}}(d))}};
g.k.Ts=function(){return new yKa};
g.k.Hr=function(a,b,c){c=c===void 0?1:c;b instanceof yKa&&(AKa(this,a,(0,g.iC)()-b.startTimeMs,c),b.j=!0)};
g.k.Vo=function(a,b){var c=(0,g.iC)();b=b();return CKa(this,b,a,c)};
g.k.YX=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=this.j[b];if(c.Ft===0)c=null;else{for(var d=Math.ceil(c.Ft).toFixed(0)+"."+c.B.toFixed(0),e=0;e<gN.length;++e)if(c.j[e]>0)d+="."+gN[e].toFixed(0)+"_"+c.j[e].toFixed(0);else break;c=d}c&&(a[b]=c)}this.j=new xKa;return a};
g.k.toString=function(){return""};g.k=DKa.prototype;g.k.isActive=function(){return!1};
g.k.uK=function(){};
g.k.DQ=function(){};
g.k.Ts=function(){};
g.k.Hr=function(){};
g.k.Vo=function(a,b){return b()};
g.k.YX=function(){return{}};
g.k.toString=function(){return""};var T2,Ipb,Jpb,Kpb,Lpb,Mpb,U2,xV,UY,ohb,TQ;T2=new DKa;Ipb=!!+kA("html5_enable_profiler");Jpb=!!+kA("html5_onesie_enable_profiler");Kpb=!!+kA("html5_offline_encryption_enable_profiler");Lpb=!!+kA("html5_performance_impact_profiling_timer_ms");Mpb=!!+kA("html5_drm_enable_profiler");U2=Ipb||Jpb||Kpb||Lpb||Mpb?new zKa:T2;g.BX=Ipb?U2:T2;xV=Jpb?U2:T2;UY=Kpb?U2:T2;ohb=Lpb?U2:T2;TQ=Mpb?U2:T2;g.k=hN.prototype;g.k.encrypt=function(a){this.Ld.exports.AES128CTRCipher_encrypt(this.cipher,a.byteOffset,a.byteLength);return a};
g.k.kM=function(a){this.Ld.exports.AES128CTRCipher_setCounter(this.cipher,a.byteOffset)};
g.k.l$=function(a,b){return{profile:this.Ld.cq?"oals":"oalw",Ft:Math.ceil(b.byteLength/16)}};
g.k.Na=function(){return this.cipher===0};
g.k.dispose=function(){this.Ld.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};
xV.DQ(hN,{encrypt:hN.prototype.l$});g.iN.prototype.encrypt=function(a,b){var c=this,d,e;return g.H(function(f){if(f.j==1){d=fN();if(!d)return f.return(c.j(a,b));g.Ba(f,3);return g.z(f,c.B(a,b,d),5)}if(f.j!=3)return f.return(f.B);e=g.Da(f);g.nE(e);vKa=!0;return f.return(c.j(a,b))})};
g.iN.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.Ja(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.iN.prototype.j=function(a,b){this.C||(this.C=new dN(this.D));this.C.kM(b);return this.C.encrypt(a)};
g.iN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.x(g.jN,g.I);g.jN.prototype.encrypt=function(a,b){this.j||(this.j=new dN(this.B),g.M(this,this.j));this.j.kM(b);return this.j.encrypt(a)};
g.jN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
kN.prototype.encrypt=function(a,b){this.j.kM(b);return this.j.encrypt(a)};
kN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
kN.prototype.Na=function(){return this.j.Na()};
kN.prototype.dispose=function(){this.j.dispose()};EKa.prototype.reset=function(){GKa(this);this.update(this.C)};
EKa.prototype.update=function(a){var b=0,c=a.length;this.D+=c;this.B&&this.B+c>=64&&(this.K.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,FKa(this,this.K,0));for(;b+64<=c;b+=64)FKa(this,a,b);b<c&&(a=a.subarray(b),this.K.set(a,this.B),this.B+=a.length)};
var lN=[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 Npb;Npb={};g.Opb=g.DC("yt-idb-pref-storage",{As:(Npb.prefs={Kn:1},Npb),shared:!1,upgrade:function(a,b){b(1)&&g.pC(g.jC(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});mN.prototype.getState=function(){return this.store.getState()};
mN.prototype.dispatch=function(a){return this.store.dispatch(a)};
mN.prototype.subscribe=function(a){return this.store.subscribe(a)};
mN.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
mN.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};nN.prototype.append=function(a){if(QKa(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);RKa(this)}else this.j.push(a);this.totalLength+=a.length};
nN.prototype.split=function(a){for(var b=new nN,c=new nN,d=g.v(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{nK:b,xn:c}};
nN.prototype.isFocused=function(a){return a>=this.C&&a<this.C+this.j[this.B].length};
nN.prototype.focus=function(a){if(!this.isFocused(a)){for(a<this.C&&RKa(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 wN,uN,yN;g.dZ=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 c.length===1&&c[0]===1?b:a}();
wN=Array(1024);uN=window.TextDecoder?new TextDecoder:void 0;yN=window.TextEncoder?new TextEncoder:void 0;for(var cLa={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,liveReactionsDataEntity:503,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,pdpStateEntity:524,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},bLa={},Ppb=g.v(Object.entries(cLa)),Qpb=Ppb.next();!Qpb.done;Qpb=Ppb.next()){var Rpb=g.v(Qpb.value),Spb=Rpb.next().value,Tpb=Rpb.next().value,
Upb=Spb,Vpb=Tpb;Vpb&&(bLa[Vpb]=Upb)};var V2;V2={};g.Wpb=(V2.INVALID_ENCODER_VERSION="Invalid encoder version",V2.KEY_CREATION_FAILED="Failed to create encoder key",V2.UNKNOWN_DECODE_ERROR="Failed to decode PES data",V2.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",V2.WRONG_DATA_TYPE="Encoder cannot process the data type",V2);var XN=window.ppb||"ru";var sPa=[3611,27686,221058,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,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,180627,177960,177958,180629,205717,
197879,177565,212573,210709,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,221575,68728,221576,80353,80356,180635,74610,45707,83962,83970,46713,166591,89711,74612,213809,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,219868,212991,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,214236,144401,117431,133797,222612,222613,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,211414,211411,211412,211413,211403,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,210016,210017,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,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,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,205913,51879,16623,32594,27240,32633,74858,222932,213915,218674,156999,3945,16989,45520,25488,25492,25494,55760,
14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,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,211026,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,220122,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,
220669,213774,204572,191389,204574,187917,191390,179556,191402,212661,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,223033,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,221056,211189,111059,211188,5754,20445,151308,151152,130975,130976,210815,191925,167637,197196,214295,110386,221054,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,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,163566,186641,147842,217932,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,210549,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,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,154430,209757,223051,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 dhb={adNotify:function(a){var b=new Tna,c=0;try{var d=a.adMediaTimeSec;d!==void 0&&(Pk(b,1,d),c++);var e=a.adMediaTimeMs;e!==void 0&&(Rk(b,6,e),c++);var f=a.timeToAdBreakSec;f!==void 0&&(Pk(b,2,f),c++);var h=a.clientScreenNonce;h!==void 0&&(S(b,3,h),c++);var l=a.clientPlaybackNonce;l!==void 0&&(S(b,4,l),c++);var m=a.videoAdBreakOffsetSec;m!==void 0&&(Pk(b,5,m),c++);var n=a.videoAdBreakOffsetMs;n!==void 0&&(Rk(b,7,n),c++);return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}},
biscottiBasedDetection:function(a){var b=new ez,c=0;try{var d=a.detected;d!==void 0&&(Ok(b,1,d),c++);var e=a.source;e!==void 0&&(S(b,2,e),c++);var f=a.contentCpn;f!==void 0&&(S(b,3,f),c++);var h=a.contentCsn;h!==void 0&&(S(b,4,h),c++);var l=a.method;l!==void 0&&(Pk(b,5,l),c++);var m=a.result;m!==void 0&&(Pk(b,6,m),c++);var n=a.detectionResult;n!==void 0&&(T(b,9,Jnb[n]),c++);var p=a.detectionStates;p!==void 0&&($N(b.u7.bind(b),p,Knb),c++);var q=a.adCpn;q!==void 0&&(S(b,7,q),c++);var r=a.playbackType;
r!==void 0&&(S(b,8,r),c++);return[c===Object.keys(a).length,b]}catch(t){return Y(t),[!1,void 0]}},
adNotifyFilled:function(a){var b=new Sna,c=0;try{var d=a.notifyCompositeType;d!==void 0&&(T(b,1,snb[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
idbTransactionEnded:function(a){var b=new Hz,c=0;try{var d=a.objectStoreNames;d!==void 0&&(S(b,1,d),c++);var e=a.duration;e!==void 0&&(b.Nl(e),c++);var f=a.isSuccessful;f!==void 0&&(Ok(b,3,f),c++);var h=a.connectionHasUnknownAbortedTransaction;h!==void 0&&(Ok(b,4,h),c++);var l=a.tryCount;l!==void 0&&(Pk(b,5,l),c++);var m=a.tag;m!==void 0&&(T(b,6,$nb[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}},
idbUnexpectedlyClosed:function(a){var b=new Wpa,c=0;try{var d=a.dbName;d!==void 0&&(S(b,1,d),c++);var e=a.dbVersion;e!==void 0&&(Pk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
flowEvent:function(a){var b=new Qpa,c=0;try{var d=a.flowNonce;d!==void 0&&(S(b,1,d),c++);var e=a.flowEventType;if(e){a:{var f=new Ppa,h=0;try{var l=e.flowEventNamespace;l!==void 0&&(T(f,1,Tnb[l]),h++);var m=e.flowEventType;m!==void 0&&(Pk(f,2,m),h++);var n=[h===Object.keys(e).length,f];break a}catch(Ra){Y(Ra);n=[!1,void 0];break a}}var p=n;p[0]&&(gk(b,Ppa,2,p[1]),c++)}var q=a.flowMetadata;if(q){a:{var r=new Opa,t=0;try{var u=q.notaireContext;if(u){b:{var w=new lpa,A=0;try{var C=u.serverInfo;if(C){c:{var F=
new qz,G=0;try{var K=C.id;K!==void 0&&(S(F,1,K),G++);var N=C.forceLog;N!==void 0&&(Ok(F,2,N),G++);var R=[G===Object.keys(C).length,F];break c}catch(Ra){Y(Ra);R=[!1,void 0];break c}}var da=R;da[0]&&(gk(w,qz,1,da[1]),A++)}var oa=u.clientInfo;if(oa){c:{var qa=new kpa,ha=0;try{var ta=oa.timeSinceReceivedMs;ta!==void 0&&(Rk(qa,1,ta),ha++);var P=[ha===Object.keys(oa).length,qa];break c}catch(Ra){Y(Ra);P=[!1,void 0];break c}}var ua=P;ua[0]&&(gk(w,kpa,2,ua[1]),A++)}var y=[A===Object.keys(u).length,w];break b}catch(Ra){Y(Ra);
y=[!1,void 0];break b}y=void 0}var Z=y;Z[0]&&(gk(r,lpa,1,Z[1]),t++)}var cb=q.offlineTransferStatusChangedContext;if(cb){b:{var La=new opa,$a=0;try{var Ya=cb.offlineTransferStatusChanged;if(Ya){var Ha=CNa(Ya);Ha[0]&&(gk(La,tz,1,Ha[1]),$a++)}var Ta=[$a===Object.keys(cb).length,La];break b}catch(Ra){Y(Ra);Ta=[!1,void 0];break b}Ta=void 0}var ob=Ta;ob[0]&&(gk(r,opa,2,ob[1]),t++)}var B=q.offlineOrchestrationContext;if(B){b:{var E=new sz,D=0;try{var J=B.entityType;J!==void 0&&(Pk(E,1,J),D++);var L=B.entityId;
L!==void 0&&(S(E,7,L),D++);var aa=B.offlineOrchestrationActionType;aa!==void 0&&(T(E,6,zob[aa]),D++);var fa=B.offlineOrchestrationActionResult;fa!==void 0&&(T(E,2,yob[fa]),D++);var ia=B.offlineOrchestrationFailureReason;ia!==void 0&&(T(E,10,Aob[ia]),D++);var O=B.isRetryable;O!==void 0&&(Ok(E,3,O),D++);var ka=B.isRestored;ka!==void 0&&(Ok(E,11,ka),D++);var la=B.orchestrationAction;if(la){var za=COa(la);za[0]&&(gk(E,rz,4,za[1]),D++)}var Sa=B.additionalOrchestrationActions;Sa&&(ZN(E.j.bind(E),Sa,COa),
D++);var gb=B.intervalSinceEnqueuedMs;gb!==void 0&&(Rk(E,8,gb),D++);var Ab=B.executionIntervalMs;Ab!==void 0&&(Rk(E,9,Ab),D++);var pb=B.offlineModeType;pb!==void 0&&(T(E,12,tNa[pb]),D++);var Za=[D===Object.keys(B).length,E];break b}catch(Ra){Y(Ra);Za=[!1,void 0];break b}Za=void 0}var qc=Za;qc[0]&&(gk(r,sz,3,qc[1]),t++)}var ac=q.shortsCreationContext;if(ac){b:{var bc=new wz,nc=0;try{var Wc=ac.shortsCreationSurfaces;Wc!==void 0&&($N(bc.j.bind(bc),Wc,Lob),nc++);var Yb=[nc===Object.keys(ac).length,bc];
break b}catch(Ra){Y(Ra);Yb=[!1,void 0];break b}}var wc=Yb;wc[0]&&(gk(r,wz,4,wc[1]),t++)}var $c=q.mdxConnectionContext;if($c){b:{var Pc=new hpa,uc=0;try{var Tb=$c.isReconnection;Tb!==void 0&&(Ok(Pc,1,Tb),uc++);var Ub=$c.disconnectReason;Ub!==void 0&&(T(Pc,2,cob[Ub]),uc++);var zd=$c.isRetry;zd!==void 0&&(Ok(Pc,3,zd),uc++);var rd=[uc===Object.keys($c).length,Pc];break b}catch(Ra){Y(Ra);rd=[!1,void 0];break b}}var sd=rd;sd[0]&&(gk(r,hpa,5,sd[1]),t++)}var $b=q.premiumMultiStepPurchaseContext;if($b){b:{var Fc=
new vpa,Hb=0;try{var cd=$b.selectedOption;if(cd){c:{var Ad=new upa,Pb=0;try{var he=cd.offerType;he!==void 0&&(T(Ad,1,Zmb[he]),Pb++);var Ud=cd.itemType;Ud!==void 0&&(T(Ad,2,oO[Ud]),Pb++);var Vd=cd.itemExternalId;Vd!==void 0&&(S(Ad,3,Vd),Pb++);var Ce=[Pb===Object.keys(cd).length,Ad];break c}catch(Ra){Y(Ra);Ce=[!1,void 0];break c}}var De=Ce;De[0]&&(gk(Fc,upa,1,De[1]),Hb++)}var Ld=$b.itemType;Ld!==void 0&&(T(Fc,2,oO[Ld]),Hb++);var bf=$b.productType;bf!==void 0&&(T(Fc,3,pO[bf]),Hb++);var Qe=$b.landingPageVariantId;
Qe!==void 0&&(S(Fc,4,Qe),Hb++);var Md=$b.experimentStatus;Md!==void 0&&(T(Fc,5,eob[Md]),Hb++);var Ff=$b.themeKey;Ff!==void 0&&(S(Fc,6,Ff),Hb++);var Nd=$b.signupType;Nd!==void 0&&(T(Fc,7,fob[Nd]),Hb++);var ie=[Hb===Object.keys($b).length,Fc];break b}catch(Ra){Y(Ra);ie=[!1,void 0];break b}ie=void 0}var ad=ie;ad[0]&&(gk(r,vpa,6,ad[1]),t++)}var ld=q.mdxReceiverConnectionContext;if(ld){b:{var td=new ipa,Wd=0;try{var Vf=ld.isFromAppLaunch;Vf!==void 0&&(Ok(td,1,Vf),Wd++);var qf=ld.dialServerType;qf!==void 0&&
(T(td,2,bob[qf]),Wd++);var Gf=ld.supportsSmoothPairing;Gf!==void 0&&(Ok(td,3,Gf),Wd++);var Ee=ld.hasManuallyPairedRemotesOnAppStartup;Ee!==void 0&&(Ok(td,4,Ee),Wd++);var Vb=ld.mismatchedTheme;Vb!==void 0&&(T(td,5,Umb[Vb]),Wd++);var Fe=ld.mdxSenderConnectedCounter;Fe!==void 0&&(Pk(td,6,Fe),Wd++);var gh=ld.externalRouteSource;gh!==void 0&&(T(td,7,aob[gh]),Wd++);var Rh=ld.appReloadCount;Rh!==void 0&&(Pk(td,8,Rh),Wd++);var Sh=[Wd===Object.keys(ld).length,td];break b}catch(Ra){Y(Ra);Sh=[!1,void 0];break b}}var Th=
Sh;Th[0]&&(gk(r,ipa,7,Th[1]),t++)}var sf=q.parentToolsOnboardingContext;if(sf){b:{var hf=new qpa,He=0;try{var Uh=sf.triggerPoint;Uh!==void 0&&(T(hf,1,knb[Uh]),He++);var vc=sf.kidsFlowInfo;if(vc){c:{var yc=new ppa,Jc=0;try{var mj=vc.kidsFlowVersion;mj!==void 0&&(T(yc,1,hnb[mj]),Jc++);var tf=vc.flowLabel;tf!==void 0&&(S(yc,2,tf),Jc++);var qg=vc.hostClientName;qg!==void 0&&(T(yc,3,inb[qg]),Jc++);var rg=vc.hostClientVersion;rg!==void 0&&(S(yc,4,rg),Jc++);var Og=vc.kidsFlowType;Og!==void 0&&(T(yc,5,gnb[Og]),
Jc++);var nd=[Jc===Object.keys(vc).length,yc];break c}catch(Ra){Y(Ra);nd=[!1,void 0];break c}}var sg=nd;sg[0]&&(gk(hf,ppa,2,sg[1]),He++)}var tg=sf.kidsCorpusPreferenceNew;tg!==void 0&&(T(hf,3,fnb[tg]),He++);var Pg=sf.appChoice;Pg!==void 0&&(T(hf,4,jnb[Pg]),He++);var ug=sf.isKidSignedIn;ug!==void 0&&(Ok(hf,5,ug),He++);var Vh=sf.alreadyOnboardedYtk;Vh!==void 0&&(Ok(hf,6,Vh),He++);var uf=sf.alreadyOnboardedSupex;uf!==void 0&&(Ok(hf,7,uf),He++);var Te=[He===Object.keys(sf).length,hf];break b}catch(Ra){Y(Ra);
Te=[!1,void 0];break b}Te=void 0}var vg=Te;vg[0]&&(gk(r,qpa,8,vg[1]),t++)}var Wh=q.hashtagAutoCompleteContext;if(Wh){b:{var Xh=new Xoa,Ue=0;try{var jh=Wh.suggestionSelected;jh!==void 0&&(Pk(Xh,1,jh),Ue++);var Qg=[Ue===Object.keys(Wh).length,Xh];break b}catch(Ra){Y(Ra);Qg=[!1,void 0];break b}}var nj=Qg;nj[0]&&(gk(r,Xoa,9,nj[1]),t++)}var Qd=q.liveStreamingContext;if(Qd){b:{var Ve=new gpa,me=0;try{var Hi=Qd.broadcastSource;Hi!==void 0&&(T(Ve,1,qnb[Hi]),me++);var jf=Qd.isAutoDashboard;jf!==void 0&&(Ok(Ve,
2,jf),me++);var kf=Qd.externalVideoId;kf!==void 0&&(S(Ve,3,kf),me++);var vf=Qd.broadcastConferenceType;vf!==void 0&&(T(Ve,4,onb[vf]),me++);var Zf=Qd.eventData;if(Zf){c:{var Rg=new fpa,Ie=0;try{var lf=Zf.webrtcHandshakeOffer;if(lf){d:{var Jf=new epa,Ii=0;try{var oj=lf.localVideoSsrc;oj!==void 0&&(Qk(Jf,1,oj),Ii++);var om=lf.localAudioSsrc;om!==void 0&&(Qk(Jf,2,om),Ii++);var pm=lf.participantId;pm!==void 0&&(Sk(Jf,3,pm),Ii++);var ok=[Ii===Object.keys(lf).length,Jf];break d}catch(Ra){Y(Ra);ok=[!1,void 0];
break d}}var pk=ok;pk[0]&&(gk(Rg,epa,1,pk[1]),Ie++)}var pj=Zf.webrtcHandshakeAnswer;if(pj){d:{var We=new cpa,Je=0;try{var $d=pj.remoteVideoSsrc;$d!==void 0&&(Qk(We,1,$d),Je++);var kh=pj.remoteAudioSsrc;kh!==void 0&&(Qk(We,2,kh),Je++);var Yh=[Je===Object.keys(pj).length,We];break d}catch(Ra){Y(Ra);Yh=[!1,void 0];break d}}var qj=Yh;qj[0]&&(gk(Rg,cpa,2,qj[1]),Ie++)}var ql=Zf.webrtcHandshakeError;if(ql){d:{var Kf=new dpa,Zh=0;try{var Sg=ql.description;Sg!==void 0&&(S(Kf,1,Sg),Zh++);var $h=[Zh===Object.keys(ql).length,
Kf];break d}catch(Ra){Y(Ra);$h=[!1,void 0];break d}}var Ji=$h;Ji[0]&&(gk(Rg,dpa,3,Ji[1]),Ie++)}var qk=Zf.costreamStartNotification;if(qk){d:{var rk=new $oa,$f=0;try{var rj=qk.broadcastStartTimeMs;rj!==void 0&&(Rk(rk,1,rj),$f++);var lh=[$f===Object.keys(qk).length,rk];break d}catch(Ra){Y(Ra);lh=[!1,void 0];break d}}var sj=lh;sj[0]&&(gk(Rg,$oa,4,sj[1]),Ie++)}var mh=Zf.remoteParticipant;if(mh){d:{var Tg=new bpa,tj=0;try{var rl=mh.videoSsrc;rl!==void 0&&(Qk(Tg,1,rl),tj++);var qm=mh.audioSsrc;qm!==void 0&&
(Qk(Tg,2,qm),tj++);var uj=[tj===Object.keys(mh).length,Tg];break d}catch(Ra){Y(Ra);uj=[!1,void 0];break d}}var sk=uj;sk[0]&&(gk(Rg,bpa,5,sk[1]),Ie++)}var Ed=Zf.webcamEventData;if(Ed){d:{var ag=new pz,wg=0;try{var sl=Ed.videoFrameRate;sl!==void 0&&(Tk(ag,1,sl),wg++);var tk=Ed.videoAspectRatio;tk!==void 0&&(Tk(ag,2,tk),wg++);var uk=Ed.videoHeight;uk!==void 0&&(Qk(ag,3,uk),wg++);var mc=Ed.videoWidth;mc!==void 0&&(Qk(ag,4,mc),wg++);var rm=Ed.videoCaptureCursor;rm!==void 0&&(S(ag,5,rm),wg++);var tl=Ed.videoCaptureSurface;
tl!==void 0&&(S(ag,6,tl),wg++);var ul=Ed.videoCaptureAudioEnabled;ul!==void 0&&(Ok(ag,7,ul),wg++);var vj=[wg===Object.keys(Ed).length,ag];break d}catch(Ra){Y(Ra);vj=[!1,void 0];break d}}var up=vj;up[0]&&(gk(Rg,pz,6,up[1]),Ie++)}var wj=Zf.errorEventData;if(wj){d:{var xj=new apa,yj=0;try{var vp=wj.liveClientErrorType;vp!==void 0&&(T(xj,1,mnb[vp]),yj++);var En=wj.liveServerErrorType;En!==void 0&&(T(xj,2,nnb[En]),yj++);var Zq=wj.kioskClientApiErrorType;Zq!==void 0&&(T(xj,3,lnb[Zq]),yj++);var $q=[yj===
Object.keys(wj).length,xj];break d}catch(Ra){Y(Ra);$q=[!1,void 0];break d}}var ar=$q;ar[0]&&(gk(Rg,apa,7,ar[1]),Ie++)}var vl=Zf.adsAutomationEventData;if(vl){d:{var sm=new Zoa,vk=0;try{var zj=vl.adsAutomationSettingsType;zj!==void 0&&(T(sm,1,Vmb[zj]),vk++);var ai=vl.adsAutomationIntervalSec;ai!==void 0&&(Pk(sm,2,ai),vk++);var nh=vl.isNonConcurrent;nh!==void 0&&(Ok(sm,3,nh),vk++);var wl=[vk===Object.keys(vl).length,sm];break d}catch(Ra){Y(Ra);wl=[!1,void 0];break d}}var wp=wl;wp[0]&&(gk(Rg,Zoa,8,wp[1]),
Ie++)}var xp=[Ie===Object.keys(Zf).length,Rg];break c}catch(Ra){Y(Ra);xp=[!1,void 0];break c}xp=void 0}var br=xp;br[0]&&(gk(Ve,fpa,5,br[1]),me++)}var yp=Qd.isMonetizationOn;yp!==void 0&&(Ok(Ve,6,yp),me++);var Fn=Qd.sharedmdeEnabled;Fn!==void 0&&(Ok(Ve,7,Fn),me++);var cr=Qd.isScreencast;cr!==void 0&&(Ok(Ve,8,cr),me++);var oh=Qd.broadcastLifecycleStatus;oh!==void 0&&(T(Ve,9,pnb[oh]),me++);var bi=Qd.hasCreatedMobileLivestream;bi!==void 0&&(Ok(Ve,10,bi),me++);var ae=[me===Object.keys(Qd).length,Ve];break b}catch(Ra){Y(Ra);
ae=[!1,void 0];break b}ae=void 0}var ci=ae;ci[0]&&(gk(r,gpa,10,ci[1]),t++)}var bg=q.touAppealContext;if(bg){b:{var di=new Cz,ph=0;try{var dr=bg.scope;dr!==void 0&&(S(di,1,dr),ph++);var tm=bg.videoId;if(tm){c:{var Gn=new Bz,Hn=0;try{var In=tm.externalVideoId;In!==void 0&&(S(Gn,1,In),Hn++);var um=[Hn===Object.keys(tm).length,Gn];break c}catch(Ra){Y(Ra);um=[!1,void 0];break c}}var er=um;er[0]&&(di.setVideoId(er[1]),ph++)}var Ki=bg.videoThumbnailId;if(Ki){c:{var Li=new Fpa,wk=0;try{var xl=Ki.externalVideoId;
xl!==void 0&&(S(Li,1,xl),wk++);var vm=Ki.thumbnailVersion;vm!==void 0&&(Sk(Li,3,vm),wk++);var wm=Ki.checksum;wm!==void 0&&(Sk(Li,4,wm),wk++);var zp=[wk===Object.keys(Ki).length,Li];break c}catch(Ra){Y(Ra);zp=[!1,void 0];break c}}var Ap=zp;Ap[0]&&(hk(di,Fpa,3,x2,Ap[1]),ph++)}var Bp=bg.playlistId;if(Bp){c:{var Jn=new yz,Kn=0;try{var Sc=Bp.externalPlaylistId;Sc!==void 0&&(S(Jn,1,Sc),Kn++);var ne=[Kn===Object.keys(Bp).length,Jn];break c}catch(Ra){Y(Ra);ne=[!1,void 0];break c}}var qh=ne;qh[0]&&(hk(di,
yz,4,x2,qh[1]),ph++)}var ei=bg.urlHostname;ei!==void 0&&(Zj(di,5,x2,Fi(ei)),ph++);var Ln=bg.postId;if(Ln){c:{var Cp=new Epa,xm=0;try{var ym=Ln.externalPostId;ym!==void 0&&(S(Cp,1,ym),xm++);var zm=[xm===Object.keys(Ln).length,Cp];break c}catch(Ra){Y(Ra);zm=[!1,void 0];break c}}var Mn=zm;Mn[0]&&(hk(di,Epa,9,x2,Mn[1]),ph++)}var fr=bg.encodedTouViolativeContentId;fr!==void 0&&(S(di,6,fr),ph++);var Dp=bg.encodedChannelTouViolativeContentId;Dp!==void 0&&(S(di,7,Dp),ph++);var xk=bg.trainingData;if(xk){c:{var fi=
new Az,yk=0;try{var Am=xk.question;if(Am){d:{var Bm=new Dpa,Ep=0;try{var Aj=Am.questionId;Aj!==void 0&&(Pk(Bm,1,Aj),Ep++);var zk=Am.supplementaryInfoId;zk!==void 0&&(Pk(Bm,2,zk),Ep++);var Bj=[Ep===Object.keys(Am).length,Bm];break d}catch(Ra){Y(Ra);Bj=[!1,void 0];break d}}var Fp=Bj;Fp[0]&&(gk(fi,Dpa,1,Fp[1]),yk++)}var gr=xk.answers;gr&&(ZN(fi.j.bind(fi),gr,DOa),yk++);var yl=xk.correctAnswers;yl&&(ZN(fi.B.bind(fi),yl,DOa),yk++);var zl=xk.strikeId;zl!==void 0&&(S(fi,4,zl),yk++);var Al=xk.preTrainingMaterialId;
Al!==void 0&&(Pk(fi,5,Al),yk++);var Bl=[yk===Object.keys(xk).length,fi];break c}catch(Ra){Y(Ra);Bl=[!1,void 0];break c}Bl=void 0}var Gp=Bl;Gp[0]&&(gk(di,Az,8,Gp[1]),ph++)}var Hp=[ph===Object.keys(bg).length,di];break b}catch(Ra){Y(Ra);Hp=[!1,void 0];break b}Hp=void 0}var Ak=Hp;Ak[0]&&(gk(r,Cz,11,Ak[1]),t++)}var Cl=q.dragAndDropContext;if(Cl){b:{var Cm=new mz,Nn=0;try{var Dm=Cl.rootVe;if(Dm){var On=aO(Dm);On[0]&&(gk(Cm,lz,1,On[1]),Nn++)}var Pn=Cl.ve;if(Pn){var hr=aO(Pn);hr[0]&&(gk(Cm,lz,2,hr[1]),Nn++)}var Qn=
[Nn===Object.keys(Cl).length,Cm];break b}catch(Ra){Y(Ra);Qn=[!1,void 0];break b}Qn=void 0}var rh=Qn;rh[0]&&(gk(r,mz,12,rh[1]),t++)}var Dl=q.socialSuggestionsContext;if(Dl){b:{var El=new xz,xg=0;try{var sh=Dl.socialSuggestionsType;sh!==void 0&&(T(El,1,hob[sh]),xg++);var gi=Dl.suggestionSelected;gi!==void 0&&(Pk(El,2,gi),xg++);var Mi=Dl.source;Mi!==void 0&&(T(El,3,iob[Mi]),xg++);var Em=[xg===Object.keys(Dl).length,El];break b}catch(Ra){Y(Ra);Em=[!1,void 0];break b}}var Fl=Em;Fl[0]&&(gk(r,xz,13,Fl[1]),
t++)}var Ni=q.featureEnablementContext;if(Ni){b:{var Fm=new nz,hi=0;try{var Cj=Ni.feature;Cj!==void 0&&(T(Fm,1,RLa[Cj]),hi++);var Dj=[hi===Object.keys(Ni).length,Fm];break b}catch(Ra){Y(Ra);Dj=[!1,void 0];break b}}var ir=Dj;ir[0]&&(gk(r,nz,14,ir[1]),t++)}var Ej=q.iapContext;if(Ej){b:{var Bk=new oz,Gl=0;try{var Rn=Ej.playIapProduct;if(Rn){c:{var Hl=new Yoa,Gm=0;try{var Hm=Rn.packageId;Hm!==void 0&&(S(Hl,1,Hm),Gm++);var Ip=Rn.productId;Ip!==void 0&&(S(Hl,2,Ip),Gm++);var Sn=[Gm===Object.keys(Rn).length,
Hl];break c}catch(Ra){Y(Ra);Sn=[!1,void 0];break c}}var Tn=Sn;Tn[0]&&(hk(Bk,Yoa,1,Qnb,Tn[1]),Gl++)}var jr=Ej.source;jr!==void 0&&(T(Bk,2,Vnb[jr]),Gl++);var Il=Ej.attributionId;Il!==void 0&&(Rk(Bk,3,Il),Gl++);var Un=Ej.externalVideoId;Un!==void 0&&(S(Bk,4,Un),Gl++);var Vn=Ej.externalChannelId;Vn!==void 0&&(S(Bk,5,Vn),Gl++);var Wn=[Gl===Object.keys(Ej).length,Bk];break b}catch(Ra){Y(Ra);Wn=[!1,void 0];break b}Wn=void 0}var Jp=Wn;Jp[0]&&(gk(r,oz,15,Jp[1]),t++)}var Im=q.shoppingCheckoutContext;if(Im){b:{var Kp=
new Apa,Lp=0;try{var Mp=Im.shoppingFlowParams;if(Mp){var Np=GOa(Mp);Np[0]&&(gk(Kp,vz,1,Np[1]),Lp++)}var Jm=Im.shoppingCheckoutErrorReason;Jm!==void 0&&(T(Kp,2,gob[Jm]),Lp++);var Jl=[Lp===Object.keys(Im).length,Kp];break b}catch(Ra){Y(Ra);Jl=[!1,void 0];break b}Jl=void 0}var Xn=Jl;Xn[0]&&(gk(r,Apa,16,Xn[1]),t++)}var Yn=q.ypcCancellationContext;if(Yn){b:{var Op=new Jpa,Zn=0;try{var kr=Yn.itemType;kr!==void 0&&(T(Op,1,oO[kr]),Zn++);var Pp=Yn.productType;Pp!==void 0&&(T(Op,2,pO[Pp]),Zn++);var $n=[Zn===
Object.keys(Yn).length,Op];break b}catch(Ra){Y(Ra);$n=[!1,void 0];break b}}var lr=$n;lr[0]&&(gk(r,Jpa,17,lr[1]),t++)}var oe=q.ypcBrowseOffersContext;if(oe){b:{var we=new Ipa,Ke=0;try{var ao=oe.commerceFlowLoggingParams;if(ao){var bo=LOa(ao);bo[0]&&(gk(we,Ez,1,bo[1]),Ke++)}var Qp=oe.offerType;Qp!==void 0&&(T(we,2,$mb[Qp]),Ke++);var co=oe.entityType;co!==void 0&&(T(we,3,Mnb[co]),Ke++);var Km=[Ke===Object.keys(oe).length,we];break b}catch(Ra){Y(Ra);Km=[!1,void 0];break b}Km=void 0}var Rp=Km;Rp[0]&&(gk(r,
Ipa,18,Rp[1]),t++)}var Sp=q.mdxStreamTransferContext;if(Sp){b:{var Oi=new jpa,ii=0;try{var Pi=Sp.completedReason;Pi!==void 0&&(T(Oi,1,dob[Pi]),ii++);var Tp=[ii===Object.keys(Sp).length,Oi];break b}catch(Ra){Y(Ra);Tp=[!1,void 0];break b}}var Up=Tp;Up[0]&&(gk(r,jpa,19,Up[1]),t++)}var Lm=q.pdgBuyFlowContext;if(Lm){b:{var eo=new tpa,fo=0;try{var Vp=Lm.productType;Vp!==void 0&&(T(eo,1,pO[Vp]),fo++);var Fj=Lm.entryPointClickedContext;if(Fj){c:{var Mm=new rpa,Qi=0;try{var go=Fj.superVodBuyFlowEntryPoint;
go!==void 0&&(Wk(Mm,1,w2,Eob[go]),Qi++);var ho=Fj.superChatBuyFlowEntryPoint;ho!==void 0&&(Wk(Mm,2,w2,Cob[ho]),Qi++);var mr=Fj.sharedPdgBuyFlowEntryPoint;mr!==void 0&&(Wk(Mm,3,w2,Bob[mr]),Qi++);var nr=Fj.superStickerBuyFlowEntryPoint;nr!==void 0&&(Wk(Mm,4,w2,Dob[nr]),Qi++);var Ri=[Qi===Object.keys(Fj).length,Mm];break c}catch(Ra){Y(Ra);Ri=[!1,void 0];break c}}var Kl=Ri;Kl[0]&&(gk(eo,rpa,2,Kl[1]),fo++)}var Gj=Lm.itemSelectionPageDisplayedContext;if(Gj){c:{var or=new spa,io=0;try{var Wp=Gj.superStickerBuyFlowType;
Wp!==void 0&&(T(or,1,Fob[Wp]),io++);var jo=[io===Object.keys(Gj).length,or];break c}catch(Ra){Y(Ra);jo=[!1,void 0];break c}}var pr=jo;pr[0]&&(gk(eo,spa,3,pr[1]),fo++)}var ko=[fo===Object.keys(Lm).length,eo];break b}catch(Ra){Y(Ra);ko=[!1,void 0];break b}ko=void 0}var Xp=ko;Xp[0]&&(gk(r,tpa,20,Xp[1]),t++)}var Ck=q.ypcPurchaseContext;if(Ck){b:{var Si=new Npa,Nm=0;try{var Ll=Ck.commerceFlowLoggingParams;if(Ll){var yg=LOa(Ll);yg[0]&&(gk(Si,Ez,1,yg[1]),Nm++)}var Lf=Ck.offerType;Lf!==void 0&&(T(Si,2,$mb[Lf]),
Nm++);var ji=Ck.transactionType;ji!==void 0&&(T(Si,3,nob[ji]),Nm++);var Om=Ck.paymentProcessor;Om!==void 0&&(T(Si,4,anb[Om]),Nm++);var Dk=[Nm===Object.keys(Ck).length,Si];break b}catch(Ra){Y(Ra);Dk=[!1,void 0];break b}Dk=void 0}var Ek=Dk;Ek[0]&&(gk(r,Npa,21,Ek[1]),t++)}var pe=q.webViewContext;if(pe){b:{var Mf=new Gpa,th=0;try{var ki=pe.hostname;ki!==void 0&&(S(Mf,1,ki),th++);var qr=pe.webViewUseCase;qr!==void 0&&(T(Mf,2,Rob[qr]),th++);var Fk=pe.isFirstPartyHost;Fk!==void 0&&(Ok(Mf,5,Fk),th++);var rr=
pe.isLoaded;rr!==void 0&&(Ok(Mf,3,rr),th++);var bt=pe.webViewEngagementSec;bt!==void 0&&(Pk(Mf,4,bt),th++);var sr=[th===Object.keys(pe).length,Mf];break b}catch(Ra){Y(Ra);sr=[!1,void 0];break b}}var tr=sr;tr[0]&&(gk(r,Gpa,22,tr[1]),t++)}var Ml=q.videoSuggestionsContext;if(Ml){b:{var Yp=new Dz,lo=0;try{var mo=Ml.type;mo!==void 0&&(T(Yp,1,Wmb[mo]),lo++);var Gk=Ml.serializedSuggestionData;Gk!==void 0&&(Vk(Yp,2,Gk),lo++);var ur=Ml.videoId;ur!==void 0&&(Yp.setVideoId(ur),lo++);var Nl=[lo===Object.keys(Ml).length,
Yp];break b}catch(Ra){Y(Ra);Nl=[!1,void 0];break b}}var Ol=Nl;Ol[0]&&(gk(r,Dz,23,Ol[1]),t++)}var no=q.actionSheetContext;if(no){b:{var Hj=new Woa,Hk=0;try{var Pm=no.parentScreenUiType;Pm!==void 0&&(Pk(Hj,1,Pm),Hk++);var oo=[Hk===Object.keys(no).length,Hj];break b}catch(Ra){Y(Ra);oo=[!1,void 0];break b}}var po=oo;po[0]&&(gk(r,Woa,24,po[1]),t++)}var Pl=q.producerExportContext;if(Pl){b:{var vr=new ypa,Zp=0;try{var Ug=Pl.exportDetails;if(Ug){c:{var Ql=new xpa,Ij=0;try{var Rl=Ug.project;if(Rl){d:{var Sl=
new uz,qo=0;try{var $p=Rl.projectId;$p!==void 0&&(S(Sl,1,$p),qo++);var ct=Rl.durationMs;ct!==void 0&&(Sk(Sl,2,ct),qo++);var aq=[qo===Object.keys(Rl).length,Sl];break d}catch(Ra){Y(Ra);aq=[!1,void 0];break d}}var bq=aq;bq[0]&&(gk(Ql,uz,1,bq[1]),Ij++)}var Tl=Ug.renderDetails;if(Tl){d:{var Ti=new wpa,li=0;try{var Ul=Tl.sizeBytes;Ul!==void 0&&(Rk(Ti,1,Ul),li++);var wr=Tl.pixelWidth;wr!==void 0&&(Pk(Ti,2,wr),li++);var xr=Tl.pixelHeight;xr!==void 0&&(Pk(Ti,3,xr),li++);var ro=[li===Object.keys(Tl).length,
Ti];break d}catch(Ra){Y(Ra);ro=[!1,void 0];break d}}var Ik=ro;Ik[0]&&(gk(Ql,wpa,2,Ik[1]),Ij++)}var so=[Ij===Object.keys(Ug).length,Ql];break c}catch(Ra){Y(Ra);so=[!1,void 0];break c}so=void 0}var cq=so;cq[0]&&(gk(vr,xpa,1,cq[1]),Zp++)}var dq=[Zp===Object.keys(Pl).length,vr];break b}catch(Ra){Y(Ra);dq=[!1,void 0];break b}dq=void 0}var eq=dq;eq[0]&&(gk(r,ypa,25,eq[1]),t++)}var Ui=q.downloadMyVideoContext;if(Ui){b:{var Jk=new kz,Vl=0;try{var dt=Ui.videoId;dt!==void 0&&(Jk.setVideoId(dt),Vl++);var kv=
Ui.videoSid;kv!==void 0&&(Rk(Jk,2,kv),Vl++);var Tx=Ui.downloadError;Tx!==void 0&&(T(Jk,3,Snb[Tx]),Vl++);var lv=Ui.totalAssetSize;lv!==void 0&&(Rk(Jk,4,lv),Vl++);var mv=Ui.totalDownloadedPercent;mv!==void 0&&(Qk(Jk,5,mv),Vl++);var nv=Ui.mddDownloadErrorCode;nv!==void 0&&(Qk(Jk,6,nv),Vl++);var et=[Vl===Object.keys(Ui).length,Jk];break b}catch(Ra){Y(Ra);et=[!1,void 0];break b}}var Ux=et;Ux[0]&&(gk(r,kz,26,Ux[1]),t++)}var yr=q.miniAppContext;if(yr){b:{var ft=new Aoa,zr=0;try{var Vx=yr.externalPostId;
Vx!==void 0&&(S(ft,1,Vx),zr++);var gt=yr.miniAppReleaseId;gt!==void 0&&(Pk(ft,3,gt),zr++);var Ar=yr.postPlayNonce;Ar!==void 0&&(S(ft,4,Ar),zr++);var ht=[zr===Object.keys(yr).length,ft];break b}catch(Ra){Y(Ra);ht=[!1,void 0];break b}}var Wx=ht;Wx[0]&&(gk(r,Aoa,27,Wx[1]),t++)}var ov=q.shoppingCartContext;if(ov){b:{var pv=new zpa,Xx=0;try{var qv=ov.shoppingFlowParams;if(qv){var Yx=GOa(qv);Yx[0]&&(gk(pv,vz,1,Yx[1]),Xx++)}var rv=[Xx===Object.keys(ov).length,pv];break b}catch(Ra){Y(Ra);rv=[!1,void 0];break b}rv=
void 0}var Zx=rv;Zx[0]&&(gk(r,zpa,28,Zx[1]),t++)}var Pa=q.sponsorshipsPurchaseContext;if(Pa){b:{var uO=new Bpa,vO=0;try{var GB=Pa.joinMethod;GB!==void 0&&(T(uO,1,bnb[GB]),vO++);var HB=[vO===Object.keys(Pa).length,uO];break b}catch(Ra){Y(Ra);HB=[!1,void 0];break b}}var MG=HB;MG[0]&&(gk(r,Bpa,29,MG[1]),t++)}var IB=q.ypcCujContext;if(IB){b:{var NG=new Mpa,JB=0;try{var wO=IB.serializedYpcCujLoggingParams;wO!==void 0&&(Vk(NG,1,wO),JB++);var OG=IB.ypcCujLoggingClientPayload;if(OG){c:{var xO=new Lpa,yO=
0;try{var PG=OG.ypcAcquisitionCujLoggingClientPayload;if(PG){d:{var zO=new Kpa,AO=0;try{var tv=PG.ypcAcquisitionDebugLoggingParams;if(tv){e:{var nb=new Fz,uR=0;try{var P2a=tv.transactionErrorType;P2a!==void 0&&(T(nb,1,mob[P2a]),uR++);var Q2a=tv.commerceErrorType;Q2a!==void 0&&(T(nb,4,lob[Q2a]),uR++);var R2a=tv.errorMessage;R2a!==void 0&&(S(nb,2,R2a),uR++);var S2a=tv.errorInfo;S2a!==void 0&&(S(nb,3,S2a),uR++);var Mra=[uR===Object.keys(tv).length,nb];break e}catch(Ra){Y(Ra);Mra=[!1,void 0];break e}}var T2a=
Mra;T2a[0]&&(gk(zO,Fz,1,T2a[1]),AO++)}var Nra=[AO===Object.keys(PG).length,zO];break d}catch(Ra){Y(Ra);Nra=[!1,void 0];break d}Nra=void 0}var U2a=Nra;U2a[0]&&(hk(xO,Kpa,1,Rnb,U2a[1]),yO++)}var Ora=[yO===Object.keys(OG).length,xO];break c}catch(Ra){Y(Ra);Ora=[!1,void 0];break c}Ora=void 0}var V2a=Ora;V2a[0]&&(gk(NG,Lpa,2,V2a[1]),JB++)}var Pra=[JB===Object.keys(IB).length,NG];break b}catch(Ra){Y(Ra);Pra=[!1,void 0];break b}Pra=void 0}var W2a=Pra;W2a[0]&&(gk(r,Mpa,30,W2a[1]),t++)}var Qra=[t===Object.keys(q).length,
r];break a}catch(Ra){Y(Ra);Qra=[!1,void 0];break a}Qra=void 0}var X2a=Qra;X2a[0]&&(gk(b,Opa,3,X2a[1]),c++)}var Y2a=a.flowType;Y2a!==void 0&&(T(b,4,Unb[Y2a]),c++);var Z2a=a.flowEventStatus;Z2a!==void 0&&(Pk(b,5,Z2a),c++);var $2a=a.csn;$2a!==void 0&&(S(b,6,$2a),c++);var a3a=a.can;a3a!==void 0&&(S(b,7,a3a),c++);var Rra=a.cuiAssociations;if(Rra){a:{var Sra=new Hx,b3a=0;try{var c3a=Rra.association;c3a&&(ZN(Sra.j.bind(Sra),c3a,zOa),b3a++);var Tra=[b3a===Object.keys(Rra).length,Sra];break a}catch(Ra){Y(Ra);
Tra=[!1,void 0];break a}}var d3a=Tra;d3a[0]&&(gk(b,Hx,8,d3a[1]),c++)}return[c===Object.keys(a).length,b]}catch(Ra){return Y(Ra),[!1,void 0]}},
idbQuotaExceeded:function(a){var b=new Upa,c=0;try{var d=a.deviceStorageUsageMbytes;d!==void 0&&(Rk(b,1,d),c++);var e=a.deviceStorageQuotaMbytes;e!==void 0&&(Rk(b,2,e),c++);var f=a.isIframe;f!==void 0&&(Ok(b,3,f),c++);var h=a.isSw;h!==void 0&&(Ok(b,4,h),c++);var l=a.dbName;l!==void 0&&(S(b,5,l),c++);var m=a.objectStoreNames;m!==void 0&&(S(b,6,m),c++);var n=a.transactionCount;n!==void 0&&(Pk(b,7,n),c++);var p=a.transactionMode;p!==void 0&&(S(b,8,p),c++);return[c===Object.keys(a).length,b]}catch(q){return Y(q),
[!1,void 0]}},
idbTransactionAborted:function(a){var b=new Vpa,c=0;try{var d=a.objectStoreNames;d!==void 0&&(S(b,1,d),c++);var e=a.hasWindowUnloaded;e!==void 0&&(Ok(b,2,e),c++);var f=a.transactionCount;f!==void 0&&(Pk(b,3,f),c++);var h=a.transactionDuration;h!==void 0&&(Pk(b,4,h),c++);var l=a.dbDuration;l!==void 0&&(Pk(b,5,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}},
streamzIncremented:function(a){var b=new pqa,c=0;try{var d=a.serializedIncrementBatch;d!==void 0&&(Vk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
sliEventBatch:function(a){var b=new iz,c=0;try{var d=a.loggedEvents;d&&(ZN(b.j.bind(b),d,oPa),c++);var e=a.unloggedEvents;e&&(ZN(b.B.bind(b),e,oPa),c++);var f=a.playerClientVersion;f!==void 0&&(Sk(b,3,f),c++);var h=a.playerCanaryState;h!==void 0&&(T(b,4,Lnb[h]),c++);var l=a.dimensions;if(l){a:{var m=new Qoa;d=0;try{var n=l.playerClientVersion;n!==void 0&&(Sk(m,1,n),d++);var p=l.playerCanaryState;p!==void 0&&(T(m,2,Lnb[p]),d++);var q=[d===Object.keys(l).length,m];break a}catch(r){Y(r);q=[!1,void 0];
break a}}l=q;l[0]&&(gk(b,Qoa,5,l[1]),c++)}return[c===Object.keys(a).length,b]}catch(r){return Y(r),[!1,void 0]}},
playbackAssociated:function(a){var b=new Jz,c=0;try{var d=a.cpn;d!==void 0&&(S(b,1,d),c++);var e=a.playbackVe;if(e){var f=aO(e);f[0]&&(gk(b,lz,2,f[1]),c++)}var h=a.csn;h!==void 0&&(S(b,3,h),c++);var l=a.queueInfo;if(l){a:{var m=new Iz;d=0;try{var n=l.enqueueingVe;if(n){var p=aO(n);p[0]&&(gk(m,lz,1,p[1]),d++)}var q=l.enqueueingCsn;q!==void 0&&(S(m,2,q),d++);var r=l.clientEnqueueingTimeMs;r!==void 0&&(Rk(m,3,r),d++);var t=[d===Object.keys(l).length,m];break a}catch(u){Y(u);t=[!1,void 0];break a}t=void 0}l=
t;l[0]&&(gk(b,Iz,4,l[1]),c++)}return[c===Object.keys(a).length,b]}catch(u){return Y(u),[!1,void 0]}},
autoplayTriggered:function(a){var b=new Soa,c=0;try{var d=a.intentional;d!==void 0&&(Ok(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
webPlayerApiCalled:function(a){var b=new eA,c=0;try{var d=a.callerUrl;d!==void 0&&(S(b,1,d),c++);var e=a.methodName;e!==void 0&&(S(b,2,e),c++);var f=a.origin;f!==void 0&&(S(b,3,f),c++);var h=a.playerStyle;h!==void 0&&(S(b,4,h),c++);var l=a.embeddedPlayerMode;l!==void 0&&(T(b,5,cnb[l]),c++);var m=a.errorCode;m!==void 0&&(Pk(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}},
embedsAdEvent:function(a){var b=new Roa,c=0;try{var d=a.eventType;d!==void 0&&(T(b,1,Onb[d]),c++);var e=a.breakType;e!==void 0&&(T(b,2,Nnb[e]),c++);var f=a.packageName;f!==void 0&&(S(b,3,f),c++);var h=a.embedUrl;h!==void 0&&(S(b,4,h),c++);var l=a.adSource;l!==void 0&&(T(b,5,Pnb[l]),c++);var m=a.youtubeHost;m!==void 0&&(S(b,6,m),c++);var n=a.embeddedPlayerMode;n!==void 0&&(T(b,7,cnb[n]),c++);return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}},
embedsShouldRequestStorageAccessResult:function(a){var b=new Uoa,c=0;try{var d=a.result;d!==void 0&&(Ok(b,1,d),c++);var e=a.returnsUndefined;e!==void 0&&(Ok(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
embedsRequestStorageAccessState:function(a){var b=new Toa,c=0;try{var d=a.isCued;d!==void 0&&(Ok(b,1,d),c++);var e=a.isAutoplayBlocked;e!==void 0&&(Ok(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
embedsRequestStorageAccessFailedState:function(a){var b=new jz,c=0;try{var d=a.state;d!==void 0&&(b.Ic(d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
heartbeatActionPlayerHalted:function(a){var b=new Spa,c=0;try{var d=a.serializedServerContext;d!==void 0&&(Vk(b,1,d),c++);var e=a.enforcedPolicyToHaltOnNetworkFailure;e!==void 0&&(Ok(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}},
heartbeatActionPlayerTransitioned:function(a){var b=new Tpa,c=0;try{var d=a.reason;d!==void 0&&(T(b,1,Wnb[d]),c++);var e=a.trigger;e!==void 0&&(T(b,2,Xnb[e]),c++);var f=a.serializedServerContext;f!==void 0&&(Vk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}},
embedsItpWatchLaterResult:function(a){var b=new Voa,c=0;try{var d=a.accepted;d!==void 0&&(Ok(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
html5PlayerHealthEvent:function(a){var b=new Gz,c=0;try{var d=a.started;d!==void 0&&(Ok(b,1,d),c++);var e=a.stateAtSend;e!==void 0&&(T(b,2,kob[e]),c++);var f=a.joinLatencySecs;f!==void 0&&(Tk(b,4,f),c++);var h=a.playTimeSecs;h!==void 0&&(Tk(b,5,h),c++);var l=a.rebufferTimeSecs;l!==void 0&&(Tk(b,6,l),c++);var m=a.playerCanaryType;m!==void 0&&(T(b,7,Znb[m]),c++);var n=a.isAd;n!==void 0&&(Ok(b,8,n),c++);var p=a.liveMode;p!==void 0&&(T(b,9,job[p]),c++);var q=a.isGapless;q!==void 0&&(Ok(b,10,q),c++);var r=
a.hasDrm;r!==void 0&&(Ok(b,11,r),c++);var t=a.seekCount;t!==void 0&&(Pk(b,12,t),c++);var u=a.networkErrorCount;u!==void 0&&(Pk(b,13,u),c++);var w=a.nonNetworkErrorCount;w!==void 0&&(Pk(b,14,w),c++);var A=a.isServerStitchedDai;A!==void 0&&(Ok(b,15,A),c++);var C=a.playerCanaryStage;C!==void 0&&(T(b,16,Ynb[C]),c++);var F=a.encounteredSabrFallback;F!==void 0&&(Ok(b,17,F),c++);return[c===Object.keys(a).length,b]}catch(G){return Y(G),[!1,void 0]}},
adsClientStateChange:function(a){var b=new goa,c=0;try{var d=a.cuepointTrigger;if(d){a:{var e=new cy,f=0;try{var h=d.type;h!==void 0&&(T(e,1,xnb[h]),f++);var l=d.event;l!==void 0&&(T(e,2,wnb[l]),f++);var m=d.cuepointId;m!==void 0&&(S(e,3,m),f++);var n=d.totalCueDurationMs;n!==void 0&&(Tk(e,4,n),f++);var p=d.playheadTimeMs;p!==void 0&&(Tk(e,5,p),f++);var q=d.cueStartTimeMs;q!==void 0&&(Tk(e,6,q),f++);var r=d.cuepointReceivedTimeMs;r!==void 0&&(Tk(e,7,r),f++);var t=d.contentCpn;t!==void 0&&(S(e,8,t),
f++);var u=d.externalChannelId;u!==void 0&&(S(e,9,u),f++);var w=[f===Object.keys(d).length,e];break a}catch(mc){Y(mc);w=[!1,void 0];break a}}var A=w;A[0]&&(hk(b,cy,1,v2,A[1]),c++)}var C=a.daiStateTrigger;if(C){a:{var F=new hy,G=0;try{var K=C.contentCpn;K!==void 0&&(S(F,1,K),G++);var N=C.totalCueDurationMs;N!==void 0&&(Tk(F,2,N),G++);var R=C.filledAdsDurationMs;R!==void 0&&(Tk(F,3,R),G++);var da=C.cueStartChange;da!==void 0&&(T(F,4,Dnb[da]),G++);var oa=C.cueDurationChange;oa!==void 0&&(T(F,5,Bnb[oa]),
G++);var qa=C.cueDurationChangeReason;qa!==void 0&&(T(F,6,Cnb[qa]),G++);var ha=C.errorType;ha!==void 0&&(T(F,7,Enb[ha]),G++);var ta=C.externalChannelId;ta!==void 0&&(S(F,8,ta),G++);var P=C.adClientData;if(P){var ua=tOa(P);ua[0]&&(gk(F,Sx,9,ua[1]),G++)}var y=[G===Object.keys(C).length,F];break a}catch(mc){Y(mc);y=[!1,void 0];break a}y=void 0}var Z=y;Z[0]&&(hk(b,hy,2,v2,Z[1]),c++)}var cb=a.daiAdBreakCriticalError;if(cb){a:{var La=new dy,$a=0;try{var Ya=cb.contentCpn;Ya!==void 0&&(S(La,1,Ya),$a++);var Ha=
cb.errorType;Ha!==void 0&&(T(La,2,Enb[Ha]),$a++);var Ta=cb.externalChannelId;Ta!==void 0&&(S(La,3,Ta),$a++);var ob=cb.msg;ob!==void 0&&(S(La,4,ob),$a++);var B=cb.cueIdentifier;B!==void 0&&(S(La,5,B),$a++);var E=[$a===Object.keys(cb).length,La];break a}catch(mc){Y(mc);E=[!1,void 0];break a}}var D=E;D[0]&&(hk(b,dy,3,v2,D[1]),c++)}var J=a.daiAdBreakWarning;if(J){a:{var L=new fy,aa=0;try{var fa=J.contentCpn;fa!==void 0&&(S(L,1,fa),aa++);var ia=J.errorType;ia!==void 0&&(T(L,2,Enb[ia]),aa++);var O=J.externalChannelId;
O!==void 0&&(S(L,3,O),aa++);var ka=J.msg;ka!==void 0&&(S(L,4,ka),aa++);var la=J.cueIdentifier;la!==void 0&&(S(L,5,la),aa++);var za=[aa===Object.keys(J).length,L];break a}catch(mc){Y(mc);za=[!1,void 0];break a}}var Sa=za;Sa[0]&&(hk(b,fy,4,v2,Sa[1]),c++)}var gb=a.daiAdBreakInfo;if(gb){a:{var Ab=new ey,pb=0;try{var Za=gb.contentCpn;Za!==void 0&&(S(Ab,1,Za),pb++);var qc=gb.totalCueDurationMs;qc!==void 0&&(Rk(Ab,2,qc),pb++);var ac=gb.filledAdsDurationMs;ac!==void 0&&(Rk(Ab,3,ac),pb++);var bc=gb.cueStartChange;
bc!==void 0&&(T(Ab,4,Dnb[bc]),pb++);var nc=gb.cueDurationChange;nc!==void 0&&(T(Ab,5,Bnb[nc]),pb++);var Wc=gb.cueDurationChangeReason;Wc!==void 0&&(T(Ab,6,Cnb[Wc]),pb++);var Yb=gb.externalChannelId;Yb!==void 0&&(S(Ab,7,Yb),pb++);var wc=gb.cueIdentifier;wc!==void 0&&(S(Ab,8,wc),pb++);var $c=gb.infoType;$c!==void 0&&(T(Ab,9,Fnb[$c]),pb++);var Pc=gb.msg;Pc!==void 0&&(S(Ab,10,Pc),pb++);var uc=gb.filledAdCount;uc!==void 0&&(Pk(Ab,11,uc),pb++);var Tb=[pb===Object.keys(gb).length,Ab];break a}catch(mc){Y(mc);
Tb=[!1,void 0];break a}}var Ub=Tb;Ub[0]&&(hk(b,ey,5,v2,Ub[1]),c++)}var zd=a.visibilityErrorDebugInfo;if(zd){a:{var rd=new foa,sd=0;try{var $b=zd.elementName;$b!==void 0&&(S(rd,1,$b),sd++);var Fc=zd.contentVideoPlaybackEventId;Fc!==void 0&&(S(rd,2,Fc),sd++);var Hb=zd.errorList;Hb!==void 0&&(S(rd,3,Hb),sd++);var cd=zd.htmlDump;cd!==void 0&&(S(rd,4,cd),sd++);var Ad=[sd===Object.keys(zd).length,rd];break a}catch(mc){Y(mc);Ad=[!1,void 0];break a}}var Pb=Ad;Pb[0]&&(hk(b,foa,6,v2,Pb[1]),c++)}var he=a.playbackTimelineAdBreakStateTrigger;
if(he){a:{var Ud=new doa,Vd=0;try{var Ce=he.cueIdentifier;Ce!==void 0&&(S(Ud,1,Ce),Vd++);var De=he.timestampUnixEpochSec;De!==void 0&&(Rk(Ud,2,De),Vd++);var Ld=he.adRequestState;Ld!==void 0&&(T(Ud,3,ynb[Ld]),Vd++);var bf=he.segmentState;bf!==void 0&&(T(Ud,4,znb[bf]),Vd++);var Qe=he.timestampUnixEpochMs;Qe!==void 0&&(Rk(Ud,5,Qe),Vd++);var Md=[Vd===Object.keys(he).length,Ud];break a}catch(mc){Y(mc);Md=[!1,void 0];break a}}var Ff=Md;Ff[0]&&(hk(b,doa,7,v2,Ff[1]),c++)}var Nd=a.extraLongAdBreakDebugInfo;
if(Nd){a:{var ie=new coa,ad=0;try{var ld=Nd.contentVideoPlaybackEventId;ld!==void 0&&(S(ie,1,ld),ad++);var td=Nd.adPlacementKindCuepointInitiatedCueRange;if(td){var Wd=AOa(td);Wd[0]&&(gk(ie,jy,2,Wd[1]),ad++)}var Vf=Nd.adPlacementConfigImpliedCueRange;if(Vf){var qf=AOa(Vf);qf[0]&&(gk(ie,jy,3,qf[1]),ad++)}var Gf=Nd.adPlacementKindMillisecondsInitiatedCueRange;if(Gf){var Ee=AOa(Gf);Ee[0]&&(gk(ie,jy,4,Ee[1]),ad++)}var Vb=Nd.cueIdentifier;Vb!==void 0&&(S(ie,5,Vb),ad++);var Fe=[ad===Object.keys(Nd).length,
ie];break a}catch(mc){Y(mc);Fe=[!1,void 0];break a}Fe=void 0}var gh=Fe;gh[0]&&(hk(b,coa,8,v2,gh[1]),c++)}var Rh=a.comparePyvAdTagInfo;if(Rh){a:{var Sh=new boa,Th=0;try{var sf=Rh.pyvAdTagUrlFromPlayer;sf!==void 0&&(S(Sh,1,sf),Th++);var hf=Rh.pyvAdTagUrlFromWatchNext;hf!==void 0&&(S(Sh,2,hf),Th++);var He=[Th===Object.keys(Rh).length,Sh];break a}catch(mc){Y(mc);He=[!1,void 0];break a}}var Uh=He;Uh[0]&&(hk(b,boa,9,v2,Uh[1]),c++)}var vc=a.driftRecoveryInfo;if(vc){a:{var yc=new iy,Jc=0;try{var mj=vc.contentCpn;
mj!==void 0&&(S(yc,1,mj),Jc++);var tf=vc.cueIdentifier;tf!==void 0&&(S(yc,2,tf),Jc++);var qg=vc.driftRecoveryMs;qg!==void 0&&(Rk(yc,3,qg),Jc++);var rg=vc.breakDurationMs;rg!==void 0&&(Rk(yc,4,rg),Jc++);var Og=vc.driftFromHeadMs;Og!==void 0&&(Rk(yc,5,Og),Jc++);var nd=vc.appliedDriftRecoveryMs;nd!==void 0&&(Rk(yc,6,nd),Jc++);var sg=vc.destinationMs;sg!==void 0&&(Rk(yc,7,sg),Jc++);var tg=vc.adClientData;if(tg){var Pg=tOa(tg);Pg[0]&&(gk(yc,Sx,8,Pg[1]),Jc++)}var ug=[Jc===Object.keys(vc).length,yc];break a}catch(mc){Y(mc);
ug=[!1,void 0];break a}ug=void 0}var Vh=ug;Vh[0]&&(hk(b,iy,10,v2,Vh[1]),c++)}var uf=a.adsClientEvent;if(uf){a:{var Te=new aoa,vg=0;try{var Wh=uf.eventType;Wh!==void 0&&(T(Te,1,vnb[Wh]),vg++);var Xh=uf.adClientData;if(Xh){var Ue=tOa(Xh);Ue[0]&&(gk(Te,Sx,3,Ue[1]),vg++)}var jh=uf.serializedAdServingData;jh!==void 0&&(Vk(Te,4,jh),vg++);var Qg=uf.eventOrder;Qg!==void 0&&(Pk(Te,5,Qg),vg++);var nj=uf.serializedSlotAdServingData;nj!==void 0&&(Vk(Te,6,nj),vg++);var Qd=uf.errorInfo;if(Qd){b:{var Ve=new by,
me=0;try{var Hi=Qd.errorType;Hi!==void 0&&(T(Ve,1,unb[Hi]),me++);var jf=Qd.errorMessage;jf!==void 0&&(T(Ve,2,tnb[jf]),me++);var kf=[me===Object.keys(Qd).length,Ve];break b}catch(mc){Y(mc);kf=[!1,void 0];break b}}var vf=kf;vf[0]&&(gk(Te,by,7,vf[1]),vg++)}var Zf=[vg===Object.keys(uf).length,Te];break a}catch(mc){Y(mc);Zf=[!1,void 0];break a}Zf=void 0}var Rg=Zf;Rg[0]&&(hk(b,aoa,11,v2,Rg[1]),c++)}var Ie=a.daiAdStateTracking;if(Ie){a:{var lf=new gy,Jf=0;try{var Ii=Ie.eventType;Ii!==void 0&&(T(lf,1,Anb[Ii]),
Jf++);var oj=Ie.contentCpn;oj!==void 0&&(S(lf,2,oj),Jf++);var om=Ie.externalChannelId;om!==void 0&&(S(lf,3,om),Jf++);var pm=Ie.adCpn;pm!==void 0&&(S(lf,4,pm),Jf++);var ok=Ie.adCount;ok!==void 0&&(Rk(lf,5,ok),Jf++);var pk=Ie.msg;pk!==void 0&&(S(lf,6,pk),Jf++);var pj=[Jf===Object.keys(Ie).length,lf];break a}catch(mc){Y(mc);pj=[!1,void 0];break a}}var We=pj;We[0]&&(hk(b,gy,12,v2,We[1]),c++)}var Je=a.adTrimmingInfo;if(Je){a:{var $d=new $x,kh=0;try{var Yh=Je.contentCpn;Yh!==void 0&&(S($d,1,Yh),kh++);var qj=
Je.cueIdentifier;qj!==void 0&&(S($d,2,qj),kh++);var ql=Je.adMediaInfo;ql&&(ZN($d.j.bind($d),ql,BOa),kh++);var Kf=[kh===Object.keys(Je).length,$d];break a}catch(mc){Y(mc);Kf=[!1,void 0];break a}}var Zh=Kf;Zh[0]&&(hk(b,$x,13,v2,Zh[1]),c++)}var Sg=a.adsAttributionEvent;if(Sg){a:{var $h=new ay,Ji=0;try{var qk=Sg.errorCode;qk!==void 0&&(T($h,1,Gnb[qk]),Ji++);var rk=Sg.attributionStep;rk!==void 0&&(T($h,2,Hnb[rk]),Ji++);var $f=Sg.innerErrorDomain;$f!==void 0&&(S($h,3,$f),Ji++);var rj=Sg.innerErrorCode;
rj!==void 0&&(Rk($h,4,rj),Ji++);var lh=[Ji===Object.keys(Sg).length,$h];break a}catch(mc){Y(mc);lh=[!1,void 0];break a}}var sj=lh;sj[0]&&(hk(b,ay,14,v2,sj[1]),c++)}var mh=a.playerDebugData;if(mh){a:{var Tg=new ky,tj=0;try{var rl=mh.pmlSignal;rl!==void 0&&(Ok(Tg,1,rl),tj++);var qm=mh.contentCpn;qm!==void 0&&(S(Tg,2,qm),tj++);var uj=[tj===Object.keys(mh).length,Tg];break a}catch(mc){Y(mc);uj=[!1,void 0];break a}}var sk=uj;sk[0]&&(hk(b,ky,15,v2,sk[1]),c++)}var Ed=a.sourceRegistrationEvent;if(Ed){a:{var ag=
new eoa,wg=0;try{var sl=Ed.eventType;sl!==void 0&&(T(ag,1,Inb[sl]),wg++);var tk=[wg===Object.keys(Ed).length,ag];break a}catch(mc){Y(mc);tk=[!1,void 0];break a}}var uk=tk;uk[0]&&(hk(b,eoa,16,v2,uk[1]),c++)}return[c===Object.keys(a).length,b]}catch(mc){return Y(mc),[!1,void 0]}},
offlineTransferStatusChanged:CNa,offlineStateSnapshot:function(a){var b=new dA,c=0;try{var d=a.offlineVideos;d&&(ZN(b.B.bind(b),d,eOa),c++);var e=a.offlinePlaylists;e&&(ZN(b.j.bind(b),e,gOa),c++);var f=a.freeDiskSpaceBytes;f!==void 0&&(Rk(b,3,f),c++);var h=a.lastOfflineUsageTimeMs;h!==void 0&&(Rk(b,4,h),c++);var l=a.lastOfflinePlaybackTimeMs;l!==void 0&&(Rk(b,5,l),c++);var m=a.lastOfflineSaveTimeMs;m!==void 0&&(Rk(b,6,m),c++);var n=a.lastOfflineDownloadSuccessTimeMs;n!==void 0&&(Rk(b,7,n),c++);var p=
a.isBatteryCharging;p!==void 0&&(Ok(b,8,p),c++);var q=a.detailedNetworkType;q!==void 0&&(T(b,9,kO[q]),c++);var r=a.batteryLevelPercentage;r!==void 0&&(Pk(b,10,r),c++);var t=a.isPostMigrationState;t!==void 0&&(Ok(b,11,t),c++);var u=a.offlineCacheVerificationFailure;if(u){a:{var w=new Yz;d=0;try{var A=u.numUncachedVideos;A!==void 0&&(Qk(w,1,A),d++);var C=u.numTotalCompletedVideos;C!==void 0&&(Qk(w,2,C),d++);var F=u.uncachedVideos;F&&(ZN(w.j.bind(w),F,jOa),d++);var G=[d===Object.keys(u).length,w];break a}catch(P){Y(P);
G=[!1,void 0];break a}}u=G;u[0]&&(gk(b,Yz,12,u[1]),c++)}var K=a.additionalOfflineClientState;if(K){a:{var N=new hqa;u=0;try{var R=K.mainAppAdditionalOfflineClientState;if(R){b:{var da=new $z;G=0;try{var oa=R.downloadRecsVideos;oa&&(ZN(da.j.bind(da),oa,kOa),G++);var qa=R.smartDownloadVideos;qa&&(ZN(da.B.bind(da),qa,lOa),G++);var ha=[G===Object.keys(R).length,da];break b}catch(P){Y(P);ha=[!1,void 0];break b}}R=ha;R[0]&&(gk(N,$z,1,R[1]),u++)}var ta=[u===Object.keys(K).length,N];break a}catch(P){Y(P);
ta=[!1,void 0];break a}ta=void 0}K=ta;K[0]&&(gk(b,hqa,13,K[1]),c++)}return[c===Object.keys(a).length,b]}catch(P){return Y(P),[!1,void 0]}}},ehb={adNotify:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;
hk(d,Tna,184,fE,a);c?dE("adNotify",d,c,b):eE("adNotify",d,b)},
biscottiBasedDetection:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,ez,439,fE,a);c?dE("biscottiBasedDetection",d,c,b):eE("biscottiBasedDetection",d,b)},
adNotifyFilled:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Sna,300,fE,a);c?dE("adNotifyFilled",d,c,b):eE("adNotifyFilled",d,b)},
idbTransactionEnded:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Hz,352,fE,a);c?dE("idbTransactionEnded",d,c,b):eE("idbTransactionEnded",d,b)},
idbUnexpectedlyClosed:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Wpa,348,fE,a);c?dE("idbUnexpectedlyClosed",d,c,b):eE("idbUnexpectedlyClosed",d,b)},
flowEvent:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Qpa,304,fE,a);c?dE("flowEvent",d,c,b):eE("flowEvent",d,b)},
idbQuotaExceeded:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Upa,351,fE,a);c?dE("idbQuotaExceeded",d,c,b):eE("idbQuotaExceeded",d,b)},
idbTransactionAborted:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Vpa,353,fE,a);c?dE("idbTransactionAborted",d,c,b):eE("idbTransactionAborted",d,b)},
streamzIncremented:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,pqa,126,fE,a);c?dE("streamzIncremented",d,c,b):eE("streamzIncremented",d,b)},
sliEventBatch:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,iz,344,fE,a);c?dE("sliEventBatch",d,c,b):eE("sliEventBatch",d,b)},
playbackAssociated:Vwa,autoplayTriggered:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Soa,209,fE,a);c?dE("autoplayTriggered",d,c,b):eE("autoplayTriggered",d,b)},
webPlayerApiCalled:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,eA,76,fE,a);c?dE("webPlayerApiCalled",d,c,b):eE("webPlayerApiCalled",d,b)},
embedsAdEvent:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Roa,327,fE,a);c?dE("embedsAdEvent",d,c,b):eE("embedsAdEvent",d,b)},
embedsShouldRequestStorageAccessResult:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Uoa,251,fE,a);c?dE("embedsShouldRequestStorageAccessResult",d,c,b):eE("embedsShouldRequestStorageAccessResult",d,b)},
embedsRequestStorageAccessState:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Toa,256,fE,a);c?dE("embedsRequestStorageAccessState",d,c,b):eE("embedsRequestStorageAccessState",d,b)},
embedsRequestStorageAccessFailedState:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,jz,257,fE,a);c?dE("embedsRequestStorageAccessFailedState",d,c,b):eE("embedsRequestStorageAccessFailedState",d,b)},
heartbeatActionPlayerHalted:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Spa,332,fE,a);c?dE("heartbeatActionPlayerHalted",d,c,b):eE("heartbeatActionPlayerHalted",d,b)},
heartbeatActionPlayerTransitioned:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Tpa,330,fE,a);c?dE("heartbeatActionPlayerTransitioned",d,c,b):eE("heartbeatActionPlayerTransitioned",d,b)},
embedsItpWatchLaterResult:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Voa,266,fE,a);c?dE("embedsItpWatchLaterResult",d,c,b):eE("embedsItpWatchLaterResult",d,b)},
html5PlayerHealthEvent:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,Gz,293,fE,a);c?dE("html5PlayerHealthEvent",d,c,b):eE("html5PlayerHealthEvent",d,b)},
adsClientStateChange:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,goa,197,fE,a);c?dE("adsClientStateChange",d,c,b):eE("adsClientStateChange",d,b)},
offlineTransferStatusChanged:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,tz,2,fE,a);c?dE("offlineTransferStatusChanged",d,c,b):eE("offlineTransferStatusChanged",d,b)},
offlineStateSnapshot:function(a,b,c){var d=g.FA("jspb_sparse_encoded_pivot")?new fA([{}]):new fA;hk(d,dA,22,fE,a);c?dE("offlineStateSnapshot",d,c,b):eE("offlineStateSnapshot",d,b)}};qO.prototype.Hy=function(a){this.client=a};
qO.prototype.j=function(){this.clear();this.csn=g.jE()};
qO.prototype.clear=function(){this.C.clear();this.B.clear();this.D.clear();this.csn=null};sO.prototype.Hy=function(a){g.nA(rO().Hy).bind(rO())(a)};
sO.prototype.clear=function(){g.nA(rO().clear).bind(rO())()};g.k=tO.prototype;g.k.Hy=function(a){this.client=a};
g.k.wX=function(a,b){var c=this;b=b===void 0?{}:b;g.nA(function(){var d,e,f,h=((d=g.V(a==null?void 0:a.commandMetadata,g.u2))==null?void 0:d.rootVe)||((e=g.V(a==null?void 0:a.commandMetadata,rnb))==null?void 0:(f=e.screenVisualElement)==null?void 0:f.uiType);if(h){d=g.V(a==null?void 0:a.commandMetadata,Iob);if(d==null?0:d.parentTrackingParams){var l=g.hE(d.parentTrackingParams);if(d.parentCsn)var m=d.parentCsn}else b.clickedVisualElement?l=b.clickedVisualElement:a.clickTrackingParams&&(l=g.hE(a.clickTrackingParams));
a:{d=g.V(a,g.ES);e=g.V(a,xob);if(d){if(e=hLa(d,"VIDEO")){d={token:e,videoId:d.videoId};break a}}else if(e&&(d=hLa(e,"PLAYLIST"))){d={token:d,playlistId:e.playlistId};break a}d=void 0}b=Object.assign({},{cttAuthInfo:d,parentCsn:m},b);if(g.FA("expectation_logging")){var n;b.loggingExpectations=((n=g.V(a==null?void 0:a.commandMetadata,rnb))==null?void 0:n.loggingExpectations)||void 0}CO(c,h,l,b)}else g.nE(new g.FB("Error: Trying to create a new screen without a rootVeType",a))})()};
g.k.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=c===void 0?0:c;a?(c=g.jE(c===void 0?0:c))?(Yxa(this.client,c,g.hE(a),b),b=!0):b=!1:b=!1;return b};
g.k.stateChanged=function(a,b,c){this.visualElementStateChanged(g.hE(a),b,c===void 0?0:c)};
g.k.visualElementStateChanged=function(a,b,c){c=c===void 0?0:c;c===0&&this.B.has(c)?this.Z.push([a,b]):xPa(this,a,b,c)};FO.prototype.fetch=function(a,b,c){var d=this,e=APa(a,b,c);return new Promise(function(f,h){function l(){if(c==null?0:c.Fr)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((m=b.body)!=null?m:null)})};
FO.prototype.handleResponse=function(a,b,c,d){c=c.replace(")]}'","");try{var e=JSON.parse(c)}catch(f){g.nE(new g.FB("JSON parsing failed after XHR fetch",a,b,c));if((d==null?0:d.Fr)&&c)throw new g.cH(1,"JSON parsing failed after XHR fetch");e={}}b!==200&&(g.nE(new g.FB("XHR API fetch failed",a,b,c)),e=Object.assign({},e,{errorMetadata:{status:b}}));return e};GO.getInstance=function(){var a=g.Wa("ytglobal.storage_");a||(a=new GO,g.Va("ytglobal.storage_",a));return a};
GO.prototype.estimate=function(){var a,b,c;return g.H(function(d){a=navigator;return((b=a.storage)==null?0:b.estimate)?d.return(a.storage.estimate()):((c=a.webkitTemporaryStorage)==null?0:c.queryUsageAndQuota)?d.return(BPa()):d.return()})};
g.Va("ytglobal.storageClass_",GO);Asa.prototype.Gl=function(a){this.handleError(a)};
Asa.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.FA("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.FA("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":DPa(this,b);break;case "TRANSACTION_ENDED":this.C&&Math.random()<=.1&&this.j("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=
Object.assign({},b,{hasWindowUnloaded:this.B}),this.j("idbTransactionAborted",a)}};var W2={},rWa=g.DC("yt-player-local-media",{As:(W2.index={Kn:2},W2.media={Kn:2},W2.captions={Kn:5},W2),shared:!1,upgrade:function(a,b){b(2)&&(g.jC(a,"index"),g.jC(a,"media"));b(5)&&g.jC(a,"captions");b(6)&&(kC(a,"metadata"),kC(a,"playerdata"))},
version:5});var Xpb={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},X2;a:{var Y2=g.oc();Y2=Y2.toLowerCase();if(g.hc(Y2,"android")){var Ypb=Y2.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Ypb){var Zpb=parseFloat(Ypb[1]);if(Zpb<100){X2=Zpb;break a}}var $pb=Y2.match("("+Object.keys(Xpb).join("|")+")");X2=$pb?Xpb[$pb[0]]:0}else X2=void 0}var qR=X2,jVa=qR>=0;var heb=window;var EPa=Kd(function(){var a,b;return(b=(a=window).matchMedia)==null?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var GPa;g.HO=new iH;GPa=0;var IO={bf:function(a){a.reverse()},
oj:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c},
Cn:function(a,b){a.splice(0,b)}};var igb=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var VQ=QPa()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.zC?!0:!1;var gVa={ola:"adunit",uya:"detailpage",gza:"editpage",oza:"embedded",MPa:"leanback",v4a:"previewpage",G5a:"profilepage",qW:"unplugged",E3a:"playlistoverview",Qbb:"sponsorshipsoffer",q9a:"shortspage",CIa:"handlesclaiming",oKa:"immersivelivepage",Nwa:"creatormusic",pKa:"immersivelivepreviewpage",Uga:"admintoolyurt"};var fRa={ANDROID:3,ANDROID_KIDS:18,ANDROID_MUSIC:21,ANDROID_UNPLUGGED:29,WEB:1,WEB_REMIX:67,WEB_UNPLUGGED:41,IOS:5,IOS_KIDS:19,IOS_MUSIC:26,IOS_UNPLUGGED:33},gRa={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"},meb={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var OWa={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.OO.prototype.getLanguageInfo=function(){return this.Yb};
g.OO.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");a.length>1&&(this.xtags=a[1])}return this.xtags};
g.OO.prototype.toString=function(){return this.Yb.name};
g.OO.prototype.getLanguageInfo=g.OO.prototype.getLanguageInfo;PO.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.j};
PO.prototype.compose=function(a){if(a.C&&SO(a))return rS;if(a.C||SO(this))return a;if(this.C||SO(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);var d=0;QO&&(d=this.ub!==0&&a.ub!==0?Math.min(this.ub,a.ub):this.ub===0?a.ub:this.ub);return QO&&b===this.B&&c===this.j&&d===this.ub||!QO&&b===this.B&&c===this.j?this:QO?new PO(b,c,!1,c===this.j&&d===this.ub?this.reason:a.reason,d):new PO(b,c,!1,c===this.j?this.reason:a.reason)};
PO.prototype.D=function(a){return!a.video||QO&&this.ub!==0&&this.ub<a.ub?!1:jRa(this,a.video.quality)};
var aqb=g.RO("auto","hd1080",!1,"l"),sdb=g.RO("auto","large",!1,"l"),rS=g.RO("auto","auto",!1,"p"),QO=!1;WO.prototype.Vt=function(a){a=a||rS;for(var b=g.Mt(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};
WO.prototype.WE=function(a){a=a||rS;return g.Mt(this.videoInfos,function(b){return a.D(b)})};
WO.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var CRa=new Set(["356"]);g.x(kRa,g.I);kRa.prototype.ya=function(){g.I.prototype.ya.call(this)};g.fP.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.fP.prototype.get=function(a){gP(this);return this.j[a]||null};
g.fP.prototype.Ge=function(){this.url||(this.url=JRa(this));return this.url};
g.fP.prototype.clone=function(){var a=new g.fP(this.B,this.D);a.scheme=this.scheme;a.path=this.path;a.C=this.C;a.j=g.jd(this.j);a.url=this.url;return a};
var IRa=[Ima];g.k=g.mP.prototype;g.k.vN=function(a){this.segments.push(a)};
g.k.qo=function(a){return!!this.Un(a)};
g.k.getDuration=function(a){return(a=this.Un(a))?a.duration:0};
g.k.gY=function(a){return this.getDuration(a)};
g.k.Wn=function(){return this.segments.length?this.segments[0].Qa:-1};
g.k.qf=function(a){return(a=this.Un(a))?a.ingestionTime:NaN};
g.k.Bd=function(){return this.segments.length?this.segments[this.segments.length-1].Qa:-1};
g.k.IF=function(a){return this.Bd()===a&&!this.B&&a>=0};
g.k.Yt=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.pd=function(){return this.segments[0].startTime};
g.k.vA=function(){return this.segments.length};
g.k.Jm=function(){return 0};
g.k.Ki=function(a){return(a=this.iA(a))?a.Qa:-1};
g.k.WJ=function(a){return(a=this.Un(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.Un(a))?a.startTime:0};
g.k.JJ=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.YJ=ba(2);g.k.isLoaded=function(){return this.segments.length>0};
g.k.Un=function(a){if(this.j&&this.j.Qa===a)return this.j;a=g.Qb(this.segments,new lP(a,0,0,0,""),function(b,c){return b.Qa-c.Qa});
return this.j=a>=0?this.segments[a]:null};
g.k.iA=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.Qb(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return this.j=a>=0?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.k.append=function(a){if(a.length)if(a=g.Kb(a),this.segments.length){var b=this.segments.length?g.zb(this.segments).endTime:0,c=a[0].Qa-this.Bd();c>1&&taa(this.segments);for(c=c>0?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.pY=function(){return 0};NRa.prototype.skip=function(a){this.j+=a};var Z2={},bqb=(Z2.predictStart="predictStart",Z2.start="start",Z2["continue"]="continue",Z2.stop="stop",Z2),RRa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};vP.prototype.tF=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"])};
vP.prototype.toString=function(){for(var a="",b=g.v(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};FP.prototype.Bo=function(){var a=this.pos;this.pos=0;var b=!1;try{JP(this,440786851)&&(this.pos=0,JP(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.nE(c);else throw c;}this.pos=a;return b};SP.prototype.set=function(a,b){this.base.get(a);this.j[a]=b;this.url=""};
SP.prototype.get=function(a){return this.j[a]||this.base.get(a)};
SP.prototype.Ge=function(){this.url||(this.url=pSa(this));return this.url};UP.prototype.Uj=function(a,b){if(this.N)return!0;if(iP(this.j))return!1;var c=TP(b,hP(this.j));if(c.timedOut<1&&c.j<1)return!1;c=c.timedOut+c.j;a=uSa(this,a);b=TP(b,hP(a));return b.timedOut+b.j+0<c};
UP.prototype.TJ=function(a){return this.C.get(a)};
UP.prototype.Al=function(a,b){a.base===this.j&&(this.j=qSa(a,b));a.base===this.D&&(this.D=qSa(a,b))};VP.prototype.qg=function(){return!!this.j&&this.index.isLoaded()};
VP.prototype.WA=function(){return!1};
VP.prototype.LV=function(a){return[a]};
VP.prototype.hC=function(a){return[a]};WP.prototype.toString=function(){return this.start+"-"+(this.end==null?"":this.end)};$P.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
$P.prototype.Cg=function(){return!!this.j.info.video};
$P.prototype.Tc=function(){var a=eQ(this),b="";g.Tc(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};fQ.prototype.lA=function(){return this.j?this.j.Ge():""};
fQ.prototype.eq=function(){return!!(this.j||this.D&&this.D.hn)};
fQ.prototype.Lp=function(){return bQ(this.kb[0])};
fQ.prototype.Al=function(a,b){this.resource.Al(a,b);if(this.j){this.j=qSa(a,b);b=g.v(["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")};g.x(iQ,VP);g.k=iQ.prototype;g.k.Sm=function(){return!1};
g.k.Ax=function(){return!0};
g.k.RA=function(){return!1};
g.k.WA=function(){return!this.G};
g.k.ax=function(){return new fQ([new $P(1,this,this.initRange,"getMetadataRequestInfo")],this.G)};
g.k.mz=function(){return null};
g.k.AD=function(a){this.vt(a);return this.Ax()&&a.B&&!a.Ue?new fQ([new $P(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Qa,a.startTime,a.duration,a.Tb+a.B,NaN,!0)],this.index.WJ(a.Qa)):this.xt(ESa(a),!1)};
g.k.Or=function(a,b){b=b===void 0?!1:b;a=this.index.Ki(a);b&&(a=Math.min(this.index.Bd(),a+1));return this.xt(a,!0)};
g.k.gQ=function(a){nTa(a)};
g.k.vt=function(a){return a.B===0?!0:this.index.Bd()>a.Qa&&this.index.Wn()<=a.Qa+1};
g.k.update=function(a,b,c){this.index.append(a);MRa(this.index,c);a=this.index;a.B=b;a.C="update"};
g.k.qg=function(){return this.WA()?!0:VP.prototype.qg.call(this)};
g.k.xt=function(a,b){var c=this.index.WJ(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=this.info.ub>0?this.info.ub*e:1E3;return new fQ([new $P(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
g.k.OP=function(){return this.WA()?0:this.initRange.length};
g.k.xS=function(){return!1};lQ.prototype.update=function(a){var b=void 0;this.B&&(b=this.B);var c=new lQ,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+jQ(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+jQ(a,"startNumber")||0;c.D=f;var l=b?b.startSecs+b.Hh:0,m=Date.parse(TSa(jQ(a,"yt:segmentIngestTime")))/1E3;c.G=a.parentElement.tagName==="SegmentTemplate";c.G&&(c.N=jQ(a,"media"));a=b?h-b.Qa:1;c.K=a>0?0:-a+1;a=g.v(d);for(d=a.next();!d.done;d=a.next()){d=d.value;for(var n=+d.getAttribute("d")/e,p=(+d.getAttribute("yt:sid")||
0)/e,q=+d.getAttribute("r")||0,r=0;r<=q;r++)if(b&&h<=b.Qa)h++;else{var t=new RSa(h,l,n,m+p,f);c.j.push(t);var u=d;var w=e,A=t.startSecs;t=u.getAttribute("yt:cuepointTimeOffset");var C=u.getAttribute("yt:cuepointDuration");if(t&&C){t=Number(t);A=-t/w+A;w=Number(C)/w;C=u.getAttribute("yt:cuepointContext")||null;var F=u.getAttribute("yt:cuepointIdentifier")||"";u=u.getAttribute("yt:cuepointEvent")||"";u=new tP(A,w,C,F,bqb[u]||"unknown",t)}else u=null;u&&c.C.push(u);h++;l+=n;f+=n;m+=n+p}}c.j.length&&
(c.B=g.zb(c.j))}this.K=c.K;this.B=c.B||this.B;g.Lb(this.j,c.j);g.Lb(this.C,c.C);this.G=c.G;this.N=c.N;this.D===-1&&(this.D=c.getStreamTimeOffset())};
lQ.prototype.getStreamTimeOffset=function(){return this.D===-1?0:this.D};g.x(bTa,g.mP);g.k=bTa.prototype;g.k.qo=function(a,b){a=mQ(this,a);return a>=0&&(b||!this.segments[a].pending)};
g.k.Wn=function(){return this.Ln?this.segments.length?this.iA(this.pd()).Qa:-1:g.mP.prototype.Wn.call(this)};
g.k.pd=function(){if(this.je)return 0;if(!this.Ln)return g.mP.prototype.pd.call(this);if(!this.segments.length)return 0;var a=Math.max(g.zb(this.segments).endTime-this.Cr,0);return this.gf>0&&this.iA(a).Qa<this.gf?this.Un(this.gf).startTime:a};
g.k.Yt=function(){if(!this.segments.length)return g.mP.prototype.Yt.call(this);var a=this.Bd();if(!this.Ln||a<=this.segments[this.segments.length-1].Qa)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new lP(a,Math.max(0,b.startTime-(b.Qa-a)*this.Sj),this.Sj,0,"sq/"+a,void 0,void 0,!0)}return this.je?Math.min(this.Cr,a.endTime):a.endTime};
g.k.vA=function(){return this.Ln?this.segments.length?this.Bd()-this.Wn()+1:0:g.mP.prototype.vA.call(this)};
g.k.Bd=function(){var a=Math.min(this.Li,Math.max(g.mP.prototype.Bd.call(this),this.Zp)),b=this.Cr*1E3;b=this.Ur>0&&this.Ur<b;this.je&&this.Cr>0&&this.Zp>0&&!b&&(b=this.iA(this.Cr))&&(a=Math.min(b.Qa-1,a));return a};
g.k.Ww=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.vN=function(a){var b=mQ(this,a.Qa);if(b>=0)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.nB&&a.Qa%(300/this.Sj)===0){var c=this.segments[0].Qa,d=Math.floor(this.nB/this.Sj);a=a.Qa-d;b=-(b+1)-d;b>0&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.MJ=function(){return this.Zp};
g.k.IF=function(a){return aTa?!this.B&&a>=0&&this.Bd()<=a:g.mP.prototype.IF.call(this,a)};
g.k.iA=function(a){if(!this.Ln)return g.mP.prototype.iA.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Qa-Math.ceil((this.segments[0].startTime-a)/this.Sj));else if(a>=b.endTime)b=b.Qa+Math.floor((a-b.endTime)/this.Sj+1);else{b=Rb(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
if(b>=0)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Qa-b.Qa-1))+1)+b.Qa}return this.Un(b)};
g.k.Un=function(a){if(!this.Ln)return g.mP.prototype.Un.call(this,a);if(!this.segments.length)return null;var b=mQ(this,a);if(b>=0)return this.segments[b];var c=-(b+1);b=this.Sj;if(c===0)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Qa-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Qa-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Qa-d.Qa-1),d=d.endTime+(a-d.Qa-1)*b);return new lP(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};
var aTa=!1;g.x(nQ,iQ);g.k=nQ.prototype;g.k.RA=function(){return!0};
g.k.qg=function(){return!0};
g.k.vt=function(a){return this.Ax()&&a.B&&!a.Ue||!a.j.index.IF(a.Qa)};
g.k.ax=function(){};
g.k.Or=function(a,b){return typeof a!=="number"||isFinite(a)?iQ.prototype.Or.call(this,a,b===void 0?!1:b):new fQ([new $P(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Rj,void 0,this.Rj*this.info.ub)],"")};
g.k.xt=function(a,b){var c=c===void 0?!1:c;if(this.index.qo(a))return iQ.prototype.xt.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.Rj*this.info.ub),f=this.Rj;b&&(f=e=0);return new fQ([new $P(c?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],a>=0?"sq/"+a:"")};g.x(oQ,VP);g.k=oQ.prototype;g.k.Sm=function(){return!1};
g.k.Ax=function(){return!1};
g.k.RA=function(){return!1};
g.k.ax=function(){return new fQ([new $P(1,this,void 0,"otfInit")],this.G)};
g.k.mz=function(){return null};
g.k.AD=function(a){this.vt(a);return cTa(this,ESa(a),!1)};
g.k.Or=function(a,b){b=b===void 0?!1:b;a=this.index.Ki(a);b&&(a=Math.min(this.index.Bd(),a+1));return cTa(this,a,!0)};
g.k.gQ=function(a){a.info.type===1&&(this.j||(this.j=rN(a.j)),a.B&&a.B.uri==="http://youtube.com/streaming/otf/durations/112015"&&dTa(this,a.B))};
g.k.vt=function(a){return a.B===0?!0:this.index.Bd()>a.Qa&&this.index.Wn()<=a.Qa+1};
g.k.OP=function(){return 0};
g.k.xS=function(){return!1};g.k=g.oTa.prototype;g.k.qo=function(a){return a<=this.Bd()};
g.k.Jm=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.Ah[a]/this.j};
g.k.JJ=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.YJ=ba(1);g.k.qf=function(){return NaN};
g.k.getDuration=function(a){a=this.gY(a);return a>=0?a/this.j:-1};
g.k.gY=function(a){return a+1<this.count||this.B?this.Ah[a+1]-this.Ah[a]:-1};
g.k.Wn=function(){return 0};
g.k.Bd=function(){return this.count-1};
g.k.IF=function(a){return this.Bd()===a&&a>=0};
g.k.Yt=function(){return this.B?this.Ah[this.count]/this.j:NaN};
g.k.pd=function(){return 0};
g.k.vA=function(){return this.count};
g.k.WJ=function(){return""};
g.k.Ki=function(a){a=g.Qb(this.Ah.subarray(0,this.count),a*this.j);return a>=0?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return this.Bd()>=0};
g.k.pY=function(a,b){if(a>=this.Bd())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.Bd()&&b>this.getStartTime(a);a++)c=Math.max(c,pTa(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.Ah;this.Ah=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.Ah[a]=c[a]};
g.k.cap=function(a,b){qTa(this);this.B=!0;this.Ah[this.count]=b;this.offsets[this.count]=a};g.x(tQ,VP);g.k=tQ.prototype;g.k.ax=function(a,b){var c=new $P(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),d=[new $P(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),c];this.info.contentLength>0&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),a>0&&d.push(new $P(4,this,YP(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)));return new fQ(d)};
g.k.gQ=function(a){if(a.info.type===1){if(this.j)return;this.j=rN(a.j)}else if(a.info.type===2){if(this.G||this.index.Bd()>=0)return;if(g.YJ(this.info)){var b=this.index,c=qQ(a);a=a.info.range.start;var d=g.xP(c,0,1936286840);c=bSa(d);b.j=c.Ev;var e=c.s8;b.offsets[0]=c.K8+a+d.size;b.Ah[0]=e;b.B=!0;a=c.ST.length;for(d=0;d<a;d++){e=b;var f=c.xda[d],h=c.ST[d];e.count++;qTa(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.Ah[e.count]=e.Ah[e.count-1]+h}}else this.G=qQ(a)}if(this.info.Ne()&&this.j&&this.G){c=
new DataView(this.j.buffer);b=this.index;d=this.G;a=this.indexRange.end;e=new FP(c);c=e;e=c.pos;f={I2:1E6,J2:1E9,duration:0,J1:0,kT:0};if(JP(c,408125543))if(f.J1=KP(c,!0),f.kT=c.start+c.pos,JP(c,357149030)){for(h=IP(c);!GP(h);){var l=KP(h,!1);l===2807729?f.I2=MP(h):l===2807730?f.J2=MP(h):l===17545?f.duration=OP(h):NP(h)}c.pos=e;c=f}else c.pos=e,c=null;else c.pos=e,c=null;if(c!==null){b.j=c.J2/c.I2;e=new FP(d);d=e;h=c.kT;e=d.pos;f=[];if(JP(d,475249515)){for(l=IP(d);JP(l,187);){var m=IP(l);if(JP(m,
179)){var n=MP(m);if(JP(m,183)){m=IP(m);for(var p=h;JP(m,241);)p=MP(m)+h;f.push({cJ:p,c8:n})}}}if(f.length>0&&a===f[0].cJ)for(a=0;a<f.length;a++)f[a].cJ+=1;d.pos=e;a=f}else d.pos=e,a=null;if(a!==null){a=g.v(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.cJ,f=f.c8,qTa(d),d.offsets[d.count]=e,d.Ah[d.count]=f,d.count++;b.cap(c.J1+c.kT,c.duration)}}this.G=null}};
g.k.jF=function(a,b,c,d){for(var e=[],f=a;f<=this.index.Bd();f++){var h=YP(this.index.Jm(f),pTa(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 $P(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.mE(new g.FB("b189619593",""+a,""+b,""+c));return new fQ(e)};
g.k.LV=function(a){for(var b=this.hC(a.info),c=a.info.range.start+a.info.Tb,d=[],e=0;e<b.length;e++){var f=pN(a.j,b[e].range.start+b[e].Tb-c,b[e].B);d.push(new pQ(b[e],f))}return d};
g.k.hC=function(a){for(var b=a.range.start+a.Tb,c=0;c<this.index.Bd()&&b>=this.index.Jm(c+1);)c++;return this.jF(c,b,a.B).kb};
g.k.vt=function(a){aQ(a);return this.qg()?!0:a.range.end+1<this.info.contentLength};
g.k.mz=function(a,b){this.vt(a);if(!this.qg())return b=YP(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new WP(b.start,this.info.contentLength-1)),new fQ([new $P(4,a.j,b,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a.clipId)]);a.type===4&&(a=this.hC(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Tb+a.B;a.type===3&&(aQ(a),c=a.Qa,d===a.range.end+1&&(c+=1));return this.jF(c,d,b)};
g.k.AD=function(){return null};
g.k.Or=function(a,b,c){b=b===void 0?!1:b;a=this.index.Ki(a);b&&(a=Math.min(this.index.Bd(),a+1));return this.jF(a,this.index.Jm(a),0,c)};
g.k.Sm=function(){return!0};
g.k.Ax=function(){return!0};
g.k.RA=function(){return!1};
g.k.OP=function(){return this.indexRange.length+this.initRange.length};
g.k.xS=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var $2={},MTa=($2.COLOR_PRIMARIES_BT709="bt709",$2.COLOR_PRIMARIES_BT2020="bt2020",$2.COLOR_PRIMARIES_UNKNOWN=null,$2.COLOR_PRIMARIES_UNSPECIFIED=null,$2),a3={},sTa=(a3.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",a3.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",a3.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",a3.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",a3.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,a3.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,a3);g.uQ.prototype.getName=function(){return this.name};
g.uQ.prototype.getId=function(){return this.id};
g.uQ.prototype.getIsDefault=function(){return this.isDefault};
g.uQ.prototype.toString=function(){return this.name};
g.uQ.prototype.getName=g.uQ.prototype.getName;g.uQ.prototype.getId=g.uQ.prototype.getId;g.uQ.prototype.getIsDefault=g.uQ.prototype.getIsDefault;var xTa=/action_display_post/;var yTa,zTa,ATa;g.x(wQ,g.GE);g.k=wQ.prototype;g.k.isLoading=function(){return this.state===1};
g.k.Qm=function(){return this.state===3};
g.k.Xca=function(a){var b=a.getElementsByTagName("Representation");if(a.getElementsByTagName("SegmentList").length>0||a.getElementsByTagName("SegmentTemplate").length>0){this.hc=this.B=!0;this.timeline||(this.timeline=new VSa);ZSa(this.timeline,a);this.publish("refresh");for(a=0;a<b.length;a++){var c=WTa(this,b[a]);if(!this.j[c.id]){var d=yQ(kQ(b[a],"BaseURL").textContent),e=kQ(b[a],"Initialization"),f=jQ(e,"sourceURL");e=XP(jQ(e,"range"));this.j[c.id]=new iQ(d,c,f,e)}c=this.j[c.id];d=jQ(b[a],"id",
"AdaptationSet");d=d!==""?d:jQ(b[a],"mimetype","AdaptationSet");f=this.timeline;f=f.C[c.info.id]||f.B[d]||f.j||null;d=f.j;!this.G&&f.getStreamTimeOffset()&&(this.G=f.getStreamTimeOffset());if(f.G){e=[];d=g.v(d);for(var h=d.next();!h.done;h=d.next()){h=h.value;var l=c.info.id,m=c.info.ub*8,n=h.Qa;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 lP(h.Qa,h.startSecs,h.Hh,h.j,q.join("$"),null,h.B))}d=e}else{f=Mb(kQ(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]&&Number(t[1])>=0?p=XP(r):q=q+"?range="+r}m.call(l,new lP(n.Qa,n.startSecs,n.Hh,n.j,q,p,n.B))}d=e}c.update(d,this.isLive,this.Ya)}$Sa(this.timeline);return!0}this.duration=SSa(jQ(a,"mediaPresentationDuration"));
a:{for(a=0;a<b.length;a++){f=b[a];c=WTa(this,f);d=yQ(kQ(f,"BaseURL").textContent);e=kQ(f,"SegmentBase");f=XP(e.attributes.getNamedItem("indexRange").value);e=XP(e.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);c=new tQ(d,c,e,f);if(!c){b=!1;break a}vQ(this,c)}b=!0}return b};
g.k.refresh=function(){if(!this.isLoading()&&!this.Na()){var a=g.to(this.sourceUrl,{start_seq:bUa(this).toString()});YTa(this,a).Pl(function(){})}};
g.k.resume=function(){XTa(this)};
g.k.qe=function(a){if(!isNaN(this.Z)&&!a)return this.Z-(this.G||this.timestampOffset);if(this.isManifestless&&this.C&&zQ(this))return zQ(this);a=this.j;var b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&!bK(f.info.mimeType)&&(f.D&&(b=!0),h=h.Yt(),f.info.Kh()&&(isNaN(c)||h<c)?c=h:f.info.Cg()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.pd=function(a){if(!isNaN(this.Y)&&!a)return this.Y-(this.G||this.timestampOffset);if(this.isManifestless){if(AQ(this))return AQ(this);if(this.Sc&&(a=this.qf(this.qe()))&&(a-=this.Sc,a>0))return this.qe()-a}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded()&&!bK(a[b].info.mimeType))return c.pd()}return 0};
g.k.getStreamTimeOffset=function(){return this.G};
g.k.qf=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.Ki(a),e=c.qf(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var EQ=null,BTa=!1,cqb,hUa=!((cqb=navigator.mediaCapabilities)==null||!cqb.decodingInfo),VTa={commentary:1,alternate:2,dub:3,main:4};g.FQ.prototype.info=function(){};
g.FQ.prototype.debug=function(){};
var lUa=new Map;var I_=new Set,GQ=new Map;IQ.prototype.clone=function(a){return new IQ(this.flavor,a,this.B,this.experiments)};
IQ.prototype.qc=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
IQ.prototype.getInfo=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 dqb={},qUa=(dqb.playready=["com.youtube.playready","com.microsoft.playready"],dqb.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],dqb),b3={},edb=(b3.widevine="DRM_SYSTEM_WIDEVINE",b3.fairplay="DRM_SYSTEM_FAIRPLAY",b3.playready="DRM_SYSTEM_PLAYREADY",b3),c3={},eqb=(c3.widevine=1,c3.fairplay=2,c3.playready=3,c3);var SQ;g.x(RQ,g.I);
RQ.prototype.initialize=function(a,b){for(var c=this,d=g.v(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.v(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.oe)for(var h=g.v(Object.keys(f.oe)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=qUa[m];!m&&this.L("html5_enable_vp9_fairplay")&&l==="fairplay"&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.v(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.C[n]=this.C[n]||new IQ(l,n,f.oe[l],this.Ea.experiments),this.j[l]=this.j[l]||
{},this.j[l][f.mimeType]=!0}}}VA()&&(this.C["com.youtube.fairplay"]=new IQ("fairplay","com.youtube.fairplay","",this.Ea.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=rUa(b,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay"),this.L("html5_enable_vp9_fairplay")).filter(function(p){return!!c.C[p]})};
RQ.prototype.L=function(a){return this.Ea.experiments.gb(a)};var Sgb={"":"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"};zUa.prototype.L=function(a){return this.experiments.gb(a)};var kVa={RED:"red",Gob:"white"};AUa.prototype.gb=function(a){return this.flags[a]==="true"};var DUa=Promise.resolve(),IUa=window.queueMicrotask?window.queueMicrotask.bind(window):EUa;FUa.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;yC?a=a||fqb[b]:qR===2.2?a=a||gqb[b]:TA()&&(a=a||hqb[b]);return!!a};
FUa.prototype.isTypeSupported=function(a){return this.Z?window.cast.receiver.platform.canDisplayType(a):MJ(a)};
var gqb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},hqb={"application/x-mpegURL":"maybe"},fqb={"application/x-mpegURL":"maybe"};g.x(YQ,g.GE);YQ.prototype.add=function(a,b){if(!this.items[a]&&(b.WI||b.yO||b.DM)){var c=this.items,d=b;Object.isFrozen&&!Object.isFrozen(b)&&(d=Object.create(b),Object.freeze(d));c[a]=d;this.publish("vast_info_card_add",a)}};
YQ.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
YQ.prototype.get=function(a){return this.items[a]||null};
YQ.prototype.isEmpty=function(){return g.gd(this.items)};g.x(ZQ,g.iN);ZQ.prototype.j=function(a,b){var c=xV.Ts();b=g.iN.prototype.j.call(this,a,b);xV.Hr("oap",c,Math.ceil(a.length/16));return b};
ZQ.prototype.B=function(a,b,c){var d=this,e,f;return g.H(function(h){if(h.j==1)return e=xV.Ts(),g.z(h,g.iN.prototype.B.call(d,a,b,c),2);f=h.B;xV.Hr("oan2",e,Math.ceil(a.byteLength/16));return h.return(f)})};
g.x($Q,g.jN);$Q.prototype.encrypt=function(a,b){var c=xV.Ts();b=g.jN.prototype.encrypt.call(this,a,b);xV.Hr("oap",c,Math.ceil(a.byteLength/16));return b};
g.x(aR,kN);aR.prototype.encrypt=function(a,b){var c=this.Ld.eJ(a),d=this.Ld.eJ(b);kN.prototype.encrypt.call(this,c||a,d||b);d&&this.Ld.exports.free(d.byteOffset);return c?this.Ld.sR(c):a};cR.prototype.Vi=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.B+=a};
cR.prototype.jh=function(){return this.j/(1-Math.pow(this.alpha,this.B))};dR.prototype.Vi=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.ql=!0};
dR.prototype.percentile=function(a){var b=this;if(!this.C&&this.B===0)return 0;this.ql&&(g.Sb(this.G,function(c,d){return b.values[c]-b.values[d]}),this.ql=!1);
return this.values[this.G[Math.round(a*((this.C?this.j:this.B)-1))]]||0};
dR.prototype.jh=function(){return this.K?(this.percentile(this.D-this.K)+this.percentile(this.D)+this.percentile(this.D+this.K))/3:this.percentile(this.D)};g.x(RUa,g.I);RUa.prototype.Wa=function(){var a;(a=this.La)==null||a.start();if(jR(this)&&this.policy.N){var b;(b=this.zd)==null||b.hG()}};g.x(aVa,g.I);var hVa="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),qVa={Kpa:"caoe",msa:"cbrand",xsa:"cbr",zsa:"cbrver",gva:"cchip",Dva:"ccappver",Eva:"ccrv",dGa:"cfrmver",ZKa:"c",cLa:"cver",bLa:"ctheme",aLa:"cplayer",EXa:"cmodel",tYa:"cnetwork",S1a:"cos",T1a:"cosver",O2a:"cplatform",S6a:"crqyear"};g.x(oVa,g.I);g.k=oVa.prototype;g.k.L=function(a){return this.experiments.gb(a)};
g.k.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig};
g.k.getVideoUrl=function(a,b,c,d,e,f,h){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=h?"music.youtube.com":g.AR(this);e=c==="www.youtube.com";!f&&d&&e?f="https://youtu.be/"+a:g.tR(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),yC&&(a=uqa())&&(b.ebc=a));return g.to(f,b)};
g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.AR(this)+"/embed/"+b;d&&(b=g.to(b,{list:d}));d=c.width;c=c.height;b=af(b);a=af(a!=null?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" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')};
g.k.supportsGaplessAudio=function(){return g.LJ&&!yC&&ira()>=74||g.QQ&&g.Mc(68)?!0:!1};
g.k.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.Xa||g.dC?!1:!0};
g.k.getPlayerType=function(){return this.j.cplayer};
g.k.yc=function(){return this.Uf};
g.k.Xu=function(){this.L("html5_enable_lawnmower_messaging")};
var wVa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],pVa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],tVa=[19];var d3={},zVa=(d3["140"]={numChannels:2},d3["141"]={numChannels:2},d3["251"]={audioSampleRate:48E3,numChannels:2},d3["380"]={numChannels:6},d3["328"]={numChannels:6},d3),e3={},xVa=(e3["1"]='video/mp4; codecs="av01.0.08M.08"',e3["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',e3["9"]='video/webm; codecs="vp9"',e3["("]='video/webm; codecs="vp9"',e3["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',e3.h='video/mp4; codecs="avc1.64001e"',e3.H='video/mp4; codecs="avc1.64001e"',e3.o=
'audio/webm; codecs="opus"',e3.a='audio/mp4; codecs="mp4a.40.2"',e3.ah='audio/mp4; codecs="mp4a.40.2"',e3.mac3='audio/mp4; codecs="ac-3"; channels=6',e3.meac3='audio/mp4; codecs="ec-3"; channels=6',e3),f3={},yVa=(f3["337"]={width:3840,height:2160,bitrate:3E7,fps:30},f3["336"]={width:2560,height:1440,bitrate:15E6,fps:30},f3["335"]={width:1920,height:1080,bitrate:75E5,fps:30},f3["702"]={width:7680,height:4320,bitrate:4E7,fps:60},f3["701"]={width:3840,height:2160,bitrate:2E7,fps:60},f3["700"]={width:2560,
height:1440,bitrate:1E7,fps:60},f3["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},f3["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},f3["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},f3["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},f3["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},f3["360"]={width:1920,height:1080,bitrate:5331E3,
fps:30,cryptoblockformat:"subsample"},f3["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},f3["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},f3["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},f3["315"]={width:3840,height:2160,bitrate:2E7,fps:60},f3["308"]={width:2560,height:1440,bitrate:1E7,fps:60},f3["303"]={width:1920,height:1080,bitrate:5E6,fps:60},f3["302"]={width:1280,height:720,bitrate:25E5,
fps:60},f3["299"]={width:1920,height:1080,bitrate:75E5,fps:60},f3["298"]={width:1280,height:720,bitrate:35E5,fps:60},f3["571"]={width:7680,height:4320,bitrate:3E7,fps:60},f3["401"]={width:3840,height:2160,bitrate:15E6,fps:60},f3["400"]={width:2560,height:1440,bitrate:75E5,fps:60},f3["399"]={width:1920,height:1080,bitrate:2E6,fps:60},f3["398"]={width:1280,height:720,bitrate:1E6,fps:60},f3["397"]={width:854,height:480,bitrate:4E5,fps:30},f3["396"]={width:640,height:360,bitrate:25E4,fps:30},f3["313"]=
{width:3840,height:2160,bitrate:8E6,fps:30},f3["271"]={width:2560,height:1440,bitrate:4E6,fps:30},f3["248"]={width:1920,height:1080,bitrate:2E6,fps:30},f3["247"]={width:1280,height:720,bitrate:15E5,fps:30},f3["244"]={width:854,height:480,bitrate:52E4,fps:30},f3["243"]={width:640,height:360,bitrate:28E4,fps:30},f3["137"]={width:1920,height:1080,bitrate:4E6,fps:30},f3["136"]={width:1280,height:720,bitrate:3E6,fps:30},f3["135"]={width:854,height:480,bitrate:1E6,fps:30},f3["385"]={width:1920,height:1080,
bitrate:6503313,fps:60},f3["376"]={width:1280,height:720,bitrate:5706960,fps:60},f3["384"]={width:1280,height:720,bitrate:3660979,fps:60},f3["225"]={width:1280,height:720,bitrate:5805E3,fps:30},f3["224"]={width:1280,height:720,bitrate:453E4,fps:30},f3["145"]={width:1280,height:720,bitrate:2682052,fps:30},f3);g.k=OR.prototype;g.k.getInfo=function(){return this.j};
g.k.BD=function(){return null};
g.k.iY=function(){var a=this.BD();return a?(a=g.sA(a.resource),Number(a.expire)):NaN};
g.k.lT=function(){};
g.k.getHeight=function(){return this.j.video.height};BVa.prototype.build=function(){FVa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.v(this.C),e=d.next();!e.done;e=d.next())if(e=e.value,e.Yb){if(e.Yb.getIsDefault()){c=e.Yb.getId();break a}c||(c=e.Yb.getId())}}d=g.v(this.C);for(e=d.next();!e.done;e=d.next())if(e=e.value,this.K||!e.Yb||e.Yb.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.v(this.B);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.j]){e=g.v(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.Yb){p=f.Yb;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";d!==null&&(q=d.itag.toString());q=DVa(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(EVa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}}c=g.v(this.G);for(d=c.next();!d.done;d=c.next())d=d.value,e=iqb,d=(h=d.Yb)?'#EXT-X-MEDIA:URI="'+DVa(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=this.G.length>0?iqb:void 0;d=g.v(this.B);for(e=d.next();!e.done;e=d.next())e=e.value,l=b[e.j],h=void 0,((h=l)==null?void 0:h.length)>0&&(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="')+(EVa(l,h)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",h.fps>1&&(l+=
",FRAME-RATE="+h.fps),h.NC&&(l+=",VIDEO-RANGE="+h.NC),a.push(l),a.push(DVa(this,e.url,"")));return a.join("\n")};
var iqb="text";g.x(QR,OR);QR.prototype.iY=function(){return this.expiration};
QR.prototype.BD=function(){if(!this.resource||this.resource.Na()){var a=this.B.build();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.resource=new pK(a)}return this.resource};g.x(RR,OR);RR.prototype.BD=function(){return new pK(this.B.Ge())};
RR.prototype.lT=function(){this.B=jP(this.B)};g.x(SR,OR);SR.prototype.BD=function(){return new pK(this.B)};var g3={},RVa=(g3.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",g3.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",g3.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",g3);g.k=g.TR.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.j};
g.k.Ge=function(){return this.url};
g.k.getXtags=function(){return this.xtags};
g.k.toString=function(){return this.languageCode+": "+g.UR(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.k.xe=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var WVa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},XVa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},YVa=/^(\d*)_((\d*)_?(\d*))$/;var $Va={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},aWa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var h3={},SWa=(h3.ALWAYS=1,h3.BY_REQUEST=3,h3.UNKNOWN=void 0,h3),i3={},ZWa=(i3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",i3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",i3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",i3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",i3);var OKa;
OKa=function(a){for(var b=Object.keys(a),c={},d=0;d<b.length;d++){var e=b[d];typeof a[e]==="function"&&(c[e]=a[e])}var f=Object.keys(c);try{Ama(c)}catch(l){var h=l}return function(l,m){l=l===void 0?{}:l;if(h)throw h;for(var n=!1,p={},q=0;q<f.length;q++){var r=f[q],t=l[r],u=(0,c[r])(t,m);if(typeof u==="undefined")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]=
u;n=n||u!==t}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=a===void 0?{}:a;
return eLa(a,b)}});
g.HS=new mN;bS.prototype.toString=function(){return this.type+this.id};g.cS.prototype.kh=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b)return b;if(a==="sddefault.jpg"||a==="hq720.jpg"||a==="maxresdefault.jpg")return b;if(this.j)return BR(this.Ea,this.j,a)};
g.cS.prototype.zl=function(){return this.Ea.getVideoUrl(this.videoId,this.playlistId)};g.dS.prototype.kh=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b?b:a==="pop1.jpg"||a==="pop2.jpg"||a==="sddefault.jpg"||a==="hq720.jpg"||a==="maxresdefault.jpg"?b:BR(this.Ea,this.videoId,a)};
g.dS.prototype.zl=function(a){return this.watchUrl||this.Ea.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,a)};var eS=void 0;bBa("LMS",function(){return g.H(function(a){return a.return(g.fS())})});var jS;jS=0;g.AWa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;bBa("LMDB",function(){var a,b;return g.H(function(c){if(c.j==1)return g.z(c,g.BC(),2);if(c.j!=3){a=c.B;if(!a)throw g.eC("edd");return g.z(c,g.iS(a),3)}b=c.B;return c.return(g.lC(b,["index","media","captions"],{mode:"readonly",Pb:!0},function(d){var e={};d=[g.qC(d.objectStore("index"),{},function(f){e[f.cursor.key]=f.getValue();return g.rC(f)}),
bta(d.objectStore("media")),bta(d.objectStore("captions"))];return g.gC.all(d).then(function(f){var h=g.v(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:BWa(f||[]),captions:h}})}))})});g.x(kS,g.GE);kS.prototype.ya=function(){this.j&&(this.j=this.j.onload=null);g.GE.prototype.ya.call(this)};g.k=g.oS.prototype;g.k.getHeight=function(){return this.height};
g.k.oY=ba(3);g.k.LJ=function(){return this.frameCount};
g.k.isDefault=function(){return this.C.indexOf("default")!==-1};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.Ge=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.to(b,{sigh:this.signature}));return SI(b)};
g.k.yI=function(a){var b=this.LJ()-1;return g.ze(this.j===0?Math.round(a*this.frameCount/this.videoLength):Math.round(a*1E3/this.j),0,b)};
g.k.nz=function(){return this.frameCount-1};
g.k.wN=function(){return this.frameCount?0:-1};
g.k.MV=function(){};g.x(pS,kS);pS.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||f.getHeight()<180)&&c.push(f)}return c};
pS.prototype.G=function(a,b,c,d){return new g.oS(a,b,c,d)};g.x(HWa,g.oS);g.k=HWa.prototype;g.k.LJ=function(){return this.B.vA()};
g.k.yI=function(a){var b=this.rows*this.columns*this.G,c=this.B,d=c.Bd();a=c.Ki(a);return a>d-b?-1:a};
g.k.nz=function(){return this.B.Bd()};
g.k.wN=function(){return this.B.Wn()};
g.k.MV=function(a){this.B=a};g.x(qS,pS);qS.prototype.B=function(a,b){return pS.prototype.B.call(this,"$N|"+a,b)};
qS.prototype.G=function(a,b,c){return new HWa(a,b,c,this.isLive)};var eXa=[],dXa=new Set;g.x(g.sS,g.GE);g.k=g.sS.prototype;g.k.U=function(){return this.Ea};
g.k.L=function(a){return this.Ea.L(a)};
g.k.oi=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!((a=this.tf)==null||!a.rb)};
g.k.V_=function(){this.Na()||(this.j.B||this.j.unsubscribe("refresh",this.V_,this),this.mX(-1))};
g.k.mX=function(a){if(!this.isLivePlayback||!this.K||this.K.flavor!="fairplay"){var b=STa(this.j,this.jG);if(b.length>0){for(var c=g.v(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.pd());this.publish("cuepointupdated",b,a);this.jG+=b.length;if(CS(this)&&this.Ea.yc())for(b=g.v(b),c=b.next();!c.done;c=b.next())c=c.value,this.oa("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),c.event==="start"&&(c=c.startSecs,this.fD.start=this.Rk,
this.fD.end=c+3)}}};
g.k.bj=function(){return this.oe?!0:!!this.j&&$O(this.j)};
g.k.LI=function(a){var b=this;if(this.Na())return MA();this.Fd=this.rb=this.C=null;yS(this,"html5_high_res_logging_always")&&(this.Ea.Uf=!0);return wXa(this,a).then(void 0,function(){return xXa(b,a)}).then(void 0,function(){return yXa(b)}).then(void 0,function(){return AXa(b)})};
g.k.vk=function(){if(this.cotn)return null;var a=g.xI(this.Ea)||this.L("web_l3_storyboard");if(!this.Uk)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.Uk=new pS(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=cba(this.j.j).index)&&(this.Uk=new qS(b.spec,this.j.isLive,c,a))}else this.ZA?this.Uk=new pS(this.ZA,this.lengthSeconds,void 0,!1,a):this.rz&&this.j&&
(b=cba(this.j.j).index)&&(this.Uk=new qS(this.rz,this.j.isLive,b,a));return this.Uk};
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.ZA||this.rz};
g.k.qe=function(){return this.j&&!isNaN(this.j.qe())?this.j.qe():CS(this)?0:this.lengthSeconds};
g.k.pd=function(){return this.j&&!isNaN(this.j.pd())?this.j.pd():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.Ki(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor((a-b)*1E3)}}return null};
g.k.xe=function(){return!this.Na()&&!(!this.videoId&&!this.mm)};
g.k.lx=function(){var a,b,c;return!!this.adaptiveFormats||!!((a=this.playerResponse)==null?0:(b=a.streamingData)==null?0:(c=b.adaptiveFormats)==null?0:c.length)};
g.k.isLoaded=function(){return tS(this)&&!this.zj&&!this.xp};
g.k.kh=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.Ea.va||a=="pop1.jpg"||a=="pop2.jpg"||a=="sddefault.jpg"||a=="hq720.jpg"||a=="maxresdefault.jpg"?b:BR(this.Ea,this.videoId,a)};
g.k.hc=function(){return this.isLivePlayback||this.je||this.Ya||!(!this.liveUtcStartSeconds||!this.Vl)};
g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.je&&!this.isLivePlayback&&this.j.B)};
g.k.getAvailableAudioTracks=function(){return this.C?this.C.getAvailableAudioTracks().length>0?this.C.getAvailableAudioTracks():this.qz||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.D&&!ZJ(this.D))return g.Cb(this.getAvailableAudioTracks(),function(d){return d.id==a.D.id})||this.Wk;
if(this.qz){if(!this.Dp)for(var b=g.v(this.qz),c=b.next();!c.done;c=b.next())if(c=c.value,c.Yb.getIsDefault()){this.Dp=c;break}return this.Dp||this.Wk}return this.Wk};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getWatchNextResponse=function(){return this.Sa};
g.k.getHeartbeatResponse=function(){return this.UD};
g.k.zl=function(){return this.watchUrl?this.watchUrl:this.Ea.getVideoUrl(this.videoId)};
g.k.JQ=function(){return!!this.j&&(ETa(this.j)||FTa(this.j)||GTa(this.j))};
g.k.getEmbeddedPlayerResponse=function(){return this.Gi};
g.k.xk=function(){return(this.eventLabel||this.Ea.La)==="shortspage"};
g.k.isAd=function(){return this.LF||!!this.adFormat};
g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.Rm=function(){var a,b,c;return this.isDaiEnabled()&&!!((a=this.playerResponse)==null?0:(b=a.playerConfig)==null?0:(c=b.daiConfig)==null?0:c.ssaEnabledPlayback)};
g.k.AT=function(){return TWa(this)?this.F3:this.Eq||this.wj};
g.k.yH=function(){return this.Kj||this.wj};
g.k.eO=function(){return yS(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){return!0};
g.k.oa=function(a,b,c){this.publish("ctmp",a,b,c)};
g.k.Ay=function(a,b,c){this.publish("ctmpstr",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.fd=function(a,b){if(!g.nR(this.Ea)||(this.Ea.Ga||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||b)return!1;var c;return!!(((c=this.embeddedPlayerConfig)==null?0:c.isShortsExperienceEligible)&&a.width<=a.height)};
g.k.ya=function(){g.GE.prototype.ya.call(this);this.Rv=null;delete this.yfa;delete this.accountLinkingConfig;delete this.j;this.C=this.UD=this.playerResponse=this.Sa=null;this.Xf=this.adaptiveFormats="";delete this.botguardData;this.mf=this.suggestions=this.Uv=null};var hYa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},iYa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},gYa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},jYa=!1,dYa={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"},fYa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},eYa={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE",
2:"UNPLUGGED_FILTER_MODE_TYPE_PG",3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"};g.x(mT,g.I);g.k=mT.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.Y[a],e=this.state.ra[a],f=d;if(e)if(c&&PI(c,rpb))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.v(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.nE(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.xp&&!this.state.va.has(a)&&(this.state.va.add(a),g.VB("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:b||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.Ga,errorCode:c}))};
g.k.publish=function(a){var b=g.Ja.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.ra(b)));if(a==="videodatachange"||a==="resize"||a==="cardstatechange")this.state.j.publish.apply(this.state.j,[a].concat(g.ra(b))),this.state.D.publish.apply(this.state.D,[a].concat(g.ra(b)))};
g.k.jb=function(a){var b=g.Ja.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.ra(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.ra(b)))};
g.k.Ac=function(a){var b=g.Ja.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.ra(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.ra(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.ra(b)))};
g.k.dn=function(a){var b=g.Ja.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.ra(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.ra(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.ra(b)));this.state.N.publish.apply(this.state.N,[a].concat(g.ra(b)))};
g.k.L=function(a){return this.app.U().L(a)};
g.k.ya=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.ya.call(this)};g.x(rT,g.aw);rT.prototype.publish=function(a){var b=g.Ja.apply(1,arguments);if(this.G.has(a))return this.G.get(a).push(b),!0;var c=!1;try{for(b=[b],this.G.set(a,b);b.length;)c=g.aw.prototype.publish.call.apply(g.aw.prototype.publish,[this,a].concat(g.ra(b.shift())))}finally{this.G.delete(a)}return c};g.x(pYa,g.I);pYa.prototype.ya=function(){this.N.dispose();this.D.dispose();this.j.dispose();this.C.dispose();this.va=this.G=this.K=this.B=this.ra=this.Y=this.Z=void 0};var rYa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.x(tYa,mT);g.k=tYa.prototype;g.k.getApiInterface=function(){return Array.from(this.state.Z)};
g.k.x7=function(a,b){this.state.N.subscribe(a,b)};
g.k.Cda=function(a,b){this.state.N.unsubscribe(a,b)};
g.k.getPlayerState=function(a){return Jhb(this.app,a)};
g.k.l9=function(){return Jhb(this.app)};
g.k.bea=function(a,b,c){wYa(this)&&(W0(this.app,!0,1),Y0(this.app,a,b,c,1))};
g.k.getCurrentTime=function(a,b,c){var d=this.getPlayerState(a);if(this.app.getAppState()===2&&d===5){var e;return((e=this.app.getVideoData())==null?void 0:e.startSeconds)||0}return this.L("web_player_max_seekable_on_ended")&&d===0?Fhb(this.app,a):a?this.app.getCurrentTime(a,b,c):this.app.getCurrentTime(a)};
g.k.Z8=function(){return this.app.getCurrentTime(1)};
g.k.g9=function(){var a=this.app.qf(1);return isNaN(a)?this.getCurrentTime(1):a};
g.k.d9=function(){return this.app.getDuration(1)};
g.k.nM=function(a,b){a=g.ze(Math.floor(a),0,100);isFinite(a)&&P0(this.app,{volume:a,muted:this.isMuted()},b)};
g.k.tea=function(a){this.nM(a,!1)};
g.k.ZK=function(a){P0(this.app,{muted:!0,volume:this.getVolume()},a)};
g.k.iaa=function(){this.ZK(!1)};
g.k.JM=function(a){g.tT(this.app)||P0(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},a)};
g.k.efa=function(){this.JM(!1)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().Jf&&(a.pfp={enableIma:g.jT(this.app.getVideoData())&&this.app.Nd().allowImaMonetization,autoplay:eT(this.app.Nd()),mutedAutoplay:this.app.Nd().mutedAutoplay});return a};
g.k.yS=function(){var a=this.app.getPresentingPlayerType();if(a===2&&!this.app.If()){var b=BV(this.app.Bb());if(!ykb(b)||zkb(b))return}a===3?DT(this.app.Bb()).rG("control_play"):this.app.U().L("html5_ssap_ignore_play_for_ad")&&g.DS(this.app.Nd())&&a===2||this.app.playVideo(a)};
g.k.eda=function(){W0(this.app,!0,1);this.yS()};
g.k.pauseVideo=function(a){var b=this.app.getPresentingPlayerType();if(b!==2||this.app.If()||ykb(BV(this.app.Bb())))b===3?DT(this.app.Bb()).rG("control_pause"):this.app.pauseVideo(b,a)};
g.k.Fea=function(){var a=this.app,b=!1;a.X.Bc&&(a.Va.publish("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.yp?kpb:jpb:[1]};
g.k.getPlaybackQuality=function(a){return(a=g.uT(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.mea=function(){};
g.k.getAvailableQualityLevels=function(a){return(a=g.uT(this.app,a))?(a=g.$r(a.Vt(),function(b){return b.quality}),a.length&&(a[0]==="auto"&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.V8=function(){return this.getAvailableQualityLevels(1)};
g.k.q9=function(){return this.EY()};
g.k.r9=function(){return 1};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.EY=function(){return this.getVideoLoadedFraction()};
g.k.u9=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=sT(a,b,c);return this.app.loadVideoByPlayerVars(a,d)};
g.k.E$=function(a,b,c){a=this.loadVideoById(a,b,c,1);W0(this.app,a,1)};
g.k.cueVideoById=function(a,b,c,d){a=sT(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
g.k.d8=function(a,b,c){this.cueVideoById(a,b,c,1)};
g.k.loadVideoByUrl=function(a,b,c,d){a=qYa(a,b,c);return this.app.loadVideoByPlayerVars(a,d)};
g.k.H$=function(a,b,c){a=this.loadVideoByUrl(a,b,c,1);W0(this.app,a,1)};
g.k.cueVideoByUrl=function(a,b,c,d){a=qYa(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
g.k.g8=function(a,b,c){this.cueVideoByUrl(a,b,c,1)};
g.k.w9=function(){var a=this.app.U();if(a.va)return"";var b=this.app.Nd(),c=void 0;b.isLivePlayback||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.k.b9=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.U();if(a.va)return"";var b=this.app.Nd();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Nd().videoId,this.app.qb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.t7=function(a,b,c){return Phb(this.app,a,b,c)};
g.k.removeCueRange=function(a){return Rhb(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d)};
g.k.D$=function(a,b,c,d){this.loadPlaylist(a,b,c,d);W0(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.jaa=function(){this.nextVideo();W0(this.app,!0,1)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.qda=function(){this.previousVideo();W0(this.app,!0,1)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a)};
g.k.dda=function(a){this.playVideoAt(a);W0(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.n9=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.length;c++){var d=g.dV(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.WZ=function(a){a==="captions"&&(a=g.yV(this.app.Bb()))&&!a.loaded&&a.load()};
g.k.f3=function(a){a==="captions"&&(a=g.yV(this.app.Bb()))&&a.loaded&&a.jfa()};
g.k.sT=function(a,b,c){if(!b)return null;var d=this.app.Bb();return a==="captions"?(a=g.yV(d))&&a.Xh(b,c):null};
g.k.h9=function(a,b,c){var d=g.uT(this.app,1);return d&&d.getVideoData().isPrivate&&this.app.U().D?{}:this.sT(a,b,c)};
g.k.QP=function(a){var b=this.app.Bb();if(a==="captions"){var c;return((c=g.yV(b))==null?void 0:c.getOptions())||null}return a?null:(a=[],g.yV(b)&&a.push("captions"),a)};
g.k.getVolume=function(){return this.app.Ri.volume};
g.k.isMuted=function(){return this.app.Ri.muted};
g.k.destroy=function(){this.app.dispose()};
g.k.logImaAdEvent=function(a,b){var c=this.app.U();g.jT(this.app.getVideoData())&&this.app.Nd().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.Jfa(this.app.U().loaderUrl),eventType:a,youtubeHost:g.yn(this.app.U().Ha)||""},a.embeddedPlayerMode=c.Ga,g.VB("embedsAdEvent",a))};
g.k.mutedAutoplay=function(){var a=this.app.U(),b,c;((b=a.getWebPlayerContextConfig())==null?0:(c=b.embedsHostFlags)==null?0:c.allowMutedAutoplay)&&!a.C&&this.app.mutedAutoplay()};
g.k.preloadVideoById=function(a,b,c,d){if(a){a=sT(a,b,c);var e,f;((e=this.app.U().getWebPlayerContextConfig())==null?0:(f=e.embedsHostFlags)==null?0:f.allowPreloadVideoPlayerVars)&&this.app.preloadVideoByPlayerVars(a,d)}};
g.k.mda=function(a,b,c){this.preloadVideoById(a,b,c,1)};
g.k.setFauxFullscreen=function(a){g.jB();this.app.pn(a?2:0)};
g.k.iea=function(a){var b,c;((b=this.app.U().getWebPlayerContextConfig())==null?0:(c=b.embedsHostFlags)==null?0:c.allowSetFauxFullscreen)&&this.setFauxFullscreen(a)};var zYa="driveweb flix hovercard projector texmex wshbp".split(" ");g.x(xYa,tYa);g.k=xYa.prototype;g.k.y7=function(a,b){this.state.D.subscribe(a,b)};
g.k.Dda=function(a,b){this.state.D.unsubscribe(a,b)};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b)};
g.k.f8=function(a,b){b=b===void 0?1:b;this.cueVideoByPlayerVars(CYa(this,a),b)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c,b,d,e)};
g.k.G$=function(a,b,c,d){c=c===void 0?1:c;this.loadVideoByPlayerVars(CYa(this,a),b,c,d)};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=c===void 0?NaN:c;this.app.preloadVideoByPlayerVars(a,b,c,d===void 0?"":d,e===void 0?"":e)};
g.k.oda=function(a,b,c,d){b=b===void 0?1:b;this.preloadVideoByPlayerVars(CYa(this,a),b,c,d)};
g.k.YZ=function(a,b,c){this.loadVideoById(a,b,c,1)};
g.k.ZZ=function(a,b,c){this.loadVideoByUrl(a,b,c,1)};
g.k.m9=function(a){return this.getPlayerState(a)};
g.k.DY=function(a){a=a===void 0?1:a;var b=uYa(this,a);if(a=g.uT(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.Ya;b.isManifestless=CS(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;a.liveUtcStartSeconds!=null&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.bj()&&(b.isEncrypted=!0);if(a.C)for(var c=g.v(a.C.videoInfos),d=c.next();!d.done;d=c.next()){var e=void 0;if((e=d.value.video)==
null?0:e.isHdr()){b.isHdr=!0;break}}var f,h;b.isMultiChannelAudio=!!((f=a.D)==null?0:(h=f.audio)==null?0:h.isMultiChannelAudio())}return b};
g.k.seekBy=function(a,b,c,d,e){wYa(this)&&Y0(this.app,this.app.getCurrentTime()+a,b,c,e,d)};
g.k.Zda=function(a,b,c){this.seekBy(a,b,c,void 0,1)};
g.k.seekTo=function(a,b,c,d,e){wYa(this)&&Y0(this.app,a,b,c,d,e)};
g.k.cea=function(a,b,c,d){this.seekTo(a,b,c,d===void 0?1:d)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.a9=function(a,b){return this.getCurrentTime(a===void 0?1:a,b)};
g.k.UJ=function(){var a=this.app.getPresentingPlayerType(!0);a===2&&this.app.If()&&(a=1);return a};
g.k.getDuration=function(a,b){if(this.UJ()===3){var c;return((c=DT(this.app.Bb()).getProgressState())==null?void 0:c.duration)||0}return a?this.app.getDuration(a,b):this.app.getDuration(a)};
g.k.hY=function(a,b){return this.getDuration(a===void 0?1:a,b)};
g.k.t9=function(a){return this.getVideoLoadedFraction(a)};
g.k.loadModule=function(a){if(a==="annotations_module"){var b=g.EV(this.app.Bb());b&&!b.loaded&&b.load()}this.WZ(a)};
g.k.unloadModule=function(a){if(a==="annotations_module"){var b=g.EV(this.app.Bb());b&&b.loaded&&b.unload()}this.f3(a)};
g.k.getOption=function(a,b,c,d){return(d=g.uT(this.app,d))&&d.getVideoData().isPrivate&&this.app.U().D?{}:this.setOption(a,b,c)};
g.k.uY=function(a,b,c){return this.getOption(a,b,c,1)};
g.k.getOptions=function(a){var b=this.app.Bb();switch(a){case "ad":var c,d;return((c=BV(b))==null?void 0:(d=c.getOptions)==null?void 0:d.call(c))||null;case "remote":var e,f;return((e=DT(b))==null?void 0:(f=e.getOptions)==null?void 0:f.call(e))||null;case "annotations_module":var h,l;return((h=g.EV(b))==null?void 0:(l=h.getOptions)==null?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return((m=O0a(b))==null?void 0:(n=m.getOptions)==null?void 0:n.call(m))||null;case "unplugged":var p,q;return((p=
g.CV(b))==null?void 0:(q=p.getOptions)==null?void 0:q.call(p))||null;case "kids":var r,t;return((r=N0a(b))==null?void 0:(t=r.getOptions)==null?void 0:t.call(r))||null}if(!a){a=this.QP();if(!a)return a;BV(b)&&a.push("ad");DT(b)&&a.push("remote");g.EV(b)&&a.push("annotations_module");O0a(b)&&a.push("creatorendscreen");g.CV(b)&&a.push("unplugged");N0a(b)&&a.push("kids");return a}return this.QP(a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.Bb();switch(a){case "ad":return(a=BV(d))&&a.Xh&&a.Xh(b,c);case "kids":return(a=N0a(d))&&a.Xh(b,c);case "remote":return(a=DT(d))&&a.Xh(b,c);case "unplugged":return(a=g.CV(d))&&a.Xh(b,c);case "annotations_module":return(a=g.EV(d))&&a.Xh(b,c);case "creatorendscreen":return(a=O0a(d))&&a.Xh(b,c)}return this.sT(a,b,c)};
g.k.addCueRange=function(a,b,c,d,e){return Phb(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=b===void 0?!1:b;c=c===void 0?!1:c;d=d===void 0?!1:d;e=e===void 0?!1:e;var m=g.vT(this);m&&m.handleGlobalKeyDown(a,b,c,d,e,f,h,l)};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){b=b===void 0?!1:b;c=c===void 0?!1:c;d=d===void 0?!1:d;e=e===void 0?!1:e;var l=g.vT(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.vT(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.vT(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.nE(c)}
var b=this.app.U();if(b.externalFullscreen){if(!g.GR(b))return this.isFullscreen()?lB(window.document.documentElement):Ura(window.document.documentElement).catch(a)}else if(g.jB()||b.Z)return this.isFullscreen()?lB(kB()):b.controlsType!=="3"&&g.jB()?Ura(this.app.qb().element).catch(a):(b=this.app.Me().Jb())?Ura(b).catch(a):Promise.reject(Error("Media element missing"));this.Ac("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.cancelPlayback=function(){var a=BV(this.app.Bb());a&&a.created&&a.destroy();(a=g.uT(this.app))&&a.stopVideo();(a=this.app.Bb().Ke.get("endscreen"))&&a.p$()&&g.CT(this.app.Va,!0)};
g.k.getProgressState=function(a){if(this.UJ()===3)return DT(this.app.Bb()).getProgressState();var b=this.app.getVideoData(),c=g.uT(this.app,a)||g.uT(this.app),d=c.getPlayerType();a:{var e=this.app.getVideoData();var f;if((f=e.progressBarStartPosition)==null?0:f.utcTimeMillis)if(e=Number(e.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(e)){e=EYa(this,e,a);break a}e=0}var h;a:{f=this.app.getVideoData();if((h=f.progressBarEndPosition)==null?0:h.utcTimeMillis)if(h=Number(f.progressBarEndPosition.utcTimeMillis)/
1E3,!isNaN(h)){h=EYa(this,h,a);break a}h=0}f=this.getCurrentTime(a);a=this.getDuration(a);var l=this.app.qf(d),m=this.app.isAtLiveHead(d),n=this.app.sA();var p=this.app;var q=g.uT(p,d);q?(q=H0(p,q),p=R0(p,g.DS(q.videoData)?q.videoData.pd():q.pd(),q)):p=0;q=Fhb(this.app,d);c=c.Fc();var r=this.app.getVideoData().IC;!r||isNaN(r)?d=0:(d=EYa(this,r,d),r=g.oI(this.app.U().experiments,"partial_rewind_buffer_seconds"),d-=r>d?d:r);return{airingStart:e,airingEnd:h,allowSeeking:this.app.oi(),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.v9=function(){return g.uT(this.app,1).qc(!0)};
g.k.toggleSubtitles=function(){var a=g.yV(this.app.Bb());a&&a.Uea()};
g.k.getPlayerSize=function(){var a=this.app.qb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.vT(this);a&&a.Hv()};
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 yYa="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 qoe_cat 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(" "),
BYa="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 j3={},FYa=(j3["api.invalidparam"]=2,j3.auth=150,j3["drm.auth"]=150,j3["heartbeat.net"]=150,j3["heartbeat.servererror"]=150,j3["heartbeat.stop"]=150,j3["html5.unsupportedads"]=5,j3["fmt.noneavailable"]=5,j3["fmt.decode"]=5,j3["fmt.unplayable"]=5,j3["html5.missingapi"]=5,j3["html5.unsupportedlive"]=5,j3["drm.unavailable"]=5,j3["mrm.blocked"]=151,j3["embedder.identity.denied"]=152,j3);g.x(g.wT,xYa);g.k=g.wT.prototype;g.k.isExternalMethodAvailable=function(a,b){return this.state.Y[a]?!0:!!(this.state.ra[a]&&b&&PI(b,rpb))};
g.k.getBandwidthEstimate=function(){return iR(this.app.U().schedule)};
g.k.reportPlaybackIssue=function(a){a=a===void 0?"":a;var b=g.uT(this.app);b&&(a={gpu:(0,g.P_)(),d:a},b.handleError(new GJ("feedback",a)))};
g.k.getInternalApi=function(){return Object.assign({},this.state.B)};
g.k.getInternalApiInterface=function(){return g.bd(this.state.B)};
g.k.queueNextVideo=function(a,b,c,d,e){c=c===void 0?NaN:c;this.app.queueNextVideo(a,b,c,d===void 0?"":d,e===void 0?"":e)};
g.k.k9=function(a){a=this.app.getPlayerStateObject(a);return{isBuffering:g.yF(a,1),isCued:a.isCued(),isDomPaused:g.yF(a,1024),isEnded:g.yF(a,2),isError:g.yF(a,128),isOrWillBePlaying:a.isOrWillBePlaying(),isPaused:a.isPaused(),isPlaying:a.isPlaying(),isSeeking:g.yF(a,16),isUiSeeking:g.yF(a,32),isUnstarted:g.yF(a,64)}};
g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.k.startSeekCsiAction=function(){this.app.Ii().D.j=(0,g.iC)()};
g.k.Y8=function(a,b,c){return this.getCurrentTime(a===void 0?1:a,b,c)};
g.k.seekToStreamTime=function(a,b,c,d){var e=this.app;b=b===void 0?!0:b;var f=g.uT(e,1),h=0;f&&f.getStreamTimeOffset()&&!f.Fc()&&(h=f.getStreamTimeOffset());Y0(e,a-h,b,c,1,d)};
g.k.getStreamTimeOffset=function(){var a=g.uT(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.uT(this.app,1);c&&(c=c.getVideoData())&&c.isLivePlayback&&Y0(this.app,Infinity,a,b,1)};
g.k.requestSeekToWallTimeSeconds=function(a,b){var c=g.uT(this.app,1);c&&c.fC(a,b)};
g.k.aea=function(a,b,c,d,e){this.seekTo(a,b,c,d===void 0?1:d,e)};
g.k.Yda=function(a,b,c,d){this.seekBy(a,b,c,d,1)};
g.k.setVolume=function(a,b){this.nM(a,b===void 0?!0:b)};
g.k.mute=function(a){this.ZK(a===void 0?!0:a)};
g.k.unMute=function(a){this.JM(a===void 0?!0:a)};
g.k.syncVolume=function(){var a=ghb(this.app);P0(this.app,{volume:a.volume,muted:a.muted},!1)};
g.k.getAvailableQualityLabels=function(){var a=g.uT(this.app,1);return a?g.$r(a.Vt(),function(b){return b.qualityLabel}):[]};
g.k.channelSubscribed=function(){this.jb("SUBSCRIBE",this.app.Nd().Ul)};
g.k.channelUnsubscribed=function(){this.jb("UNSUBSCRIBE",this.app.Nd().Ul)};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.uT(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.uT(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.confirmYpcRental=function(){var a=g.uT(this.app,1);a&&a.Hg("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.U().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.U().Ej=a};
g.k.setLivingRoomAppMode=function(a){this.app.U().livingRoomAppMode=bB("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,nVa)};
g.k.setEnablePrivacyFilter=function(a){this.app.U().enablePrivacyFilter=a===void 0?!1:a};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.addUtcCueRange=function(a,b,c,d,e){return Qhb(this.app,a,b,c,d,e)};
g.k.s9=function(a){a=a===void 0?1:a;var b=this.DY(a);if(a=g.uT(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.va;b.playerResponseCpn=a.playerResponseCpn;var c;var d=a.hasProgressBarBoundaries()&&((c=a.progressBarStartPosition)==null?0:c.utcTimeMillis)?ef(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&((e=a.progressBarEndPosition)==null?0:e.utcTimeMillis)?
ef(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.B4;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=DXa(a);b.paidContentOverlayDurationMs=EXa(a);a.j&&XO(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.uT(this.app,1))?a.getPlayerState():null)?a.hh:null;return!!(a&&b&&g.yF(a,128)&&GYa(b.errorCode)===5)};
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=c===void 0?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,d===void 0?"":d)};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.Hi=function(){return g.vT(this)};
g.k.sendAbandonmentPing=function(){var a=g.uT(this.app);a&&a.sendAbandonmentPing()};
g.k.setAutonavState=function(a,b){b=b===void 0?!1:b;if(this.L("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Nd(),b==null?0:gXa(b))){if(this.L("web_player_autonav_server_provided_state_pause_killswitch"))return;if(a===3)b.autonavState!==3&&(b.lD=b.autonavState);else if(b.lD!==void 0)a=b.lD,b.lD=void 0;else return}Xhb(this.app,a)};
g.k.setAutonav=function(a,b){this.setAutonavState(a?2:1,b===void 0?!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!((a=g.uT(this.app,1))==null||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a,b){b=b===void 0?!1:b;var c=g.uT(this.app,1);c&&c.setUserAudio51Preference(a,b)};
g.k.getUserAudio51Preference=function(){var a,b;return(b=(a=g.uT(this.app,1))==null?void 0:a.getUserAudio51Preference())!=null?b:1};
g.k.setProximaLatencyPreference=function(a){var b=g.uT(this.app,1);b&&b.setProximaLatencyPreference(a)};
g.k.getProximaLatencyPreference=function(){var a=g.uT(this.app,1);return a?a.getProximaLatencyPreference():0};
g.k.isProximaLatencyEligible=function(){var a=g.uT(this.app,1);return a?a.isProximaLatencyEligible():!1};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.updateLastActiveTime=function(){AD()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setUserEngagement=function(a){this.app.U().fm!==a&&(this.app.U().fm=a,(a=g.uT(this.app,1))&&y0(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=b===void 0?!0:b;g.yV(this.app.Bb()).r3(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.yV(this.app.Bb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.yV(this.app.Bb());a&&a.N2()};
g.k.isSubtitlesOn=function(){var a=g.yV(this.app.Bb());return a?a.isSubtitlesOn():!1};
g.k.getPlayerResponse=function(a){return(a=g.uT(this.app,a))?a.getVideoData().getPlayerResponse():null};
g.k.j9=function(){return this.getPlayerResponse(1)};
g.k.getEmbeddedPlayerResponse=function(){var a=g.uT(this.app,1);return a?a.getVideoData().getEmbeddedPlayerResponse():null};
g.k.getWatchNextResponse=function(a){return(a=g.uT(this.app,a))?a.getVideoData().getWatchNextResponse():null};
g.k.x9=function(){return this.getWatchNextResponse(1)};
g.k.getHeartbeatResponse=function(a){return(a=g.uT(this.app,a))?a.getVideoData().getHeartbeatResponse():null};
g.k.e9=function(){return this.getHeartbeatResponse(1)};
g.k.getStoryboardFrame=function(a,b){var c=this.app.vk();if(!c)return null;b=c.levels[b];return b?(a=g.nS(b,a))?{column:a.column,columns:a.columns,height:a.Ox,row:a.row,rows:a.rows,url:a.url,width:a.eG}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.vk();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Fc();return b.yI(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.vk();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.nz(),minFrameIndex:b.wN()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.vk();return a?a.levels.length:0};
g.k.Q8=function(){return this.getAudioTrack(1)};
g.k.getAudioTrack=function(a){return(a=g.uT(this.app,a))?a.getAudioTrack():this.app.getVideoData().Wk};
g.k.setAudioTrack=function(a,b,c){this.UJ()===3&&DT(this.app.Bb()).rG("control_set_audio_track",a);if(c=g.uT(this.app,c))if(c.Na()||g.yF(c.playerState,128))a=!1;else{var d;if((d=c.videoData.C)==null?0:d.j){d=b?c.getCurrentTime()-c.Fc():NaN;if(b){var e=Ofb(c.Rc);c.oa("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})}c.Aa.setAudioTrack(a,d,b)}else if(Fgb(c)){b:{b=c.mediaElement.audioTracks();for(d=0;d<b.length;++d)if(e=b[d],e.label===a.Yb.getName()){if(e.enabled){b=!1;break b}b=e.enabled=!0;break b}b=
void 0}b&&c.oa("hlsaudio",{id:a.id})}else{b:if(b=c.videoData,b.D&&!ZJ(b.D)||a==b.Dp||!b.Fd||b.Fd.length<=0)b=!1;else{d=g.v(b.Fd);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof QR)){b=!1;break b}var f=a.Yb.getId();e.B&&(CVa(e.B,f),e.resource=null)}b.Dp=a;b=!0}b&&r0(c)&&(c.publish("internalaudioformatchange",c.videoData,!0),c.oa("hlsaudio",{id:a.id}))}a=!0}else a=!1;return a};
g.k.gea=function(a,b){return this.setAudioTrack(a,b,1)};
g.k.U8=function(){return this.getAvailableAudioTracks(1)};
g.k.getAvailableAudioTracks=function(a){return g.uT(this.app,a).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.uT(this.app,1);return a&&a.getVideoData().B?UO(a.Mf?Pdb(a.Jk,a.Mf,a.Yw()):rS):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.uT(this.app,1);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.yV(this.app.Bb());return a?a.p9():null};
g.k.resetSubtitlesUserSettings=function(){g.yV(this.app.Bb()).Lda()};
g.k.setMinimized=function(a){this.app.setMinimized(a)};
g.k.setOverlayVisibility=function(a){this.publish("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.isMinimized();return this.app.getVisibilityState(this.ji(),this.isFullscreen()||g.rR(this.app.U()),a,this.isInline(),this.app.xu(),this.app.QA(),this.app.XA(),this.app.zk())};
g.k.isMutedByMutedAutoplay=function(){return this.app.wB};
g.k.setInternalSize=function(a,b){this.app.qb().setInternalSize(new g.Me(a,b))};
g.k.Fc=function(){var a=g.uT(this.app);return a?a.Fc():0};
g.k.isMinimized=function(){return this.app.isMinimized()};
g.k.ji=function(){var a=g.uT(this.app);return!!a&&a.ji()};
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);a.external_list!==void 0&&(this.app.xj=aB(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.dV(b).videoId||(a.index=b.index)):L0(this.app,{list:a.list,index:a.index,playlist_length:d.length});$_a(this.app.getPlaylist(),a);this.Ac("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.uT(this.app,1);c&&g.vS(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){lVa(this.app.U(),a,!1)};
g.k.fea=function(a){this.app.sendVideoStatsEngageEvent(a,1)};
g.k.productsInVideoVisibilityUpdated=function(a){this.publish("changeProductsInVideoVisibility",a)};
g.k.isAtLiveHead=function(a,b){return this.app.isAtLiveHead(a,b===void 0?!0:b)};
g.k.getVideoAspectRatio=function(){return this.app.qb().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.uT(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.getPlaybackQualityLabel=function(a){if(a=g.uT(this.app,a)){var b,c;return((c=(b=a.getVideoData().B)==null?void 0:b.video)==null?void 0:c.qualityLabel)||""}return""};
g.k.setPlaybackQualityRange=function(a,b,c,d){(d=g.uT(this.app,d))&&g.Cgb(d,g.RO(a,b||a,!0,"m"),!0,c)};
g.k.nea=function(a,b,c){this.setPlaybackQualityRange(a,b,c,1)};
g.k.onAdUxClicked=function(a,b){this.publish("aduxclicked",a,b)};
g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.k.dispatchReduxAction=function(a){g.HS.dispatch(a)};
g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.mf.includes(e)||(c.mf.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Gb(c.mf,e)&&(d=!0)});
d&&this.publish("updatemarkervisibility")};
g.k.highlightSettingsMenuItem=function(a){this.publish("highlightSettingsMenu",a)};
g.k.openSettingsMenuItem=function(a){this.publish("openSettingsMenuItem",a)};
g.k.w7=function(a,b){this.state.j.subscribe(a,b)};
g.k.Bda=function(a,b){this.state.j.unsubscribe(a,b)};
g.k.e8=function(a,b){this.cueVideoByPlayerVars(a,b===void 0?1:b)};
g.k.F$=function(a,b,c,d){this.loadVideoByPlayerVars(a,b,c===void 0?1:c,d)};
g.k.nda=function(a,b,c,d){this.preloadVideoByPlayerVars(a,b===void 0?1:b,c,d)};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.Lh=function(){return g.vT(this).Lh()};
g.k.Tg=function(){return g.vT(this).Tg()};
g.k.Um=function(){return g.vT(this).Um()};
g.k.Te=function(){return this.Hi().Te()};
g.k.Am=function(){var a=g.Ja.apply(0,arguments),b;(b=this.Te()).Am.apply(b,g.ra(a))};
g.k.Yh=function(){this.Te().Yh()};
g.k.sQ=function(){this.Te().sQ()};
g.k.gi=function(){this.Te().hide()};
g.k.tM=function(a,b,c,d,e,f,h,l){this.Te().tM(a,b,c,d,e,f,h,l)};
g.k.BH=function(a,b){this.Te().BH(a,b)};
g.k.sy=function(a,b,c,d,e){this.Hi().sy(a,b,c,d,e)};
g.k.vH=function(a){this.Te().setEnabled(a)};
g.k.Cz=function(a){this.Hi().Cz(a)};
g.k.FE=function(a,b){this.Hi().FE(a,b)};
g.k.eA=function(a,b){this.Hi().eA(a,b)};
g.k.Er=function(){this.Hi().Er()};
g.k.rT=function(a,b){this.Hi().rT(a,b)};
g.k.qC=ba(5);g.k.rC=ba(7);g.k.Ps=ba(10);g.k.Os=ba(13);g.k.cH=function(a,b){this.Hi().cH(a,b)};
g.k.Sw=function(){this.Hi().Sw()};
g.k.getWebPlayerContextConfig=function(){return this.app.U().getWebPlayerContextConfig()};
g.k.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};
g.k.Zt=function(){var a=g.uT(this.app);return a?a.Zt():""};g.x(g.AT,g.wT);g.k=g.AT.prototype;g.k.qp=function(a,b,c,d,e,f,h){return this.app.qp(a,b,c,d,e,f,h)};
g.k.VE=function(){return this.app.VE()};
g.k.Ut=ba(15);g.k.Bb=function(){return this.app.Bb()};
g.k.Hf=function(){var a=this.Bb().Ke.get("endscreen");return!!a&&a.Hf()};
g.k.getRootNode=function(){return this.qb().element};
g.k.U=function(){return this.app.U()};
g.k.tA=ba(17);g.k.Hm=function(a){return this.app.Hm(a)};
g.k.Km=function(){var a;return((a=g.vT(this))==null?void 0:a.Km())||null};
g.k.getPlayerStateObject=function(a){return this.app.getPlayerStateObject(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.uT(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&a===2||g.DS(b)&&a!==1)a:{var d=this.app;b=d.getVideoData();if(d.ye){a=d.ye;d=d.getCurrentTime();if(a.Pn)var e=void 0;else{var f=void 0;a.Wb&&(f=a.D.get(a.Wb));if(!f){f=bY(a,d*1E3);var h=(e=f)==null?void 0:e.cpn;a.Wb?h&&a.Wb!==h&&a.ea.oa("sdai",{cpcnm:h+"_"+a.Wb,cmt:d.toFixed(3)}):a.ea.oa("sdai",{cpcna:h,cmt:d.toFixed(3)})}e=(c=f)==null?void 0:c.videoData}b=e||b}else if(d.xb&&
d.wb){c=d.xb.getVideoData(a);break a}c=b}else c=b;return c};
g.k.vk=function(a){return this.app.vk(a)};
g.k.zk=function(){return this.app.zk()};
g.k.isHdr=function(){var a=g.uT(this.app);return a?a.isHdr():!1};
g.k.PQ=function(){return this.app.PQ()};
g.k.fd=function(){var a=g.vT(this),b=this.getVideoData();a=a?a.sK:this.getPlayerSize();var c=!!this.getPlaylist();return!(!b||!b.fd(new g.Me(a.width,a.height),c))};
g.k.tC=function(a){this.app.tC(a)};
g.k.Of=function(a,b,c,d,e){this.app.Gg(a,b,c,d,e)};
g.k.Qs=function(a,b){this.app.Qs(a,b)};
g.k.playVideo=function(a){try{if(this.getPresentingPlayerType()===3){DT(this.app.Bb()).rG("control_play");return}if(!a&&this.getPresentingPlayerType()===2){var b=BV(this.app.Bb());if(b&&zkb(b))return}}catch(c){g.mE(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.uT(this.app,a).stopVideo()};
g.k.Xo=function(a){g.uT(this.app,a).Xo()};
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.UG=function(a){this.app.UG(a)};
g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)};
g.k.Vt=function(){var a={},b=g.uT(this.app).Vt();b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.WE=function(){return g.uT(this.app).WE()};
g.k.fF=ba(21);g.k.aM=function(a){this.app.aM(a);a&&Xhb(this.app,a)};
g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=e===2;if(d&&f||e===3)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&&a==="WL"&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
g.k.gF=ba(23);g.k.No=ba(27);g.k.Wo=function(a){var b=g.uT(this.app);b&&b.Wo(a)};
g.k.Lj=ba(31);g.k.iB=function(a,b){this.Bb().iB(a,b)};
g.k.il=function(){var a=g.EV(this.Bb());return!!a&&a.il()};
g.k.Gp=function(){var a=g.EV(this.Bb());return!!a&&a.Gp()};
g.k.oC=function(a,b,c){var d=g.EV(this.Bb());d&&d.oC(a,b,c)};
g.k.nC=ba(32);g.k.kp=function(){var a=g.uT(this.app);a&&a.kp()};
g.k.jM=function(a){this.Ac("onVideoAreaChange");this.Ac(a?"onShowControls":"onHideControls")};
g.k.ao=function(a,b){var c=g.vT(this);if(c)return c.ao(a,b);a=this.app.qb().ai();return new g.Fs(0,0,a.width,a.height)};
g.k.Mm=function(){return this.app.Mm()};
g.k.DF=function(){var a=this.Bb().Ke.get("heartbeat");return!!a&&a.DF()};
g.k.oi=function(){var a=this.U();if(a.Sa||a.disableSeek)return!1;var b=g.uT(this.app);if(!b)return!1;var c=b.getVideoData();return!c.xe()||g.VS(c)||this.getPresentingPlayerType()===2&&!this.app.If()||c.Rm()&&this.getPresentingPlayerType(!0)===2||b.po()&&this.getPresentingPlayerType()!==3||g.fB(g.wR(a))&&!c.Dn||g.tT(this.app)?!1:!0};
g.k.zF=function(){var a;return((a=g.uT(this.app))==null?void 0:a.zF)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.xv=function(){var a=g.uT(this.app);a&&a.xv()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.nf=function(a,b,c){this.app.Bz(a,b,c)};
g.k.Yo=function(a,b){this.app.bH(a,b)};
g.k.sf=function(a,b){Ghb(this.app,a,b)};
g.k.jK=function(a){var b=g.uT(this.app);return b?b.Fh.jK(a):!1};
g.k.Vy=function(a){return this.app.Vy(a)};
g.k.Hg=function(a,b){(b=g.uT(this.app,b))&&b.Hg(a)};
g.k.po=function(){var a=g.uT(this.app);return a?a.po():!0};
g.k.lx=function(){var a=this.getVideoData();return!!a&&(a.lx()||!!a.hlsFormats||!!a.Zc)};
g.k.getPlaybackRate=function(){return g.uT(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.Me=function(){return this.app.Me()};
g.k.Ii=function(){return this.app.Ii()};
g.k.Ji=function(a){return this.app.Ji(a)};
g.k.createClientVe=function(a,b,c,d){this.U().Ya&&this.app.Wr.createClientVe(a,b,c,d===void 0?!1:d)};
g.k.createServerVe=function(a,b,c){this.U().Ya&&this.app.Wr.createServerVe(a,b,c===void 0?!1:c)};
g.k.setTrackingParams=function(a,b){this.U().Ya&&this.app.Wr.setTrackingParams(a,b)};
g.k.logClick=function(a,b){this.U().Ya&&(this.app.Wr.click(a,b),this.publish("veClickLogged",a))};
g.k.logVisibility=function(a,b,c){if(this.U().Ya){var d=this.app.Wr;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.jE(),f=a.visualElement;d.B.has(a)?e&&f&&(b?g.BE(e,[f]):g.CE(e,[f])):b&&!d.C.has(a)&&(e&&f&&g.AE(e,f,void 0,c),d.C.add(a))}};
g.k.hasVe=function(a){return this.U().Ya?this.app.Wr.hasVe(a):!1};
g.k.destroyVe=function(a){this.U().Ya&&this.app.Wr.destroyVe(a)};
g.k.Wc=function(){return g.uT(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.Cy=function(){this.app.Cy()};
g.k.Zz=function(a,b){return this.app.Zz(a,b)};
g.k.Lq=function(a){this.app.Lq(a)};
g.k.lB=function(){this.app.lB()};
g.k.addPlayerResponseForAssociation=function(a){this.app.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.app.finishSegmentByCpn(a,b)};
g.k.cE=function(a,b,c,d,e,f,h){return this.app.cE(a,b,c,d,e,f,h)};
g.k.wF=function(a,b,c,d,e,f,h){return this.app.wF(a,b,c,d,e,f,h)};
g.k.SA=function(){return this.app.SA()};
g.k.Yu=function(a){this.app.Yu(a)};
g.k.Kz=function(a,b){b=b===void 0?Infinity:b;this.app.Kz(a===void 0?-1:a,b)};
g.k.LM=function(a){var b;(b=g.yV(this.Bb()))==null||b.LM(a)};
g.k.VH=function(a,b,c){this.app.VH(a,b,c)};
g.k.Mr=function(){return this.app.Mr()};
g.k.wJ=function(a,b,c){this.app.wJ(a,b,c===void 0?0:c)};
g.k.Co=function(){return this.app.Co()};
g.k.If=function(){return this.app.If()};
g.k.Lu=function(a,b,c){return this.app.Lu(a,b,c)};
g.k.oa=function(a,b,c,d){c=c===void 0?!1:c;var e;(e=g.uT(this.app,d))==null||e.oa(a,b,c)};
g.k.AR=function(a,b){this.publish("aduxmouseover",a,b)};
g.k.zR=function(a,b){this.publish("aduxmouseout",a,b)};
g.k.ZR=function(a,b){this.publish("muteadaccepted",a,b)};
g.k.FF=function(){return this.app.qb().FF()};
g.k.uC=function(a){this.app.qb().uC(a)};
g.k.Ss=function(a){return a?this.app.KT():(a=g.uT(this.app))?a.Ss():!1};
g.k.tT=function(a){this.app.tT(a)};
g.k.pB=function(a){var b,c=(b=g.uT(this.app))==null?void 0:b.Aa;c&&c.pB(a)};
g.k.gt=function(){g.uT(this.app,1).gt()};
g.k.yA=function(){var a=g.uT(this.app);return a?a.yA():0};
g.k.vC=function(a){var b=g.uT(this.app);b&&b.vC(a)};
g.k.oT=function(a){var b=g.uT(this.app);b&&b.oT(a)};var PYa;g.x(OYa,BB);OYa.prototype.UE=function(a,b){a=BB.prototype.UE.call(this,a,b);return Object.assign({},a,this.requestHeaders)};g.x(g.LT,g.OE);g.k=g.LT.prototype;g.k.show=function(){var a=this.yk();g.OE.prototype.show.call(this);this.Ha&&(this.N.T(window,"blur",this.Nb),this.N.T(document,"click",this.Z5));a||this.publish("show",!0)};
g.k.hide=function(){var a=this.yk();g.OE.prototype.hide.call(this);QYa(this);a&&this.publish("show",!1)};
g.k.od=function(a,b){this.B=a;this.ra.show();b?(this.Y||(this.Y=this.N.T(this.J,"appresize",this.PW)),this.PW()):this.Y&&(this.N.Oc(this.Y),this.Y=void 0)};
g.k.ZX=function(){this.B&&this.element&&(this.B.getAttribute("aria-haspopup"),this.B.setAttribute("aria-expanded","true"),this.focus())};
g.k.PW=function(){var a=g.vT(this.J);this.B&&a.sy(this.element,this.B)};
g.k.Nb=function(){var a=this.yk();QYa(this);this.ra.hide();a&&this.publish("show",!1)};
g.k.Z5=function(a){var b=qB(a);b&&(g.Of(this.element,b)||this.B&&g.Of(this.B,b)||!g.JF(a))||this.Nb()};
g.k.yk=function(){return this.Ib&&this.ra.state!==4};g.x(RYa,g.LT);RYa.prototype.od=function(){g.LT.prototype.od.call(this);this.dialog.focus()};g.x(g.NT,g.OE);g.NT.prototype.setIcon=function(a){this.updateValue("icon",a)};
g.NT.prototype.Qj=function(a){this.updateValue("label",a)};
g.NT.prototype.updateValue=function(a,b){g.OE.prototype.updateValue.call(this,a,b);this.publish("size-change")};g.aU={X6:15,L6a:14,H9a:13,M6:12,a7:11,U3:10,b4:9,P3:8,AUDIO:7,SUBTITLES:6,W6:5,SLEEP_TIMER:4,S6:3,vRa:2,REMOTE:1,kwa:0,15:"STABLE_VOLUME",14:"REMOTE_SELECT",13:"SIZE",12:"MINIPLAYER",11:"THREED",10:"AUTONAV",9:"CINEMATIC",8:"ANNOTATIONS",7:"AUDIO",6:"SUBTITLES",5:"SPEED",4:"SLEEP_TIMER",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.x(PT,g.NT);PT.prototype.Mc=function(a){this.B&&this.J.logVisibility(this.element,this.j&&a)};
PT.prototype.D=function(){var a,b,c=(a=this.J.getVideoData())==null?void 0:(b=a.accountLinkingConfig)==null?void 0:b.linked;if(c&&!this.j){var d;a=(d=this.J.getVideoData())==null?void 0:d.accountLinkingConfig;this.setIcon(WE());var e;this.Qj(QT(a==null?void 0:(e=a.menuData)==null?void 0:e.connectedMenuLabel));var f,h,l;this.C=new RYa(this.J,QT(a==null?void 0:(f=a.menuData)==null?void 0:f.connectedDialogTitle),QT(a==null?void 0:(h=a.menuData)==null?void 0:h.connectedDialogMessage),QT(a==null?void 0:
(l=a.menuData)==null?void 0:l.confirmButtonText));g.M(this,this.C);var m;d=(a==null?void 0:(m=a.menuData)==null?void 0:m.trackingParams)||null;(this.B=!!d)&&this.J.setTrackingParams(this.element,d);this.Gb.Vc(this);this.j=!0}else!c&&this.j&&(this.Gb.wh(this),this.j=!1)};
PT.prototype.onClick=function(){this.B&&this.J.logClick(this.element);this.Gb.Nb();this.C&&this.C.od()};g.x(RT,g.I);RT.prototype.L=function(a){return this.api.L(a)};g.x(ST,RT);ST.prototype.onVideoDataChange=function(a){if(!a.accountLinkingConfig){var b,c=(b=a.getPlayerResponse())==null?void 0:b.accountLinkingConfig;a.accountLinkingConfig=c}var d;if(b=(d=a.accountLinkingConfig)==null?void 0:d.alsParam)a.sW=b};
ST.prototype.setAccountLinkState=function(a){this.api.getVideoData().sW=a;this.api.kp()};
ST.prototype.updateAccountLinkingConfig=function(a){var b=this.api.getVideoData(),c=b.accountLinkingConfig;c&&(c.linked=a);this.api.publish("videodatachange","dataupdated",b,this.api.getPresentingPlayerType())};g.x(TYa,RT);
TYa.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(b==="part2viewed"){if(c.pW&&g.cD(c.pW),c.ZC&&UT(this,c.ZC),c.Fz)for(var e={CPN:this.api.getVideoData().clientPlaybackNonce},f=g.v(c.Fz),h=f.next();!h.done;h=f.next())UT(this,g.av(h.value,e))}else b==="conversionview"?this.api.gt():b==="engagedview"&&c.Cj&&(e={CPN:this.api.getVideoData().clientPlaybackNonce},g.cD(g.av(c.Cj,
e)));c.rW&&(e=c.rW,f=a.getId(),e=g.tA(e,{label:f}),g.cD(e));switch(b){case "videoplaytime25":c.jW&&UT(this,c.jW);c.eD&&VT(this,c.eD);c.vW&&g.cD(c.vW);break;case "videoplaytime50":c.kW&&UT(this,c.kW);c.gD&&VT(this,c.gD);c.xW&&g.cD(c.xW);break;case "videoplaytime75":c.lW&&UT(this,c.lW);c.iD&&VT(this,c.iD);c.zW&&g.cD(c.zW);break;case "videoplaytime100":c.iW&&UT(this,c.iW),c.bD&&VT(this,c.bD),c.tW&&g.cD(c.tW)}(e=this.api.getVideoData().Rv)&&XYa(this,e,a.getId())&&XYa(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&
!d)switch(b){case "videoplaybackstart":var l,m=(l=c.gA)==null?void 0:l.j;m&&UT(this,m);break;case "videoplayback2s":(l=(m=c.gA)==null?void 0:m.C)&&UT(this,l);break;case "videoplayback10s":var n;(l=(n=c.gA)==null?void 0:n.B)&&UT(this,l)}this.api.Yo([a],1)};g.x(ZYa,RT);g.x(aZa,g.W);g.k=aZa.prototype;
g.k.CD=function(){var a;if(a=this.J.getPresentingPlayerType()!==3&&g.IT(this.J)&&this.J.qb().getPlayerSize().width>=400)if(a=this.Nd(),this.J.U().L("client_respect_autoplay_switch_button_renderer"))a=!!a.autoplaySwitchButtonRenderer;else{var b,c,d,e;a=!!((b=a.getWatchNextResponse())==null?0:(c=b.contents)==null?0:(d=c.twoColumnWatchNextResults)==null?0:(e=d.autoplay)==null?0:e.autoplay)!==!1}if(a)this.j||(this.j=!0,g.NE(this,this.j),this.J.U().L("web_player_autonav_toggle_always_listen")||$Ya(this),
b=this.Nd(),this.NV(b.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j=!1,g.NE(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.v(this.B),c=b.next();!c.done;c=b.next())this.Oc(c.value)};
g.k.NV=function(a){cZa(this)?this.isChecked=a!==1:((a=a!==1)||(g.CB(),a=g.FA("web_autonav_allow_off_by_default")&&!g.DB(0,141)&&g.jA("AUTONAV_OFF_BY_DEFAULT")?!1:!g.DB(0,140)),this.isChecked=a);bZa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.aM(this.isChecked?2:1);bZa(this);if(cZa(this)){var a=this.Nd().autoplaySwitchButtonRenderer;this.isChecked&&(a==null?0:a.onEnabledCommand)?this.J.jb("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(a==null?0:a.onDisabledCommand)&&this.J.jb("innertubeCommand",a.onDisabledCommand)}this.J.logClick(this.element)};
g.k.getValue=function(){return this.isChecked};
g.k.Nd=function(){return this.J.getVideoData(1)};g.x(dZa,RT);g.x(WT,g.NT);WT.prototype.onClick=function(){this.enabled&&(XT(this,!this.checked),this.publish("select",this.checked))};
WT.prototype.getValue=function(){return this.checked};
WT.prototype.setEnabled=function(a){(this.enabled=a)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var fZa=["en-CA","en","es-MX","fr-CA"];g.x(bU,WT);bU.prototype.Ua=function(a){a?this.j||(this.Gb.Vc(this),this.j=!0):this.j&&(this.Gb.wh(this),this.j=!1);this.j&&XT(this,FPa())};
bU.prototype.D=function(){g.Mv(this.element,"ytp-menuitem-highlight-transition-enabled")};
bU.prototype.C=function(a){var b=FPa();a!==b&&(b=g.CB(),psa(190,a),psa(192,!0),b.save(),this.J.jb("cinematicSettingsToggleChange",a))};
bU.prototype.ya=function(){this.j&&this.Gb.wh(this);WT.prototype.ya.call(this)};g.x(lZa,RT);lZa.prototype.updateCinematicSettings=function(a){this.j=a;var b;(b=this.menuItem)==null||b.Ua(a);this.api.publish("onCinematicSettingsVisibilityChange",a)};g.x(cU,WT);cU.prototype.B=function(a){this.C(a?1:0)};
cU.prototype.onVideoDataChange=function(){var a=this.hasDrcAudioTrack(),b=this.j()===1&&a;XT(this,b);this.setEnabled(a)};
cU.prototype.ya=function(){this.Gb.wh(this);WT.prototype.ya.call(this)};g.x(dU,RT);dU.prototype.getDrcUserPreference=function(){return this.j};
dU.prototype.setDrcUserPreference=function(a){g.xB("yt-player-drc-pref",a,31536E3);a!==this.j&&(this.j=a,this.updateEnvironmentData(),(a=this.api.Wc())&&this.B()&&H_(a))};
dU.prototype.updateEnvironmentData=function(){this.api.U().Wf=this.j===1};
dU.prototype.B=function(){var a,b,c=(a=this.api.getVideoData())==null?void 0:(b=a.C)==null?void 0:b.j;return c?Ys(c,function(d){var e;return((e=d.audio)==null?void 0:e.j)===!0}):!1};g.x(eU,RT);eU.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.sf("embargo",1);var c=b==null?void 0:b.mD.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(c==null?0:c.length)?nZa(this,c.filter(function(d){return mZa(a,d)})):(b==null?0:b.cueRanges)&&nZa(this,b.cueRanges.filter(function(d){return mZa(a,d)}))};
eU.prototype.B=function(a){return a.embargo!==void 0};
eU.prototype.ya=function(){RT.prototype.ya.call(this);this.j={}};g.x(oZa,RT);
oZa.prototype.addEmbedsConversionTrackingParams=function(a){var b=this.api.U(),c=b.widgetReferrer,d=b.Sc,e=this.j,f="",h=b.getWebPlayerContextConfig();h&&(f=h.embedsIframeOriginParam||"");c.length>0&&(a.embeds_widget_referrer=c);d.length>0&&(a.embeds_referring_euri=d);b.D&&f.length>0&&(a.embeds_referring_origin=f);e.length>0&&(b.L("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):g.fB(g.wR(b))&&e.unshift(159628),b=e.join(","),b=g.UA()?b:g.Cg(b,4),a.source_ve_path=b);this.j.length=
0};g.x(pZa,RT);g.x(qZa,g.I);qZa.prototype.ya=function(){g.I.prototype.ya.call(this);this.j=null;this.B&&this.B.disconnect()};g.x(sZa,RT);g.x(fU,g.W);fU.prototype.show=function(){g.W.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
fU.prototype.onVideoDataChange=function(a){var b,c,d=(b=this.api.getVideoData())==null?void 0:(c=b.getPlayerResponse())==null?void 0:c.playabilityStatus;d&&(b=tZa(d),g.yF(this.api.getPlayerStateObject(),128)||a==="dataloaderror"||!b?(this.B=0,wZa(this),this.hide()):(a=(b.remainingTimeSecs||0)*1E3,a>0&&(this.show(),this.updateValue("label",iLa(b.label)),vZa(this,a))))};
fU.prototype.ya=function(){wZa(this);g.W.prototype.ya.call(this)};g.x(xZa,RT);g.x(gU,g.W);gU.prototype.onClick=function(){this.Va.logClick(this.element);this.Va.jb("onFullerscreenEduClicked")};
gU.prototype.Ua=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.x(hU,RT);
hU.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;(b=this.j)!=null&&(g.Ov(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"),yT(b.Va,
b.element,b),b.C=!0))};
hU.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;(b=this.j)!=null&&(b.B=a,b.Ua())};g.x(yZa,g.W);g.x(BZa,RT);g.x(CZa,RT);g.x(DZa,RT);g.x(iU,RT);iU.prototype.getSphericalProperties=function(){var a=g.FT(this.api.Bb());return a?a.getSphericalProperties():{}};
iU.prototype.setSphericalProperties=function(a){if(a){var b=g.FT(this.api.Bb());b&&b.setSphericalProperties(a,!0)}};g.x(EZa,RT);g.k=EZa.prototype;g.k.createClientVe=function(a,b,c,d){this.api.createClientVe(a,b,c,d===void 0?!1:d)};
g.k.createServerVe=function(a,b,c){this.api.createServerVe(a,b,c===void 0?!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.x(jU,RT);jU.prototype.seekToChapterWithAnimation=function(a){var b=this;if(g.vT(this.api)&&!(a<0)){var c=this.api.getVideoData(),d=c.Sk;if(d&&a<d.length){d=g.v(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.index===a){FZa(this,e.startTime,e.title);return}}this.L("web_key_moments_markers")&&(c=c.yW)&&a<c.length&&c.forEach(function(f,h){h===a&&FZa(b,f.timeRangeStartMillis,f.title)})}};
jU.prototype.seekToTimeWithAnimation=function(a,b){g.vT(this.api)&&FZa(this,a,b)};
jU.prototype.setMacroMarkers=function(a,b){b={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:b}}}}}};a=a.getVideoData();a.getWatchNextResponse();a&&a.getWatchNextResponse()==null&&(LWa(a,{raw_watch_next_response:b}),a.publish("dataupdated"))};g.x(kU,RT);kU.prototype.updateMetadata=function(){var a=this,b=this.api.getVideoData();if(b!=null&&b.xe()){var c=this.api.U(),d=[],e="";if(!c.va){var f=IZa(this);g.QF(c)&&f?(d=JZa(f.thumbnailDetails),f.album&&(e=iLa(f.album))):d=[{src:b.kh("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}GZa(this);HZa(this);navigator.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.ET(this.api)&&(b=function(){a.api.nextVideo()},c=function(){a.api.previousVideo()});
lU("nexttrack",b);lU("previoustrack",c)}};
kU.prototype.ya=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var a=g.v("nexttrack previoustrack play pause seekbackward seekforward".split(" ")),b=a.next();!b.done;b=a.next())lU(b.value,null);RT.prototype.ya.call(this)};g.x(mU,RT);mU.prototype.D=function(a){return a.compositeEmbargo!==void 0};
mU.prototype.ya=function(){RT.prototype.ya.call(this);this.B.clear()};g.x(OZa,RT);g.k=OZa.prototype;g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.H(function(l){return l.j==1?(f=DV(e.api.Bb()))?g.z(l,f.j1([a],b,c,d),3):l.Ja(2):l.j!=2&&(h=l.B,h.length)?l.return(h[0]):l.return(Promise.reject())})};
g.k.updateDownloadState=function(a,b){var c=DV(this.api.Bb());return c?c.updateDownloadState(a,b):Promise.reject()};
g.k.pauseVideoDownload=function(a){var b=DV(this.api.Bb());b&&b.uS(a)};
g.k.resumeVideoDownload=function(a){var b=this,c;return g.H(function(d){return(c=DV(b.api.Bb()))?d.return(c.lH(a)):d.return(Promise.reject())})};
g.k.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()};
g.k.refreshAllStaleEntities=function(a){a===void 0&&(a=14400);var b=DV(this.api.Bb());return b?b.refreshAllStaleEntities(a):Promise.reject()};
g.k.setUpPositionSyncInterval=function(a){var b=DV(this.api.Bb());b&&b.setUpPositionSyncInterval(a)};g.x(nU,RT);nU.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
nU.prototype.getAvailableQualityData=function(){var a=this.api.getVideoData();if(!a)return[];var b=[],c,d,e=(c=a.getPlayerResponse())==null?void 0:(d=c.playabilityStatus)==null?void 0:d.paygatedQualitiesMetadata;d=(e==null?void 0:e.qualityDetails)||[];c=new Map;c=g.db(d)&&!Array.isArray(d)?new Map(Object.entries(d)):new Map(d.map(function(h){return[h.key,h.value]}));
if(d=e==null?void 0:e.restrictedAdaptiveFormats){e=[];d=g.v(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f=cK(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=KS(a);bP(e);d=[];e=g.v(e);for(f=e.next();!f.done;f=e.next())f=f.value,ZO(a,f,this.api.U().G)===!0&&d.push(f);b=b.concat(PZa(d,!1,c))}a=this.api.WE();b=b.concat(PZa(a,!0,c));c=[];if(this.api.L("web_player_enable_premium_hbr_in_h5_api"))return b=RZa(b),QZa(b),b;a={};b=g.v(b);for(e=
b.next();!e.done;e=b.next())e=e.value,d=e.quality,a[d]||(e.formatId=void 0,c.push(e),a[d]=!0);return c};g.x(TZa,RT);g.x(oU,g.W);oU.prototype.Ua=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.Yh()};
oU.prototype.onClick=function(){this.api.togglePictureInPicture()};g.x(UZa,RT);UZa.prototype.createButton=function(){var a=this;this.button=new oU(this.api);g.M(this,this.button);this.api.Cz(this.button);this.events.T(this.api,"videodatachange",function(){VZa(a)});
VZa(this)};g.x(WZa,RT);g.x(rU,g.W);g.k=rU.prototype;g.k.lG=function(){};
g.k.Uu=function(){};
g.k.Ly=function(){return!0};
g.k.Bea=function(){if(this.expanded){this.Ya.show();var a=this.C.element.scrollWidth}else a=this.C.element.scrollWidth,this.Ya.hide();this.Bc=34+a;g.Ov(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Bc)+"px";this.eb.start()};
g.k.B8=function(){this.badge.element.style.width=(this.expanded?this.Bc:34)+"px";this.ib.start()};
g.k.NK=function(){this.D&&this.J.logVisibility(this.badge.element,this.Ly());this.G&&this.J.logVisibility(this.dismissButton.element,this.Ly()&&this.pM())};
g.k.kL=function(a){this.Da=a;qU(this);pU(this);this.Tl()};
g.k.mfa=function(){g.Ov(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.pM=function(){return this.va||this.Da||!this.Y};
g.k.Tl=function(){this.Ly()?this.ra.show():this.ra.hide();this.NK()};
g.k.OV=function(){this.enabled=!1;this.Tl()};
g.k.Mx=function(a){a?this.G&&this.J.logClick(this.dismissButton.element):this.D&&this.J.logClick(this.badge.element)};
g.k.lfa=function(){this.Tl()};
g.k.Haa=function(a){this.Ab=a===1;this.Tl();g.Ov(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.Zaa=function(){g.Ov(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.J.isFullscreen());this.Tl()};g.x(sU,g.OE);sU.prototype.S_=function(){this.publish("size-change")};
sU.prototype.focus=function(){this.content.focus()};
sU.prototype.N_=function(){this.publish("back")};g.x(g.tU,sU);g.k=g.tU.prototype;g.k.Vc=function(a,b){if(b===void 0?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Qb(this.items,a,YZa);if(b>=0)return;b=~b;g.Nb(this.items,b,0,a);Hf(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.YR,this);this.menuItems.publish("size-change")};
g.k.wh=function(a){a.unsubscribe("size-change",this.YR,this);this.Na()||(g.Gb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.publish("size-change"))};
g.k.YR=function(){this.menuItems.publish("size-change")};
g.k.focus=function(){for(var a=0,b=0;b<this.items.length;b++){var c=this.items[b].element;if(c.getAttribute("role")==="menuitemradio"){if(c.getAttribute("aria-checked")==="true"){a=b;break}}else break}this.items[a].focus()};
g.k.Tp=function(){return this.items.length};g.x(g.vU,g.LT);g.k=g.vU.prototype;g.k.show=function(){g.LT.prototype.show.call(this);this.KC()};
g.k.hide=function(){g.LT.prototype.hide.call(this);this.j.length>1&&g.xU(this)};
g.k.KC=function(){a_a(this);this.Ib&&(ZZa(this),g.Ts(this.element,this.size))};
g.k.ej=function(){var a=this.j.pop();$Za(this,a,this.j[this.j.length-1],!0)};
g.k.a6=function(a){if(!a.defaultPrevented)switch(a.keyCode){case 27:this.Nb();a.preventDefault();break;case 37:this.j.length>1&&this.ej();a.preventDefault();break;case 39:a.preventDefault()}};
g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
g.k.ya=function(){g.LT.prototype.ya.call(this);this.G&&this.G.dispose();this.K&&this.K.dispose()};g.x(yU,g.vU);yU.prototype.open=function(a,b){this.initialize(a.items)&&this.od(b,!!b)};
yU.prototype.initialize=function(a){g.uU(this.Qe);if(a===void 0||a.length===0)return!1;var b=a.length;a=g.v(a);for(var c=a.next();!c.done;c=a.next())this.Vc(c.value,b--);return!0};
yU.prototype.Vc=function(a,b){a.menuNavigationItemRenderer?d_a(this,a.menuNavigationItemRenderer,b):a.menuServiceItemRenderer&&e_a(this,a.menuServiceItemRenderer,b)};g.x(zU,rU);g.k=zU.prototype;g.k.lG=function(a){a.target!==this.dismissButton.element&&a.target!==this.overflowButton.element&&(this.Mx(),this.onClickCommand&&this.J.jb("innertubeCommand",this.onClickCommand))};
g.k.Uu=function(){this.enabled=!1;this.ra.hide()};
g.k.Ly=function(){return!!this.j&&this.enabled};
g.k.onVideoDataChange=function(a,b){this.P1(b);if(this.j){this.R1();a:if(!this.isCounterfactual){var c,d,e;this.banner.update({title:(c=this.j)==null?void 0:c.title,subtitle:(d=this.j)==null?void 0:d.subtitle,metadata:(e=this.j)==null?void 0:e.metadataText});var f;this.onClickCommand=g.V((f=this.j)==null?void 0:f.onTap,qE);var h;if(a=g.V((h=this.j)==null?void 0:h.onOverflow,qE))this.N=g.V(a,sob);var l;if((l=this.j)==null?0:l.thumbnailImage){var m,n;h=((m=this.j)==null?void 0:(n=m.thumbnailImage)==
null?void 0:n.sources)||[];if(h.length===0)break a;this.thumbnailImage.update({url:h[0].url})}else{var p;if((p=this.j)==null?0:p.thumbnailIconName){var q;this.thumbnailIcon.update({icon:(q=this.j)==null?void 0:q.thumbnailIconName})}}var r;this.shouldShowOverflowButton=!((r=this.j)==null||!r.shouldShowOverflowButton);var t;this.shouldHideDismissButton=!((t=this.j)==null||!t.shouldHideDismissButton)}var u;this.banner.element.setAttribute("aria-label",((u=this.j)==null?void 0:u.a11yLabel)||"");var w;
this.Wa=(w=this.j)==null?void 0:w.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;g_a(this)}};
g.k.Xaa=function(){this.isVisible=!0;g_a(this)};
g.k.Yaa=function(){this.isVisible=!1;g_a(this)};
g.k.NK=function(){rU.prototype.NK.call(this);this.B&&this.J.logVisibility(this.banner.element,this.isVisible)};
g.k.Mx=function(){rU.prototype.Mx.call(this,!1);this.B&&this.J.logClick(this.banner.element)};
g.k.b6=function(a){this.K||(this.K=new yU(this.J),g.M(this,this.K));var b,c;if((b=this.N)==null?0:(c=b.menu)==null?0:c.menuRenderer)this.K.open(this.N.menu.menuRenderer,a.target),a.preventDefault()};
g.k.P1=function(){};
g.k.R1=function(){};
g.k.ya=function(){this.J.sf("suggested_action_view_model");rU.prototype.ya.call(this)};g.x(AU,zU);
AU.prototype.P1=function(a){var b,c,d;this.productUpsellSuggestedActionViewModel=g.V((b=a.getWatchNextResponse())==null?void 0:(c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.suggestedActionViewModel,Nob);var e;if((e=this.productUpsellSuggestedActionViewModel)==null?0:e.content){var f;this.j=g.V((f=this.productUpsellSuggestedActionViewModel)==null?void 0:f.content,pob)}var h,l;if(this.B=!!((h=this.productUpsellSuggestedActionViewModel)==null?0:(l=h.loggingDirectives)==null?
0:l.trackingParams)){var m,n;this.J.setTrackingParams(this.banner.element,((m=this.productUpsellSuggestedActionViewModel)==null?void 0:(n=m.loggingDirectives)==null?void 0:n.trackingParams)||null)}var p;this.isCounterfactual=!((p=this.productUpsellSuggestedActionViewModel)==null||!p.isCounterfactualServing)};
AU.prototype.R1=function(){var a=[],b,c=g.v(((b=this.productUpsellSuggestedActionViewModel)==null?void 0:b.ranges)||[]);for(b=c.next();!b.done;b=c.next()){var d=b.value;d&&(b=Number(d.startTimeMilliseconds),d=Number(d.endTimeMilliseconds),isNaN(b)||isNaN(d)||a.push(new g.UI(b,d,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.J.nf(a)};g.x(h_a,RT);g.x(j_a,RT);j_a.prototype.onVideoDataChange=function(a){a==="newdata"&&this.j&&i_a(this)};g.x(g.BU,g.NT);g.k=g.BU.prototype;g.k.open=function(){g.wU(this.Gb,this.B)};
g.k.Ti=function(a){k_a(this);var b=this.options[a];b&&(b.element.setAttribute("aria-checked","true"),this.Dd(this.bl(a)),this.C=a)};
g.k.Hz=function(a,b,c,d){var e=this;c={I:"div",Ma:["ytp-menuitem",d?"ytp-menuitem-with-footer":""],W:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":"false"},V:[{I:"div",Ma:["ytp-menuitem-label"],xa:"{{label}}"}]};d&&(d={I:"div",S:"ytp-menuitem-footer",V:[d]},c.V?c.V.push(d):c.V=[d]);b=new g.NT(c,b,this.bl(a,!0));b.listen("click",function(){e.xN(a)});
return b};
g.k.enable=function(a){this.N?a||(this.N=!1,this.oz(!1)):a&&(this.N=!0,this.oz(!0))};
g.k.oz=function(a){a?this.Gb.Vc(this):this.Gb.wh(this)};
g.k.Mg=function(a){this.publish("select",a)};
g.k.xN=function(a){this.Mg(a)};
g.k.bl=function(a){return a.toString()};
g.k.c6=function(a){a.defaultPrevented||a.keyCode!==39||(this.open(),a.preventDefault())};
g.k.ya=function(){this.N&&this.Gb.wh(this);g.NT.prototype.ya.call(this);for(var a=g.v(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.x(l_a,g.BU);g.k=l_a.prototype;g.k.Ua=function(){var a=this.pA("Off");this.J.getPresentingPlayerType()!==2?(m_a(this),this.Ti(this.G),this.j&&(this.G===a?this.j="":this.setSleepTimerTimeLeft(this.j)),this.K&&this.setVideoTimeLeft(this.K),this.enable(!0)):(g.CU(this,[]),this.enable(!1))};
g.k.Mg=function(a){n_a(this,a);this.Gb.ej()};
g.k.pA=function(a){switch(a){case "Off":return"\u0412\u042b\u041a\u041b";case "End of video":return"\u041f\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0438 \u0432\u0438\u0434\u0435\u043e";case "End of playlist":return"\u041f\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0438 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u0430";default:return(a.toString()+" \u043c\u0438\u043d.").toLowerCase()}};
g.k.onVideoDataChange=function(a){a==="dataloaded"&&m_a(this)};
g.k.vca=function(a){this.J.logVisibility(this.element,a)};
g.k.onClick=function(){this.J.logClick(this.element)};
g.k.resetSleepTimerMenuSettings=function(){n_a(this,this.pA("Off"))};
g.k.setSleepTimerTimeLeft=function(a){this.j=a;this.Dd(a)};
g.k.setVideoTimeLeft=function(a){this.K=a;this.D.Dd(a)};g.x(DU,RT);DU.prototype.resetSleepTimerMenuSettings=function(){this.menuItem&&this.menuItem.resetSleepTimerMenuSettings()};
DU.prototype.setSleepTimerTimeLeft=function(a){this.menuItem&&this.menuItem.setSleepTimerTimeLeft(a)};
DU.prototype.setVideoTimeLeft=function(a){this.menuItem&&this.menuItem.setVideoTimeLeft(a)};g.x(g.FU,g.GE);g.k=g.FU.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.publish("dragend",0,0,null));this.B&&(this.B=!1,this.publish("hoverend",0,0,null),GU(this),EU(this))};
g.k.Px=function(a){GU(this);this.T(HU("move"),this.PV);this.T(HU("out"),this.vB);this.T("touchstart",this.zN);this.j&&this.T(HU("down"),this.yN);var b=a.target;a=new g.Ge(a.pageX,a.pageY);this.B=!0;this.publish("hoverstart",a.x,a.y,b);this.publish("hovermove",a.x,a.y,b)};
g.k.PV=function(a){var b=a.target;a=new g.Ge(a.pageX,a.pageY);if(this.G){var c=this.G;this.G=null;if(c.relatedTarget===b&&Le(new g.Ge(c.pageX,c.pageY),a))return}this.publish("hovermove",a.x,a.y,b)};
g.k.vB=function(a){var b=new g.Ge(a.pageX,a.pageY),c=a.relatedTarget;try{if(c&&g.Of(this.target,c)){this.G=a;this.publish("hovermove",b.x,b.y,c);return}}catch(d){}GU(this);EU(this);this.B=!1;this.publish("hoverend",b.x,b.y,c)};
g.k.eaa=function(a){this.Px(a);this.yN(a)};
g.k.yN=function(a){if(typeof a.button!=="number"||a.button===0){GU(this);this.D.T(IU(a.target),HU("move"),this.daa);this.D.T(IU(a.target),HU("up"),this.d6);var b=a.target;if(g.Nc)this.T("dragstart",this.o8);else if(a.preventDefault(),(g.HR||Js)&&b)a:{for(var c=b;c;){if($ba(c)||c.getAttribute("tabindex")==="-1"){c.focus();break a}c=c.parentElement}IU(b).activeElement.blur()}this.C=!0;a=new g.Ge(a.pageX,a.pageY);this.publish("dragstart",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)}};
g.k.o8=function(a){a.preventDefault()};
g.k.daa=function(a){var b=a.target;b===IU(a.target)&&(b=null);a=new g.Ge(a.pageX,a.pageY);this.publish("hovermove",a.x,a.y,b);this.publish("dragmove",a.x,a.y,b)};
g.k.d6=function(a){GU(this);this.C=!1;var b=qB(a),c=a.target;a=new g.Ge(a.pageX,a.pageY);b&&g.Of(this.target,b)?(this.T(HU("move"),this.PV),this.T(HU("out"),this.vB),this.T(HU("down"),this.yN),this.T("touchstart",this.zN),this.publish("dragend",a.x,a.y,c)):(EU(this),this.B=!1,this.publish("dragend",a.x,a.y,c),this.publish("hoverend",a.x,a.y,c))};
g.k.zN=function(a){var b=a.changedTouches[0];b&&(GU(this),this.Y||(this.T("touchmove",this.Vea),this.T("touchend",this.QV),this.T("touchcancel",this.QV),this.K=b.identifier,a=a.target,this.B||(this.B=!0,this.publish("hoverstart",b.pageX,b.pageY,a)),this.publish("hovermove",b.pageX,b.pageY,a),this.j&&(this.C=!0,this.publish("dragstart",b.pageX,b.pageY,a),this.publish("dragmove",b.pageX,b.pageY,a))))};
g.k.Vea=function(a){var b=o_a(this,a);b&&(this.j&&a.preventDefault(),a=a.target,this.publish("hovermove",b.pageX,b.pageY,a),this.j&&this.publish("dragmove",b.pageX,b.pageY,a))};
g.k.QV=function(a){var b=o_a(this,a);if(b){GU(this);EU(this);this.B=!1;var c=a.target;this.j&&(this.N||a.preventDefault(),this.C=!1,this.publish("dragend",b.pageX,b.pageY,c));this.publish("hoverend",b.pageX,b.pageY,c)}};
g.k.ya=function(){this.j&&(g.Nc&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");GU(this);g.GE.prototype.ya.call(this)};
var p_a=!1;g.x(q_a,g.W);q_a.prototype.gi=function(){g.Is(this.element,"display","none");this.J.logVisibility(this.j,!1)};g.x(KU,RT);KU.prototype.va=function(a,b){this.Z=[a,b];this.j.subscribe("dragmove",this.K,this);this.j.subscribe("dragend",this.G,this);this.C||g.Ev(this.delay)};
KU.prototype.Ga=function(){if(this.D){this.C=!0;this.Ha=this.api.getPlaybackRate();this.La=this.api.getPlayerStateObject().isPaused();var a=this.speedmasterUserEdu;g.Is(a.element,"display","");a.J.logVisibility(a.j,!0);this.api.setPlaybackRate(this.Oa);this.api.hideControls();this.api.playVideo();this.N&&(this.N.LA=!0);this.ra&&(this.ra.rK=!0)}};
KU.prototype.K=function(a,b){if(!this.C){a=[a,b];var c=this.Z;c&&a&&c.length===2&&a.length===2?(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.Da?this.Z=a:LU(this)}};
KU.prototype.G=function(){LU(this)};g.x(t_a,RT);t_a.prototype.onVideoDataChange=function(a){a==="newdata"&&this.api.Bb().createSubtitlesModuleIfNeeded()};g.x(MU,g.yb);MU.prototype.preventDefault=function(){g.yb.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
MU.prototype.stopPropagation=function(){g.yb.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.x(g.NU,yK);g.k=g.NU.prototype;g.k.ew=function(){return!0};
g.k.isView=function(){return!1};
g.k.XS=function(){return!1};
g.k.Jb=function(){return this.j};
g.k.Ff=function(){return this.j.src};
g.k.wI=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.k.XL=function(){this.j.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return this.j.playbackRate>=0?this.j.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a};
g.k.Xt=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.isSeeking=function(){return this.j.seeking};
g.k.isEnded=function(){return this.j.ended};
g.k.QJ=function(){return this.j.muted};
g.k.pC=function(a){GEa();this.j.muted=a};
g.k.gx=function(){return this.j.played||eK([],[])};
g.k.Ih=function(){try{var a=this.j.buffered}catch(b){}return a||eK([],[])};
g.k.xA=function(){return this.j.seekable||eK([],[])};
g.k.vI=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.al=function(){return this.j.readyState};
g.k.RJ=function(){return this.j.networkState};
g.k.ih=function(){return this.j.error?this.j.error.code:null};
g.k.uf=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.ji=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.k.xv=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():FEa()&&a.webkitSetPresentationMode(a.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")};
g.k.au=function(){var a=this.j;return new g.Ge(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.Us(this.j)};
g.k.setSize=function(a){g.Ts(this.j,a)};
g.k.getVolume=function(){return this.j.volume};
g.k.setVolume=function(a){GEa();this.j.volume=a};
g.k.jP=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.dE=ba(34);g.k.KH=ba(36);g.k.LH=ba(38);g.k.Nz=ba(40);g.k.JE=function(){return lB(this.j)};
g.k.Bt=function(a){g.Kv(this.j,a)};
g.k.lF=function(a){return g.Ls(this.j,a)};
g.k.IQ=function(){return g.Of(document.body,this.j)};
g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
g.k.ya=function(){for(var a=g.v(Object.keys(this.G)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.G[b]);yK.prototype.ya.call(this)};
g.k.pT=function(a){this.j.disableRemotePlayback=a};OU.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
OU.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)};
OU.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.x(PU,g.I);PU.prototype.start=function(){this.B.start()};
PU.prototype.stop=function(){this.B.stop()};
PU.prototype.clear=function(){for(var a=g.v(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
PU.prototype.sample=function(){for(var a=g.v(this.C),b=a.next();!b.done;b=a.next()){var c=g.v(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new v_a(jqb.has(b)));this.j.get(b).update(c())}this.B.start()};
var jqb=new Set(["networkactivity"]);v_a.prototype.update=function(a){this.j?(this.buffer.add(a-this.aB||0),this.aB=a):this.buffer.add(a)};
v_a.prototype.clear=function(){this.buffer.clear();this.aB=0};g.x(TU,g.W);g.x(VU,g.W);VU.prototype.show=function(){g.W.prototype.show.call(this);this.Ua();this.Va.L("html5_enable_moving_s4n_window")&&g.zI(this.Va.U())&&this.N()};
VU.prototype.hide=function(){g.W.prototype.hide.call(this);this.delay.stop();this.D.stop()};
VU.prototype.Ua=function(){var a=(0,g.iC)(),b=y_a(this.Va);UU(this.j,b.bandwidth_samples);UU(this.K,b.network_activity_samples);UU(this.C,b.live_latency_samples);UU(this.B,b.buffer_health_samples);var c={};b=g.v(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.v(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=(0,g.iC)()-a>25?5E3:500;this.delay.start(a)};
VU.prototype.N=function(){this.G?(this.position+=1,this.position>15&&(this.G=!1)):(--this.position,this.position<=0&&(this.G=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.x(B_a,RT);g.x(WU,g.I);WU.prototype.j=function(){var a=(0,g.iC)()-this.startTime;a=a<this.duration?a/this.duration:1;this.B(Xv(kqb,a));a<1&&this.delay.start()};
var kqb=new Wv(0,0,.4,0,.2,1,1,1),H_a=/[0-9.-]+|[^0-9.-]+/g;g.x(XU,g.W);XU.prototype.onClick=function(){var a=this.api.app;var b=a.L("web_log_theater_mode_visibility")?!a.zk():!a.QQ;a.Va.jb("SIZE_CLICKED",b);this.api.logClick(this.element)};
XU.prototype.Ua=function(){g.NE(this,this.api.PQ()&&!this.api.isFullscreen()&&this.api.getPresentingPlayerType()!==3);if(this.Ib){var a=this.api.zk();this.zk!==a&&this.xC(a)}this.api.logVisibility(this.element,this.Ib)};
XU.prototype.xC=function(a){var b=a?{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,W:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,W:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};this.zk==null?this.updateValue("icon",b):G_a(this.transition,this.element,
b);this.zk=a;b=g.zT(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.zT(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.Yh()};g.x(I_a,RT);g.x(J_a,RT);YU.prototype.send=function(a,b){var c;return g.H(function(d){if(d.j==1)return g.Ba(d,2),g.z(d,JA(a,b),4);if(d.j!=2)return d.return(d.B);c=g.Da(d);if(c instanceof IA)throw new pn(on(zA(c.xhr)),c.message);throw c;})};
YU.prototype.ME=function(a,b){var c=this,d,e,f,h,l,m;return g.H(function(n){if(n.j==1){var p=new So;d=Uk(p,1,c.Hs);a&&Uk(d,2,a);b&&Uk(d,3,b);return g.z(n,c.send(c.B,Object.assign({},{postBody:d.Pk()},c.j)),2)}e=n.B;f=Glb(e.xhr.responseText);h=Sj(f,2);if(!h.isEmpty()){if(g.UA()&&jra()<10)throw Error("Unsupported");l=Dg(fda(h));return n.return(hga(l))}m=g.fk(f,Mo,1);if(!m)throw Error("Missing field");return n.return(m)})};
YU.prototype.TX=function(a){var b=this,c,d;return g.H(function(e){if(e.j==1){var f=new To;f=Uk(f,1,b.Hs);c=Uk(f,2,a);return g.z(e,b.send(b.C,Object.assign({},{postBody:c.Pk()},b.j)),2)}d=e.B;return e.return(Ilb(d.xhr.responseText))})};var k3={},O_a=(k3[1]="pot_ss",k3[2]="pot_sf",k3[3]="pot_se",k3[4]="pot_xs",k3[5]="pot_xf",k3[6]="pot_xe",k3);g.x(ZU,RT);ZU.prototype.ya=function(){this.G&&(g.EA(this.G),this.G=void 0);RT.prototype.ya.call(this)};
ZU.prototype.vP=function(a){var b=this;return g.H(function(c){return b.j?c.return(b.j.ready().then(function(){b.Ob.Qi("pot_if");return P_a(b,a)})):c.return(Promise.reject("web po not ready"))})};
ZU.prototype.pR=function(a){return P_a(this,a)};
ZU.prototype.pU=function(){this.j&&!this.j.isReady()&&$U(this)};g.x(Q_a,RT);g.x(aV,g.I);aV.prototype.j=function(){for(var a=g.v(g.Ja.apply(0,arguments)),b=a.next();!b.done;b=a.next())(b=b.value)&&this.features.push(b)};
aV.prototype.ya=function(){for(var a=this.features.length-1;a>=0;a--)this.features[a].dispose();this.features.length=0;g.I.prototype.ya.call(this)};bV.prototype.CR=function(){this.B=(0,g.iC)()};
bV.prototype.reset=function(){this.j=this.B=NaN};
bV.prototype.HR=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(Math.random()<.01){b=b?"pbp":"pbs";var c={startTime:this.j};a.G&&(c.cttAuthInfo={token:a.G,videoId:a.videoId});QG("seek",c);g.LG({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.B)||KG("pl_ss",this.B,"seek");KG(b,(0,g.iC)(),"seek")}this.reset()}};g.k=R_a.prototype;g.k.reset=function(){IG(this.timerName)};
g.k.tick=function(a,b){KG(a,b,this.timerName)};
g.k.Qi=function(a){return yAa(a,this.timerName)};
g.k.Dv=function(a){QK(a,void 0,this.timerName)};
g.k.infoGel=function(a){g.LG(a,this.timerName)};g.x(V_a,g.GE);g.k=V_a.prototype;g.k.Bl=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.Xp=function(a){return this.loop||!!a||this.index-1>=0};
g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&this.order[this.index]!=null?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.publish("shuffle")};
g.k.kh=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b||this.Ea.va||a==="sddefault.jpg"||a==="hq720.jpg"||a==="maxresdefault.jpg")return b;if(this.C.length)return BR(this.Ea,this.C[0],a)};
g.k.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.k.onReady=function(a){this.j=a;this.loaded&&g.BA(this.j,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.zl=function(){return this.Ea.getVideoUrl(g.dV(this).videoId,this.getPlaylistId())};
g.k.ya=function(){this.j=null;g.vb(this.items);g.GE.prototype.ya.call(this)};var eV=new Map;g.x(g.gV,g.GE);g.k=g.gV.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.Xh=function(){};
g.k.qn=function(){return!0};
g.k.ya=function(){this.loaded&&this.unload();g.GE.prototype.ya.call(this)};
g.k.qc=function(){return{}};
g.k.getOptions=function(){return[]};g.x(g.jV,g.I);g.k=g.jV.prototype;g.k.Ku=ba(43);g.k.gB=function(){};
g.k.Ys=function(){};
g.k.ix=function(){return""};
g.k.ES=ba(44);g.k.qG=function(){this.D.resolve()};
g.k.ya=function(){this.Ys();g.I.prototype.ya.call(this)};g.x(g.kV,g.jV);g.kV.prototype.Ku=ba(42);g.kV.prototype.gB=function(a){if(this.audioTrack)for(var b=g.v(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.iV(this.B,c.value);a()};
g.kV.prototype.ix=function(a,b){var c=a.Ge(),d={fmt:b};if(b==="srv3"||b==="3"||b==="json3")g.UA()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.WR(a));this.X.L("web_player_topify_subtitles_for_shorts")&&this.C&&(d.xosf="1");Object.assign(d,this.X.j);return g.tA(c,d)};
g.kV.prototype.Ys=function(){this.X.L("web_player_pt_tt")&&(this.D.promise.catch(function(){}),this.D.reject(),this.D=new g.No);
this.j&&this.j.abort()};g.h0a.prototype.Xu=function(a){this.Ea.Xu(a)};g.lqb=new Map;g.x(g.oV,g.jV);g.oV.prototype.Ku=ba(41);
g.oV.prototype.gB=function(a){var b=this,c=this.C,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.lZ&&(d.asrs=1);c=g.tA(c,d);this.Ys();this.j=g.HA(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=l.getAttribute("lang_default")==="true",u=l.getAttribute("cantran")===
"true";l=l.getAttribute("vss_id");g.iV(b.B,new g.TR({languageCode:m,languageName:n,name:p,kind:q,id:r,is_servable:!0,is_translateable:u,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:e[h].getAttribute("lang_default")==="true"},b.K[m.languageCode]=m.languageName,b.G.push(m)}a()},
withCredentials:!0})};
g.oV.prototype.ix=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.X.L("captions_url_add_ei")&&(b.ei=this.eventId);a.translationLanguage&&(b.tlang=g.WR(a));Object.assign(b,this.X.j);return c=g.tA(c,b)};
g.oV.prototype.Ys=function(){this.j&&this.j.abort()};rV.prototype.resolve=function(a){pV(this,a)};
rV.prototype.reject=function(a){qV(this,a)};
rV.prototype.bk=function(a){var b=new rV(0,{});this.onSuccess.push(function(c){try{var d=a(c);pV(b,d)}catch(e){qV(b,e)}});
this.onFailure.push(function(c){qV(b,c)});
tV(this);return b};n0a.prototype.Ks=function(){for(var a=g.Ja.apply(0,arguments),b=this,c=new rV(2,{error:"empty"}),d=[],e={KA:0};e.KA<this.B.length&&c.currentState!==1;e={Sn:void 0,KA:e.KA},e.KA++)e.Sn=this.B[e.KA],e.Sn.condition.apply(e.Sn,g.ra(a))&&(c=uV(uV(c,function(f){return function(){if(!f.Sn.condition.apply(f.Sn,g.ra(a)))throw"condition failed";var h=f.Sn.Uw.apply(f.Sn,g.ra(a));return b.j===void 0||b.j===null?h:m0a(h).bk(function(l){if(!b.j.apply(b,[l].concat(g.ra(a))))throw"verification failed";return l})}}(e)),
function(f){return function(h){h!=="empty"&&h!=="condition failed"&&h!=="verification failed"&&h!=="error"&&(f.Sn.onFailure&&f.Sn.onFailure.apply(f.Sn,[h].concat(g.ra(a))),b.onFailure&&b.onFailure.apply(b,[h,
f.KA,f.Sn].concat(g.ra(a))),d.push(h));throw"error";}}(e)));
return uV(c,function(){throw d;})};vV.prototype.preload=function(a){a=a?o0a(this.capabilities,a):this.capabilities;return a.Ld?r0a(this,a).bk(function(){}):sV()};
vV.prototype.compile=function(a){return uV(this.G.Ks(a),function(b){throw Error("wasm module compile failure",{cause:b});})};
vV.prototype.instantiate=function(a,b){return uV(this.K.Ks(a,b),function(c){throw Error("wasm module instantiation failure",{cause:c});})};v0a.prototype.emscripten_notify_memory_growth=function(){};
w0a.prototype.proc_exit=function(){};
w0a.prototype.fd_write=function(a,b,c){if(!this.exports)return 1;a=new Uint32Array(this.exports.memory.buffer,b,c*2);b=[];for(var d=0;d<c;++d){var e=new Uint8Array(this.exports.memory.buffer,a[d*2],a[d*2+1]);e=g.xN(e);b.push(e)}return b.reduce(function(f,h){return f+h.length},0)};var s0a;wV.prototype.eJ=function(a){if(a.buffer!==this.exports.memory.buffer){var b=this.exports.malloc(a.byteLength);b=new Uint8Array(this.exports.memory.buffer,b,a.byteLength);b.set(a);return b}};
wV.prototype.sR=function(a){if(a.buffer===this.exports.memory.buffer){var b=a.slice();this.exports.free(a.byteOffset);return b}};
var ihb="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);xV.DQ(wV,{eJ:function(a){return{profile:"copyj2w",Ft:a===void 0?0:Math.ceil(a.byteLength/16)}},
sR:function(a){return{profile:"copyw2j",Ft:a===void 0?0:Math.ceil(a.byteLength/16)}}});g.x(z0a,g.I);g.k=z0a.prototype;g.k.createSubtitlesModuleIfNeeded=function(){D0a(this)&&zV(this,"captions");return!!g.yV(this)};
g.k.yH=function(){return this.J.getVideoData().yH()};
g.k.AT=function(){return this.J.getVideoData().AT()};
g.k.uX=function(){var a=this.Ke.get("heartbeat");zV(this,"heartbeat",!1,!0,this.uX);!a&&this.Ke.has("heartbeat")&&this.J.publish("offlineslatestatechange")};
g.k.fJ=function(){zV(this,"annotations_module",!0,void 0,this.fJ);var a=this.Ke.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.TO=function(){if(!this.Ke.get("ad"))try{A0a(this)?zV(this,"ad",!1,!0,this.TO):this.J.Hg("ad")}catch(a){this.J.Hg("ad"),g.mE(a)}};
g.k.Ii=function(){return this.B};
g.k.Pr=function(){var a={},b=g.yV(this);b&&Object.assign(a,b.Pr());return a};
g.k.iB=function(a,b){Object.assign(this.B,a||null);Object.assign(this.iJ,b||null)};
g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.J.L("enable_wn_infocards")&&g.aT(a)&&!g.EV(this)&&this.fJ()};
g.k.ya=function(){g.I.prototype.ya.call(this);AV(this,1,!0);for(var a=g.v(Object.entries(R0a)),b=a.next();!b.done;b=a.next()){var c=g.v(b.value);b=c.next().value;c=c.next().value;this.D.has(c)&&eV.delete(b)}this.D.clear()};
var l3={},R0a=(l3.ad="ad.js",l3.annotations_module="annotations_module.js",l3.asmjs="asmjs.js",l3.creatorendscreen="annotations_module.js",l3.embed="embed.js",l3.endscreen="endscreen.js",l3.heartbeat="heartbeat.js",l3.inline_preview="inline_preview.js",l3.kids="kids.js",l3.remote="remote.js",l3.miniplayer="miniplayer.js",l3.offline="offline.js",l3.captions="captions.js",l3.unplugged="unplugged.js",l3.ux="ux.js",l3.webgl="webgl.js",l3.ypc="ypc.js",l3.ypc_clickwrap="ypc_clickwrap.js",l3.yto="yto.js",
l3),M0a="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat inline_preview kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.x(T0a,g.GE);g.k=T0a.prototype;g.k.e6=function(a){a=new g.Ge(a.pageX,a.pageY);if(!Le(a,this.D)){var b=2;this.K&&(b|=8);this.D=a;FV(this,b,!0)}};
g.k.faa=function(){this.K&&FV(this,8,!0);FV(this,2,!1)};
g.k.Px=function(a){var b=new g.Ge(a.pageX,a.pageY);Le(b,this.D)||(this.D=b,(a=a.target)&&this.VI(a)&&(FV(this,4,!0),this.j.Oc(this.C),this.C=this.j.T(this.target,"mouseover",this.vB),this.N=this.j.T(this.target,"mouseout",this.vB)))};
g.k.vB=function(a){a=a.relatedTarget;a&&this.VI(a)||(this.D=new g.Ge(NaN,NaN),U0a(this))};
g.k.x$=function(){FV(this,1,!0)};
g.k.L8=function(a){a=a.target;a instanceof Element&&!(a.tabIndex>0)||FV(this,1,!0)};
g.k.RV=function(){this.K=!0;this.j.Oc(this.G);this.G=this.j.T(document,"mouseup",this.f6)};
g.k.f6=function(){this.K=!1;FV(this,8,!1);this.j.Oc(this.G);this.G=this.j.T(this.target,"mousedown",this.RV)};
g.k.SV=function(a){if(a=(a=a.changedTouches)&&a[0])this.Da=a.identifier,this.j.Oc(this.Z),this.Z=this.j.T(this.target,"touchend",this.g6,void 0,!0),FV(this,1024,!0)};
g.k.g6=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.Da){var d=c;break}}d&&(this.j.Oc(this.Z),this.Z=this.j.T(this.target,"touchstart",this.SV,void 0,!0),FV(this,1024,!1))};
g.k.Hv=function(){FV(this,2,!0)};
g.k.resize=function(){g.LJ&&U0a(this)};
g.k.toString=function(){return g.GE.prototype.toString.call(this)};g.x(g.HV,g.W);g.k=g.HV.prototype;g.k.kfa=function(){this.Ua()};
g.k.Ua=function(){var a=this.api.getVideoData(),b=this.api.U(),c=!!this.api.fd();g.Ov(this.element,"ytp-shorts-mode",c);c?b=[{I:"svg",W:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},V:[{I:"path",W:{"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",W:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.jT(a)?b=[{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},V:[{I:"path",S:"ytp-dni-large-play-button-bg",W:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",W:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:a.Jf&&a.Rp?b=[{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-dni-large-play-button-bg",
W:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{I:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:b.K?(g.Ov(this.element,"ytp-touch-device",b.B),b=[b.K?{I:"svg",W:{height:"100%",version:"1.1",
viewBox:"0 0 60 60",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",W:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",W:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",W:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{I:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):b=[{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",W:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#f00"}},{I:"path",W:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",b);a.Jf&&a.Rp&&(a=a.Rp?a.Rp:"#1f1f1f",this.Fa("ytp-dni-large-play-button-bg").setAttribute("fill",a))};
g.k.show=function(){g.W.prototype.show.call(this);this.api.U().L("embeds_web_enable_lite_experiment_control_arm_logging")&&this.api.logVisibility(this.element,!0)};
g.k.C9=function(){this.api.getVideoData().mutedAutoplay||(this.api.lB(),this.api.playVideo())};
g.k.pda=function(a){this.api.getVideoData().mutedAutoplay||a.preventDefault()};g.x(g.IV,g.W);g.k=g.IV.prototype;g.k.show=function(){var a=this;this.Ib||(this.D.T(this.api,"videodatachange",function(){g.Ev(a.j)}),this.D.T(this.api,"videoplayerreset",function(){g.Ev(a.j)}));
g.W.prototype.show.call(this)};
g.k.hide=function(){this.D&&g.uB(this.D);g.W.prototype.hide.call(this)};
g.k.kc=function(){g.Ev(this.j)};
g.k.onStateChange=function(){g.Ev(this.j)};
g.k.Wca=function(){g.Ev(this.j)};
g.k.onReset=function(){this.B.stop();this.hide();g.Ev(this.j)};
g.k.Ua=function(){var a=this.api.getPlayerStateObject();if(this.api.getPresentingPlayerType()===3&&(a.isPlaying()||a.isPaused()))var b=!0;else(b=this.api.Bb().Ke.get("ypc"))&&b.AL?b=!0:(b=this.api.U(),b=g.yF(a,2)&&g.BT(this.api)&&b.Ng?!0:!1);b?(b=!0,this.C.hide()):this.api.L("web_player_show_frame_zero_when_cued")&&V0a(this)?(b=!0,this.C.hide()):(this.C.show(),b=a.isCued()&&this.api.getPresentingPlayerType()!==2||g.yF(a,2)&&!g.BT(this.api)&&!this.api.VE()||g.yF(a,1024)?!0:!1);var c=this.api.getVideoData();
b&&!c.wW?(this.B.show(),this.pfa(this.api.getPlaylist(),c)):(this.B.hide(),g.yF(a,1)||this.B.stop())};
g.k.pfa=function(){var a=g.Ja.apply(0,arguments),b=this.api.U(),c,d=(c=this.api.getVideoData())==null?void 0:c.videoId;if(b.L("web_player_show_frame_zero_when_cued")&&d&&V0a(this))var e="https://i.ytimg.com/vi/"+d+"/frame0.jpg";else for(a=g.v(a),c=a.next();!c.done;c=a.next())if(c=c.value,!(!c||c instanceof g.sS&&!c.videoId)){e=this.api.qb().getPlayerSize();var f=g.DR();d=e.width*f;f*=e.height;if(d>1280||f>720)if(e=c.kh("maxresdefault.jpg"))break;if(d>640||f>480)if(e=c.kh("maxresdefault.jpg"))break;
if(d>320||f>180)if(e=c.kh("sddefault.jpg")||c.kh("hqdefault.jpg")||c.kh("mqdefault.jpg"))break;if(e=c.kh("default.jpg"))break}g.GR(b)&&(b=new Image,b.addEventListener("load",function(){BAa()}),b.src=e?e:"",this.api.Ii().tick("ftr"));
this.G.style.backgroundImage=e?"url("+e+")":""};g.x(g.JV,g.W);g.JV.prototype.resize=function(){};
g.JV.prototype.B=function(a){var b=this;this.C=!1;Y0a(this);var c=a.lP,d=this.api.U();c!=="GENERIC_WITHOUT_LINK"||d.K?c==="TOO_MANY_REQUESTS"?(d=this.api.getVideoData(),this.Dd(MV(this,"TOO_MANY_REQUESTS_WITH_LINK",d.zl(),void 0,void 0,void 0,!1))):c!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||d.K?this.api.U().L("html5_enable_bandaid_error_screen")&&c==="HTML5_SPS_UMP_STATUS_REJECTED"&&!d.K?(d=d.hostLanguage,a="//support.google.com/youtube/answer/3037019",d&&(a=g.to(a,{hl:d})),this.Dd(MV(this,"HTML5_SPS_UMP_STATUS_REJECTED",
a))):this.api.U().L("enable_adb_handling_in_sabr")&&c==="BROWSER_OR_EXTENSION_ERROR"&&!d.K?(d=d.hostLanguage,a="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",d&&(a=g.to(a,{hl:d})),this.Dd(MV(this,"BROWSER_OR_EXTENSION_ERROR",a))):this.Dd(g.KV(a.errorMessage)):this.Dd(MV(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.to(c,
{hl:a})),this.Dd(MV(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.Bc&&!d.D&&X0a(this,function(f){if(g.ZT(f,b.api,!CR(b.api.U()))){f={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var h=b.api;h.Ac("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:f});h.isFullscreen()&&h.toggleFullscreen()}}));
if(this.C){var e=this.Fa("ytp-error-link");e&&(this.api.createClientVe(e,this,216104),this.api.logVisibility(e,!0),X0a(this,function(){b.api.logClick(e)}))}};
var W0a=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.x(Z0a,g.W);g.k=Z0a.prototype;g.k.onClick=function(a){this.innertubeCommand?(this.J.jb("innertubeCommand",this.innertubeCommand),a.preventDefault()):g.ZT(a,this.J,!0);this.J.logClick(this.element)};
g.k.onVideoDataChange=function(a,b){a1a(this,b);this.Ie&&b1a(this,this.Ie)};
g.k.i6=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&a1a(this,b);this.j&&b1a(this,a.state);this.Ie=a.state};
g.k.od=function(){this.D.show();this.J.publish("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)};
g.k.Nb=function(){this.D.hide();this.J.publish("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.x(NV,g.W);NV.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.W.prototype.hide.call(this)};
NV.prototype.onStateChange=function(a){this.Ic(a.state)};
NV.prototype.Ic=function(a){if(g.yF(a,128))var b=!1;else{var c;b=((c=this.api.Wc())==null?0:c.Au)?!1:g.yF(a,16)||g.yF(a,1)?!0:!1}b?this.j.start():this.hide()};
NV.prototype.B=function(){this.message.style.display="block"};g.x(OV,g.LT);OV.prototype.onMutedAutoplayChange=function(a){this.C&&(a?(c1a(this),this.od()):(this.j&&this.logClick(),this.Nb()))};
OV.prototype.Gk=function(a){this.api.isMutedByMutedAutoplay()&&g.AF(a,2)&&this.Nb()};
OV.prototype.onClick=function(){this.api.unMute();this.logClick()};
OV.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.x(g.PV,g.NJ);g.k=g.PV.prototype;g.k.init=function(){var a=this.api,b=a.getPlayerStateObject();this.sK=a.getPlayerSize();this.Hc(b);this.Uq();this.kc();this.api.publish("basechromeinitialized",this);this.YP()&&this.api.publish("standardControlsInitialized")};
g.k.onVideoDataChange=function(a,b){var c=this.QF!==b.videoId;if(c||a==="newdata"){a=this.api;a.isFullscreen()||(this.sK=a.getPlayerSize());var d;((d=this.api.getVideoData(1))==null?0:g.DS(d))&&this.Tq()}c&&(this.QF=b.videoId,c=this.Og,c.Ha=3E3,FV(c,512,!0),this.Uq());this.api.L("web_render_jump_buttons")&&b.showSeekingControls&&(this.l2=572)};
g.k.Iba=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.yC=function(){var a=this.api.il()&&this.api.Gp(),b=this.api.SA();return this.RO||a||this.qQ||b};
g.k.Tq=function(){var a=!this.yC();g.Ov(this.api.getRootNode(),"ytp-menu-shown",!a);var b;((b=this.api.getVideoData(1))==null?0:g.DS(b))&&g.Ov(this.api.getRootNode(),"ytp-hide-controls",!a)};
g.k.VI=function(a){try{if(!g.Of(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!$ba(a);)a=a===this.api.getRootNode()?null:g.Nf(a);return!!a};
g.k.BB=function(a){var b=this.api.getRootNode();g.Ov(b,"ytp-autohide",a);g.Ov(b,"ytp-autohide-active",!0);this.UW.start(a?250:100);a&&(this.CM=!1,g.Mv(b,"ytp-touch-mode"));this.SO=!a;this.api.jM(!a)};
g.k.BR=function(){var a=this.api.getRootNode();g.Ov(a,"ytp-autohide-active",!1)};
g.k.mca=function(){this.eU=!0};
g.k.lca=function(a){if(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)this.eU=!1,this.fU&&this.Oc(this.fU),this.iG===0&&QV(this,a)?(this.rQ(),this.pJ.start(),this.fU=this.T(this.api.qb(),"touchmove",this.mca,void 0,!0)):this.pJ.stop();g1a(this)&&QV(this,a)&&!this.api.U().Z&&e1a(this);var b=this.jU.yk();if(!g.nR(this.api.U())&&kR&&h1a(this,a))b&&a.preventDefault();else if(this.CM=!0,g.Kv(this.api.getRootNode(),"ytp-touch-mode"),this.Og.Hv(),this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)if(b=
this.api.getPlayerStateObject(),!(!this.api.oi()||g.yF(b,2)&&g.BT(this.api)||g.yF(b,64))){b=Date.now()-this.NZ;this.iG+=1;if(b<=350){this.BE=!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=(this.iG-1)*10;d>0&&d<b?(this.dH(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>b*2&&d<b*3&&(this.dH(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));a.preventDefault()}else GV&&
this.api.U().Z&&QV(this,a)&&a.preventDefault();this.NZ=Date.now();this.A1.start()}};
g.k.kca=function(){this.XK.LA=!1;this.api.publish("rootnodemousedown",this.XK)};
g.k.gca=function(a){if(this.api.U().L("web_fix_fine_scrubbing_false_play")){if(h1a(this,a)||this.XK.LA)return}else if(this.XK.LA||h1a(this,a))return;g1a(this)||!QV(this,a)||this.pJ.isActive()||(e1a(this),a.preventDefault());this.BE&&(this.BE=!1)};
g.k.rQ=function(){};
g.k.zH=function(){};
g.k.dH=function(){};
g.k.cH=function(){};
g.k.Ws=function(){var a=this.api.getPlayerStateObject();g.yF(a,2)&&g.BT(this.api)||(a.isOrWillBePlaying()?this.api.pauseVideo():(this.On&&(a=this.On.C,document.activeElement===a.element&&this.api.publish("largeplaybuttonclicked",a.element)),this.api.lB(),this.api.playVideo(),this.On&&document.activeElement===this.On.C.element&&((a=this.YP())==null?a=0:a.playButton?(a.playButton.focus(),a=!0):a=!1,a||this.api.getRootNode().focus())))};
g.k.hca=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!f1a(this,qB(a)))if(a=this.api.U(),(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)&&this.BE)this.BE=!1;else if(a.Ab&&c!==3)try{this.api.toggleFullscreen().catch(function(d){b.qF(d)})}catch(d){this.qF(d)}};
g.k.qF=function(a){String(a).includes("fullscreen error")?g.nE(a):g.mE(a)};
g.k.ica=function(a){i1a(this,.3,a.scale);a.preventDefault()};
g.k.jca=function(a){i1a(this,.1,a.scale)};
g.k.kc=function(){var a=this.api.qb().getPlayerSize(),b=this.api.getRootNode(),c=a.width>=650;this.Og.resize();g.Ov(b,"ytp-fullscreen",this.api.isFullscreen());g.Ov(b,"ytp-large-width-mode",c);g.Ov(b,"ytp-small-mode",this.Tg());g.Ov(b,"ytp-tiny-mode",this.zK());g.Ov(b,"ytp-big-mode",this.Lh());this.Ag&&this.Ag.resize(a)};
g.k.Gk=function(a){this.Hc(a.state);this.Uq()};
g.k.rC=ba(6);g.k.JP=function(){var a=!!this.QF&&!this.api.Hf()&&!this.rS,b=this.api.getPresentingPlayerType()===2,c=this.api.U();if(b){if(Rkb&&c.L("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=BV(this.api.Bb());a&&(a=(a=b.player.getVideoData(2))?a.isListed&&!g.xI(b.player.U()):!1);return a}return a&&(c.Bn||this.api.isFullscreen()||c.Sk)};
g.k.Uq=function(){var a=this.JP();this.Ao!==a&&(this.Ao=a,g.Ov(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Hc=function(a){var b=a.isCued()||this.api.po()&&this.api.getPresentingPlayerType()!==3;b!==this.isCued&&(this.isCued=b,this.gU&&this.Oc(this.gU),this.gU=this.T(this.api.qb(),"touchstart",this.lca,void 0,b));var c=this.Og,d=a.isPlaying()&&!g.yF(a,32)||this.api.DF();FV(c,128,!d);c=this.Og;d=this.api.getPresentingPlayerType()===3;FV(c,256,d);c=this.api.getRootNode();g.yF(a,2)?d=[S2.ENDED]:(d=[],g.yF(a,8)?d.push(S2.PLAYING):g.yF(a,4)&&d.push(S2.PAUSED),g.yF(a,1)&&!g.yF(a,32)&&d.push(S2.BUFFERING),
g.yF(a,32)&&d.push(S2.SEEKING),g.yF(a,64)&&d.push(S2.UNSTARTED));g.Wb(this.UN,d)||(g.Nv(c,this.UN),this.UN=d,g.Lv(c,d));d=this.api.U();var e=g.yF(a,2);a:{var f=this.api.U();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f=h==="3"&&!g.yF(a,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:zkb(BV(this.api.Bb())))||this.api.SA()||g.nR(f)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Ov(c,"ytp-hide-controls",!f);g.Ov(c,"ytp-native-controls",d.controlsType==="3"&&!b&&!e&&!this.qQ);
g.yF(a,128)&&!g.nR(d)?(this.Ag||(this.Ag=new g.JV(this.api),g.M(this,this.Ag),g.HT(this.api,this.Ag.element,4)),this.Ag.B(a.hh),this.Ag.show()):this.Ag&&(this.Ag.dispose(),this.Ag=null)};
g.k.Er=function(){return this.api.il()&&this.api.Gp()?(this.api.oC(!1,!1),!0):this.api.Hf()?(g.CT(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.qQ=a;this.Tq()};
g.k.Lh=function(){return!1};
g.k.Tg=function(){return!this.Lh()&&(this.api.getPlayerSize().width<this.l2||this.api.getPlayerSize().height<290)};
g.k.zK=function(){return this.Tg()&&(this.api.getPlayerSize().width<240||this.api.getPlayerSize().height<140)};
g.k.Um=function(){return this.CM};
g.k.Km=function(){return null};
g.k.eY=function(){return null};
g.k.ao=function(){var a=this.api.qb().getPlayerSize();return new g.Fs(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.sy=function(){};
g.k.showControls=function(a){a!==void 0&&this.api.qb().jM(a)};
g.k.Hv=function(){};
g.k.YP=function(){return null};g.x(RV,g.GE);g.k=RV.prototype;g.k.Gm=function(){return 1E3*this.api.getDuration(this.jp,!1)};
g.k.stop=function(){this.j&&this.Hd.Oc(this.j)};
g.k.Uc=function(){var a=this.api.getProgressState(this.jp);this.B={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.jp,!1)};this.publish("h")};
g.k.getProgressState=function(){return this.B};
g.k.j6=function(a){g.AF(a,2)&&this.publish("g")};g.x(g.SV,g.W);g.SV.prototype.show=function(){g.W.prototype.show.call(this);g.Ev(this.j)};
g.SV.prototype.hide=function(){this.B.stop();g.W.prototype.hide.call(this)};
g.SV.prototype.zH=function(a){a?g.yF(this.J.getPlayerStateObject(),64)||TV(this,yya(),"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?TV(this,Cya(),"\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"):TV(this,vya(),"\u041f\u0430\u0443\u0437\u0430"))};g.x(l1a,g.W);g.k=l1a.prototype;g.k.vH=function(a){a?this.j=yT(this.J,this.element,null):(this.j=this.j,this.j(),this.j=null)};
g.k.od=function(){this.J.U().L("player_new_info_card_format")&&g.Jv(this.J.getRootNode(),"ytp-cards-teaser-shown")&&!g.nR(this.J.U())||(this.B.show(),g.sD("iv-button-shown"))};
g.k.Nb=function(){g.sD("iv-button-hidden");this.B.hide()};
g.k.yk=function(){return this.Ib&&this.B.state!==4};
g.k.ya=function(){this.j&&this.j();g.W.prototype.ya.call(this)};
g.k.eba=function(){g.sD("iv-button-mouseover")};
g.k.onClicked=function(a){this.J.il();var b=g.Jv(this.J.getRootNode(),"ytp-cards-teaser-shown");g.sD("iv-teaser-clicked",b);var c;if((c=this.J.getVideoData())==null?0:g.$S(c)){var d;a=(d=this.J.getVideoData())==null?void 0:g.aT(d);(a==null?0:a.onIconTapCommand)&&this.J.jb("innertubeCommand",a.onIconTapCommand)}else d=a.screenX===0&&a.screenY===0,this.J.oC(!this.J.Gp(),d,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.x(m1a,g.W);g.k=m1a.prototype;g.k.j3=function(){this.J.il()&&this.J.Gp()&&this.yk()&&this.Nb()};
g.k.TT=function(){this.Nb();!this.J.il()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.eh.Nb();g.sD("iv-teaser-clicked",this.j!=null);if(this.onClickCommand)this.J.jb("innertubeCommand",this.onClickCommand);else{var a;((a=this.J.getVideoData())==null?0:g.$S(a))||this.J.oC(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.k.l6=function(){g.sD("iv-teaser-mouseover");this.j&&this.j.stop()};
g.k.Gca=function(a){this.J.U().L("player_new_info_card_format")&&!g.nR(this.J.U())?this.eh.Nb():this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.eh.od();this.j||!a||this.J.Gp()||this.B&&this.B.isActive()||(this.od(a),g.sD("iv-teaser-shown"))};
g.k.od=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.Sv(a.teaserText));this.D.show();this.B=new g.Dv(function(){g.Kv(this.J.getRootNode(),"ytp-cards-teaser-shown");this.J.L("player_new_info_card_format")&&!g.nR(this.J.U())&&this.eh.Nb();this.AN()},0,this);
this.B.start();this.eh.vH(!1);this.j=new g.Dv(this.Nb,580+a.durationMs,this);this.j.start();this.G.push(this.listen("mouseover",this.UV,this));this.G.push(this.listen("mouseout",this.TV,this))};
g.k.AN=function(){if(!this.J.U().L("player_new_info_card_format")&&g.nR(this.J.U())&&this.Ib){var a=this.eh.element.offsetLeft,b=g.wf("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.eh.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.P7=function(){g.nR(this.J.U())&&this.J.Tg()&&this.Ib&&this.Y.start()};
g.k.UV=function(){this.K.stop();this.j&&this.j.isActive()&&this.N.start()};
g.k.TV=function(){this.N.stop();this.j&&!this.j.isActive()&&this.K.start()};
g.k.vba=function(){this.j&&this.j.stop()};
g.k.uba=function(){this.Nb()};
g.k.k6=function(){this.Nb()};
g.k.Nb=function(){!this.j||this.C&&this.C.isActive()||(g.sD("iv-teaser-hidden"),this.D.hide(),g.Mv(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.Dv(function(){for(var a=g.v(this.G),b=a.next();!b.done;b=a.next())this.Oc(b.value);this.G=[];this.j&&(this.j.dispose(),this.j=null);this.eh.vH(!0);!this.J.il()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.eh.Nb()},330,this),this.C.start())};
g.k.yk=function(){return this.Ib&&this.D.state!==4};
g.k.ya=function(){var a=this.J.getRootNode();a&&g.Mv(a,"ytp-cards-teaser-shown");g.vb(this.B,this.C,this.j);g.W.prototype.ya.call(this)};var m3={},VV=(m3.BUTTON="ytp-button",m3.TITLE_NOTIFICATIONS="ytp-title-notifications",m3.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",m3.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",m3.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",m3);g.x(n1a,g.W);
n1a.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);o1a(this,a)};g.Va("yt.pubsub.publish",g.sD);g.x(g.WV,g.W);g.WV.prototype.D=function(){window.location.reload()};
g.WV.prototype.j=function(){g.Kv(this.element,"ytp-sb-subscribed")};
g.WV.prototype.B=function(){g.Mv(this.element,"ytp-sb-subscribed")};g.x(t1a,g.W);g.k=t1a.prototype;g.k.Kaa=function(a){this.api.logClick(this.B);var b=this.api.U();b.B||b.Xa?x1a(this)&&(this.isExpanded()?this.HO():this.nP()):g.Re(s1a(this));a.preventDefault()};
g.k.YS=function(){w1a(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.nP=function(){if(x1a(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.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));var a=this.api.getVideoData();this.j&&a.gm&&a.subscribed&&(this.j.show(),
this.api.logVisibility(this.j.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.HO=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.C&&this.C.start()};
g.k.Ua=function(){var a=this.api.U();g.NE(this,!this.api.fd());var b=this.api.getVideoData(),c=this.api.U(),d=this.api.getVideoData();this.D=!1;var e=!!d.videoId&&!!d.Ab&&!!d.profilePicture;this.api.getPresentingPlayerType()===2?this.D=e&&!!d.isListed&&!!d.author:g.nR(c)&&(this.D=e&&!g.jT(d)&&!c.C&&!(c.Z&&this.api.getPlayerSize().width<200));c=b.profilePicture;a=g.nR(a)?b.expandedTitle:b.author;c=c===void 0?"":c;a=a===void 0?"":a;this.D?(this.K!==c&&(this.B.style.backgroundImage="url("+c+")",this.K=
c),this.updateValue("channelLogoLabel",g.aJ('\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.Kv(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Mv(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.B,this.D&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Ul);this.updateValue("expandedTitle",b.expandedTitle);this.updateValue("expandedSubtitle",
b.expandedSubtitle)};
g.k.Mc=function(a){g.W.prototype.Mc.call(this,a);this.api.logVisibility(this.B,this.D&&a)};g.x(XV,g.NT);XV.prototype.j=function(a){a.defaultPrevented||a.keyCode!==39||(this.element.click(),a.preventDefault())};g.x(y1a,g.W);g.k=y1a.prototype;g.k.show=function(){g.W.prototype.show.call(this);this.element.tabIndex=0;this.element.focus();this.updateValue("userInfoFocusable","0");this.updateValue("userInfoFocusable2","0")};
g.k.hide=function(){g.W.prototype.hide.call(this);this.updateValue("userInfoFocusable","-1");this.updateValue("userInfoFocusable2","-1")};
g.k.m6=function(a){var b=qB(a),c=g.Of(this.closeButton.element,b),d=g.Of(this.element,b);a=this.j&&g.Of(this.j,b)&&g.JF(a);b&&(d||a)&&!c||this.hide()};
g.k.n6=function(){q1a(g.AR(this.Va.U()),"user_info_panel",function(){window.location.reload()})};
g.k.Ua=function(){var a=this.Va.U(),b={USER_NAME:a.userDisplayName,USER_EMAIL:a.Wi};this.updateValue("icon",wya());this.updateValue("watchingAsUsername",g.aJ("\u0412\u044b \u0432\u043e\u0448\u043b\u0438 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 $USER_NAME",b));a.Wi?this.updateValue("watchingAsEmail",g.aJ("($USER_EMAIL)",b)):this.updateValue("watchingAsEmail","")};g.x(A1a,g.tU);g.k=A1a.prototype;g.k.S7=function(){this.Gb.Nb()};
g.k.Paa=function(){iZa(this.Xz.element)};
g.k.aba=function(){ZV(this,this.J.getDebugText(!0))&&TV(this.me,hya())};
g.k.bba=function(){ZV(this,this.J.getVideoEmbedCode())&&TV(this.me,lya());this.J.logClick(this.Vn.element);rza("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.cba=function(){ZV(this,this.J.getVideoUrl(!0,!0))&&TV(this.me,WE());this.J.logClick(this.getVideoUrl.element);rza("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.dba=function(){ZV(this,this.J.getVideoUrl(!1,!0))&&TV(this.me,WE());this.J.logClick(this.jo.element);rza("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.onLoopChange=function(a){var b;(b=this.Hl)==null||XT(b,a)};
g.k.nba=function(){this.J.setLoopVideo(this.Hl.getValue());this.Gb.Nb();this.J.logClick(this.Hl.element)};
g.k.cca=function(a){this.J.reportPlaybackIssue();if(g.ZT(a,this.J,!CR(this.J.U()))){a=this.J;var b=a.app.getFeedbackProductData();a.Ac("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Gb.Nb()};
g.k.xca=function(){g.qT(this.J,"isVideoInfoVisible",[])?g.qT(this.J,"hideVideoInfo",[]):g.qT(this.J,"showVideoInfo",[]);this.Gb.Nb()};
g.k.wca=function(){this.Ol&&(this.XH||(this.XH=new y1a(this.J,this.Ol.element),g.M(this,this.XH),g.HT(this.J,this.XH.element,4)),this.XH.show(),this.Gb.Nb(),this.J.logClick(this.Ol.element))};
g.k.onVideoDataChange=function(a,b){this.wH(b)};
g.k.wH=function(a){var b=this.J.U(),c=this.J.getPresentingPlayerType()===2,d=!c||a.isListed;d=!b.va&&!!a.videoId&&d;b.playerStyle!=="play"?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.Oa&&(b.partnerid=a.Oa),b=g.to("//support.google.com/googleplay/",b));g.NE(this.Vn,d&&a.allowEmbed);g.NE(this.getVideoUrl,d);g.NE(this.jo,d&&
!a.isLivePlayback);this.eH.Dd(b,"href");var e;(e=this.Hl)==null||g.NE(e,!a.isLivePlayback&&!c);var f;(f=this.Ol)==null||g.NE(f,!c)};
g.k.Mc=function(a){g.tU.prototype.Mc.call(this,a);this.J.logVisibility(this.Vn.element,a);this.J.logVisibility(this.getVideoUrl.element,a);this.J.logVisibility(this.jo.element,a);this.Hl&&this.J.logVisibility(this.Hl.element,a);this.Ol&&this.J.logVisibility(this.Ol.element,a)};g.x(D1a,g.vU);g.k=D1a.prototype;g.k.p6=function(a){var b=qB(a);if(!(b&&(Rf(b,"a")||Rf(b,null,"ytp-no-contextmenu"))||this.Ib)){var c;this.Da=(a=(c=a.touches)==null?void 0:c.item(0))?new g.Ge(a.clientX,a.clientY):new g.Ge(0,0);this.va.start()}};
g.k.w0=function(){this.va.stop()};
g.k.Lca=function(){this.open(this.Da)};
g.k.ZX=function(){if(this.C&&B1a(this.C)){var a=B1a(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 A1a(this.J,this,this.me),g.M(this,this.C),g.wU(this,this.C));this.C.onLoopChange(this.J.getLoopVideo());g.vU.prototype.show.call(this);this.J.logVisibility(this.element,!0);this.C.Mc(!0)};
g.k.hide=function(){C1a(this);g.vU.prototype.hide.call(this);this.J.logVisibility(this.element,!1);this.C&&this.C.Mc(!1)};
g.k.Naa=function(a){var b=qB(a);this.Ib||b&&(Rf(b,"a")||Rf(b,null,"ytp-no-contextmenu"))||(a.preventDefault(),this.open(new g.Ge(a.pageX,a.pageY)))};
g.k.od=function(a){if(a){var b=a.getBoundingClientRect();this.open(new g.Ge(b.x,b.y))}g.vU.prototype.od.call(this,a)};
g.k.open=function(a){E1a(this);var b=this.J.getVideoData();g.Ov(this.element,"ytp-dni",b.Jf);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.vU.prototype.od.call(this);var c=document.body;b=new As(0,Infinity,Infinity,0);var d=mf(c);for(var e=d.j.body,f=d.j.documentElement,h=Wba(d.j);c=nia(c);)if((!g.Nc||c.clientHeight!=0||c!=e)&&c!=e&&c!=f&&Ns(c,"overflow")!="visible"){var l=g.Rs(c),m=new g.Ge(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=Vba(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=b.top>=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,(e&65)==65&&(a.x<d.left||a.x>=d.right)&&(e&=-2),(e&132)==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.Fs(0,0,0,0);d.left=
a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Ps(this.element,new g.Ge(d.left,d.top));g.uB(this.D);this.D.T(document,"contextmenu",this.Uaa);this.D.T(this.J,"fullscreentoggled",this.onFullscreenToggled);this.D.T(this.J,"pageTransition",this.o6)};
g.k.Uaa=function(a){if(!a.defaultPrevented){var b=qB(a);g.Of(this.element,b)||this.Nb();this.J.U().disableNativeContextMenu&&a.preventDefault()}};
g.k.onFullscreenToggled=function(){this.Nb();E1a(this)};
g.k.o6=function(){this.Nb()};g.x($V,g.W);$V.prototype.onClick=function(){var a=this,b,c,d,e;return g.H(function(f){if(f.j==1)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,H1a(a,e),2);f.B&&G1a(a);a.api.logClick(a.element);g.Aa(f)})};
$V.prototype.Ua=function(){this.updateValue("icon",{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3  c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0441\u044b\u043b\u043a\u0443");
this.visible=F1a(this);g.Ov(this.element,"ytp-copylink-button-visible",this.visible);g.NE(this,this.visible);this.tooltip.Yh();this.api.logVisibility(this.element,this.visible&&this.Z)};
$V.prototype.Mc=function(a){g.W.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
$V.prototype.ya=function(){g.W.prototype.ya.call(this);g.Mv(this.element,"ytp-copylink-button-visible")};g.x(aW,g.W);aW.prototype.show=function(){g.W.prototype.show.call(this);g.Ev(this.B)};
aW.prototype.hide=function(){this.D.stop();this.C=0;g.Mv(this.element,"ytp-chapter-seek");g.Mv(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
aW.prototype.dH=function(a,b,c,d){this.C=a===this.K?this.C+d:d;this.K=a;var e=a===-1?this.Y:this.N;e&&this.J.logClick(e);this.G?this.B.stop():g.Gv(this.B);this.D.start();this.element.setAttribute("data-side",a===-1?"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";a===1?(this.j.style.left="",this.j.style.right=e+"px"):a===-1&&(this.j.style.right="",this.j.style.left=e+"px");var h=f*
2.5;f=h/2;var l=this.Fa("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";a===1?(a=this.J.qb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):a===-1&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Fa("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");I1a(this,this.G?this.C:d)};g.x(K1a,rU);g.k=K1a.prototype;g.k.q6=function(a){this.Oa||(this.Oa=new yU(this.J),g.M(this,this.Oa));var b,c;if((b=this.Cb)==null?0:(c=b.menu)==null?0:c.menuRenderer)this.Oa.open(this.Cb.menu.menuRenderer,a.target),a.preventDefault()};
g.k.fba=function(){this.J.jb("innertubeCommand",this.Zc);this.J.logClick(this.infoButton.element)};
g.k.Ly=function(){return!!this.j};
g.k.pM=function(){return!!this.j};
g.k.lG=function(a){a.target===this.dismissButton.element||a.target===this.overflowButton.element||a.target===this.infoButton.element?a.preventDefault():(this.Cc&&this.J.jb("innertubeCommand",this.Cc),this.Mx(!1))};
g.k.Uu=function(){this.Mx(!0);var a,b;((a=this.j)==null?0:(b=a.bannerData)==null?0:b.dismissedStatusKey)&&this.Qb.push(this.j.bannerData.dismissedStatusKey);this.eC()};
g.k.OV=function(){this.eC();eW(this)};
g.k.jea=function(a){var b=this,c;if(a.id!==((c=this.j)==null?void 0:c.identifier)){this.eC();c=g.v(this.Ha);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=void 0,h=void 0;if((d=(f=e)==null?void 0:(h=f.bannerData)==null?void 0:h.itemData)&&e.identifier===a.id){h=f=void 0;var l=((f=e)==null?void 0:(h=f.bannerData)==null?void 0:h.dismissedStatusKey)||"";if(this.Qb.includes(l))break;this.j=e;this.banner.element.setAttribute("aria-label",d.accessibilityLabel||"");d.trackingParams&&(this.D=!0,this.J.setTrackingParams(this.badge.element,
d.trackingParams));this.ra.show();qU(this);g.NE(this.Ga,!d.stayInApp);W1a(this);M1a(this);dW(this);this.Cc=g.V(d.onTapCommand,qE);if(e=g.V(d.menuOnTap,qE))this.Cb=g.V(e,sob);e=void 0;this.banner.update({thumbnail:(e=(d.thumbnailSources||[])[0])==null?void 0:e.url,title:d.productTitle,price:d.priceReplacementText?d.priceReplacementText:d.price,salesOriginalPrice:P1a(this),priceDropReferencePrice:Q1a(this),promotionText:O1a(this),priceA11yText:R1a(this),affiliateDisclaimer:d.affiliateDisclaimer,vendor:S1a(this)});
l=h=f=e=void 0;((e=d)==null?0:(f=e.hiddenProductOptions)==null?0:f.showDropCountdown)&&((h=d)==null?0:(l=h.hiddenProductOptions)==null?0:l.dropTimestampMs)&&(this.Lb=new g.Dv(function(){V1a(b)},1E3),this.Ga.hide(),this.countdownTimer.show(),V1a(this));
this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&L1a(this)&&(this.Ub=new g.Dv(function(){N1a(b)},1E3),N1a(this))}}}};
g.k.eC=function(){this.j&&(this.j=void 0,this.Tl())};
g.k.onVideoDataChange=function(a,b){var c=this;a==="dataloaded"&&eW(this);a=this.J.L("web_player_enable_vod_featured_product_banner_on_desktop");var d,e,f=b==null?void 0:(d=b.getPlayerResponse())==null?void 0:(e=d.videoDetails)==null?void 0:e.isLiveContent;if(a||f){var h,l,m;b=g.V((h=b.getWatchNextResponse())==null?void 0:(l=h.playerOverlays)==null?void 0:(m=l.playerOverlayRenderer)==null?void 0:m.productsInVideoOverlayRenderer,qob);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=b==null?void 0:b.featuredProductsEntityKey;this.trendingOfferEntityKey=b==null?void 0:b.trendingOfferEntityKey;var p;if(h=b==null?void 0:(p=b.dismissButton)==null?void 0:p.trackingParams)this.J.setTrackingParams(this.dismissButton.element,h),this.G=!0;var q;(p=b==null?void 0:(q=b.dismissButton)==
null?void 0:q.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.RE(p));this.Zc=b==null?void 0:b.onClickCommand;this.Ha.length||(U1a(this,n),dW(this));var r;(r=this.Sc)==null||r.call(this);this.Sc=g.HS.subscribe(function(){U1a(c,n);dW(c)})}else{var t;
(t=this.Sc)==null||t.call(this);this.eC()}};
g.k.ya=function(){eW(this);W1a(this);M1a(this);rU.prototype.ya.call(this)};g.x(a2a,g.W);a2a.prototype.onClick=function(){this.J.logClick(this.element,this.B)};g.x(b2a,g.LT);g.k=b2a.prototype;g.k.show=function(){g.LT.prototype.show.call(this);this.J.publish("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);c2a(this,!0)};
g.k.hide=function(){g.LT.prototype.hide.call(this);this.J.publish("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);c2a(this,!1)};
g.k.getId=function(){return this.D};
g.k.Tp=function(){return this.itemData.length};
g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:((c=b.Yk)==null?void 0:(d=c.title)==null?void 0:d.content)||"",body:((e=b.Yk)==null?void 0:(f=e.bodyText)==null?void 0:f.content)||""});var h;a=((h=b.Yk)==null?void 0:h.trackingParams)||null;this.J.setTrackingParams(this.element,a);h=g.v(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if((l=b.Yk)==null?0:l.ctaButtons)for(b=g.v(b.Yk.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.V(l.value,
enb))l=new a2a(this.J,l,this.j),l.xe&&(this.itemData.push(l),l.Ka(this.items))}};
g.k.ya=function(){this.hide();g.LT.prototype.ya.call(this)};g.x(f2a,g.W);g.k=f2a.prototype;g.k.onVideoDataChange=function(a,b){e2a(this,b);this.Ie&&h2a(this,this.Ie)};
g.k.t6=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&e2a(this,b);h2a(this,a.state);this.Ie=a.state};
g.k.T_=function(a){(this.D=a)?this.hide():this.j&&this.show()};
g.k.s6=function(){this.B||this.od();this.showControls=!0};
g.k.r6=function(){this.B||this.Nb();this.showControls=!1};
g.k.od=function(){var a;if((a=this.J)==null?0:a.L("embeds_web_enable_info_panel_sizing_fix")){var b;a=(b=this.J)==null?void 0:b.getPlayerSize();b=a.width<380;var c;a=a.height<(((c=this.J)==null?0:c.fd())?400:280);var d,e;if((((d=this.J)==null?0:d.getPlayerStateObject().isCued())||((e=this.J)==null?0:g.yF(e.getPlayerStateObject(),1024)))&&b&&a)return}this.j&&!this.D&&(this.C.show(),this.J.publish("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))};
g.k.Nb=function(){this.j&&!this.D&&(this.C.hide(),this.J.publish("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))};
g.k.pea=function(){this.B=!1;this.showControls||this.Nb()};var mqb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(mqb).reduce(function(a,b){a[mqb[b]]=b;return a},{});
var nqb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(nqb).reduce(function(a,b){a[nqb[b]]=b;return a},{});
var oqb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(oqb).reduce(function(a,b){a[oqb[b]]=b;return a},{});var pqb,qqb;pqb=[{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"}];
qqb=[{option:0,text:fW(0)},{option:.25,text:fW(.25)},{option:.5,text:fW(.5)},{option:.75,text:fW(.75)},{option:1,text:fW(1)}];
g.iW=[{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:pqb},{option:"fontSizeIncrement",
text:"\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430",options:[{option:-2,text:fW(.5)},{option:-1,text:fW(.75)},{option:0,text:fW(1)},{option:1,text:fW(1.5)},{option:2,text:fW(2)},{option:3,text:fW(3)},{option:4,text:fW(4)}]},{option:"background",text:"\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430",options:pqb},{option:"backgroundOpacity",text:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u043d\u0430",options:qqb},{option:"windowColor",
text:"\u0426\u0432\u0435\u0442 \u043e\u043a\u043d\u0430",options:pqb},{option:"windowOpacity",text:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u043e\u043a\u043d\u0430",options:qqb},{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:fW(.25)},{option:.5,text:fW(.5)},{option:.75,text:fW(.75)},{option:1,text:fW(1)}]}];var rqb=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.x(n2a,g.NJ);g.k=n2a.prototype;
g.k.OY=function(a){a.repeat||(this.C.rK=!1);var b=!1,c=a.keyCode,d=qB(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.tT(this.api.app)||rqb.includes(c)),f=!1,h=!1,l=this.api.U();a.defaultPrevented?(e=!1,h=!0):l.mf&&!g.tT(this.api.app)&&(e=!1);if(c===9)b=!0;else{if(d)switch(c){case 32:case 13:if(d.tagName==="BUTTON"||d.tagName==="A"||d.tagName==="INPUT")b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||m!=="option"&&m!=="button"&&m.indexOf("menuitem")!==0||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b=
d.getAttribute("role")==="slider";break;case 38:case 40:m=d.getAttribute("role"),d=c===38?d.previousSibling:d.nextSibling,m==="slider"?b=!0:e&&(m==="option"?(d&&d.getAttribute("role")==="option"&&d.focus(),f=b=!0):m&&m.indexOf("menuitem")===0&&(d&&d.hasAttribute("role")&&d.getAttribute("role").indexOf("menuitem")===0&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);UV(this.me,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);
UV(this.me,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.oi()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),h=f=!0);break;case 35:this.api.oi()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),h=f=!0)}}b&&hW(this,!0);(b||h)&&this.Og.Hv();(f||e&&this.handleGlobalKeyDown(c,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat))&&a.preventDefault();l.N&&(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.Ac("onKeyPress",a))};
g.k.PY=function(a){var b=a.keyCode;(!this.api.L("web_player_spacebar_control_bugfix")||this.api.L("web_player_spacebar_control_bugfix")&&!this.D)&&this.handleGlobalKeyUp(b,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.publish("keyboardserviceglobalkeyup",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h});b=!1;if(this.C.rK)return b;(c=g.FT(this.api.Bb()))&&(c=c.Av)&&c.Ib&&(c.LY(a),b=!0);switch(a){case 9:hW(this,!0);b=!0;break;case 32:if(this.api.L("web_speedmaster_spacebar_control")&&(!this.api.L("web_player_spacebar_control_bugfix")&&!this.D||this.api.L("web_player_spacebar_control_bugfix"))&&!this.api.U().mf){var l,m;a=(l=this.progressBar)==
null?void 0:(m=l.B)==null?void 0:m.isEnabled;b=this.Ws(a)}}return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.C.rK=!1);var m=!1,n=this.api.U();if(n.mf&&!g.tT(this.api.app))return m;var p=g.FT(this.api.Bb());if(p&&(p=p.Av)&&p.Ib)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.KY(a)}n.K||m||(m=f||String.fromCharCode(a).toLowerCase(),this.B+=m,"awesome".indexOf(this.B)===0?(m=!0,7===this.B.length&&nla(this.api.getRootNode(),"ytp-color-party")):(this.B=m,m="awesome".indexOf(this.B)===0));if(!m&&(!g.tT(this.api.app)||
rqb.includes(a))){var q=this.api.getVideoData(),r,t;p=(r=this.progressBar)==null?void 0:(t=r.B)==null?void 0:t.isEnabled;r=q?q.Sk:[];t=CY?d:c;switch(a){case 80:b&&!n.Sa&&(TV(this.me,zya(),"\u041d\u0430\u0437\u0430\u0434"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Sa&&(TV(this.me,tya(),"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435"),this.api.nextVideo(),m=!0);break;case 74:this.api.oi()&&(this.api.startSeekCsiAction(),this.j?bW(this.j,-1,10):TV(this.me,{I:"svg",W:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),m=!0);break;case 76:this.api.oi()&&(this.api.startSeekCsiAction(),this.j?bW(this.j,1,10):TV(this.me,{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),m=!0);break;case 37:this.api.oi()&&(this.api.startSeekCsiAction(),t?(t=k2a(r,this.api.getCurrentTime()*1E3),t!==-1&&this.j!=null&&(J1a(this.j,-1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,53),m=!0)):(this.j?bW(this.j,-1,5):TV(this.me,{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),m=!0));break;case 39:this.api.oi()&&(this.api.startSeekCsiAction(),t?(t=j2a(r,this.api.getCurrentTime()*1E3),t!==-1&&this.j!=null&&(J1a(this.j,1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,52),m=!0)):(this.j!=null?bW(this.j,1,5):TV(this.me,{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),m=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),UV(this.me,this.api.getVolume(),!1)):(this.api.mute(),UV(this.me,0,!0));m=!0;break;case 32:m=this.api.L("web_speedmaster_spacebar_control")?!this.api.U().Sa:this.Ws(p);break;case 75:m=this.Ws(p);break;case 190:b?n.enableSpeedOptions&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),j1a(this.me,!1),m=!0):this.api.oi()&&(this.step(1),m=!0);break;case 188:b?n.enableSpeedOptions&&
(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-.25,!0),j1a(this.me,!0),m=!0):this.api.oi()&&(this.step(-1),m=!0);break;case 70:eZa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0);
break;case 27:p?(this.progressBar.Sw(),m=!0):this.K()&&(m=!0)}if(n.controlsType!=="3")switch(a){case 67:g.yV(this.api.Bb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),k1a(this.me,!n||n&&!n.displayName),m=!0);break;case 79:jW(this,"textOpacity");break;case 87:jW(this,"windowOpacity");break;case 187:case 61:jW(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:jW(this,"fontSizeIncrement",!0,!0)}var u;b||c||d||(a>=48&&a<=57?u=a-48:a>=96&&a<=105&&(u=a-96));u!=null&&this.api.oi()&&
(this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(u/10*(n.seekableEnd-n.seekableStart)+n.seekableStart,void 0,void 0,void 0,81),m=!0);m&&this.Og.Hv()}this.D||this.api.publish("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.oi();if(this.api.getPlayerStateObject().isPaused()){var b=this.api.getVideoData().B;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30),void 0,void 0,a>0?77:78)}};
g.k.Ws=function(a){if(!this.api.U().Sa){var b;var c,d=(b=this.api.getVideoData())==null?void 0:(c=b.getPlayerResponse())==null?void 0:c.playabilityStatus;if(d){var e;b=((e=g.V(d.miniplayer,Gob))==null?void 0:e.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else b=!1;b&&this.api.jb("onExpandMiniplayer");a?this.progressBar.qP():(a=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.me.zH(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
g.k.ya=function(){g.Gv(this.G);g.NJ.prototype.ya.call(this)};g.x(g.kW,g.W);g.kW.prototype.Os=ba(12);g.kW.prototype.Ua=function(){var a=this.J.U(),b=a.C||this.J.L("web_player_hide_overflow_button_if_empty_menu")&&this.xi.isEmpty();a=g.nR(a)&&g.ET(this.J)&&g.yF(this.J.getPlayerStateObject(),128);var c=this.J.getPlayerSize();this.visible=this.J.Tg()&&!a&&c.width>=240&&!g.jT(this.J.getVideoData())&&!b&&!this.j&&!this.J.fd();g.Ov(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.J.Yh();this.J.logVisibility(this.element,this.visible&&this.Z)};
g.kW.prototype.Mc=function(a){g.W.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};
g.kW.prototype.ya=function(){g.W.prototype.ya.call(this);g.Mv(this.element,"ytp-overflow-button-visible")};g.x(o2a,g.LT);g.k=o2a.prototype;g.k.u6=function(a){a=qB(a);g.Of(this.element,a)&&(g.Of(this.j,a)||g.Of(this.closeButton,a)||MT(this))};
g.k.Nb=function(){g.LT.prototype.Nb.call(this);this.J.Am(this.element)};
g.k.show=function(){this.Ib&&this.J.publish("OVERFLOW_PANEL_OPENED");g.LT.prototype.show.call(this);this.element.setAttribute("aria-modal","true");q2a(this,!0)};
g.k.hide=function(){g.LT.prototype.hide.call(this);this.element.removeAttribute("aria-modal");q2a(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.yk()&&MT(this)};
g.k.isEmpty=function(){return this.actionButtons.length===0};
g.k.focus=function(){for(var a=g.v(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Ib){b.focus();break}};g.x(r2a,g.W);r2a.prototype.onClick=function(a){g.ZT(a,this.api)&&this.api.playVideoAt(this.index)};g.x(s2a,g.LT);g.k=s2a.prototype;g.k.show=function(){g.LT.prototype.show.call(this);this.C.T(this.api,"videodatachange",this.BN);this.C.T(this.api,"onPlaylistUpdate",this.BN);this.BN()};
g.k.hide=function(){g.LT.prototype.hide.call(this);g.uB(this.C);this.updatePlaylist(null)};
g.k.BN=function(){this.updatePlaylist(this.api.getPlaylist());this.api.U().C&&(this.Fa("ytp-playlist-menu-title-name").removeAttribute("href"),this.D&&(this.Oc(this.D),this.D=null))};
g.k.cM=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.length)};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.aJ(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.v(this.j);for(d=c.next();!d.done;d=c.next())d.value.dispose();c=a.length;
this.j=[];for(d=0;d<c;d++){var e=new r2a(this.api,a,d);this.j.push(e);e.Ka(this.items)}this.selected=this.j[a.index];this.G=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.Kca=function(a){var b=this.api.getVideoUrl(!0);g.$T(b,this.api,a)};
g.k.updatePlaylist=function(a){this.playlist!==a?(this.playlist&&this.playlist.unsubscribe("shuffle",this.cM,this),this.playlist=a,this.G=null,a?(a.subscribe("shuffle",this.cM,this),this.cM()):this.Ib&&this.hide()):this.playlist&&this.cM()};
g.k.focus=function(){this.selected.focus()};
g.k.ya=function(){this.hide();g.LT.prototype.ya.call(this)};g.x(lW,g.W);lW.prototype.hide=function(){g.W.prototype.hide.call(this);this.Mc(!1);this.api.Yh()};
lW.prototype.Ua=function(){var a=g.nR(this.api.U());g.Ov(this.element,"ytp-playlist-menu-button-tiny",this.api.qb().getPlayerSize().width<400&&!a);this.api.fd()?this.hide():this.playlist&&this.api.getPresentingPlayerType()!==2?(this.update({text:g.aJ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.length)}),title:g.aJ('\u041f\u043b\u0435\u0439\u043b\u0438\u0441\u0442 "$PLAYLIST_NAME"',{PLAYLIST_NAME:this.playlist.title})}),
this.Ib||(this.show(),this.api.Yh()),this.visible=!0,this.Mc(!0)):this.Ib&&this.hide()};
lW.prototype.Mc=function(a){g.W.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
lW.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Ua,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Ua,this);this.Ua()};g.x(t2a,g.W);g.k=t2a.prototype;g.k.w6=function(){this.C?x2a(this):w2a(this)};
g.k.v6=function(){this.C?(mW(this),this.G=!0):w2a(this)};
g.k.paa=function(){this.D=!0;this.sH(1);this.J.publish("promotooltipacceptbuttonclicked",this.acceptButton);mW(this);this.j&&this.J.logClick(this.acceptButton)};
g.k.Taa=function(){this.D=!0;this.sH(2);mW(this);this.j&&this.J.logClick(this.dismissButton)};
g.k.x6=function(a){if(this.J.getPresentingPlayerType()===1||this.J.getPresentingPlayerType()===2&&this.K){var b=!0,c=g.wf("ytp-ad-overlay-ad-info-dialog-container"),d=qB(a);if(this.B&&d&&g.Of(this.B,d))this.B=null;else{this.J.getPresentingPlayerType()===1&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
var e=y2a(this.tooltipRenderer),f;if(((f=this.tooltipRenderer.dismissStrategy)==null?void 0:f.type)==="TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE")e&&(b=b&&!g.Of(this.element,d));else{var h;((h=this.tooltipRenderer.dismissStrategy)==null?void 0:h.type)==="TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"&&(b=e?!1:b&&g.Of(this.element,d))}this.targetElement&&this.Ib&&!c&&(!d||b&&g.JF(a))&&(this.D=!0,mW(this))}}};
g.k.sH=function(a){var b=this.tooltipRenderer.promoConfig;if(b){switch(a){case 0:var c;if((c=b.impressionEndpoints)==null?0:c.length)var d=b.impressionEndpoints[0];break;case 1:d=b.acceptCommand;break;case 2:d=b.dismissCommand}var e;a=(e=g.V(d,dnb))==null?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.J.Hm(),(a==null?0:Kza(d,a.iP))&&UG(a,d,e))}};
g.k.kc=function(){this.G||(this.targetElement||(this.targetElement=u2a(this)),x2a(this))};
var v2a={"ytp-settings-button":g.Bya()};g.x(nW,g.W);nW.prototype.onStateChange=function(a){this.Ic(a.state)};
nW.prototype.Ic=function(a){g.NE(this,g.yF(a,2))};
nW.prototype.onClick=function(){this.J.getPlayerStateObject().isOrWillBePlaying();this.J.playVideo()};g.x(oW,g.W);oW.prototype.onClick=function(a){this.api.logClick(this.element);var b=g.to(this.api.U().Ha,{focusSearch:"true"}),c={};g.qT(this.api,"addEmbedsConversionTrackingParams",[c]);this.api.L("embeds_web_enable_referring_feature_deprecation")||g.JO(c,"emb_search");b=g.to(b,c);var d;(c=(d=this.api.getVideoData().t4)==null?void 0:d.params)&&(b=g.to(b,{bp:c}));g.Re(b);a.preventDefault()};
oW.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.nR(a)&&c>=this.B&&!a.C&&!b.isAd()&&!this.api.fd()}else a=!1;this.visible=a;g.NE(this,this.visible);g.Ov(this.element,"ytp-search-button-visible",this.visible);g.Ov(this.element,"ytp-show-search-title",!this.api.Tg());this.api.logVisibility(this.element,this.visible&&this.Z)};
oW.prototype.Mc=function(a){g.W.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.x(g.pW,g.W);g.k=g.pW.prototype;g.k.Ps=ba(9);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){A2a(a,f)})}catch(f){f instanceof Error&&A2a(this,f)}else this.Pe.Er(),MT(this.B,this.element,!1);
this.api.logClick(this.element)};
g.k.Ua=function(){var a=this.api.U(),b=this.api.fd();g.Ov(this.element,"ytp-show-share-title",g.nR(a)&&!b);this.Pe.Lh()&&b?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Is(this.element,"right",a+"px")):b&&g.Is(this.element,"right","0px");this.updateValue("icon",{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});
this.visible=z2a(this);g.Ov(this.element,"ytp-share-button-visible",this.visible);g.NE(this,this.visible);this.tooltip.Yh();this.api.logVisibility(this.element,z2a(this)&&this.Z)};
g.k.Mc=function(a){g.W.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
g.k.ya=function(){g.W.prototype.ya.call(this);g.Mv(this.element,"ytp-share-button-visible")};g.x(C2a,g.LT);g.k=C2a.prototype;g.k.y6=function(a){a=qB(a);g.Of(this.G,a)||g.Of(this.closeButton,a)||MT(this)};
g.k.Nb=function(){g.LT.prototype.Nb.call(this);this.tooltip.Am(this.element);this.api.logVisibility(this.j,!1);for(var a=g.v(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.Ib;g.LT.prototype.show.call(this);this.Ua();a||this.api.jb("onSharePanelOpened")};
g.k.M$=function(){this.Ib&&this.Ua()};
g.k.Ua=function(){var a=this;g.Kv(this.element,"ytp-share-panel-loading");g.Mv(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.D.checked;b.getSharePanelCommand&&UG(this.api.Hm(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.Na()||(g.Mv(a.element,"ytp-share-panel-loading"),E2a(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.aJ("\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u0443 \u0441\u0441\u044b\u043b\u043a\u0443: $URL",{URL:b}));iZa(this.j);this.api.logVisibility(this.j,!0)};
g.k.onFullscreenToggled=function(a){!a&&this.yk()&&MT(this)};
g.k.focus=function(){this.j.focus()};
g.k.ya=function(){g.LT.prototype.ya.call(this);D2a(this)};g.x(H2a,rU);g.k=H2a.prototype;g.k.ya=function(){M2a(this);rU.prototype.ya.call(this)};
g.k.lG=function(a){a.target!==this.dismissButton.element&&(this.Mx(!1),this.J.jb("innertubeCommand",this.onClickCommand))};
g.k.Uu=function(){this.Xa=!0;this.Mx(!0);this.Tl()};
g.k.Kba=function(a){this.N=a;this.Tl()};
g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Xa=!1,this.Da=!0,this.Y=this.va=!1,M2a(this),L2a(this,!1),this.B=this.j=!1,rW(this),I2a(this);if(a||!b.videoId)this.G=this.D=!1;var c,d;if(b==null?0:(c=b.getPlayerResponse())==null?0:(d=c.videoDetails)==null?0:d.isLiveContent)this.Lf(!1);else{var e,f,h;b=g.V((e=b.getWatchNextResponse())==null?void 0:(f=e.playerOverlays)==null?void 0:(h=f.playerOverlayRenderer)==null?void 0:h.productsInVideoOverlayRenderer,
qob);this.N=this.enabled=!1;if(b){if(this.J.L("web_player_enable_vod_featured_product_banner_on_desktop")&&(e=b==null?void 0:b.featuredProductsEntityKey)){f=g.HS.getState().entities;var l;if((l=WN(f,"featuredProductsEntity",e))==null?0:l.productsData){this.Lf(!1);return}}this.enabled=!0;if(!this.D){var m;l=(m=b.badgeInteractionLogging)==null?void 0:m.trackingParams;(this.D=!!l)&&this.J.setTrackingParams(this.badge.element,l||null)}if(!this.G){var n;if(this.G=!((n=b.dismissButton)==null||!n.trackingParams)){var p;
this.J.setTrackingParams(this.dismissButton.element,((p=b.dismissButton)==null?void 0:p.trackingParams)||null)}}b.isContentForward&&(m=b.productsData,L2a(this,!0),I2a(this),m=K2a(this,m),n=[],m.length>0&&n.push(m[0]),m.length>1&&(p=new g.W({I:"div",S:"ytp-suggested-action-more-products-icon"}),g.M(this,p),n.push(p),n.push.apply(n,g.ra(m.slice(1)))),this.K=new g.W({I:"div",V:n,S:"ytp-suggested-action-content-forward-container"}),g.M(this,this.K),this.La.element.append(this.K.element));this.text=g.RE(b.text);
var q;if(m=(q=b.dismissButton)==null?void 0:q.a11yLabel)this.Wa=g.RE(m);this.onClickCommand=b.onClickCommand;this.timing=b.timing;this.nf()}XZa(this);qU(this);this.Tl()}};
g.k.Ly=function(){return!this.N&&this.enabled&&!this.Xa&&!this.J.Tg()&&!this.Ab&&(this.Y||this.Da)};
g.k.kL=function(a){rU.prototype.kL.call(this,a);if(this.j||this.B)this.timing&&qW(this.timing.preview)&&(this.j=!1,rW(this),this.B=!1,rW(this),this.J.sf("shopping_overlay_preview_collapsed"),this.J.sf("shopping_overlay_preview_expanded"),a=sW(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),qW(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.sf("shopping_overlay_expanded"),a.end=this.timing.expanded.endSec*1E3),this.J.nf([a])),
this.va=!0,qU(this);rW(this)};
g.k.Lf=function(a){(this.Y=a)?(pU(this),qU(this,!1)):(M2a(this),this.Sa.start());this.Tl()};
g.k.nf=function(a){var b=this.timing;a=(a===void 0?0:a)+this.J.getCurrentTime();var c=[],d=b.visible,e=b.preview;b=b.expanded;qW(d)&&(F2a(d,a),c.push(sW(d.startSec,d.endSec,"shopping_overlay_visible")));qW(e)&&(F2a(e,a),d=e.startSec+1,c.push(sW(e.startSec,d,"shopping_overlay_preview_collapsed")),c.push(sW(d,e.endSec,"shopping_overlay_preview_expanded")));qW(b)&&(F2a(b,a),c.push(sW(b.startSec,b.endSec,"shopping_overlay_expanded")));this.J.nf(c)};g.x(e3a,g.W);
e3a.prototype.Ua=function(){var a=this.api.U();g.NE(this,g.nR(a)&&this.api.fd());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Ib);var b=this.api.getVideoData(),c=!1;this.api.getPresentingPlayerType()===2?c=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.Ab&&!!b.profilePicture:g.nR(a)&&(c=!!b.videoId&&!!b.Ab&&!!b.profilePicture&&!g.jT(b)&&!a.C&&!(a.Z&&this.api.getPlayerSize().width<200));var d=b.profilePicture;a=g.nR(a)?b.expandedTitle:b.author;d=d===void 0?"":d;a=a===
void 0?"":a;c?(this.B!==d&&(this.j.style.backgroundImage="url("+d+")",this.B=d),this.updateValue("channelLogoLabel",g.aJ('\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.Kv(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Mv(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,c&&this.Z);this.api.logVisibility(this.channelName,c&&this.Z);
this.subscribeButton&&(this.subscribeButton.channelId=b.Ul);this.updateValue("expandedTitle",b.expandedTitle)};g.x(tW,g.LT);tW.prototype.show=function(){g.LT.prototype.show.call(this);this.j.start()};
tW.prototype.hide=function(){g.LT.prototype.hide.call(this);this.j.stop()};
tW.prototype.mu=function(a,b){a==="dataloaded"&&((this.Bj=b.Bj,this.Tf=b.Tf,isNaN(this.Bj)||isNaN(this.Tf))?this.C&&(this.J.sf("intro"),this.J.removeEventListener(g.VI("intro"),this.K),this.J.removeEventListener(g.WI("intro"),this.G),this.J.removeEventListener("onShowControls",this.D),this.hide(),this.C=!1):(this.J.addEventListener(g.VI("intro"),this.K),this.J.addEventListener(g.WI("intro"),this.G),this.J.addEventListener("onShowControls",this.D),a=new g.UI(this.Bj,this.Tf,{priority:9,namespace:"intro"}),
this.J.nf([a]),this.C=!0))};g.x(uW,g.W);uW.prototype.onClick=function(){this.J.xv()};
uW.prototype.Ua=function(){var a=!0;g.nR(this.J.U())&&(a=a&&this.J.qb().getPlayerSize().width>=480);g.NE(this,a);this.updateValue("icon",this.J.ji()?{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,W:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.x(g3a,g.W);g3a.prototype.ya=function(){this.j=null;g.W.prototype.ya.call(this)};g.x(vW,g.W);vW.prototype.onClick=function(){this.J.jb("innertubeCommand",this.B)};
vW.prototype.N=function(a){a!==this.G&&(this.update({title:a,ariaLabel:a}),this.G=a);a?this.show():this.hide()};
vW.prototype.K=function(){this.j.disabled=this.B==null;g.Ov(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Uc()};g.x(wW,vW);wW.prototype.onClickCommand=function(a){g.V(a,GS)&&this.Uc()};
wW.prototype.updateVideoData=function(a,b){var c,d,e;a=g.V((c=b.getWatchNextResponse())==null?void 0:(d=c.playerOverlays)==null?void 0:(e=d.playerOverlayRenderer)==null?void 0:e.decoratedPlayerBarRenderer,lWa);var f;this.B=(f=g.V(a==null?void 0:a.playerBarActionButton,g.cM))==null?void 0:f.command;vW.prototype.K.call(this)};
wW.prototype.Uc=function(){var a="",b=this.D.j,c,d=((c=this.J.getLoopRange())==null?void 0:c.type)==="clips";if(b.length>1&&!d){a=this.J.getProgressState().current*1E3;c=gW(b,a);a=b[c].title||"\u042d\u043f\u0438\u0437\u043e\u0434\u044b";if(c!==this.currentIndex||this.C)this.J.jb("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.C=!1}else this.C=!0;vW.prototype.N.call(this,a)};g.x(xW,g.W);xW.prototype.G=function(a){g.yF(a.state,32)?j3a(this,this.api.vk()):this.Ib&&(g.yF(a.state,16)||g.yF(a.state,1))||this.j.hide()};
xW.prototype.Fg=function(){var a=this.api.getPlayerStateObject();(g.yF(a,32)||g.yF(a,16))&&k3a(this)};
xW.prototype.K=function(){this.C=NaN;k3a(this)};
xW.prototype.hide=function(){this.B&&j3a(this,null);g.W.prototype.hide.call(this)};g.x(l3a,g.W);g.k=l3a.prototype;g.k.onClick=function(){var a=this;if(this.J.U().Ab||this.J.U().Z){this.J.logClick(this.element);try{this.J.toggleFullscreen().catch(function(b){a.qF(b)})}catch(b){this.qF(b)}}else MT(this.message,this.element,!0)};
g.k.qF=function(a){String(a).includes("fullscreen error")?g.nE(a):g.mE(a);this.NR()};
g.k.NR=function(){this.disable();this.message.od(this.element,!0)};
g.k.Zx=function(){kB()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.L7=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=window.screen.width*.9,b=window.screen.height*.9,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.NR()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(iB(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"\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.LT(this.J,{I:"div",Ma:["ytp-popup","ytp-generic-popup"],W:{role:"alert",tabindex:"0"},V:[b[0],{I:"a",W:{href:"https://support.google.com/youtube/answer/6276924",target:this.J.U().Y},xa:b[2]},b[4]]},100,!0);this.message.hide();g.M(this,this.message);this.message.subscribe("show",function(c){a.Pe.FE(a.message,c)});
g.HT(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.Ua=function(){var a=eZa(this.J),b=this.J.U().Z&&this.J.getPlayerSize().width<250;g.NE(this,a&&!b);this.J.logVisibility(this.element,this.Ib)};
g.k.pn=function(a){if(a){var b={I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{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",Jc:!0,S:"ytp-svg-fill",W:{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",Jc:!0,S:"ytp-svg-fill",W:{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",Jc:!0,S:"ytp-svg-fill",W:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.zT(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.nE(c)})}else b={I:"svg",
W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",
V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.zT(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.Pe.Te().Yh()};
g.k.ya=function(){this.message||((0,this.j)(),this.j=null);g.W.prototype.ya.call(this)};g.x(yW,g.W);yW.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.j,!0);var a=this.j>0?1:-1,b=Math.abs(this.j),c=this.J.Hi().Pw;c&&bW(c,a,b);this.B.isActive()?this.C=!0:(a=["ytp-jump-spin"],this.j<0&&a.push("backwards"),this.element.classList.add.apply(this.element.classList,g.ra(a)),g.Ev(this.B))};g.x(zW,vW);zW.prototype.onClickCommand=function(a){g.V(a,oob)&&this.Uc()};
zW.prototype.updateVideoData=function(){var a,b;this.B=(a=n3a(this))==null?void 0:(b=a.onTap)==null?void 0:b.innertubeCommand;vW.prototype.K.call(this)};
zW.prototype.Uc=function(){var a="",b=this.D.K,c,d=(c=n3a(this))==null?void 0:c.headerTitle;c=d?g.RE(d):"";var e;d=((e=this.J.getLoopRange())==null?void 0:e.type)==="clips";b.length>1&&!d&&(a=this.J.getProgressState().current*1E3,e=i2a(b,a),a=e!=null?b[e].title:c,e!=null&&e!==this.currentIndex&&(this.J.jb("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));vW.prototype.N.call(this,a)};g.x(AW,g.W);AW.prototype.onClick=function(){this.J.jb("onCollapseMiniplayer");this.J.logClick(this.element)};
AW.prototype.Ua=function(){this.visible=!this.J.isFullscreen();g.NE(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)};
AW.prototype.Mc=function(a){g.W.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.x(o3a,g.W);g.k=o3a.prototype;g.k.VV=function(a){this.visible=a.width>=300||this.Ga;g.NE(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)};
g.k.wba=function(){this.J.U().Wa?this.J.isMuted()?this.J.unMute():this.J.mute():MT(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=d===0?1:a>50?1:0;if(this.G!==a){var f=this.va;isNaN(f)?r3a(this,a):E_a(this.Ha,function(l){r3a(c,f+(c.G-f)*l)},250);
this.G=a}d=d===0?1:0;if(this.D!==d){var h=this.Y;isNaN(h)?s3a(this,d):E_a(this.ra,function(l){s3a(c,h+(c.D-h)*l)},250);
this.D=d}e.Wa&&(e=g.zT(this.J,"\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0437\u0432\u0443\u043a\u0430","m"),d=g.zT(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.Yh())};
g.k.Mc=function(a){g.W.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};
var p3a=["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"],q3a=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.x(g.BW,g.W);g.BW.prototype.onStateChange=function(a){this.Ic(a.state)};
g.BW.prototype.Ic=function(a){var b=g.VS(this.J.getVideoData()),c=!1;a.isOrWillBePlaying()?a=b?4:2:g.yF(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.zT(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.zT(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"})}a===
3?this.update({title:b,icon:t3a(a)}):(this.update({title:b}),(b=t3a(a))&&this.j&&this.j!==3?G_a(this.transition,this.element,b):this.updateValue("icon",b));this.tooltip.Yh();this.j=a}};
g.BW.prototype.onVideoDataChange=function(){g.Ov(this.element,"ytp-play-button-playlist",g.ET(this.J))};
g.BW.prototype.Ws=function(a){this.J.logClick(this.element);if(this.J.getPlayerStateObject().isOrWillBePlaying())this.J.pauseVideo();else{if(this.J.isMinimized()&&this.J.getPlayerStateObject().isCued()){var b={},c;if((c=this.J.getVideoData())==null?0:c.G)b.cttAuthInfo={token:this.J.getVideoData().G,videoId:this.J.getVideoData().videoId};QG("direct_playback",b);this.J.Ii().timerName="direct_playback"}else this.j===3&&cV(this.J.Ii());this.J.playVideo()}this.J.isMinimized()&&(a==null?void 0:a.type)===
"click"&&this.element.blur()};g.x(g.CW,g.W);g.k=g.CW.prototype;g.k.onVideoDataChange=function(){v3a(this);this.D&&(this.Oc(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.z6);this.C=w3a(this);u3a(this);this.CN(this.J.qb().getPlayerSize())};
g.k.CN=function(a){a=a===void 0?this.J.qb().getPlayerSize():a;var b,c=((b=this.J.getLoopRange())==null?void 0:b.type)==="clips";a=(g.ET(this.J)||this.j&&g.IT(this.J)&&!this.J.L("web_hide_next_button")||x3a(this))&&!c&&(this.j||a.width>=400);g.NE(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.ZT(a,this.J):a.preventDefault();b&&(this.j&&this.J.getPresentingPlayerType()===5?this.J.publish("ytoprerollinternstitialnext"):this.j?(cV(this.J.Ii()),this.J.publish("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.C?this.J.seekTo(0):(cV(this.J.Ii()),this.J.publish("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))};
g.k.z6=function(){var a=w3a(this);a!==this.C&&(this.C=a,u3a(this))};
g.k.ya=function(){this.B&&(this.B(),this.B=null);v3a(this);g.W.prototype.ya.call(this)};g.x(z3a,g.W);g.k=z3a.prototype;g.k.B6=function(a){this.EN(a.pageX);this.DN(a.pageX+a.deltaX);A3a(this)};
g.k.EN=function(a){this.ra=a-this.Oa};
g.k.DN=function(a){a-=this.Oa;!isNaN(this.ra)&&this.thumbnails.length>0&&(this.Y=a-this.ra,this.thumbnails.length>0&&this.Y!==0&&(this.C=this.N+this.Y,a=F3a(this,this.C),this.C<=this.j/2&&this.C>=E3a(this)?(this.api.seekTo(a,!1,void 0,void 0,25),g.Is(this.Da,"transform","translateX("+(this.C-this.j/2)+"px)"),y3a(this,a)):this.C=this.N))};
g.k.A6=function(){this.va&&(this.va.LA=!0);var a=(0,g.iC)()-this.Wa<300;if(Math.abs(this.Y)<5&&!a){this.Wa=(0,g.iC)();a=this.ra+this.Y;var b=this.j/2-a;this.EN(a);this.DN(a+b);A3a(this);this.api.logClick(this.G)}A3a(this)};
g.k.GB=function(){DW(this,this.api.getCurrentTime())};
g.k.play=function(a){this.api.seekTo(F3a(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.Sa,void 0,void 0,void 0,63);this.api.playVideo();a&&this.api.logClick(this.dismissButton)};
g.k.kc=function(a,b){this.Oa=a;this.j=b;DW(this,this.api.getCurrentTime())};
g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Sa=this.api.getCurrentTime(),y3a(this,this.Sa),g.Ov(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.La=this.T(this.element,"wheel",this.B6),this.logVisibility(this.isEnabled))};
g.k.disable=function(){this.isEnabled=!1;this.hide();g.Ov(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.La&&this.Oc(this.La);this.logVisibility(this.isEnabled)};
g.k.reset=function(){this.disable();this.D=[];this.Ga=!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.ya=function(){for(;this.B.length;){var a=void 0;(a=this.B.pop())==null||a.dispose()}g.W.prototype.ya.call(this)};
g.x(B3a,g.W);g.x(C3a,g.W);g.x(G3a,g.W);g.x(EW,g.W);EW.prototype.Jb=function(a){return a==="PLAY_PROGRESS"?this.K:a==="LOAD_PROGRESS"?this.G:a==="LIVE_BUFFER"?this.D:this.B};J3a.prototype.update=function(a,b,c,d){c=c===void 0?0:c;this.width=b;this.D=c;this.j=b-c-(d===void 0?0:d);this.position=g.ze(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.x(K3a,g.W);g.x(g.HW,g.OE);g.k=g.HW.prototype;
g.k.m3=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.sf("timedMarkerCueRange");N3a(this);for(var c=g.v(b.mf),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=(e=this.Oa[d])==null?void 0:e.markerType;e=void 0;var h=(e=this.Oa[d])==null?void 0:e.markers;if(!h)break;if(f==="MARKER_TYPE_TIMESTAMPS"){a=g.v(h);for(f=a.next();!f.done;f=a.next()){e=f.value;f=new K3a;h=void 0;f.title=((h=e.title)==null?void 0:h.simpleText)||"";f.timeRangeStartMillis=Number(e.startMillis);f.j=
Number(e.durationMillis);var l=h=void 0;f.onActiveCommand=(l=(h=e.onActive)==null?void 0:h.innertubeCommand)!=null?l:void 0;T3a(this,f)}U3a(this,this.K);a=this.K;f=this.Be;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=(n=a[l].j)!=null?n:1E4;h&&h.end>m&&(h.end=m);m=l2a(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.nf(e);this.Sf=this.Oa[d];a=!0}else if(f==="MARKER_TYPE_HEATMAP"){d=this.Oa[d];p=n=e=m=l=h=void 0;if(d&&
d.markers){f=(e=(p=d.markersMetadata)==null?void 0:(n=p.heatmapMetadata)==null?void 0:n.minHeightDp)!=null?e:0;e=(h=(m=d.markersMetadata)==null?void 0:(l=m.heatmapMetadata)==null?void 0:l.maxHeightDp)!=null?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&&M3a(this);n=[];l&&n.push(l);for(var r=g.v(d.markers),t=r.next();!t.done;t=r.next()){t=t.value;var u=Number(t.startMillis);u>=p&&u<=q&&n.push(t)}e>0&&(this.va.style.height=
e+"px");p=this.G[m];q=n;t=f;var w=e,A=m===0;A=A===void 0?!1:A;H3a(p,w);r=q;u=p.j;A=A===void 0?!1:A;var C=1E3/r.length,F=[];F.push({x:0,y:100});for(var G=0;G<r.length;G++){var K=(G+.5)*C,N=100-g.ze((r[G].intensityScoreNormalized||0)*100,t/u*100,w/u*100);G!==0||A||F.push({x:0,y:N});F.push({x:K,y:N});G===r.length-1&&F.push({x:1E3,y:N})}F.push({x:1E3,y:100});r=F;q=q.length===0?"":dBa(r);p.C.setAttribute("d",q);p.xe=q!=="";g.Ov(p.api.getRootNode(),"ytp-heat-map",p.xe);n.length>0&&(l=n[n.length-1])}g.IW(this)}e=
void 0;f=[];if(d=(e=d.markersDecoration)==null?void 0:e.timedMarkerDecorations)for(d=g.v(d),e=d.next();!e.done;e=d.next())e=e.value,m=l=h=void 0,f.push({visibleTimeRangeStartMillis:(h=e.visibleTimeRangeStartMillis)!=null?h:-1,visibleTimeRangeEndMillis:(l=e.visibleTimeRangeEndMillis)!=null?l:-1,decorationTimeMillis:(m=e.decorationTimeMillis)!=null?m:NaN,label:e.label?g.RE(e.label):""});d=f;this.heatMarkersDecorations=d}}b.yW=this.K;g.Ov(this.element,"ytp-timed-markers-enabled",a);return a};
g.k.kc=function(){g.IW(this);LW(this);U3a(this,this.K);if(this.B){var a=g.Rs(this.element).x||0;this.B.kc(a,this.N)}};
g.k.onClickCommand=function(a){if(a=g.V(a,GS)){var b=a.key;a.isVisible&&b&&Y3a(this,b)}};
g.k.Jca=function(a){this.api.jb("innertubeCommand",this.Be[a.id])};
g.k.Uc=function(){LW(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.WL()};
g.k.C6=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.mu=function(a,b){this.updateVideoData(b,a==="newdata")};
g.k.K9=function(){this.mu("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=b===void 0?!1:b;var c=!!a&&a.xe();c&&(iT(a)||d4a(this)?this.mf=!1:this.mf=a.allowLiveDvr,g.Ov(this.api.getRootNode(),"ytp-enable-live-buffer",!(a==null||!iT(a))));o4a(this,this.api.oi());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;PW(this);for(MW(this,this.ra,this.ib);this.G.length>0;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.Cb={};var d;(d=this.B)==null||d.reset();UW(this);g.Ov(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
GW(this))}else this.WL();this.gi()}if(a){var e;d=((e=this.Fb)==null?void 0:e.type)==="clips";if(e=!a.isLivePlayback){e=this.api.getVideoData();b=g.nWa(e);c=P3a(e);var f;e=b!=null||c!=null&&c.length>0||((f=e.sz)==null?void 0:f.length)>0}if(e&&!d){f=this.api.getVideoData();d=g.nWa(f);e=!1;if(d==null?0:d.markersMap){e=this.api.getVideoData();var h;e.mw=((h=d.visibleOnLoad)==null?void 0:h.key)||e.mw;h=g.v(d.markersMap);for(d=h.next();!d.done;d=h.next())d=d.value,d.key&&d.value&&(this.Cb[d.key]=d.value,
d.value.onChapterRepeat&&(e.m4=d.value.onChapterRepeat));e.mw!=null&&Y3a(this,e.mw);e=!0}var l;if(((l=f.sz)==null?void 0:l.length)>0){l=g.HS.getState().entities;h=g.v(f.sz);for(d=h.next();!d.done;d=h.next()){d=d.value;c=void 0;b=(c=WN(l,"macroMarkersListEntity",d))==null?void 0:c.markersList;var m=c=void 0;if(((c=b)==null?void 0:c.markerType)==="MARKER_TYPE_TIMESTAMPS"||((m=b)==null?void 0:m.markerType)==="MARKER_TYPE_HEATMAP")this.Oa[d]=b}e=this.m3()||e}!e&&(l=P3a(f))&&(R3a(this,l),f.Sk=this.j,Q3a(this));
e4a(this,null);a.IU&&this.G.length===0&&(a=a.IU,l=a.key,a.isVisible&&l&&Y3a(this,l))}else L3a(this),N3a(this)}LW(this)};
g.k.L9=function(a){this.Y&&!g.yF(a.state,32)&&this.api.getPresentingPlayerType()!==3&&this.Y.cancel();var b;((b=this.B)==null?0:b.isEnabled)&&g.yF(a.state,8)&&this.api.pauseVideo()};
g.k.WV=function(a){var b=!!this.Fb!==!!a,c=this.Fb;this.Fb=a;e4a(this,c);(a==null?void 0:a.type)!=="clips"&&a||(a?(this.updateValue("clipstarticon",sya()),this.updateValue("clipendicon",sya()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",kya()),this.updateValue("clipendicon",jya()),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.IW(this)),PW(this));MW(this,this.ra,this.ib)};
g.k.Nba=function(a,b,c){var d=g.Rs(this.element),e=KW(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=NF(this.C,Number(c.getAttribute("data-position")),0)*e+g.Rs(this.progressBar).x);this.Ya.x=a-d.x;this.Ya.y=b-d.y;a=KW(this);c=OW(this,a);b=0;var m;if((m=this.api.getVideoData())==null?0:iT(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=NF(this.C,m)*KW(this).j),b=this.C.B;
d4a(this)&&(b=this.C.B);m=f||g.IF(this.mf?c-this.C.j:c-b);b=a.position+this.Vf;c-=this.api.Fc();var n;if((n=this.B)==null||!n.isEnabled)if(this.api.vk()){if(this.j.length>1){n=NW(this,this.Ya.x,!0);if(!this.Fb)for(d=0;d<this.j.length;)g.Ov(this.j[d].j,"ytp-exp-chapter-hover-effect",d===n),d++;if(this.G.length>1)for(d=0;d<this.j.length;d++)g.Ov(this.G[d].element,"ytp-heatmap-hover",d===n)}if(this.K.length>0)for(n=this.Ya.x,d=g.v(this.K),e=d.next();!e.done;e=d.next())e=e.value,h=JW(this,e.timeRangeStartMillis/
(this.C.j*1E3),KW(this)),g.Ov(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.Sf?(n=i2a(this.K,c*1E3),n=n!=null?this.K[n].title:""):(n=gW(this.j,c*1E3),n=this.j[n].title):(n=gW(this.j,c*1E3),n=this.j[n].title);n||(l+=16*d);this.tooltip.scale===.6&&(this.api.L("web_cairo_modern_miniplayer")?(l=this.api.qb().getPlayerSize().height-225,l=n?l+110:l+110+16):l=n?110:126);d=gW(this.j,c*1E3);this.Xa=f4a(this,c,d)?d:f4a(this,
c,d+1)?d+1:-1;g.Ov(this.api.getRootNode(),"ytp-progress-bar-snap",this.Xa!==-1&&this.j.length>1);d=!1;e=g.v(this.heatMarkersDecorations);for(h=e.next();!h.done;h=e.next()){h=h.value;var p=c*1E3;p>=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.IF(h.decorationTimeMillis/1E3),d=!0)}this.Fd!==d&&(this.Fd=d,this.api.logVisibility(this.Ed,this.Fd));g.Ov(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=this.tooltip.scale*320;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].xe&&(l-=14*(this.D?2:1),this.Ga||(this.Ga=!0,this.api.logVisibility(this.va,this.Ga)));var q;if(GW(this)&&(((q=this.B)==null?0:q.isEnabled)||this.Wa>0)){var r;l-=((r=this.B)==null?0:r.isEnabled)?RW(this):this.Wa}q=void 0;GW(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.Ha||(this.Ha=!0,this.api.logVisibility(this.Ud,this.Ha)));this.tooltip.tM(b,c,m,!!f,l,n,d,q)}else this.tooltip.tM(b,c,m,!!f,l);g.Kv(this.api.getRootNode(),"ytp-progress-bar-hover");c4a(this)};
g.k.Mba=function(){this.gi();g.Mv(this.api.getRootNode(),"ytp-progress-bar-hover");this.Ga&&(this.Ga=!1,this.api.logVisibility(this.va,this.Ga));this.Ha&&(this.Ha=!1,this.api.logVisibility(this.Ud,this.Ha))};
g.k.Lba=function(a,b){GW(this)&&this.B&&(this.B.Ga?DW(this.B,this.api.getCurrentTime()):D3a(this.B),this.B.show(),g.Ov(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.B.isEnabled));this.le&&(this.le.dispose(),this.le=null);this.Wf=b;this.j.length>1&&this.Xa!==-1?this.api.seekTo(this.j[this.Xa].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(OW(this,KW(this)),!1,void 0,void 0,7);g.Kv(this.element,"ytp-drag");(this.tf=this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()};
g.k.Oba=function(){if(GW(this)&&this.B){var a=RW(this);this.Wa>=a*.5?(this.B.enable(),DW(this.B,this.api.getCurrentTime()),n4a(this,a)):UW(this)}if(g.yF(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var b;if((b=this.B)==null?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.j.length>1&&this.Xa!==-1)this.api.seekTo(this.j[this.Xa].startTime/1E3,void 0,void 0,void 0,7);else{a=OW(this,KW(this));this.api.seekTo(a,void 0,void 0,void 0,7);b=g.v(this.heatMarkersDecorations);
for(var c=b.next();!c.done;c=b.next())c=c.value,a*1E3>=c.visibleTimeRangeStartMillis&&a*1E3<=c.visibleTimeRangeEndMillis&&this.api.logClick(this.Ed)}g.Mv(this.element,"ytp-drag");this.tf&&!g.yF(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}};
g.k.Pba=function(a,b){a=KW(this);a=OW(this,a);this.api.seekTo(a,!1,void 0,void 0,7);var c;GW(this)&&((c=this.B)==null?0:c.Ga)&&(DW(this.B,a),this.B.isEnabled||(this.Wa=g.ze(this.Wf-b-10,0,RW(this)),n4a(this,this.Wa)))};
g.k.gi=function(){this.tooltip.sQ()};
g.k.Q_=function(){this.Fb||(this.updateValue("clipstarticon",iya()),this.updateValue("clipendicon",iya()),g.Kv(this.element,"ytp-clip-hover"))};
g.k.P_=function(){this.Fb||(this.updateValue("clipstarticon",kya()),this.updateValue("clipendicon",jya()),g.Mv(this.element,"ytp-clip-hover"))};
g.k.WL=function(){this.clipStart=0;this.clipEnd=Infinity;PW(this);MW(this,this.ra,this.ib)};
g.k.ofa=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.La[c]){var d=g.Bf("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.La[c]=b;this.Qb[c]=d;g.Iv(d,b.style);g4a(this,c);this.api.U().L("disable_ad_markers_on_content_progress_bar")||this.j[0].C.appendChild(d)}}else m4a(this,b)};
g.k.Eda=function(a){a=g.v(a);for(var b=a.next();!b.done;b=a.next())m4a(this,b.value)};
g.k.Sw=function(a){this.B&&(this.B.onExit(a!=null),UW(this))};
g.k.qP=function(a){this.B&&(this.B.play(a!=null),UW(this))};
g.k.ya=function(){o4a(this,!1);g.OE.prototype.ya.call(this)};g.x(VW,g.W);VW.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
VW.prototype.Ua=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=this.J.getOption("remote","receivers").length>1);g.NE(this,a&&this.J.qb().getPlayerSize().width>=400);this.J.logVisibility(this.element,this.Ib);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Jc:!0,W:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.gya())}g.Ov(this.element,"ytp-remote-button-active",this.isActive())}};
VW.prototype.B=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Gb,b=this.element;if(a.yk())a.Nb();else{a.initialize();a:{var c=g.v(a.Qe.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.priority===1){c=d;break a}c=null}c&&(c.open(),a.od(b));a.od(b)}}this.J.logClick(this.element)};g.x(WW,g.W);WW.prototype.j=function(a){var b=this.J.U(),c=400;this.J.L("web_player_small_hbp_settings_menu")&&b.K?c=300:b.Z&&(c=200);a=this.B&&a.width>=c;g.NE(this,a);this.J.logVisibility(this.element,a)};
WW.prototype.C=function(){if(this.Gb.Ib)this.Gb.Nb();else{var a=g.yV(this.J.Bb());a&&!a.loaded&&(a.Xh("tracklist",{includeAsr:!0}).length||a.load());this.J.logClick(this.element);this.Gb.od(this.element)}};
WW.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=b!==2&&b!==3,d=g.GT(this.J),e=c&&!!g.FT(this.J.Bb());b=e&&d.displayMode===1;d=e&&d.displayMode===2;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.Ov(this.element,"ytp-hdr-quality-badge",a);g.Ov(this.element,"ytp-hd-quality-badge",!a&&(c==="hd1080"||c==="hd1440"));g.Ov(this.element,"ytp-4k-quality-badge",!a&&c==="hd2160");g.Ov(this.element,"ytp-5k-quality-badge",!a&&c==="hd2880");g.Ov(this.element,"ytp-8k-quality-badge",
!a&&c==="highres");g.Ov(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.Ov(this.element,"ytp-3d-badge",!a&&e&&d)};g.x(XW,WT);XW.prototype.isLoaded=function(){var a=g.EV(this.J.Bb());return a!==void 0&&a.loaded};
XW.prototype.Ua=function(){g.EV(this.J.Bb())!==void 0&&this.J.getPresentingPlayerType()!==3?this.j||(this.Gb.Vc(this),this.j=!0):this.j&&(this.Gb.wh(this),this.j=!1);XT(this,this.isLoaded())};
XW.prototype.onSelect=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.publish("annotationvisibility",a)};
XW.prototype.ya=function(){this.j&&this.Gb.wh(this);WT.prototype.ya.call(this)};g.x(YW,g.BU);YW.prototype.Ua=function(){var a=this.J.getAvailableAudioTracks();a.length>1?(g.CU(this,g.$r(a,this.j)),this.tracks=g.cc(a,this.j,this),this.countLabel.Dd(a.length?" ("+a.length+")":""),this.publish("size-change"),this.Ti(this.j(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
YW.prototype.Mg=function(a){g.BU.prototype.Mg.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Gb.ej()};
YW.prototype.j=function(a){return a.toString()};g.x(ZW,WT);
ZW.prototype.B=function(){var a=this.J.getPresentingPlayerType();if(a!==2&&a!==3&&g.IT(this.J))this.j||(this.Gb.Vc(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.Gb.wh(this);this.j=!1;a=g.v(this.C);for(var b=a.next();!b.done;b=
a.next())this.Oc(b.value)}};
ZW.prototype.D=function(a){XT(this,a!==1)};
ZW.prototype.onSelect=function(a){this.J.aM(a?2:1);this.j&&(this.J.logVisibility(this.element,this.j),this.J.logClick(this.element))};
ZW.prototype.ya=function(){this.j&&this.Gb.wh(this);WT.prototype.ya.call(this)};g.x(q4a,g.NT);q4a.prototype.onClick=function(a){a.preventDefault();var b,c;(b=g.vT(this.J))==null||(c=b.Km())==null||c.Nb();var d,e;(d=g.vT(this.J))==null||(e=d.eY())==null||e.od(a.target)};g.x(r4a,g.BU);g.k=r4a.prototype;
g.k.DD=function(){var a=this.J.getPresentingPlayerType();if(a!==2&&a!==3){this.Da=this.J.Vt();a=this.J.getAvailableQualityLevels();if(this.j){this.D={};var b=g.qT(this.J,"getAvailableQualityData",[]);b=g.v(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.D[c.qualityLabel]=c;b=Object.keys(this.D);a[a.length-1]==="auto"&&b.push("auto");this.Ha=new Set(a)}else if(this.G){c=g.qT(this.J,"getAvailableQualityData",[]);b=[];c=g.v(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);a[a.length-1]==="auto"&&b.push("auto")}else b=a;g.MYa(this.J)&&this.J.lx()&&b.unshift("missing-qualities");NYa(this.J)&&b.unshift("inline-survey");g.CU(this,b);a=this.J.getVideoData().cotn?!0:!1;c=this.va.Mh();c=!g.ER(this.J.U())||!(a===void 0?0:a)||!(c===void 0||c);a=this.B;c=c===void 0?!1:c;c=c===void 0?!1:c;a.XY&&(a=a.Fa("ytp-panel-footer"),g.Ov(a,"ytp-panel-hide-footer",c));if(b.length){this.XV();this.enable(!0);return}}this.enable(!1)};
g.k.XV=function(){if(this.j){var a=this.J.getPreferredQuality();this.Ha.has(a)&&(this.K=this.J.getPlaybackQuality(),this.ra=this.J.getPlaybackQualityLabel(),a==="auto"?(this.Ti(a),this.Dd(this.bl(a))):this.Ti(this.ra))}else a=this.J.getPreferredQuality(),this.options[a]&&(this.K=this.J.getPlaybackQuality(),this.Ti(a),a==="auto"&&this.Dd(this.bl(a)))};
g.k.Mg=function(a){if(a!=="missing-qualities"){g.BU.prototype.Mg.call(this,a);var b=this.j?this.D[a]:this.Y[a];var c=b==null?void 0:b.quality,d=b==null?void 0:b.formatId,e=b==null?void 0:b.paygatedQualityDetails;b=e==null?void 0:e.endpoint;if(e){var f;e=(f=this.options[a])==null?void 0:f.element;this.J.logClick(e)}if(this.j){var h,l;if((h=g.V(b,g.Ymb))==null?0:(l=h.popup)==null?0:l.notificationActionRenderer)this.J.jb("innertubeCommand",b);else if(b){this.J.jb("innertubeCommand",b);return}d?this.J.setPlaybackQuality(c,
d):this.J.setPlaybackQuality(c)}else{if(this.G){var m,n;if((m=g.V(b,g.Ymb))==null?0:(n=m.popup)==null?0:n.notificationActionRenderer)this.J.jb("innertubeCommand",b);else if(b){this.J.jb("innertubeCommand",b);return}}this.J.setPlaybackQuality(a)}this.Gb.Nb();this.DD()}};
g.k.open=function(){for(var a=g.v(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.J.hasVe((c=b)==null?void 0:c.element)&&(c=void 0,this.J.logVisibility((c=b)==null?void 0:c.element,!0))}g.BU.prototype.open.call(this);this.J.logClick(this.element)};
g.k.Hz=function(a,b,c){var d=this;if(a==="missing-qualities")return new g.NT({I:"a",Ma:["ytp-menuitem"],W:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.U().Y,tabindex:"0",role:"menuitemradio"},V:[{I:"div",Ma:["ytp-menuitem-label"],xa:"{{label}}"}]},b,this.bl(a));if(a!=="inline-survey"){var e,f=(e=this.j?this.D[a]:this.Y[a])==null?void 0:e.paygatedQualityDetails;e=f==null?void 0:f.veType;f=f==null?void 0:f.trackingParams;b=g.BU.prototype.Hz.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",xa:"\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.v([!0,!1]);f=c.next();for(e={};!f.done;e={uQ:void 0},f=c.next())e.uQ=f.value,f=new g.W({I:"span",S:"ytp-menuitem-inline-survey-response",V:[e.uQ?rya():mya()],W:{tabindex:"0",role:"button"}}),f.listen("click",function(h){return function(){var l=
h.uQ,m=g.uT(d.J.app);m&&(m.oa("iqsr",{tu:l}),m.getVideoData().xU=!0);d.Gb.Nb();d.DD()}}(e)),a.push(f);
return new g.NT({I:"div",S:"ytp-menuitem",W:{"aria-disabled":"true"},V:[{I:"div",Ma:["ytp-menuitem-label"],V:a}]},b)};
g.k.bl=function(a,b){b=b===void 0?!1:b;if(a==="missing-qualities")return{I:"div",xa:"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043d\u0435 \u0432\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b?"};if(a==="inline-survey")return"";var c=this.G||this.j?[u4a(this,a,b,!1)]:[t4a(this,a)];var d=this.J.getPreferredQuality();b||d!=="auto"||a!=="auto"||(c.push(" "),this.j?c.push(u4a(this,this.ra,b,!0,["ytp-menu-label-secondary"])):this.G?c.push(u4a(this,this.K,b,!0,["ytp-menu-label-secondary"])):
c.push(t4a(this,this.K,["ytp-menu-label-secondary"])));return{I:"div",V:c}};g.x($W,g.W);$W.prototype.init=function(){this.updateValue("minvalue",this.D);this.updateValue("maxvalue",this.K);this.updateValue("stepvalue",this.N);this.updateValue("slidervalue",this.j);v4a(this,this.j)};
$W.prototype.G=function(){w4a(this,Number(this.B.value))};g.x(aX,$W);aX.prototype.G=function(){$W.prototype.G.call(this);this.C&&(x4a(this),this.ra())};
aX.prototype.Y=function(){this.J.setPlaybackRate(this.j,!0)};
aX.prototype.updateValues=function(){w4a(this,this.J.getPlaybackRate());x4a(this)};g.x(bX,g.W);g.k=bX.prototype;g.k.init=function(){this.Jy(this.j);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.D)};
g.k.F6=function(a){if(!a.defaultPrevented){switch(a.keyCode){case 37:case 40:var b=-this.N;break;case 39:case 38:b=this.N;break;default:return}this.Jy(this.j+b);a.preventDefault()}};
g.k.D6=function(a){var b=this.j;b+=(a.deltaX||-a.deltaY)<0?-this.Y:this.Y;this.Jy(b);a.preventDefault()};
g.k.E6=function(a){a=(a-g.Rs(this.G).x)/this.ra*this.range+this.B;this.Jy(a)};
g.k.Jy=function(a,b){b=b===void 0?"":b;a=g.ze(a,this.B,this.D);b===""&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.Ha.style.left=(a-this.B)/this.range*(this.ra-this.Ga)+"px";this.j=a};
g.k.focus=function(){this.La.focus()};g.x(cX,bX);cX.prototype.va=function(){this.J.setPlaybackRate(this.j,!0)};
cX.prototype.Jy=function(a){bX.prototype.Jy.call(this,a,z4a(this,a).toString());this.C&&(y4a(this),this.Da())};
cX.prototype.updateValues=function(){var a=this.J.getPlaybackRate();z4a(this,this.j)!==a&&(this.Jy(a),y4a(this))};g.x(A4a,g.OE);A4a.prototype.focus=function(){this.j.focus()};g.x(B4a,sU);g.x(C4a,g.BU);g.k=C4a.prototype;g.k.bl=function(a){return a==="1"?"\u041e\u0431\u044b\u0447\u043d\u0430\u044f":a.toLocaleString()};
g.k.Ua=function(){var a=this.J.getPresentingPlayerType();this.enable(a!==2&&a!==3);G4a(this)};
g.k.oz=function(a){g.BU.prototype.oz.call(this,a);a?(this.K=this.T(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),G4a(this),E4a(this,this.J.getPlaybackRate())):(this.Oc(this.K),this.K=null)};
g.k.onPlaybackRateChange=function(a){var b=this.J.getPlaybackRate();this.G.includes(b)||F4a(this,b);E4a(this,a)};
g.k.Hz=function(a,b,c){if(a===this.j&&H4a(this.J)){var d={I:"div",S:"ytp-speed-slider-menu-footer",V:[new aX(this.J)]};return g.BU.prototype.Hz.call(this,a,b,c,d)}return g.BU.prototype.Hz.call(this,a,b,c)};
g.k.Mg=function(a){g.BU.prototype.Mg.call(this,a);a===this.j?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Gb.ej()};
g.k.xN=function(a){a===this.j&&dX(this.J)&&!H4a(this.J)?(a=new B4a(this.J),g.wU(this.Gb,a)):g.BU.prototype.xN.call(this,a)};g.x(J4a,g.BU);g.k=J4a.prototype;g.k.Ti=function(a){g.BU.prototype.Ti.call(this,a)};
g.k.KU=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.bl=function(a){return this.getOption(a).text||""};
g.k.Mg=function(a){g.BU.prototype.Mg.call(this,a);this.publish("settingChange",this.K,this.settings[a].option)};g.x(eX,g.tU);eX.prototype.yh=function(a){for(var b=g.v(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Qu[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Ti(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
eX.prototype.Hk=function(a,b){this.publish("settingChange",a,b)};g.x(fX,g.BU);fX.prototype.j=function(a){return a.languageCode};
fX.prototype.bl=function(a){return this.languages[a].languageName||""};
fX.prototype.Mg=function(a){this.publish("select",a);this.J.logClick(this.element);g.xU(this.Gb)};g.x(M4a,g.BU);g.k=M4a.prototype;g.k.nD=function(a){return g.gd(a)?"__off__":a.displayName};
g.k.bl=function(a){return a==="__off__"?"\u0412\u044b\u043a\u043b.":a==="__translate__"?"\u041f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438":a==="__contribute__"?"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044b":a==="__correction__"?"\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":(a==="__off__"?{}:this.tracks[a]).displayName};
g.k.Mg=function(a){if(a==="__translate__")this.j.open();else if(a==="__contribute__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var b=g.MPa(this.J.U(),this.J.getVideoData());g.UF(b)}else if(a==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var c=N4a(this);gX(this,c);g.BU.prototype.Mg.call(this,this.nD(c));var d,e;c=(b=this.J.getVideoData().getPlayerResponse())==null?void 0:(d=b.captions)==null?void 0:(e=d.playerCaptionsTracklistRenderer)==
null?void 0:e.openTranscriptCommand;this.J.jb("innertubeCommand",c);this.Gb.ej();this.D&&this.J.logClick(this.D)}else{if(a==="__correction__"){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();b=N4a(this);gX(this,b);g.BU.prototype.Mg.call(this,this.nD(b));var f,h;b=(c=this.J.getVideoData().getPlayerResponse())==null?void 0:(f=c.captions)==null?void 0:(h=f.playerCaptionsTracklistRenderer)==null?void 0:h.openTranscriptCommand;this.J.jb("innertubeCommand",b)}else this.J.logClick(this.element),
gX(this,a==="__off__"?{}:this.tracks[a]),g.BU.prototype.Mg.call(this,a);this.Gb.ej()}};
g.k.Ua=function(){var a=this.J.getOptions();a=a&&a.indexOf("captions")!==-1;var b=this.J.getVideoData(),c=b&&b.Vv,d,e=!((d=this.J.getVideoData())==null||!g.hT(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.nD,this);e=g.$r(d,this.nD);var m,n;N4a(this)&&((f=b.getPlayerResponse())==null?0:(m=f.captions)==null?0:(n=m.playerCaptionsTracklistRenderer)==
null?0:n.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.gd(h)){if((f=h.translationLanguage)&&f.languageName){var p=f.languageName;f=l.findIndex(function(q){return q.languageName===p});
Aaa(l,f)}K4a(this.j,l);e.push("__translate__")}f=this.nD(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.CU(this,e);this.Ti(f);h&&h.translationLanguage?this.j.Ti(this.j.j(h.translationLanguage)):k_a(this.j);a&&this.G.yh(this.J.getSubtitlesUserSettings());this.countLabel.Dd(d&&d.length?" ("+d.length+")":"");this.publish("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.E4=function(a){var b=this.J.getOption("captions","track");b=g.jd(b);b.translationLanguage=this.j.languages[a];gX(this,b)};
g.k.Hk=function(a,b){if(a==="reset")this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}L4a(this,!0);this.K.start();this.G.yh(this.J.getSubtitlesUserSettings())};
g.k.uca=function(a){a||g.Gv(this.K)};
g.k.ya=function(){g.Gv(this.K);g.BU.prototype.ya.call(this)};
g.k.open=function(){g.BU.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.x(O4a,g.vU);g.k=O4a.prototype;
g.k.initialize=function(){if(!this.isInitialized){var a=this.J.U();this.isInitialized=!0;try{this.JS=new r4a(this.J,this)}catch(c){g.nE(Error("QualityMenuItem creation failed"))}g.M(this,this.JS);var b=new M4a(this.J,this);g.M(this,b);a.C||(b=new XW(this.J,this),g.M(this,b));a.enableSpeedOptions&&(b=new C4a(this.J,this),g.M(this,b));(g.nR(a)||a.K)&&(a.B||a.Xa)&&(b=new q4a(this.J,this),g.M(this,b));a.Zd&&!a.L("web_player_move_autonav_toggle")&&(a=new ZW(this.J,this),g.M(this,a));a=new YW(this.J,this);
g.M(this,a);this.J.publish("settingsMenuInitialized");p4a(this.settingsButton,this.Qe.Tp())}};
g.k.Vc=function(a){this.initialize();this.Qe.Vc(a);p4a(this.settingsButton,this.Qe.Tp())};
g.k.wh=function(a){this.Ib&&this.Qe.Tp()<=1&&this.hide();this.Qe.wh(a);p4a(this.settingsButton,this.Qe.Tp())};
g.k.od=function(a){this.initialize();this.Qe.Tp()>0&&g.vU.prototype.od.call(this,a)};
g.k.Nb=function(){this.BL?this.BL=!1:g.vU.prototype.Nb.call(this)};
g.k.show=function(){g.vU.prototype.show.call(this);g.Kv(this.J.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.vU.prototype.hide.call(this);g.Mv(this.J.getRootNode(),"ytp-settings-shown")};
g.k.Lf=function(a){this.J.logVisibility(this.element,a);this.J.publish("settingsMenuVisibilityChanged",a)};g.x(hX,g.W);hX.prototype.onClick=function(){if(Q4a(this)&&(this.J.toggleSubtitles(),this.J.logClick(this.element),!this.isEnabled())){var a=!1,b=g.DB(g.CB(),65);g.ER(this.J.U())&&b!=null&&(a=!b);a&&this.J.U().L("web_player_nitrate_promo_tooltip")&&this.J.publish("showpromotooltip",this.element)}};
hX.prototype.j=function(a){var b,c;(b=g.vT(this.J))==null||(c=b.Km())==null||c.od(a)};
hX.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName};
hX.prototype.Ua=function(){var a=Q4a(this),b=300;this.J.U().Z&&(b=480);if(this.J.U().K){this.updateValue("title",g.zT(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)(c=this.Fa("ytp-subtitles-button-icon"))==null||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.zT(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;(d=this.Fa("ytp-subtitles-button-icon"))==null||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.Yh();c=c&&this.J.qb().getPlayerSize().width>=b;g.NE(this,c);this.J.logVisibility(this.element,c);a?
this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.x(g.jX,g.W);g.k=g.jX.prototype;
g.k.Uc=function(){var a=this.api.qb().getPlayerSize().width,b=this.N;this.api.U().Z&&(b=400);b=a>=b&&(!lX(this)||!g.yF(this.api.getPlayerStateObject(),64));g.NE(this,b);g.Ov(this.element,"ytp-time-display-allow-autohide",b&&a<400);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(b,!1);this.B&&(c-=a.airingStart);kX(this)&&(c-=this.Fb.startTimeMs/1E3);c=g.IF(c);this.C!==c&&(this.updateValue("currenttime",c),this.C=c);b=kX(this)?g.IF((this.Fb.endTimeMs-
this.Fb.startTimeMs)/1E3):g.IF(this.api.getDuration(b,!1));this.D!==b&&(this.updateValue("duration",b),this.D=b)}a=a.isAtLiveHead;!lX(this)||this.K===a&&this.G===this.isPremiere||(this.K=a,this.G=this.isPremiere,this.Uc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Dd(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.xT(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Fb!==a;this.Fb=a;b&&iX(this)};
g.k.onLoopRangeChange=function(a){var b=this.Fb!==a;this.Fb=a;b&&(this.Uc(),iX(this))};
g.k.Sca=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"))&&c===2?this.api.getVideoData(1):b);this.Uc();iX(this)};
g.k.updateVideoData=function(a){this.CF=a.isLivePlayback&&!a.Cb;this.B=iT(a);this.isPremiere=a.isPremiere;g.Ov(this.element,"ytp-live",lX(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.ya=function(){this.j&&this.j();g.W.prototype.ya.call(this)};g.x(S4a,g.W);g.k=S4a.prototype;g.k.Zx=function(){var a=this.api.Lh();this.C!==a&&(this.C=a,R4a(this,this.api.getVolume(),this.api.isMuted()))};
g.k.LU=function(a){g.NE(this,a.width>=350)};
g.k.H4=function(a){if(!a.defaultPrevented){var b=a.keyCode,c=null;b===37?c=this.volume-5:b===39?c=this.volume+5:b===36?c=0:b===35&&(c=100);c!==null&&(c=g.ze(c,0,100),c===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),a.preventDefault())}};
g.k.F4=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(b<0?-10:10)):this.api.setVolume(this.volume+g.ze(b/10,-10,10));a.preventDefault()};
g.k.Aca=function(){mX(this,this.j,!0,this.B,this.api.Um());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.G4=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Rs(this.N).x;this.api.setVolume(g.ze((a-c/2)/(b-c),0,1)*100)};
g.k.zca=function(){mX(this,this.j,!1,this.B,this.api.Um());this.volume===0&&(this.api.mute(),this.api.setVolume(this.Y))};
g.k.onVolumeChange=function(a){R4a(this,a.volume,a.muted)};
g.k.nX=function(){mX(this,this.j,this.isDragging,this.B,this.api.Um())};
g.k.ya=function(){g.W.prototype.ya.call(this);g.Mv(this.K,"ytp-volume-slider-active")};g.x(nX,g.W);
nX.prototype.onVideoDataChange=function(){var a=this.api.U();this.kc();this.visible=!!this.api.getVideoData().videoId&&!g.jT(this.api.getVideoData(1));g.NE(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.Oc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Kv(this.element,"no-link"));
b=this.api.U();a=this.api.getVideoData();var c="";b.C||(b=g.AR(b),b.indexOf("www.")===0&&(b=b.substring(4)),c=g.kT(a)?"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 YouTube Music":b==="youtube.com"?"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 YouTube":g.aJ("\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0430\u00a0$WEBSITE",{WEBSITE:b}));this.updateValue("title",c)};
nX.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.JF(a),!1,!0,!0);if(g.nR(b)){var d={};g.nR(b)&&g.qT(this.api,"addEmbedsConversionTrackingParams",[d]);this.api.L("embeds_web_enable_referring_feature_deprecation")||g.JO(d,"emb_logo");c=g.to(c,d)}g.$T(c,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
nX.prototype.kc=function(){var a={I:"svg",W:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{I:"path",Jc:!0,S:"ytp-svg-fill",W:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]},
b=28666,c=this.api.getVideoData();this.api.fd()?a={I:"svg",W:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{I:"path",W:{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"}}]}:g.kT(c)&&(a={I:"svg",W:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{I:"path",W:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{I:"path",W:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z",
fill:"white"}},{I:"path",W:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{I:"path",W:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{I:"path",W:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z",
fill:"white"}},{I:"path",W:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{I:"path",W:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z",
fill:"white"}},{I:"path",W:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{I:"path",W:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z",
fill:"white"}},{I:"path",W:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z",
fill:"white"}},{I:"path",W:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{I:"path",W:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z",
fill:"white"}}]},b=216163);g.kT(c)?g.Kv(this.element,"ytp-youtube-music-button"):g.Mv(this.element,"ytp-youtube-music-button");a.W=Object.assign({},a.W,{"aria-hidden":"true"});this.updateValue("logoSvg",a);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,b,!0)};
nX.prototype.Mc=function(a){g.W.prototype.Mc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.x(U4a,g.NJ);g.k=U4a.prototype;g.k.Fg=function(){if(this.J.L("web_player_max_seekable_on_ended")||!g.yF(this.J.getPlayerStateObject(),2))this.progressBar.Uc(),this.Da.Uc()};
g.k.BB=function(){this.qU();this.Og.B?this.Fg():this.progressBar.gi()};
g.k.I4=function(){this.Fg();this.Z.start()};
g.k.qU=function(){var a;if(a=!this.J.U().B){a=this.progressBar;var b=a.N*2*g.DR(),c=a.C;a=(c.j-c.B)*1E3/a.api.getPlaybackRate()/b<300}a=a&&this.J.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;b=!a;this.Og.B||(a=b=!1);b?this.va||(this.va=this.T(this.J,"progresssync",this.Fg)):this.va&&(this.Oc(this.va),this.va=null);a?this.Z.isActive()||this.Z.start():this.Z.stop()};
g.k.kc=function(){var a=this.J.Lh(),b=this.J.qb().getPlayerSize(),c=W4a(this),d=Math.max(b.width-c*2,100);if(this.ib!==b.width||this.Ya!==a){this.ib=b.width;this.Ya=a;var e=X4a(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.l4a(this.progressBar,c,e,a);this.J.Te().MU=e}c=this.B;d=Math.min(570*(a?1.5:1),d);a=Math.min(413*(a?1.5:1),Math.round((b.height-Y4a(this))*.82));c.maxWidth=d;c.maxHeight=a;c.KC();this.qU();this.J.U().L("html5_player_dynamic_bottom_gradient")&&f3a(this.Xa,
b.height)};
g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.Oa.style.background=a.Jf?a.Rp:"";this.ra&&m3a(this.ra,a.showSeekingControls);this.Y&&m3a(this.Y,a.showSeekingControls)};
g.k.Jb=function(){return this.C.element};g.x(Z4a,rU);g.k=Z4a.prototype;g.k.lG=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.jb("innertubeCommand",this.onClickCommand),this.Uu())};
g.k.Uu=function(){this.enabled=!1;this.ra.hide()};
g.k.onVideoDataChange=function(a,b){a==="dataloaded"&&$4a(this);a=[];var c,d,e,f;if(b=(f=g.V((c=b.getWatchNextResponse())==null?void 0:(d=c.playerOverlays)==null?void 0:(e=d.playerOverlayRenderer)==null?void 0:e.suggestedActionsRenderer,Pob))==null?void 0:f.suggestedActions)for(c=g.v(b),d=c.next();!d.done;d=c.next())(d=g.V(d.value,Qob))&&g.V(d.trigger,Oob)&&a.push(d);if(a.length!==0){c=[];a=g.v(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=g.V(d.trigger,Oob))f=(f=d.title)?g.RE(f):"View Chapters",
b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,b!=null&&e!=null&&d.tapCommand&&(c.push(new g.UI(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.J.nf(c)}};
g.k.Ly=function(){return this.enabled};
g.k.Lf=function(){this.enabled?this.Sa.start():pU(this);this.Tl()};
g.k.ya=function(){$4a(this);rU.prototype.ya.call(this)};var n3={},oX=(n3.CHANNEL_NAME="ytp-title-channel-name",n3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",n3.LINK="ytp-title-link",n3.SESSIONLINK="yt-uix-sessionlink",n3.SUBTEXT="ytp-title-subtext",n3.TEXT="ytp-title-text",n3.TITLE="ytp-title",n3);g.x(pX,g.W);
pX.prototype.onClick=function(a){this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.JF(a),!1,!0);g.nR(b)&&(b={},g.qT(this.api,"addEmbedsConversionTrackingParams",[b]),this.api.L("embeds_web_enable_referring_feature_deprecation")||g.JO(b,"emb_title"),c=g.to(c,b));g.$T(c,this.api,a)};
pX.prototype.Ua=function(){var a=this.api.getVideoData(),b=this.api.U();this.updateValue("title",a.title);var c={I:"a",S:oX.CHANNEL_NAME,W:{href:"{{channelLink}}",target:"_blank"},xa:"{{channelName}}"};this.api.U().C&&(c={I:"span",S:oX.CHANNEL_NAME,xa:"{{channelName}}",W:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);a5a(this);this.api.getPresentingPlayerType()===2&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Ab&&c.profilePicture?(this.updateValue("channelLink",
c.Ab),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):a5a(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.Sk;g.Ov(this.link,oX.FULLERSCREEN_LINK,c);b.va||!a.videoId||c||g.jT(a)||b.C?this.j&&(this.updateValue("url",null),this.Oc(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.nR(b)?a.expandedTitle:
a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.x(g.qX,g.W);g.k=g.qX.prototype;g.k.setEnabled=function(a){if(this.type!=null)if(a)switch(this.type){case 3:case 2:c5a(this);this.K.show();break;default:this.K.show()}else this.K.hide();this.Y=a};
g.k.tM=function(a,b,c,d,e,f,h,l){if(!this.Oa||this.env.Z){this.type===3&&this.gi();this.type!==1&&(g.Iv(this.element,"ytp-tooltip ytp-bottom"),(i3a(this.api)||this.api.isInline())&&g.Kv(this.element,"ytp-rounded-tooltip"),this.type=1,this.Y&&this.K.show(),this.B&&this.B.dispose(),(this.B=this.api.vk())&&this.B.subscribe("l",this.X_,this));if(l){var m=g.Us(this.bg).height||this.Da;this.Sa.style.bottom=m+2+"px"}this.update({text:c,title:f!=null?f:"",eduText:l!=null?l:""});g.Ov(this.text,"ytp-tooltip-text-no-title",
this.type===1&&!f);this.api.isInline()&&g.Kv(this.text,"ytp-modern-tooltip-text");g.Ov(this.element,"ytp-text-detail",!!d);c=-1;this.B&&(c=lS(this.B,this.N*this.scale),this.env.L("web_l3_storyboard")&&this.B.levels.length===4&&(c=this.B.levels.length-1),c=GWa(this.B,c,b));e5a(this,c);if(h)switch(b=g.Us(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"}d5a(this,!!d,a,e)}};
g.k.sQ=function(){this.type===1&&this.gi()};
g.k.BH=function(a,b){if(this.type)if(this.type===3)this.gi();else return;b5a(this,a,3,b)};
g.k.Yh=function(){this.j&&!this.ra&&this.j.hasAttribute("title")&&(this.C=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.Y&&c5a(this))};
g.k.X_=function(a,b){a<=this.D&&this.D<=b&&(a=this.D,this.D=NaN,e5a(this,a))};
g.k.C$=function(){EWa(this.B,this.D,this.N*this.scale)};
g.k.gi=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);f5a(this);break;case 3:f5a(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.X_,this),this.B=null),this.api.removeEventListener("videoready",this.Ha),this.Ga.stop()}this.type=null;this.Y&&this.K.hide()};
g.k.Am=function(){if(this.j)for(var a=0;a<arguments.length;a++)g.Of(arguments[a],this.j)&&this.gi()};
g.k.ya=function(){this.type!=null&&this.gi();this.B&&this.B.dispose();g.W.prototype.ya.call(this)};g.x(h5a,g.W);g.k=h5a.prototype;g.k.oD=function(){this.visible=i5a(this);g.NE(this,this.visible);this.icon&&k5a(this,this.icon);this.J.logVisibility(this.element,this.visible&&this.Z)};
g.k.ue=function(){return this.J.getVideoData().videoId};
g.k.onClick=function(){this.J.logClick(this.element);var a=this.J.U(),b=this.ue();a.Da?g5a(this):j5a(this,b)};
g.k.onReset=function(){this.isRequestPending=this.j=!1;this.Ua(2);this.oD()};
g.k.Ua=function(a,b){var c=this.J.U();k5a(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.aJ("\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.aJ("\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u043a\u0430\u043a $USER_NAME",a),image:vVa(c)})):
this.update({title:"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435",image:null});this.J.Yh()};
g.k.Mc=function(a){g.W.prototype.Mc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.x(g.rX,g.PV);g.k=g.rX.prototype;
g.k.init=function(){var a=this;this.me=new g.SV(this.api);this.Pw=new aW(this.api);this.Ai=new g.W({I:"div",S:"ytp-chrome-top"});this.tooltip=new g.qX(this.api,this);this.channelAvatar=new t1a(this.api);this.title=new pX(this.api);this.Xg=new g.KE({I:"div",S:"ytp-chrome-top-buttons"});this.eh=new l1a(this.api,this.Ai.element);this.Ig=this.api.U().controlsType==="1"?new U4a(this.api,this,this.Og):null;this.contextMenu=new D1a(this.api,this.me);this.QE=new g.W({I:"div",W:{tabindex:"0"}});this.PE=new g.W({I:"div",
W:{tabindex:"0"}});var b=this.api.qb(),c=this.api.U(),d=this.api.getVideoData();this.Yr&&(g.Kv(this.api.getRootNode(),"ytp-embed"),g.Kv(this.api.getRootNode(),"ytp-embed-playlist"),this.vK&&(g.Kv(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.Kv(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.CO=60,this.DO=89);this.api.U().C&&g.Kv(this.api.getRootNode(),"ytp-embed-pfl");this.api.U().B&&(g.Kv(this.api.getRootNode(),"ytp-mobile"),this.api.U().Z&&g.Kv(this.api.getRootNode(),"ytp-embed-mobile"));
this.Gi=d&&d.getEmbeddedPlayerResponse();g.M(this,this.me);g.HT(this.api,this.me.element,4);g.M(this,this.Pw);g.HT(this.api,this.Pw.element,4);d=new g.W({I:"div",S:"ytp-gradient-top"});g.M(this,d);g.HT(this.api,d.element,1);this.BM=new g.rF(d,250,!0,100);g.M(this,this.BM);g.M(this,this.Ai);g.HT(this.api,this.Ai.element,1);this.AM=new g.rF(this.Ai,250,!0,100);g.M(this,this.AM);g.M(this,this.tooltip);g.HT(this.api,this.tooltip.element,4);var e=new s2a(this.api);g.M(this,e);g.HT(this.api,e.element,5);
e.subscribe("show",function(m){a.eA(e,m)});
this.PH.push(e);this.RB=new lW(this.api,e);g.M(this,this.RB);!this.Yr&&this.RB.Ka(this.Ai.element);g.M(this,this.channelAvatar);this.channelAvatar.Ka(this.Ai.element);g.M(this,this.title);this.title.Ka(this.Ai.element);this.Yr&&(d=new e3a(this.api),g.M(this,d),d.Ka(this.Ai.element));g.M(this,this.Xg);this.Xg.Ka(this.Ai.element);var f=new C2a(this.api,this);g.M(this,f);g.HT(this.api,f.element,5);f.subscribe("show",function(m){a.eA(f,m)});
this.PH.push(f);this.searchButton=new oW(this.api);g.M(this,this.searchButton);this.searchButton.Ka(this.Xg.element);this.pp=new h5a(this.api);g.M(this,this.pp);this.pp.Ka(this.Xg.element);this.shareButton=new g.pW(this.api,this,f);g.M(this,this.shareButton);this.shareButton.Ka(this.Xg.element);this.copyLinkButton=new $V(this.api,this);g.M(this,this.copyLinkButton);this.copyLinkButton.Ka(this.Xg.element);this.Yr&&this.RB.Ka(this.Xg.element);g.M(this,this.eh);this.eh.Ka(this.Xg.element);c.Ap&&(d=new tW(this.api),
g.M(this,d),g.HT(this.api,d.element,4));c.C||(d=new m1a(this.api,this.eh),g.M(this,d),d.Ka(this.Xg.element));this.xi=new o2a(this.api);g.M(this,this.xi);g.HT(this.api,this.xi.element,5);this.xi.subscribe("show",function(){a.eA(a.xi,a.xi.yk())});
this.PH.push(this.xi);this.overflowButton=new g.kW(this.api,this.xi);g.M(this,this.overflowButton);this.overflowButton.Ka(this.Xg.element);this.Ig&&g.M(this,this.Ig);c.controlsType==="3"&&(d=new nW(this.api),g.M(this,d),g.HT(this.api,d.element,9));g.M(this,this.contextMenu);this.contextMenu.subscribe("show",this.t3,this);d=new OF(this.api,new RV(this.api));g.M(this,d);g.HT(this.api,d.element,4);this.QE.listen("focus",this.M8,this);g.M(this,this.QE);this.PE.listen("focus",this.N8,this);g.M(this,this.PE);
var h;(this.Fx=c.Yk?null:new n2a(this.api,b,this.contextMenu,this.Og,this.me,this.Pw,function(){return a.Er()},(h=this.Ig)==null?void 0:h.progressBar))&&g.M(this,this.Fx);
this.Yr||(this.SX=new K1a(this.api),g.M(this,this.SX),g.HT(this.api,this.SX.element,4),this.Z1=new H2a(this.api),g.M(this,this.Z1),g.HT(this.api,this.Z1.element,4));this.B2=new Z4a(this.api);g.M(this,this.B2);g.HT(this.api,this.B2.element,4);if(this.Yr){var l=new b2a(this.api,this.api.U().Xa);g.M(this,l);g.HT(this.api,l.element,5);l.subscribe("show",function(m){a.eA(l,m)});
b=new f2a(this.api,l);g.M(this,b);g.HT(this.api,b.element,4)}this.gG.push(this.me.element);this.T(this.api,"fullscreentoggled",this.Zx);this.T(this.api,"offlineslatestatechange",function(){a.api.DF()&&FV(a.Og,128,!1)});
this.T(this.api,"cardstatechange",function(){a.Tq()});
this.T(this.api,"resize",this.Oaa);this.T(this.api,"videoplayerreset",this.onReset);this.T(this.api,"showpromotooltip",this.pba);g.PV.prototype.init.call(this)};
g.k.Te=function(){return this.tooltip};
g.k.YP=function(){return this.Ig};
g.k.eA=function(a,b){b?this.rE=a:this.rE=null;this.Tq()};
g.k.FE=function(a,b){if(b)this.Su.push(a);else for(b=this.Su.length;b>=0;b--)if(this.Su[b]===a){this.Su.splice(b,1);break}FV(this.Og,64,this.Su.length>0)};
g.k.yC=function(){this.api.il()&&this.api.Gp();return!!this.rE||l5a(this)||g.PV.prototype.yC.call(this)};
g.k.qC=ba(4);g.k.Ps=ba(8);g.k.Os=ba(11);
g.k.Tq=function(){var a=!this.yC(),b=a&&this.api.il()&&!g.yF(this.api.getPlayerStateObject(),2)&&!g.jT(this.api.getVideoData())&&!this.api.U().C&&!this.api.fd(),c=this.Yr&&g.ET(this.api)&&g.yF(this.api.getPlayerStateObject(),128);a||c?(this.AM.show(),this.BM.show()):(this.AM.hide(),this.BM.hide(),this.api.Am(this.Ai.element));b?this.eh.od():this.eh.Nb();this.Ig&&V4a(this.Ig,this.qS||!a);this.api.L("web_player_hide_overflow_button_if_empty_menu")&&m5a(this);g.PV.prototype.Tq.call(this)};
g.k.sy=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Us(a),h=d||this.Ig&&g.Of(this.Ig.Jb(),b),l=d=null;c!=null&&h||(d=g.Us(b),l=g.Ss(b,this.api.getRootNode()),c==null&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Ig,d=W4a(b),l=X4a(b),h=this.api.qb().getPlayerSize().height,c=g.ze(c,d,d+l-f.width),f=h-Y4a(b)-f.height):g.Of(this.Ai.element,b)?(b=this.api.qb().getPlayerSize().width,c=g.ze(c,12,b-f.width-12),f=this.Lh()?this.DO:this.CO,this.api.U().playerStyle==="gvn"&&(f+=
20),this.Yr&&(f-=this.Lh()?26:18)):(b=this.api.qb().getPlayerSize(),c=g.ze(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.BB=function(a){a&&(this.api.Am(this.Ai.element),this.Ig&&this.api.Am(this.Ig.Jb()));this.vK&&(g.Ov(this.contextMenu.element,"ytp-autohide",a),g.Ov(this.contextMenu.element,"ytp-autohide-active",!0));g.PV.prototype.BB.call(this,a)};
g.k.BR=function(){g.PV.prototype.BR.call(this);this.vK&&(g.Ov(this.contextMenu.element,"ytp-autohide-active",!1),this.vK&&(this.contextMenu.hide(),this.xi&&this.xi.hide()))};
g.k.ao=function(a,b){var c=this.api.qb().getPlayerSize();c=new g.Fs(0,0,c.width,c.height);if(a||this.Og.B&&!this.yC()){if(this.api.U().Bn||b)a=this.Lh()?this.DO:this.CO,c.top+=a,c.height-=a;this.Ig&&(c.height-=Y4a(this.Ig))}return c};
g.k.Zx=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.QE.element,b),b.parentElement.insertBefore(this.PE.element,b.nextSibling))):g.mE(Error("Player not in DOM.")):(b.setAttribute("aria-label",
"\u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c YouTube"),this.QE.detach(),this.PE.detach());this.kc();this.Uq()};
g.k.Lh=function(){var a=this.api.U();return this.api.isFullscreen()&&!a.Z||!1};
g.k.showControls=function(a){this.RO=!a;this.Tq()};
g.k.kc=function(){var a=this.Lh();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.Ov(this.contextMenu.element,"ytp-big-mode",a);this.Tq();this.api.L("web_player_hide_overflow_button_if_empty_menu")||m5a(this);this.Uq();var b=this.api.fd();b&&a?(a=(this.api.qb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Is(this.Ai.element,"padding-left",a+"px"),g.Is(this.Ai.element,"padding-right",a+"px")):b&&(g.Is(this.Ai.element,"padding-left",""),g.Is(this.Ai.element,"padding-right",""));g.PV.prototype.kc.call(this)};
g.k.JP=function(){if(l5a(this)&&!g.ET(this.api))return!1;var a=this.api.getVideoData();return!g.nR(this.api.U())||this.api.getPresentingPlayerType()===2||!this.Gi||((a=this.Gi||a.Gi)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.V(a.videoDetails,IXa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.PV.prototype.JP.call(this):!1};
g.k.Uq=function(){g.PV.prototype.Uq.call(this);this.api.logVisibility(this.title.element,!!this.Ao);this.RB&&this.RB.Mc(!!this.Ao);this.channelAvatar.Mc(!!this.Ao);this.overflowButton&&this.overflowButton.Mc(this.Tg()&&!!this.Ao);this.shareButton&&this.shareButton.Mc(!this.Tg()&&!!this.Ao);this.pp&&this.pp.Mc(!this.Tg()&&!!this.Ao);this.searchButton&&this.searchButton.Mc(!this.Tg()&&!!this.Ao);this.copyLinkButton&&this.copyLinkButton.Mc(!this.Tg()&&!!this.Ao);if(!this.Ao){this.api.Am(this.Ai.element);
for(var a=0;a<this.PH.length;a++){var b=this.PH[a];b.yk()&&b.Nb()}}};
g.k.Hc=function(a){this.Ig&&V4a(this.Ig,this.yC());this.Tq();g.PV.prototype.Hc.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){return this.Fx?this.Fx.handleGlobalKeyDown(a,b,c,d,e,f,h,l):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.Fx?this.Fx.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.Er=function(){if(this.contextMenu.Ib)return this.contextMenu.Nb(),!0;if(this.Su.length)return this.Su[this.Su.length-1].Nb(),!0;if(this.rE)return this.rE.Nb(),!0;this.Ig&&this.api.Am(this.Ig.Jb());this.Xg&&this.api.Am(this.Xg.element);return g.PV.prototype.Er.call(this)};
g.k.rT=function(a,b){this.jR=b;this.FE(a,b);this.t3()};
g.k.t3=function(){var a=this.jR||this.contextMenu.yk();this.lO!==a&&(this.lO=a,this.api.jb("onAutonavPauseRequest",this.lO))};
g.k.M8=function(){n5a(this,this.api.getRootNode(),!0).focus()};
g.k.N8=function(){n5a(this,this.api.getRootNode(),!1).focus()};
g.k.Km=function(){return this.Ig&&this.Ig.B};
g.k.Hv=function(){this.Og.Hv()};
g.k.rQ=function(){this.me.hide()};
g.k.zH=function(a){this.me.zH(!a.isOrWillBePlaying())};
g.k.dH=function(a,b,c,d){this.Pw.dH(a,b,c,d)};
g.k.cH=function(a,b){J1a(this.Pw,a,b)};
g.k.Oaa=function(){o5a(this,!0)};
g.k.onReset=function(){m5a(this)};
g.k.pba=function(a){o5a(this,!1,a)};
g.k.eY=function(){return this.contextMenu};
g.k.Cz=function(a){var b;if((b=this.Ig)!=null){for(var c=Number(a.element.getAttribute("data-priority"))||0,d=0,e=g.v(b.j.element.children),f=e.next();!(f.done||c<(Number(f.value.getAttribute("data-priority"))||0));f=e.next())d++;a.Ka(b.j.element,d)}};
g.k.Sw=function(){var a,b=(a=this.Ig)==null?void 0:a.progressBar;if(b){var c;((c=b.B)==null?0:c.isEnabled)&&b.Sw()}};g.x(g.sX,g.gV);g.sX.prototype.qn=function(){return!1};
g.sX.prototype.create=function(){var a=this.player.U(),b;g.QF(a)&&a.B||((b=a.getWebPlayerContextConfig())==null?0:b.embedsEnableEmc3ds)?this.chrome=new g.PV(this.player):this.chrome=new g.rX(this.player);g.M(this,this.chrome);this.chrome.init();this.player.Hg("ux")};
g.sX.prototype.Hi=function(){return this.chrome};var q5a=!1;g.x(uX,g.I);uX.prototype.C=function(a,b){if(b){b=b instanceof g.fP?b:vX(this,b);var c;((c=this.j.get(a))==null?void 0:hP(c.location))!==hP(b)&&this.j.set(a,new y5a(b,a))}else this.j.delete(a)};
uX.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=hP(b.location),r=a.B===xX(r);if(r){q.Ja(4);break}return g.z(q,w5a(a,a.B?2:0),5);case 5:if(c=q.B)a.C(0,c),FRa(c)&&a.C(1,jP(c));case 4:g.Ca(q,3);break;case 2:d=g.Da(q);g.nE(d);if(!a.B){q.Ja(3);break}a.B=!1;return g.z(q,a.load(),7);case 7:return q.return();case 3:if(!a.X.experiments.gb("html5_onesie_probe_ec_hosts")){q.Ja(0);break}g.Ba(q,9);e=a;f=e.C;h=3;return g.z(q,
w5a(a,1),11);case 11:return f.call(e,h,q.B),l=a,m=l.C,n=4,g.z(q,w5a(a,2),12);case 12:m.call(l,n,q.B);g.Ca(q,0);break;case 9:p=g.Da(q),g.nE(p),g.Aa(q)}})};
uX.prototype.N=function(){var a=this,b,c;return g.H(function(d){g.Ev(a.Z);b=g.oI(a.X.experiments,"html5_onesie_prewarm_max_lact_ms");if(CD()>=b)return d.return();(c=a.j.get(0))&&u5a(a,c);g.Aa(d)})};
var r5a={w4a:0,L7a:1,O5a:2,N7a:3,Zwa:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};var yX=[],fhb=!1;g.P_=Kd(function(){var a="";try{var b=g.Bf("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.x(zX,g.I);zX.prototype.K=function(){this.j!=null&&this.app.getVideoData()!==this.j&&tS(this.j)&&Lhb(this.app,this.j,void 0,void 0,this.B)};
zX.prototype.G=function(){if(this.j!=null&&this.app.getVideoData()!==this.j&&this.wb!=null&&this.C!=null&&this.D!=null&&tS(this.j)){var a=B5a(this.wb,this.C,this.D);a==null?Lhb(this.app,this.j,void 0,void 0,this.B):(this.wb.oa("sgap",a),this.wb.getVideoData().Y&&B0(this.wb,!1))}};
zX.prototype.N=function(a){var b=this.app.Wc();if(b){var c=this.app.getCurrentTime();Math.abs(c-a.end/1E3)>5&&b.oa("glrs",{cmt:c});b.seekTo(0,{seekSource:58});b.oa("glrre",{cmt:c})}};
zX.prototype.ya=function(){this.j=null;g.I.prototype.ya.call(this)};g.x(g.AX,yK);g.k=g.AX.prototype;g.k.isView=function(){return!0};
g.k.XS=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Ih(),c=iK(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.gx=function(){return lK(this.mediaElement.gx(),this.start,this.end)};
g.k.Ih=function(){return lK(this.mediaElement.Ih(),this.start,this.end)};
g.k.xA=function(){return lK(this.mediaElement.xA(),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.XS()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(a){}}return this.mediaElement.play()};
g.k.qc=function(){var a=yK.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.uI=function(){return this.mediaElement.uI()};
g.k.activate=function(a){this.mediaElement.activate(a)};
g.k.Nr=function(){return this.mediaElement.Nr()};
g.k.playVideo=function(){return this.mediaElement.playVideo()};
g.k.gP=function(){this.mediaElement.gP()};
g.k.cP=function(){this.mediaElement.cP()};
g.k.ew=function(){return this.mediaElement.ew()};
g.k.Jb=function(){return this.mediaElement.Jb()};
g.k.Ff=function(){return this.mediaElement.Ff()};
g.k.wI=function(a){this.mediaElement.wI(a)};
g.k.XL=function(){this.mediaElement.XL()};
g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.k.Xt=function(){return this.mediaElement.Xt()};
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.isSeeking=function(){return this.mediaElement.isSeeking()};
g.k.isEnded=function(){return this.mediaElement.isEnded()};
g.k.QJ=function(){return this.mediaElement.QJ()};
g.k.pC=function(a){this.mediaElement.pC(a)};
g.k.vI=function(){return this.mediaElement.vI()};
g.k.load=function(){this.mediaElement.load()};
g.k.pause=function(){this.mediaElement.pause()};
g.k.al=function(){return this.mediaElement.al()};
g.k.RJ=function(){return this.mediaElement.RJ()};
g.k.ih=function(){return this.mediaElement.ih()};
g.k.uf=function(){return this.mediaElement.uf()};
g.k.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.k.ji=function(){return this.mediaElement.ji()};
g.k.xv=function(){return this.mediaElement.xv()};
g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.k.au=function(){return this.mediaElement.au()};
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.dE=ba(33);g.k.KH=ba(35);g.k.LH=ba(37);g.k.Nz=ba(39);g.k.JE=function(){return this.mediaElement.JE()};
g.k.Bt=function(a){this.mediaElement.Bt(a)};
g.k.lF=function(a){return this.mediaElement.lF(a)};
g.k.IQ=function(){return this.mediaElement.IQ()};
g.k.stopVideo=function(){this.mediaElement.stopVideo()};
g.k.jP=function(a){this.mediaElement.jP(a)};
g.k.audioTracks=function(){return this.mediaElement.audioTracks()};
g.k.pT=function(a){this.mediaElement.pT(a)};g.x(E5a,g.I);g.k=E5a.prototype;g.k.getStatus=function(){return this.status};
g.k.Mn=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.v(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.Me()){f=A5a(this.policy,this.j,this.B,this.yn);h=F5a(this);c=h.h8;e=h.F_;d=h.zX;h=h.D_;if(!this.N){var l=this.B.Yf()*1E3,m=this.j.Yf();m=(d-c-m)*1E3;f&&f.msg==="in-the-past"&&(m=0);a=a.isAd();this.B.XG(l,
m,a);this.N=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Gg(b,f)):this.status.status===2?P5a(this):(a=this.j.Nr())&&vK(a)&&(!rK(a)&&g.UA()?this.Gg("mse_closed"):b.j&&$O(b.j)&&a.B&&!a.B.NJ()?this.Gg("encr_upgrade"):(b=this.j.Me(),b.isEnded()?this.Gg("elem_ended"):e<0?this.Gg("next_player_future"):(this.K=d,this.currentVideoDuration=d-c,this.C=YEa(a,c,d,!0),this.D=YEa(a,e,h,!1),a=this.B.getVideoData().clientPlaybackNonce,this.j.oa("gaplessPrep",{cpn:a}),L5a(this.j,this.C,!1,M5a(this)),this.j.setMediaElement(G5a(b,
c,d,!this.j.getVideoData().isAd())),CX(this,2),P5a(this))))}else this.Gg("no-elem")};
g.k.ez=function(a){var b=a===O5a(this).zT,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;hK(a.Ee(),d-.01)&&(CX(this,4),c.isActive=!1,c.dI=c.dI||c.isActive,(this.G===1?this.j:this.B).oa("sbh",{}),b.isActive=!0,b.dI=b.dI||b.isActive,this.G!==0&&(this.j.getVideoData().DX=!0));a=this.D.B;if(this.D.j.isActive&&a.isActive&&(CX(this,5),this.G!==0)){this.j.oa("sbs",{});if((a=this.B.kA())&&WJ(a)){var e;this.j.oa("sbs",{itag:a.itag,h:(e=a.video)==null?void 0:e.height})}var f;
if((f=this.B)!=null&&IS(f.videoData)&&f.videoData.L("html5_gapless_append_early")){var h;(h=f.Aa)!=null&&h.jf()}}}};
g.k.Z_=function(){this.yu()&&this.Gg("player-reload-after-handoff")};
g.k.Gg=function(a,b){b=b===void 0?{}:b;if(!this.Na()&&this.status.status!==6){var c=this.status.status>=4&&a!=="player-reload-after-handoff";this.status={status:Infinity,error:a};if(this.j&&this.B){var d=this.B.getVideoData().clientPlaybackNonce;this.j.Sd(new GJ("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.yn,msg:a})));B0(this.j,c)}this.Qq.reject(a);this.dispose()}};
g.k.yu=function(){return this.status.status>=4&&this.status.status<6};
g.k.ya=function(){N5a(this);this.j.unsubscribe("newelementrequired",this.Z_,this);if(this.C){var a=this.C.B;this.C.j.Id.unsubscribe("updateend",this.ez,this);a.Id.unsubscribe("updateend",this.ez,this)}g.I.prototype.ya.call(this)};
g.k.NU=function(a){g.AF(a,128)&&this.Gg("player-error-event")};g.x(R5a,g.I);g.k=R5a.prototype;g.k.clearQueue=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.D&&this.D.reject("Queue cleared");this.app.U().L("html5_gapless_fallback_on_qoe_restart_v2")||b&&this.B&&B0(this.B,!1);EX(this,a)};
g.k.Co=function(){return!this.j};
g.k.GF=function(a){return this.j===a};
g.k.yu=function(){var a;return((a=this.C)==null?void 0:a.yu())||!1};
g.k.ya=function(){EX(this);g.I.prototype.ya.call(this)};g.x($5a,g.GE);g.k=$5a.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return a?4:W5a()?3:b?2:c?1:d?5:e?7:f?8:h?9:l?10:0};
g.k.pn=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Lf())};
g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Lf())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Lf())};
g.k.sC=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Lf())};
g.k.setSqueezeback=function(a){this.C!==a&&(this.C=a,this.Lf())};
g.k.xC=function(a){this.D!==a&&(this.D=a,this.Lf())};
g.k.ji=function(){return this.j};
g.k.isFullscreen=function(){return this.fullscreen!==0};
g.k.oA=function(){return this.fullscreen};
g.k.isMinimized=function(){return this.B};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return W5a()};
g.k.xu=function(){return this.pictureInPicture};
g.k.QA=function(){return!1};
g.k.XA=function(){return this.C};
g.k.zk=function(){return this.D};
g.k.Lf=function(){this.publish("visibilitychange");var a=this.getVisibilityState(this.ji(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.xu(),this.QA(),this.XA(),this.zk());a!==this.K&&this.publish("visibilitystatechange");this.K=a};
g.k.ya=function(){Z5a(this.G);g.GE.prototype.ya.call(this)};g.x(JX,g.I);JX.prototype.Qk=function(){if(!this.zf.length)return[];var a=this.zf;this.zf=[];this.C=g.zb(a).info;return a};
JX.prototype.KG=function(){return this.zf};
JX.prototype.ya=function(){g.I.prototype.ya.call(this);this.j=null;this.zf.length=0;this.kb.length=0;this.C=null};g.x(LX,g.I);g.k=LX.prototype;g.k.Ir=function(){return Array.from(this.bd.keys())};
g.k.Rs=function(a){a=this.bd.get(a);var b=a.zf;a.Iz+=b.totalLength;a.zf=new nN;return b};
g.k.Sg=function(a){return this.bd.get(a).Sg};
g.k.wx=function(a){return this.bd.get(a).wx};
g.k.HB=function(a,b,c,d){this.bd.get(a)||g6a(this,a,b);b=this.bd.get(a);if(this.manifest){a=i6a(this,a,c);if(d)for(var e=g.v(a),f=e.next();!f.done;f=e.next()){f=f.value;var h=d;f.K=h;f.startTime+=h;f.Xe+=h;f.Pf+=h}h6a(this,c.aq,b,a)}else c.Bo?b.nZ=c.Ls:b.cG.push(c),b.jT.push(c)};
g.k.Zn=function(a){var b;return((b=this.bd.get(a))==null?void 0:b.kb)||[]};
g.k.yB=function(){for(var a=g.v(this.bd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.GS&&(b.Fg&&b.Fg(),b.GS=!1)};
g.k.uq=function(a,b){this.logger.debug(function(){return"[onMediaEnd] formatId: "+b});
var c=this.bd.get(b);if(MX){if(c&&!c.Sg){if(c.Dj.get(a))c.Dj.get(a).zx=!0;else{var d;((d=this.Ve)==null?0:d.Bc)&&c.Dj.set(a,{data:new nN,OI:0,zx:!0})}c.wx=!0}}else c&&!c.wx&&(c.wx=!0)};
g.k.Qk=function(a){if(MX){var b=this.bd.get(a);if(b)for(var c=g.v(b.Dj),d=c.next();!d.done;d=c.next()){var e=g.v(d.value);d=e.next().value;e=e.next().value;var f=b.EH.get(d);if(bQ(f[0])){if(!e.zx)continue;var h=e.data,l=0,m=[];f=g.v(f);for(var n=f.next();!n.done;n=f.next()){n=n.value;var p=n.B,q=pN(h,l,p);l+=p;m.push(new pQ(n,q))}b.Nx.push.apply(b.Nx,g.ra(m))}else if(e.data.totalLength>0||!f[0].range&&e.zx)h=void 0,l=f[0],m=e.OI,f=e.data,l.range||(h=e.zx),h=new pQ(KSa(l,l.Tb+m,f.totalLength,h),f),
e.OI+=h.info.B,b.Nx.push(h);b.Dj.get(d).data=new nN;e.zx&&b.Dj.delete(d)}a=this.bd.get(a);if(!a)return[];b=a.Nx;a.Nx=[];c=g.v(b);for(d=c.next();!d.done;d=c.next())a.Iz+=d.value.info.B;return b||[]}c=(b=this.bd.get(a))==null?void 0:b.fg;if(!c)return[];this.Nm(a,c);return c.Qk()};
g.k.Kl=function(a){if(MX)return OX(this,a);var b,c,d;return!!((c=(b=this.bd.get(a))==null?void 0:b.fg)==null?0:(d=c.KG())==null?0:d.length)||OX(this,a)};
g.k.Nm=function(a,b){for(;OX(this,a);){var c=this.Rs(a);var d=a;d=this.bd.get(d).Sg&&!e6a(this,d);KX(b,c,d&&f6a(this,a))}};
g.k.ya=function(){g.I.prototype.ya.call(this);for(var a=g.v(this.bd.keys()),b=a.next();!b.done;b=a.next())b6a(this,b.value);var c;if((c=this.Ve)==null?0:c.Zd)for(a=g.v(this.bd.values()),b=a.next();!b.done;b=a.next())b=b.value,b.Dj.clear(),b.EH.clear(),b.Nx.length=0,b.kb.length=0,b.jT.length=0,b.cG.length=0;this.bd.clear()};
var MX=!1;g.x(RX,g.I);g.k=RX.prototype;g.k.enqueue=function(a,b){if(a.D!==this)return!1;if(this.segments.length===0||(b===void 0?0:b))this.j=a;this.segments.push(a);return!0};
g.k.cf=function(){return this.pc||0};
g.k.Zh=function(){return this.C||0};
g.k.removeAll=function(){for(;this.segments.length;){var a=void 0;(a=this.segments.pop())==null||a.dispose()}this.B.clear()};
g.k.ya=function(){this.removeAll();g.I.prototype.ya.call(this)};
g.x(w6a,g.I);g.k=w6a.prototype;g.k.cf=function(){return this.pc};
g.k.Zh=function(){return this.B};
g.k.getType=function(){return this.type};
g.k.getVideoData=function(){return this.videoData};
g.k.wH=function(a){BXa(a);this.videoData=a};
g.k.ya=function(){x6a(this);g.I.prototype.ya.call(this)};g.x(g.WX,g.I);g.k=g.WX.prototype;g.k.hJ=function(a,b,c){return new g.UI(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
g.k.onCueRangeEnter=function(a){this.Oa.push(a);var b=a.getId();this.ea.oa("sdai",{oncueEnter:1,cpn:b,start:a.start,end:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Yf()||0).toFixed(3)});var c=b==="";this.ib.add(a.B);var d=this.D.get(b);if(c){var e;if(this.ea.getVideoData().Rm()&&((e=this.j)==null?0:e.JW)&&this.N){var f;a=((f=this.j)==null?void 0:f.Yg)||this.ea.getCurrentTime();var h,l;$X(this.ea,(h=this.j)==null?void 0:h.JW,this.YE(),a,this.ea.getCurrentTime(),!1,!0,(l=this.j)==
null?void 0:l.Aea,(0,g.iC)());this.rb&&(this.events.Oc(this.rb),this.rb=null);this.N="";this.Sa=!0;return}}else if(this.ea.oa("sdai",{enterAdCueRange:1}),this.ea.getVideoData().Rm()&&(d==null?0:d.VA))return;if(this.Sa&&!this.j)this.Sa=!1,!c&&d&&(c=this.ea.getCurrentTime(),aY(this,{ge:a,isAd:!0,fq:!0,Yg:c,adCpn:b},{isAd:!1,fq:!1,Yg:c}),this.Wb=d.cpn,this.api.publish("serverstitchedvideochange",d.qd,d.rr),a=ZX(this,"midab",d),this.ea.oa("sdai",a),this.Cm=1),this.ra=!1;else if(this.j){if(this.j.fq)this.ea.oa("sdai",
{a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Yg,cpn:b,currentTime:this.ea.getCurrentTime()}),d=this.ea.getCurrentTime(),a={ge:a,isAd:!c,fq:!0,Yg:d,adCpn:b},b={ge:this.j.ge,isAd:this.j.isAd,fq:!1,Yg:d,adCpn:this.j.adCpn},this.j.ge&&this.ib.delete(this.j.ge.B),aY(this,a,b);else{if(this.j.ge===a){this.ea.oa("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Yg,cpn:b,currentTime:this.ea.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});
this.j=void 0;return}if(this.j.adCpn===b){b&&this.ea.oa("sdai",{dchtsc:b});this.j=void 0;return}a={ge:a,isAd:!c,fq:!0,Yg:this.ea.getCurrentTime(),adCpn:b};aY(this,a,this.j)}this.j=void 0;this.ra=!1}else this.j={ge:a,isAd:!c,fq:!0,Yg:this.ea.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){var b=a.getId();this.ea.oa("sdai",{oncueExit:1,cpn:b,start:a.start,end:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Yf()||0).toFixed(3)});var c=b==="",d=this.D.get(b);if(this.ea.getVideoData().Rm()&&!c&&d){if(d.VA)return;d.VA=!0;this.K.clear();if(this.X.L("html5_lifa_no_rewatch_ad_sbc"))if(this.ea.uO()){var e=d.pc;this.ea.PS(e/1E3,(e+d.durationMs)/1E3)}else this.ea.oa("lifa",{remove:0})}if(this.ib.has(a.B))if(this.ib.delete(a.B),this.Oa=this.Oa.filter(function(f){return f!==
a}),this.Sa&&(this.ra=this.Sa=!1,this.ea.oa("sdai",{cref:1})),this.j){if(this.j.fq){if(this.j.ge===a){this.ea.oa("sdai",{same_cue_range_pair_exit:1,
acpn:this.j.adCpn,transitionTime:this.j.Yg,cpn:b,currentTime:this.ea.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.ea.oa("sdai",{dchtsc:b});this.j=void 0;return}b={ge:a,isAd:!c,fq:!1,Yg:this.ea.getCurrentTime(),adCpn:b};aY(this,this.j,b)}else this.ea.oa("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Yg,upcomingCpn:b,contentCpn:this.ea.getVideoData().clientPlaybackNonce,currentTime:this.ea.getCurrentTime()});
this.j=void 0;this.ra=!1}else this.j={ge:a,isAd:!c,fq:!1,Yg:this.ea.getCurrentTime(),adCpn:b};else this.ea.oa("sdai",{ignore_single_exit:1})};
g.k.YE=function(){return{cpn:this.ea.getVideoData().clientPlaybackNonce,durationMs:0,pc:0,playerType:1,Xd:0,videoData:this.ea.getVideoData(),errorCount:0}};
g.k.Cl=function(a){return this.Pn?!1:this.ea.getVideoData().Rm()?(a=bY(this,a*1E3),!!a&&!a.VA):!!bY(this,a*1E3)};
g.k.seekTo=function(a,b,c,d){a=a===void 0?0:a;b=b===void 0?{}:b;c=c===void 0?!1:c;d=d===void 0?null:d;if(this.ea.getVideoData().Rm()&&this.X.L("html5_lifa_ad_removed_ne")&&a<=this.Xa/1E3)this.ea.pauseVideo(),this.Xa=0,this.ra=!0,G_(this.ea),this.ea.seekTo(a),this.ea.playVideo();else if(this.ra=!0,c)z6a(this,a,b);else{c=this.api.Wc();var e=c===this.Ya?this.Kb:null;cY(this,!1);this.Ub=a;this.Qb=b;d!=null&&this.Lb.start(d);c&&(this.Kb=e||c.getPlayerState(),Ngb(c),this.Ya=c)}};
g.k.ya=function(){cY(this,!1);K6a(this);L6a(this);g.I.prototype.ya.call(this)};
g.k.xT=function(a){this.Sc=a;this.ea.oa("sdai",{swebm:a})};
g.k.Al=function(a,b,c,d){if(c&&b){var e;this.X.L("html5_ssdai_use_media_time")?e=eY(this,d):e=this.K.get(a);e&&(e.locations||(e.locations=new Map),d=Number(b.split(";")[0]),c=new g.fP(c),this.Wa&&this.ea.oa("sdai",{hdlredir:1,itag:b,seg:a,hostport:hP(c)}),e.locations.set(d,c))}};
g.k.bK=function(a,b,c,d,e,f){var h=d===3;e=N6a(this,a,b,d,c,f);if(!e)return gY(this,b,h),e=g.M6a(this,b)?"undec":"ncp",this.ea.oa("sdai",{gvprp:e,mt:a,seg:b,tt:d,itag:c,ce:f}),null;h||this.K.set(b,e);a=e.wm;var l;d=((l=fY(this,b-1,d))==null?void 0:l.Ot)||"";d===""&&this.ea.oa("sdai",{eds:1});l=bR(e.ssdaiAdsConfig||"")||void 0;c=this.ea.getVideoData();var m;f=((m=c.B)==null?void 0:m.containerType)||0;m=c.KD[f];b=e.Ny&&b>=e.Ny?e.Ny:void 0;return{hn:{AI:a?R6a(this,a):[],NW:l,Ot:d,j2:b,z3:ef(m.split(";")[0]),
A3:m.split(";")[1]||""}}};
g.k.XP=function(a){a:{if(!this.Pn){var b=eY(this,a);if(!(this.ea.getVideoData().Rm()&&(b==null?0:b.VA)))break a}b=void 0}if(!b)return this.ea.oa("sdai",{gvprp:"ncp",mt:a}),null;a=b.wm;b=bR(b.ssdaiAdsConfig||"")||void 0;var c=this.ea.getVideoData(),d,e=((d=c.B)==null?void 0:d.containerType)||0;d=c.KD[e];return{AI:a?R6a(this,a):[],NW:b,z3:ef(d.split(";")[0]),A3:d.split(";")[1]||""}};
g.k.lA=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]);e=d===3;a=N6a(this,a,b,d,c,f);this.Wa&&this.ea.oa("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return gY(this,b,e),null;a.locations||(a.locations=new Map);if(!a.locations.has(h)){var l,m;f=(l=a.videoData.getPlayerResponse())==null?void 0:(m=l.streamingData)==null?void 0:m.adaptiveFormats;if(!f)return this.ea.oa("sdai",{gdu:"noadpfmts",seg:b,itag:h}),gY(this,b,e),null;l=f.find(function(u){return u.itag===h});
if(!l||!l.url){var n=a.videoData.videoId;a=[];d=g.v(f);for(var p=d.next();!p.done;p=d.next())a.push(p.value.itag);this.ea.oa("sdai",{gdu:"nofmt",seg:b,vid:n,itag:h,fullitag:c,itags:a.join(",")});gY(this,b,e);return null}a.locations.set(h,new g.fP(l.url,!0))}l=a.locations.get(h);if(!l)return this.ea.oa("sdai",{gdu:"nourl",seg:b,itag:h}),gY(this,b,e),null;l=new SP(l);this.Sc&&(l.get("dvc")?this.ea.oa("sdai",{dvc:l.get("dvc")||""}):l.set("dvc","webm"));var q;(m=(q=fY(this,b-1,d))==null?void 0:q.Ot)&&
l.set("daistate",m);a.Ny&&b>=a.Ny&&l.set("skipsq",""+a.Ny);(m=this.ea.getVideoData().clientPlaybackNonce)&&l.set("cpn",m);q=[];a.wm&&(q=R6a(this,a.wm),q.length>0&&l.set("acpns",q.join(",")));e||this.K.set(b,a);e=null;e=l.get("aids");var r;if((((p=e)==null?void 0:(r=p.split(","))==null?void 0:r.length)||0)!==q.length)if(a.wm){var t;this.ea.oa("sdai",{acpns_aids_nm:1,ids:T6a(this,a.wm).join("_"),acpns:q.join("_"),aids:(t=e)==null?void 0:t.replace(/,/g,"_"),cpn:m,trackType:d})}else this.ea.oa("sdai",
{acpns_aids_nm:"noAdBreakId",cpn:m});d=l.Ge();(d==null?void 0:d.length)>2048&&this.ea.oa("sdai",{urltoolong:1,sq:b,itag:h,len:d.length});this.Wa&&(d&&(r=a.cpn,p=a.wm,V6a(this,r,p),p&&!this.le.has(p)&&(r=S6a(this,r,p),t=U6a(this,p),this.ea.oa("sdai",{iofa:r}),this.ea.oa("sdai",{noawnzd:t-r}),this.ea.oa("sdai",{acpns:q.join("."),aids:(n=e)==null?void 0:n.replace(/,/g,".")}),this.le.add(p))),this.ea.oa("sdai",{gdu:"v",seg:b,itag:c,ast:a.pc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));
return d};
g.k.oH=function(a,b,c){var d=dY(this,a,c);return(d=d?(d.pc+d.durationMs)/1E3:0)&&b>d?(this.yv(a,c,!0),this.ea.seekTo(d),!0):!1};
g.k.yv=function(a,b,c){c=c===void 0?!1:c;if(a=dY(this,a,b)){var d=void 0,e=a.wm;if(e){this.ea.oa("sdai",{skipadonsq:b,sts:c,abid:e,acpn:a.cpn,avid:a.videoData.videoId});c=this.Y.get(e);if(!c)return;c=g.v(c);for(e=c.next();!e.done;e=c.next())e=e.value,e.Ny=b,e.pc>a.pc&&(d=e)}this.N=a.cpn;O6a(this);b=this.ea.getCurrentTime();G6a(this,a,d,b,b,!1,!0)}};
g.k.aT=function(){for(var a=g.v(this.G),b=a.next();!b.done;b=a.next())b.value.Ny=NaN;O6a(this);this.ea.oa("sdai",{rsac:"resetSkipAd",sac:this.N});this.N=""};
g.k.UH=ba(46);
g.k.eS=function(a,b,c,d,e,f,h,l,m){d.length>0&&this.ea.oa("sdai",{onssinfo:1,sq:a,start:b.toFixed(3),cpns:d.join(","),ds:e.join(","),isVideo:h?1:0});m&&(h?this.eb.set(a,{Ot:m,Az:l}):this.Ga.set(a,{Ot:m,Az:l}));if(h){if(d.length&&e.length)for(this.N&&this.N===d[0]&&this.ea.oa("sdai",{skipfail:1,sq:a,acpn:this.N}),a=b+this.fu(),h=0;h<d.length;h++)if(m=d[h],l=a,a=l+e[h],m=this.D.get(m))l-=f[h],m.rr=m.rr!=null?Math.min(m.rr,l):l;if(d.length&&e.length)for(b=(b+this.fu())*1E3,c=0;c<d.length;c++)if(a=d[c],
h=e[c]*1E3,a===this.ea.getVideoData().clientPlaybackNonce)Q6a(this,b,b+h,!1),b+=h;else{this.Ed.has(a)||(this.ea.oa("sdai",{adCpnFromEmsg:1}),this.Ed.add(a));l=0;c<f.length&&(l=f[c]*1E3);m=this.B.get(a);var n=!1;m?(m.start=b-l,m.end=b+h,this.ea.Fh.sync()):(m=this.hJ(b-l,b+h,a),this.B.set(a,m),this.ea.oa("sdai",{newAdCR:1,cpn:a,startTime:m.start,endTime:m.end}),n=!0);b=m.end;Q6a(this,m.start,m.end,!0);if(n)for(this.ea.addCueRange(m),a=this.ea.KE("serverstitchedcuerange",36E5),a=g.v(a),h=a.next();!h.done;h=
a.next())this.B.delete(h.value.getId())}else c!==5&&c!==4||Q6a(this,(b+this.fu())*1E3,(b+this.fu())*1E3+5E3,!1)}};
g.k.ZE=ba(48);g.k.fu=function(){return this.ea.fu()};
g.k.Gl=function(a){this.ea.oa("timelineerror",{e:a})};
g.k.pF=function(a){this.Da&&this.va&&this.Ha.push(this.va);a&&this.va&&this.Cc.push(this.va);this.va=null;this.ea.pF(a)};
g.k.dK=function(a){if(this.Pn||a.identifier&&this.Be.has(a.identifier))this.Wa&&this.ea.oa("sdai",{startnoad:a.identifier}),YX(this);else if(Ys(this.Ha,function(c){return c.identifier===a.identifier}))this.ea.oa("sdai",{timedoutcp:1}),this.Z.start(0);
else if(Ys(this.Cc,function(c){return c.identifier===a.identifier}))this.ea.oa("sdai",{fetchedcp:1}),YX(this);
else if(this.Z.isActive()){var b;this.ea.oa("sdai",{racingcp:((b=this.va)==null?void 0:b.identifier)+"_"+a.identifier})}else this.Zc=(new Date).getTime()/1E3,this.Wa&&this.ea.oa("sdai",{adf:1}),(b=5E3,a.event==="predictStart")&&(b-=a.j),this.Ab=Math.max(b,15E3),this.Da=!1,this.Z.start(this.Ab),this.va=a,this.Ga.clear(),this.eb.clear(),this.La.clear(),this.Cb=[]};
g.k.yE=function(a,b,c){c=c||{reason:"disablessdai"};if(a&&b){if(!dY(this,a,b))return!1;c.sq=b}if(this.Pn)return!1;this.Pn=!0;this.Cm>0&&(this.Cm=0,this.Wb="",this.api.publish("serverstitchedvideochange"));a=this.ea;a.videoData.AU=!0;a.Sd(new GJ("qoe.restart",c));G_(a,!0);return!0};
g.k.kx=function(){this.ea.oa("sdai",{rstdaist:1});this.Ga.clear();this.eb.clear();this.La.clear()};
g.k.Yu=function(a){this.Be.add(a);var b;((b=this.va)==null?void 0:b.identifier)===a&&YX(this)};
g.k.BP=function(){return this.Cm};
g.k.xl=function(){return this.Wb};
g.k.Vu=function(a){var b=BV(this.api.Bb());return b?b.Vu(a):!1};
g.k.fP=function(a){return this.Pn?!1:!!eY(this,a)};
g.k.KT=function(a){var b=this;this.ea.pauseVideo();var c=this.ea.getCurrentTime(),d=this.D.get(this.Wb),e=this.B.get(this.Wb);if(d){this.N=this.Wb;this.ra=!1;d.VA=!0;var f=this.ea.getCurrentTime();this.j={ge:e,isAd:!0,fq:!1,Yg:f,adCpn:this.Wb,JW:d,Aea:a};if(e==null?0:e.start)this.Xa=f*1E3-e.start;this.K.clear();G_(this.ea);this.Wb=this.YE().cpn;this.api.publish("serverstitchedvideochange");this.ea.seekTo(c);this.ea.playVideo();this.rb||(this.rb=this.events.T(this.api,"progresssync",function(){var h=
d.rr?d.rr*1E3:d.pc,l=b.B.get(d.cpn);l&&b.ea.removeCueRange(l);b.B.delete(d.cpn);b.D.delete(d.cpn);l=b.G.indexOf(d);l>=0&&b.G.splice(l,1);l=[];for(var m=g.v(b.C),n=m.next();!n.done;n=m.next())n=n.value,n.end<=h?b.ea.removeCueRange(n):l.push(n);b.C=l;P6a(b,0,h+d.durationMs)}));
return!0}this.ea.oa("sdai",{skipFail:c});return!1};
var E6a=0;g.x(Y6a,g.I);g.k=Y6a.prototype;
g.k.bO=function(a,b){b=b===void 0?"":b;if(this.XT===b)return!0;var c=!1,d=this.timeline.j;if(!d||!d.getVideoData())return this.api.oa("ssap",{htsm:d?0:1}),!1;if(this.api.L("html5_ssap_clear_timeline_before_update")){var e=this.timeline,f;(f=e.j)==null||x6a(f);e.B.clear()}e=[];f=d.getVideoData();var h=SX(d),l=new Map;d=[];var m=[],n=0,p=0,q=0,r=[];a=g.v(a);for(var t=a.next();!t.done;t=a.next()){var u=t.value,w=u.clipId;if(w){if(u.Xq){q=u.Xq.a_||0;var A=u.Xq.b_||1;t=Number(((u.Xq.N0||0)/(u.Xq.O0||1)*
1E3).toFixed(0));var C=Number((q/A*1E3).toFixed(0));q=A=t+C}else t=q,C=0,A=t,this.DH.has(w)||this.Ek.add(w);var F=void 0,G=(F=l.get(w))!=null?F:0;F=!1;if(this.XT)if(this.api.L("html5_ssap_clear_timeline_before_update")){var K=this.gk.get(w);K&&(K.start=t,K.end=A,F=!0)}else{var N=w;K=t;var R=A,da=UX(this.timeline,N);if(da!=null&&da.length){G<da.length&&(da[G].pc=K,da[G].B=R);if(N=this.gk.get(N))N.start=K,N.end=R;K=!0}else K=!1;if(K){l.set(w,G+1);c=!0;continue}}r.push(w);!F&&u.Xq&&(r=this.hJ(t,A,r.join(",")),
this.gk.set(w,r),d.push(r),r=[]);K=F=void 0;if(((F=u.Xq)==null?void 0:F.K3)===((K=f)==null?void 0:K.videoId)){u=void 0;w!==((u=f)==null?void 0:u.clientPlaybackNonce)&&(u=void 0,this.api.oa("ssap",{cnm:1,cid:w,cpn:(u=f)==null?void 0:u.clientPlaybackNonce}));if(this.api.L("html5_ssap_clear_timeline_before_update"))f&&(f.Vf=t),w=VX(this.timeline,1,t,C,f),e.push(w),t=TX(this.timeline,t,A,[w]),c=c||t;else if(u=[],f&&(f.Vf=t,F=void 0,u=(F=UX(this.timeline,w))!=null?F:[]),!this.XT&&u.length&&G===0){c=u[0];
c.pc=t;c.B=A;u=void 0;C=(u=this.timeline.j)==null?void 0:u.j;F=void 0;if((u=(F=C)==null?void 0:F.get(0))&&C)for(F=0;F<u.length;F++)if(K=u[F],K.cf()!==K.Zh()){K.pc=t;K.C=A;u.splice(F,1);C.has(t)?C.get(t).push(K):C.set(t,[K]);break}e.push(c);l.set(w,G+1);c=!0}else w=VX(this.timeline,1,t,C,f),e.push(w),t=TX(this.timeline,t,A,[w]),c=c||t;m.length&&(m=Z6a(this,n||0,p,m),c=c||m);p=n=A;m=[]}else F=this.Np.get(w),K=void 0,G=(K=F)!=null?K:new g.sS(this.api.U(),{cpn:w}),G.LF=!0,this.Ek.has(w)&&this.Np.set(w,
G),n=Math.min(t,n),p=Math.max(A,p),this.api.oa("ssap",{e:t,d:C,c:w,p:F?1:0}),G.Vf=t,A=void 0,t=VX(this.timeline,2,t,C,G,(A=u.wR)==null?void 0:A.KK),m.push(t),this.BT&&u.Xq&&!this.bY&&(this.api.oa("ssap",{reloada:w}),this.Tw=w)}else this.api.oa("ssap",{cm:1})}m.length&&(f=Z6a(this,n||0,p,m),c=c||f);h&&e.length&&(v6a(this.timeline,h,e),this.api.L("html5_ssap_clear_timeline_before_update")&&(e=e[e.length-1].Zh(),(f=this.timeline.j)!=null&&(f.B=e)));d.length&&this.ea.Bz(d);if(c){this.XT=b;d=this.ea.wl();
b=[];d=g.v(d);for(e=d.next();!e.done;e=d.next()){e=e.value;if(e.C){f=iY(this,e.C);if(f===e.Jl)continue;e.start=e.start-e.Jl+f;e.end=e.end-e.Jl+f;e.Jl=f;b.push(e)}e=this.ea.Fh;b.length<=0||e.Na()||(e=e.j,e.array.sort(e.j))}this.api.oa("ssap",{tu:jY(this)});b=BV(this.api.Bb());this.api.oa("ssap",{am:b?1:0})}else this.api.oa("ssap",{tnu:1});return!0};
g.k.addPlayerResponseForAssociation=function(a){var b=new g.sS(this.api.U(),a.playerVars);b.playerResponseCpn?b.clientPlaybackNonce=b.playerResponseCpn:this.api.oa("ssap",{eim:this.ea.getVideoData().clientPlaybackNonce});b.LF=!0;if(a=a.jJ)b.jJ=a,b.clientPlaybackNonce=a.cpn;a=b.clientPlaybackNonce;this.api.oa("ssap",{aprfa:a+"_"+b.videoId});if(a){this.Np.set(a,b);var c=UX(this.timeline,a),d=!1;if(c==null?0:c.length){c=g.v(c);for(var e=c.next();!e.done;e=c.next())e=e.value,b.Vf=e.cf(),e.wH(b),e.C&&
(d=!0)}else d=!b.videoId;if(!d){if(!afb(this.ea.uc(b.videoId))){var f;this.api.oa("ssap",{nlc:a,nlcc:(f=this.timeline.j)==null?void 0:SX(f)})}this.ea.uA().gJ(a,b,2)}}};
g.k.tG=function(){this.MQ=!0};
g.k.finishSegmentByCpn=function(a,b,c,d){c=c===void 0?3:c;this.BT&&this.Tw&&a===this.Tw&&(this.api.oa("ssap",{reloadp:this.Tw}),G_(this.ea),this.Tw="",this.bY=!0);if(this.Wb===b)return[];this.MQ&&(c=5,this.MQ=!1);this.api.U().yc()&&this.api.oa("ssap",{fsbc:a+";"+b,fsbcr:c,fsbct:this.api.getCurrentTime().toFixed()});this.Oy=b;var e=!1;if(this.Ek.has(a)&&(e=W6a(this,c),!e))return[a];var f=UX(this.timeline,b);if(f){f.sort(function(m,n){return m.cf()-n.cf()});
var h=g.v(f);for(f=h.next();!f.done;f=h.next()){f=f.value;var l=this.ea.getCurrentTime()*1E3;if(f.cf()>=l){this.QH.set(a,c);p7a(this,a,b);this.EM.set(a,(0,g.iC)());if(c=this.gk.get(b))for(c=c.getId().split(","),c=g.v(c),h=c.next();!h.done;h=c.next())h=h.value,h!==b&&this.Ek.has(h)&&(this.Ek.delete(h),this.DH.add(h));d&&G_(this.ea);k7a(this);b=f.cf()/1E3;d=void 0;f=(d=g.oI(this.api.U().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?d:0;this.ea.seekTo(b+f/1E3);e&&this.api.playVideo(1);return[a]}}}return[]};
g.k.LP=function(){var a=this.timeline.j;if(!a)return 0;var b=a.Zh();a=g.v(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.v(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Zh()>b&&(b=d.Zh())}return b/1E3};
g.k.pd=function(){var a=this.ea.getCurrentTime()*1E3;var b=hY(this,a);if(!b){var c=UX(this.timeline,this.Wb);if(c){c=g.v(c);for(var d=c.next();!d.done;d=c.next())d=d.value,d.cf()>a&&(b=d)}}return b&&b.getType()===1?b.cf()/1E3:0};
g.k.getVideoData=function(a){if(a===2&&!this.Cl()){if(this.GK&&this.Np.has(this.GK))return this.Np.get(this.GK);this.api.oa("ssap",{lpanf:""+this.ea.getVideoData().clientPlaybackNonce});return null}return f7a(this)};
g.k.Cl=function(){var a=UX(this.timeline,this.Wb);return(a==null?0:a.length)?a[0].getType()===2:!1};
g.k.SA=function(){var a=UX(this.timeline,this.Wb);return(a==null?0:a.length)?a[0].C:!1};
g.k.seekTo=function(a,b){b=b===void 0?{}:b;var c=d7a(this,this.ea.getCurrentTime());this.ea.seekTo(a+c/1E3,b)};
g.k.hJ=function(a,b,c){return new g.UI(a,b,{id:c,namespace:"ssap",priority:9})};
g.k.onCueRangeEnter=function(a){if(!this.IL.has(a.getId())){this.api.oa("ssap",{oce:1,cpn:a.getId(),st:a.start,et:a.end,ct:(this.ea.getCurrentTime()||0).toFixed(3),cmt:(this.ea.Yf()||0).toFixed(3)});for(var b=a.getId().split(","),c=0;c<b.length&&this.Oy&&b[c]!==this.Oy;){var d=b[c];this.Ek.has(d)&&(this.Ek.delete(d),this.DH.add(d));c++}if(b.length>c+1)for(d=c+1;d<b.length;d++)this.LG.push(b[d]);b=b[c];this.Ek.has(b)&&g7a(this,b);this.DH.has(b)||i7a(this,b);b=g.v(this.gk.values());for(c=b.next();!c.done;c=
b.next())c=c.value,c.start<=a.start&&!this.IL.has(a.getId())&&this.IL.add(c.getId())}};
g.k.BP=function(){return this.Cm};
g.k.xl=function(){return this.Wb};
g.k.handleError=function(a,b){b=b===void 0?0:b;if(a!=="fmt.decode"&&a!=="fmt.unplayable"||!this.Cl()||this.KZ===this.Wb)return!1;this.ea.oa("ssap",{skiperr:a,acpn:this.Wb});this.KZ=this.Wb;var c=this.ea.getVideoData().clientPlaybackNonce,d=3;this.api.L("html5_ssap_support_more_transition_reasons")&&(d=b===1||b===2?7:6);this.finishSegmentByCpn(this.Wb,c,d,a);return!0};
g.k.ya=function(){this.api.U().yc()&&this.api.oa("ssap",{di:""+this.Wb,dic:""+this.ea.getVideoData().clientPlaybackNonce});this.Np.clear();this.Ek.clear();this.IL.clear();this.QH.clear();this.EM.clear();this.DH.clear();this.LG=[];X6a(this);this.Oy="";g.uB(this.events);g.I.prototype.ya.call(this)};g.x(s7a,g.I);g.k=s7a.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.Wc()){var b=this.K.get(a);b?y7a(this,b.target,b.yn,a):this.Sd("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.B.find(function(e){return e.Qt.ge===a})){var c=b.Qt,d=c.target;
c=c.yn;d?y7a(this,d,c,a):x7a(this,b.Xd,c,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.N;sY(this);if(a){if(!rY(this,a)){var b=this.api.Wc();this.Sd("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:b==null?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.Wc().addCueRange(a.Qt.ge)}};
g.k.seekTo=function(a,b,c,d){a=a===void 0?0:a;b=b===void 0?{}:b;d=d===void 0?null:d;if(c===void 0?0:c)r7a(this,a,b);else{c=this.api.Wc();var e=c===this.D?this.G:null;tY(this,!1);this.ra=a;this.Y=b;d!=null&&this.Z.start(d);c&&(this.G=e||c.getPlayerState(),Ngb(c),this.D=c)}};
g.k.Gk=function(a){g.AF(a,128)&&D7a(this)};
g.k.isManifestless=function(){return CS(this.j.getVideoData())};
g.k.ya=function(){tY(this,!1);F7a(this);g.I.prototype.ya.call(this)};
g.k.Sd=function(a,b){this.j.Sd(new GJ(a,b))};
var t7a=0;var G7a="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_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.x(wY,g.I);g.k=wY.prototype;g.k.get=function(a){uY(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);uY(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.iC)()+c);for(this.data.push(a);this.data.length>this.C;)(c=this.data.shift())&&xY(this,c,!0);vY(this)};
g.k.remove=function(a,b){b=b===void 0?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(xY(this,c,b),g.Ib(this.data,function(d){return d.key===a}),vY(this))};
g.k.removeAll=function(a){if(a=a===void 0?!1:a)for(var b=g.v(this.data),c=b.next();!c.done;c=b.next())xY(this,c.value,a);this.data=[];vY(this)};
g.k.ya=function(){var a=this;g.I.prototype.ya.call(this);this.data.forEach(function(b){xY(a,b,!0)});
this.data=[]};g.x(yY,g.I);yY.prototype.KJ=function(a){if(a)return this.B.get(a)};
yY.prototype.ya=function(){this.j.removeAll();this.B.removeAll();g.I.prototype.ya.call(this)};g.sqb=Kd(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var o3;o3={};g.zY=(o3.STOP_EVENT_PROPAGATION="html5-stop-propagation",o3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",o3.IV_DRAWER_OPEN="ytp-iv-drawer-open",o3.MAIN_VIDEO="html5-main-video",o3.VIDEO_CONTAINER="html5-video-container",o3.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",o3.HOUSE_BRAND="house-brand",o3);g.x(N7a,g.W);g.k=N7a.prototype;g.k.Bt=function(){g.Lv(this.element,g.Ja.apply(0,arguments))};
g.k.Oj=function(){this.Ec&&(this.Ec.removeEventListener("focus",this.LR),g.If(this.Ec),this.Ec=null)};
g.k.aP=function(){this.Na();var a=this.app.U();a.Fn||this.Bt("tag-pool-enabled");a.K&&this.Bt(g.zY.HOUSE_BRAND);a.playerStyle==="gvn"&&(this.Bt("ytp-gvn"),this.element.style.backgroundColor="transparent");a.Bc&&(this.PO=g.qD("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
g.k.jM=function(a){g.rR(this.app.U());this.oK=!a;AY(this)};
g.k.resize=function(){if(this.Ec){var a=this.ai();if(!a.isEmpty()){var b=!g.Ne(a,this.UB.getSize()),c=S7a(this);b&&(this.UB.width=a.width,this.UB.height=a.height);a=this.app.U();(c||b||a.Bc)&&this.app.Va.publish("resize",this.getPlayerSize())}}};
g.k.mu=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.Ec){var b=this.app.U();yC&&(this.Ec.setAttribute("x-webkit-airplay","allow"),a.title?this.Ec.setAttribute("title",a.title):this.Ec.removeAttribute("title"));this.Ec.setAttribute("controlslist","nodownload");b.Vq&&a.videoId&&(this.Ec.poster=a.kh("default.jpg"))}b=g.RS(a,"yt:bgcolor");this.Wz.style.backgroundColor=b?b:"";this.lR=ura(g.RS(a,"yt:stretch"));this.mR=ura(g.RS(a,"yt:crop"),!0);g.Ov(this.element,"ytp-dni",a.Jf);this.resize()};
g.k.setGlobalCrop=function(a){this.cQ=ura(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.jX=a;this.resize()};
g.k.pn=function(){};
g.k.getPlayerSize=function(){var a=this.app.U(),b=this.app.Va.isFullscreen(),c=a.externalFullscreen&&g.nR(a);if(b&&TA()&&!c)return new g.Me(window.outerWidth,window.outerHeight);c=!isNaN(this.OE.width)&&!isNaN(this.OE.height);var d=this.app.U().L("kevlar_player_enable_squeezeback_fullscreen_sizing");if(b&&!c&&d)return new g.Me(this.element.clientWidth,this.element.clientHeight);if(b||a.Cp){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.ZF&&this.ZF.media===
a||(this.ZF=window.matchMedia(a));var e=this.ZF&&this.ZF.matches}if(e)return new g.Me(window.innerWidth,window.innerHeight)}else if(c)return this.OE.clone();return new g.Me(this.element.clientWidth,this.element.clientHeight)};
g.k.ai=function(){var a=this.app.U().L("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.oI(this.app.U().experiments,"player_underlay_min_player_width");return a&&this.DS&&b.width>c?new g.Me(b.width*g.oI(this.app.U().experiments,"player_underlay_video_width_fraction"),b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.lR)?P7a(this):this.lR};
g.k.getVideoContentRect=function(a){var b=this.ai();a=Q7a(this,b,this.getVideoAspectRatio(),a);return new g.Fs((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.uC=function(a){this.DS=a;this.resize()};
g.k.FF=function(){return this.LL};
g.k.onMutedAutoplayChange=function(){AY(this)};
g.k.setInternalSize=function(a){g.Ne(this.OE,a)||(this.OE=a,this.resize())};
g.k.ya=function(){this.PO&&g.rD(this.PO);this.Oj();g.W.prototype.ya.call(this)};g.k=T7a.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.jE();c&&a.visualElement&&g.DE(c,a.visualElement,b)};
g.k.createClientVe=function(a,b,c,d){var e=this;d=d===void 0?!1:d;this.elements.has(a);this.elements.add(a);c=Ywa(c);a.visualElement=c;var f=g.jE(),h=g.iE();f&&h&&(g.FA("combine_ve_grafts")?DO(BO(),c,h):g.nA(g.wE)(void 0,f,h,c));b.addOnDisposeCallback(function(){e.elements.has(a)&&e.destroyVe(a)});
d&&this.B.add(a)};
g.k.createServerVe=function(a,b,c){var d=this;c=c===void 0?!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.wX=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,CO(BO(),a),U7a(this))};
g.k.setTrackingParams=function(a,b){this.elements.has(a);b&&(a.visualElement=g.hE(b))};
g.k.hasVe=function(a){return this.elements.has(a)};V7a.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
V7a.prototype.getPlaybackRate=function(){return this.playbackRate};a8a.prototype.MP=function(a){var b=$J(a.info.j.info,this.manifest.hc),c=a.info.Qa+this.C,d=a.info.startTime*1E3;if(this.policy.Sa)try{d=this.policy.Sa?fTa(a)*1E3:a.info.startTime*1E3}catch(h){Math.random()>.99&&this.logger&&(d=rN(a.j).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:a.info.Tc(),encodedDataView:g.Bg(d,4)})),d=a.info.startTime*1E3}var e=a.info.clipId;if(this.policy.Sa){if(a.info.j.Sm())var f=a.info.duration;else a.D===-1&&(a.D=iTa(a)),f=a.D||a.info.duration;f*=1E3}else f=
a.info.duration*1E3;this.policy.Sa&&(d<0||f<0)&&this.logger&&(this.logger({missingSegInfo:a.info.Tc(),startTimeMs:d,durationMs:f}),d<0&&(d=a.info.startTime*1E3),f<0&&(f=a.info.duration*1E3));return{formatId:b,Qa:c,startTimeMs:d,clipId:e,r8:f}};
a8a.prototype.Mq=function(a){this.timestampOffset=a};FY.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.Sb,f=o8a(this,this.videoTrack,a,this.videoTrack.Sb,b);b=o8a(this,this.audioTrack,this.policy.Tf?a:f,e,b);a=Math.max(a,f,b);this.G=!0;this.manifest.isManifestless&&(k8a(this,this.videoTrack,c),k8a(this,this.audioTrack,d));return a};
FY.prototype.isSeeking=function(){return this.G};
FY.prototype.vT=function(a){this.C=a};
var n8a=2/24;var s8a=0;g.k=PY.prototype;g.k.Zu=function(){this.Z=this.now();TUa(this.Pc,this.Z);this.Eb.Zu()};
g.k.Ds=function(a,b){var c=this.policy.B?(0,g.iC)():0;QY(this,a,b);a-this.D<10&&this.Tm()||this.Wv(a,b);this.Eb.Ds(a,b);this.policy.B&&(a=(0,g.iC)()-c,this.Ab+=a,this.rb=Math.max(a,this.rb))};
g.k.Wv=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.Br||(VUa(this.Pc,c,d),this.ov(c,d));this.D=a;this.B=b};
g.k.Po=function(){this.Da&&t8a(this);this.Eb.Po()};
g.k.Cs=function(a){this.Da||(this.Da=this.G-this.Qb+a,this.Bc=this.G,this.Cc=this.Y)};
g.k.n1=function(){};
g.k.er=function(){var a={rn:this.requestNumber,rt:(this.Y-this.j).toFixed(),lb:this.G,stall:(1E3*this.C).toFixed(),ht:(this.Z-this.j).toFixed(),elt:(this.ra-this.j).toFixed(),elb:this.Oa,d:v8a(this)};this.url&&p5a(a,this.url);this.policy.B&&(a.mph=this.rb.toFixed(),a.tph=this.Ab.toFixed());a.ulb=this.Wa;a.ult=this.Ha;a.abw=this.Sa;return a};
g.k.now=function(){return(0,g.iC)()};
g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};
var OY;g.x(RY,PY);g.k=RY.prototype;g.k.er=function(){var a=PY.prototype.er.call(this);a.pb=this.fA;a.pt=(1E3*this.Xa).toFixed();a.se=this.Ub;return a};
g.k.Jr=function(){var a=this.Eb;this.ib||(this.ib=a.Jr?a.Jr():1);return this.ib};
g.k.yK=function(){return this.Il?this.Jr()!==1:!1};
g.k.xR=function(a,b,c){if(!this.Lb){this.Lb=!0;if(!this.Br){QY(this,a,b);this.Wv(a,b);var d=this.Jr();this.Ub=c;d===2?this.Br||(this.Ha?eR(this.Pc,this.Ha/1E3,this.Wa,.25):eR(this.Pc,b/(c||this.Sa),b,.01),gR(this.Pc,b,this.C)):d===1&&(c=(a-this.j)/1E3,!(c<=this.policy.C)&&this.policy.C||this.Cb||this.policy.G||!this.Tm()||y8a(this,c,b),this.Tm()&&gR(this.Pc,b,this.C));fR(this.Pc,(a-this.j)/1E3||.01,this.B,this.Xa,this.Lp)}this.deactivate()}};
g.k.Wv=function(a,b){var c=(a-this.D)/1E3,d=b-this.B,e=this.Jr();this.isActive?e===1&&((d>0||this.policy.D)&&(c>.2||d<1024)?(this.C+=c,d>0&&c>.2&&y8a(this,.05,d),this.Cb=!0):d>0&&(y8a(this,c,d),this.Cb=!0)):z8a(this,b)&&(e===1&&(c=(this.Z-this.j)/1E3,d=(a-this.Z)/1E3,this.Il&&D8a(this,this.now()),this.Kb||this.Br||(e=this.Pc,e.K.Vi(1,c),e.va.Vi(1,d))),this.ra=a,this.Oa=b,this.isActive=!0);PY.prototype.Wv.call(this,a,b)};
g.k.eL=function(a){if(!this.Br){QY(this,a,this.G);var b=(a-this.j)/1E3;this.Jr()!==2&&this.Tm()&&(this.C+=(a-this.D)/1E3,gR(this.Pc,this.B,this.C));fR(this.Pc,b,this.B,this.Xa,this.Lp,!0);a=(a-this.D)/1E3;VUa(this.Pc,a,0);this.ov(a,0)}};
g.k.Tm=function(){return z8a(this,this.B)};
g.k.xY=function(){this.Il&&D8a(this,this.now());return this.La};
g.k.Bx=function(){return this.B>this.pS&&z8a(this,this.B)};
g.k.VJ=function(){return this.Ya};
g.k.SS=function(a){a=a===void 0?this.now():a;if(this.Il){D8a(this,a);if(this.ib?this.yK():this.va!==this.Ga){var b=this.Ga;if(a<b){this.Ya=this.Ga;return}}else b=this.va;b=Math.max(b,this.La)}else b=this.La;var c=this.fA-this.B;c<0&&(c=0);c=(c*this.snapshot.stall+c/this.snapshot.byterate)*1E3;this.Ya=c=this.Tm()?c+a:c+Math.max(a,b)};
g.k.IJ=function(){return this.now()-this.ra};
g.k.RP=function(){return(this.B-this.Oa)*1E3/this.IJ()||0};
g.k.yY=function(){return this.ra};SY.prototype.feed=function(a){oN(this.j,a);this.jf()};
SY.prototype.jf=function(){if(this.D){if(!this.j.totalLength)return;var a=this.j.split(this.C-this.B),b=a.nK;a=a.xn;if(!this.Eb.Cs(this.D,b,this.B,this.C))return;this.B+=b.totalLength;this.j=a;this.B===this.C&&(this.D=this.C=this.B=void 0)}for(;;){var c=0;a=g.v(E8a(this.j,c));b=a.next().value;c=a.next().value;c=g.v(E8a(this.j,c));a=c.next().value;c=c.next().value;if(b<0||a<0)break;if(!(c+a<=this.j.totalLength)){if(!(this.Eb.Cs&&c+1<=this.j.totalLength))break;c=this.j.split(c).xn;this.Eb.Cs(b,c,0,
a)&&(this.D=b,this.B=c.totalLength,this.C=a,this.j=new nN([]));break}a=this.j.split(c).xn.split(a);c=a.xn;this.Eb.IB(b,a.nK);this.j=c}};
SY.prototype.dispose=function(){this.j=new nN};g.k=TY.prototype;g.k.AP=function(){return 0};
g.k.MJ=function(){return null};
g.k.mY=function(){return null};
g.k.Du=function(){return this.state>=1};
g.k.isComplete=function(){return this.state>=3};
g.k.Qm=function(){return this.state===5};
g.k.onStateChange=function(){};
g.k.Ic=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
g.k.yB=function(a){a&&this.state<a?this.Ic(a):this.callback&&this.callback(this,this.state)};
g.k.Na=function(){return this.state===-1};
g.k.Tc=function(){var a="";this.info.kb.forEach(function(b){a+=b.Tc()+"."});
return a.slice(0,-1)};
g.k.dispose=function(){this.Na()||(this.info.kb[0].j.C=!1,this.Ic(-1))};
g.k.WP=function(){return 0};g.k=G8a.prototype;g.k.EB=function(){this.xhr.status&&(this.status=this.xhr.status);this.xhr.readyState===this.xhr.HEADERS_RECEIVED&&this.Eb.Zu()};
g.k.onError=function(){this.C=!0;this.onDone()};
g.k.onDone=function(){this.Na||(this.D=!0,this.Eb.Po())};
g.k.ou=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.XE=function(){return+this.getResponseHeader("content-length")};
g.k.Im=function(){return this.B};
g.k.fv=function(){return this.status>=200&&this.status<300&&!!this.B};
g.k.Xr=function(){return this.j.totalLength>0};
g.k.Ky=function(){var a=this.j;this.j=new nN;return a};
g.k.FL=function(){return this.j};
g.k.abort=function(){this.Na=!0;this.xhr.abort()};
g.k.DC=function(){return!0};
g.k.SL=function(){return this.C};
g.k.uf=function(){return""};g.k=I8a.prototype;
g.k.Ks=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w;return g.H(function(A){if(A.j==1){a.status=200;b=a.j.get("docid");c=$e(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 H8a(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(A.j!=5)return n<=m?g.z(A,zWa(b,c,d,n,f),5):A.Ja(0);p=A.B;if(p===void 0)throw Error("invariant: data is undefined");q=n*e;
r=(n+1)*e;t=Math.max(0,h.start-q);u=Math.min(h.end+1,r)-(t+q);w=new Uint8Array(p.buffer,t,u);a.B.append(w);a.loaded+=u;a.loaded<h.length&&a.Eb.Ds((0,g.iC)(),a.loaded);n++;return A.Ja(2)})};
g.k.getResponseHeader=function(a){return a==="content-type"?this.j.get("type"):""};
g.k.abort=function(){};
g.k.ou=function(){return!0};
g.k.XE=function(){return this.range.length};
g.k.Im=function(){return this.loaded};
g.k.fv=function(){return!!this.loaded};
g.k.Xr=function(){return!!this.B.totalLength};
g.k.Ky=function(){var a=this.B;this.B=new nN;return a};
g.k.FL=function(){return this.B};
g.k.DC=function(){return!0};
g.k.SL=function(){return!!this.error};
g.k.uf=function(){return this.error};g.k=K8a.prototype;g.k.start=function(a){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.N);this.D&&(b.signal=this.D.signal);a=new Request(a,b);fetch(a).then(this.Y,this.onError).then(void 0,Bsa)};
g.k.onDone=function(){this.Na()||this.Eb.Po()};
g.k.getResponseHeader=function(a){return this.responseHeaders?this.responseHeaders.get(a):null};
g.k.ou=function(){return!!this.responseHeaders};
g.k.Im=function(){return this.B};
g.k.XE=function(){return+this.getResponseHeader("content-length")};
g.k.fv=function(){return this.status>=200&&this.status<300&&!!this.B};
g.k.Xr=function(){return!!this.j.totalLength};
g.k.Ky=function(){var a=this.j;this.j=new nN;return a};
g.k.FL=function(){return this.j};
g.k.Na=function(){return this.G};
g.k.abort=function(){this.C&&this.C.cancel().catch(function(){});
this.D&&this.D.abort();this.G=!0};
g.k.DC=function(){return!0};
g.k.SL=function(){return this.K};
g.k.uf=function(){return this.errorMessage};g.k=L8a.prototype;g.k.onDone=function(){if(!this.Na){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(a){}this.j=!0;this.Eb.Po()}};
g.k.EB=function(){this.xhr.readyState===2&&this.Eb.Zu()};
g.k.Fg=function(a){this.Na||(this.status=this.xhr.status,this.j||(this.B=a.loaded),this.Eb.Ds((0,g.iC)(),a.loaded))};
g.k.ou=function(){return this.xhr.readyState>=2};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.nE(Error("Could not read XHR header "+a)),""}};
g.k.XE=function(){return+this.getResponseHeader("content-length")};
g.k.Im=function(){return this.B};
g.k.fv=function(){return this.status>=200&&this.status<300&&this.j&&!!this.B};
g.k.Xr=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.k.Ky=function(){var a=this.response;this.response=void 0;return new nN([new Uint8Array(a)])};
g.k.FL=function(){return new nN([new Uint8Array(this.response)])};
g.k.abort=function(){this.Na=!0;this.xhr.abort()};
g.k.DC=function(){return!1};
g.k.SL=function(){return!1};
g.k.uf=function(){return""};g.x(WY,g.I);g.k=WY.prototype;g.k.Hda=function(){if(!this.Na()){var a=(0,g.iC)(),b=!1;if(this.timing.Tm()){if(this.G)return;var c=this.timing.VJ();this.timing.SS();var d=this.timing.VJ();d-c>=this.policy.Sk*.8?(this.j++,this.logger.debug(function(){return"Mispredicted by "+(d-c).toFixed(0)}),b=this.j>=5):this.j=0}else{var e=a-this.timing.xY();
e>0&&(this.j+=1);a=tSa(XY(this),!1)*this.policy.MD;(b=e>a*1E3)&&this.logger.debug(function(){return"Elbow late by "+e.toFixed(3)})}this.j>0&&this.Eb.iQ();
b?this.RH(!1):this.B.start()}};
g.k.RH=function(a){this.D=!0;a&&(a=XY(this),a.C+=1);this.Eb.yz();this.lastError="net.timeout";YY(this)};
g.k.canRetry=function(a){var b=XY(this);a=a?this.policy.mw:this.policy.Bj;return b.timedOut<this.policy.pw&&b.j<a};
g.k.ih=function(){return this.lastError};
g.k.bx=function(){return this.j};
g.k.dispose=function(){this.B.dispose();g.I.prototype.dispose.call(this)};var p3={},d9a=(p3["1h"]=8,p3["9h"]=4,p3["1"]=8,p3["9"]=4,p3["("]=4,p3.h=2,p3.H=2,p3),q3={},e9a=(q3.o=3,q3.O=3,q3.so=3,q3.a=1,q3.ah=1,q3.A=1,q3.m=1,q3.M=1,q3.sa=1,q3.mac3=7,q3.MAC3=7,q3.meac3=5,q3.MEAC3=5,q3),r3={},f9a=(r3.o=0,r3.O=0,r3.a=0,r3.ah=0,r3.A=0,r3.m=1,r3.M=1,r3.mac3=1,r3.MAC3=1,r3.meac3=1,r3.MEAC3=1,r3.so=4,r3.sa=4,r3);var i9a={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};var aZ,$Y,bZ=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"]],Y8a=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],Z8a=["571 401 400 399 398 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],$8a=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],a9a=["412","359"],b9a=[["140"],["251"],["380"],["328"]],s3={},U8a=(s3["398"]=["397","396","395","394"],s3["247"]=["780","779",
"244","243","242"],s3["136"]=["135","134","133","160"],s3["141"]=["140"],s3["251"]=["250"],s3),t3={},V8a=(t3["135"]=["134","133","160"],t3["243"]=["242"],t3["781"]=["780","779"],t3["777"]=["776","775"],t3["396"]=["395","394"],t3["141"]=["140"],t3["251"]=["250"],t3),u3={},W8a=(u3["274"]=["317","273","318","280","279"],u3["145"]=["144","222","223","143","142"],u3["141"]=["149"],u3["140"]=["149"],u3["380"]=["381"],u3["328"]=["329"],u3),v3={},S8a=(v3["133"]=240,v3["134"]=360,v3["135"]=480,v3["136"]=720,
v3["137"]=1080,v3["242"]=240,v3["243"]=360,v3["244"]=480,v3["247"]=720,v3["248"]=1080,v3["298"]=720,v3["299"]=1080,v3["302"]=720,v3["303"]=1080,v3["395"]=240,v3["396"]=360,v3["397"]=480,v3["398"]=720,v3["399"]=1080,v3);g.x(HY,TY);g.k=HY.prototype;g.k.Up=function(){return this.timing.requestNumber};
g.k.Ge=function(){return this.ke.Ge()};
g.k.Kr=function(){var a=O8a(this.Cd);if(this.Rl){var b=this.Rl,c=b.j.totalLength;a.ulen=c;c>0&&(b=sN(b.j,0),a.ubyte=b,c===1&&b===0&&(a.b248180278=!0))}this.Dg&&(a.rc=this.policy.Yk?this.Dg:this.Dg.toString());this.policy.Sc&&this.L2&&(a.tr=this.L2);a.itag=this.info.kb[0].j.info.itag;a.ml=""+ +this.info.kb[0].j.qg();a.sq=""+this.info.kb[0].Qa;this.ke&&(a.ifi=""+ +FRa(this.info.resource.C));this.Dg!==410&&this.Dg!==500&&this.Dg!==503||(a.fmt_unav="true");var d;(c=this.errorMessage||((d=this.xhr)==null?
void 0:d.uf()))&&(a.msg=c);this.IH&&(a.smb="1");this.info.eq()&&(a.sdai="1");return a};
g.k.fY=function(){return A8a(this.timing)};
g.k.uf=function(){return this.xhr.uf()||""};
g.k.Bx=function(){return this.isComplete()||this.timing.Bx()};
g.k.Ds=function(){!this.Na()&&this.xhr&&(this.Dg=this.xhr.status,this.policy.Yp&&this.fg&&this.Nm(!1),this.Kl()?this.yB(2):!this.aZ&&this.Bx()&&(this.yB(),this.aZ=!0))};
g.k.Zu=function(){if(!this.Na()&&this.xhr){if(!this.Qz&&this.xhr.ou()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Qz=((0,g.iC)()-a)/1E3}this.xhr.ou()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.eD&&!ZPa()&&g.xB("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),c;(c=this.Ru)==null||c.stop();this.Zp=a||this.Zp;
this.Ur=b||this.Ur}};
g.k.Po=function(){var a=this.xhr;if(!this.Na()&&a){this.Dg=a.status;a=this.mQ(a);if(this.policy.Sc){var b;(b=this.Ru)==null||b.stop()}a===5?YY(this.Cd):this.Ic(a);this.Cd.B.stop()}};
g.k.mQ=function(a){var b=this;p9a(this);if(ZY(this.Cd,this.xhr.status,this.Sp?this.timing.N||this.IM:this.xhr.fv(),!1,this.Cu))return 5;var c="";if(l9a(this)){var d=a.FL();d.totalLength<=this.policy.Pp&&(c=m9a(this,qN(d)))}if(c)return sSa(XY(this.Cd)),this.info.Al(this.ke,c),3;c=a.Im();if(this.Rl){this.Nm(!0);p9a(this);if(ZY(this.Cd,this.xhr.status,this.timing.N||this.IM,!1,this.Cu))return 5;if(!this.b3){if(this.IM)return sSa(XY(this.Cd)),3;this.Cd.lastError="net.closed";return 5}}else{if(ZY(this.Cd,
this.xhr.status,this.xhr.fv(),!1,this.Cu))return 5;if((d=this.info.C)&&d!==c||a.SL())return this.Cd.lastError="net.closed",5;this.Nm(!0)}d=F8a(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=F8a(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.O1=!0,this.policy.bG&&(d=a);N8a(this.Cd,c,d?Number(d):0);this.logger.debug(function(){var e=b.timing;return"Succeeded, rtpd="+(e.Xa*1E3+e.j-Date.now()).toFixed(0)});
return 4};
g.k.canRetry=function(){this.Na();var a=this.info.eq();return this.Cd.canRetry(a)};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.wp?this.yz():this.timing.deactivate())};
g.k.RH=function(a){this.Cd.RH(a)};
g.k.iQ=function(){this.callback&&this.callback(this,this.state)};
g.k.bx=function(){return this.Cd.bx()};
g.k.dispose=function(){TY.prototype.dispose.call(this);this.Cd.dispose();var a;(a=this.Ru)==null||a.dispose();this.policy.wp||this.yz()};
g.k.yz=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()};
g.k.Qk=function(){if(!this.KG().length)return[];this.oQ=!0;return this.fg.Qk()};
g.k.Kl=function(){if(this.state<1)return!1;if(this.fg&&this.fg.zf.length)return!0;var a;return((a=this.xhr)==null?0:a.Xr())?!0:!1};
g.k.KG=function(){this.Nm(!1);return this.fg?this.fg.KG():[]};
g.k.Nm=function(a){try{if(a||this.xhr.ou()&&this.xhr.Xr()&&!l9a(this)&&!this.NB)this.fg||(this.fg=new JX(this.policy,this.info.kb)),this.xhr.Xr()&&(this.Rl?this.Rl.feed(this.xhr.Ky()):KX(this.fg,this.xhr.Ky(),a&&!this.xhr.Xr()))}catch(b){this.Rl?k9a(this,b):g.nE(b)}};
g.k.IB=function(a,b){switch(a){case 21:a=b.split(1).xn;n9a(this,a);break;case 22:this.b3=!0;KX(this.fg,new nN([]),!0);break;case 43:if(a=GN(new AN(b),1))this.info.Al(this.ke,a),this.IM=!0;break;case 45:b=ZQa(new AN(b));a=b.gT;b=b.hT;a&&b&&(this.QI=a/b);break;case 44:this.lC=YQa(new AN(b));var c,d,e;!this.timing.N&&((c=this.lC)==null?void 0:c.action)===4&&((d=this.lC)==null?0:(e=d.H1)==null?0:e.Sp)&&(this.Sp=this.lC.H1.Sp);break;case 53:this.policy.Sc&&(a=VQa(new AN(b)).qq)&&(this.Ru||(this.qq=a,this.Ru=
new g.Dv(this.p_,a,this)),this.Ru.start());break;case 60:this.dB=GQa(new AN(b));break;case 64:this.policy.RC&&(a=IQa(new AN(b)),this.policy.Xu(a));break;case 58:this.policy.xw&&(a=wQa(new AN(b)))&&(this.lj=a,this.policy.wj&&a.lj===3&&(this.Cu=!0))}};
g.k.Cs=function(a,b,c,d){c||this.timing.Cs(d);if(a!==21)return!1;if(a=this.policy.Yp)if(a*=this.info.kb[0].j.info.ub,b.totalLength+c!==d&&b.totalLength<a)return!1;if(!c){if(b.totalLength===1)return!0;b=b.split(1).xn}n9a(this,b);return!0};
g.k.Im=function(){return this.xhr.Im()};
g.k.AP=function(){return this.Qz};
g.k.Jr=function(){return this.yK()?2:1};
g.k.yK=function(){if(!this.policy.N.pj||!isNaN(this.info.lh)&&this.info.lh>0)return!1;if(!this.xhr.ou())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.Rl)var a=!this.info.C;else this.xhr.XE()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a=a==="audio/mp4"||a==="video/mp4"||a==="video/webm");if(!a)return!1;if(isNaN(this.info.lh))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.kb[0].Qa)return!1;return!0};
g.k.WP=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.k.MJ=function(){this.xhr&&(this.Zp=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Zp};
g.k.mY=function(){this.xhr&&(this.Ur=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Ur};
g.k.ih=function(){return this.Cd.ih()};
g.k.p_=function(){if(!this.Na()&&this.xhr){this.L2="heartbeat";var a=this.Cd;a.j+=2;this.iQ()}};eZ.prototype.IB=function(a,b){switch(a){case 20:a=new AN(b);a={aq:DN(a,1),videoId:GN(a,2),itag:DN(a,3),lmt:DN(a,4),xtags:GN(a,5),mC:DN(a,6),Bo:EN(a,8),Jq:DN(a,9),Ppb:DN(a,10),startMs:DN(a,11),durationMs:DN(a,12),Ls:DN(a,14),timeRange:HN(a,15,kQa),Pj:DN(a,16),fL:DN(a,17),clipId:GN(a,1E3)};this.VR(a);break;case 21:this.TR(b,!1);break;case 22:this.uq(b);break;case 31:a=KN(b,NQa);this.DB(a);break;case 52:a=KN(b,WQa);this.FB(a);break;default:this.JR(a,b)}};
eZ.prototype.VR=function(){};
eZ.prototype.JR=function(){};g.x(fZ,PY);g.k=fZ.prototype;g.k.Wv=function(a,b){var c=(a-this.D)/1E3,d=b-this.B;this.Tm()?d>0&&(this.va&&(c>.2||d<1024?(this.C+=c,c>.2&&eR(this.Pc,.05,d,.05)):eR(this.Pc,c,d,c)),this.Ga&&(this.La+=d,this.Xa+=c)):(c=this.Pc,d=(a-this.Z)/1E3,c.K.Vi(1,(this.Z-this.j)/1E3),c.va.Vi(1,d),this.ra=a,this.Oa=b);PY.prototype.Wv.call(this,a,b)};
g.k.xR=function(a,b){QY(this,a,b);this.Wv(a,b);this.va&&(b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.Tm()&&gR(this.Pc,this.La,this.C),fR(this.Pc,(a-this.j)/1E3||.01,this.B,b,!1))};
g.k.eL=function(a){QY(this,a,this.G);var b=(a-this.D)/1E3;VUa(this.Pc,b,0);this.ov(b,0);if(this.va||!this.Tm())b=this.B*this.snapshot.stall+this.B/this.snapshot.byterate,this.Tm()&&(this.C+=(a-this.D)/1E3,gR(this.Pc,this.La,this.C)),fR(this.Pc,(a-this.j)/1E3||.01,this.B,b,!1,!0)};
g.k.EG=function(a){a=a.nO||2147483647;(a&2)!==2&&(this.Ga=!1);(a&1)===1&&(this.va=!0)};
g.k.uG=function(a){a=a.nO||2147483647;(a&2)===2&&(this.Ga=!1);(a&1)===1&&(this.va=!1)};
g.k.yY=function(){return this.ra};
g.k.IJ=function(){var a=this.Ga?this.now()-this.D:0;return Math.max(this.Xa*1E3+a,1)};
g.k.RP=function(){return this.La*1E3/this.IJ()};
g.k.Tm=function(){return this.B>2048};
g.k.n1=function(a){this.Ya=a};
g.k.er=function(){var a=PY.prototype.er.call(this);a.rbw=this.RP();a.rbe=+this.Ga;a.gbe=+this.va;a.ackt=(this.Ya-this.j).toFixed();return a};
g.k.SS=function(){};
g.k.VJ=function(){return NaN};
g.k.xY=function(){return this.j+this.snapshot.delay*1E3};g.x(r9a,eZ);g.k=r9a.prototype;
g.k.JR=function(a,b){switch(a){case 35:this.wq(b);break;case 44:this.AG(b);break;case 43:this.dS(b);break;case 53:this.bS(b);break;case 55:a=new AN(b);(a={timeline:HN(a,1,aRa),Sda:HN(a,2,dRa)},a.timeline)&&a.timeline.K2&&this.Eb.iS(a.timeline.K2,a.timeline.xea,a.Sda);break;case 56:this.xG();break;case 57:this.zG(b);break;case 42:this.MR(b);break;case 45:this.CG(b);break;case 59:this.yG(b);break;case 51:this.DG(b);break;case 49:this.EG(b);break;case 50:this.uG(b);break;case 47:this.BG(b);break;case 58:this.Xm(b);
break;case 61:this.Eb.Od.n1((0,g.iC)());break;case 66:this.vG(b)}};
g.k.DG=function(a){a=new AN(a);a={fsb:JN(a,1,NO),esb:JN(a,2,NO)};this.Eb.DG(a)};
g.k.yG=function(a){var b=new AN(a);a=IN(b,1);var c=IN(b,2);b=IN(b,3);this.Eb.yG(a,c,b)};
g.k.CG=function(a){a=ZQa(new AN(a));this.Eb.CG(a)};
g.k.BG=function(a){a=KN(a,QQa);this.Eb.BG(a)};
g.k.MR=function(a){a=new AN(a);a={videoId:GN(a,1),formatId:HN(a,2,NO),endTimeMs:DN(a,3),Upb:DN(a,4),mimeType:GN(a,5),oZ:HN(a,6,FQa),indexRange:HN(a,7,FQa),sP:HN(a,8,vQa)};this.Eb.MR(a)};
g.k.zG=function(a){a=dRa(new AN(a));this.Eb.zG(a)};
g.k.xG=function(){this.Eb.xG()};
g.k.wq=function(a){a=OQa(new AN(a));this.Eb.wq(a)};
g.k.bS=function(a){a=VQa(new AN(a));this.Eb.bS(a)};
g.k.AG=function(a){a=YQa(new AN(a));this.Eb.AG(a)};
g.k.dS=function(a){a={redirectUrl:GN(new AN(a),1)};this.Eb.dS(a)};
g.k.TR=function(a){var b=sN(a,0);if(a.totalLength!==1){a=a.split(1).xn;var c=this.B[b]||null;c&&k6a(this.Eb.dg,b,c,a)}};
g.k.uq=function(a){a=sN(a,0);var b=this.B[a]||null;b&&this.Eb.uq(a,b)};
g.k.FB=function(a){this.Eb.FB(a)};
g.k.VR=function(a){var b=a.aq,c=a.Bo,d=a.mC,e=a.fL,f=a.Pj,h=a.Jq,l=a.startMs,m=a.durationMs,n=a.timeRange,p=a.Ls,q=a.clipId,r=q9a(a);a=Gpb.has(TJ[""+a.itag]);this.B[b]=r;this.Eb.HB(r,a,{aq:b,Bo:!!c,mC:d!=null?d:-1,Jq:h!=null?h:-1,startMs:l!=null?l:-1,durationMs:m!=null?m:-1,Ls:p,fL:e,Pj:f,clipId:q,timeRange:n})};
g.k.EG=function(a){a={nO:DN(new AN(a),1)};this.Eb.EG(a)};
g.k.uG=function(a){a={nO:DN(new AN(a),1)};this.Eb.uG(a)};
g.k.DB=function(a){this.Eb.DB(a)};
g.k.Xm=function(a){a=wQa(new AN(a));this.Eb.Xm(a)};
g.k.vG=function(a){a={vZ:HN(new AN(a),1,TQa)};this.Eb.vG(a)};g.x(gZ,g.I);g.k=gZ.prototype;g.k.Ds=function(){!this.Na()&&this.xhr&&(this.Nm(),Mbb(this.Eb,this))};
g.k.Zu=function(){};
g.k.Po=function(){if(!this.Na()&&this.xhr){var a=this.mQ();a===5?YY(this.Cd):this.Ic(a);this.Cd.B.stop();var b;(b=this.gH)==null||b.stop()}};
g.k.mQ=function(){if(!this.policy.Vv&&ZY(this.Cd,this.xhr.status,this.xhr.fv(),this.info.Zr(),this.Cu))return 5;this.Nm();if(this.policy.Vv&&ZY(this.Cd,this.xhr.status,this.xhr.fv(),this.info.Zr(),this.Cu))return 5;if(this.I1)return 3;N8a(this.Cd,this.xhr.Im(),0);this.policy.Ub&&Qbb(this.Eb);return 4};
g.k.Nm=function(){var a=this.xhr;if(a.Xr()){a=a.Ky();var b=a.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+b});
this.Rl.feed(a)}};
g.k.IB=function(a,b){this.Od.policy.j&&a===21&&(this.Od.N=!0);this.Uda.IB(a,b)};
g.k.Cs=function(a,b,c,d){this.Od.policy.j&&a===21&&(this.Od.N=!0);c||this.Od.Cs(d);return!1};
g.k.wq=function(a){this.Eb.wq(a)};
g.k.bS=function(a){if(this.policy.enableServerDrivenRequestCancellation){var b;(b=this.gH)==null||b.dispose();this.US=a;a.P0&&(this.gH=new g.Dv(this.o_,a.P0,this));this.o_()}};
g.k.o_=function(){var a;if((a=this.US)!=null&&a.items){var b;(b=this.gH)==null||b.start();if(this.Od.Tm()){a=this.Od.IJ();b=this.Od.RP();var c=t9a(this,a);if(!(b>c.VK||c.oR>0&&this.info.EP()>c.oR)){this.VS=(0,g.iC)();var d;(d=this.gH)==null||d.stop();this.policy.Ub&&(d=this.Eb,a={Gw:Math.round(b*a/1E3),Ry:a},d.policy.Ub&&(d.Da=a,d.Fq++));this.Cd.RH(!1)}}}};
g.k.AG=function(a){this.Eb.AG(a)};
g.k.dS=function(a){this.I1=!0;this.info.resource.Al(this.ke,a.redirectUrl)};
g.k.EG=function(a){this.Od instanceof fZ&&this.Od.EG(a)};
g.k.uG=function(a){this.Od instanceof fZ&&this.Od.uG(a)};
g.k.iS=function(a,b,c){this.Eb.iS(a,b,c,this.Up())};
g.k.MR=function(a){if(mV(this.policy)){var b=a.formatId,c=q9a({itag:b.itag,lmt:b.lmt,xtags:b.xtags}),d,e,f=new WP(((d=a.oZ)==null?void 0:d.first)||0,((e=a.oZ)==null?void 0:e.IZ)||0),h,l;d=new WP(((h=a.indexRange)==null?void 0:h.first)||0,((l=a.indexRange)==null?void 0:l.IZ)||0);this.manifest.N.get(c)||(c=a.sP||{},c.mimeType=a.mimeType,c.itag=b.itag,c.lastModified=""+(b.lmt||0),c.xtags=b.xtags,a=this.manifest,b=yQ(""),c=xQ(c,null),vQ(a,new tQ(b,c,f,d)))}};
g.k.CG=function(a){this.Eb.CG(a)};
g.k.DB=function(a){this.Eb.DB(a)};
g.k.yG=function(a,b,c){this.Eb.yG(a,b,c)};
g.k.zG=function(a){a.scope===2&&(this.Tda=a);this.Eb.zG(a)};
g.k.xG=function(){this.QW=!0;this.Eb.xG()};
g.k.DG=function(a){this.policy.Gn&&this.Eb.DG(a)};
g.k.BG=function(a){this.Eb.BG(a,this.Up())};
g.k.Xm=function(a){this.policy.wj&&a.lj===3&&(this.Cu=!0);this.Eb.Xm(a)};
g.k.vG=function(a){this.Eb.vG(a)};
g.k.canRetry=function(){this.Na();return this.Cd.canRetry(!1)};
g.k.dispose=function(){if(!this.Na()){g.I.prototype.dispose.call(this);this.Cd.dispose();var a;(a=this.gH)==null||a.dispose();this.Ic(-1);this.yz()}};
g.k.Ic=function(a){this.state=a;Mbb(this.Eb,this)};
g.k.Zr=function(){return this.info.Zr()};
g.k.tO=function(){return this.QW};
g.k.UP=function(){return this.Tda};
g.k.HB=function(a,b,c){c.clipId&&(this.clipId=c.clipId);this.policy.G&&!b&&(this.ij=c.Jq,this.uv=c.startMs);var d=0;this.policy.Ch&&this.q_&&this.clipId&&(d=iY(this.q_,this.clipId)/1E3);this.dg.HB(a,b,c,d);this.dg.bd.get(a).aE=!0};
g.k.uq=function(a,b){this.dg.uq(a,b)};
g.k.FB=function(a){this.requestIdentifier=a};
g.k.Qk=function(a){return this.dg.Qk(a)};
g.k.Zn=function(a){return this.dg.Zn(a)};
g.k.Kl=function(a){return this.dg.Kl(a)};
g.k.Ir=function(){return this.dg.Ir()};
g.k.Jr=function(){return 1};
g.k.Up=function(){return this.Od.requestNumber};
g.k.SP=function(){return this.requestIdentifier};
g.k.dY=function(){return this.clipId};
g.k.Ge=function(){return this.ke.Ge()};
g.k.L_=function(){this.yz()};
g.k.yz=function(){this.Od.deactivate();var a;(a=this.xhr)==null||a.abort()};
g.k.isComplete=function(){return this.state>=3};
g.k.CZ=function(){return this.state===3};
g.k.Qm=function(){return this.state===5};
g.k.bZ=function(){return this.isComplete()};
g.k.Du=function(){return this.state>=1};
g.k.bx=function(){return 0};
g.k.cY=function(){var a;return(a=this.info.data)==null?void 0:a.qO};
g.k.iQ=function(){};
g.k.zY=function(){return Rab(this.info)};
g.k.ih=function(){return this.Cd.ih()};
g.k.Kr=function(){var a=O8a(this.Cd);Object.assign(a,Sab(this.info));a.req="sabr";a.rn=this.Up();var b;if((b=this.xhr)==null?0:b.status)a.rc=this.policy.Yk?this.xhr.status:this.xhr.status.toString();var c;(b=(c=this.xhr)==null?void 0:c.uf())&&(a.msg=b);this.VS&&(c=t9a(this,this.VS-this.Od.yY()),a.letm=c.y$,a.mrbps=c.VK,a.mram=c.oR);return a};
g.k.BY=function(){return{ij:this.ij,uv:this.uv,eq:this.info.eq()}};u9a.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.iC)()};g.x(F9a,g.GE);g.k=F9a.prototype;
g.k.XR=function(a,b,c,d){if(this.N&&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.Az);this.N.eS(a.Qa,a.startTime,this.B,d,e,f,c,l,h)}if(c){if(b&&!this.va.has(a.Qa)){c=a.startTime;d=[];for(e=0;e<b.j.length;e++)f=b.j[e],h=c,c=h+b.B[e],d.push({startTime:h,endTime:c,adCpn:f});this.va.set(a.Qa,d)}this.policy.mf&&(c=this.ra&&a.Qa===this.ra.Qa+1,this.ra=a,d=this.j&&a.Qa===this.j.Qa+1,d=this.j&&c&&d&&this.j.fh.event!=="stop"&&this.j.fh.event!=="predictStart",e=a.fh||null,f=this.videoTrack.j.index.Bd()<=
a.Qa,h=this.manifest.isManifestless&&this.policy.Qv,e?(this.j={fh:e,Qa:a.Qa,tF:!!b},f?iZ(this,e,a.Qa):h&&(c?d?iZ(this,e,a.Qa):e.event==="continue"||e.event==="stop"?N9a(this,a):iZ(this,e,a.Qa):iZ(this,e,a.Qa))):(d&&N9a(this,a),this.B===4&&jZ(this,5,"qend")))}};
g.k.WR=function(a,b,c){var d=this.videoTrack.j.index.Bd()<=b;this.j={fh:a,Qa:b,tF:c};d&&iZ(this,a,b)};
g.k.kx=function(){this.N&&this.N.kx()};
g.k.oa=function(a,b){this.Aa.oa(a,b)};
g.k.Ss=function(a,b){var c=this.videoTrack.j.index.Ki(a),d;if(d=c>=0){var e;d=((e=fY(b.Yc,c,2))==null?void 0:e.Ot)||""}if(d)return b.yv(a,c),I9a(this.Aa,a,a,c),this.oa("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0;this.oa("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};g.x(nZ,g.I);nZ.prototype.hp=function(a,b,c){c=c===void 0?{}:c;this.policy.tj=oUa(a,c,this.D,b===void 0?!1:b)};Q9a.prototype.mL=function(a){var b=this;if(this.policy.QC){var c=new Set(a);c.size===this.Ga.size&&[].concat(g.ra(c)).every(function(d){return b.Ga.has(d)})||(this.Aa.oa("lwnmow",{itagDenylist:[].concat(g.ra(a)).join(",")}),this.Aa.Ey(!!c.size),this.Y=-1,this.Ga=c,sZ(this,this.j),this.Sa=!0)}};
Q9a.prototype.hp=function(a,b,c){c=c===void 0?{}:c;var d=this.policy.tj;this.G.hp(a,b===void 0?!1:b,c);if(d!==this.policy.tj){sZ(this,this.j);tZ(this);var e,f;d>this.policy.tj&&((e=this.C)==null?0:WJ(e.info))&&((f=this.nextVideo)==null||!WJ(f.info))&&(this.ra=!0)}};i$a.prototype.dispose=function(){this.va=!0};
i$a.prototype.Na=function(){return this.va};
g.x(AZ,Error);var Xgb=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]);DZ.prototype.skip=function(a){this.offset+=a};
DZ.prototype.Jm=function(){return this.offset};g.k=B$a.prototype;g.k.wY=function(){return this.B};
g.k.So=function(){return this.B.length?this.B[this.B.length-1]:null};
g.k.ll=function(){this.B=[];FZ(this);A$a(this)};
g.k.Rs=function(){this.eb=this.B.shift().info};
g.k.Zn=function(){return g.$r(this.B,function(a){return a.info})};
g.k.Kh=function(){return!!this.K.info.audio};
g.k.getDuration=function(){return this.K.index.Yt()};g.x(GY,TY);g.k=GY.prototype;g.k.onStateChange=function(){this.Na()&&(NX(this.dg,this.formatId),this.j.dispose())};
g.k.Kr=function(){var a=d6a(this.dg,this.formatId),b;var c=((b=this.dg.bd.get(this.formatId))==null?void 0:b.bytesReceived)||0;var d;b=((d=this.dg.bd.get(this.formatId))==null?void 0:d.Iz)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:e6a(this.dg,this.formatId),isAnyMediaEndReceived:this.dg.wx(this.formatId)}};
g.k.fY=function(){return 0};
g.k.Bx=function(){return!0};
g.k.Qk=function(){return this.dg.Qk(this.formatId)};
g.k.KG=function(){return[]};
g.k.Kl=function(){return this.dg.Kl(this.formatId)};
g.k.ih=function(){return this.lastError};
g.k.bx=function(){return 0};g.x(HZ,g.I);g.k=HZ.prototype;g.k.So=function(){return this.D.So()};
g.k.Rs=function(a){this.D.Rs(a);var b;(b=this.Z)!=null&&(b.B=e8a(b,b.jd,b.oy,b.B,a),b.D=a,b.G=(0,g.iC)());this.ub=Math.max(this.ub,a.info.j.info.ub||0)};
g.k.getDuration=function(){if(this.policy.j){var a=this.Aa.Zf();if(a)return lY(a)}return this.j.index.Yt()};
g.k.ll=function(){IY(this);this.D.ll()};
g.k.NP=function(){return this.D};
g.k.isRequestPending=function(a){return this.C.length?a===this.C[this.C.length-1].info.kb[0].Qa:!1};
g.k.Mq=function(a){var b;(b=this.Z)==null||b.Mq(a)};g.x(VZ,g.I);VZ.prototype.C=function(){this.B++>15||(this.j=!this.j,new pab(this.Aa,this.policy,this.Pc,this.resource,this.j),this.delay.start())};
g.k=pab.prototype;g.k.Zu=function(){};
g.k.Ds=function(){};
g.k.Po=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Im()===this.size)this.Aa.oa("rqs",this.getInfo());else{var a="net.connect";this.xhr.status>200?a="net.badstatus":this.xhr.ou()&&(a="net.closed");this.onError(a)}};
g.k.onError=function(a){var b=this;this.Aa.handleError(a,this.getInfo());tX("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(c){b.Aa.oa("pathprobe",c)},function(c){b.Aa.handleError(c.errorCode,c.details)})};
g.k.getInfo=function(){var a=this.timing.er();a.shost=hP(this.location.base);a.pb=this.size;return a};g.x(WZ,g.I);WZ.prototype.OQ=function(a,b){if(!TZ(a)||!a.j.qg())return!1;var c=this.C.Sa||dab(a)||b<=this.policy.LD||this.C.ra;this.logger.debug(function(){return"ready to adapt: "+c+", upgrade pending: "+dab(a)+", health: "+b});
return c};
WZ.prototype.ya=function(){g.I.prototype.ya.call(this)};
var XZ=2/24;g.x(b_,g.I);b_.prototype.lL=function(a,b,c){var d;var e=((d=this.B)==null?void 0:d.reason)==="m"?"m":this.B&&Iab(this,this.B)?this.B.reason:"a";this.Aa.lL(new mZ(a,e,c));$Z(this.Aa,b,a,!0)};
b_.prototype.K1=function(a){for(var b=g.v(this.Z),c=b.next();!c.done;c=b.next())if(c=c.value,c.id===a)return this.C=[c],this.K=this.manifest.j[a],this.Ve.j&&(this.Y=!0),new mZ(this.K,"m");this.C=[];return null};
b_.prototype.hp=function(a,b,c){c=c===void 0?{}:c;this.j.hp(a,b===void 0?!1:b,c)};c_.prototype.Zr=function(){return this.requestType===1};
c_.prototype.EP=function(){var a;return((a=this.Eb)==null?void 0:a.EP())||0};
c_.prototype.eq=function(){var a;return!((a=this.data)==null||!a.hn)};g.x(d_,g.I);d_.prototype.encrypt=function(a){(0,g.iC)();return Xab(this).encrypt(a,this.iv)};
d_.prototype.decrypt=function(a,b){(0,g.iC)();return Xab(this).decrypt(a,b)};Yab.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.Ym.Td("omd_s");e=new Uint8Array(16);b?c?h=new aR(c,a):h=new $Q(a):f=new ZQ(a);case 2:if(!d.j.length||!d.j[0].isEncrypted){p.Ja(4);break}l=d.j.shift();if(!f){m=h.decrypt(qN(l.buffer),e);p.Ja(5);break}return g.z(p,f.decrypt(qN(l.buffer),e),6);case 6:m=p.B;case 5:n=m;for(var q=0;q<e.length;q++)if(e[q]===255)e[q]=0;else{e[q]+=1;break}q=d.Ym;
var r=l.videoId,t=l.aq,u=l.formatId,w=new nN([n]),A;(A=e_(q.ud,r))==null||k6a(A,t,u,w);p.Ja(2);break;case 4:d.Ym.Td("omd_c"),f_(d),d.B=!1,d.Ym.UR(),g.Aa(p)}})};
Yab.prototype.enqueue=function(a,b,c,d,e){this.j.push({videoId:a,aq:b,formatId:c,buffer:d,isEncrypted:e});this.B||f_(this)};var hbb=!!Uint8Array.prototype.copyWithin,g_=[],Zab=[],bbb=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],i_=[],h_=[],j_=[],$ab=[];g.x(jbb,eZ);g.k=jbb.prototype;g.k.UR=function(){this.ud.UR()};
g.k.JR=function(a,b){switch(a){case 10:var c=KN(b,LQa);a=c.Yca;var d=!1;switch(a){case 0:this.D=!c.M0.q$;this.iv=c.M0.iv;break;case 2:break;case 23:var e=this.ud;c=c.W$;e.Td("omp_r");c.videoId&&(e.bv=c.videoId);e.bv!==e.videoData.videoId&&(e.videoData.j4=e.bv,e.oa("ompp","vid."+e.bv));e.iR=!0;break;case 24:c=this.ud;c.Td("omp_c");c.iR=!1;c.jH=!1;var f=(e=c.eg)==null?void 0:e.get(c.bv);c.notifySubscribers(c.bv);f!=null&&(f.j=!0);l_(c);break;default:d=!0}this.ud.Om&&this.ud.oa("ombup","id.10;pt."+a+
";len."+b.totalLength+(d?";ignored.1":""));this.C=a;break;case 11:mbb(this,b);break;case 12:this.TR(b,!0);break;case 37:b=KN(b,MQa);(b.G7||b.uU)&&b.videoId&&this.ud.aY.set(b.videoId,b);break;case 60:this.QR(b);break;case 64:this.Xu(b);break;case 47:this.L("html5_server_playback_start_policy")&&(b=KN(b,QQa),this.ud.playbackStartPolicy=b);break;case 35:this.wq(b);break;default:this.ud.Om&&this.ud.oa("ombup","id."+a+";len."+b.totalLength+";ignored.1")}};
g.k.DB=function(a){this.ud.VZ=a};
g.k.QR=function(a){a=KN(a,GQa);this.ud.QR(a)};
g.k.Xu=function(a){this.L("html5_enable_lawnmower_messaging")&&(a=KN(a,IQa),this.ud.Xu(a))};
g.k.VR=function(a){var b=a.aq,c=a.Bo,d=a.mC,e=a.Pj,f=a.Jq,h=a.startMs,l=a.durationMs,m=a.timeRange,n=a.Ls,p=q9a(a),q=Gpb.has(TJ[""+a.itag]);c&&this.Td(q?"oais_r":"ovis_r");var r=this.j[p]!==void 0;this.ud.Om&&this.ud.oa("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,UY:!1,Kh:q,headers:[]});this.j[p].headers.push(a);this.ud.HB(t,p,q,{aq:b,Bo:!!c,mC:d!=null?d:-1,Jq:f!=null?f:-1,startMs:h!=null?h:-1,durationMs:l!=null?l:-1,Ls:n!=null?n:0,Pj:e,timeRange:m})};
g.k.TR=function(a,b){var c=sN(a,0);this.ud.Om&&this.ud.oa("ombup","id."+(b?12:21)+";len."+a.totalLength+";hid."+c);if(a.totalLength!==1){a=a.split(1).xn;var d=this.B[c]||null,e=this.G[c]||"";d&&(this.Qi(this.j[d].Kh?"oafs_r":"ovfs_r"),this.queue.enqueue(e,c,d,a,b))}};
g.k.uq=function(a){var b=sN(a,0);this.ud.Om&&this.ud.oa("ombup","id.22;len."+a.totalLength+";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,aq:b,formatId:a,isEncrypted:!1,O8:!0});d.B||f_(d)}else this.ud.uq(c,b,a)};
g.k.FB=function(a){this.ud.FB(a)};
g.k.aS=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C;return g.H(function(F){switch(F.j){case 1:c.ud.aS();d=qN(a);if(!b){f=d;F.Ja(2);break}return g.z(F,wbb(c.ud,d,c.iv),3);case 3:f=F.B;case 2:e=f;if(!c.ud.enableCompression){F.Ja(4);break}h=c.ud.U();m=(l=performance)==null?void 0:l.now();return g.z(F,ibb(e,h.Ld),5);case 5:e=F.B,c.ud.oa("decompression",{ds:"DecompressionStream"in window,wasm:!!h.Ld,rt:((n=performance)==null?NaN:n.now())-m});case 4:try{p=KN(e,uQa)}catch(G){return q=G instanceof
Error?{name:G.name,message:G.message}:{},q.webcrypto=""+ +!!fN(),q.enc=""+ +c.D,r=new GJ("onesie.response.parse",q),F.return(Promise.reject(r))}if(p.A0!==1)return t={st:p.A0,webcrypto:""+ +!!fN(),textencoder:""+ +!!g.Ua.TextEncoder},u=new GJ("onesie.response.badproxystatus",t),F.return(Promise.reject(u));if(p.hZ!==200)return w={st:p.hZ},A=new GJ("onesie.response.badstatus",w),F.return(Promise.reject(A));C=g.xN(p.body);return F.return(C)}})};
g.k.wq=function(a){this.L("html5_consume_onesie_next_request_policy_for_sabr")&&(a=KN(a,OQa),this.ud.wq(a))};
g.k.Td=function(a){this.ud.Td(a)};
g.k.Qi=function(a){return this.ud.Qi(a)};
g.k.L=function(a){return this.ud.L(a)};g.x(n_,g.I);g.k=n_.prototype;g.k.dY=function(){return""};
g.k.Ir=function(a){var b,c;return((c=(b=this.eg)==null?void 0:b.get(a))==null?void 0:c.Ir())||[]};
g.k.Kl=function(a,b){var c;return!((c=e_(this,b))==null||!c.Kl(a))};
g.k.Qk=function(a,b){var c;return((c=e_(this,b))==null?void 0:c.Qk(a))||[]};
g.k.Zn=function(a,b){var c;return((c=e_(this,b))==null?void 0:c.Zn(a))||[]};
g.k.Ic=function(a){this.state=a;this.notifySubscribers()};
g.k.Zr=function(){return!1};
g.k.tO=function(){return!1};
g.k.UP=function(){};
g.k.Td=function(a){this.ea.Td(a)};
g.k.Qi=function(a){return this.ea.Qi(a)};
g.k.Cs=function(a,b,c,d){c||this.Od.Cs(d);return!1};
g.k.IB=function(a,b){this.Ym.IB(a,b)};
g.k.KR=function(){this.Td("orfb");this.wK=!0;if(xbb(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.Im(),rt:(1E3*A8a(this.Od)).toFixed(),shost:g.yn(this.mS),trigger:"o1"};this.oa("pathprobe",FJ(a))}};
g.k.aS=function(){this.Td("opr_r");this.ZY=!0};
g.k.HB=function(a,b,c,d){if(this.eg){if(!this.eg.has(a)){var e=new LX(this);this.eg.set(a,e);g.M(this,e)}var f;(f=this.eg.get(a))==null||f.HB(b,c,d);l_(this);this.L("html5_enable_sabr_ssdai")&&!c&&(this.ij=d.Jq,this.uv=d.startMs)}else l_(this)};
g.k.QR=function(a){this.dB=a};
g.k.Xu=function(a){this.X.Xu(a)};
g.k.wq=function(a){a.videoId&&this.E_.set(a.videoId,a)};
g.k.UR=function(){if(this.eg)for(var a=g.v(this.eg.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;(c=this.eg.get(b.value))==null||c.yB()}};
g.k.oa=function(a,b,c){this.ea.oa(a,b,c===void 0?!1:c)};
g.k.uq=function(a,b,c){var d;(d=e_(this,a))==null||d.uq(b,c)};
g.k.FB=function(a){this.z1.set(a.videoId,a)};
g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,u,w,A,C,F,G,K;return g.H(function(N){switch(N.j){case 1:a.logger.debug("Onesie fetch started.");a.WH?a.AO.start():a.HG.start();a.Td("or_i");b=a.X.experiments.gb("html5_onesie_verbose_timing");c={};d=(0,g.iC)();e=function(R){b&&(c[R]=(0,g.iC)()-d)};
e("loc_s");if(f=obb(a.videoData,a.FA)){N.Ja(2);break}e("loc_async");h=g.oI(a.X.experiments,"html5_onesie_redirector_timeout_ms");return g.z(N,pbb(a.videoData,a.FA,h),3);case 3:f=N.B;case 2:if(!f)return a.logger.info("Onesie URL creation failed."),l={url:"0"},m=new GJ("onesie.unavailable.hotconfig",l),a.yj(m),N.return(a.Qq);a.L1=hP(f);e("loc_e");n=g.MR(a.X,g.fT(a.videoData));if(!n.j){p=n.getValue();N.Ja(4);break}return g.z(N,n.j,5);case 5:p=N.B;case 4:q=p;e("oauth");r=rbb(a.playerRequest,a.X,a.videoData,
q,xX(a.L1));g.Ba(N,6);if(!lbb(a,r)){e("or_s_sync");a.xL=tbb(r,a.GG,a.X,a.ea,a.YO.onesieUstreamerConfig,(t=a.videoData.lS)==null?void 0:t.mp);N.Ja(8);break}e("or_s_async");return g.z(N,vbb(r,a.GG,a.X,a.ea,a.YO.onesieUstreamerConfig,(u=a.videoData.lS)==null?void 0:u.mp),9);case 9:a.xL=N.B;case 8:g.Ca(N,7);break;case 6:return w=g.Da(N),a.logger.info("Failed to create OnesieRequestProto."),a.yj(w),N.return(a.Qq);case 7:return e("or_e"),b&&a.oa("oreqvt",c),a.enableCompression=a.xL.BQ.hP,a.Td("osor"),A=
g0a(),C=g.SN(a.xL,fQa),F={method:"POST",body:C,headers:{"Content-Type":"text/plain",Referer:location.origin}},G=a.L("html5_onesie_media_capabilities"),qbb(f,a.videoData,zbb(a),G),a.logger.debug("Starting Onesie network request."),a.Om&&a.oa("ombrs","1"),K=a.ea.U().schedule,a.Od=new RY(a,{Pc:K,sJ:a.Om,ov:function(R,da){a.ea.ZG(R,da)},
Lp:a.L("html5_disable_variability_reporting_for_onesie")}),f.set("rn",""+a.Od.requestNumber),a.mS=f.Ge(),w8a(a.Od,a.mS),a.Td("or_p"),a.xhr=VY(new SP(f),A,a.Od,VQ,F),a.z0.start(),N.return(a.Qq)}})};
g.k.Jr=function(){return 2};
g.k.Zu=function(){this.Td("orh_r")};
g.k.Ds=function(){!this.wK&&this.xhr.Im()&&this.KR();if(this.PA&&!this.WH){var a;(a=this.wL)==null||a.start()}this.Nm()};
g.k.Po=function(a){a=a===void 0?!1:a;this.logger.debug("onXhrDone");this.Nm();if(!(this.Na()||this.state>=4)){var b=m_(this),c=this.xhr;b.rc=c.status;a&&(b.ab=!0);if(c.uf()){var d="onesie.net";b.msg=c.uf()}else c.status>=400?d="onesie.net.badstatus":c.fv()?this.ZY||(d="onesie.response.noplayerresponse"):d=c.status===204?"onesie.net.nocontent":"onesie.net.connect";d?this.yj(new GJ(d,b)):(this.Td("or_fs"),this.Od.xR((0,g.iC)(),c.Im(),0),this.Ic(4),this.Om&&this.oa("rqs",b));this.Om&&this.oa("ombre",
"ok."+ +!d);this.jH=!1;l_(this);kbb(this.Ym);if(!this.WH){this.HG.stop();var e;(e=this.wL)==null||e.stop()}var f;if(a=(f=this.FA)==null?void 0:x5a(f))for(f=0;f<a.length;f++)this.oa("pathprobe",a[f])}};
g.k.cY=function(){};
g.k.L_=function(){if(this.playerResponse&&this.xhr&&this.eg)for(var a=g.v(this.eg.entries()),b=a.next();!b.done;b=a.next())if(b=g.v(b.value),b.next(),b.next().value.B){this.xhr.abort();this.Po(!0);break}};
g.k.U=function(){return this.X};
g.k.L=function(a){return this.X.L(a)};
g.k.T$=function(){if(xbb(this)&&this.FA&&(!this.wK||this.L("html5_onesie_probe_ec_hosts"))){var a=this.FA;if(a.X.experiments.gb("html5_onesie_probe_ec_hosts")){var b,c=(b=a.j.get(3))==null?void 0:hP(b.location);c&&wX(a,c,"osc",this);var d;(c=(d=a.j.get(4))==null?void 0:hP(d.location))&&wX(a,c,"ocy",this)}else{var e;(d=(e=a.j.get(1))==null?void 0:hP(e.location))&&wX(a,d,"o2",this);(d=(c=a.j.get(2))==null?void 0:hP(c.location))&&wX(a,d,"o3",this)}}};
g.k.M7=function(){if(!this.Na()&&!this.isComplete()){if(this.PA){if((0,g.iC)()-this.Od.Y>1E3){var a;(a=this.Od)==null||a.eL((0,g.iC)());a=m_(this);if(this.X.yc()&&this.xhr instanceof G8a){var b=this.xhr;a.xrs=b.xhr.readyState;a.xpb=b.j.totalLength;a.xdc=b.D}this.yj(new GJ("net.timeout",a))}}else(0,g.iC)()-this.Od.j>1E4&&((b=this.Od)==null||b.eL((0,g.iC)()),this.kQ());this.isComplete()||this.AO.start()}};
g.k.kQ=function(){this.logger.info("Onesie request timed out");this.jH=!1;if(!l_(this)){var a=m_(this);a.timeout="1";this.yj(new GJ("onesie.request",a))}};
g.k.yj=function(a){var b=this;a=IJ(a);this.PA?this.ea.Sd(a):(this.Qq.reject(a),this.PA=!0);kbb(this.Ym);this.WH||this.HG.stop();this.Td("or_fe");var c,d;(c=this.FA)==null||(d=x5a(c))==null||d.forEach(function(e){b.oa("pathprobe",e)});
this.Ic(5);this.dispose()};
g.k.isComplete=function(){return this.state>=3};
g.k.bZ=function(a){var b,c;return this.isComplete()||!!((b=this.eg)==null?0:(c=b.get(a))==null?0:c.j)};
g.k.CZ=function(){return!1};
g.k.Qm=function(){return this.state===5};
g.k.notifySubscribers=function(a){for(var b=0;b<this.JH.length;b++)a&&this.JH[b].ue()!==a||Mbb(this.JH[b],this)};
g.k.zY=function(){var a,b;return((a=this.xL)==null?void 0:(b=a.zr)==null?void 0:b.CS)||0};
g.k.ya=function(){this.playerResponse="";var a;(a=this.xhr)==null||a.abort();kbb(this.Ym);this.Rl.dispose();var b;(b=this.wL)==null||b.dispose();this.Ic(-1);this.JH=[];g.I.prototype.ya.call(this)};
g.k.Nm=function(){try{var a=this.xhr;a.Im()>102400&&!this.xZ&&(this.Td("or100k"),this.xZ=!0);if(a.Xr()){var b=a.Ky(),c=b.totalLength;this.logger.debug(function(){return"handleAvailableSlices: slice length "+c});
this.Om&&this.oa("ombrss","len."+c);this.Rl.feed(b)}if(this.eg)for(var d=g.v(this.eg.keys()),e=d.next();!e.done;e=d.next()){var f=e.value;a=void 0;(a=this.eg.get(f))==null||a.yB();this.notifySubscribers(f)}}catch(h){this.yj(h)}};
g.k.Up=function(){return this.Od.requestNumber};
g.k.SP=function(a){return this.z1.get(a)};
g.k.BY=function(){return{ij:this.ij,uv:this.uv,eq:!1}};g.x(Bbb,g.I);g.k=Bbb.prototype;g.k.kH=function(a){this.ra=void 0;Qbb(this);Obb(this,a)};
g.k.NQ=function(a){return this.j.length===0?!1:Math.abs(this.j[0].zY()-a)<50};
g.k.wq=function(a){this.B=a;this.ra=(0,g.iC)()+(a.backoffTimeMs||0)};
g.k.AG=function(a){if(a.action===void 0){var b=this.ea.ex();b!==void 0&&this.Aa.Nu(b)}else if(a.action!==0||!this.La)switch(b={},b.reason=a.wda,b.action=a.action,a.action){case 1:this.policy.G&&this.K&&this.K.yE(void 0,void 0,b);break;case 0:this.La=!0;this.Aa.dP(b);break;case 2:this.Aa.handleError("sabr.config",b,1);break;case 5:Ogb(this.ea,!0);break;case 6:Ogb(this.ea,!1);break;case 3:this.policy.WC&&((a=this.manifest.ra)!=null&&(a.N=!0),this.Aa.handleError("sabr.hostfallback",b))}};
g.k.iS=function(a,b,c,d){if(this.policy.j){this.Aa.oa("ssap",{rn:d,v:b,tl:Sbb(a)});var e=this.Aa.Zf();a={Ht:a,context:c,version:b};c&&c.type&&(this.videoData.sabrContextUpdates.set(c.type,c),c.sendByDefault&&this.wk.add(c.type));e?Pbb(this,e,a):(this.Aa.oa("ssap",{cacheclips:1,rn:d,v:b}),this.N=a)}};
g.k.zG=function(a){this.policy.ra&&a&&a.type&&a.sendByDefault&&this.wk.add(a.type)};
g.k.xG=function(){};
g.k.CG=function(a){if(a.gT!==void 0&&a.hT){var b=a.gT/a.hT;this.audioTrack.N=!1;this.videoTrack.N=!1;this.policy.Xa&&(this.Aa.Qg.B=!1);var c={hd:"sabr_seek",MF:!0,JT:!0};a.seekSource&&(c.seekSource=a.seekSource);MY(this.Aa,b,c)}};
g.k.DB=function(a){a.lK&&a.mK&&fUa(this.manifest,a.lK,a.mK);this.policy.Sq&&(a.y_&&a.z_&&(this.manifest.Y=a.y_/a.z_),a.l_&&a.m_&&(this.manifest.Z=a.l_/a.m_))};
g.k.Xm=function(a){this.Aa.Xm(a)};
g.k.yG=function(a,b,c){this.policy.B&&this.Aa.oa("sabrctxtplc",{start:a?a.join("_"):"",stop:b?b.join("_"):"",discard:c?c.join("_"):""});if(a){a=g.v(a);for(var d=a.next();!d.done;d=a.next())this.wk.add(d.value)}if(b)for(b=g.v(b),a=b.next();!a.done;a=b.next())a=a.value,this.wk.has(a)&&this.wk.delete(a);if(c)for(c=g.v(c),b=c.next();!b.done;b=c.next())b=b.value,this.videoData.sabrContextUpdates.has(b)&&(this.videoData.sabrContextUpdates.delete(b),b===3&&(this.videoData.YA=""))};
g.k.DG=function(){};
g.k.BG=function(a,b){j0a(this.policy,a,4,b)};
g.k.vG=function(a){if(a==null?0:a.vZ)if(a=a.vZ.P8){a=g.v(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.formatId){var c=this.manifest.N.get(KTa(b.formatId));c&&c.info&&(c.info.debugInfo=b.debugInfo)}}};
g.k.ue=function(){return this.ea.ue()||""};
g.k.EP=function(){var a=PZ(this.audioTrack,!0)*1E3,b=PZ(this.videoTrack,!0)*1E3;return Math.min(a,b)};
g.k.Fl=function(a,b){this.Aa.oa(a,b)};
g.k.fK=function(a){jcb(this.Aa,$9a(this.va,a))};
g.k.ya=function(){g.I.prototype.ya.call(this);this.B=void 0;Obb(this,!0);this.j=[]};Tbb.prototype.jf=function(a,b){if(this.D)return Ybb(this,b);if(b=NY(a)){var c=b.B;c&&c.D&&c.j&&(a=a.C.length?a.C[0]:null)&&a.state>=2&&!a.Qm()&&a.info.lh===0&&(this.D=a,this.N=c,this.B=b.info,this.K=this.startTimeSecs=Date.now()/1E3,this.G=this.B.startTime)}return NaN};
Tbb.prototype.clear=function(){this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1};g.x(g.r_,g.I);g.k=g.r_.prototype;g.k.initialize=function(a,b,c){this.logger.debug(function(){return"Initialized, t="+a});
a=a||0;mV(this.policy)||(b=vZ(this.j),mcb(this.ea,new mZ(b.video,b.reason)),this.ea.ey(new mZ(b.audio,b.reason)));this.manifest.isManifestless&&Dab(this.D);this.G&&Vbb(this.G,this.videoTrack.j);b=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var d=!this.manifest.isManifestless;this.policy.Ov&&(d=d||this.manifest.je);this.policy.Cb||(this.currentTime=d?a:b);if(this.policy.C){var e;((e=this.ra)==null?0:Abb(e,this.ue()||""))&&bcb(this)&&acb(this,this.videoTrack)&&acb(this,this.audioTrack)&&Rbb(this.Y,
this.ra)}else this.va&&(ccb(this,this.videoTrack),ccb(this,this.audioTrack),c6a(this.va),delete this.va);c?(this.policy.Sf?(this.rb=c,u_(this,c)):u_(this,!1),g.Ev(this.XF)):(c=this.getCurrentTime()===0,ZZ(this.D,this.videoTrack,this.videoTrack.j,c),ZZ(this.D,this.audioTrack,this.audioTrack.j,c),this.policy.C&&Ebb(this.Y,!0),this.policy.Di&&this.ea.ex()||this.seek(this.getCurrentTime(),{}).Pl(function(){}),this.timing.tick("gv"));
(this.manifest.gf||this.manifest.Li||this.manifest.ib||this.manifest.Ub||this.manifest.Sc)&&this.ea.YG(this.manifest)};
g.k.resume=function(){if(this.isSuspended||this.gs){this.logger.debug("Resumed.");this.oJ=this.gs=this.isSuspended=!1;try{this.jf()}catch(a){g.mE(a)}}};
g.k.cA=function(a){a=a===void 0?!1:a;this.logger.debug("detaching media source");fcb(this);uK(this.ea)&&(this.N=NaN);a?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Ga&&this.oa("loader",{setsmb:1}),this.policy.Ha=!0):this.policy.Sf?u_(this,this.rb):u_(this,!1);this.ll()};
g.k.setAudioTrack=function(a,b,c){c=c===void 0?!1:c;if(!this.Na()){var d=!isNaN(b);c&&d&&(this.audioTrack.Y=Date.now(),this.policy.Ed&&(this.Sa=!0));if(mV(this.policy)){var e=this.C.K1(a.id);this.logger.debug(function(){return"Logging new audio format: "+e.j.info.id});
this.ea.ey(e)}else{var f=Z9a(this.j,a.id,d);this.logger.debug(function(){return"Logging new audio format: "+f.audio.info.id});
this.ea.ey(new mZ(f.audio,f.reason))}if(d&&(c=this.audioTrack.j.index.Ki(b),this.oa("setAudio",{id:a.id,cmt:b,sq:c}),c>=0)){cab(this.audioTrack,c,NaN,NaN);CQ(this.manifest,c,!1);return}this.ea.Hq()}};
g.k.setPlaybackRate=function(a){a!==this.Z.getPlaybackRate()&&this.Z.setPlaybackRate(a)};
g.k.lL=function(a){var b=a.j.info.Kh();this.logger.debug(function(){return"New "+(b?"audio":"video")+" format from SABR: "+dK(a.j.info)});
b?this.ea.ey(a):mcb(this.ea,a)};
g.k.fK=function(a){cQ(a.kb[a.kb.length-1])&&jcb(this,$9a(this.j,a.kb[0].j))};
g.k.Zt=function(){return this.ea.Zt()};
g.k.Xm=function(a){if(this.policy.wj)if(a.lj===1)this.ea.vC(0);else{if(a.lj===2||a.lj===3){var b=!1;if(a.lj===3){b=this.ea.yA();var c;this.Ab=(c=a.s1)!=null?c:Infinity;this.ea.vC(b+1);(b=Cab(this))&&this.pB(!0)}this.ea.fS(!0,b)}}else this.ea.Xm(a)};
g.k.wA=function(){return this.ea.wA()};
g.k.wl=function(){return this.ea.wl()};
g.k.kS=function(a){this.ea.kS(a)};
g.k.jda=function(){var a,b=(a=this.ea.Me())==null?void 0:a.getCurrentTime();b?this.ea.oa("rms",{cta:b}):g.Ev(this.Kb)};
g.k.jf=function(){icb(this);if(this.Ra&&rK(this.Ra)&&!this.Ra.Ak()){var a=JZ(this.videoTrack);a=this.policy.GD&&a&&aQ(a);this.manifest.isManifestless&&this.manifest.C&&zQ(this.manifest)?(this.N=zQ(this.manifest),this.Ra.Nl(this.N)):DQ(this.manifest)&&!a?isNaN(this.N)?(this.N=this.getCurrentTime()+3600,this.Ra.Nl(this.N)):this.N<=this.getCurrentTime()+1800&&(this.N=Math.max(this.N+1800,this.getCurrentTime()+3600),this.Ra.Nl(this.N)):this.Ra.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),
(!isFinite(this.N)||this.N!==a)&&a>0&&(this.Ra.Nl(a),this.N=a))}if(!this.Na())if($Ta(this.manifest)&&this.manifest.Qm()){var b=this.manifest;this.handleError("manifest.net.retryexhausted",b.rb?{rc:b.Dg}:{rc:b.Dg.toString()},1)}else if(this.policy.C)a:{try{Kbb(this.Y);this.manifest.isManifestless&&this.policy.K&&LY(this.Qg);if(mV(this.policy)&&!oK()&&this.policy.Dn&&this.Ra&&!vK(this.Ra)&&this.videoTrack.La&&this.audioTrack.La){this.oa("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.Ra,d=this.videoTrack.j,e=this.audioTrack.j;!vK(c)&&e&&d&&(VEa(c,d.info,e.info,this.policy.Lb),gcb(this,c))}var f;((f=this.Ra)==null?0:vK(f))&&this.TB();mV(this.policy)||t_(this);Ebb(this.Y)}catch(l){g.nE(l);b=l;if(b.message.includes("changeType")){this.oa("ssap",{exp:b.name,msg:b.message,s:b.stack});break a}this.handleError("fmt.unplayable",{exp:b.name,msg:b.message,s:b.stack},1)}zcb(this);g.Ev(this.Xa)}else if(!this.manifest.B||
!gab(this.videoTrack)&&!gab(this.audioTrack)||(this.videoTrack.G||this.audioTrack.G)&&this.policy.Kb?c=!1:(this.ll(),this.ea.seekTo(Infinity,{hd:"checkLoaderTracksSync",vr:!0}),c=!0),!c){icb(this);this.manifest.isManifestless&&(hab(this.videoTrack),hab(this.audioTrack),LY(this.Qg),(c=NY(this.videoTrack))&&c.B&&(c=c.B.D&&!this.policy.lk,this.oa(c===this.policy.N.pj?"strm":"strmbug",{strm:c,sfmp4:this.policy.N.pj,dfs:this.policy.lk},!0)));if(this.Ra)this.TB();else if(this.policy.D){var h;c=!1;if(this.policy.CA)for(d=
g.v([this.videoTrack,this.audioTrack]),e=d.next();!e.done;e=d.next()){f=e.value;for(e=NY(f);e&&f.So()!==JZ(f);e=NY(f))f.Rs(e);c=c||!!e}else(b=NY(this.videoTrack))&&this.videoTrack.Rs(b),(h=NY(this.audioTrack))&&this.audioTrack.Rs(h);MZ(this.videoTrack)&&MZ(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(b||h||c)&&v_(this)}t_(this);ZZ(this.D,this.videoTrack,this.videoTrack.j,!1);ZZ(this.D,this.audioTrack,this.audioTrack.j,!1);this.policy.MB||lcb(this,this.videoTrack,
this.audioTrack);uab(this.D,this.videoTrack,this.audioTrack);uab(this.D,this.audioTrack,this.videoTrack);zcb(this);this.G&&(b=this.G,b.D?(h=b.K+b.policy.ow,b.C||(h=Math.min(h,b.startTimeSecs+b.policy.Xk)),b=Math.max(0,h*1E3-Date.now())):b=NaN,isNaN(b)||g.Ev(this.Lb,b));g.Ev(this.Xa)}};
g.k.dP=function(a){this.ea.dP(a)};
g.k.TB=function(){var a=this;if(this.Ra){var b=this.Ra.j,c=this.Ra.B;Gcb(this,this.audioTrack);Gcb(this,this.videoTrack);var d=ocb(this);if(d){if(this.policy.jt){if(!b.Vw()){var e=NY(this.audioTrack);if(e){if(!q_(this,this.audioTrack,b,e.info))return;rcb(this,b,e)}}if(!c.Vw()&&(e=NY(this.videoTrack))){if(!q_(this,this.videoTrack,c,e.info))return;rcb(this,c,e)}}this.Fp||(this.Fp=(0,g.iC)(),this.logger.debug(function(){return"Appends pause start "+a.Fp+" reason "+d}),this.policy.B&&this.oa("apdps",
{r:d}))}else if(this.Fp&&(ncb(this,this.Fp),this.Fp=0),pcb(this),e=!1,this.policy.j&&UZ(this.videoTrack)||!tcb(this,this.videoTrack,c)||(e=!0,x9a(this.timing),B9a(this.timing)),this.Ra&&!this.Ra.Sg()&&(this.policy.j&&UZ(this.audioTrack)||!tcb(this,this.audioTrack,b)||(e=!0,y9a(this.timing),C9a(this.timing)),!this.Na()&&this.Ra)){if(!this.policy.Wa&&MZ(this.videoTrack)&&MZ(this.audioTrack)&&rK(this.Ra)&&!this.Ra.Ak()){c=!1;
c=JZ(this.audioTrack);if(this.policy.j){var f;b=(f=this.xb)==null?void 0:kY(f,c.Xe*1E3);c=!(!b||b.clipId!==c.clipId);this.oa("ssap",{eos:c})}else f=c.j,c=f===this.manifest.j[f.info.id];c&&(this.logger.debug("Setting EOS"),XEa(this.Ra),UUa(this.schedule))}e&&!this.Ra.isAsync()&&v_(this)}}};
g.k.J4=function(a){var b=this,c,d;(d=(a===((c=this.Ra)==null?void 0:c.j)?this.audioTrack:this.videoTrack).Da)==null||d.stop();var e;Fcb(this,a===((e=this.Ra)==null?void 0:e.j));var f;if(this.policy.Ed&&a===((f=this.Ra)==null?void 0:f.j)&&this.Wa){c=this.Wa-this.getCurrentTime();var h;this.ea.oa("asl",{l:c,xtag:(h=JZ(this.audioTrack))==null?void 0:h.j.info.j});this.Sa=!1;this.Wa=0}a.Pm()&&a.Ee().length===0&&(a.Lz(),this.Ra&&!this.Ra.Pm()&&(this.ea.U().yc()&&this.ea.oa("rms",{ld:"seek"}),this.Ra.N=
performance.now(),this.ea.rP(),this.ea.U().yc()&&g.Ev(this.Kb)));if(this.policy.La&&this.Ra){h=a===this.Ra.j;var l=a.qA();if(l){if(!l.Tb||l.Ue)h=a.qc({a:h}),h.omt=(this.getCurrentTime()+this.Fc()).toFixed(3),h.to=this.Fc(),this.oa("sbu",h),this.policy.yp&&!hK(a.Ee(),Math.min(l.Xe+XZ,l.Pf))&&this.oa("sbunb",{st:l.Xe,et:l.Pf});l.Ue&&!a.Ak()&&setTimeout(function(){var m=a.Ee(),n=gK(m,l.startTime+XZ),p=gK(m,b.getCurrentTime());(n<0||n!==p)&&b.oa("sbu_mismatch",{b:fK(m),c:b.getCurrentTime(),s:l.Tc()})},
0)}}this.jf()};
g.k.yaa=function(a){if(this.Ra){var b=JZ(a===this.Ra.j?this.audioTrack:this.videoTrack);if(a=a.TP())for(var c=0;c<a.length;c++)this.oa("appendedbuffer",{i:c,b:g.Bg(a[c].subarray(0,4096),3)});a=void 0;b&&(a=eQ(b),this.policy.j&&this.xb&&this.xb.xl()&&(a.ccid=this.xb.xl()));this.handleError("fmt.unplayable",a,1)}};
g.k.gy=function(a){this.ea.gy(a)};
g.k.XR=function(a,b,c){this.manifest.isManifestless&&R$a(this,b,c,!!a.info.video,!0)};
g.k.WR=function(a,b,c,d){a.info.video&&this.B.WR(b,c,d)};
g.k.mL=function(a){this.j.mL(a)};
g.k.mF=ba(19);g.k.mM=function(a){this.xb=a;var b;(b=this.audioTrack.Z)!=null&&(b.Yc=a);(b=this.videoTrack.Z)!=null&&(b.Yc=a);b=this.Y;b.N&&(b.Aa.oa("ssap",{addcacheclips:1,v:b.N.version,tl:Sbb(b.N.Ht)}),Pbb(b,a,b.N),b.N=void 0)};
g.k.Zf=function(){return this.xb};
g.k.HF=function(){return this.videoTrack.N||this.audioTrack.N};
g.k.seek=function(a,b){if(this.Na())return ig();if(this.HF())return ig("seeking to head");if(this.policy.Xa&&!isFinite(a))return m8a(this.Qg),hg(Infinity);icb(this);this.jq=(0,g.iC)();mV(this.policy)||t_(this,a);this.Ra&&this.Ra.j&&this.Ra.B&&!this.ea.getVideoData().DX&&(this.Ra.j.isLocked()||this.Ra.B.isLocked())&&this.ea.Hq({reattachOnLockedBuffer:1,vsb:""+this.Ra.B.isLocked(),asb:""+this.Ra.j.isLocked()});var c=this.getCurrentTime();b=this.Qg.seek(a,b);this.policy.Cb||(this.currentTime=b);kZ(this.B,
a,c);v_(this);return hg(b)};
g.k.NQ=function(a){return this.policy.C&&this.Y.NQ(a)};
g.k.kH=function(a){this.Y.kH(a)};
g.k.getCurrentTime=function(){if(this.policy.Cb){var a=this.Fc()||0;return this.ea.getCurrentTime()-a}return this.currentTime};
g.k.DP=function(){return this.audioTrack.j.info};
g.k.kA=function(){return this.videoTrack.j.info};
g.k.CP=function(){return this.audioTrack.j.info.sb};
g.k.FP=function(){return this.videoTrack.j.info.sb};
g.k.ya=function(){try{this.cA();IY(this.audioTrack);IY(this.videoTrack);var a;(a=this.audioTrack.Z)==null||i8a(a);var b;(b=this.videoTrack.Z)==null||i8a(b);this.audioTrack.dispose();this.videoTrack.dispose();g.I.prototype.ya.call(this)}catch(c){g.mE(c)}};
g.k.handleError=function(a,b,c){c=c===void 0?0:c;var d=HJ(c);if(a==="fmt.unplayable"&&this.manifest.isLive){this.policy.jt=!1;var e=this.manifest;if(e.isManifestless)for(var f in e.j)e.j[f].index.segments=[]}b=new GJ(a,b,c);g.fb(this);FJ(b.details);this.ea.handleError(b);a!=="html5.invalidstate"&&b.errorCode!=="fmt.unplayable"&&a!=="fmt.unparseable"&&d&&this.dispose()};
g.k.qc=function(){var a=JZ(this.audioTrack),b=JZ(this.videoTrack);a={lct:this.getCurrentTime().toFixed(3),lsk:this.Qg.isSeeking(),lmf:this.j.j.isLocked(),lbw:WUa(this.schedule).toFixed(3),lhd:hR(this.schedule).toFixed(3),lst:((this.schedule.G.jh()||0)*1E9).toFixed(3),laa:a?a.Tc():"",lva:b?b.Tc():"",lar:this.audioTrack.B?this.audioTrack.B.Tc():"",lvr:this.videoTrack.B?this.videoTrack.B.Tc():"",laq:""+NZ(this.audioTrack),lvq:""+NZ(this.videoTrack)};this.Ra&&!this.Ra.Sg()&&this.Ra.j&&this.Ra.B&&(a.lab=
fK(this.Ra.j.Ee()),a.lvb=fK(this.Ra.B.Ee()));this.Fp&&(a.lapt=((0,g.iC)()-this.Fp).toFixed(0),a.lapr=ocb(this));this.Ga&&(a.lapmbht=((0,g.iC)()-this.Ga).toFixed(0));return a};
g.k.ll=function(){try{this.policy.C&&this.Y.kH(!1),this.audioTrack.ll(),this.videoTrack.ll()}catch(a){g.mE(a)}this.policy.D=""};
g.k.yP=function(){return DY(this.Z)};
g.k.oa=function(a,b,c){this.ea.oa(a,b,c===void 0?!1:c)};
g.k.ue=function(){return this.ea.ue()};
g.k.vr=function(a,b){a/=b;isNaN(this.timestampOffset)&&Hcb(this,a-Math.min(a,this.policy.OD));return(a-this.timestampOffset)*b};
g.k.Fc=function(){return this.timestampOffset};
g.k.isSeeking=function(){return this.Qg.isSeeking()};
g.k.kx=function(){this.B.kx()};
g.k.hp=function(a,b,c){b=b===void 0?!1:b;c=c===void 0?{}:c;mV(this.policy)?this.C.hp(a,b,c):this.j.hp(a,b,c)};
g.k.oH=function(a,b){if(!this.K)return!1;var c=this.videoTrack.j.index.Ki(a);return this.K.oH(a,b,c)};
g.k.Ss=function(a,b){if(this.K&&this.B.Ss(a,this.K))return Hcb(this,this.timestampOffset-b),v_(this),!0;b=this.videoTrack.j.index.Ki(a);this.handleError("ad.skipfailed",{dec:!!this.K,t:a.toFixed(3),sq:b});return!1};
g.k.getManifest=function(){return this.manifest};
g.k.isOffline=function(){return!!this.ea.getVideoData().cotn};
g.k.ZG=function(a,b){this.ea.ZG(a,b)};
g.k.fC=function(a){if(this.policy.Di)this.jf();else{var b=this.ea.getVideoData().Bi;if(b){var c=this.D;c.Bh=a;c.Bi=b;a_(this)}}};
g.k.Nu=function(a){this.videoTrack.N=!1;this.audioTrack.N=!1;this.Qg.B=!1;this.ea.Nu(a)};
g.k.vT=function(a){this.Qg.vT(a-this.Fc())};
g.k.oE=function(){this.ea.oE()};
g.k.pB=function(a){a!==this.policy.Uf&&((this.policy.Uf=a)||this.jf())};
g.k.PS=function(a,b){var c=this.audioTrack.Sb,d=this.videoTrack.Sb;c&&d&&(c.remove(a,b),d.remove(a,b))};
g.k.Hq=function(a){this.ea.Hq(a)};
g.k.Ey=function(a){this.ea.Ey(a)};g.k=g.w_.prototype;g.k.lA=function(a,b,c,d,e,f){return this.Yc.lA(a,b,c,d,e,f)};
g.k.bK=function(a,b,c,d,e,f){return this.Yc.bK(a,b,c,d,e,f)};
g.k.XP=function(a){return this.Yc.XP(a)};
g.k.dK=function(a){this.Yc.dK(a)};
g.k.yE=function(a,b,c){return this.Yc.yE(a,b,c)};
g.k.kx=function(){this.Yc.kx()};
g.k.oH=function(a,b,c){return this.Yc.oH(a,b,c)};
g.k.yv=function(a,b){this.Yc.yv(a,b)};
g.k.aT=function(){this.Yc.aT()};
g.k.ZE=ba(47);g.k.Al=function(a,b,c,d){this.Yc.Al(a,b,c,d)};
g.k.UH=ba(45);g.k.eS=function(a,b,c,d,e,f,h,l,m){this.Yc.eS(a,b,c,d,e,f,h,l,m)};
g.k.xT=function(a){this.Yc.xT(a)};
g.k.Vu=function(a){return this.Yc.Vu(a)};
g.k.fP=function(a){return this.Yc.fP(a)};g.x(x_,g.GE);g.x(y_,x_);y_.prototype.K=function(a,b){if(a&&b){var c=Number(vo(a,"cpi"))*1+1;isNaN(c)||c<=0||c<this.C?(this.D.stop(),this.B.stop(),this.C=-1,this.j={}):(c>this.C&&(this.C=c,g.gd(this.j)||(this.j={},this.D.stop(),this.B.stop())),this.j[b]=a,g.Ev(this.B))}};
y_.prototype.G=function(){for(var a=g.v(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.publish;for(var d=this.C,e=this.j[c].match(wn),f=[],h=g.v(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,l.indexOf("cpi=")===0?f.push("cpi="+d.toString()):l.indexOf("ek=")===0?f.push("ek="+g.Ze(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=c.length*2;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e<c.length;++e)d[e*2+4]=c.charCodeAt(e);b.call(this,
"rotated_need_key_info_ready",new BZ(d,"fairplay",!0))}this.j={}};
y_.prototype.ya=function(){this.j={};x_.prototype.ya.call(this)};g.x(z_,x_);
z_.prototype.G=function(a){var b;a:{if((b=a.cryptoPeriodIndex)&&this.j.length>0)for(var c=g.v(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.iC)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.v(this.C.values());for(var e=d.next();!e.done;e=d.next())if(Math.abs(e.value.cryptoPeriodIndex-c)<=1){c=!0;break a}}c=!1}c?(c=a.j,c=Math.max(0,Math.random()*((isNaN(c)?120:c)-30))*1E3):c=0;this.publish("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length,
ignore:this.D});c<=0?Lcb(this,a):this.D||(this.j.push({time:b+c,info:a}),g.Ev(this.B,c))}};
z_.prototype.ya=function(){this.j=[];x_.prototype.ya.call(this)};var w3={},Tcb=(w3.DRM_TRACK_TYPE_AUDIO="AUDIO",w3.DRM_TRACK_TYPE_SD="SD",w3.DRM_TRACK_TYPE_HD="HD",w3.DRM_TRACK_TYPE_UHD1="UHD1",w3);g.x(Pcb,g.I);g.x(Vcb,g.GE);g.k=Vcb.prototype;g.k.tq=function(a){var b=this;this.Na()||a.size<=0||(a.forEach(function(c,d){var e=LQ(b.B)?d:c;d=new Uint8Array(LQ(b.B)?c:d);LQ(b.B)&&ldb(d);c=g.Bg(d,4);ldb(d);d=g.Bg(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),gdb(this,","),A_(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.Na()||(this.publish("licenseerror",a,b,c,d),a==="drm.provision"&&(a=(Date.now()-this.K)/1E3,this.K=NaN,this.publish("ctmp","provf",{et:a.toFixed(3)})));HJ(b)&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Ga&&this.N?!1:!a&&this.requestNumber===b.requestNumber};
g.k.ya=function(){this.j={};g.GE.prototype.ya.call(this)};
g.k.qc=function(){var a={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.Ha,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(a.keyStatuses=this.j);return a};
g.k.getInfo=function(){var a=this.D.join();if(B_(this)){var b=new Set,c;for(c in this.j)this.j[c].status!=="usable"&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
g.k.Ge=function(){return this.url};g.x(C_,g.I);g.k=C_.prototype;g.k.K4=function(a){if(this.G){var b=a.messageType||"license-request";this.G(new Uint8Array(a.message),b)}};
g.k.tq=function(){this.N&&this.N(this.j.keyStatuses)};
g.k.onClosed=function(){this.Na()||g.SA("xboxone")&&this.C&&this.C("closed")};
g.k.j0=function(a){this.G&&this.G(a.message,"license-request")};
g.k.h0=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.g0=function(){this.K&&this.K()};
g.k.update=function(a){var b=this;if(this.j)return(TQ.isActive()?TQ.Vo("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,YN(function(c){ndb(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 NA()};
g.k.ya=function(){this.j&&(this.Y?this.j.close().catch(g.nE):this.j.close());this.element=null;g.I.prototype.ya.call(this)};g.x(D_,g.I);g.k=D_.prototype;g.k.hO=function(){var a=this;if(this.j.keySystemAccess)return(TQ.isActive()?TQ.Vo("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.Na())if(a.B=c,TQ.isActive())TQ.Vo("emeset",function(){return a.element.setMediaKeys(c)});
else{var d;(d=a.element)==null||d.setMediaKeys(c)}});
if(KQ(this.j))this.C=new (JQ())(this.j.keySystem);else if(MQ(this.j)){this.C=new (JQ())(this.j.keySystem);var b;(b=this.element)==null||b.webkitSetMediaKeys(this.C)}else TQ.isActive()&&this.oa("emev",{v:"01b"}),tB(this.G,this.element,["keymessage","webkitkeymessage"],this.N4),tB(this.G,this.element,["keyerror","webkitkeyerror"],this.M4),tB(this.G,this.element,["keyadded","webkitkeyadded"],this.L4);return null};
g.k.setServerCertificate=function(){return this.B.setServerCertificate?this.j.flavor==="widevine"&&this.j.nm?this.B.setServerCertificate(this.j.nm):OQ(this.j)&&this.j.eb?this.B.setServerCertificate(this.j.eb):null:null};
g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.B.createSession();NQ(this.j)?c=odb(c,this.j.eb):OQ(this.j)&&(c=Kcb(c)||new Uint8Array(0));b&&b("genreq");var e=TQ.isActive()?TQ.Vo("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c);
var f=new C_(null,null,null,d,null,this.N);e.then(function(){b&&b("genreqsuccess")},YN(function(l){ndb(f,"t.generateRequest",l)}));
return f}if(KQ(this.j))return qdb(this,c);if(MQ(this.j))return pdb(this,c);if((e=this.element)==null?0:e.generateKeyRequest)this.element.generateKeyRequest(this.j.keySystem,c);else{var h;(h=this.element)==null||h.webkitGenerateKeyRequest(this.j.keySystem,c)}return this.D=new C_(this.element,this.j,c,null,null,this.N)};
g.k.N4=function(a){var b=rdb(this,a);b&&b.j0(a)};
g.k.M4=function(a){var b=rdb(this,a);b&&b.h0(a)};
g.k.L4=function(a){var b=rdb(this,a);b&&b.g0(a)};
g.k.getMetrics=function(){if(this.B&&this.B.getMetrics)try{var a=this.B.getMetrics()}catch(b){}return a};
g.k.ya=function(){this.C=this.B=null;var a;(a=this.D)==null||a.dispose();a=g.v(Object.values(this.K));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.K={};g.I.prototype.ya.call(this);delete this.element};g.k=E_.prototype;g.k.get=function(a){a=this.findIndex(a);return a!==-1?this.values[a]:null};
g.k.remove=function(a){a=this.findIndex(a);a!==-1&&(this.keys.splice(a,1),this.values.splice(a,1))};
g.k.removeAll=function(){this.keys=[];this.values=[]};
g.k.set=function(a,b){var c=this.findIndex(a);c!==-1?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
g.k.findIndex=function(a){return g.Db(this.keys,function(b){return g.Wb(a,b)})};g.x(udb,g.GE);g.k=udb.prototype;g.k.Waa=function(a){this.rj({onecpt:1});a.initData&&xdb(this,new Uint8Array(a.initData),a.initDataType)};
g.k.yba=function(a){this.rj({onndky:1});xdb(this,a.initData,a.contentType)};
g.k.gy=function(a){this.rj({onneedkeyinfo:1});this.X.L("html5_eme_loader_sync")&&(this.N.get(a.initData)||this.N.set(a.initData,a));wdb(this,a)};
g.k.MW=function(a){this.C.push(a);F_(this)};
g.k.createSession=function(a){var b=zdb(this)?u$a(a):g.Bg(a.initData);this.B.get(b);this.Ha=!0;a=new Vcb(this.videoData,this.X,a,this.drmSessionId);this.B.set(b,a);a.subscribe("ctmp",this.jL,this);a.subscribe("keystatuseschange",this.tq,this);a.subscribe("licenseerror",this.nL,this);a.subscribe("newlicense",this.d0,this);a.subscribe("newsession",this.e0,this);a.subscribe("sessionready",this.r0,this);a.subscribe("fairplay_next_need_key_info",this.W_,this);this.X.L("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange",
this.rU,this);this.X.L("html5_enable_sabr_drm_hd720p")&&a.subscribe("sabrlicenseconstraint",this.nca,this);Zcb(a,this.D)};
g.k.d0=function(a){this.Na()||(this.rj({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.publish("heartbeatparams",a)))};
g.k.e0=function(){this.Na()||(this.rj({newlcssn:1}),this.C.shift(),this.Ha=!1,F_(this))};
g.k.r0=function(){if(KQ(this.j)&&(this.rj({onsnrdy:1}),this.Oa--,this.Oa===0)){var a=this.ra,b,c;(b=a.element)==null||(c=b.msSetMediaKeys)==null||c.call(b,a.C)}};
g.k.tq=function(a){if(!this.Na()){!this.La&&this.videoData.L("html5_log_drm_metrics_on_key_statuses")&&(Adb(this),this.La=!0);this.rj({onksch:1});var b=this.rU;if(!B_(a)&&g.zC&&a.B.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(B_(a))for(var e=g.v(Object.keys(a.j)),f=e.next();!f.done;f=e.next())f=f.value,a.j[f].status==="usable"&&c.push(a.j[f].type),a.j[f].status!=="unknown"&&(d=!1);if(!B_(a)||d)c=a.D;c=fdb(c)}b.call(this,c);this.publish("keystatuseschange",
a)}};
g.k.jL=function(a,b){this.Na()||this.publish("ctmp",a,b)};
g.k.W_=function(a,b){this.Na()||this.publish("fairplay_next_need_key_info",a,b)};
g.k.nL=function(a,b,c,d){this.Na()||(this.videoData.L("html5_log_drm_metrics_on_error")&&Adb(this),this.publish("licenseerror",a,b,c,d))};
g.k.Yw=function(){return this.Z};
g.k.rU=function(a){var b=g.RO("auto",a,!1,"l");if(this.videoData.Vj){if(iRa(this.Z,b))return}else if(jRa(this.Z,a))return;this.Z=b;this.publish("qualitychange");this.rj({updtlq:a})};
g.k.nca=function(a){this.videoData.sabrLicenseConstraint=a};
g.k.ya=function(){this.j.keySystemAccess&&this.element&&(this.Da?this.element.setMediaKeys(null).catch(g.nE):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var a=g.v(this.B.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.jL,this),b.unsubscribe("keystatuseschange",this.tq,this),b.unsubscribe("licenseerror",this.nL,this),b.unsubscribe("newlicense",this.d0,this),b.unsubscribe("newsession",this.e0,this),b.unsubscribe("sessionready",this.r0,this),b.unsubscribe("fairplay_next_need_key_info",
this.W_,this),this.X.L("html5_enable_vp9_fairplay")&&b.unsubscribe("qualitychange",this.rU,this),b.dispose();this.B.clear();this.K.removeAll();this.N.removeAll();this.heartbeatParams=null;g.GE.prototype.ya.call(this)};
g.k.qc=function(){for(var a={systemInfo:this.j.qc(),sessions:[]},b=g.v(this.B.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.qc());return a};
g.k.getInfo=function(){return this.B.size<=0?"no session":""+this.B.values().next().value.getInfo()+(this.G?"/KR":"")};
g.k.rj=function(a,b){b=b===void 0?!1:b;this.Na()||(FJ(a),(this.X.yc()||b)&&this.publish("ctmp","drmlog",a))};g.x(Bdb,g.I);g.k=Bdb.prototype;g.k.uJ=function(){return!!this.RF};
g.k.AK=function(){return this.B};
g.k.handleError=function(a){var b=this;Gdb(this,a);if((a.errorCode!=="html5.invalidstate"&&a.errorCode!=="fmt.unplayable"&&a.errorCode!=="fmt.unparseable"||!Fdb(this,a.errorCode,a.details))&&!Kdb(this,a)){if(this.Ea.ra!=="yt"&&Idb(this,a)&&this.videoData.hq&&(0,g.iC)()/1E3>this.videoData.hq&&this.Ea.ra==="hm"){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.hq;c.init=this.videoData.cW/1E3;c.now=(0,g.iC)()/1E3;c.systelapsed=((0,g.iC)()-this.videoData.cW)/1E3;
a=new GJ(a.errorCode,c,2);this.ea.Of(a.errorCode,2,"SIGNATURE_EXPIRED",FJ(a.details))}if(HJ(a.severity)){var d;c=(d=this.ea.Aa)==null?void 0:d.j.j;if(this.Ea.L("html5_use_network_error_code_enums"))if(Hdb(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else{if(!this.Ea.K&&a.errorCode==="auth"&&a.details.rc===429){e="TOO_MANY_REQUESTS";var f="6"}}else Hdb(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.Ea.K||a.errorCode!=="auth"||a.details.rc!=="429"||(e="TOO_MANY_REQUESTS",f="6");this.ea.Of(a.errorCode,
a.severity,e,FJ(a.details),f)}else this.ea.publish("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.Sd(a.errorCode,a.details),d&&a.errorCode==="manifest.net.connect"&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.iC)(),tX(a,"manifest",function(h){b.K=!0;b.oa("pathprobe",h)},function(h){b.Sd(h.errorCode,h.details)}))}};
g.k.oa=function(a,b){this.ea.uc().oa(a,b)};
g.k.Sd=function(a,b){b=FJ(b);this.ea.uc().Sd(a,b)};Ndb.prototype.xP=function(a){return a?{I0:Ydb(this,a)}:{I0:rS}};
Ndb.prototype.L=function(a){return this.X.L(a)};g.x(J_,g.I);J_.prototype.onError=function(a){if(a!=="player.fatalexception"||this.provider.L("html5_exception_to_health"))a==="sabr.fallback"&&(this.encounteredSabrFallback=!0),a.match(tqb)?this.networkErrorCount++:this.nonNetworkErrorCount++};
J_.prototype.send=function(){if(!(this.C||this.j<0)){deb(this);var a=g.xM(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.hh;this.playerState.isError()?b=c&&c.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.yF(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.yF(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.yF(this.playerState,16)||g.yF(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.yF(this.playerState,1)&&g.yF(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.yF(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.yF(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.yF(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=Sgb[QS(this.provider.videoData)];a:switch(this.provider.X.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=eeb(this.provider),
f=this.B<0?a:this.B-this.j;a=this.provider.X.Vf+36E5<(0,g.iC)();b={started:this.B>=0,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.PS(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
encounteredSabrFallback:this.encounteredSabrFallback,isSabr:BS(this.provider.videoData)};a||g.VB("html5PlayerHealthEvent",b);this.C=!0;this.dispose()}};
J_.prototype.ya=function(){this.C||this.send();window.removeEventListener("error",this.CB);window.removeEventListener("unhandledrejection",this.CB);g.I.prototype.ya.call(this)};
var tqb=/\bnet\b/;var feb=/[?&]cpn=/;var keb=Math.pow(10,8);g.x(g.M_,g.I);g.k=g.M_.prototype;g.k.N9=function(){var a=g.xM(this.provider);neb(this,a)};
g.k.dF=function(){return this.La};
g.k.hF=function(){return{VB:this.VB,WB:this.WB}};
g.k.uH=function(a,b){this.VB=a;this.WB=b};
g.k.YG=function(a){this.j.lwc=[[a.gf?a.gf.toFixed():"",a.Li?a.Li.toFixed():"",a.ib?(a.ib*1E3).toFixed():"",a.Ub?(a.Ub*1E3).toFixed():"",a.Sc?(a.Sc*1E3).toFixed():""].join(":")]};
g.k.reportStats=function(a){a=a===void 0?NaN:a;if(!this.Na()&&(a=a>=0?a:g.xM(this.provider),["PL","B","S"].indexOf(this.Ie)>-1&&(!g.gd(this.j)||a>=this.G+30)&&(g.L_(this,a,"vps",[this.Ie]),this.G=a),!g.gd(this.j))){this.sequenceNumber===7E3&&g.nE(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){N_(this,a);var b=a,c=this.provider.ea.oF(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.VB,h=e&&!this.WB;d>c.totalVideoFrames||f>5E3?veb(this,"html5.badframedropcount","df."+d+";tf."+
c.totalVideoFrames):(f>0||h)&&g.L_(this,b,"df",[f]);this.VB=d;this.WB=e;this.Z>0&&(g.L_(this,a,"glf",[this.Z]),this.Z=0);U2.isActive()&&(a=U2.YX(),Object.keys(a).length>0&&this.oa("profile",a));this.Kb&&O_(this,"lwnmow");this.provider.X.yc()&&this.provider.L("html5_record_now")&&this.oa("now",{wt:(0,g.iC)()});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=bT(this.provider.videoData);a.content_v=dT(this.provider.videoData);a.ns=this.provider.X.ra;a.fexp=CUa(this.provider.X.experiments).toString();a.cl=(650102465).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=QS(this.provider.videoData))&&(a.live=b);this.provider.videoData.bj()&&
(a.drm=1,this.provider.videoData.K&&(a.drm_system=eqb[this.provider.videoData.K.flavor]||0),this.provider.videoData.Xk&&(a.drm_product=this.provider.videoData.Xk));wA()&&this.provider.videoData.G&&(a.ctt=this.provider.videoData.G,a.cttype=this.provider.videoData.An,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.AU&&(a.dai_fallback=
"1")):this.provider.videoData.qd?a.dai="cs":this.provider.videoData.XD&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.FZ){if(b=this.provider.videoData.FZ,a&&b)for(b.ns==="3pp"&&(a.ns="3pp"),this.Fd.has(b.ns)&&O_(this,"hbps"),b.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=b.shbpslc),c=g.v(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.Ed.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId;
this.provider.L("html5_record_qclc_in_qoe_stats_dictionary")||(a.qclc=qeb(this,a.seq));this.Cb&&(a.embargoed="1");g.md(a,this.provider.X.j);this.provider.L("html5_record_qclc_in_qoe_stats_dictionary")&&(b=a.seq)&&(b=qeb(this,+b),this.j.qclc=[b]);a=g.to("//"+this.provider.X.Hn+"/api/stats/qoe",a);c=b="";d=g.v(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,this.j[e]===null?g.nE(new g.FB("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),e.length>100?c+=e:b+=
e);reb(this,a+b,c.replace(/ /g,"%20"))}this.j={}}};
g.k.Ey=function(a){this.Kb=a};
g.k.S1=function(){if(this.provider.videoData.K){var a=this.provider.videoData.K;O_(this,"eme-"+(a.keySystemAccess?"final":KQ(a)?"ms":NQ(a)?"ytfp":MQ(a)?"safarifp":"nonfinal"))}};
g.k.FG=function(a){var b=g.xM(this.provider),c=[a.j.id,a.B,this.Cc,a.reason];a.token&&c.push(a.token);g.L_(this,b,"vfs",c);this.Cc=a.j.id;c=this.provider.ea.getPlayerSize();if(c.width>0&&c.height>0){c=[Math.round(c.width),Math.round(c.height)];var d=g.DR();d>1&&c.push(d);g.L_(this,b,"view",c)}this.eb||(this.provider.X.yc()&&O_(this,"rqs2"),this.provider.videoData.j&&XO(this.provider.videoData.j)&&(this.j.preload=["1"]));this.C=this.eb=!0;a.reason==="m"&&++this.le===100&&web(this,2);g.L_(this,b,"vps",
[this.Ie]);this.reportStats(b)};
g.k.kG=function(a){var b=g.xM(this.provider);if(a.j.id!==this.Oa){var c=[a.j.id,this.Oa,a.reason];a.token&&c.push(a.token);g.L_(this,b,"afs",c);this.Oa=a.j.id}};
g.k.Wu=ba(51);g.k.Wo=function(a){this.Cb=a};
g.k.Lj=ba(30);g.k.onPlaybackRateChange=function(a){var b=g.xM(this.provider);a&&a!==this.Bc&&(g.L_(this,b,"rate",[a]),this.Bc=a);this.reportStats(b)};
g.k.No=ba(26);g.k.getPlayerState=function(a){if(g.yF(a,128))return"ER";if(g.yF(a,2048))return"B";if(g.yF(a,512))return"SU";if(g.yF(a,16)||g.yF(a,32))return"S";if(a.isOrWillBePlaying()&&g.yF(a,64))return"B";var b=uqb[GK(a)];g.zI(this.provider.X)&&b==="B"&&this.provider.ea.getVisibilityState()===3&&(b="SU");b==="B"&&g.yF(a,4)&&(b="PB");return b};
g.k.ya=function(){g.I.prototype.ya.call(this);g.EA(this.K);g.EA(this.Lb)};
g.k.UL=function(a){this.isOffline=a;g.L_(this,g.xM(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.k.oa=function(a,b,c){var d=this.j.ctmp||[],e=this.Ud.indexOf(a)!==-1;e||this.Ud.push(a);if(!c||!e){var f=typeof b!=="string"?FJ(b):b;f=xeb(f);if(!c&&!/^t[.]/.test(f)){var h=g.xM(this.provider)*1E3;f="t."+h.toFixed()+";"+f}d.push(a+":"+f);this.logger.debug(function(){return"ctmp "+a+" "+f});
this.j.ctmp=d;seb(this);return h}};
g.k.XG=function(a,b,c){this.D={Rda:Number(this.oa("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),G_:a,Ada:b,isAd:c}};
g.k.zy=function(a,b,c){g.L_(this,g.xM(this.provider),"ad_playback",[a,b,c])};
g.k.resume=function(){var a=this;this.provider.X.yc()&&this.oa("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.K)?teb(this):this.K=g.CA(function(){a.reportStats()},1E4)};
var x3={},uqb=(x3[5]="N",x3[-1]="N",x3[3]="B",x3[0]="EN",x3[2]="PA",x3[1]="PL",x3[-1E3]="ER",x3[1E3]="N",x3),K_=[];zeb.prototype.LP=function(){return this.j};
zeb.prototype.update=function(){if(this.N){var a=this.provider.ea.Yf()||0;this.provider.X.L("html5_ssap_vss_fix")&&(a=this.provider.ea.HJ(this.provider.videoData.clientPlaybackNonce)||0);var b=g.xM(this.provider);a>=this.provider.ea.getDuration()-.1&&(this.previouslyEnded=!0);if(a!==this.j||Ceb(this,a,b)){var c;if(!(c=a<this.j||a-this.j>b-this.kq+2||Ceb(this,a,b))){c=this.provider.ea.getVolume();var d=c!==this.Y,e=this.provider.ea.isMuted()?1:0;e!==this.Z?(this.Z=e,c=!0):(!d||this.D>=0||(this.Y=c,
this.D=b),c=b-this.D,this.D>=0&&c>2?(this.D=-1,c=!0):c=!1)}c&&(R_(this),this.C=a);this.kq=b;this.j=a}}};Deb.prototype.send=function(a){var b=this;if(!this.Ya){var c=Feb(this),d=g.to(this.uri,c);this.X.L("vss_through_gel_double")&&Geb(d);this.va&&!this.X.L("html5_simplify_pings")?Leb(this,d):Eeb(this,a).then(function(e){b.va&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});jeb(d,e,{token:b.Y,bU:b.Kb,mdxEnvironment:b.mdxEnvironment},b.X,a,b.Da,b.isFinal&&b.Vf||b.Ha||b.C&&b.Wf)});
this.Ya=!0}};
Deb.prototype.B=function(a){a===void 0&&(a=NaN);return Number(a.toFixed(3)).toString()};
var y3={},Jeb=(y3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,y3.LIVING_ROOM_APP_MODE_MAIN=1,y3.LIVING_ROOM_APP_MODE_KIDS=2,y3.LIVING_ROOM_APP_MODE_MUSIC=3,y3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,y3.LIVING_ROOM_APP_MODE_GAMING=5,y3),z3={},Ieb=(z3.EMBEDDED_PLAYER_MODE_UNKNOWN=0,z3.EMBEDDED_PLAYER_MODE_DEFAULT=1,z3.EMBEDDED_PLAYER_MODE_PFP=2,z3.EMBEDDED_PLAYER_MODE_PFL=3,z3);g.x(T_,g.I);g.k=T_.prototype;g.k.Fg=function(){this.j.update();Teb(this)&&(Neb(this),Oeb(this),this.gt())};
g.k.ya=function(){g.I.prototype.ya.call(this);W_(this);Aeb(this.j)};
g.k.qc=function(){return Feb(U_(this,"playback"))};
g.k.gt=function(){this.provider.videoData.N.eventLabel=bT(this.provider.videoData);this.provider.videoData.N.playerStyle=this.provider.X.playerStyle;this.provider.videoData.Cj&&(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.Cj;a.isAd=b};
g.k.Ji=function(a){var b=U_(this,"engage");b.ra=a;return Heb(b,Zeb(this.provider))};Yeb.prototype.isEmpty=function(){return this.endTime===this.startTime};Y_.prototype.L=function(a){return this.X.L(a)};
Y_.prototype.getCurrentTime=function(a){if(this.L("html5_ssap_current_time_for_logging_refactor")){var b=this.ea.Zf();if(b&&(a=a||b.xl()))return oY(b,a)}else if(g.DS(this.videoData)){var c=this.ea.Zf();if(c)return a=this.ea.getCurrentTime(),c=(((b=kY(c,a*1E3))==null?void 0:b.Jl)||0)/1E3,a-c}return this.ea.getCurrentTime()};
Y_.prototype.Yf=function(a){if(this.L("html5_ssap_current_time_for_logging_refactor")){var b=this.ea.Zf();if(b&&(a=a||b.xl()))return oY(b,a)}else if(g.DS(this.videoData)){var c=this.ea.Zf();if(c)return a=this.ea.Yf(),c=(((b=kY(c,a*1E3))==null?void 0:b.Jl)||0)/1E3,a-c}return this.ea.Yf()};
var $eb={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.x(g.Z_,g.I);g.k=g.Z_.prototype;g.k.Fg=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Rg){var a;(a=this.C.get(this.Rg))==null||a.Fg()}else this.j&&this.j.Fg()};
g.k.Wo=function(a){this.qoe&&this.qoe.Wo(a)};
g.k.Lj=ba(29);g.k.Sd=function(a,b){this.qoe&&veb(this.qoe,a,b);if(this.B)this.B.onError(a)};
g.k.FG=function(a){this.qoe&&this.qoe.FG(a)};
g.k.kG=function(a){this.qoe&&this.qoe.kG(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a);this.j&&R_(this.j.j)};
g.k.Wu=ba(50);g.k.oa=function(a,b,c){this.qoe&&this.qoe.oa(a,b,c)};
g.k.XG=function(a,b,c){this.qoe&&this.qoe.XG(a,b,c)};
g.k.YG=function(a){var b;(b=this.qoe)==null||b.YG(a)};
g.k.Ey=function(a){this.qoe&&this.qoe.Ey(a)};
g.k.zy=function(a,b,c){this.qoe&&this.qoe.zy(a,b,c)};
g.k.No=ba(25);g.k.dF=function(){if(this.qoe)return this.qoe.dF()};
g.k.qc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Rg){var a;(a=this.C.get(this.Rg))==null||a.qc()}else if(this.j)return this.j.qc();return{}};
g.k.hF=function(){var a;return(a=this.qoe)==null?void 0:a.hF()};
g.k.uH=function(a,b){var c;(c=this.qoe)==null||c.uH(a,b)};
g.k.Ji=function(a){return this.j?this.j.Ji(a):function(){}};
g.k.gt=function(){this.j&&this.j.gt()};
g.k.getVideoData=function(){return this.provider.videoData};
g.k.resume=function(){this.qoe&&this.qoe.resume()};g.x($_,g.I);
$_.prototype.gJ=function(a,b,c){if(this.j.has(a)){var d=this.j.get(a);if(b.videoId&&!afb(d))this.B.oa("ssap",{rlc:a}),o7a(this,a);else return}if(!this.j.has(a)){d=new Y_(b,this.X,this.ea);var e=Math.round(g.xM(this.B.provider)*1E3);d=new g.Z_(d,e);afb(d)||this.B.oa("nqv",{vv:b.videoId});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}bfb(d);c===2&&(this.X.L("html5_log_ad_playback_docid")?(c=this.B,c.qoe&&(c=c.qoe,d=b.Bc||"",e=
b.breakType||0,b=b.videoId||"",f=this.X.ra||"yt",g.L_(c,g.xM(c.provider),"ad_playback",[a,d,e,b,f]))):this.B.zy(a,b.Bc||"",b.breakType||0))}};
$_.prototype.uc=function(a){a=a||this.Rg;return this.j.get(a)||this.B};g.x(a0,g.I);g.k=a0.prototype;
g.k.nf=function(a,b){this.sync();b&&this.j.array.length>=2E3&&this.KE("captions",1E4);b=this.j;if(a.length>1&&a.length>b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else for(var c=g.v(a),d=c.next();!d.done;d=c.next())d=d.value,!b.array.length||b.j(d,b.array[b.array.length-1])>0?b.array.push(d):g.Xb(b.array,d,b.j);a=g.v(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.namespace==="ad"&&this.D("ssap",{acrsid:b.getId(),acrsst:b.start,acrset:b.end,acrscpt:b.playerType});this.C=NaN;this.sync()};
g.k.Yo=function(a){a.length>1E4&&g.nE(new g.FB("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.Na()){for(var b=g.v(a),c=b.next();!c.done;c=b.next())(c=c.value)&&c.namespace==="ad"&&this.D("ssap",{rcrid:c.getId(),rcst:c.start,rcet:c.end,rcpt:c.playerType});var d=new Set(a);this.B=this.B.filter(function(e){return!d.has(e)});
ofb(this.j,d);this.sync()}};
g.k.KE=function(a,b){var c=(isNaN(this.C)?g.yF(this.K(),2)?0x8000000000000:this.Y()*1E3:this.C)-b;b=this.wl().filter(function(d){return d.namespace===a&&d.end<c});
this.Yo(b);return b};
g.k.wl=function(){return this.Na()?[]:this.j.array};
g.k.reset=function(){this.started=!1;this.G.stop();this.j.array=[];this.B=[];this.sync()};
g.k.sf=function(a){var b=this.wl().filter(function(c){return c.namespace===a});
this.Yo(b);return b};
g.k.jK=function(a){return this.wl().some(function(b){return b.namespace===a})};
g.k.Vy=function(a,b){var c=[],d=lfb(this.j,0x7ffffffffffff),e=[];this.D("ssap",{mecrs:d.length,cpn:b});d=g.v(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f.active&&(this.D("ssap",{acre:f.id,st:f.start,et:f.end,cpn:b,cpt:f.playerType,pt:a}),b&&b===f.C?(e.push(f),this.D("ssap",{acrec:f.id,st:f.start,et:f.end,pt:a})):f.playerType===a&&(e.push(f),this.D("ssap",{acret:f.id,st:f.start,et:f.end})));c=c.concat(this.yJ(e));rfb(this,c);c=[];b=[];d=g.v(this.B);for(f=d.next();!f.done;f=d.next())f=f.value,
f.active&&f.playerType===a&&f.start===0x7ffffffffffff&&b.push(f);c=c.concat(this.AJ(b));rfb(this,c);return e.length};
g.k.yJ=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&this.B.indexOf(d)===-1&&(this.B.push(d),b.push([1,d]))}return b};
g.k.AJ=function(a){var b=[];if(!a.length)return b;a.sort(g.$Ca);a=g.v(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.sync=function(){this.N=!0;if(!this.Z){for(var a=3;this.N&&a;)this.N=!1,this.Z=!0,this.wZ(),this.Z=!1,a--;this.K().isPlaying()&&(a=nfb(this.j,this.C),!isNaN(a)&&a<0x7ffffffffffff&&(a=(a-this.C)/this.Da(),this.G.start(a)))}};
g.k.wZ=function(){if(this.started&&!this.Na()){this.G.stop();var a=this.K();g.yF(a,32)&&this.va.start();for(var b=g.yF(this.K(),2)?0x8000000000000:this.Y()*1E3,c=g.yF(a,2),d=[],e=[],f=g.v(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?h.end<0x8000000000000:!h.contains(b))&&e.push(h);d=d.concat(this.AJ(e));f=e=null;c?(a=lfb(this.j,0x7ffffffffffff),e=a.filter(function(l){return l.end<0x8000000000000}),f=mfb(this.j)):a=this.C<=b&&kFa(a)?kfb(this.j,this.C,b):lfb(this.j,b);
d=d.concat(this.yJ(a));e&&(d=d.concat(this.AJ(e)));f&&(d=d.concat(this.yJ(f)));this.C=b;rfb(this,d)}};
g.k.ya=function(){this.B=[];this.j.array=[];g.I.prototype.ya.call(this)};
g.BX.uK(a0,{nf:"crmacr",yJ:"crmncr",AJ:"crmxcr",wZ:"crmis",Yo:"crmrcr"});g.x(d0,g.GE);d0.prototype.gq=function(){return this.Z};
d0.prototype.Xn=function(){return Math.max(this.K()-f0(this)*this.j,this.videoData.pd())};g.x(i0,g.I);i0.prototype.jf=function(){var a=this,b=this.ea.Me(),c=this.ea.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=c.state===8&&d>this.j,f=g.yF(c,8)&&g.yF(c,16),h=this.ea.Mm().isBackground()||c.isSuspended();j0(this,this.rb,f&&!h,e,"qoe.slowseek",function(){},"timeout");
var l=isFinite(this.j);l=f&&l&&eFa(b,this.j);var m=!d||Math.abs(d-this.j)>10;j0(this,this.Cb,l&&m&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
m=l&&hK(b.Ih(),this.j);var n=this.ea.Aa;l=!n||!n.policy.Wa;var p=function(){b.seekTo(a.j+.001)};
j0(this,this.Wa,m&&l&&!h,e,"qoe.slowseek",p,"jiggle_cmt");l=function(){return G_(a.ea)};
j0(this,this.eb,m&&!h,e,"qoe.slowseek",l,"new_elem");m=kFa(c);var q=c.isBuffering(),r=b.Ih(),t=gK(r,d),u=t>=0&&r.end(t)>d+5,w=m&&q&&u,A=this.ea.getVideoData();j0(this,this.Xa,d<.002&&this.j<.002&&f&&g.zI(this.X)&&g.cT(A)&&!h,e,"qoe.slowseek",l,"slow_seek_shorts");j0(this,this.ra,A.xk()&&f&&!h&&!A.Ha,e,"qoe.slowseek",l,"slow_seek_gapless_shorts");j0(this,this.Da,w&&!h,m&&!q,"qoe.longrebuffer",p,"jiggle_cmt");j0(this,this.Ha,w&&!h,m&&!q,"qoe.longrebuffer",l,"new_elem_nnr");if(n){var C=n.getCurrentTime();
f=b.gx();f=QEa(f,C);f=!n.isSeeking()&&d===f;j0(this,this.Ub,m&&q&&f&&!h,m&&!q&&!f,"qoe.longrebuffer",function(){b.seekTo(C)},"seek_to_loader")}f={};
p=gK(r,Math.max(d-3.5,0));w=p>=0&&d>r.end(p)-1.1;var F=p>=0&&p+1<r.length?r.start(p+1)-r.end(p):9999;f.mindex=t;f.disIndex=p;f.isdisc=p>=0&&w&&F<11;f.close2edge=w;f.gapsize=F;f.buflen=r.length;this.D&&(f.seekSour=this.D);if(p=this.ea.Zf()){w=p.xl();F=w!==kY(p,d*1E3).clipId;var G=g.oI(this.X.experiments,"html5_ssap_skip_seeking_offset_ms"),K=(iY(p,w)+G)/1E3;j0(this,this.La,F&&m&&q&&!h,m&&!q,"qoe.longrebuffer",function(){b.seekTo(K)},"ssap_clip_not_match")}j0(this,this.Ga,m&&q&&!h,m&&!q,"qoe.longrebuffer",
function(){},"timeout",f);
f=c.isSuspended();f=s_(this.ea)&&!f;j0(this,this.N,f,!f,"qoe.start15s",function(){a.ea.Hg("ad")},"ads_preroll_timeout");
p=d-this.C<.5;var N;f=!((N=this.ea.Zf())==null||!N.Cl());F=(w=A.isAd()||f&&this.X.experiments.gb("html5_ssap_skip_slow_ad"))&&m&&!q&&p;N=function(){var R=a.ea,da=g.DS(R.videoData)&&R.xb,oa=R.zd.Wc();(oa&&R.videoData.isAd()&&oa.getVideoData().qd===R.getVideoData().qd||!R.videoData.If)&&!da?R.Of("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+R.videoData.videoId):yS(R.videoData,"html5_ssap_skip_slow_ad")&&da&&R.xb.Cl()&&(R.Sd(new GJ("ssap.transitionfailure",{cpn:kY(R.xb,R.Yf()).clipId,pcpn:R.xb.xl(),
cmt:R.Yf()})),a7a(R.xb))};
j0(this,this.Kb,F,!F,"ad.rebuftimeout",N,"skip_slow_ad");p=w&&q&&hK(b.Ih(),d+5)&&p;j0(this,this.Ab,p&&!h,!p,"ad.rebuftimeout",N,"skip_slow_ad_buf");N=c.isOrWillBePlaying()&&g.yF(c,64)&&!h;j0(this,this.Lb,N,e,"qoe.start15s",function(){},"timeout");
N=!!n&&!n.Ra&&c.isOrWillBePlaying();j0(this,this.Oa,N,e,"qoe.start15s",l,"newElemMse");N=kK(r,0);p=g.yF(c,16)||g.yF(c,32);p=!h&&c.isOrWillBePlaying()&&q&&!p&&(g.yF(c,64)||d===0)&&N>5;j0(this,this.ib,g.cT(A)&&p,m&&!q,"qoe.longrebuffer",function(){a.ea.Hq()},"reset_media_source");
j0(this,this.Ya,g.cT(A)&&p,m&&!q,"qoe.longrebuffer",l,"reset_media_element");this.C===0&&(this.K=d);p=q&&this.j===0&&d>1&&d===this.K;j0(this,this.Sa,g.cT(A)&&p,m&&!q,"qoe.slowseek",function(){b.seekTo(0)},"reseek_after_time_jump");
h=c.isOrWillBePlaying()&&!h;u=DX(this.ea)-d<6&&!u&&this.ea.yu();j0(this,this.Z,A.xk()&&h&&q&&u,m&&!q,"qoe.longrebuffer",function(){G_(a.ea,!1,!0)},"handoff_end_long_buffer_reload");
n=(n==null?void 0:Icb(n))||NaN;n=r.length>1||!isNaN(n)&&n-.1<=d;j0(this,this.Y,IS(A)&&h&&q&&n,m&&!q,"qoe.longrebuffer",l,"gapless_slice_append_stuck");n=t>=0&&r.end(t)>=2;h=IS(A)&&this.ea.v2&&n&&!A.Ha&&h&&(q||g.yF(c,8)&&g.yF(c,16));j0(this,this.va,h,e,"qoe.start15s",l,"gapless_slow_start");c=!!(f&&N>5&&c.isPlaying()&&d<.1);j0(this,this.Qb,c,d>.5&&m,"qoe.longrebuffer",l,"ssap_stuck_in_ad_beginning");this.C=d;this.G.start()}};
i0.prototype.Sd=function(a,b,c){b=this.qc(b);b.wn=c;b.wdup=this.B[a]?"1":"0";this.ea.Sd(new GJ(a,b));this.B[a]=!0};
i0.prototype.qc=function(a){a=Object.assign(this.ea.qc(!0),a.qc());this.j&&(a.stt=this.j.toFixed(3));this.ea.getVideoData().isLivePlayback&&(a.ct=this.ea.getCurrentTime().toFixed(3),a.to=this.ea.Fc().toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
g0.prototype.reset=function(){this.j=this.B=this.C=this.startTimestamp=0;this.D=!1};
g0.prototype.test=function(a){if(!this.G||this.B)return!1;if(!a)return this.reset(),!1;a=(0,g.iC)();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};
g0.prototype.qc=function(){var a={},b=(0,g.iC)();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.x(Hfb,g.I);g.k=Hfb.prototype;g.k.setMediaElement=function(a){(this.mediaElement=a)?(this.mediaElement&&(this.G||this.D||!this.mediaElement.XS()||this.seekTo(.01,{hd:"seektimeline_setupMediaElement"})),k0(this)):m0(this)};
g.k.getCurrentTime=function(){return!isNaN(this.B)&&isFinite(this.B)?this.B:this.mediaElement&&Vfb(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0};
g.k.ex=function(){return this.Ya};
g.k.Yf=function(){return this.getCurrentTime()-this.Fc()};
g.k.Xn=function(){return this.j?this.j.Xn():Infinity};
g.k.isAtLiveHead=function(a){if(!this.j)return!1;a===void 0&&(a=this.getCurrentTime());return e0(this.j,a)};
g.k.gq=function(){return!!this.j&&this.j.gq()};
g.k.seekTo=function(a,b){var c=b===void 0?{}:b;b=c.TH===void 0?!1:c.TH;var d=c.iU===void 0?0:c.iU;var e=c.qx===void 0?!1:c.qx;var f=c.cU===void 0?0:c.cU;var h=c.hd===void 0?"":c.hd;var l=c.seekSource===void 0?void 0:c.seekSource;var m=c.vr===void 0?!1:c.vr;var n=c.MF===void 0?!1:c.MF;c=c.JT===void 0?!1:c.JT;m&&(a+=this.Fc());BS(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&l===29&&(this.Ya=void 0);if(m=a<this.Oa&&!!this.Aa){this.ea.oa("sdai",{sk2bk:a.toFixed(3),mt:(a-this.timestampOffset).toFixed(3),
lstadj:this.Oa.toFixed(3)});this.Oa=NaN;this.timestampOffset-=1E3;var p;if((p=this.Aa)!=null){Hcb(p,p.timestampOffset-1E3);var q=p.manifest,r=new Set;for(w in q.j){var t=q.j[w].index,u=t.Ww();u&&!r.has(u)&&(u.startTime+=1E3,u.endTime=u.startTime+u.duration,r.add(u));t.segments.length&&(u=t.segments[t.segments.length-1],t.segments=[],t.segments.push(u))}p.K&&p.K.aT();kZ(p.B,0,0,!0)}}p=a;var w=!isFinite(p)||(this.j?e0(this.j,p):p>=this.qe())||!g.VS(this.videoData);w||(p={st:p,mst:this.qe()},this.j&&
this.L("html5_high_res_seek_logging")&&(p.ht=this.j.Xn(),p.adft=Afb(this.j)),this.ea.oa("seeknotallowed",p));if(!w)return this.C&&(this.C=null,Sfb(this)),hg(this.getCurrentTime());w=.005;n&&this.L("html5_sabr_seek_no_shift_tolerance")&&(w=0);if(Math.abs(a-this.B)<=w&&this.ra)return this.G;h&&(w=a,(this.X.yc()||this.L("html5_log_seek_reasons"))&&this.ea.oa("seekreason",{reason:h,tgt:w}));l&&(this.Da.D=l);this.ra&&m0(this);this.G||(this.G=new xK);a&&!isFinite(a)&&Lfb(this,!1);(h=c||m)||(h=a,h=!(this.videoData.isLivePlayback&&
this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&this.mediaElement.al()>0&&$Ea(this.mediaElement)>0)||CS(this.videoData)&&this.pd()===this.qe(!1)?0:isFinite(h)||!CS(this.videoData)));h||(a=Ufb(this,a,e));a&&!isFinite(a)&&Lfb(this,!1);this.D=a;this.Wa=f;this.B=a;this.Z=0;this.j&&(e=this.j,f=a,Bfb(e,f,!1),Cfb(e,f));e=this.ea;f=a;h={TH:b,seekSource:l};e.Rc.D=f;c=e.iE;c.mediaTime=f;c.j=!0;h.TH&&Ngb(e,h);h=f>e.videoData.endSeconds&&f>e.videoData.limitedPlaybackDurationInSeconds;e.Dr&&h&&isFinite(f)&&
Agb(e);f<e.qe()-.01&&(h=EK(e.playerState,2),g.yF(h,8)&&(h=EK(h,4)),e.Hc(h));e.publish("SEEK_TO",e,f);this.G&&(b?d&&this.Xa.start(d):(b={MF:n,seekSource:l},this.ra=!0,Gfb(this,b)));(b=this.ea.Dr)&&a>b.start&&Agb(this.ea);return this.G};
g.k.qe=function(a){if(!this.videoData.isLivePlayback)return chb(this.ea);var b;return iT(this.videoData)&&((b=this.mediaElement)==null?0:b.isPaused())&&this.videoData.j?(a=this.getCurrentTime(),VXa(this.qf(a)*1E3)+a):CS(this.videoData)&&this.videoData.Ya&&this.videoData.j?this.videoData.j.qe()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&&this.j?this.j.Xn():chb(this.ea)+this.timestampOffset:this.mediaElement?VA()?VXa(this.mediaElement.vI().getTime()):$Ea(this.mediaElement)+this.timestampOffset||
this.timestampOffset:this.timestampOffset};
g.k.pd=function(){if(g.DS(this.videoData)){var a=this.ea;g.DS(a.videoData);var b,c;return(c=(b=a.xb)==null?void 0:b.pd())!=null?c:a.videoData.pd()}b=this.videoData?this.videoData.pd()+this.timestampOffset:this.timestampOffset;return iT(this.videoData)&&this.videoData.j&&(c=Number((a=this.videoData.progressBarStartPosition)==null?void 0:a.utcTimeMillis)/1E3,a=this.getCurrentTime(),a=this.qf(a)-a,!isNaN(c)&&!isNaN(a))?Math.max(b,c-a):b};
g.k.rP=function(){this.G||this.seekTo(this.D,{hd:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
g.k.HF=function(){return this.ra&&!isFinite(this.B)};
g.k.ya=function(){Mfb(this,null);this.Da.dispose();g.I.prototype.ya.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.jS=function(a){this.timestampOffset=a};
g.k.getStreamTimeOffset=function(){return CS(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.k.Fc=function(){return this.timestampOffset};
g.k.qf=function(a){return this.videoData.j.qf(a-this.timestampOffset)};
g.k.Zw=function(){if(!this.mediaElement)return 0;if(WS(this.videoData)){var a=this.mediaElement,b=a.Ih();a=(jK(b)>0&&a.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.pd();b=this.qe()-this.pd();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.Zw()};
g.k.ey=function(a){this.K&&(this.K.j=a)};
g.k.fC=function(a,b){this.ea.oa("requestUtcSeek",{time:a});BS(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&(this.Ya=a);var c;(c=this.Aa)==null||c.fC(a);b&&(this.va=b)};
g.k.Nu=function(a){BS(this.videoData)&&this.L("html5_sabr_enable_utc_seek_requests")&&(this.Ya=void 0);if(this.va)this.ea.oa("utcSeekingFallback",{source:"streamTime",timeSeconds:this.va}),this.ea.seekTo(this.va,{hd:"utcSeekingFallback_streamTime"}),this.va=0;else{var b=this.getCurrentTime();isNaN(b)||(a=this.qf(b)-a,b-=a,this.ea.oa("utcSeekingFallback",{source:"estimate",timeSeconds:b}),this.ea.seekTo(b,{hd:"utcSeekingFallback_estimate"}))}};
g.k.oE=function(){this.va=0};
g.k.L=function(a){return this.X&&this.X.L(a)};o0.prototype.Du=function(){return this.started};
o0.prototype.start=function(){this.started=!0};
o0.prototype.reset=function(){this.j=this.started=!1};var dgb=!1;g.x(g.s0,g.GE);g.k=g.s0.prototype;g.k.ya=function(){this.logger.debug("dispose");g.EA(this.HL);Z5a(this.Lf);this.visibility.unsubscribe("visibilitystatechange",this.Lf);rgb(this);w0(this);g.zv.ek(this.wy);this.Oj();this.Mf=null;g.ub(this.videoData);g.ub(this.rl);g.ub(this.jO);g.ub(this.kO);g.vb(this.oaa);this.Dr=null;g.GE.prototype.ya.call(this)};
g.k.zy=function(a,b,c,d,e){if(this.X.L("html5_log_ad_playback_docid")){var f=this.uc();if(f.qoe){f=f.qoe;var h=this.X.ra||"yt";g.L_(f,g.xM(f.provider),"ad_playback",[a,b,c,e,h])}}else this.uc().zy(a,b,c);this.L("html5_log_media_perf_info")&&this.oa("adloudness",{ld:d.toFixed(3),cpn:a})};
g.k.CP=function(){var a;return(a=this.Aa)==null?void 0:a.CP()};
g.k.FP=function(){var a;return(a=this.Aa)==null?void 0:a.FP()};
g.k.kA=function(){var a;return(a=this.Aa)==null?void 0:a.kA()};
g.k.DP=function(){var a;return(a=this.Aa)==null?void 0:a.DP()};
g.k.bj=function(){return this.videoData.bj()};
g.k.uA=function(){return this.kB};
g.k.gJ=function(){!this.jB||this.jB.Na();this.jB=new g.Z_(new Y_(this.videoData,this.X,this));this.kB=new $_(this.X,this,this.jB)};
g.k.getVideoData=function(){return this.videoData};
g.k.U=function(){return this.X};
g.k.xP=function(){return this.Jk.xP(this.Mf)};
g.k.uc=function(a){if(a)a:{for(var b=this.kB,c=g.v(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.kB.uc();return a};
g.k.Mm=function(){return this.visibility};
g.k.Me=function(){return this.mediaElement};
g.k.BO=function(){if(this.videoData.isLoaded()){var a=this.rl;g.oI(a.Ea.experiments,"html5_player_min_build_cl")>0&&g.oI(a.Ea.experiments,"html5_player_min_build_cl")>650102465&&Jdb(a,"oldplayer");wgb(this)}else this.videoData.zj||this.videoData.xp?this.Au&&g.zI(this.X)&&this.videoData.isLivePlayback||(this.videoData.zj?uXa(this.videoData):(a=this.uc(),a.qoe&&(a=a.qoe,O_(a,"protected"),a.provider.videoData.K?a.S1():a.provider.videoData.subscribe("dataloaded",a.S1,a)),sXa(this.videoData))):!this.videoData.loading&&
this.I7&&tgb(this)};
g.k.mM=function(a){this.xb=a;this.Aa&&this.Aa.mM(a)};
g.k.tA=ba(16);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.yF(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.hM(!0),rgb(this),g.zv.ek(this.wy))};
g.k.kp=function(){cfb(this.uc())};
g.k.Of=function(a,b,c,d,e,f){this.logger.debug(function(){return"set player error: ec="+a+", detail="+e});
var h,l;g.ed(spb,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+fH());if(a==="auth"||a==="drm.auth"||a==="heartbeat.stop")c&&(d+=";r."+c.replaceAll(" ","_")),f&&(d+="sr."+f.replaceAll(" ","_"));b={errorCode:a,errorDetail:e,errorMessage:l||g.LV[h]||"",lP:h,Rn:f||"",RL:d,IE:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;v0(this,"dataloaderror");this.Hc(CK(this.playerState,128,b));g.zv.ek(this.wy);w0(this);this.Xo()};
g.k.Hg=function(a){this.yq=this.yq.filter(function(b){return a!==b});
this.logger.debug(function(){return"set preroll ready for "+a});
g.DS(this.videoData)&&!this.po()&&this.Ob.Qi("pl_pr");this.Gs.Du()&&ugb(this)};
g.k.po=function(){var a;(a=!!this.yq.length)||(a=this.Fh.j.array[0],a=!!a&&a.start<=-0x8000000000000);return a};
g.k.gq=function(){return this.Rc.gq()};
g.k.isPlaying=function(){return this.playerState.isPlaying()};
g.k.EF=function(){return this.playerState.EF()&&this.videoData.Wl};
g.k.getPlayerState=function(){return this.playerState};
g.k.getPlayerType=function(){return this.playerType};
g.k.getPreferredQuality=function(){if(this.Mf){var a=this.Mf;a=a.videoData.MB.compose(a.videoData.HZ);a=UO(a)}else a="auto";return a};
g.k.fF=ba(20);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.Jb()===this.mediaElement.Jb()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.uB(this.MC),this.mediaElement=a,this.mediaElement.ea=this,Pgb(this),this.Rc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Oj();if(!this.playerState.isError()){var b=EK(this.playerState,512);g.yF(b,8)&&!g.yF(b,2)&&(b=DK(b,1));a.isView()&&(b=EK(b,64));this.Hc(b)}this.mediaElement=
a;this.mediaElement.ea=this;JR(this.X)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);Pgb(this);this.Rc.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.rl.uJ()&&aFa(this.mediaElement)}};
g.k.Oj=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.logger.debug("remove media element");if(this.mediaElement){var c=this.getCurrentTime();c>0&&(this.Rc.D=c);this.Rc.setMediaElement(null);!a&&uK(this)?Jgb(this):IX(this);this.Aa&&(v_(this.Aa),A0(this,b));this.Kx.stop();if(this.mediaElement&&(!this.Gs.Du()||this.playerState.isError()||g.yF(this.playerState,2)||this.Hc(DK(this.playerState,512)),this.mediaElement)){g.uB(this.MC);if(a||!this.mediaElement.isView())this.L("html5_rebase_video_to_ad_timeline")&&
this.Ob.Dv("mesv_s"),this.mediaElement.stopVideo(),C0(this);this.mediaElement=this.mediaElement.ea=null}}};
g.k.playVideo=function(a){a=a===void 0?!1:a;var b=this,c,d,e,f,h,l;return g.H(function(m){if(m.j==1){b.logger.debug("start play video");var n=window.google_image_requests;n&&n.length>10&&(window.google_image_requests=n.slice(-10));if(g.yF(b.playerState,128))return m.return();if(b.rl.AK())return b.publish("signatureexpired"),m.return();b.mediaElement&&nY(b.uc());zgb(b);(g.yF(b.playerState,64)||a)&&b.Hc(DK(b.playerState,8));return b.Gs.j&&b.mediaElement?b.Mf||!b.JG?m.Ja(2):g.z(m,b.JG,3):m.return()}if(m.j!=
2&&g.yF(b.playerState,128))return m.return();if(!b.videoData.C)return b.videoData.isLivePlayback&&!g.HUa(b.X.G,!0)?(c="html5.unsupportedlive",d=2):(c=b.videoData.bj()?"fmt.unplayable":"fmt.noneavailable",d=1),g.nE(Error("selectableFormats")),b.Of(c,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),m.return();if(b.ji()&&b.videoData.C.j)return b.logger.debug("rebuild playbackData for airplay"),m.return(u0(b));if(l0(b))n=b.Rc,AS(n.videoData)?!n.isAtLiveHead(n.getCurrentTime())&&n.gq()&&
n.ea.seekTo(Infinity,{hd:"seektimeline_peggedToLive",seekSource:34}):g.DS(n.videoData)&&n.getCurrentTime()<n.pd()&&n.ea.seekTo(n.pd(),{hd:"seektimeline_outOfWindow"});else if(AS(b.videoData)){if(e=b.getCurrentTime()<b.pd()-15,f=g.VS(b.videoData)&&b.playerState.isPaused(),h=g.yF(b.playerState,1024),n=b.Rc,n.videoData.hc()&&YXa(n.videoData)||h||!e&&!f||(f?(b.logger.debug("seek to head for live because of live-only"),b.seekTo(Infinity,{hd:"videoplayer_unpauseLiveOnly",seekSource:102})):(b.logger.debug("seek to min seekable for live because of out of window"),
b.seekTo(b.pd(),{hd:"videoplayer_outOfWindow",seekSource:102}))),!b.isAtLiveHead(void 0,!0)&&b.gq()&&(b.logger.debug("seek to head for live because pegged to live"),l={hd:"videoplayer_peggedToLive",seekSource:34},b.seekTo(Infinity,l)),g.yF(b.playerState,256)&&b.videoData.Ha&&b.Rc.HF())return b.Hc(FK(b.playerState,8,4)),m.return()}else g.DS(b.videoData)&&b.getCurrentTime()<b.pd()-0&&b.seekTo(b.pd(),{hd:"videoplayer_outOfWindow"});g.yF(b.playerState,4)&&g.yF(b.playerState,16)&&b.Hc(FK(b.playerState,
9,4));if(r0(b))return Vgb(b),m.return();Ugb(b);g.Aa(m)})};
g.k.Hq=function(a){this.logger.debug("reset media source");a&&this.Sd(new GJ("qoe.restart",a));this.Hc(DK(this.playerState,2048));IX(this);a=this.videoData.j&&$O(this.videoData.j);var b=this.mediaElement&&this.mediaElement.isView();a||b?(this.Aa&&ecb(this.Aa),G_(this)):(r0(this),this.playerState.isOrWillBePlaying()&&this.playVideo())};
g.k.Vt=function(){if(!this.Mf)return[];var a=Pdb(this.Jk,this.Mf,this.Yw());return this.Mf.j.Vt(a)};
g.k.WE=function(){if(!this.Mf)return[];var a=Pdb(this.Jk,this.Mf,this.Yw());return this.Mf.j.WE(a)};
g.k.Yw=function(){var a=this.Ce?this.Ce.Yw():pXa(this.videoData)&&this.videoData.j&&$O(this.videoData.j)?this.videoData.Vj?rS:sdb:rS;this.dT&&(a=a.compose(aqb));return a};
g.k.KJ=function(){var a=this.ue(),b=this.zd.Nd().videoId;return this.zd.Pu.KJ(a)||this.zd.Pu.KJ(b)};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?UO(this.videoData.MB):TO[KO()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a,b){this.videoData.Ng!==a&&(this.oa("toggle51",{pref:a}),this.videoData.Ng=a,g.xB("yt-player-audio51",a,b?31536E3:2592E3),H_(this))};
g.k.getUserAudio51Preference=function(){var a=1;FR(this.X)&&this.L("html5_ytv_surround_toggle_default_off")&&(a=0);var b;return(b=g.yB("yt-player-audio51"))!=null?b:a};
g.k.setProximaLatencyPreference=function(a){var b=this.getProximaLatencyPreference();this.oa("proxima",{pref:a});g.xB("yt-player-proxima-pref",a,31536E3);b!==a&&(a=this.Rc,a.ib=!0,a.ea.seekTo(Infinity,{hd:"seektimeline_proximaSeekToHead",seekSource:34}))};
g.k.getProximaLatencyPreference=function(){var a;return(a=RPa())!=null?a:0};
g.k.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
g.k.mU=function(){this.videoData.videoId?this.zd.mU(this.videoData.videoId):this.oa("piavid",{})};
g.k.getAvailableAudioTracks=function(){return g.DS(this.videoData)&&this.xb?f7a(this.xb).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(Fgb(this)){var a=Hgb(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.hG=function(){if(BS(this.videoData)&&!this.videoData.hc()&&this.videoData.L("html5_trigger_loader_when_idle_network")){var a;(a=this.Aa)!=null&&a.jf()}};
g.k.cA=function(){if(this.Aa){var a=this.Aa,b=a.cA;var c=this.videoData;c=c.L("html5_ssdai_use_post_for_media")&&c.enableServerStitchedDai?!1:CS(c)&&c.If&&!c.isAd();b.call(a,c)}};
g.k.Nr=function(){return this.Ra};
g.k.gy=function(a){this.logger.debug("onNeedKeyInfo");this.OB.set(a.initData,a);this.Ce&&(this.Ce.gy(a),this.L("html5_eme_loader_sync")||this.OB.remove(a.initData))};
g.k.kS=function(a){this.videoData.ZB=g.RO("auto",a,!1,"u");q0(this)};
g.k.ey=function(a){var b,c;if(this.L("html5_prefer_language_over_codec")&&((b=this.videoData.D)==null?0:b.Yb)&&a.j.info.sb!==this.videoData.D.sb&&((c=a.j.info.Yb)==null?void 0:c.id)!==this.videoData.D.Yb.id){var d;this.oa("lac",{prev:this.videoData.D.itag,plang:this.videoData.D.Yb.id,"new":a.j.info.itag,nlang:(d=a.j.info.Yb)==null?void 0:d.id})}b=a.reason;c=a.j.info;d=a.token;var e=this.uc(a.videoId),f=g.DS(this.videoData)?e.getVideoData():this.videoData;if(c!==f.D){var h=!f.D;f.D=c;b!=="m"&&b!==
"t"&&(b=h?"i":"a");var l=b==="m"||b==="t";e.kG(new Mdb(f,c,b,"",d));this.publish("internalaudioformatchange",f,!h&&l)}this.Rc.ey(a.j.index)};
g.k.oL=function(a){this.publish("localmediachange",a)};
g.k.hp=function(a){a=a===void 0?{}:a;var b;(b=this.Aa)==null||b.hp(this.X,qXa(this.videoData),a)};
g.k.AK=function(){return this.rl.AK()};
g.k.handleError=function(a){this.rl.handleError(a)};
g.k.uJ=function(){return this.rl.uJ()};
g.k.Nu=function(a){this.Rc.Nu(a)};
g.k.pauseVideo=function(a){a=a===void 0?!1:a;if((g.yF(this.playerState,64)||g.yF(this.playerState,2))&&!a)if(g.yF(this.playerState,8))this.Hc(FK(this.playerState,4,8));else if(this.EF())r0(this);else return;g.yF(this.playerState,128)||(a?this.Hc(DK(this.playerState,256)):this.Hc(FK(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.VS(this.videoData)&&this.Aa&&A0(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.Aa&&(A0(this,!1),this.Aa.ll())};
g.k.Xo=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;if(uK(this)&&b){var c;(c=this.mediaElement)==null||c.Xo()}else{var d;(d=this.mediaElement)==null||d.stopVideo()}C0(this);w0(this);g.yF(this.playerState,128)||(a?this.Hc(EK(EK(DK(this.playerState,4),8),16)):this.Hc(CK(this.playerState)));this.videoData.videoId&&this.X.Oa.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=b===void 0?{}:b;this.logger.debug(function(){return"SeekTo "+a+", "+JSON.stringify(b)});
g.yF(this.playerState,2)&&r0(this);b.yrb&&this.Hc(DK(this.playerState,2048));this.Rc.seekTo(a,b);this.Fh.sync()};
g.k.hL=function(){this.publish("onAbnormalityDetected")};
g.k.getCurrentTime=function(){return this.Rc.getCurrentTime()};
g.k.ex=function(){return this.Rc.ex()};
g.k.Yf=function(){return this.Rc.Yf()};
g.k.HJ=function(a){return this.xb&&(a=a||this.xb.xl())?oY(this.xb,a):this.Yf()};
g.k.Xn=function(){return this.Rc.Xn()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Fc())};
g.k.sA=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.sA());return a>=0?a:this.getCurrentTime()};
g.k.qf=function(){var a;return((a=this.videoData.j)==null?0:a.qf)?this.videoData.j.qf(this.getCurrentTime()-this.Fc()):this.mediaElement&&(a=this.mediaElement.vI())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN};
g.k.getDuration=function(a){return g.DS(this.videoData)&&this.xb?this.L("html5_ssap_enable_duration_by_cpn")&&a?e7a(this.xb,a):lY(this.xb):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Fc():this.qe()?this.qe():0};
g.k.kF=function(){var a=new hfb;this.Aa?(YUa(this.X.schedule,a),Acb(this.Aa,a)):this.mediaElement&&(a.Fw=zK(this.mediaElement));a.Xs=this.Xs;a.Gv=this.Gv;a.C=this.isAtLiveHead()&&this.isPlaying()?ngb(this):NaN;return a};
g.k.ZG=function(a,b){this.Gv+=a;this.Xs+=b};
g.k.Zw=function(){return this.mediaElement?g.VS(this.videoData)?1:WS(this.videoData)?this.isAtLiveHead()||this.gq()?1:this.Rc.Zw():this.mediaElement.Zw():0};
g.k.qc=function(a){var b={};if(a===void 0?0:a){Object.assign(b,this.uc().qc());this.mediaElement&&(Object.assign(b,this.mediaElement.qc()),Object.assign(b,this.oF()));this.Aa&&Object.assign(b,this.Aa.qc());this.Ce&&(b.drm=JSON.stringify(this.Ce.qc()));b.state=this.playerState.state.toString(16);g.yF(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.hh));this.po()&&(b.prerolls=this.yq.join(","));this.videoData.Ud&&(b.ismb=this.videoData.Ud);this.videoData.latencyClass!=="UNKNOWN"&&
(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.videoData.playerResponseCpn&&(b.playerResponseCpn=this.videoData.playerResponseCpn);this.zd.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&
BQ(this.videoData.j)&&(b.segduration=BQ(this.videoData.j)),a=this.Rc,b.lat=a.K?u_a(a.K.D):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Uf.toFixed(3);if(a=g.SU(this))b.optimal_format=a.video.qualityLabel;b.user_qual=KO();b.release_version="youtube.player.web_20240707_00_RC00";g.DS(this.videoData)&&this.xb&&(b.ssap=jY(this.xb))}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.Bz([a])};
g.k.removeCueRange=function(a){this.Fh.Yo([a])};
g.k.KE=function(a,b){return this.Fh.KE(a,b)};
g.k.Bz=function(a,b){this.Fh.nf(a,b)};
g.k.bH=function(a){this.Fh.Yo(a)};
g.k.wl=function(){return this.Fh.wl()||[]};
g.k.ji=function(){return this.visibility.ji()};
g.k.xv=function(){this.mediaElement&&this.mediaElement.xv()};
g.k.Rca=function(){v0(this)};
g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.k.uL=function(a){var b=a.target.Ff();if(this.mediaElement&&this.mediaElement.Ff()&&this.mediaElement.Ff()===b){$gb(this,a.type);switch(a.type){case "error":var c=hFa(this.mediaElement)||"",d=this.mediaElement.uf();if(c==="capability.changed"){this.L("html5_restart_on_capability_change")?(this.oa("capchg",{msg:d}),G_(this,!0)):u0(this);return}if(this.mediaElement.hasError()&&(Fdb(this.rl,c,{msg:d})||g.DS(this.videoData)&&this.xb&&(d=this.playerState.hh,this.xb.handleError(c,d==null?void 0:d.IE))))return;
if(this.isBackground()&&this.mediaElement.ih()===4){this.Xo();x0(this,"unplayable");return}break;case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Ra||c>0)&&c!==1&&this.Nl(c);break;case "ratechange":this.Aa&&this.Aa.setPlaybackRate(this.mediaElement.getPlaybackRate());pfb(this.Fh);this.uc().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":bhb(this);this.publish("onLoadedMetadata");I5a(this);c=this.qf();this.videoData.IC&&(this.videoData.IC=c);break;
case "loadstart":I5a(this);break;case "progress":case "suspend":this.Uc();this.publish("onLoadProgress",this,this.Zw());break;case "playing":this.Ob.Dv("plev");this.iT&&!l0(this)&&(this.iT=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{hd:"videoplayer_onPlaying"})));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();d=this.mediaElement&&this.mediaElement.al()===0;if(c&&(!this.cL||d))return;this.cL=this.cL||!!this.mediaElement.getCurrentTime();
Qgb(this);this.Uc();if(!this.mediaElement||this.mediaElement.Ff()!==b)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.gx().length>0&&this.mediaElement.Ih().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.Aa)return;this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.al()>2||!this.mediaElement.isSeeking()&&hK(this.mediaElement.Ih(),this.mediaElement.getCurrentTime()))&&
(c=this.mediaElement.qc(),c.bh=zK(this.mediaElement).toFixed(3),this.oa("uwe",c));g.DS(this.videoData)&&this.xb&&$6a(this.xb,this.mediaElement.getCurrentTime());break;case "resize":bhb(this);this.videoData.B&&this.videoData.B.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.WW&&g.yF(this.playerState,8)&&!g.yF(this.playerState,1024)&&this.getCurrentTime()===0&&g.dC){x0(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Ff()===
b){Xfb(this.Rc,a,this.xb||void 0);this.publish("videoelementevent",a);b=this.playerState;d=this.iE;var e=this.mediaElement;c=this.videoData.clientPlaybackNonce;var f=g.DS(this.videoData)&&this.xb?lY(this.xb):void 0;if(!g.yF(b,128)){var h=b.state;e=e?e:a.target;var l=e.getCurrentTime();if(!g.yF(b,64)||a.type!=="ended"&&a.type!=="pause"){f=f||e.getDuration();f=e.isEnded()||l>1&&Math.abs(l-f)<1.1;var m=a.type==="pause"&&e.isEnded();l=a.type==="ended"||a.type==="waiting"||a.type==="timeupdate"&&!g.yF(b,
4)&&!b0(d,l);if(m||f&&l)e.RJ()>0&&e.Ff()&&(h=14);else switch(a.type){case "error":hFa(e)&&(h|=128);break;case "pause":g.yF(b,256)?(h^=256)||(h=64):g.yF(b,32)||g.yF(b,2)||g.yF(b,4)||(h=4,g.yF(b,1)&&g.yF(b,8)&&(h|=1));break;case "playing":l=h;h=(h|8)&-1093;l&4?(h|=1,BK(d,e)):b0(d,e.getCurrentTime())&&(h&=-2);g.yF(b,1)&&BK(d,e)&&(h|=1);break;case "seeking":h|=16;g.yF(b,8)&&(h|=1);h&=-3;break;case "seeked":h&=-17;BK(d,e);break;case "waiting":g.yF(b,2)||(h|=1);BK(d,e);break;case "timeupdate":l=g.yF(b,
16),f=g.yF(b,4),(g.yF(b,8)||l)&&!f&&b0(d,e.getCurrentTime())&&(h=8),BK(d,e)&&(h|=1)}}d=h;h=null;d&128&&(h=a.target,e=hFa(h),l=1,e?(e==="capability.changed"&&(l=2),f="GENERIC_WITHOUT_LINK",m=h.qc(),m.mediaElem="1",/AUDIO_RENDERER/.test(h.uf())&&(f="HTML5_AUDIO_RENDERER_ERROR"),h={errorCode:e,errorMessage:g.LV[f]||"",lP:f,RL:FJ(m),IE:l,cpn:b.hh?b.hh.cpn:""}):h=null,h&&(h.cpn=c));b=CK(b,d,h)}!g.yF(this.playerState,1)&&g.yF(b,1)&&Zgb(this,"evt"+a.type);this.Hc(b)}}};
g.k.taa=function(a){a=a.j.availability==="available";a!==this.zF&&(this.zF=a,this.publish("airplayavailabilitychange"))};
g.k.uaa=function(){var a=(0,g.iC)(),b=this.mediaElement.ji();this.oa("airplay",{ia:b});!b&&!isNaN(this.DK)&&a-this.DK<2E3||(this.DK=a,b!==this.ji()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Lf()),this.oa("airplay",{rbld:b}),H_(this)),this.publish("airplayactivechange"))};
g.k.pF=function(a){if(this.Aa){var b=this.Aa,c=b.B,d=b.getCurrentTime(),e=Date.now()-c.Y;c.Y=NaN;c.oa("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.K)&&c.B!==3&&I9a(c.Aa,d,c.K,c.G);c.policy.G?c.C=NaN:c.D=NaN;jZ(c,4,c.B===3?"adfps":"adf");v_(b)}};
g.k.Uc=function(a){var b=this;a=a===void 0?!1:a;if(this.mediaElement&&this.videoData){Pfb(this.Rc,this.isPlaying());var c=this.getCurrentTime();!this.Aa||g.yF(this.playerState,4)&&g.VS(this.videoData)||BS(this.videoData)&&g.yF(this.playerState,32)||Ccb(this.Aa,c);c>5&&(this.Rc.D=c);var d=g.RB();d?g.zv.ek(this.wy):g.DA(this.wy);var e=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!e||iT(this.videoData))&&!g.yF(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.yF(b.playerState,
128)){b.X.yc()&&$gb(b,"pfx");var l=b.getCurrentTime(),m=zK(b.mediaElement),n=g.yF(b.playerState,8),p=b0(b.iE,l),q=iFa(b.iE,l,(0,g.iC)(),m);n&&p?b.Hc(EK(b.playerState,1)):n&&q?(n=b.getDuration(),p=AS(b.videoData),n&&Math.abs(n-l)<1.1?(b.oa("setended",{ct:l,bh:m,dur:n,live:p}),b.mediaElement.Xt()?(b.logger.debug("seek to 0 because of looping"),b.seekTo(0,{hd:"videoplayer_loop",seekSource:37})):GX(b)):(b.playerState.isBuffering()||Zgb(b,"progress_fix"),b.Hc(DK(b.playerState,1)))):(n&&!p&&!q&&l>0&&(n=
(Date.now()-b.RF)/1E3,p=b.getDuration(),l>p-1&&b.oa("misspg",{t:l.toFixed(2),d:p.toFixed(2),r:n.toFixed(2),bh:m.toFixed(2)})),b.playerState.isPaused()&&b.playerState.isBuffering()&&zK(b.mediaElement)>5&&b.Hc(EK(b.playerState,1)));b.Uc()}};
this.mediaElement.gx().length===0?this.wy=d?g.zv.Ui(f,100):g.BA(f,100):this.wy=d?g.zv.Ui(f,500):g.BA(f,500)}this.videoData.Rk=c;if(this.L("html5_ssap_vss_fix")){var h;(h=this.xb)==null||k7a(h)}!a&&this.isPlaying()&&Tgb(this);Xdb(this.Jk,this.Mf,this.Me(),this.isBackground())&&q0(this);this.publish("progresssync",this,a);e&&iT(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}};
g.k.B9=function(){this.Of("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.dF=function(){return this.uc().dF()};
g.k.yP=function(){return this.Aa?this.Aa.yP():iR(this.X.schedule,!0)};
g.k.Hc=function(a){if(g.jFa(this.playerState,a))this.X.yc()&&a.seekSource!==this.playerState.seekSource&&this.oa("ssdiff",{ps:(this.playerState.seekSource||"").toString(),ns:(a.seekSource||"").toString()});else{this.logger.debug(function(){return"Setting state "+a.toString()});
var b=new g.xF(a,this.playerState);this.playerState=a;ahb(this);var c=!this.KL.length;this.KL.push(b);var d=this.mediaElement&&this.mediaElement.isSeeking();d=b.AB.state===8&&!d;g.AF(b,1)&&d&&g.yF(this.playerState,8)&&!g.yF(this.playerState,64)&&this.Aa&&(dcb(this.Aa),this.mediaElement&&zK(this.mediaElement)>=5&&Vdb(this.Jk,this.Mf)&&q0(this));(d=g.oI(this.X.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.yF(a,1)&&(g.yF(a,8)||g.yF(a,16))?this.VN.start(d):this.VN.stop();(zF(b,8)<0||g.AF(b,
1024))&&this.Kx.stop();!g.AF(b,8)||this.videoData.Ha||g.yF(b.state,1024)||this.Kx.start();g.yF(b.state,8)&&zF(b,16)<0&&!g.yF(b.state,32)&&!g.yF(b.state,2)&&this.playVideo();g.yF(b.state,2)&&WS(this.videoData)&&(this.Nl(this.getCurrentTime()),this.Uc(!0));g.AF(b,2)&&(this.hM(!0),this.X.yc()&&this.L("html5_sabr_parse_live_metadata_playback_boundaries")&&BS(this.videoData)&&this.videoData.j&&(d={minst:""+this.videoData.j.Y,cminst:""+(this.videoData.j.pd(!0)+this.Fc()),maxst:""+this.videoData.j.Z,cmaxst:""+
(this.videoData.j.qe(!0)+this.Fc())},this.oa("sabrSeekableBoundaries",d)));g.AF(b,128)&&this.Xo();this.videoData.j&&this.videoData.isLivePlayback&&!this.n3&&(zF(b,8)<0?aUa(this.videoData.j):g.AF(b,8)&&this.videoData.j.resume());Nfb(this.Rc,b);m7a(this.uc(),b);if(c&&!this.Na())try{for(var e=g.v(this.KL),f=e.next();!f.done;f=e.next()){var h=f.value;qfb(this.Fh,h);this.publish("statechange",h)}}finally{this.KL.length=0}}};
g.k.pG=function(){this.videoData.isLivePlayback||this.L("html5_disable_connection_issue_event")||this.publish("connectionissue")};
g.k.cS=function(){this.Ob.tick("qoes")};
g.k.rP=function(){this.Rc.rP()};
g.k.nL=function(a,b,c,d){a:{var e=this.rl;d=d===void 0?"LICENSE":d;c=c.substr(0,256);var f=HJ(b);a==="drm.keyerror"&&this.Ce&&this.Ce.B.keys.length>1&&e.D<96&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())Ldb(e,a);else{if(e.ea.Of(a,b,d,c),Cdb(e,{detail:c}))break a}else e.Sd(a,{detail:c});a==="drm.sessionlimitexhausted"&&(e.oa("retrydrm",{sessionLimitExhausted:1}),e.D++,Ygb(e.ea))}};
g.k.jba=function(){var a=this,b=g.oI(this.X.experiments,"html5_license_constraint_delay"),c=rra();b&&c?(b=new g.Dv(function(){y0(a);v0(a)},b),g.M(this,b),b.start()):(y0(this),v0(this))};
g.k.sG=function(a){this.publish("heartbeatparams",a)};
g.k.tq=function(a){this.oa("keystatuses",hdb(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=idb(b,c);d=B_(a)?jdb(a,d):a.D.includes(d)}else{a:{b=idb(b,c);for(d in a.j)if(a.j[d].status==="output-restricted"){var e=a.j[d].type;if(b===""||e==="AUDIO"||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((f=this.Ce)==null?0:OQ(f.j))if((c=this.Ce)==
null)c=0;else{b=f=void 0;e=g.v(c.B.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=kdb(h,"SD")),b||(b=kdb(h,"AUDIO"));c.rj({sd:f,audio:b});c=f==="output-restricted"||b==="output-restricted"}else c=!d;if(c){this.oa("drm",{dshdr:1});Ldb(this.rl);return}}else{this.videoData.ND||(this.videoData.ND=!0,this.oa("drm",{dphdr:1}),G_(this,!0));return}var l;if((l=this.Ce)==null?0:OQ(l.j))return}else if(l=a.Z&&d,c&&!l){Ldb(this.rl);return}d||jdb(a,"AUDIO")&&jdb(a,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),
a=hdb(a),this.dT?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.Of("drm.keyerror",2,void 0,"info."+a)):(this.dT=!0,this.Sd(new GJ("qoe.restart",Object.assign({},{retrydrm:1},a))),q0(this),Ygb(this)))};
g.k.lba=function(){if(!this.videoData.Ha&&this.mediaElement&&!this.isBackground()){var a="0";this.mediaElement.al()>0&&zK(this.mediaElement)>=5&&this.videoData.C&&this.videoData.C.j&&(this.Hc(DK(this.playerState,1)),Zgb(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),a="1");ahb(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!pXa(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].oe)||this.Ce),mfmtinfo:!this.videoData.B,prerolls:this.po()?this.yq.join(","):
"0"};if(this.Ce){b=this.Ce;if(b.B.size<=0){var c="ns;";b.Y||(c+="nr;");b=c+="ql."+b.C.length}else b=hdb(b.B.values().next().value),b=FJ(b);a.drmp=b}var d;Object.assign(a,((d=this.Aa)==null?void 0:d.qc())||{});var e;Object.assign(a,((e=this.mediaElement)==null?void 0:e.qc())||{});this.uc().Sd("qoe.start15s",FJ(a));this.publish("loadsofttimeout")}};
g.k.Nl=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,v0(this))};
g.k.hM=function(a){var b=this;a=a===void 0?!1:a;if(!this.II)if(RG("att_s","player_att")||SG("att_s",void 0,"player_att"),this.L("use_rta_for_player"))(function(){var d,e,f,h;return g.H(function(l){switch(l.j){case 1:if(!(d=a)){l.Ja(2);break}return g.z(l,g.$Aa(),3);case 3:d=!l.B;case 2:if(d)return l.return();g.Ba(l,4);e=ffb(b.uc());if(!e)throw Error();f={};return g.z(l,g.ZAa((f.cpn=b.videoData.clientPlaybackNonce,f.encryptedVideoId=b.videoData.videoId||"",f),3E4),6);case 6:h=l.B;if(b.II)throw Error();
if(!h.challenge)throw g.nE(Error("Not sending attestation ping; no attestation challenge string")),Error();b.II=!0;var m=[h.challenge];h.error?m.push("r1c="+h.error):h.webResponse&&m.push("r1a="+h.webResponse);var n;((n=h.adblockReporting)==null?void 0:n.reportingStatus)!==void 0&&m.push("r6a="+h.adblockReporting.reportingStatus);var p;((p=h.adblockReporting)==null?void 0:p.broadSpectrumDetectionResult)!==void 0&&m.push("r6b="+h.adblockReporting.broadSpectrumDetectionResult);e(m.join("&"));SG("att_f",
void 0,"player_att");g.Ca(l,0);break;case 4:g.Da(l),SG("att_e",void 0,"player_att"),g.Aa(l)}})})().then(function(){});
else{var c=new g.NPa(this.videoData);if("c1a"in c.yr&&!g.HO.isInitialized()){SG("att_wb",void 0,"player_att");this.iO===2&&Math.random()<.01&&g.nE(Error("Botguard not available after 2 attempts"));if(a)return;if(this.iO<5){g.Ev(this.kO);this.iO++;return}}(c=g.OPa(c))?(SG("att_f",void 0,"player_att"),efb(this.uc(),c),this.II=!0):SG("att_e",void 0,"player_att")}};
g.k.qe=function(a){return this.Rc.qe(a===void 0?!1:a)};
g.k.pd=function(){return this.Rc.pd()};
g.k.Fc=function(){return this.Rc?this.Rc.Fc():0};
g.k.getStreamTimeOffset=function(){return this.Rc?this.Rc.getStreamTimeOffset():0};
g.k.fu=function(){var a=0;this.X.L("web_player_ss_media_time_offset")&&(a=this.getStreamTimeOffset()===0?this.Fc():this.getStreamTimeOffset());return a};
g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&Qdb(this.Jk,(b=this.videoData.C)==null?void 0:b.videoInfos)&&(this.playbackRate=a,q0(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,a==="auto"&&this.mediaElement)){var b=sgb(this);b&&b.videoHeight>0&&(a=HEa(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.gt=function(){this.uc().gt()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.uc();c.j?(c=U_(c.j,"engage"),c.ra=a,c.send(b)):b&&b()};
g.k.Ji=function(a){return this.uc().Ji(a)};
g.k.isAtLiveHead=function(a,b){b=b===void 0?!1:b;return AS(this.videoData)&&(this.SY||b)?this.Rc.isAtLiveHead(a):!1};
g.k.Mr=function(){var a=this.qe(),b=this.getCurrentTime(),c;(c=!AS(this.videoData))||(c=this.Rc,c=!(c.j&&c.j.C));return c||this.gq()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.No=ba(24);g.k.Wu=ba(49);g.k.Wo=function(a){this.uc().Wo(a)};
g.k.Ey=function(a){this.uc().Ey(a)};
g.k.Lj=ba(28);g.k.YG=function(a){this.uc().YG(a)};
g.k.oF=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.k.setLoop=function(a){this.loop=a;this.mediaElement&&JR(this.X)&&this.mediaElement.setLoop(a);this.Aa&&this.L("html5_loop_skip_set_end_of_stream")&&(a?this.Aa.policy.Wa=!0:ecb(this.Aa))};
g.k.Xt=function(){return this.mediaElement&&JR(this.X)?this.mediaElement.Xt():this.loop};
g.k.jS=function(a){this.oa("timestamp",{o:a.toString()});this.Rc.jS(a)};
g.k.Td=function(a){this.Ob.tick(a)};
g.k.Qi=function(a){return this.Ob.Qi(a)};
g.k.Dv=function(a){this.Ob.Dv(a)};
g.k.oa=function(a,b,c){c=c===void 0?!1:c;this.uc().oa(a,b,c)};
g.k.Ay=function(a,b,c){c=c===void 0?!1:c;this.uc().oa(a,b,c)};
g.k.Sd=function(a){this.uc().Sd(a.errorCode,FJ(a.details));a=a.errorCode;if(this.videoData.isLivePlayback&&(a==="qoe.longrebuffer"||a==="qoe.slowseek")){a=this.Aa?U$a(this.Aa.videoTrack):{};var b,c;this.oa("lasoe",Object.assign(this.Aa?U$a(this.Aa.audioTrack):{},(b=this.Ra)==null?void 0:(c=b.j)==null?void 0:c.OJ()));var d,e;this.oa("lvsoe",Object.assign(a,(d=this.Ra)==null?void 0:(e=d.B)==null?void 0:e.OJ()))}};
g.k.XG=function(a,b,c){this.uc().XG(a,b,c)};
g.k.dP=function(a){this.videoData.F2=!0;this.Sd(new GJ("sabr.fallback",a));G_(this,!0)};
g.k.getPlayerSize=function(){return this.CH.getPlayerSize()};
g.k.ai=function(){return this.CH.ai()};
g.k.Ii=function(){return this.Ob};
g.k.Pr=function(){return this.zd.Pr()};
g.k.getVolume=function(){return this.zd.getVolume()};
g.k.AF=function(){return this.zd.AF()};
g.k.isMuted=function(){return this.zd.isMuted()};
g.k.jA=function(){return this.zd.jA()};
g.k.L=function(a){return this.X.L(a)};
g.k.Ss=function(){var a=this.getCurrentTime(),b=a-this.Fc();var c=this.mediaElement?jK(this.mediaElement.Ih()):0;c=Math.floor(Math.max(c-b,0))+100;var d;if(!this.L("html5_ssdai_disable_seek_to_skip")&&((d=this.Aa)==null?0:d.oH(b,this.qe())))return this.oa("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var e;return((e=this.Aa)==null?0:e.Ss(b,c))?(this.oa("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),Zfb(this.Rc,a),!0):!1};
g.k.yc=function(){return this.X.yc()};
g.k.Zt=function(){if(this.L("html5_bandaid_attach_content_po_token")&&this.videoData.videoId)return this.videoData.lw||this.zd.pR(this.videoData.videoId);this.zd.pU();return this.X.Xf||""};
g.k.ue=function(){return this.videoData.videoId};
g.k.wA=function(){return this.zd.ly};
g.k.yu=function(){return this.zd.yu()};
g.k.fC=function(a,b){this.Rc.fC(a,b)};
g.k.oE=function(){this.Rc.oE()};
g.k.Xm=function(a){this.zd.Xm(a)};
g.k.fS=function(a,b){this.zd.fS(a,b)};
g.k.PS=function(a,b){var c;(c=this.Aa)==null||c.PS(a,b)};
g.k.uO=function(){var a=this.Nr();return!!a&&a.uO()};
g.k.Zf=function(){return this.xb};
g.k.uH=function(a,b){this.uc().uH(a,b)};
g.k.hF=function(){return this.uc().hF()};
g.k.yA=function(){return this.videoData.HY};
g.k.vC=function(a){this.videoData.HY=a};
g.k.Co=function(){return this.zd.Co()};
g.k.GF=function(){return this.zd.GF(this)};
g.k.oT=function(a){this.videoData.V3=a};g.x(g.D0,g.I);g.D0.create=function(a,b,c,d){try{var e=typeof a==="string"?a:"player"+g.fb(a),f=A3[e];if(f){try{f.dispose()}catch(l){g.mE(l)}A3[e]=null}var h=new g.D0(a,b,c,d);h.addOnDisposeCallback(function(){A3[e]=null;h.d3&&h.d3()});
return A3[e]=h}catch(l){throw g.mE(l),(l&&l instanceof Error?l:Error(String(l))).stack;}};
g.k=g.D0.prototype;g.k.Mm=function(){return this.visibility};
g.k.getVisibilityState=function(a,b,c,d,e,f,h,l){return this.visibility.getVisibilityState(a,b,c,d,e,f,h,l)};
g.k.Hm=function(){this.CQ||(this.CQ=g.eH(JT(),zPa()));return this.CQ};
g.k.Oj=function(){if(this.mediaElement){this.OC&&(this.events.Oc(this.OC),this.OC=null);g.uB(this.Ou);this.wb&&this.wb.Oj(!0);this.template.Oj();try{this.L("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.XL()}catch(a){g.nE(a)}this.mediaElement=null}};
g.k.Wc=function(){return this.wb};
g.k.Cy=function(){var a=this;this.wb!==this.tb&&(this.logger.debug(function(){var b,c;return"release presenting player, type "+((b=a.wb)==null?void 0:b.getPlayerType())+", vid "+((c=a.wb)==null?void 0:c.getVideoData().videoId)}),HX(this,this.tb))};
g.k.Zz=function(a,b,c){var d=this,e=this.Ob;a===2&&(e=new R_a(this.X));return new g.s0(this.X,a,e,this.template,function(f,h,l){d.Va.publish(f,h,l)},function(){return d.Va.getVisibilityState()},this.visibility,this,b,c)};
g.k.zaa=function(){J0(this)||(this.logger.debug("application playback ready"),this.Lq(5))};
g.k.Hba=function(a){if(!J0(this)){this.logger.debug("playback ready");Thb(this);var b=a.getPlayerState();a.EF()?this.pauseVideo():b.isOrWillBePlaying()&&this.playVideo()}};
g.k.canPlayType=function(a){return KJ(a)};
g.k.U=function(){return this.X};
g.k.getVideoData=function(){return this.wb.getVideoData()};
g.k.mF=ba(18);g.k.Nd=function(){return this.tb.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.uT(this,a);return a?g.hT(a.getVideoData())?1:(a=a.Me())?a.Zw():0:0};
g.k.qb=function(){return this.template};
g.k.Bb=function(){return this.Qd};
g.k.Ii=function(){return this.Ob};
g.k.tC=function(a){var b=g.uT(this,1);b&&GX(b,a)};
g.k.Pr=function(){var a=this.Qd.Pr();this.Va.publish("videoStatsPingCreated",a);return a};
g.k.getVolume=function(){return Math.round(this.Va.getVolume())};
g.k.AF=function(){return this.Va.isFullscreen()};
g.k.isMuted=function(){return this.Va.isMuted()};
g.k.jA=function(){if(this.wb===this.tb&&this.Fb)return this.Fb.postId};
g.k.yda=function(){var a=this;this.L("use_rta_only_for_player")||(g.zI(this.X)?g.MR(this.X,g.fT(this.getVideoData())).then(function(b){KT(JT(),b);oYa(a.getVideoData(),a.X,a.Hm())}):oYa(this.getVideoData(),this.X,this.Hm()))};
g.k.vP=function(a){var b=this;return g.H(function(c){return b.SB?c.return(b.SB.vP(a)):c.return(Promise.reject("web po not available"))})};
g.k.mU=function(a){this.Va.publish("d6de4videobindingchange",a)};
g.k.pU=function(){this.SB&&this.SB.pU()};
g.k.pR=function(a){return this.SB?this.SB.pR(a):""};
g.k.tT=function(a){this.SB=a};
g.k.UG=function(a){a===1&&(this.Ob.tick("vr"),Rgb(this.wb),S_a(this.Ob,this.wb.getVideoData(),Shb(this)),L0a(this.Qd));var b=this.X;(KR(b)&&b.N||g.tR(b))&&(this.If()||this.Va.jb("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.wb===this.tb&&this.wb.Xt()!==a&&(this.wb.setLoop(a),this.Va.jb("onLoopChange",a))};
g.k.getLoopVideo=function(){return this.wb.Xt()};
g.k.setLoopRange=function(a){var b=!1;!!this.Fb!==!!a?b=!0:this.Fb&&a&&(b=this.Fb.startTimeMs!==a.startTimeMs||this.Fb.endTimeMs!==a.endTimeMs||this.Fb.postId!==a.postId||this.Fb.type!==a.type);if(b){if(this.wb&&IS(this.getVideoData())){b=(a==null?void 0:a.endTimeMs)||-1;var c;(c=g.uT(this))==null||c.oa("slr",{et:b})}this.tb.Fh.sf("applooprange");if(a)c=new g.UI(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.tb.addCueRange(c);else{this.Nd().clipConfig=void 0;var d,e;((d=
this.Fb)==null?void 0:d.type)!=="repeatChapter"||isNaN(Number((e=this.Fb)==null?void 0:e.loopCount))||(c={loopCount:String(this.Fb.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.VB("repeatChapterLoopEvent",c))}this.Fb=a;this.Va.jb("onLoopRangeChange",a||void 0);this.wb===this.tb&&(this.gM(),this.wb.kp())}};
g.k.getLoopRange=function(){return this.Fb};
g.k.gM=function(){var a="";this.Fb?this.wb!==this.tb?a="pnea":Ehb(this,this.tb.getCurrentTime())&&(this.Fb.loopCount=0,a="ilr"):a="nlr";if(this.wb&&IS(this.getVideoData()))if(this.L("html5_gapless_log_loop_range_info")){var b,c,d;(d=g.uT(this))==null||d.oa("slrre",{rej:a,ct:this.tb.getCurrentTime(),lst:(b=this.Fb)==null?void 0:b.startTimeMs,let:(c=this.Fb)==null?void 0:c.endTimeMs})}else{var e;(e=g.uT(this))==null||e.oa("slrre",{})}a||Ihb(this)};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=khb(this,a),this.tb.getPlaybackRate()!==a&&(this.tb.setPlaybackRate(a),b&&!this.X.D&&g.xB("yt-player-playback-rate",a),this.Va.dn("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b,c){b=b===void 0?!0:b;if(this.getPresentingPlayerType()===3)return DT(this.Qd).getCurrentTime();var d=a===2&&this.getVideoData().enableServerStitchedDai,e=g.DS(this.getVideoData());a=d||e?g.uT(this):g.uT(this,a);if(!a)return 0;if(e&&this.xb)return b=this.xb,a=a.getCurrentTime(),c?c=oY(b,c):(c=d7a(b,a),c=a-c/1E3),c;if(b){if(d&&this.ye&&(c=this.ye.Xa/1E3,c!==0))return c;c=I0(this,a);return R0(this,c.getCurrentTime(),c)}d&&this.ye?(c=this.ye,a=a.getCurrentTime(),c=(c=I6a(c,
a*1E3))?a-c.start/1E3:a):c=a.getCurrentTime();return c};
g.k.sA=function(){var a=g.uT(this);if(!a)return 0;a=I0(this,a);return R0(this,a.sA(),a)};
g.k.getDuration=function(a,b){b=b===void 0?!0:b;var c=this.getVideoData(),d=a===2&&c.enableServerStitchedDai,e=g.DS(c);var f=d||e?g.uT(this):g.uT(this,a);if(!f)return 0;if(c.hasProgressBarBoundaries()&&!d&&!e){var h,l=Number((h=c.progressBarStartPosition)==null?void 0:h.utcTimeMillis),m;c=Number((m=c.progressBarEndPosition)==null?void 0:m.utcTimeMillis);if(!isNaN(l)&&!isNaN(c))return(c-l)/1E3}if(e&&this.xb)return this.L("html5_ssap_enable_duration_by_cpn")?b=e7a(this.xb,this.xb.xl()):(b=this.xb,d=
b.ea.getCurrentTime()*1E3,b=(b=hY(b,d))?(b.Zh()-b.cf())/1E3:0),a===1&&b===0?f.getDuration():b;if(b)return f=H0(this,f),R0(this,f.getDuration(),f);d&&this.ye?(a=this.ye,f=f.getCurrentTime(),f=(f=bY(a,f*1E3))?f.durationMs/1E3:0):f=f.getDuration();return f};
g.k.qf=function(a){var b=g.uT(this,a);return b?this.If(b)?(b=H0(this,b),b.qf()-b.getCurrentTime()+this.getCurrentTime(a)):b.qf():0};
g.k.addPlayerResponseForAssociation=function(a){this.xb&&this.xb.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.xb?this.xb.finishSegmentByCpn(a,b):[]};
g.k.aP=function(){this.template.aP();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=Vra(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.eca)};
g.k.getDebugText=function(a){var b=this.tb.qc(a);if(this.wb&&this.wb!==this.tb){for(var c=this.wb.qc(a),d=g.v(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=nf(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.wf("video-ads");f?(Zhb(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.wf("videoAdUiSkipContainer"),l=g.wf("ytp-ad-skip-button-container"),m=g.wf("ytp-skip-ad-button"),n=h||l||m;n?(Zhb(n,f),f.ima=h?1:
0,f.bulleit=l?1:0,f.component=m?1:0):f.missing=1;d=JSON.stringify({player:d,videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(+this.mediaElement.getSize().area()===0),b.op=this.mediaElement.lF("opacity"),c=this.mediaElement.au().y+this.mediaElement.getSize().height,b.yof=""+(+c<=0),b.dis=this.mediaElement.lF("display"));a&&((a=(0,g.P_)())&&(b.gpu=a),(a=this.X.playerStyle)&&(b.ps=a),this.X.Xa&&(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_20240707_00_RC00"},b=this.getPlayerStateObject().hh;b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(a){if(this.appState===1)return 1;if(J0(this))return 3;var b;if(a&&((b=this.ye)==null?0:b.Cl(this.getCurrentTime())))return 2;var c;return g.DS(this.getVideoData())&&((c=this.xb)==null?0:c.Cl())?2:g.uT(this).getPlayerType()};
g.k.SA=function(){return g.DS(this.getVideoData())&&this.xb?this.xb.SA():!1};
g.k.getPlayerStateObject=function(a){return this.getPresentingPlayerType()===3?DT(this.Qd).Ie:g.uT(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.uL=function(a){switch(a.type){case "loadedmetadata":this.dM.start();a=g.v(this.kC);for(var b=a.next();!b.done;b=a.next())b=b.value,Qhb(this,b.id,b.ufa,b.tfa,void 0,!1);this.kC=[];break;case "loadstart":this.Ob.Dv("gv");break;case "progress":case "timeupdate":jK(a.target.Ih())>=2&&this.Ob.Dv("l2s");break;case "playing":g.HR&&this.dM.start();if(g.zI(this.X))a=!1;else{b=g.FT(this.Bb());a=this.mediaElement.lF("display")==="none"||this.mediaElement.getSize().area()===0;var c=BY(this.template),d=this.wb.getVideoData(),
e=g.QF(this.X);d=JS(d);b=!c||b||e||d||this.X.rb;a=a&&!b}a&&(this.wb.oa("hidden",{},!0),this.getVideoData().Cc||(this.getVideoData().Cc=1,this.b0(),this.wb.playVideo()))}};
g.k.onLoadProgress=function(a,b){this.Va.Ac("onLoadProgress",b)};
g.k.Dca=function(){this.Va.publish("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=I0(this,a);b=R0(this,a.getCurrentTime(),a);this.Va.Ac("onVideoProgress",b)};
g.k.onAutoplayBlocked=function(){this.Va.Ac("onAutoplayBlocked")};
g.k.Rba=function(){this.Va.publish("progresssync")};
g.k.Gba=function(){this.Va.Ac("onPlaybackPauseAtStart")};
g.k.Baa=function(a){if(this.getPresentingPlayerType()===1){g.AF(a,1)&&!g.yF(a.state,64)&&this.Nd().isLivePlayback&&this.tb.isAtLiveHead()&&this.Va.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.AF(a,2)){if(this.Fb&&this.Fb.endTimeMs>=(this.getDuration()-1)*1E3){Ihb(this);return}vhb(this)}if(g.yF(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.hh;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Va.dn("onError",GYa(b.errorCode));this.Va.Ac("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.lP,cpn:b.cpn});(0,g.iC)()-this.X.Vf>6048E5&&this.Va.Ac("onReloadRequired")}b={};if(a.state.isPlaying()&&!a.state.isBuffering()&&!RG("pbresume","ad_to_video")&&RG("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.LG(b,"ad_to_video");KG("pbresume",void 0,"ad_to_video");L0a(this.Qd)}this.Va.publish("applicationplayerstatechange",a)}};
g.k.y0=function(a){this.getPresentingPlayerType()!==3&&this.Va.publish("presentingplayerstatechange",a)};
g.k.Gk=function(a){G0(this,GK(a.state));g.yF(a.state,1024)&&this.Va.isMutedByMutedAutoplay()&&(P0(this,{muted:!1,volume:this.Ri.volume},!1),Q0(this,!1))};
g.k.xaa=function(a,b,c){a==="newdata"&&lhb(this);b=c.clipConfig;a==="dataloaded"&&b&&b.startTimeMs!=null&&b.endTimeMs!=null&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})};
g.k.kG=function(a,b){this.Va.Ac("onPlaybackAudioChange",this.Va.getAudioTrack().Yb.name);this.Va.publish("internalaudioformatchange",this.Va.getAudioTrack().Yb.id,b)};
g.k.FG=function(a){var b=this.wb.getVideoData();a===b&&this.Va.dn("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.X.yc()&&b.oa("vdc",{type:a,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});b===this.tb&&(this.X.Cj=c.oauthToken);if(b===this.tb){this.getVideoData().enableServerStitchedDai&&!this.ye?this.ye=new g.WX(this.Va,this.X,this.tb):!this.getVideoData().enableServerStitchedDai&&this.ye&&(this.ye.dispose(),this.ye=null);if(this.X.yc()&&g.DS(c)){var d,e;b.oa("ssap",{vdctype:a,vid:c.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:((d=this.Aq.j)==null?void 0:(e=d.getVideoData())==null?
void 0:e.clientPlaybackNonce)||""})}var f,h;!g.DS(this.getVideoData())||a!=="newdata"&&a!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((f=this.Aq.j)==null?void 0:(h=f.getVideoData())==null?void 0:h.clientPlaybackNonce)?!g.DS(this.getVideoData())&&this.xb&&(this.X.yc()&&b.oa("ssap",{tlmdis:2,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""}),this.xb.dispose(),this.xb=null):(u6a(this.Aq),d=VX(this.Aq,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.Aq.enqueue(d,!0),TX(this.Aq,0,this.getDuration(1)*
1E3,[d]),v6a(this.Aq,this.getVideoData().clientPlaybackNonce,[d]),this.xb&&(this.xb.dispose(),this.xb=null,this.X.yc()&&b.oa("ssap",{tlmdis:1})),this.X.yc()&&b.oa("ssap",{tlmcreate:1}),this.xb=new Y6a(this.Va,this.Aq,this.tb),this.tb.mM(this.xb))}if(a==="newdata")this.logger.debug("new video data, destroy modules"),AV(this.Qd,2),this.Va.publish("videoplayerreset",b);else{if(!this.mediaElement)return;a==="dataloaded"&&(this.wb===this.tb?(lVa(c.Ea,c.gW),Ahb(this)):yhb(this));b.getPlayerType()===1&&
(this.X.Wa&&Yhb(this),this.getVideoData().isLivePlayback&&!this.X.Eq&&this.Gg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&((GXa(c)||this.getVideoData().Rv)&&this.Va.publish("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&Khb(this)));this.Va.publish("videodatachange",a,c,b.getPlayerType())}this.Va.Ac("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.gM();(d=c.mH)?this.Wr.wX(d,c.clientPlaybackNonce):U7a(this.Wr)};
g.k.FO=function(){L0(this,null);this.Va.Ac("onPlaylistUpdate")};
g.k.Qba=function(a){delete this.QL[a.getId()];this.tb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=((b=a.Sa)==null?void 0:(c=b.contents)==null?void 0:(d=c.singleColumnWatchNextResults)==null?void 0:(e=d.autoplay)==null?void 0:(f=e.autoplay)==null?void 0:f.sets)||((h=a.Sa)==null?void 0:(l=h.contents)==null?void 0:(m=l.twoColumnWatchNextResults)==null?void 0:(n=m.autoplay)==null?void 0:(p=n.autoplay)==null?void 0:p.sets);if(q)for(b=g.v(q),c=b.next();!c.done;c=b.next())if(c=c.value,
e=d=void 0,c=c.autoplayVideo||((d=c.autoplayVideoRenderer)==null?void 0:(e=d.autoplayEndpointRenderer)==null?void 0:e.endpoint),d=g.V(c,g.ES),f=e=void 0,c!=null&&((e=d)==null?void 0:e.videoId)===a.videoId&&((f=d)==null?0:f.continuePlayback)){a=c;break a}a=null}(b=g.V(a,g.ES))&&this.Va.jb("onPlayVideo",{sessionData:{autonav:"1",itct:a==null?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
g.k.Lq=function(a){var b=this;a!==this.appState&&(this.logger.debug(function(){return"app state change "+b.appState+" -> "+a}),a===2&&this.getPresentingPlayerType()===1&&(G0(this,-1),G0(this,5)),this.appState=a,this.Va.publish("appstatechange",a))};
g.k.Gg=function(a,b,c,d,e){this.tb.Of(a,b,c,d,e)};
g.k.Qs=function(a,b){this.tb.handleError(new GJ(a,b))};
g.k.isAtLiveHead=function(a,b){b=b===void 0?!1:b;var c=g.uT(this,a);if(!c)return!1;a=H0(this,c);c=I0(this,c);return a!==c?a.isAtLiveHead(R0(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Mr=function(){var a=g.uT(this);return a?H0(this,a).Mr():0};
g.k.seekTo=function(a,b,c,d,e){b=b!==!1;if(d=g.uT(this,d))this.appState===2&&N0(this),this.If(d)?S0(this)?this.ye.seekTo(a,{seekSource:e},b,c):this.Yc.seekTo(a,{seekSource:e},b,c):g.DS(this.getVideoData())&&this.xb?this.xb.seekTo(a,{TH:!b,iU:c,hd:"application",seekSource:e}):d.seekTo(a,{TH:!b,iU:c,hd:"application",seekSource:e})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.GB=function(){this.Va.Ac("SEEK_COMPLETE")};
g.k.hL=function(){this.Va.jb("onAbnormalityDetected")};
g.k.rca=function(a,b){var c=a.getVideoData();if(this.appState===1||this.appState===2)c.startSeconds=b;this.appState===2?g.yF(a.getPlayerState(),512)||N0(this):this.Va.Ac("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Va.publish("airplayactivechange");this.X.L("html5_external_airplay_events")&&this.Va.Ac("onAirPlayActiveChange",this.Va.ji())};
g.k.onAirPlayAvailabilityChange=function(){this.Va.publish("airplayavailabilitychange");this.X.L("html5_external_airplay_events")&&this.Va.Ac("onAirPlayAvailabilityChange",this.Va.zF())};
g.k.showAirplayPicker=function(){var a;(a=this.wb)==null||a.xv()};
g.k.CR=function(){this.Va.publish("beginseeking")};
g.k.qG=function(){this.Va.publish("contentPoTokenReady")};
g.k.HR=function(){this.Va.publish("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.uT(this,a))?H0(this,a).getVideoData().getStoryboardFormat():null};
g.k.vk=function(a){return(a=g.uT(this,a))?H0(this,a).getVideoData().vk():null};
g.k.If=function(a){a=a||this.wb;var b=!1;if(a){a=a.getVideoData();if(S0(this))a=a===this.ye.ea.getVideoData();else a:if(b=this.Yc,a===b.j.getVideoData()&&b.B.length)a=!0;else{b=g.v(b.B);for(var c=b.next();!c.done;c=b.next())if(a.qd===c.value.qd){a=!0;break a}a=!1}b=a}return b};
g.k.cE=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=S0(this),n;(n=g.uT(this))==null||n.oa("appattl",{sstm:this.ye?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:m});l=m?F6a(this.ye,a,b,c,d,e,f,h):w7a(this.Yc,a,c,d,e,f);this.logger.debug(function(){return"Video added to timeline id="+a.video_id+" timelinePlaybackId="+l});
return l};
g.k.wF=function(a,b,c,d,e,f,h){if(S0(this)){var l=F6a(this.ye,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.Yu=function(a){var b;(b=this.ye)==null||b.Yu(a)};
g.k.Kz=function(a,b){a=a===void 0?-1:a;b=b===void 0?Infinity:b;S0(this)||F7a(this.Yc,a,b)};
g.k.VH=function(a,b,c){if(S0(this)){var d=this.ye,e=d.Bc.get(a);e?(c===void 0&&(c=e.Xd),e.durationMs=b,e.Xd=c):d.Gl("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.Yc;e=null;for(var f=g.v(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.qd===a){e=h;break}e?(c===void 0&&(c=e.Xd),E7a(d,e,b,c)):pY(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=c===void 0?Infinity:c;d=d===void 0?"":d;this.If();a=new g.sS(this.X,a);d&&(a.qd=d);Lhb(this,a,b,c)};
g.k.queueNextVideo=function(a,b,c,d,e){c=c===void 0?NaN:c;a=this.preloadVideoByPlayerVars(a,b===void 0?1:b,c,d===void 0?"":d,e===void 0?"":e);b=this.Wc();a&&b&&(this.L("html5_check_queue_on_data_loaded")?this.U().supportsGaplessShorts()&&b.getVideoData().Y&&(c=this.SM,d=this.Tk.N,c.C!==a&&(c.wb=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=B5a(b,a,this.Tk.N),c!=null?(b.oa("sgap",c),b.getVideoData().Y&&B0(b,!1)):(a=a.getVideoData(),b=this.SM,b.j!==
a&&(b.j=a,b.B=1,a.isLoaded()?b.K():b.j.subscribe("dataloaded",b.K,b)))))};
g.k.wJ=function(a,b,c,d){var e=this;c=c===void 0?0:c;d=d===void 0?0:d;var f=g.uT(this);f&&(H0(this,f).n3=!0);S5a(this.Tk,a,b,c,d).then(function(){e.Va.Ac("onQueuedVideoLoaded")},function(){})};
g.k.Co=function(){return this.Tk.Co()};
g.k.GF=function(a){return this.Tk.GF(a)};
g.k.clearQueue=function(a,b){a=a===void 0?!1:a;b=b===void 0?!1:b;this.logger.debug("Clearing queue");this.Tk.clearQueue(a,b)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=b===void 0?1:b;if(b===2&&this.Nd().enableServerStitchedDai&&this.tb&&!s_(this.tb)){var f;(f=this.tb)==null||f.oa("lvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:b});return!1}var h=!1;f=new g.sS(this.X,a);g.GR(this.X)&&!f.Kk&&cV(this.Ob);var l,m=this.Ob,n=(l=f.Wa)!=null?l:"";m.timerName=n;this.Ob.Qi("pl_i");this.L("web_player_early_cpn")&&f.clientPlaybackNonce&&this.Ob.infoGel({clientPlaybackNonce:f.clientPlaybackNonce});if(this.U().supportsGaplessShorts()&&
!this.L("html5_shorts_gapless_always_fallback")){l=V5a(this.Tk,f,b);if(l==null){G0(this,-1);a=this.Tk;a.app.U().L("html5_gapless_new_slr")?Ghb(a.app,"gaplessshortslooprange"):a.app.setLoopRange(null);a.app.getVideoData().OD=!0;var p,q;(p=a.j)==null||(q=p.Aa)==null||q.resume();var r;(r=a.j)==null||nY(r.uc());c={hd:"gapless_to_next_video",seekSource:60};var t;(t=a.app.Wc())==null||t.seekTo(U5a(a),c);if(!a.app.getPlayerStateObject(b).isPlaying()){var u;(u=g.uT(a.app))==null||u.playVideo(!0)}a.K();return!0}t=
this.L("html5_shorts_gapless_preload_fallback");u=this.Tk.j;t&&u&&!u.Na()&&(p=u.getVideoData(),p=this.X.L("html5_autonav_autoplay_in_preload_key")?U0(this,b,p):V0(this,b,p.videoId,p.qd),this.uy.set(p,u,3600));this.Tk.clearQueue(t);var w;(w=g.uT(this))==null||w.oa("sgap",{f:l})}if(e){for(;f.Wm.length&&f.Wm[0].isExpired();)f.Wm.shift();h=f.Wm.length-1;h=h>0&&e.B(f.Wm[h])&&e.B(f.Wm[h-1]);f.Wm.push(e)}c||(a&&W_a(a)?(CR(this.X)&&!this.xj&&(a.fetch=0),L0(this,a)):this.playlist&&L0(this,null),a&&(this.xj=
aB(!1,a.external_list)));this.Va.publish("loadvideo");b=this.Lu(f,b,d);h&&this.Gg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+f.Wm.join()).replace(/[;:,]/g,"_"));return b};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=b===void 0?1:b;c=c===void 0?NaN:c;d=d===void 0?"":d;e=e===void 0?"":e;var f="";if(this.X.L("html5_autonav_autoplay_in_preload_key"))f=Nhb(this,b,a,e);else{var h=eB(a);f=V0(this,b,h,e)}if(this.uy.get(f))return this.logger.debug(function(){return"already preloaded "+f}),null;
a=new g.sS(this.X,a);e&&(a.qd=e);return Mhb(this,a,b,c,d)};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Qd;a=a.J.U().showMiniplayerUiWhenMinimized?a.Ke.get("miniplayer"):void 0;a&&(this.isMinimized()?a.load():a.unload());this.Va.publish("minimized")};
g.k.setInline=function(a){this.visibility.setInline(a)};
g.k.setInlinePreview=function(a){this.visibility.setInline(a);a=this.Qd;a=a.J.U().showInlinePreviewUi?a.Ke.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Va.jb("onInlinePreviewModeChange"))};
g.k.sC=function(a){var b=this.X.L("html5_block_pip_non_mse")&&typeof MediaSource==="undefined",c=this.X.Vl&&this.X.L("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.uP&&b?this.uP.start():this.fX():this.visibility.sC(a)};
g.k.setSqueezeback=function(a){this.visibility.setSqueezeback(a)};
g.k.fX=function(){var a,b=(a=this.mediaElement)==null?void 0:a.Jb();b&&lB(b).catch(function(c){return g.nE(c)})};
g.k.oca=function(){this.mediaElement.Jb();this.mediaElement.Jb().webkitPresentationMode==="picture-in-picture"?this.sC(!0):this.sC(!1)};
g.k.togglePictureInPicture=function(){var a=g.uT(this);a&&a.togglePictureInPicture()};
g.k.Lu=function(a,b,c){b=b===void 0?1:b;this.logger.debug(function(){return"start load video, id "+a.videoId+", type "+b});
RG("_start",this.Ob.timerName)||g.nA(uG)(void 0,this.Ob.timerName);var d=!1,e=Dhb(this,b,a,!1);e?(d=!0,a.dispose()):(e=xhb(this,b,a,c),(this.L("html5_onesie")||this.L("html5_load_before_stop"))&&t0(e)&&g.FX(e),this.dM.stop(),b===1&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),HX(this,e));e===this.tb&&(this.X.Cj=a.oauthToken);if(!t0(e))return!1;if(e===this.tb){this.Lq(1);c=N0(this);if(d&&this.L("html5_player_preload_ad_fix")&&e.getPlayerType()===1&&e.zq.j)this.onVideoDataChange("dataloaded",
e,e.getVideoData());return c}zgb(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=b===void 0?1:b;if(this.Nd().enableServerStitchedDai&&this.tb&&!s_(this.tb)&&a&&Object.keys(a).length>0){var d;(d=this.tb)==null||d.oa("qvonss",{vid:(a==null?void 0:a.videoId)||"",ptype:b})}else if(a&&W_a(a))if(this.Cx=!0,L0(this,a),(a=g.dV(this.playlist))&&a.xe())X0(this,a,b);else this.playlist.onReady(function(){M0(c)});
else{b||(b=this.getPresentingPlayerType());b===1&&this.FO();d=new g.sS(this.X,a);var e=g.nR(this.X)&&!this.X.va&&b===1&&!d.isAd()&&!d.Bc;this.Va.publish("cuevideo");e?(this.Wc().getVideoData().loading=!0,c0a(d,a?a:{}).then(function(f){X0(c,f,b)}),d.dispose()):X0(this,d,b)}};
g.k.qp=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(pR(this.X)||g.xI(this.X))return b=b||{},b.lact=CD(),b.vis=this.Va.getVisibilityState(),this.Va.jb("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;U_a(this.Ob);this.Ob.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.Cx=!0;Ohb(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.Cx=!1;Ohb(this,a,b,c,d)};
g.k.VE=function(){return this.Va.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.Bl())};
g.k.Ut=ba(14);
g.k.nextVideo=function(a,b){var c=g.FS(this.tb.getVideoData());g.IT(this.Va)&&c?this.qp(c.videoId,b?c.GE:c.sessionData,c.playlistId,b,void 0,c.VW||void 0):this.xj?this.Va.Ac("onPlaylistNext"):this.getPresentingPlayerType()===3?DT(this.Qd).nextVideo():!this.playlist||CR(this.X)&&!this.Va.isFullscreen()||(this.playlist.Bl(a)&&Z_a(this.playlist,X_a(this.playlist)),this.playlist.loaded?(a=b&&this.X.L("html5_player_autonav_logging"),b&&this.Va.publish("playlistautonextvideo"),this.Lu(g.dV(this.playlist,void 0,
b,a),1)):this.Cx=!1)};
g.k.previousVideo=function(a){this.xj?this.Va.Ac("onPlaylistPrevious"):this.getPresentingPlayerType()===3?DT(this.Qd).NL():!this.playlist||CR(this.X)&&!this.Va.isFullscreen()||(this.playlist.Xp(a)&&Z_a(this.playlist,Y_a(this.playlist)),this.playlist.loaded?this.Lu(g.dV(this.playlist),1):this.Cx=!1)};
g.k.playVideoAt=function(a){this.xj?this.Va.Ac("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Lu(g.dV(this.playlist,a),1):this.Cx=!1,Z_a(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.gF=ba(22);g.k.vaa=function(a){this.Va.Ac("onCueRangeEnter",a.getId())};
g.k.waa=function(a){this.Va.Ac("onCueRangeExit",a.getId())};
g.k.Bz=function(a,b,c){var d=g.uT(this,b);if(d){var e=this.Nd();if(g.DS(e)){if(this.xb)if(this.L("html5_ssap_enable_cpn_triggered_media_end")&&d.getPlayerType()===2&&this.xb.Cl()&&(this.tb.oa("ssap",{acrla:a.length?a[0].getId():"",acrll:a.length,pt:d.getPlayerType(),acpn:d.getVideoData().clientPlaybackNonce,ccpn:this.tb.getVideoData().clientPlaybackNonce}),d=this.tb),b===1)for(var f=iY(this.xb,e.clientPlaybackNonce),h=g.v(a),l=h.next();!l.done;l=h.next())l=l.value,l.start+=f,l.end+=f,l.Jl=f,l.C=e.clientPlaybackNonce;
else if(this.L("html5_ssap_enable_cpn_triggered_media_end")&&b===2)for(this.getPresentingPlayerType(),e=g.v(a),f=e.next();!f.done;f=e.next())f.value.C=this.xb.xl();e=g.v(a);for(f=e.next();!f.done;f=e.next())h=void 0,f.value.playerType=(h=b)!=null?h:1}d.Bz(a,c);b&&this.getPresentingPlayerType()!==b||F0(this,"cuerangesadded",a)}else this.L("html5_ssap_enable_cpn_triggered_media_end")&&this.tb.oa("ssap",{acrlpnf:this.tb.getVideoData().clientPlaybackNonce})};
g.k.bH=function(a,b){var c=g.uT(this,b);c&&(c.bH(a),b&&this.getPresentingPlayerType()!==b||F0(this,"cuerangesremoved",a))};
g.k.Vy=function(a){var b=this.Wc()||this.tb,c=b.Fh;if(c){var d=this.getPresentingPlayerType();if(this.X.yc()){var e=c.jK("ad");b.oa("ssap",{hac:e?"1":"0",cpn:a,pt:d})}return this.L("html5_ssap_enable_cpn_triggered_media_end")?c.Vy(d,a):c.Vy(d)}return 0};
g.k.Aaa=function(){function a(){var d=b.screenLayer||(b.isMinimized()?3:0),e=g.jE(d);if(e&&e!=="UNDEFINED_CSN"){var f=b.X.L("web_player_attach_player_response_ve"),h=b.X.L("web_playback_associated_ve");if(b.X.L("il_via_jspb")){d=new Jz;var l=b.getVideoData().clientPlaybackNonce;l=S(d,1,l);S(l,3,e);b.getVideoData().va&&(f||h)&&(f=g.hE(b.getVideoData().va),g.AE(e,f),h&&(e=f.getAsJspb(),gk(d,lz,2,e)));if(b.getVideoData().queueInfo){e=b.getVideoData().queueInfo;h=new Iz;if(e==null?0:e.enqueueingVe)(e==
null?0:e.enqueueingVe.trackingParams)?(f=g.hE(e.enqueueingVe.trackingParams),f=f.getAsJspb(),gk(h,lz,1,f)):g.nE(new g.FB("Cannot map enqueueingVe from a client VE "));(e==null?0:e.enqueueingCsn)&&S(h,2,e.enqueueingCsn);(e==null?0:e.clientEnqueueingTimeMs)&&Rk(h,3,Number(e.clientEnqueueingTimeMs));gk(d,Iz,4,h)}e={};b.L("web_playback_associated_log_ctt")&&b.getVideoData().G&&(e.cttAuthInfo={token:b.getVideoData().G,videoId:b.getVideoData().videoId});Vwa(d,e)}else d={cpn:b.getVideoData().clientPlaybackNonce,
csn:e},b.getVideoData().va&&(f||h)&&(f=g.hE(b.getVideoData().va),g.AE(e,f),h&&(d.playbackVe=f.getAsJson())),b.getVideoData().queueInfo&&(d.queueInfo=b.getVideoData().queueInfo),e={},b.L("web_playback_associated_log_ctt")&&b.getVideoData().G&&(e.cttAuthInfo={token:b.getVideoData().G,videoId:b.getVideoData().videoId}),g.VB("playbackAssociated",d,e)}else g.nE(new g.FB("CSN Missing or undefined during playback association"))}
var b=this;this.getPresentingPlayerType();S_a(this.Ob,this.wb.getVideoData(),Shb(this));K0(this)&&this.X.D&&bT(this.Nd())==="embedded"&&this.c_&&Math.random()<.01&&g.VB("autoplayTriggered",{intentional:this.uZ});this.c_=!1;L0a(this.Qd);this.L("web_player_defer_ad")&&zhb(this);this.Va.Ac("onPlaybackStartExternal");(this.X.L("mweb_client_log_screen_associated"),zR(this.X))||a();var c={};this.getVideoData().G&&(c.cttAuthInfo={token:this.getVideoData().G,videoId:this.getVideoData().videoId});c.sampleRate=
20;QG("player_att",c);if(this.getVideoData().botguardData||this.L("fetch_att_independently"))g.ER(this.X)||g.UQ(this.X)==="MWEB"?g.OB(g.QB(),function(){O0(b)}):O0(this);
this.gM();Hhb(this)};
g.k.tG=function(){this.Va.publish("internalAbandon");T0(this)};
g.k.onApiChange=function(){this.X.N&&this.wb?this.Va.dn("onApiChange",this.wb.getPlayerType()):this.Va.dn("onApiChange")};
g.k.tba=function(){var a=this.mediaElement;a={volume:g.ze(Math.floor(a.getVolume()*100),0,100),muted:a.QJ()};a.muted||Q0(this,!1);this.Ri=g.jd(a);this.Va.Ac("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.tR)&&(this.tR=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.tR}),this.Va.Ac("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=Uhb(this);this.pn(a?1:0);Whb(this,!!a)};
g.k.pn=function(a){var b=!!a,c=!!this.oA()!==b;this.visibility.pn(a);this.template.pn(b);this.L("html5_media_fullscreen")&&!b&&this.mediaElement&&Uhb(this)===this.mediaElement.Jb()&&this.mediaElement.JE();this.template.resize();c&&this.Ob.tick("fsc");c&&(this.Va.publish("fullscreentoggled",b),a=this.Nd(),b={fullscreen:b,videoId:a.QN||a.videoId,time:this.getCurrentTime()},this.Va.getPlaylistId()&&(b.listId=this.Va.getPlaylistId()),this.Va.Ac("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.oA=function(){return this.visibility.oA()};
g.k.eca=function(){this.wb&&(this.oA()!==0&&this.oA()!==1||this.pn(Uhb(this)?1:0),this.X.Vl&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)<.33&&this.mediaElement.JE())};
g.k.kba=function(a){this.getPresentingPlayerType()!==3&&this.Va.publish("liveviewshift",a)};
g.k.playVideo=function(a){this.logger.debug(function(){return"play video, player type "+a});
var b=g.uT(this,a);b&&(this.appState===2?(g.GR(this.X)&&cV(this.Ob),N0(this)):g.yF(b.getPlayerState(),2)?(b=36,this.getVideoData().xk()&&(b=37),this.seekTo(0,void 0,void 0,void 0,b)):b.playVideo())};
g.k.pauseVideo=function(a,b){(a=g.uT(this,a))&&a.pauseVideo(b)};
g.k.stopVideo=function(a){a=a===void 0?!1:a;this.logger.debug(function(){return"stop video"});
var b=this.tb.getVideoData(),c=new g.sS(this.X,{video_id:b.QN||b.videoId,oauth_token:b.oauthToken});c.Z=g.jd(b.Z);var d;!a||(d=this.webPlayerContextConfig)!=null&&d.disableStaleness||(c.wW=!0);this.cancelPlayback(6);X0(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.uT(this,b);d?b===2&&d.getPlayerType()===1&&(WXa(this.Nd())||g.DS(this.getVideoData()))?d.oa("canclpb",{r:"no_adpb_ssdai"}):(this.X.yc()&&d.oa("canclpb",{r:a}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+c.appState}):(d===this.wb&&(this.logger.debug("cancel playback, destroy modules"),AV(this.Qd,a)),b===1&&(d.stopVideo(),T0(this)),d.Xo(void 0,a!==6),F0(this,"cuerangesremoved",d.wl()),d.Fh.reset(),this.Tk&&d.isGapless()&&
(d.Oj(!0),d.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.uT(this,b))&&uVa(this.X,a)?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Ji=function(a){var b=g.uT(this);return b&&uVa(this.X,a)?b.Ji(a):null};
g.k.updatePlaylist=function(){!CR(this.X)&&g.nR(this.X)&&Bhb(this);this.Va.Ac("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.f2=a;this.L("web_log_theater_mode_visibility")?this.xC(b):this.QQ=b;this.Va.publish("sizestylechange",a,b);this.template.resize()};
g.k.xC=function(a){this.visibility.xC(a)};
g.k.zk=function(){return this.L("web_log_theater_mode_visibility")?this.visibility.zk():this.QQ};
g.k.isMinimized=function(){return this.visibility.isMinimized()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.xu=function(){return this.visibility.xu()};
g.k.QA=function(){return this.visibility.QA()};
g.k.XA=function(){return this.visibility.XA()};
g.k.PQ=function(){return this.f2};
g.k.getAdState=function(){if(this.getPresentingPlayerType()===3)return DT(this.Qd).getAdState();if(!this.If()){var a=BV(this.Bb());if(a)return a.getAdState()}return-1};
g.k.dca=function(a){var b=this.template.getVideoContentRect();Gs(this.PZ,b)||(this.PZ=b,this.wb&&y0(this.wb),this.tb&&this.tb!==this.wb&&y0(this.tb),this.oA()===1&&this.IG&&Whb(this,!0));this.XQ&&g.Ne(this.XQ,a)||(this.Va.publish("appresize",a),this.XQ=a)};
g.k.oi=function(){return this.Va.oi()};
g.k.yca=function(){this.getPresentingPlayerType()===2&&this.Yc.isManifestless()?D7a(this.Yc):(this.ye&&(K6a(this.ye),T0(this)),uhb(this,"signature"))};
g.k.b0=function(){this.Oj();E0(this)};
g.k.zba=function(a){a.errorCode==="manifest.net.badstatus"&&a.details.rc===(this.X.experiments.gb("html5_use_network_error_code_enums")?401:"401")&&this.Va.jb("onPlayerRequestAuthFailed")};
g.k.pG=function(){this.Va.Ac("CONNECTION_ISSUE")};
g.k.sG=function(a){this.Va.publish("heartbeatparams",a)};
g.k.aM=function(a){this.Va.jb("onAutonavChangeRequest",a!==1)};
g.k.Me=function(){return this.mediaElement};
g.k.setBlackout=function(a){this.X.rb!==a&&(this.X.rb=a,this.wb&&(this.wb.kp(),this.X.Wa&&Yhb(this),this.wb.Wo(a)))};
g.k.Bba=function(){var a=g.uT(this);if(a){var b=!this.Va.DF();(a.SY=b)||a.Kx.stop();a.videoData.j&&(b?a.videoData.j.resume():aUa(a.videoData.j));a.Aa&&(b?a.Aa.resume():A0(a,!0));g.yF(a.playerState,2)||b?g.yF(a.playerState,512)&&b&&a.Hc(EK(a.playerState,512)):a.Hc(DK(a.playerState,512));a=a.uc();a.qoe&&(a=a.qoe,g.L_(a,g.xM(a.provider),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Va.Ac("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Va.Ac("onDrmOutputRestricted")};
g.k.lB=function(){this.uZ=!0};
g.k.ya=function(){this.Qd.dispose();this.J8.dispose();this.Yc.dispose();this.ye&&this.ye.dispose();this.Aq.removeAll();this.Aq.dispose();this.xb&&this.xb.dispose();this.tb.dispose();this.Oj();g.vb(g.Zc(this.kt),this.playlist);g.I.prototype.ya.call(this)};
g.k.L=function(a){return this.X.L(a)};
g.k.setScreenLayer=function(a){this.screenLayer=a};
g.k.getInternalApi=function(){return this.Va.getInternalApi()};
g.k.createSubtitlesModuleIfNeeded=function(){return this.Qd.createSubtitlesModuleIfNeeded()};
g.k.isOrchestrationLeader=function(){var a=DV(this.Qd);return a?a.isOrchestrationLeader():!1};
g.k.getVideoUrl=function(a,b,c,d,e){if(this.Fb&&this.Fb.postId)return a=this.X.getVideoUrl(a),a=wo(a,"v"),a.replace("/watch","/clip/"+this.Fb.postId);var f=this.Va.fd()||this.X.La==="shortspage",h=g.kT(this.getVideoData());return this.X.getVideoUrl(a,b,c,d,e,f,h)};
g.k.yu=function(){return this.Tk.yu()};
g.k.Xm=function(a){this.Va.publish("spsumpstatuschange",a)};
g.k.fS=function(a,b){this.Va.publish("spsumpreject",a,b)};
g.k.hG=function(){try{for(var a=g.v(Object.values(this.kt)),b=a.next();!b.done;b=a.next()){var c=b.value;c.Na()||c.hG()}if(this.L("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var d=g.v(I7a(this.uy)),e=d.next();!e.done;e=d.next()){var f=e.value;f.Na()||f.hG()}this.tb.hG()}catch(h){g.nE(h)}};
g.k.KT=function(){if(this.ye){var a=(0,g.iC)();return this.ye.KT(a)}return!1};
var A3={};var lib=/[&\?]action_proxy=1/,kib=/[&\?]token=([\w-]*)/,mib=/[&\?]video_id=([\w-]*)/,nib=/[&\?]index=([\d-]*)/,oib=/[&\?]m_pos_ms=([\d-]*)/,qib=/[&\?]vvt=([\w-]*)/,cib="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(" "),pib="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(" "),fib={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"},gib={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},iib={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};$0.prototype.iB=function(a){this.player.Ii().tick(a)};
$0.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return this.B(a,b);var d=this.j===1;d&&this.iB("a_bid_s");var e=aib();if(e!==null)return d&&this.iB("a_bid_f"),this.B(a,b,e);e=bib();d&&kg(e,function(){c.iB("a_bid_f")});
return e.then(function(f){return c.B(a,b,f)})};
$0.prototype.B=function(a,b,c){var d=this,e=b===void 0?{}:b;b=e.Nw;var f=e.ge;var h=e.cueProcessedMs;c=c===void 0?"":c;var l=this.player.getVideoData(1);e=this.player.U().Ej;var m={AD_BLOCK:this.j++,AD_BREAK_LENGTH:b?b.Hh:0,AUTONAV_STATE:Z0(this.player.U()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.Mr()*1E3,LACT:CD(),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().ai().height,P_W:this.player.qb().ai().width,YT_REMOTE:e?e.join(","):""},n=Gqa(Fqa);Object.keys(n).forEach(function(q){n[q]!=null&&(m[q.toUpperCase()]=n[q].toString())});
c!==""&&(m.BISCOTTI_ID=c);c={};xA(a)&&(c.sts="19912",(b=this.player.U().forcedExperiments)&&(c.forced_experiments=b));var p=uA(g.av(a,m),c);return p.split("?").length!==2?ig(Error("Invalid AdBreakInfo URL")):g.MR(this.player.U(),l==null?void 0:l.oauthToken).then(function(q){if(q&&wA()){var r=JT();KT(r,q)}q=d.player.Hm(r);r=rib(d,p,m,l.isMdxPlayback,h);return g.VG(q,r,"/youtubei/v1/player/ad_break").then(function(t){return t})})};
$0.prototype.reset=function(){this.C=this.j=1};g.x(sib,$0);
sib.prototype.B=function(a,b,c){b=b===void 0?{}:b;var d=b.Nw;var e=b.ge;var f=b.cueProcessedMs;c=c===void 0?"":c;b=this.j;this.j++;var h=this.player.U().L("h5_disable_macro_substitution_in_get_ad_break")?a:tib(this,a,{Nw:d,ge:e},c,b);if(h.split("?").length!==2)return Math.random()<.1&&g.nE(Error("Invalid AdBreakInfo URL")),ig(Error("Invalid AdBreakInfo URL"));var l=this.player.getVideoData(1).isMdxPlayback,m=c;c=kib.exec(h);c=c!=null&&c.length>=2?c[1]:"";a=lib.test(h);e=mib.exec(h);e=e!=null&&e.length>=
2?e[1]:"";var n=nib.exec(h);n=n!=null&&n.length>=2&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=oib.exec(h);p=p!=null&&p.length>=2?p[1]:"0";var q=yR(this.player.U().Ha),r=g.$F(this.player.getVideoData(1).va,!0);eib(this,r,h,m===""?"":m,this.player.U());m={splay:!1,lactMilliseconds:String(CD()),playerHeightPixels:Math.trunc(this.player.qb().ai().height),playerWidthPixels:Math.trunc(this.player.qb().ai().width),vis:Math.trunc(this.player.getVisibilityState()),signatureTimestamp:19912,autonavState:Z0(this.player.U())};
if(l){l={};var t=this.player.U().Ej;hib(l,t?t.join(","):"")&&(m.mdxContext=l)}if(l=pib.includes(q)?void 0:g.RA("PREF")){t=l.split(RegExp("[:&]"));for(var u=0,w=t.length;u<w;u++){var A=t[u].split("=");if((A[0].toUpperCase()==="SML"||A[0].toUpperCase()==="GSML")&&A.length>1&&A[1].toUpperCase()==="TRUE"){r.user.lockedSafetyMode=!0;break}}m.autoCaptionsDefaultOn=jib(l)}h=qib.exec(h);(h=h!=null&&h.length>=2?h[1]:"")&&e&&(r.user.credentialTransferTokens=[{token:h,scope:"VIDEO"}]);h={contentPlaybackContext:m};
m=bYa(this.player.getVideoData(1));l=this.player.getVideoData(1).clientPlaybackNonce;f=f!==void 0?Math.round(f).toString():void 0;t=(d==null?0:d.context)?d.context:void 0;d=(d=Math.trunc((d?d.Hh:0)*1E3))?String(d):void 0;u=this.player.Mr()*1E3;u=Number.isNaN(u)?0:Math.trunc(u);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:u?String(u):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:m?m:void 0};return uib(this,b)};var vqb={P6a:"replaceUrlMacros",T0a:"onAboutThisAdPopupClosed",OFa:"executeCommand"};vib.prototype.Lr=function(){return"adPingingEndpoint"};
vib.prototype.ju=function(a,b,c){$ib(this.Pa.get(),a,b,c)};wib.prototype.Lr=function(){return"changeEngagementPanelVisibilityAction"};
wib.prototype.ju=function(a){this.J.jb("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};xib.prototype.Lr=function(){return"loggingUrls"};
xib.prototype.ju=function(a,b,c){a=g.v(a);for(var d=a.next();!d.done;d=a.next())d=d.value,$ib(this.Pa.get(),d.baseUrl,b,c,d.attributionSrcMode)};g.x(zib,g.I);g.x(b1,g.I);g.k=b1.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.Fk=function(a,b,c,d,e,f,h,l){if(a==="")wF("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.Ia.get().Fk(a,b,c,d,e,f,h,l);this.Ta.get().Fk(a,b,c,d,e,f,h,l);var m;(m=this.Bf)==null||m.get().Fk(a,b,c,d,e,f,h,l);this.B.Fk(a,b,c,d,e,f,h,l);m=g.v(this.listeners);for(var n=m.next();!n.done;n=m.next())n.value.Fk(a,b,c,d,e,f,h,l)}};
g.k.tG=function(){this.j&&this.Mo(this.j)};
g.k.Mo=function(a){this.j=void 0;for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.Mo(a)};c1.prototype.KI=function(a,b,c,d,e){Aib(this);this.G=!b&&c===0;var f=this.J.getVideoData(1),h=this.J.getVideoData(2);f&&(this.contentCpn=f.clientPlaybackNonce,this.videoId=f.videoId,this.j=f.G);h&&(this.adCpn=h.clientPlaybackNonce,this.adVideoId=h.videoId,this.adFormat=h.adFormat);this.C=a;d<=0?(Aib(this),this.G=!b&&c===0):(this.actionType=this.G?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",this.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&&
(this.D=!0,RG("_start",this.actionType)&&Cib(this)))};
c1.prototype.reset=function(){return new c1(this.J)};g.x(e1,g.I);e1.prototype.addCueRange=function(a,b,c,d,e,f,h){f=f===void 0?3:f;h=h===void 0?1:h;this.j.has(a)?wF("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new Eib(a,b,c,d,f),this.j.set(a.id,{ge:a,listener:e,jp:h}),this.J.nf([a],h))};
e1.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.J.Yo([b.ge],b.jp),this.j.delete(b.ge.id)):wF("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
e1.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
e1.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.x(Eib,g.UI);f1.prototype.UG=function(a){this.J.UG(a)};
f1.prototype.ev=function(a){var b=g.Ja.apply(1,arguments);a==="onAdStart"||a==="onAdEnd"?this.J.dn.apply(this.J,[a].concat(g.ra(b))):this.J.jb.apply(this.J,[a].concat(g.ra(b)))};g1.prototype.kf=function(a){return a&&h1(this)};
g1.prototype.CT=function(){return this.J.U().experiments.gb("h5_enable_generic_error_logging_event")};
g1.prototype.FT=function(){return this.J.U().experiments.gb("enable_ips_gating")};var Mib=null;g.x(Lib,g.GE);Lib.prototype.HP=function(a){return this.j.hasOwnProperty(a)?this.j[a].HP():{}};
g.Va("ytads.bulleit.getVideoMetadata",function(a){return j1().HP(a)});
g.Va("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=j1();c=Kib(c);c!==null&&d.publish(c,{queryId:a,viewabilityString:b})});g.k=k1.prototype;
g.k.Th=function(a,b){if(!this.j.has(a))return{};if(b==="seek"){b=this.J.U().L("html5_dai_enable_active_view_creating_completed_adblock");b=b===void 0?!1:b;var c=cs($u).aK(a,{});c?Zt(c):b&&(a=cs($u).aH(null,vs(),!1,a),a.Ck=3,Mja([a]));return{}}b=Oib(b);if(b===null)return{};var d=this.J.Wc();d=d&&sgb(d);if(!d)return{};var e=this.J.getPresentingPlayerType(!0);if((c=this.J.getVideoData(e))==null||!c.isAd())return{};c={opt_adElement:d,opt_fullscreen:this.Ia.get().isFullscreen()};return Mka(b,a,c)};
g.k.Wx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Wx()};
g.k.Vx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Vx()};
g.k.Xx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Xx()};
g.k.Tx=function(a){var b;(b=this.j.get(a.queryId))==null||b.Tx()};
g.k.Ux=function(a){var b;(b=this.j.get(a.queryId))==null||b.Ux()};Vib.prototype.send=function(a,b,c,d){try{Wib(this,a,b,c,d===void 0?!1:d)}catch(e){}};g.x(Xib,Vib);Yib.prototype.send=function(a,b,c,d){var e=!1;try{var f=new g.kq(a),h;if(h=!this.Ba.get().J.U().experiments.gb("replace_client_url_parsing_with_server_signal"))h=f.C.get("ase")==="2";if(h||d==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||d==="ATTRIBUTION_SRC_MODE_XHR_OPTION")e=!0,a=Wua(a);d=e;var l=a.match(wn);if(l[1]==="https")var m=a;else l[1]="https",m=un("https",l[2],l[3],l[4],l[5],l[6],l[7]);var n=Qka(m);l=[];var p=Dqa(m)&&this.Ba.get().J.U().experiments.gb("add_auth_headers_to_remarketing_google_dot_com_ping");
if(xA(m)||p)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"}),l.push({headerType:"DATASYNC_ID"});!this.Ba.get().J.U().experiments.gb("clean_up_manual_attribution_header")&&d&&l.push({headerType:"ATTRIBUTION_REPORTING_ELIGIBLE"});this.j.send({baseUrl:m,scrubReferrer:n,headers:l},b,c,d)}catch(q){}};p1.prototype.Ji=function(){var a=this.J.Wc();return a&&(a=a.Ji(1))?a:null};g.x(q1,g.I);g.k=q1.prototype;g.k.jg=function(){return this.J.getVideoData(1).clientPlaybackNonce};
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.Fk=function(){this.aO.clear();this.aR=null;this.Vs.get().clear()};
g.k.Mo=function(){};
g.k.Fe=function(a){var b=this.J.getVideoData(a);return b?this.LI(b,a||this.J.getPresentingPlayerType(!0)):null};
g.k.Qca=function(a,b,c,d,e){b.videoId==="nPpU29QrbiU"&&BJ(this,"ads_ssm_vdc_s",{pt:c,dvt:a});wM(this.Ba.get())&&a!=="dataloaded"||gjb(this,b,c);if(h1(this.Ba.get())&&a==="newdata"&&e!==void 0){a=this.jg();var f=b.clientPlaybackNonce,h={};EJ(this,"rte",(h.ec=f,h.xc=d==null?void 0:d.clientPlaybackNonce,h.tr=e,h.pt=c,h.ia=f!==a,h.ctp=DJ(f),h));b=b.clientPlaybackNonce;d=d==null?void 0:d.clientPlaybackNonce;e=hjb(e);if(e!==1)if(d!==void 0)for(c=g.v(this.listeners),a=c.next();!a.done;a=c.next())a.value.oG(d,
b,e);else wF("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:b,transitionReason:String(e)});e=g.v(this.listeners);for(d=e.next();!d.done;d=e.next())d.value.nG(b)}};
g.k.sca=function(a,b){a!==void 0&&(this.aR=a,b===void 0?wF("Expected ad video start time on SS video changed"):this.aO.set(a,b));var c=this.J.getPresentingPlayerType(!0),d=this.J.getVideoData(c);this.J.getVideoData(1).oa("ads_ssvc",{pt:c,cpn:d==null?void 0:d.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:b});d?gjb(this,d,c):wF("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.LI=function(a,b){var c=a.author,d=a.clientPlaybackNonce,e=a.isListed,f=a.qd,h=a.title,l=a.hj,m=a.Nj,n=a.isMdxPlayback,p=a.An,q=a.mdxEnvironment,r=a.isAutonav,t=a.Kq,u=a.Kk,w=a.Hp,A=a.videoId||"",C=a.profilePicture||"",F=a.Ul||"",G=a.xk()||!1,K=a.Rm()||!1;a=a.Kw||void 0;f=this.Vs.get().j.get(f)||{layoutId:null,slotId:null};var N=this.J.getVideoData(1),R=N.hc();N=N.getPlayerResponse();b=1E3*this.J.getDuration(b);var da=1E3*this.J.getDuration(1),oa,qa,ha=(N==null?void 0:(oa=N.playerConfig)==null?
void 0:(qa=oa.daiConfig)==null?void 0:qa.enableDai)||!1,ta,P;oa=(N==null?void 0:(ta=N.playerConfig)==null?void 0:(P=ta.daiConfig)==null?void 0:P.enablePreroll)||!1;return Object.assign({},f,{videoId:A,author:c,clientPlaybackNonce:d,gda:b,Mp:da,daiEnabled:ha,AX:oa,isListed:e,hc:R,profilePicture:C,title:h,Ul:F,hj:l,Nj:m,Kw:a,isMdxPlayback:n,An:p,mdxEnvironment:q,isAutonav:r,Kq:t,Kk:u,Hp:w,xk:G,Rm:K})};
g.k.ya=function(){this.listeners.length=0;this.Ow=null;g.I.prototype.ya.call(this)};g.x(r1,g.I);g.k=r1.prototype;g.k.Fk=function(){var a=this;h1(this.Ba.get())||(this.j=Od(function(){a.J.Na()||a.J.Hg("ad",1)}))};
g.k.Mo=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.FR=function(){};
g.k.playVideo=function(){this.J.playVideo()};
g.k.pauseVideo=function(){this.J.pauseVideo()};
g.k.resumeVideo=function(a){this.Eo(a)&&this.J.playVideo()};
g.k.Eo=function(a){return this.J.getPlayerState(a)===2};
g.k.getCurrentTimeSec=function(a,b,c){var d=this.Ta.get().aR;if(a===2&&!b&&d!==null)return jjb(this,d);rM(this.Ba.get(),"html5_ssap_use_cpn_to_get_time")||(c=void 0);return c!==void 0?this.J.getCurrentTime(a,b,c):this.J.getCurrentTime(a,b)};
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.uC=function(a){this.J.uC(a)};
g.k.Sba=function(){var a=this.J.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(a===2){a=g.v(this.listeners);for(var c=a.next();!c.done;c=a.next())c.value.Ni(b)}else if(a===1)for(a=g.v(this.qE),c=a.next();!c.done;c=a.next())c.value.FR(b)};
g.k.Jba=function(a){for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.Eg(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.v(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.rh=function(){for(var a=this.J.isMinimized(),b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.rh(a)};
g.k.Gj=function(a){for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.Gj(a)};
g.k.kc=function(){for(var a=this.J.qb().ai(),b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.dj(a)};
g.k.Fj=function(a){for(var b=g.v(this.listeners),c=b.next();!c.done;c=b.next())c.value.Fj(a)};
g.k.Ij=function(){for(var a=g.v(this.listeners),b=a.next();!b.done;b=a.next())b.value.Ij()};g.x(mjb,g.I);g.x(w1,g.I);w1.prototype.ya=function(){this.Io.Na()||this.Io.get().removeListener(this);g.I.prototype.ya.call(this)};x1.prototype.fetch=function(a){var b=a.yX;return this.j.fetch(a.u3,{Nw:a.Nw===void 0?void 0:a.Nw,ge:b,cueProcessedMs:a.cueProcessedMs===void 0?0:a.cueProcessedMs}).then(function(c){return njb(c,b)})};g.x(y1,g.I);g.k=y1.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.rM=function(a){ojb(this,a,1)};
g.k.onAdUxClicked=function(a,b){z1(this,function(c){c.pg(a,b)})};
g.k.AR=function(a){z1(this,function(b){b.fQ(a)})};
g.k.zR=function(a){z1(this,function(b){b.eQ(a)})};
g.k.saa=function(a){z1(this,function(b){b.eK(a)})};A1.prototype.reduce=function(a){switch(a.event){case "unknown":return}var b=a.identifier;var c=this.j[b];c?b=c:(c={sE:null,RZ:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.RZ))if(b.RZ=c,b.sE){if(c<b.sE.end){a:{c=b.sE;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.Hh;a=c.end<=a?null:a}if(a!==null)for(b.sE.end=a,b=this.B,g.Xb(b.C.j,a*1E3),b=g.v(b.listeners),c=b.next();!c.done;c=b.next())c.value.U_(a)}}else if(a=pjb(a,this.C))c=a.n$,b.sE=
a.b8,rjb(this.B,c)};
A1.prototype.updateTime=function(){};g.x(B1,g.I);g.k=B1.prototype;
g.k.Fk=function(){this.G=new A1(this,Hib(this.Ba.get()));this.C=new qjb;var a=this.J.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.J.getVideoData(1),c;((c=this.j)==null?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(this.j!=null&&this.j.unsubscribe("cuepointupdated",this.GR,this),b.subscribe("cuepointupdated",this.GR,this),this.j=b)}this.GM.length=0;var d;b=((d=a.j)==null?void 0:STa(d,0))||[];d=g.v(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.Vu(b)&&wF("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
g.k.Mo=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.Vu=function(a){tjb(this,a);this.G.reduce(a);a=this.D;this.D=!1;return a};
g.k.GR=function(a){var b=this.J.getVideoData(1).isDaiEnabled();if(b||!g.xI(this.J.U())){a=g.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value,tjb(this,c),b?this.G.reduce(c):this.J.getCurrentTime(1)!==0&&c.event==="start"&&(this.Ba.get().J.U().experiments.gb("ignore_overlapping_cue_points_on_endemic_live_html5")&&(this.B==null?0:c.startSecs+c.Hh>=this.B.startSecs&&c.startSecs<=this.B.startSecs+this.B.Hh)?wF("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.B=c,rjb(this,
c)))}};
g.k.ya=function(){this.j!=null&&(this.j.unsubscribe("cuepointupdated",this.GR,this),this.j=null);this.listeners.length=0;this.GM.length=0;g.I.prototype.ya.call(this)};C1.prototype.addPlayerResponseForAssociation=function(a){this.J.addPlayerResponseForAssociation(a)};g.k=E1.prototype;g.k.cE=function(a,b,c,d,e,f,h){return this.J.cE(a,b,c,d,e,f,h)};
g.k.Kz=function(a,b){this.J.Kz(a,b)};
g.k.VH=function(a,b,c){this.J.VH(a,b,c)};
g.k.Yu=function(a){this.J.Yu(a)};
g.k.wF=function(a,b,c,d,e,f,h){this.J.wF(a,b,c,d,e,f,h)};
g.k.Ss=function(a){return this.J.Ss(a)};
g.k.finishSegmentByCpn=function(a,b){this.J.finishSegmentByCpn(a,b)};g.x(wjb,g.I);g.x(xjb,g.I);g.x(yjb,g.I);g.x(zjb,g.I);g.x(Ajb,g.I);g.x(Cjb,g.I);Cjb.prototype.C=function(){return this.B};g.x(Djb,jF);
Djb.prototype.D=function(a){var b=a.content;if(b.componentType==="shopping-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.jb("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.jb("updateKevlarOrC3Companion",{})}else if(b.componentType==="action-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.jb("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.jb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.jb("updateKevlarOrC3Companion",{})}else if(b.componentType==="image-companion")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.jb("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.jb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.jb("updateKevlarOrC3Companion",{})}else if(b.componentType==="top-banner-image-text-icon-buttoned")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.jb("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.jb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.jb("updateKevlarOrC3Companion",{})}else if(b.componentType==="banner-image")switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.jb("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.jb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.jb("updateKevlarOrC3Companion",{})}else if(b.componentType==="ads-engagement-panel")switch(b=b.renderer,a.actionType){case 1:case 2:this.j.jb("updateEngagementPanelAction",b.addAction);this.j.jb("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.jb("changeEngagementPanelVisibility",b.hideAction),this.j.jb("updateEngagementPanelAction",b.removeAction)}else if(b.componentType==="ads-engagement-panel-layout"){var c=b.renderer;switch(a.actionType){case 1:case 2:this.j.jb("updateEngagementPanelAction",{action:sE(c.addAction),layoutId:b.layoutId,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});this.j.jb("changeEngagementPanelVisibility",sE(c.expandAction));break;case 3:this.j.jb("changeEngagementPanelVisibility",
sE(c.hideAction)),this.j.jb("updateEngagementPanelAction",{action:sE(c.removeAction)})}}};g.x(Ejb,oF);g.k=Ejb.prototype;
g.k.init=function(a,b,c){oF.prototype.init.call(this,a,b,c);g.Is(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(){qF(this);oF.prototype.hide.call(this)};
g.k.show=function(){pF(this);oF.prototype.show.call(this)};
g.k.Cq=function(){this.hide()};
g.k.Uo=function(){if(this.j){var a=this.j.getProgressState();a!=null&&a.current!=null&&g.Is(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.C+" "+this.C)}};g.x(Fjb,PE);g.k=Fjb.prototype;
g.k.init=function(a,b,c){PE.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.V(b.actionButton,g.cM))if(a=b.durationMilliseconds||0,typeof a!=="number"||a<=0)g.mE(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(d!=null){var e=b.image.thumbnail.thumbnails;e!=null&&
e.length>0&&g.fc(g.cf(e[0].url))&&(e[0].url=d.profilePicture,g.fc(g.cf(d.profilePicture))&&jUa("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;e!=null&&e.length>0&&g.fc(g.cf(e[0].url))&&(e[0].url=d.kh());e=b.headline;e!=null&&g.fc(g.cf(e.text))&&(e.text=d.author)}this.Y.init(EE("ad-image"),b.image,c);this.G.init(EE("ad-text"),b.headline,c);this.C.init(EE("ad-text"),b.description,c);this.Oa.init(EE("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.Ya.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Af.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.Ga.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new $E(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,d);g.M(this,this.actionButton);this.actionButton.Ka(this.ib);this.actionButton.init(EE("button"),g.V(b.actionButton,g.cM),c);Av(this.actionButton.element);d=ila(this.actionButton.element);Bv(this.actionButton.element,
d+" This link opens in new tab");this.navigationEndpoint=b.navigationEndpoint;this.D.T(this.va,"click",this.mP,this);this.D.T(this.Wa,"click",this.mP,this);!this.api.U().L("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.U().B||this.D.T(this.Xa,"click",this.mP,this);this.j=this.GT?new GF(this.api,a):new HF(a);g.M(this,this.j);if(b.skipButton){if((a=g.V(b.skipButton,Imb))&&this.j&&(this.skipButton=new BF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.j,this.oM),
g.M(this,this.skipButton),this.skipButton.Ka(this.element),this.skipButton.init(EE("skip-button"),a,c)),this.api.U().L("enable_dsa_ad_badge_for_action_endcap_on_web")){if(c=b.adBadgeRenderer)if(c=g.V(c,Hmb))a=new EF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,!0,!1),a.Ka(this.Ga),a.init(EE("simple-ad-badge"),c,this.macros),g.M(this,a);if(c=b.adInfoRenderer)if(c=g.V(c,aM))a=new mF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.element),a.Ka(this.Ga),a.init(EE("ad-info-hover-text-button"),
c,this.macros),g.M(this,a)}}else b.nonskippableOverlayRenderer&&(a=g.V(b.nonskippableOverlayRenderer,bM))&&this.j&&(this.B=new tF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.j,!1),g.M(this,this.B),this.B.Ka(this.element),this.B.init(EE("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.V(b,Jmb)&&this.j&&(c=new Ejb(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.j),g.M(this,c),c.Ka(this.element),c.init(EE("timed-pie-countdown"),g.V(b,Jmb),
this.macros)));this.show();this.element.focus()}else g.mE(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.mE(Error("AdActionInterstitialRenderer has no button."));else g.mE(Error("AdActionInterstitialRenderer has no background AdImage."));else g.mE(Error("AdActionInterstitialRenderer has no description AdText."));else g.mE(Error("AdActionInterstitialRenderer has no headline AdText."));else g.mE(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.uB(this.D);this.hide()};
g.k.show=function(){Gjb(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();PE.prototype.show.call(this)};
g.k.hide=function(){Gjb(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();PE.prototype.hide.call(this)};
g.k.mP=function(){this.navigationEndpoint&&(this.layoutId?this.ob.executeCommand(this.navigationEndpoint,this.layoutId):g.mE(Error("Missing layoutId for ad action interstitial.")))};var Ljb={iconType:"CLOSE"},I1=new g.Me(320,63);g.x(Kjb,PE);g.k=Kjb.prototype;
g.k.init=function(a,b,c){PE.prototype.init.call(this,a,b,c);this.D=b;this.Y=g.Kb(this.D.onClickCommands||[]);this.Wa=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,g.V(a,Emb)?(this.G=g.wf("ytp-ad-overlay-ad-info-button-container",this.C.element),Mjb(this,b),a=Ojb(this,g.V(a,Emb))):g.V(a,Fmb)?(this.G=g.wf("ytp-ad-overlay-ad-info-button-container",this.B.element),Mjb(this,b),a=Pjb(this,g.V(a,Fmb))):g.V(a,Gmb)?(this.G=
g.wf("ytp-ad-overlay-ad-info-button-container",this.j.element),Mjb(this,b),a=Qjb(this,g.V(a,Gmb))):(g.mE(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),Rjb(this,!0))};
g.k.clear=function(){Rjb(this,!1);this.Oa.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.Hca=function(){this.Ya&&(this.layoutId?this.ob.executeCommand(this.Ya,this.layoutId):g.mE(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.k.XM=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.v(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.ob.executeCommand(b,this.layoutId):g.mE(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.qaa=function(){this.Xa||this.api.getPlayerState(1)!==2||this.api.playVideo()};
g.k.ZR=function(){this.Xa||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.ZR("invideo-overlay")};
g.k.raa=function(a){a.target===this.G&&g.wf("ytp-ad-button",this.ib.element).click()};g.x(Sjb,oF);g.k=Sjb.prototype;g.k.init=function(a,b,c){oF.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=a==null||a===0?0:a+this.j.getProgressState().current*1E3;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(EE("ad-text"),d,c);this.messageText.Ka(this.B.element);this.D.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){Tjb(this,!1);oF.prototype.hide.call(this);this.B.hide();this.messageText.hide();qF(this)};
g.k.show=function(){Tjb(this,!0);oF.prototype.show.call(this);pF(this);this.B.show();this.messageText.show()};
g.k.Cq=function(){this.hide()};
g.k.Uo=function(){if(this.j!=null){var a=this.j.getProgressState();a!=null&&a.current!=null&&(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&&($ya(this.messageText,{TIME_REMAINING:String(a)}),this.G=a)))}};g.x(Ujb,PE);g.k=Ujb.prototype;
g.k.init=function(a,b,c){PE.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.V(b.actionButton,g.cM)?(this.C.init(EE("ad-image"),b.image,c),this.B.init(EE("ad-text"),b.headline,c),this.D.init(EE("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 $E(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,
a),b.backgroundColor&&g.Is(this.element,"background-color",g.RF(b.backgroundColor)),g.M(this,this.actionButton),this.actionButton.Ka(this.G),this.actionButton.init(EE("button"),g.V(b.actionButton,g.cM),c),b=g.oI(this.api.U().experiments,"player_underlay_video_width_fraction"),this.api.U().L("place_shrunken_video_on_left_of_player")?(c=this.j,g.Mv(c,"ytp-ad-underlay-left-container"),g.Kv(c,"ytp-ad-underlay-right-container"),g.Is(this.j,"margin-left",Math.round((b+.02)*100)+"%")):(c=this.j,g.Mv(c,"ytp-ad-underlay-right-container"),
g.Kv(c,"ytp-ad-underlay-left-container")),g.Is(this.j,"width",Math.round((1-b-.04)*100)+"%"),this.api.FF()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.OU.bind(this)),this.api.addEventListener("resize",this.QY.bind(this))):g.mE(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.mE(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.mE(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.mE(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){Vjb(!0);this.actionButton&&this.actionButton.show();PE.prototype.show.call(this)};
g.k.hide=function(){Vjb(!1);this.actionButton&&this.actionButton.hide();PE.prototype.hide.call(this)};
g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.OU.bind(this));this.api.removeEventListener("resize",this.QY.bind(this));this.hide()};
g.k.onClick=function(a){PE.prototype.onClick.call(this,a);this.actionButton&&g.Of(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.OU=function(a){a==="transitioning"?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):a==="visible"?this.j.classList.add("ytp-ad-underlay-clickable"):a==="hidden"&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))};
g.k.QY=function(a){a.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):a.width>875?(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.Is(this.B.element,"font-size",a.width/40+"px")};g.x(J1,PE);
J1.prototype.init=function(a,b,c){PE.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.V(b.answer,g.cM)?(a=new $E(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ka(this.answer),a.init(EE("ytp-ad-survey-answer-button"),g.V(b.answer,g.cM),c),a.show()):b.answer&&g.V(b.answer,y2)&&(this.j=new iF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,
["ytp-ad-survey-answer-toggle-button"]),this.j.Ka(this.answer),g.M(this,this.j),this.j.init(EE("survey-answer-button"),g.V(b.answer,y2),c));this.show()};
J1.prototype.nH=function(a){this.layoutId?KI(this.ob,a,this.layoutId,this.macros):g.mE(new g.FB("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
J1.prototype.onClick=function(a){PE.prototype.onClick.call(this,a);if(this.api.U().L("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)};
J1.prototype.clear=function(){this.hide()};g.x(Wjb,PE);Wjb.prototype.init=function(a,b,c){PE.prototype.init.call(this,a,b,c);b.answer&&g.V(b.answer,y2)&&(this.button=new iF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ka(this.j),this.button.init(EE("survey-none-of-the-above-button"),g.V(b.answer,y2),c));this.show()};g.x(K1,$E);K1.prototype.init=function(a,b,c){$E.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.RE(b.text),a=!g.fc(b));a||g.nE(Error("No submit text was present in the renderer."))};
K1.prototype.onClick=function(a){this.publish("l");$E.prototype.onClick.call(this,a)};g.x(L1,PE);
L1.prototype.init=function(a,b,c){PE.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.V(a,hL)?(a=g.V(a,hL),c=new DF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.D,!0),c.Ka(this.skipOrPreview),c.init(EE("skip-button"),a,this.macros),g.M(this,c),this.j=c):g.V(a,bM)&&(a=g.V(a,bM),c=new tF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.D,!1),c.Ka(this.skipOrPreview),c.init(EE("ad-preview"),a,this.macros),aza(c),g.M(this,c),this.j=c);this.j==
null&&g.mE(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));b.submitButton&&(a=b.submitButton,g.V(a,g.cM)&&(a=g.V(a,g.cM),c=new K1(this.api,this.layoutId,this.interactionLoggingClientData,this.ob),c.Ka(this.submitButton),c.init(EE("survey-submit"),a,this.macros),g.M(this,c),this.B=c));if(a=b.adBadgeRenderer)a=g.V(a,Hmb),c=new EF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,!0,!1),c.Ka(this.C),c.init(EE("simple-ad-badge"),a,this.macros),
g.M(this,c);if(a=b.adDurationRemaining)a=g.V(a,Amb),c=new KF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.D,void 0),c.Ka(this.C),c.init(EE("ad-duration-remaining"),a,this.macros),g.M(this,c);(b=b.adInfoRenderer)&&g.V(b,aM)&&(a=new mF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.element),g.M(this,a),a.Ka(this.C),a.init(EE("ad-info-hover-text-button"),g.V(b,aM),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()};
L1.prototype.clear=function(){this.hide()};g.x(M1,PE);M1.prototype.init=function(a,b,c){PE.prototype.init.call(this,a,b,c);akb(this)};
M1.prototype.show=function(){this.C=g.kb();PE.prototype.show.call(this)};
M1.prototype.q1=function(){};g.x(bkb,M1);g.k=bkb.prototype;g.k.init=function(a,b,c){var d=this;M1.prototype.init.call(this,a,b,c);b.questionText&&Xjb(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.V(e,t2)&&Yjb(d,g.V(e,t2),c,f)});
this.G=new Set(this.B.map(function(e){return e.j.j}));
(a=b.noneOfTheAbove)&&(a=g.V(a,Dmb))&&ckb(this,a,c);b.surveyAdQuestionCommon&&$jb(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
g.k.q1=function(){dkb(this,!1);this.D.B.subscribe("l",this.Fca,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?ekb(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),dkb(this,!0))};
g.k.Fca=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.kd(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=uo(f.baseUrl,b));return f});
return e});
if(c){c=g.v(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.layoutId?KI(this.ob,d,this.layoutId,this.macros):g.mE(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.x(N1,M1);N1.prototype.init=function(a,b,c){var d=this;M1.prototype.init.call(this,a,b,c);b.questionText&&Xjb(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.V(e,t2)&&Yjb(d,g.V(e,t2),c,f)});
b.surveyAdQuestionCommon?$jb(this,b.surveyAdQuestionCommon):g.mE(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
N1.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.x(O1,PE);O1.prototype.init=function(a,b,c){var d=this;PE.prototype.init.call(this,a,b,c);if(this.api.U().L("supports_multi_step_on_desktop")){var e;this.conditioningRules=(e=b.conditioningRules)!=null?e:[];var f;this.B=(f=b.questions)!=null?f:[];var h;((h=b.questions)==null?0:h.length)&&ikb(this,0)}else(b.questions||[]).forEach(function(l){g.V(l,$L)?gkb(d,g.V(l,$L),c):g.V(l,ZL)&&hkb(d,g.V(l,ZL),c)});
this.show()};
O1.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
O1.prototype.D=function(a){var b=this;if(this.api.U().L("supports_multi_step_on_desktop")){var c;if((c=this.conditioningRules)==null?0:c.length){var d;if(a.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(e){return e.questionIndex===b.j})==null)g.mE(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((f=e.answerIndices)==null?0:f.every(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
break;case "CONDITION_ANY_OF":var h;if((h=e.answerIndices)==null?0:h.some(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
break;default:g.mE(Error("Expected specified condition in survey conditioning rules."))}}),d!=null)ikb(this,d);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.mE(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 jkb=pa(['background-image:url("','");']);g.x(P1,PE);
P1.prototype.init=function(a,b,c){var d=this;PE.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if(typeof a!=="number"||a<0)g.mE(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+a));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.V(b.ctaButton,g.cM))if(b.brandImage)if(b.backgroundImage&&g.V(b.backgroundImage,dM)&&g.V(b.backgroundImage,dM).landscape){this.layoutId||g.mE(Error("Missing layoutId for survey interstitial."));kkb(this.interstitial,
g.V(b.backgroundImage,dM).landscape);kkb(this.logoImage,b.brandImage);g.Pf(this.text,g.RE(b.text));var e=["ytp-ad-survey-interstitial-action-button"];e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new $E(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,e);g.M(this,this.actionButton);this.actionButton.Ka(this.B);this.actionButton.init(EE("button"),g.V(b.ctaButton,g.cM),c);this.actionButton.show();this.j=new GF(this.api,a*1E3);this.j.subscribe("g",function(){d.transition.hide()});
g.M(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.mE(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.mE(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.mE(Error("SurveyTextInterstitialRenderer has no button."));else g.mE(Error("SurveyTextInterstitialRenderer has no text."));else g.mE(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
P1.prototype.clear=function(){this.hide()};
P1.prototype.show=function(){lkb(!0);PE.prototype.show.call(this)};
P1.prototype.hide=function(){lkb(!1);PE.prototype.hide.call(this)};g.x(R1,PE);R1.prototype.init=function(a,b){PE.prototype.init.call(this,a,b,{});if(a=b.content){g.Pf(this.element,a);var c,d;b=((c=b.interaction)==null?void 0:(d=c.accessibility)==null?void 0:d.label)||a;this.element.setAttribute("aria-label",b)}else g.mE(Error("AdSimpleAttributedString does not have text content"))};
R1.prototype.clear=function(){this.hide()};
R1.prototype.onClick=function(a){PE.prototype.onClick.call(this,a)};g.x(S1,PE);
S1.prototype.init=function(a,b){PE.prototype.init.call(this,a,b,{});(a=b.label)&&a.content&&!g.fc(a.content)?(this.adBadgeText.init(EE("ad-simple-attributed-string"),new Q1(a)),(b=b.adPodIndex)&&b.content&&!g.fc(b.content)&&(this.j=new R1(this.api,this.layoutId,this.interactionLoggingClientData,this.ob),this.j.Ka(this.element),g.M(this,this.j),this.j.element.classList.add("ytp-ad-badge__pod-index"),this.j.init(EE("ad-simple-attributed-string"),new Q1(b))),this.element.classList.add("ytp-ad-badge--stark"),this.show()):
g.mE(Error("No label is returned in AdBadgeViewModel."))};
S1.prototype.show=function(){this.adBadgeText.show();var a;(a=this.j)==null||a.show();PE.prototype.show.call(this)};
S1.prototype.hide=function(){this.adBadgeText.hide();var a;(a=this.j)==null||a.hide();PE.prototype.hide.call(this)};g.x(T1,oF);g.k=T1.prototype;
g.k.init=function(a,b){oF.prototype.init.call(this,a,b,{});if(b.durationMilliseconds){if(b.durationMilliseconds<0){g.mE(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((c=b.previewText)==null||!c.text||g.fc(b.previewText.text))g.mE(Error("No text is returned for AdPreview."));else{this.G=b.previewText;b.previewText.isTemplated||g.Pf(this.C,b.previewText.text);var d;
if(((d=this.api.getVideoData(1))==null?0:d.Zl)&&b.previewImage){var e,f;(a=((f=fBa(((e=b.previewImage)==null?void 0:e.sources)||[],52,!1))==null?void 0:f.url)||"")&&a.length?(this.previewImage=new g.OE({I:"img",S:"ytp-preview-ad__image",W:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",a),g.M(this,this.previewImage),this.previewImage.Ka(this.element)):g.mE(Error("Failed to get imageUrl in AdPreview."))}else this.C.classList.add("ytp-preview-ad__text--padding--wide")}};
g.k.clear=function(){this.hide()};
g.k.hide=function(){qF(this);oF.prototype.hide.call(this)};
g.k.show=function(){pF(this);oF.prototype.show.call(this)};
g.k.Cq=function(){this.hide()};
g.k.Uo=function(){if(this.j){var a=this.j.getProgressState();if(a!=null&&a.current)if(a=1E3*a.current,a>=this.B)this.transition.hide();else{var b;if((b=this.G)==null?0:b.isTemplated)if(b=Math.max(0,Math.ceil((this.B-a)/1E3)),b!==this.D){var c,d;(a=(c=this.G)==null?void 0:(d=c.text)==null?void 0:d.replace("{TIME_REMAINING}",String(b)))&&g.Pf(this.C,a);this.D=b}}}};g.x(U1,PE);
U1.prototype.init=function(a,b){PE.prototype.init.call(this,a,b,{});var c,d;if((a=((d=fBa(((c=b.image)==null?void 0:c.sources)||[],nkb(b),!0))==null?void 0:d.url)||"")&&a.length){c=this.Fa("ytp-ad-avatar");c.src=a;var e,f;if(d=(e=b.interaction)==null?void 0:(f=e.accessibility)==null?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.mE(Error("Failed to get imageUrl in AdAvatar."))};
U1.prototype.clear=function(){this.hide()};
U1.prototype.onClick=function(a){PE.prototype.onClick.call(this,a)};g.x(V1,PE);
V1.prototype.init=function(a,b){PE.prototype.init.call(this,a,b,{});var c;a=(c=b.label)==null?void 0:c.content;if((c=a!=null&&!g.fc(a))||b.iconImage){c&&(this.buttonText=new g.OE({I:"span",S:"ytp-ad-button__text",xa:a}),g.M(this,this.buttonText),this.buttonText.Ka(this.element));var d,e,f=((d=b.interaction)==null?0:(e=d.accessibility)==null?0:e.label)||c?a:"";f&&Bv(this.element,f+" This link opens in new tab");Av(this.element);if(b.iconImage){d=void 0;if(b.iconImage){a:{e=b.iconImage;if(e.sources)for(e=g.v(e.sources),
a=e.next();!a.done;a=e.next())if(a=a.value,c=void 0,(c=a.clientResource)==null?0:c.imageName){e=a;break a}e=void 0}if(e){var h;d={iconType:(h=e.clientResource)==null?void 0:h.imageName}}}h=ZE(d);h!=null&&(this.buttonIcon=new g.OE({I:"span",S:"ytp-ad-button__icon",V:[h]}),g.M(this,this.buttonIcon),b.iconLeading?(Hf(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button__icon--leading")):(this.buttonIcon.Ka(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.nE(Error("AdButton does not have label or an icon."))};
V1.prototype.clear=function(){this.hide()};
V1.prototype.onClick=function(a){PE.prototype.onClick.call(this,a)};g.x(okb,oF);g.k=okb.prototype;
g.k.init=function(a,b){oF.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.Fa("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"),Hf(this.Fa("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(a=g.V(b.avatar,Kmb)){var c=b.headline;if(c){var d=b.description;if(d){var e=g.V(b.button,Mmb);e?(this.adAvatar.init(EE("ad-avatar"),a),this.headline.init(EE("ad-simple-attributed-string"),new Q1(c)),this.description.init(EE("ad-simple-attributed-string"),new Q1(d)),c.content&&c.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),
this.adButton.init(EE("ad-button"),e),this.B=b.startMs||0,this.api.FF()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.PU.bind(this)),pF(this)):g.mE(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.mE(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.mE(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.mE(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
g.k.Uo=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.B&&(qF(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
g.k.Cq=function(){this.clear()};
g.k.onClick=function(a){this.api.pauseVideo();oF.prototype.onClick.call(this,a)};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.PU.bind(this))};
g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();oF.prototype.show.call(this)};
g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();oF.prototype.hide.call(this)};
g.k.PU=function(a){a==="hidden"?this.show():this.hide()};g.x(pkb,PE);g.k=pkb.prototype;
g.k.init=function(a,b){PE.prototype.init.call(this,a,b,{});if(!b.label||g.fc(b.label))g.mE(Error("No label is returned for SkipAdButton."));else if(g.Pf(this.D,b.label),a=ZE({iconType:"SKIP_NEXT_NEW"}),a==null)g.mE(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.OE({I:"span",S:"ytp-skip-ad-button__icon",V:[a]}),g.M(this,this.C),this.C.Ka(this.element),this.api.U().experiments.gb("enable_skip_to_next_messaging")&&(b=g.cf(b.targetId)))this.B=!0,this.element.setAttribute("data-tooltip-target-id",
b),this.element.setAttribute("data-tooltip-target-fixed","")};
g.k.onClick=function(a){a&&a.preventDefault();var b,c;if(gza(a,{contentCpn:(c=(b=this.api.getVideoData(1))==null?void 0:b.clientPlaybackNonce)!=null?c:""})===0&&(this.api.U().L("enable_isk_gating")&&this.api.jb("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;PE.prototype.onClick.call(this,a);this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.jb("onAdSkip");this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.clear=function(){this.j.reset();this.hide()};
g.k.hide=function(){PE.prototype.hide.call(this)};
g.k.show=function(){this.j.start();PE.prototype.show.call(this);this.B&&this.api.U().experiments.gb("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.x(qkb,oF);g.k=qkb.prototype;
g.k.init=function(a,b){oF.prototype.init.call(this,a,b,{});var c=g.V(b.preskipState,Omb);c?(a=g.V(b.skippableState,Qmb))?(b.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.nE(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(EE("preview-ad"),c),b=this.B,b.transition.show(100),b.show(),this.C.init(EE("skip-button"),a),this.show()):g.mE(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel.")):g.mE(Error("No AdPreviewViewModel is returned in SkipAdViewModel."))};
g.k.show=function(){pF(this);oF.prototype.show.call(this)};
g.k.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.C&&this.C.hide();qF(this);oF.prototype.hide.call(this)};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();qF(this);oF.prototype.hide.call(this)};
g.k.Cq=function(){this.hide()};
g.k.Uo=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var a;(a=this.B)!=null&&a.transition.hide();(a=this.C)!=null&&(a.transition.show(),a.show())}};g.x(W1,PE);
W1.prototype.init=function(a,b){PE.prototype.init.call(this,a,b,{});if(b.label){var c;((c=b.label)==null?0:c.content)&&!g.fc(b.label.content)&&(this.linkText=new g.OE({I:"span",S:"ytp-visit-advertiser-link__text",xa:b.label.content}),g.M(this,this.linkText),this.linkText.Ka(this.element));var d,e;if((d=b.interaction)==null?0:(e=d.accessibility)==null?0:e.label)Bv(this.element,b.interaction.accessibility.label+" This link opens in new tab");else{var f;((f=b.label)==null?0:f.content)&&!g.fc(b.label.content)&&Bv(this.element,
b.label.content+" This link opens in new tab")}Av(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.mE(Error("No label found in VisitAdvertiserLink."))};
W1.prototype.onClick=function(a){PE.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType,this.layoutId)};
W1.prototype.clear=function(){this.hide()};g.x(X1,PE);
X1.prototype.init=function(a,b,c,d){PE.prototype.init.call(this,a,b,{});b.skipOrPreview&&(c=b.skipOrPreview,a=g.V(c,Rmb),c=g.V(c,Omb),a?(this.yv=new qkb(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.B),g.M(this,this.yv),this.yv.Ka(this.G),this.yv.init(EE("skip-ad"),a)):c&&(this.C=new T1(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.B,1),g.M(this,this.C),this.C.Ka(this.G),this.C.init(EE("ad-preview"),c),a=this.C,a.transition.show(100),a.show()));b.playerAdCard&&
(a=g.V(b.playerAdCard,Pmb))&&(this.playerAdCard=new okb(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.B),g.M(this,this.playerAdCard),this.playerAdCard.Ka(this.va),this.playerAdCard.init(EE("ad-avatar-lockup-card"),a));b.adBadgeRenderer&&(c=b.adBadgeRenderer,a=g.V(c,Hmb),c=g.V(c,Lmb),a||c)&&(a?(this.adBadge=new EF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,!0,!1),g.M(this,this.adBadge),this.adBadge.Ka(this.j),this.adBadge.init(EE("simple-ad-badge"),a,this.macros)):
c&&(this.D=new S1(this.api,this.layoutId,this.interactionLoggingClientData,this.ob),g.M(this,this.D),this.D.Ka(this.j),this.D.init(EE("ad-badge"),c),this.j.classList.add("ytp-ad-player-overlay-layout__ad-info-container--with-ad-badge-view-model")));b.adDurationRemaining&&(a=g.V(b.adDurationRemaining,Amb))&&(this.adDurationRemaining=new KF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.B,d.videoAdDurationSeconds),g.M(this,this.adDurationRemaining),this.adDurationRemaining.Ka(this.j),
this.adDurationRemaining.init(EE("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.V(b.adInfoRenderer,aM))&&(this.adInfoButton=new mF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob,this.element),g.M(this,this.adInfoButton),this.adInfoButton.Ka(this.j),this.adInfoButton.init(EE("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserLink&&(d=g.V(b.visitAdvertiserLink,Smb))&&(this.visitAdvertiserLink=new W1(this.api,this.layoutId,this.interactionLoggingClientData,
this.ob),g.M(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ka(this.j),this.visitAdvertiserLink.init(EE("visit-advertiser-link"),d));b.adDisclosureBanner&&(b=g.V(b.adDisclosureBanner,Nmb))&&(this.adDisclosureBanner=new LF(this.api,this.layoutId,this.interactionLoggingClientData,this.ob),g.M(this,this.adDisclosureBanner),this.adDisclosureBanner.Ka(this.Y),this.adDisclosureBanner.init(EE("ad-disclosure-banner"),b));this.show()};
X1.prototype.clear=function(){this.hide()};var wqb="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 ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.x(Y1,jF);
Y1.prototype.D=function(a){var b=a.id,c=a.content,d=c.componentType;if(!wqb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.ob,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof oJ?c.GT:!1,m=c instanceof oJ||c instanceof FF?c.oM:!1;h=h===void 0?{}:h;l=l===void 0?!1:l;m=m===void 0?!1:m;switch(d){case "invideo-overlay":a=new Kjb(a,f,h,e);break;case "player-overlay":a=new PF(a,f,h,e,new RV(a),m);break;case "player-overlay-layout":a=new X1(a,f,h,e,new RV(a));break;case "survey":a=
new O1(a,f,h,e);break;case "ad-action-interstitial":a=new Fjb(a,f,h,e,l,m);break;case "survey-interstitial":a=new P1(a,f,h,e);break;case "ad-message":a=new Sjb(a,f,h,e,new RV(a,1));break;case "player-underlay":a=new Ujb(a,f,h,e);break;default:a=null}if(!a){g.nE(Error("No UI component returned from ComponentFactory for type: "+d));break}g.dd(this.B,b)?g.nE(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);c instanceof YDa?this.C?this.C.append(a.eT):g.mE(Error("Underlay view was not created but UnderlayRenderer was created")):
this.G.append(a.eT);break;case 2:b=rkb(this,a);if(b==null)break;b.bind(c);break;case 3:c=rkb(this,a),c!=null&&(g.ub(c),g.dd(this.B,b)?(c=this.B,b in c&&delete c[b]):g.nE(Error("Ad UI component does not exist: "+b)))}};
Y1.prototype.ya=function(){g.vb(Object.values(this.B));this.B={};jF.prototype.ya.call(this)};g.x(skb,g.gV);g.k=skb.prototype;g.k.create=function(){try{tkb(this),this.load(),this.created=!0,tkb(this)}catch(a){wF(a instanceof Error?a:String(a))}};
g.k.load=function(){try{wkb(this)}finally{h1(G1(this.j).vl)&&this.player.Hg("ad",1)}};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Yx.Mo(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.gV.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){wF(b instanceof Error?b:String(b))}if(this.B!=null){var a=this.B;this.B=null;a.dispose()}this.C.reset()};
g.k.qn=function(){return!1};
g.k.getAdState=function(){return-1};
g.k.getOptions=function(){return Object.values(vqb)};
g.k.Xh=function(a,b){b=b===void 0?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=Rib(this.player),Object.assign(b,a.vpb),a=g.av(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.rq(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}};
g.k.Vu=function(a){var b;return!((b=this.j.j.Bf)==null||!b.get().Vu(a))};
g.k.rq=function(a){a.isMuted&&mBa(G1(this.j).El,G1(this.j).Lo,a.layoutId);this.zt&&this.zt.rq()};
g.k.executeCommand=function(a){G1(this.j).ob.executeCommand(a.command,a.layoutId)};g.Va("yt.player.Application.create",g.D0.create);g.Va("yt.player.Application.createAlternate",g.D0.create);qxa(sxa(),{ys:[{tB:/Unable to load player module/,weight:20},{tB:/Failed to fetch/,weight:500},{tB:/XHR API fetch failed/,weight:10},{tB:/JSON parsing failed after XHR fetch/,weight:10},{tB:/Retrying OnePlatform request/,weight:10},{tB:/CSN Missing or undefined during playback association/,weight:100}]});var xqb=g.Wa("ytcsi.tick");xqb&&xqb("pe");g.fV("ad",skb);g.yqb=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Va("yt.msgs_",g.yqb);g.x(g.a2,g.I);g.a2.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.iC)()};this.next()};
g.a2.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.a2.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.iC)()-a;a=this.j;d=Gla(a,e/d);if(d==0)a=a.C;else if(d==1)a=a.D;else{e=Be(a.C,a.y1,d);var f=Be(a.y1,a.y2,d);a=Be(a.y2,a.D,d);e=Be(e,f,d);f=Be(f,a,d);a=Be(e,f,d)}a=g.ze(a,0,1);this.callback(b+(c-b)*a);a<1&&this.delay.start()}};g.x(g.b2,g.W);g.k=g.b2.prototype;g.k.P4=function(){this.B&&this.scrollTo(this.j-this.containerWidth)};
g.k.show=function(){g.W.prototype.show.call(this);Ckb(this)};
g.k.Q4=function(){this.B&&this.scrollTo(this.j+this.containerWidth)};
g.k.Zx=function(){this.kc(this.api.qb().getPlayerSize())};
g.k.kc=function(a){var b=this.api.fd()?.5625:16/9,c=this.api.Lh();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));var d=(a-c*8)/c;b=Math.floor(d/b);for(var e=g.v(this.C),f=e.next();!f.done;f=e.next())f=f.value.Fa("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.c2(this)};
g.k.onVideoDataChange=function(){var a=this.api.U(),b=this.api.getVideoData();this.K=b.Jf?!1:a.D;this.suggestionData=b.suggestions?g.Mt(b.suggestions,function(c){return c&&!c.playlistId}):[];
Ekb(this);b.Jf?this.title.update({title:g.aJ('\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.fd()?"\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.ze(a,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.N.start(this.j,a,1E3);this.j=a;g.c2(this);Ckb(this)};})(_yt_player);
