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

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
*/
'use strict';var da,baa,caa,na,daa,pa,eaa,ra,ua,wa,za,gaa,haa,Ga,Ha,iaa,jaa,Ka,kaa,Ma,Oa,Pa,laa,Sa,Ya,$a,naa,oaa,pb,paa,sb,tb,ub,xb,yb,qaa,raa,Cb,taa,uaa,Nb,vaa,Ub,waa,xaa,Sb,yaa,zaa,Aaa,Baa,Daa,Caa,Eaa,dc,Faa,gc,jc,lc,xc,yc,zc,Ac,Naa,Oaa,Cc,Ec,Dc,Paa,Qaa,Raa,Saa,Fc,Taa,Gc,Ic,Jc,Uaa,Kc,Lc,Waa,Yaa,Sc,Tc,aba,Uc,Yc,bba,cba,hd,dba,pd,rd,gba,hba,sd,mba,Ad,jba,lba,yd,xd,Ed,Fd,nba,Gd,oba,Kd,Ld,pba,Pd,Qd,Rd,Vd,Yd,ce,de,je,le,Bba,zba,Aba,Dba,Eba,re,te,ue,Gba,ve,Hba,Iba,Jba,Lba,Kba,Fe,He,Mba,Le,Ne,Pe,Nba,Te,
Ue,Ze,$e,Oba,Pba,Qba,Rba,jf,kf,uf,Uba,Wba,Vba,vf,xf,Xba,wf,Ef,bf,Zba,Yba,Qf,Pf,af,Sf,$ba,Tf,Vf,Wf,aca,cca,eca,ig,jg,kg,ica,kca,ng,lca,mg,pca,gg,gca,rca,oca,mca,nca,sca,qca,og,jca,Cg,uca,vca,wca,xca,yca,zca,Aca,Bca,Cca,Dca,Eca,Fca,Gca,Hca,Ica,Jca,Kca,Lca,Mca,Nca,Oca,Pca,Eg,Qca,Uca,Vca,Wca,ada,Ig,$ca,Xca,cda,eda,gda,Kg,Lg,jda,Ng,Og,lda,$g,Pg,mda,ah,nda,bh,ch,gh,oda,hh,pda,qda,ih,dh,jh,lh,kh,mh,nh,oh,ph,qh,rda,tda,Eh,uda,vda,Fh,Gh,Jh,xda,yda,Ada,Bda,Dda,Kh,Eda,Lh,Fda,Mh,Gda,Nh,Oh,Hda,Ph,Qh,Rh,Sh,Th,
Wh,Ida,Yh,Jda,Lda,Zh,$h,ni,oi,Mda,Nda,pi,Oda,Pda,ri,si,Qda,Rda,Sda,Tda,ti,ui,vi,Vda,wi,xi,yi,Xda,Bi,Ci,Yda,Zda,Ai,Di,Wda,zi,Xi,$da,aea,Yi,Zi,$i,aj,cj,ej,gj,P,hj,dea,jj,kj,hea,gea,eea,fea,iea,kea,jea,lea,nj,mj,nea,mea,yj,Aj,lj,pea,Cj,qea,Bj,Fj,Ej,Gj,Jj,Nj,tea,uea,Lj,vea,wea,Oj,xea,Pj,Rj,Qj,yea,zea,Tj,Uj,Vj,Sj,pk,sea,Aea,Bea,rk,sk,tk,Kj,Mj,Cea,uk,vk,Dea,wk,Eea,Fea,xk,yk,zk,Gea,Ak,Hea,Bk,Ck,Iea,Dk,Ek,Fk,Gk,Hk,Ik,Q,Jk,Kk,S,Lk,T,Jea,Mk,Mea,Nk,Rk,Pea,sl,Rea,Sea,Oea,Tea,ul,Xea,Yea,Zea,vl,afa,bfa,Ok,$ea,
cfa,Wea,yl,zl,Al,Bl,Cl,Dl,efa,ffa,El,gfa,Fl,Gl,Hl,Il,Jl,Kl,Ll,ifa,jfa,lfa,kfa,mfa,Ol,Pl,Ql,ofa,pfa,qfa,Rl,Sl,Tl,Ul,Dm,Em,Fm,rfa,Gm,tfa,Jm,Km,Lm,Mm,Nm,Om,ufa,Rm,wfa,Qm,Pm,vfa,xfa,yfa,Tm,zfa,Sm,Um,Vm,Wm,Xm,Ym,Afa,Zm,Bfa,an,Cfa,Ffa,bn,cn,dn,en,Hfa,Hn,Ifa,In,Jn,Kn,Jfa,Kfa,Nn,Lfa,On,Pn,Ofa,Qfa,Sfa,Rfa,Tfa,Rn,Ufa,Un,Yn,Zn,$n,Xfa,Yfa,Zfa,ao,aga,bo,cga,dga,gga,fga,ega,jga,hga,eo,go,kga,ho,io,fo,jo,ko,lo,no,lga,oo,po,nga,mga,oga,pga,qga,sga,qo,ro,so,to,uo,vo,wo,xo,tga,yo,zo,Ao,Bo,Co,xga,uga,Fo,wga,Go,vga,
Eo,Do,Io,zga,Ko,Jo,Bp,Cp,Ep,Cga,Dp,Hp,Dga,Ip,Aga,Gga,Hga,Iga,Lp,Mp,Np,Jga,Op,Pp,Qp,Rp,Kga,Sp,Tp,Up,Lga,Mga,Vp,Nga,Wp,Qga,Rga,Sga,Tga,Oga,Xp,Yp,Zp,$p,Vga,Wga,Uga,aq,Xga,Yga,Zga,eq,$ga,fq,gq,bha,cha,hq,dha,iq,jq,kq,lq,mq,nq,oq,pq,eha,qq,rq,fha,hha,sq,gha,iha,jha,kha,rr,sr,tr,ur,vr,wr,xr,lha,yr,zr,Ar,mha,oha,pha,Cr,Er,Dr,Gr,Hr,Ir,rha,sha,Jr,Kr,Lr,uha,vha,yha,wha,zha,Dha,Mr,Cha,Aha,Nr,Or,Eha,Pr,Fha,Qr,Hha,Gha,Iha,Jha,Ur,Vr,Kha,Lha,Mha,Wr,Xr,Nha,Yr,Oha,Pha,Rha,Vha,Zr,Wha,Xha,Yha,Zha,$ha,bs,aia,bia,cia,
is,hs,gs,dia,eia,fia,js,ks,ls,hia,qs,rs,ts,iia,us,kia,lia,mia,vs,xs,ys,Ds,Es,Hs,oia,qia,pia,ria,sia,Ns,tia,uia,Os,via,wia,xia,yia,Ss,Qs,Ts,Us,Vs,zia,Aia,Bia,Ws,Xs,Ys,Cia,Dia,Eia,Zs,Fia,$s,lt,Gia,Hia,Iia,Jia,Kia,Lia,mt,nt,ot,qt,Oia,rt,tt,Pia,Nia,pt,Qia,ut,vt,wt,zt,xt,Ria,Sia,Tia,At,Via,Bt,Xia,Yia,Zia,$ia,aja,bja,cja,dja,Et,Ft,Gt,fja,eja,gja,hja,It,ija,Jt,jja,kja,Kt,Lt,Mt,lja,Nt,Ot,mja,Pt,Qt,Rt,St,Tt,Ut,Vt,Wt,nja,oja,pja,qja,Xt,rja,tja,sja,Zt,$t,vja,uja,yja,Bja,Aja,au,Cja,Dja,Eja,Gja,Fja,Hja,bu,Ija,
Jja,du,Kja,Lja,Mja,Nja,eu,Oja,fu,Pja,gu,hu,Rja,iu,Sja,ju,ku,Tja,Uja,lu,nu,Wja,ou,Vja,Xja,Yja,Zja,aka,pu,bka,tu,uu,dka,eka,hka,ika,vu,wu,xu,yu,zu,Au,Bu,Cu,Du,Eu,Fu,Gu,Hu,mka,lka,nka,pka,oka,rka,kka,qka,jka,Iu,Ju,tka,uka,vka,Nu,Ou,Pu,Ku,xka,Qu,ska,zka,Aka,yka,Ru,Su,Tu,Uu,Bka,wka,Cka,Vu,Dka,Eka,Fka,Gka,Hka,Kka,Lka,Mka,Nka,Oka,Rka,Yu,Tka,Xu,$u,Uka,av,hv,iv,Vka,Wka,Xka,qv,Yka,Zka,Av,$ka,bla,Bv,dla,ela,kla,gla,Ev,Fv,Gv,Iv,Jv,pla,Kv,Lv,Mv,rla,Pv,sla,tla,Qv,vla,Sv,Tv,Uv,Vv,wla,Wv,Yv,Zv,$v,aw,xla,cw,dw,ew,
fw,gw,hw,yla,zla,Ala,Bla,Cla,Dla,iw,Ela,pw,Fla,Gla,Hla,qw,tw,uw,vw,yw,zw,Aw,Jla,Dw,Ew,Fw,Kla,Lla,Gw,Mla,Nla,Iw,Vla,Wla,Xla,Jw,Yla,Zla,bma,Lw,dma,cma,Nw,ema,Pw,Qw,Rw,Sw,Tw,Uw,Vw,Ww,Xw,Yw,Zw,$w,ax,bx,cx,dx,ex,fx,gx,hx,ix,jx,kx,lx,mx,nx,ox,px,qx,rx,sx,tx,ux,vx,wx,xx,yx,zx,Ax,Bx,Px,Qx,Rx,Sx,Tx,Ux,Vx,Wx,Xx,Yx,Zx,$x,ay,by,cy,dy,ey,fy,gy,hy,iy,jy,ky,ly,my,ny,fma,gma,hma,ima,jma,oy,kma,lma,mma,py,nma,oma,pma,qy,qma,ry,rma,sy,ty,uy,vy,wy,yy,sma,tma,zy,uma,Ay,By,Cy,Dy,Ey,Fy,Gy,Hy,vma,wma,xma,yma,zma,Iy,Ama,
Bma,Cma,Dma,Jy,Ema,Fma,Gma,Ky,Ly,My,Ny,Oy,Py,Hma,Qy,Ry,Sy,Ty,Ima,Uy,Vy,Wy,Jma,Kma,Xy,Yy,Zy,$y,az,bz,cz,dz,Lma,Mma,ez,Nma,Oma,Pma,fz,Qma,Rma,Sma,gz,Tma,hz,iz,jz,Uma,kz,Vma,lz,mz,Wma,nz,Xma,oz,Yma,Zma,$ma,pz,ana,qz,rz,sz,bna,tz,cna,uz,vz,wz,xz,Az,Bz,Cz,dna,Dz,Ez,Fz,ena,Gz,Hz,Iz,Jz,fna,Kz,Lz,Mz,Nz,Oz,gna,Pz,hna,Qz,ina,jna,Rz,Sz,kna,Tz,Uz,Vz,lna,mna,nna,ona,Wz,Xz,pna,Yz,qna,rna,sna,tna,una,Zz,vna,wna,xna,$z,aA,yna,bA,zna,Ana,cA,Bna,Cna,Dna,Ena,dA,eA,fA,gA,Fna,Gna,hA,Hna,Ina,Jna,Kna,iA,Lna,Mna,Nna,Ona,
Pna,Qna,Rna,Sna,Tna,jA,Una,kA,lA,Vna,Wna,mA,Xna,Yna,Zna,$na,aoa,boa,coa,doa,nA,eoa,foa,goa,oA,hoa,ioa,pA,qA,joa,koa,rA,sA,loa,tA,moa,uA,noa,vA,wA,ooa,poa,xA,qoa,roa,yA,soa,toa,uoa,voa,woa,xoa,yoa,zoa,Aoa,Boa,zA,Coa,Doa,AA,Eoa,BA,CA,Foa,Goa,DA,Hoa,Ioa,EA,Joa,FA,Koa,GA,HA,IA,JA,Loa,KA,LA,MA,NA,Moa,OA,PA,Noa,Ooa,QA,RA,SA,Poa,TA,Qoa,Roa,Soa,UA,Toa,Uoa,Voa,VA,Woa,Xoa,WA,XA,Yoa,YA,Zoa,$oa,ZA,apa,$A,bpa,cpa,dpa,bB,dB,epa,hB,iB,jB,kB,ipa,mB,nB,jpa,oB,pB,qB,fpa,tB,mpa,ppa,uB,rpa,qpa,spa,vpa,upa,ypa,zpa,Apa,
Bpa,Dpa,Ipa,Epa,Gpa,Hpa,EB,DB,Jpa,GB,HB,IB,Lpa,Mpa,Npa,Opa,Ppa,Qpa,OB,Rpa,QB,Spa,Tpa,RB,Vpa,Wpa,Xpa,VB,Ypa,Zpa,WB,XB,YB,ZB,cqa,$B,eqa,dqa,gqa,bC,hqa,lqa,jqa,kqa,mqa,nqa,qqa,rqa,oqa,uqa,dC,vqa,gC,wqa,xqa,fC,hC,zqa,Aqa,Eqa,Dqa,Fqa,lC,mC,nC,oC,qC,Hqa,Jqa,Kqa,Lqa,wC,Mqa,Nqa,Oqa,Rqa,Sqa,Tqa,Qqa,Uqa,Wqa,Yqa,DC,Zqa,GC,EC,JC,KC,ara,dra,PC,QC,RC,SC,hra,UC,jra,kra,lra,XC,nra,ora,mra,pra,qra,ZC,rra,sra,tra,vra,bD,yra,zra,wra,Ara,Bra,Dra,Cra,fD,xra,Gra,Hra,kD,Fra,Ira,Jra,lD,mD,Kra,Mra,oD,Nra,Ora,Qra,Sra,rD,Tra,
Ura,Vra,Wra,Xra,Yra,Zra,$ra,tD,asa,vD,csa,dsa,esa,fsa,gsa,hsa,AD,ksa,nsa,BD,osa,qsa,jsa,rsa,ssa,tsa,lsa,msa,wD,isa,zD,psa,yD,xD,usa,vsa,wsa,xsa,ysa,zsa,Fsa,Asa,ED,FD,GD,Isa,Ksa,Jsa,Gsa,Lsa,Nsa,JD,Psa,Ssa,MD,Rsa,bta,Tsa,ata,QD,cta,fta,RD,PD,dta,eta,gta,TD,ita,jta,kta,lta,mta,nta,ota,hta,qta,rta,sta,tta,uta,xta,VD,zta,WD,XD,YD,Ata,Bta,$D,aE,Eta,Dta,Gta,Fta,Ita,Kta,Jta,Lta,Pta,Nta,lE,Qta,Sta,kE,Rta,mE,nE,Tta,Uta,Vta,pE,Xta,sE,rE,tE,uE,vE,Zta,$ta,xE,aua,yE,cua,dua,eua,gua,hua,fua,BE,jua,iua,kua,CE,mua,
DE,oua,EE,qua,FE,pua,GE,HE,tua,zua,Bua,yua,xua,Aua,KE,Cua,Kua,Gua,Hua,Iua,sua,Tua,Vua,Sua,Yua,Rua,JE,Xua,Fua,Jua,Uua,Dua,vua,uua,wua,ME,Qua,TE,hva,gva,lva,ova,nva,qva,VE,WE,sva,tva,uva,vva,wva,xva,yva,YE,Ava,Bva,Cva,Dva,Eva,Fva,Gva,Iva,Jva,bF,Lva,Nva,Mva,Ova,Qva,Rva,Vva,Tva,Xva,Wva,Zva,Yva,cF,cra,gwa,dwa,iwa,nwa,kwa,owa,pwa,qwa,wwa,Awa,Bwa,Dwa,Cwa,Ewa,oF,Gwa,nF,zwa,ywa,kF,vF,uF,yF,zF,BF,Iwa,CF,FF,GF,Jwa,Kwa,Mwa,Nwa,Owa,Pwa,Qwa,Rwa,Swa,Twa,Uwa,Vwa,Wwa,MF,Xwa,Ywa,$wa,axa,bxa,cxa,dxa,exa,hxa,ixa,OF,
PF,jxa,QF,kxa,SF,mxa,lxa,UF,VF,WF,XF,nxa,YF,oxa,pxa,qxa,ZF,rxa,vxa,sxa,uxa,txa,$F,aG,wxa,xxa,yxa,zxa,bG,Bxa,Exa,Dxa,cG,Fxa,dG,eG,fG,hG,iG,Gxa,Hxa,Ixa,jG,Jxa,Kxa,Mxa,Nxa,Lxa,Oxa,kG,nG,pG,Qxa,Pxa,rG,Rxa,Sxa,yG,zG,AG,BG,EG,Uxa,FG,GG,HG,IG,Vxa,Wxa,LG,Xxa,MG,$xa,bya,dya,fya,hya,jya,OG,kya,PG,lya,oya,pya,qya,RG,SG,sya,tya,UG,VG,WG,vya,XG,YG,ZG,wya,$G,uya,xya,aH,zya,yya,bH,Bya,cH,dH,fH,Cya,Dya,hH,iH,kH,wH,vH,Fya,jH,Iya,Jya,Mya,Nya,Oya,Qya,Lya,Rya,Sya,Tya,xH,Hya,Kya,yH,Xya,Zya,BH,$ya,CH,aza,zH,cza,fza,dza,
DH,gza,Yya,EH,iza,FH,oza,mza,jza,lza,kza,HH,IH,JH,KH,LH,MH,OH,qza,wza,QH,SH,RH,xza,zza,yza,Aza,Eza,Gza,Fza,Hza,Iza,Jza,Lza,Kza,Mza,TH,Nza,Oza,Pza,Qza,Rza,Tza,Uza,UH,Sza,VH,Xza,Zza,WH,XH,YH,$za,aAa,ZH,$H,bAa,cAa,dAa,eAa,fAa,gAa,aI,bI,cI,dI,eI,fI,gI,hI,iI,jI,kI,hAa,iAa,lI,jAa,kAa,lAa,mAa,mI,nI,oI,pI,nAa,qI,rI,sI,oAa,tI,uI,vI,wI,xI,yI,zI,AI,BI,pAa,CI,DI,EI,qAa,FI,GI,HI,II,rAa,JI,KI,sAa,LI,tAa,uAa,MI,vAa,OI,PI,wAa,QI,RI,SI,NI,TI,UI,VI,yAa,AAa,BAa,WI,CAa,XI,DAa,ZI,EAa,FAa,$I,aJ,GAa,JAa,KAa,LAa,MAa,NAa,
OAa,HAa,jJ,QAa,RAa,SAa,TAa,IAa,VAa,bJ,WAa,XAa,kJ,YAa,lJ,dJ,ZAa,cJ,UAa,mJ,bBa,aBa,eJ,fJ,oJ,nJ,cBa,pJ,dBa,qJ,fBa,eBa,rJ,sJ,tJ,uJ,vJ,hBa,iBa,kBa,lBa,xJ,yJ,oBa,zJ,sBa,uBa,wBa,xBa,BJ,zBa,ABa,CBa,DBa,EBa,FBa,GBa,HBa,GJ,HJ,IBa,KBa,JBa,LBa,MBa,NBa,LJ,NJ,OJ,PJ,QJ,RJ,OBa,SJ,TJ,MJ,VJ,WJ,XJ,QBa,PBa,SBa,TBa,UBa,VBa,WBa,XBa,YBa,ZBa,$Ba,aCa,bCa,cCa,dCa,eCa,fCa,gCa,hCa,iCa,jCa,kCa,lCa,mCa,YJ,ZJ,nCa,$J,aK,oCa,pCa,qCa,rCa,sCa,tCa,uCa,vCa,wCa,xCa,bK,yCa,zCa,ACa,BCa,cK,CCa,DCa,ECa,FCa,GCa,dK,HCa,ICa,JCa,eK,KCa,hK,MCa,
NCa,iK,OCa,PCa,QCa,RCa,SCa,lK,mK,UCa,TCa,VCa,WCa,nK,oK,pK,qK,ZCa,rK,sK,uK,$Ca,aDa,bDa,wK,yK,cDa,CK,DK,dDa,eDa,EK,fDa,FK,gDa,HK,IK,JK,hDa,iDa,jDa,KK,AK,LK,MK,NK,OK,PK,QK,kDa,RK,SK,TK,UK,VK,WK,XK,YK,ZK,mDa,nDa,oDa,pDa,dL,$K,eL,qDa,rDa,sDa,tDa,fL,gL,uDa,vDa,wDa,bL,xDa,yDa,hL,zDa,BDa,CDa,jL,kL,lL,mL,nL,FDa,qL,tL,sL,rL,GDa,IDa,vL,JDa,KDa,MDa,LDa,yL,NDa,ODa,QDa,uL,PDa,SDa,RDa,TDa,UDa,zL,XDa,AL,YDa,$Da,VDa,WDa,BL,ZDa,bEa,cEa,eEa,dEa,DL,gEa,hEa,iEa,kEa,jEa,lEa,mEa,oEa,nEa,pEa,qEa,rEa,sEa,tEa,uEa,vEa,wEa,
xEa,yEa,zEa,AEa,BEa,CEa,DEa,EEa,FEa,HL,GEa,IL,JL,IEa,JEa,KL,KEa,LL,LEa,ML,MEa,NL,NEa,OEa,PEa,QEa,OL,REa,SEa,TEa,PL,QL,RL,SL,TL,UEa,UL,VL,WL,VEa,XL,WEa,XEa,YEa,ZEa,YL,$Ea,ZL,aFa,$L,aM,jBa,bFa,cFa,dFa,eFa,fFa,bM,cM,dM,eM,fM,gM,hM,iM,jM,kM,lM,gFa,hFa,iFa,jFa,mM,rM,lFa,qFa,AFa,rFa,CFa,DFa,BFa,FFa,GFa,HFa,AM,KFa,MFa,PFa,QFa,RFa,CM,TFa,UFa,YFa,DM,ZFa,VFa,$Fa,EM,aGa,dGa,cGa,hGa,eGa,FM,GM,nGa,qGa,pGa,tGa,sGa,vGa,wGa,zGa,xGa,yGa,oGa,AGa,BGa,IM,rGa,CGa,JM,DGa,EGa,HGa,KGa,IGa,NGa,VGa,UGa,OGa,WGa,QGa,RGa,PGa,
$Ga,bHa,dHa,hHa,kHa,lHa,nHa,pHa,rHa,qHa,zHa,tHa,sHa,AHa,DHa,EHa,FHa,GHa,PM,LFa,JHa,HHa,RM,LHa,MHa,OHa,QHa,RHa,PHa,UM,SHa,VM,WM,IJ,XM,JFa,ZM,THa,UHa,VHa,$M,WHa,XHa,YHa,aN,bN,ZHa,cN,dN,eN,fN,gN,$Ha,hN,aIa,bIa,iN,cIa,jN,CL,kN,lN,dIa,mN,eIa,fIa,NFa,NHa,gIa,nN,JJ,wJ,KM,hIa,iIa,oN,mGa,HM,jIa,QM,KHa,gHa,fHa,GGa,LM,iHa,mHa,oHa,iGa,BHa,kIa,XGa,SGa,pN,OFa,mIa,lIa,FGa,jHa,nIa,CHa,MM,jGa,lGa,bGa,eHa,cHa,MGa,JGa,XFa,WFa,SFa,ZGa,TGa,uHa,fGa,gGa,xHa,yHa,vHa,wHa,aHa,qIa,oIa,qN,pIa,rN,rIa,sN,tN,zN,tIa,BN,vIa,wIa,
xIa,yIa,zIa,AIa,BIa,CIa,DN,GN,DIa,EIa,GIa,FIa,HIa,IIa,JIa,KIa,LIa,MIa,IN,JN,PIa,KN,LN,QIa,RIa,SIa,TIa,MN,UN,VN,UIa,VIa,WN,YN,bO,WIa,cO,dO,eO,fO,gO,hO,iO,jO,kO,lO,mO,XIa,YIa,nO,oO,pO,qO,rO,sO,ZIa,$Ia,tO,xO,cJa,dJa,yO,fJa,eJa,gJa,hJa,AO,BO,CO,Y,jJa,DO,oJa,sJa,tJa,uJa,DJa,GJa,LJa,MJa,jKa,kKa,lKa,NJa,OJa,UJa,qKa,YJa,ZJa,vKa,tKa,xKa,yKa,uKa,zKa,BLa,GKa,CLa,HKa,IKa,MO,ELa,GLa,ILa,HLa,FLa,NKa,dLa,eLa,MLa,OLa,gLa,hLa,jLa,kLa,lLa,VLa,nLa,qLa,xLa,dMa,ZLa,$La,fMa,iMa,hMa,jMa,kMa,sMa,lMa,PO,pMa,yMa,zMa,AMa,BMa,
CMa,FMa,KMa,nNa,mNa,TO,UO,VO,WO,XO,YO,uNa,$O,ZO,wNa,sNa,tNa,xNa,vNa,aP,yNa,zNa,bP,ANa,bra,CNa,BNa,ENa,GNa,INa,JNa,HNa,KNa,PNa,fP,QNa,RNa,SNa,TNa,UNa,gP,VNa,WNa,XNa,YNa,ZNa,aOa,cOa,bOa,dOa,gOa,iP,hOa,lP,nP,iOa,oP,pP,jOa,nOa,pOa,oOa,rOa,zOa,AOa,rP,qOa,mOa,lOa,kOa,wP,sP,vP,BP,CP,DOa,EOa,DP,AP,IOa,FOa,GOa,JOa,EP,FP,LOa,MOa,HP,IP,JP,KP,LP,NOa,OOa,POa,MP,NP,PP,ROa,SOa,OP,TOa,WOa,XOa,QP,YOa,TP,ZOa,UP,WP,aPa,VP,XP,bPa,dPa,ePa,fPa,ZP,$P,eQ,iPa,bQ,fQ,hQ,jPa,iQ,dQ,gQ,kPa,jQ,lPa,kQ,mPa,aQ,cQ,gPa,hPa,lQ,nPa,oPa,
pPa,mQ,nQ,oQ,qPa,pQ,qQ,rPa,rQ,sPa,sQ,tQ,uQ,tPa,uPa,vPa,wPa,xPa,vQ,yPa,zPa,APa,BPa,CPa,DPa,wQ,EPa,xQ,HPa,IPa,JPa,KPa,LPa,zQ,AQ,yQ,FPa,MPa,NPa,OPa,PPa,BQ,CQ,QPa,DQ,EQ,RPa,SPa,FQ,TPa,UPa,YPa,ZPa,VPa,WPa,XPa,$Pa,GQ,HQ,IQ,aQa,bQa,JQ,KQ,cQa,LQ,dQa,fQa,eQa,MQ,gQa,hQa,iQa,jQa,kQa,lQa,nQa,oQa,NQ,pQa,rQa,tQa,sQa,QQ,xQa,xOa,tP,yQa,zQa,AQa,BQa,CQa,DQa,qP,PQ,EQa,RQ,JQa,KQa,LQa,MQa,SQ,QQa,NQa,OQa,SQa,TQa,UQa,VQa,RQa,WQa,UQ,VQ,WQ,XQa,YQa,XQ,ZQa,$Qa,aRa,YQ,HQa,aR,cRa,yOa,sOa,eRa,bR,dR,eR,fR,gR,hR,cR,fRa,hRa,kR,kRa,
iRa,mRa,nRa,lRa,jRa,oRa,pRa,qRa,pR,rRa,sRa,uRa,vRa,COa,qR,wRa,zRa,xP,ARa,BRa,CRa,uP,tOa,vOa,wOa,rR,sR,tR,uR,ERa,FRa,vR,GRa,wR,xR,HRa,yR,IRa,zR,JRa,KRa,AR,BR,CR,MRa,NRa,DR,ORa,LRa,ER,PRa,QRa,SRa,URa,TRa,RRa,gSa,dSa,jSa,VR,WR,VRa,eSa,hJ,TR,$R,kSa,dS,mSa,KR,eS,JR,nSa,SR,hS,iS,pSa,qSa,rSa,sSa,tSa,uSa,vSa,jS,wSa,BSa,ASa,xSa,zSa,ySa,kS,CSa,lS,DSa,ESa,GSa,HSa,ISa,NSa,qS,rS,QSa,sS,tS,RSa,USa,VSa,WSa,XSa,uS,ZSa,cTa,dTa,kTa,nTa,hTa,iTa,pTa,DS,qTa,sTa,rTa,tTa,FS,IS,uTa,ES,vTa,JS,wTa,ATa,xTa,DTa,zTa,VTa,dUa,
bT,eUa,gUa,QTa,QS,fUa,VS,cT,OTa,iUa,hUa,dT,NS,RTa,kUa,lUa,mUa,oUa,jUa,fT,nUa,qUa,rUa,hT,sUa,MS,SS,pUa,WTa,yTa,$Ta,nT,TS,tT,$S,vT,wT,FUa,GUa,aT,yT,HUa,zT,IUa,US,AT,PTa,JUa,xUa,RS,HTa,KUa,FTa,ETa,BTa,DT,MUa,VUa,XUa,YUa,GT,IT,JT,HT,LT,ZUa,$Ua,MT,bVa,NT,dVa,eVa,cVa,fVa,iVa,kVa,mVa,nVa,pVa,oVa,TT,qVa,tVa,uVa,eU,fU,wVa,hU,xVa,kU,lU,mU,nU,yVa,oU,zVa,DVa,pU,qU,EVa,FVa,HVa,GVa,IVa,JVa,KVa,rU,sU,LVa,NVa,OVa,PVa,wU,SVa,RVa,xU,yU,zU,TVa,UVa,VVa,WVa,XVa,AU,ZVa,YVa,$Va,aWa,BU,CU,bWa,dWa,eWa,fWa,gWa,DU,hWa,EU,iWa,
lWa,FU,jWa,oWa,mWa,nWa,kWa,GU,sWa,qWa,rWa,tWa,HU,uWa,vWa,wWa,IU,xWa,yWa,zWa,LU,JU,KU,AWa,BWa,MU,NU,OU,CWa,RU,PU,DWa,SU,EWa,UU,VU,GWa,TU,IWa,WU,YU,JWa,ZU,$U,aV,KWa,NWa,MWa,cV,dV,eV,QWa,OWa,PWa,fV,RWa,VWa,TWa,SWa,UWa,gV,XWa,YWa,hV,$Wa,aXa,cXa,bXa,dXa,ZWa,fXa,eXa,iXa,gXa,hXa,lXa,mXa,nXa,oXa,pXa,qXa,kXa,sXa,tXa,rXa,jXa,uXa,vXa,wXa,xXa,yXa,zXa,AXa,BXa,iV,GXa,EXa,FXa,jV,IXa,DXa,JXa,kV,lV,KXa,LXa,MXa,mV,NXa,OXa,PXa,QXa,RXa,SXa,TXa,WXa,UXa,XXa,YXa,ZXa,$Xa,bYa,wV,xV,cYa,vV,fYa,gYa,zV,kYa,lYa,mYa,nYa,oYa,jYa,
hYa,pYa,qYa,DRa,rYa,sYa,yYa,CV,BYa,EYa,DYa,CYa,wYa,xYa,tYa,uYa,zYa,DV,EV,GYa,ZT,jVa,GV,HYa,JYa,IYa,AYa,LYa,MYa,NYa,IV,OYa,PV,QYa,RYa,SYa,UYa,TYa,VYa,QV,RV,WYa,ZYa,$Ya,TV,YYa,aZa,bZa,XYa,UV,XV,cZa,dZa,WV,eZa,fZa,gZa,hZa,jZa,iZa,lZa,mZa,kZa,pZa,nZa,$V,aW,qZa,dW,eW,rZa,tZa,gW,sZa,uZa,vZa,wZa,yZa,xZa,AZa,zZa,BZa,jW,CZa,DZa,EZa,kW,lW,GZa,FZa,mW,IZa,JZa,HZa,KZa,LZa,MZa,OZa,NZa,PZa,QZa,RZa,SZa,TZa,VZa,oW,nW,pW,WZa,XZa,UZa,b_a,c_a,d_a,g_a,f_a,e_a,h_a,i_a,qW,rW,j_a,k_a,l_a,m_a,o_a,sW,uW,n_a,p_a,q_a,r_a,s_a,
t_a,wW,u_a,v_a,y_a,xW,z_a,x_a,yW,zW,A_a,B_a,D_a,F_a,C_a,E_a,BW,G_a,I_a,J_a,L_a,M_a,CW,DW,N_a,H_a,P_a,O_a,EW,FW,GW,R_a,Q_a,HW,IW,S_a,T_a,JW,U_a,V_a,W_a,KW,X_a,LW,Y_a,MW,a0a,b0a,c0a,e0a,f0a,g0a,d0a,i0a,h0a,j0a,m0a,QW,o0a,n0a,k0a,l0a,p0a,q0a,RW,SW,r0a,s0a,t0a,u0a,v0a,w0a,y0a,z0a,c1a,C0a,D0a,A0a,e1a,YW,f1a,j1a,aX,k1a,g1a,XW,dX,cX,ZW,eX,n1a,p1a,o1a,fX,$W,WW,m1a,bX,h1a,l1a,r1a,TW,gX,s1a,t1a,i1a,hX,iX,u1a,jX,v1a,mX,nX,w1a,x1a,z1a,A1a,y1a,oX,pX,B1a,C1a,D1a,E1a,F1a,H1a,J1a,I1a,G1a,L1a,K1a,qX,rX,M1a,O1a,P1a,
sX,N1a,Q1a,R1a,S1a,uX,xX,wX,U1a,T1a,V1a,yX,zX,W1a,X1a,Z1a,Y1a,$1a,a2a,b2a,BX,c2a,d2a,e2a,f2a,g2a,h2a,j2a,k2a,l2a,i2a,m2a,n2a,o2a,p2a,q2a,FX,r2a,GX,u2a,HX,w2a,IX,v2a,y2a,z2a,x2a,JX,A2a,D2a,F2a,H2a,L2a,R2a,S2a,T2a,U2a,OX,V2a,W2a,X2a,b3a,g3a,e3a,Z2a,RX,d3a,Y2a,f3a,i3a,j3a,h3a,TX,l3a,m3a,n3a,p3a,q3a,o3a,r3a,HWa,s3a,u3a,v3a,t3a,ZX,$X,aY,x3a,cY,z3a,A3a,B3a,dY,C3a,D3a,E3a,F3a,G3a,H3a,y3a,I3a,eY,J3a,P3a,gY,Q3a,hY,R3a,iY,S3a,T3a,U3a,a4a,mY,b4a,nY,e4a,pY,oY,f4a,V3a,qY,h4a,i4a,k4a,rY,sY,l4a,c4a,tY,n4a,m4a,uY,
Z3a,kY,o4a,p4a,q4a,r4a,s4a,W3a,Y3a,lY,v4a,w4a,vY,xY,yY,y4a,z4a,x4a,A4a,B4a,C4a,wY,t4a,D4a,E4a,F4a,K4a,BY,u4a,M4a,Q4a,DY,R4a,S4a,O4a,FY,T4a,U4a,L4a,V4a,P4a,W4a,GY,EY,X4a,Z4a,Y4a,CY,a5a,JY,b5a,HY,KY,IY,LY,c5a,d5a,e5a,h5a,g5a,j5a,k5a,i5a,OY,NY,m5a,n5a,o5a,p5a,q5a,s5a,r5a,t5a,QY,RY,u5a,SY,v5a,x5a,A5a,y5a,z5a,YY,bZ,C5a,cZ,D5a,E5a,F5a,dZ,H5a,I5a,J5a,G5a,M5a,N5a,eZ,fZ,O5a,P5a,gTa,mTa,Q5a,S5a,R5a,T5a,U5a,hZ,V5a,W5a,jZ,kZ,iZ,X5a,Y5a,$5a,a6a,Z5a,lZ,b6a,c6a,e6a,d6a,f6a,h6a,g6a,i6a,j6a,k6a,l6a,UY,m6a,n6a,o6a,
p6a,q6a,r6a,s6a,nZ,t6a,oZ,v6a,w6a,u6a,x6a,y6a,pZ,A6a,B6a,qZ,C6a,D6a,E6a,F6a,G6a,H6a,I6a,J6a,K6a,L6a,M6a,rZ,O6a,N6a,Q6a,R6a,sZ,tZ,uZ,vZ,wZ,xZ,yZ,S6a,zZ,T6a,U6a,Z6a,b7a,c7a,d7a,e7a,DZ,EZ,a7a,Y6a,f7a,BZ,V6a,h7a,AZ,CZ,W6a,X6a,FZ,i7a,j7a,$6a,g7a,k7a,l7a,p7a,m7a,q7a,r7a,n7a,o7a,s7a,t7a,u7a,w7a,v7a,GZ,B7a,z7a,A7a,x7a,C7a,HZ,y7a,IZ,JZ,D7a,E7a,F7a,KZ,H7a,I7a,LZ,J7a,MZ,K7a,L7a,M7a,N7a,P7a,Q7a,X7a,T7a,O7a,Z7a,$7a,U7a,V7a,S7a,W7a,OZ,R7a,Y7a,f8a,d8a,c8a,b8a,a8a,PZ,g8a,TY,h8a,QZ,RZ,i8a,j8a,k8a,SZ,l8a,$Y,m8a,TZ,
n8a,o8a,WY,XY,s8a,VZ,XZ,t8a,u8a,ZZ,WZ,UZ,$Z,q8a,p8a,r8a,a_,w8a,x8a,v8a,y8a,VY,z8a,YZ,A8a,B8a,C8a,D8a,b_,E8a,F8a,K5a,L5a,G8a,H8a,c_,K8a,I8a,L8a,N8a,d_,O8a,P8a,Q8a,f_,h_,S8a,W8a,U8a,X8a,Y8a,T8a,V8a,R8a,Z8a,$8a,a9a,b9a,c9a,g9a,i9a,j9a,i_,k9a,z6a,l9a,m9a,j_,n9a,o9a,p9a,q9a,r9a,l_,y9a,x9a,q_,z9a,w9a,C9a,D9a,E9a,G9a,H9a,I9a,J9a,K9a,L9a,N9a,O9a,P9a,M9a,t_,k_,Q9a,R9a,r_,T9a,F9a,s_,U9a,V9a,Y9a,$9a,Z9a,a$a,W9a,X9a,d$a,c$a,e$a,f$a,g$a,h$a,b$a,i$a,j$a,u_,k$a,l$a,m$a,n$a,q$a,p$a,o$a,v_,r$a,t$a,u$a,v$a,z_,A_,P6a,
w$a,x$a,A$a,z$a,y$a,B$a,D$a,E$a,C$a,B_,G$a,H$a,I$a,M$a,L$a,N$a,P$a,e8a,w_,K$a,J$a,O$a,ZY,NZ,e_,S$a,R$a,T$a,U$a,V$a,W$a,s$a,C_,g_,X$a,Y$a,M8a,Z$a,Q$a,E_,F_,aab,G_,bab,cab,dab,eab,fab,gab,iab,hab,kab,lab,pab,mab,oab,qab,I_,uab,sab,tab,xab,yab,zab,Aab,Bab,H_,Cab,wab,rab,J_,Dab,nab,Eab,K_,Gab,Hab,Iab,Fab,L_,Lab,Kab,Oab,Nab,Mab,Pab,Qab,M_,Rab,Sab,Xab,Uab,Vab,Wab,Yab,Zab,$ab,bbb,abb,cbb,dbb,ebb,gbb,ibb,hbb,jbb,fbb,kbb,mbb,obb,lbb,pbb,qbb,sbb,rbb,tbb,nbb,Q_,ubb,vbb,wbb,ybb,Abb,Bbb,Dbb,Fbb,U_,Hbb,Ibb,Jbb,
Kbb,Mbb,Lbb,Pbb,G4a,V_,zY,Nbb,Obb,Qbb,Y_,Sbb,Rbb,Tbb,Vbb,Wbb,Zbb,Xbb,bcb,Z_,Ybb,ccb,$_,ecb,b0,d0,fcb,a0,gcb,e0,jcb,icb,dcb,kcb,lcb,mcb,c0,ncb,f0,ocb,hcb,Gbb,X_,qcb,AY,rcb,I4a,H4a,scb,tcb,ucb,vcb,wcb,xcb,h0,J4a,ycb,Acb,Bcb,Ccb,zcb,Dcb,Ecb,i0,Fcb,Gcb,Hcb,Icb,j0,DDa,Jcb,Kcb,Lcb,l0,Ocb,Pcb,n0,Qcb,Rcb,Ncb,m0,k0,Mcb,q0,p0,Scb,r0,o0,Wcb,Ycb,$cb,adb,cdb,Ucb,Zcb,ddb,Vcb,edb,fdb,hdb,s0,idb,gdb,t0,kdb,ldb,Xcb,jdb,mdb,bdb,Tcb,v0,sdb,pdb,tdb,qdb,odb,udb,ndb,xdb,w0,ydb,Adb,cL,Cdb,Edb,Fdb,Gdb,A0,Hdb,X3a,Kdb,B0,
O_,Ldb,Ndb,Idb,VX,u0,Odb,Pdb,G0,S9a,Ddb,F0,x0,Sdb,Tdb,Vdb,Udb,Mdb,D0,Wdb,XX,Xdb,c3a,Zdb,Ydb,F$a,N_,I0,k3a,$db,g4a,LWa,C0,aeb,ceb,beb,a3a,deb,feb,Rdb,Bdb,heb,geb,E0,y0,ieb,J0,SX,keb,leb,d4a,meb,neb,oeb,$2a,H0,y_,Jdb,peb,$$a,Beb,web,Eeb,ueb,Feb,teb,L0,WX,Keb,Geb,Ieb,Heb,Meb,O0,P0,Peb,Oeb,Neb,R0,Aeb,W0,Reb,V0,Q0,Teb,Web,Xeb,xeb,Ueb,Z0,Yeb,zeb,T0,Qeb,S0,afb,N0,bfb,cfb,dfb,b1,c1,Seb,d1,e1,efb,U0,Leb,$eb,Zeb,ffb,gfb,hfb,Veb,ifb,X0,jfb,Y0,kfb,mfb,M0,f1,Jeb,nfb,ofb,yeb,a1,$0,pfb,f5a,qfb,rfb,sfb,g1,h1,vfb,
yfb,Afb,ufb,Ifb,Jfb,Kfb,Lfb,Mfb,Nfb,Ofb,Qfb,Pfb,i1,j1,k1,Sfb,Tfb,l1,aEa,Rfb,Ufb,m1,Vfb,n1,o1,YM,p1,q1,NM,Wfb,SM,IHa,Xfb,kGa,Yfb,wL,xL,r1,Zfb,$fb,agb,s1,cgb,dgb,t1,v1,w1,ggb,hgb,x1,igb,egb,fgb,jgb,kgb,lgb,mgb,y1,ogb,RBa,EL,pgb,qgb,FL,ngb,UJ,rgb,sgb,tgb,z1,vgb,jK,wgb,A1,B1,xgb,ygb,u1,zgb,Agb,Bgb,C1,D1,Cgb,E1,F1,Dgb,G1,Egb,H1,I1,Fgb,Ggb,fEa,J1,Hgb,Jgb,Igb,K1,Kgb,L1,M1,Lgb,Mgb,Ngb,Ogb,Pgb,Qgb,Sgb,O1,Rgb,Tgb,Ugb,Vgb,Wgb,$gb,Xgb,Ygb,Zgb,bhb,dhb,ehb,fhb,chb,P1,ghb,hhb,ihb,jhb,khb,R1,lhb,S1,T1,U1,mhb,nhb,
phb,qhb,rhb,shb,uhb,thb,vhb,V1,W1,yhb,whb,xhb,X1,Ahb,Bhb,Y1,Z1,Chb,$1,Ehb,a2,Fhb,Ghb,Hhb,b2,c2,d2,Ihb,Jhb,Khb,Nhb,Mhb,e2,Ohb,Phb,Qhb,IFa,Lhb,Shb,Thb,Vhb,aaa,la;da=function(a){return function(){return aaa[a].apply(this,arguments)}};
g.fa=function(a,b){return aaa[a]=b};
baa=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
caa=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};
na=function(a,b){if(b)a:{var c=g.ha;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&la(c,a,{configurable:!0,writable:!0,value:b})}};
daa=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a};
pa=function(a){return a.raw=a};
g.u=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return{next:baa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");};
eaa=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
g.qa=function(a){return a instanceof Array?a:eaa(g.u(a))};
ra=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.y=function(a,b){a.prototype=faa(b.prototype);a.prototype.constructor=a;if(ta)ta(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Of=b.prototype};
ua=function(){this.N=!1;this.D=null;this.B=void 0;this.j=1;this.G=this.K=0;this.Y=this.C=null};
wa=function(a){if(a.N)throw new TypeError("Generator is already running");a.N=!0};
za=function(a,b){a.C={JW:b,tY:!0};a.j=a.K||a.G};
g.z=function(a,b,c){a.j=c;return{value:b}};
g.Aa=function(a){a.j=0};
g.Ba=function(a,b,c){a.K=b;void 0!=c&&(a.G=c)};
g.Ca=function(a,b,c){a.j=b;a.K=c||0};
g.Da=function(a,b){a.K=b||0;b=a.C.JW;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.tY?a.j=a.K||a.G:void 0!=c.Ia&&a.G<c.Ia?(a.j=c.Ia,a.C=null):a.j=a.G:a.j=b};
gaa=function(a){this.j=new ua;this.B=a};
haa=function(a,b){wa(a.j);var c=a.j.D;if(c)return Ga(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.j.return);
a.j.return(b);return Ha(a)};
Ga=function(a,b,c,d){try{var e=b.call(a.j.D,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.j.N=!1,e;var f=e.value}catch(h){return a.j.D=null,za(a.j,h),Ha(a)}a.j.D=null;d.call(a.j,f);return Ha(a)};
Ha=function(a){for(;a.j.j;)try{var b=a.B(a.j);if(b)return a.j.N=!1,{value:b.value,done:!1}}catch(c){a.j.B=void 0,za(a.j,c)}a.j.N=!1;if(a.j.C){b=a.j.C;a.j.C=null;if(b.tY)throw b.JW;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
iaa=function(a){this.next=function(b){wa(a.j);a.j.D?b=Ga(a,a.j.D.next,b,a.j.Z):(a.j.Z(b),b=Ha(a));return b};
this.throw=function(b){wa(a.j);a.j.D?b=Ga(a,a.j.D["throw"],b,a.j.Z):(za(a.j,b),b=Ha(a));return b};
this.return=function(b){return haa(a,b)};
this[Symbol.iterator]=function(){return this}};
jaa=function(a){function b(d){return a.next(d)}
function c(d){return a.throw(d)}
return new Promise(function(d,e){function f(h){h.done?d(h.value):Promise.resolve(h.value).then(b,c).then(f,e)}
f(a.next())})};
g.H=function(a){return jaa(new iaa(new gaa(a)))};
g.Ia=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
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,BL:f}}return{i:-1,BL:void 0}};
Ma=function(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""};
Oa=function(a){return a?a:Array.prototype.fill};
Pa=function(a){return a?a:Array.prototype.copyWithin};
laa=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length-1;0<=d;d--){var e=a[d];if(b.call(c,e,d,a))return{i:d,BL:e}}return{i:-1,BL:void 0}};
Sa=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.Ta;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
Ya=function(a,b){var c=g.Xa("CLOSURE_FLAGS");a=c&&c[a];return null!=a?a:b};
g.Xa=function(a,b){a=a.split(".");b=b||g.Ta;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b};
$a=function(a){var b=typeof a;return"object"!=b?b:a?Array.isArray(a)?"array":b:"null"};
g.ab=function(a){var b=$a(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.bb=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.fb=function(a){return Object.prototype.hasOwnProperty.call(a,db)&&a[db]||(a[db]=++maa)};
naa=function(a,b,c){return a.call.apply(a.bind,arguments)};
oaa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
g.gb=function(a,b,c){g.gb=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?naa:oaa;return g.gb.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.Of=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,f){for(var h=Array(arguments.length-2),l=2;l<arguments.length;l++)h[l-2]=arguments[l];return b.prototype[e].apply(d,h)}};
pb=function(a){return a};
paa=function(a){this.j=a};
sb=function(a,b,c){this.D=a;this.C=b;this.fields=c||[];this.j=new Map};
tb=function(a,b){sb.call(this,a,3,b)};
ub=function(a,b){sb.call(this,a,2,b)};
g.vb=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.wb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.ab(d)?g.wb.apply(null,d):g.vb(d)}};
g.I=function(){this.Yx=this.Yx;this.fn=this.fn};
g.O=function(a,b){a.addOnDisposeCallback(g.jb(g.vb,b))};
xb=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,xb);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));void 0!==b&&(this.cause=b)};
yb=function(a,b){var c=xb.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(xb,this,d+a[e])};
qaa=function(){};
g.zb=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.B=!1};
g.Ab=function(a){return a[a.length-1]};
raa=function(a,b){var c=a.length,d="string"===typeof a?a.split(""):a;for(--c;0<=c;--c)c in d&&b.call(void 0,d[c],c,a)};
g.Db=function(a,b,c){b=Cb(a,b,c);return 0>b?null:"string"===typeof a?a.charAt(b):a[b]};
Cb=function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
g.Eb=function(a,b,c){var d=a.length,e="string"===typeof a?a.split(""):a;for(--d;0<=d;d--)if(d in e&&b.call(c,e[d],d,a))return d;return-1};
g.Fb=function(a,b){return 0<=saa(a,b)};
taa=function(a){if(!Array.isArray(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.Hb=function(a,b){b=saa(a,b);var c;(c=0<=b)&&g.Gb(a,b);return c};
g.Gb=function(a,b){return 1==Array.prototype.splice.call(a,b,1).length};
g.Jb=function(a,b){b=Cb(a,b);0<=b&&g.Gb(a,b)};
uaa=function(a,b){var c=0;raa(a,function(d,e){b.call(void 0,d,e,a)&&g.Gb(a,e)&&c++})};
g.Kb=function(a){return Array.prototype.concat.apply([],arguments)};
g.Lb=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
g.Mb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.ab(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var h=0;h<f;h++)a[e+h]=d[h]}else a.push(d)}};
g.Pb=function(a,b,c,d){Array.prototype.splice.apply(a,Nb(arguments,1))};
Nb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
vaa=function(a){for(var b=0,c=0,d={};c<a.length;){var e=a[c++],f=g.bb(e)?"o"+g.fb(e):(typeof e).charAt(0)+e;Object.prototype.hasOwnProperty.call(d,f)||(d[f]=!0,a[b++]=e)}a.length=b};
g.Tb=function(a,b,c){return waa(a,c||Sb,!1,b)};
Ub=function(a,b){return waa(a,b,!0)};
waa=function(a,b,c,d){for(var e=0,f=a.length,h;e<f;){var l=e+(f-e>>>1),m=void 0;c?m=b.call(void 0,a[l],l,a):m=b(d,a[l]);0<m?e=l+1:(f=l,h=!m)}return h?e:-e-1};
g.Wb=function(a,b){a.sort(b||Sb)};
xaa=function(a,b){var c=Sb;g.Wb(a,function(d,e){return c(b(d),b(e))})};
g.Xb=function(a,b){if(!g.ab(a)||!g.ab(b)||a.length!=b.length)return!1;for(var c=a.length,d=yaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
Sb=function(a,b){return a>b?1:a<b?-1:0};
yaa=function(a,b){return a===b};
g.Zb=function(a,b,c){c=g.Tb(a,b,c);0>c&&g.Pb(a,-(c+1),0,b)};
g.bc=function(a,b,c){var d={};(0,g.$b)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
zaa=function(a){for(var b=[],c=0;c<a;c++)b[c]="";return b};
Aaa=function(a,b){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,0,0,b[0])};
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.Xa("window.location.href");null==a&&(a='Unknown Error of type "null/undefined"');if("string"===typeof a)return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(h){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||g.Ta.$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(null==c){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,cc[c])c=cc[c];else{c=String(c);if(!cc[c]){var f=/function\s+([^\(]+)/m.exec(c);cc[c]=f?f[1]:"[Anonymous]"}c=cc[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";"function"===typeof a.toString&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}return{message:a.message,
name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:b}};
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&&0==a.stack.indexOf(a.toString())||(c+="string"===typeof a?a:a.message+"\n"),c+=Caa(a,b));return c};
Eaa=function(a){var b="";"function"===typeof a.toString&&(b=""+a);return b+a.stack};
dc=function(a,b){return 0==a.lastIndexOf(b,0)};
Faa=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
g.ec=function(a){return/^[\s\xa0]*$/.test(a)};
gc=function(a){if(!Gaa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Haa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Iaa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Jaa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Kaa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Laa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Maa,"&#0;"));return a};
g.ic=function(a,b){return-1!=a.indexOf(b)};
jc=function(a,b){return g.ic(a.toLowerCase(),b.toLowerCase())};
g.mc=function(a,b){var c=0;a=kc(String(a)).split(".");b=kc(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",h=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];if(0==f[0].length&&0==h[0].length)break;c=lc(0==f[1].length?0:parseInt(f[1],10),0==h[1].length?0:parseInt(h[1],10))||lc(0==f[2].length,0==h[2].length)||lc(f[2],h[2]);f=f[3];h=h[3]}while(0==c)}return c};
lc=function(a,b){return a<b?-1:a>b?1:0};
g.pc=function(){var a=g.Ta.navigator;return a&&(a=a.userAgent)?a:""};
xc=function(a){return rc||tc?wc?wc.brands.some(function(b){return(b=b.brand)&&g.ic(b,a)}):!1:!1};
yc=function(a){return g.ic(g.pc(),a)};
zc=function(){return rc||tc?!!wc&&0<wc.brands.length:!1};
Ac=function(){return zc()?!1:yc("Opera")};
Naa=function(){return zc()?!1:yc("Trident")||yc("MSIE")};
Oaa=function(){return zc()?xc("Microsoft Edge"):yc("Edg/")};
Cc=function(){return yc("Firefox")||yc("FxiOS")};
Ec=function(){return yc("Safari")&&!(Dc()||(zc()?0:yc("Coast"))||Ac()||(zc()?0:yc("Edge"))||Oaa()||(zc()?xc("Opera"):yc("OPR"))||Cc()||yc("Silk")||yc("Android"))};
Dc=function(){return zc()?xc("Chromium"):(yc("Chrome")||yc("CriOS"))&&!(zc()?0:yc("Edge"))||yc("Silk")};
Paa=function(){return yc("Android")&&!(Dc()||Cc()||Ac()||yc("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.pc();if("Internet Explorer"===a){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),"7.0"==c[1])if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]);
b=Qaa(c);switch(a){case "Opera":if(Ac())return b(["Version","Opera"]);if(zc()?xc("Opera"):yc("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(zc()?0:yc("Edge"))return b(["Edge"]);if(Oaa())return b(["Edg"]);break;case "Chromium":if(Dc())return b(["Chrome","CriOS","HeadlessChrome"])}return"Firefox"===a&&Cc()||"Safari"===a&&Ec()||"Android Browser"===a&&Paa()||"Silk"===a&&yc("Silk")?(b=c[2])&&b[1]||"":""};
Saa=function(a){if(zc()&&"Silk"!==a){var b=wc.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 0===b.length?NaN:Number(b[0])};
Fc=function(){return rc||tc?!!wc&&!!wc.platform:!1};
Taa=function(){return Fc()?"Android"===wc.platform:yc("Android")};
Gc=function(){return yc("iPhone")&&!yc("iPod")&&!yc("iPad")};
Ic=function(){return Gc()||yc("iPad")||yc("iPod")};
Jc=function(){return Fc()?"macOS"===wc.platform:yc("Macintosh")};
Uaa=function(){return Fc()?"Windows"===wc.platform:yc("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 0<=g.mc(Xaa,a)})};
Yaa=function(a){return g.Rc?"webkit"+a:a.toLowerCase()};
Sc=function(a,b){g.zb.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)};
Tc=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.Fd=e;this.key=++$aa;this.removed=this.BH=!1};
Uc=function(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Fd=null};
g.Vc=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Xc=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Yc=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
g.ad=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.bd=function(a){for(var b in a)return b};
cba=function(a){for(var b in a)return a[b]};
g.cd=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.dd=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.ed=function(a,b){return null!==a&&b in a};
g.gd=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
hd=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=hd(a,b))&&a[b]};
g.id=function(a){for(var b in a)return!1;return!0};
g.eba=function(a){for(var b in a)delete a[b]};
g.jd=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.ld=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0};
g.md=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
g.nd=function(a){if(!a||"object"!==typeof a)return a;if("function"===typeof a.clone)return a.clone();if("undefined"!==typeof Map&&a instanceof Map)return new Map(a);if("undefined"!==typeof Set&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var b=Array.isArray(a)?[]:"function"!==typeof ArrayBuffer||"function"!==typeof ArrayBuffer.isView||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=g.nd(a[c]);return b};
g.od=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])}};
pd=function(a){this.src=a;this.listeners={};this.j=0};
g.qd=function(a,b){var c=b.type;c in a.listeners&&g.Hb(a.listeners[c],b)&&(Uc(b),0==a.listeners[c].length&&(delete a.listeners[c],a.j--))};
rd=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.Fd==d)return e}return-1};
g.td=function(a,b,c,d,e){if(d&&d.once)return sd(a,b,c,d,e);if(Array.isArray(b)){for(var f=0;f<b.length;f++)g.td(a,b[f],c,d,e);return null}c=xd(c);return Tc(a)?a.listen(b,c,g.bb(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.bb(e)?!!e.capture:!!e,l=yd(a);l||(a[zd]=l=new pd(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),void 0===e&&(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};
sd=function(a,b,c,d,e){if(Array.isArray(b)){for(var f=0;f<b.length;f++)sd(a,b[f],c,d,e);return null}c=xd(c);return Tc(a)?a.uJ(b,c,g.bb(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.bb(d)?!!d.capture:!!d,c=xd(c),Tc(a)?a.Pc(b,c,d,e):a&&(a=yd(a))&&(b=a.OD(b,c,d,e))&&Ad(b)};
Ad=function(a){if("number"!==typeof a&&a&&!a.removed){var b=a.src;if(Tc(b))g.qd(b.fm,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=yd(b))?(g.qd(c,a),0==c.j&&(c.src=null,b[zd]=null)):Uc(a)}}};
jba=function(a){return a in Bd?Bd[a]:Bd[a]="on"+a};
lba=function(a,b){if(a.removed)a=!0;else{b=new Sc(b,this);var c=a.listener,d=a.Fd||a.src;a.BH&&Ad(a);a=c.call(d,b)}return a};
yd=function(a){a=a[zd];return a instanceof pd?a:null};
xd=function(a){if("function"===typeof a)return a;a[Cd]||(a[Cd]=function(b){return a.handleEvent(b)});
return a[Cd]};
g.Dd=function(){g.I.call(this);this.fm=new pd(this);this.F5=this;this.cR=null};
Ed=function(a,b,c,d){b=a.fm.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.Fd||h.src;h.BH&&g.qd(a.fm,h);e=!1!==l.call(m,d)&&e}}return e&&!d.defaultPrevented};
Fd=function(a,b){this.C=a;this.D=b;this.B=0;this.j=null};
nba=function(a,b){a.D(b);100>a.B&&(a.B++,b.next=a.j,a.j=b)};
Gd=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}};
Ld=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.Ta.clearTimeout(c);var e=arguments;c=g.Ta.setTimeout(function(){a.apply(b,e)},50)}};
Pd=function(a,b){this.j=a===qba&&b||"";this.B=rba};
Qd=function(a){return a instanceof Pd&&a.constructor===Pd&&a.B===rba?a.j:"type_error:Const"};
Rd=function(a){return new Pd(qba,a)};
Vd=function(){if(void 0===Sd){var a=null,b=g.Ta.trustedTypes;if(b&&b.createPolicy){try{a=b.createPolicy("goog#html",{createHTML:pb,createScript:pb,createScriptURL:pb})}catch(c){g.Ta.console&&g.Ta.console.error(c.message)}Sd=a}else Sd=a}return Sd};
g.Wd=function(a){this.A_=a};
g.Xd=function(a){return a instanceof g.Wd&&a.constructor===g.Wd?a.A_:"type_error:TrustedResourceUrl"};
Yd=function(a){var b=Vd();a=b?b.createScriptURL(a):a;return new g.Wd(a,sba)};
g.Zd=function(a){this.C_=a};
g.be=function(a){if(a instanceof g.Zd)return a.C_;throw Error("");};
ce=function(a){this.qe=a};
de=function(a){return new ce(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
g.ie=function(a,b){b=void 0===b?tba:b;a:if(b=void 0===b?tba:b,!(a instanceof g.Zd)){for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof ce&&d.qe(a)){a=new g.Zd(a);break a}}a=void 0}return a||g.ee};
je=function(a){a instanceof g.Zd?a=g.be(a):a=uba.test(a)?a:void 0;return a};
g.ke=function(a){this.z_=a};
le=function(a){return a instanceof g.ke&&a.constructor===g.ke?a.z_:"type_error:SafeStyle"};
Bba=function(a){if(a instanceof g.Zd)return'url("'+a.toString().replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(a instanceof Pd)a=Qd(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 yb("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.ie(d).toString();return c+f+b+f+e})};
g.me=function(a){this.y_=a};
g.ne=function(a){return a instanceof g.me&&a.constructor===g.me?a.y_:"type_error:SafeHtml"};
Dba=function(a){function b(e){Array.isArray(e)?e.forEach(b):(e=e instanceof g.me?e:re(gc(String(e))),d.push(g.ne(e).toString()))}
var c=Cba;c=c instanceof g.me?c:re(gc(String(c)));var d=[];a.forEach(b);return re(d.join(g.ne(c).toString()))};
Eba=function(a){return Dba(Array.prototype.slice.call(arguments))};
re=function(a){var b=Vd();a=b?b.createHTML(a):a;return new g.me(a,Fba)};
te=function(a){this.j=a};
ue=function(a){this.B_=a};
Gba=function(a){var b=Vd();return new ue(b?b.createScript(a):a)};
ve=function(a){if(a instanceof ue)return a.B_;throw Error("");};
Hba=function(a){return le(a)};
Iba=function(a){var b=g.Ia.apply(1,arguments);if(0===b.length)return Yd(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return Yd(c)};
Jba=function(a){for(var b=g.Ia.apply(1,arguments),c=a[0],d=0;d<a.length-1;d++)c+=String(b[d])+a[d+1];if(/[<>]/.test(c))throw Error("Forbidden characters in style string: "+c);return new g.ke(c,we)};
Lba=function(a,b,c,d){a=Kba(a);b=b||g.Ta;c=c instanceof Pd?Qd(c):c||"";return void 0!==d?b.open(a,c,d):b.open(a,c)};
Kba=function(a){a=je(a);return void 0!==a?a:g.ee.toString()};
g.ye=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Ee=function(a,b){a%=b;return 0>a*b?a+b:a};
Fe=function(a,b,c){return a+c*(b-a)};
g.Ge=function(a,b){this.x=void 0!==a?a:0;this.y=void 0!==b?b:0};
He=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Ie=function(a,b){this.width=a;this.height=b};
g.Je=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
g.Ke=function(a,b){b=je(b);void 0!==b&&(a.href=b)};
Mba=function(a,b,c,d){if(0===a.length)throw Error("");a=a.map(function(f){if(f instanceof te)f=f.j;else throw Error("");return f});
var e=c.toLowerCase();if(a.every(function(f){return 0!==e.indexOf(f)}))throw Error('Attribute "'+c+'" does not match any of the allowed prefixes.');
b.setAttribute(c,d)};
Le=function(a,b){throw Error(void 0===b?"unexpected value "+a+"!":b);};
g.Me=function(a,b,c){var d=window;a=je(a);return void 0!==a?d.open(a,b,c):null};
Ne=function(a){var b,c;return(a=null==(c=(b=a.document).querySelector)?void 0:c.call(b,"script[nonce]"))?a.nonce||a.getAttribute("nonce")||"":""};
Pe=function(a){var b=Ne(a.ownerDocument&&a.ownerDocument.defaultView||window);b&&a.setAttribute("nonce",b)};
g.Re=function(a,b){a.src=g.Xd(b);Pe(a)};
Nba=function(a,b){return a.parseFromString(g.ne(b),"text/xml")};
g.Se=function(a){return encodeURIComponent(String(a))};
Te=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
Ue=function(a){return a=gc(a)};
g.Ye=function(a){return null==a?"":String(a)};
Ze=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
$e=function(a){var b=Number(a);return 0==b&&g.ec(a)?NaN:b};
Oba=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
Pba=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()};
Qba=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};
Rba=function(a){var b=1;a=a.split(":");for(var c=[];0<b&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c};
jf=function(a){return a?new af(bf(a)):Sba||(Sba=new af)};
kf=function(a,b){return"string"===typeof b?a.getElementById(b):b};
g.lf=function(a,b){return(b||document).getElementsByTagName(String(a))};
g.nf=function(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.mf(document,"*",a,b)};
g.tf=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.mf(c,"*",a,b)[0]||null}return a||null};
g.mf=function(a,b,c,d){a=d||a;b=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(b||c))return a.querySelectorAll(b+(c?"."+c:""));if(c&&a.getElementsByClassName){a=a.getElementsByClassName(c);if(b){d={};for(var e=0,f=0,h;h=a[f];f++)b==h.nodeName&&(d[e++]=h);d.length=e;return d}return a}a=a.getElementsByTagName(b||"*");if(c){d={};for(f=e=0;h=a[f];f++)b=h.className,"function"==typeof b.split&&g.Fb(b.split(/\s+/),c)&&(d[e++]=h);d.length=e;return d}return a};
uf=function(a,b){g.Vc(b,function(c,d){"style"==d?a.style.cssText=c:"class"==d?a.className=c:"for"==d?a.htmlFor=c:Tba.hasOwnProperty(d)?a.setAttribute(Tba[d],c):dc(d,"aria-")||dc(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Uba=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new g.Ie(a.clientWidth,a.clientHeight)};
Wba=function(a){var b=Vba(a);a=a.parentWindow||a.defaultView;return new g.Ge(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
Vba=function(a){return a.scrollingElement?a.scrollingElement:g.Rc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
vf=function(a){return a?a.parentWindow||a.defaultView:window};
xf=function(a,b,c){var d=arguments,e=document,f=d[1],h=wf(e,String(d[0]));f&&("string"===typeof f?h.className=f:Array.isArray(f)?h.className=f.join(" "):uf(h,f));2<d.length&&Xba(e,h,d,2);return h};
Xba=function(a,b,c,d){function e(l){l&&b.appendChild("string"===typeof l?a.createTextNode(l):l)}
for(;d<c.length;d++){var f=c[d];if(!g.ab(f)||g.bb(f)&&0<f.nodeType)e(f);else{a:{if(f&&"number"==typeof f.length){if(g.bb(f)){var h="function"==typeof f.item||"string"==typeof f.item;break a}if("function"===typeof f){h="function"==typeof f.item;break a}}h=!1}g.$b(h?g.Lb(f):f,e)}}};
g.yf=function(a){return wf(document,a)};
wf=function(a,b){b=String(b);"application/xhtml+xml"===a.contentType&&(b=b.toLowerCase());return a.createElement(b)};
g.zf=function(a){return document.createTextNode(String(a))};
g.Af=function(a,b){a.appendChild(b)};
g.Bf=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
Ef=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.Ff=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
g.Gf=function(a){var b;if(g.Rc&&(b=a.parentElement))return b;b=a.parentNode;return g.bb(b)&&1==b.nodeType?b:null};
g.Nf=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
bf=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
g.Of=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=String(b);else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else g.Bf(a),a.appendChild(bf(a).createTextNode(String(b)))};
Zba=function(a){return"A"==a.tagName&&a.hasAttribute("href")||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!a.hasAttribute("tabindex")||Yba(a)):a.hasAttribute("tabindex")&&Yba(a)};
Yba=function(a){a=a.tabIndex;return"number"===typeof a&&0<=a&&32768>a};
Qf=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return Pf(a,function(e){return(!d||e.nodeName==d)&&(!c||"string"===typeof e.className&&g.Fb(e.className.split(/\s+/),c))},!0)};
Pf=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
af=function(a){this.j=a||g.Ta.document||document};
Sf=function(a){"function"!==typeof g.Ta.setImmediate||g.Ta.Window&&g.Ta.Window.prototype&&g.Ta.Window.prototype.setImmediate==g.Ta.setImmediate?(Rf||(Rf=$ba()),Rf(a)):g.Ta.setImmediate(a)};
$ba=function(){var a=g.Ta.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!yc("Presto")&&(a=function(){var e=g.yf("IFRAME");e.style.display="none";document.documentElement.appendChild(e);var f=e.contentWindow;e=f.document;e.open();e.close();var h="callImmediate"+Math.random(),l="file:"==f.location.protocol?"*":f.location.protocol+"//"+f.location.host;e=(0,g.gb)(function(m){if(("*"==l||m.origin==l)&&m.data==h)this.port1.onmessage()},
this);
f.addEventListener("message",e,!1);this.port1={};this.port2={postMessage:function(){f.postMessage(h,l)}}});
if("undefined"!==typeof a){var b=new a,c={},d=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var e=c.TV;c.TV=null;e()}};
return function(e){d.next={TV:e};d=d.next;b.port2.postMessage(0)}}return function(e){g.Ta.setTimeout(e,0)}};
Tf=function(a){g.Ta.setTimeout(function(){throw a;},0)};
Vf=function(){this.B=this.j=null};
Wf=function(){this.next=this.scope=this.Ns=null};
g.fg=function(a,b){Xf||aca();eg||(Xf(),eg=!0);bca.add(a,b)};
aca=function(){if(g.Ta.Promise&&g.Ta.Promise.resolve){var a=g.Ta.Promise.resolve(void 0);Xf=function(){a.then(cca)}}else Xf=function(){Sf(cca)}};
cca=function(){for(var a;a=bca.remove();){try{a.Ns.call(a.scope)}catch(b){Tf(b)}nba(dca,a)}eg=!1};
g.hg=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){gg(b,2,c)},function(c){gg(b,3,c)})}catch(c){gg(this,3,c)}};
eca=function(){this.next=this.context=this.B=this.C=this.j=null;this.D=!1};
ig=function(a,b,c){var d=fca.get();d.C=a;d.B=b;d.context=c;return d};
jg=function(a){if(a instanceof g.hg)return a;var b=new g.hg(g.Jd);gg(b,2,a);return b};
kg=function(a){return new g.hg(function(b,c){c(a)})};
g.hca=function(a,b,c){gca(a,b,c,null)||g.fg(g.jb(b,a))};
ica=function(a){return new g.hg(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.hca(e,b,c)})};
kca=function(){var a,b,c=new g.hg(function(d,e){a=d;b=e});
return new jca(c,a,b)};
ng=function(a,b){b=ig(b,b);b.D=!0;mg(a,b);return a};
lca=function(a,b){if(0==a.j)if(a.C){var c=a.C;if(c.B){for(var d=0,e=null,f=null,h=c.B;h&&(h.D||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(f=h);e&&(0==c.j&&1==d?lca(c,b):(f?(d=f,d.next==c.D&&(c.D=d),d.next=d.next.next):mca(c),nca(c,e,3,b)))}a.C=null}else gg(a,3,b)};
mg=function(a,b){a.B||2!=a.j&&3!=a.j||oca(a);a.D?a.D.next=b:a.B=b;a.D=b};
pca=function(a,b,c,d){var e=ig(null,null,null);e.j=new g.hg(function(f,h){e.C=b?function(l){try{var m=b.call(d,l);f(m)}catch(n){h(n)}}:f;
e.B=c?function(l){try{var m=c.call(d,l);void 0===m&&l instanceof og?h(l):f(m)}catch(n){h(n)}}:h});
e.j.C=a;mg(a,e);return e.j};
gg=function(a,b,c){0==a.j&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.j=1,gca(c,a.Dda,a.Eda,a)||(a.N=c,a.j=b,a.C=null,oca(a),3!=b||c instanceof og||qca(a,c)))};
gca=function(a,b,c,d){if(a instanceof g.hg)return mg(a,ig(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.bb(a))try{var f=a.then;if("function"===typeof f)return rca(a,f,b,c,d),!0}catch(h){return c.call(d,h),!0}return!1};
rca=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)}};
oca=function(a){a.K||(a.K=!0,g.fg(a.c7,a))};
mca=function(a){var b=null;a.B&&(b=a.B,a.B=b.next,b.next=null);a.B||(a.D=null);return b};
nca=function(a,b,c,d){if(3==c&&b.B&&!b.D)for(;a&&a.G;a=a.C)a.G=!1;if(b.j)b.j.C=null,sca(b,c,d);else try{b.D?b.C.call(b.context):sca(b,c,d)}catch(e){tca.call(null,e)}nba(fca,b)};
sca=function(a,b,c){2==b?a.C.call(a.context,c):a.B&&a.B.call(a.context,c)};
qca=function(a,b){a.G=!0;g.fg(function(){a.G&&tca.call(null,b)})};
og=function(a){xb.call(this,a)};
jca=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};
g.Ag=function(a,b){g.Dd.call(this);this.Si=a||1;this.DG=b||g.Ta;this.NV=(0,g.gb)(this.oda,this);this.GY=g.kb()};
g.Bg=function(a,b,c){if("function"===typeof a)c&&(a=(0,g.gb)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.gb)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:g.Ta.setTimeout(a,b||0)};
Cg=function(a,b){var c=null;return(new g.hg(function(d,e){c=g.Bg(function(){d(b)},a);
-1==c&&e(Error("Failed to schedule timer."))})).wl(function(d){g.Ta.clearTimeout(c);
throw d;})};
g.Dg=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.Ag(this.flushInterval);this.j.listen("tick",this.Im,!1,this);g.O(this,this.j)};
uca=function(a){a.j.enabled||a.j.start();a.D++;a.D>=a.C&&a.Im()};
vca=function(a,b){return a.K.has(b)?void 0:a.B.get(b)};
wca=function(a){for(var b=0;b<a.length;b++)a[b].clear()};
xca=function(a){this.j=a;this.j.Nh("/client_streamz/bg/fic",{Kc:3,Jc:"ke"})};
yca=function(a){this.j=a;this.j.Nh("/client_streamz/bg/fiec",{Kc:3,Jc:"rk"},{Kc:3,Jc:"ke"},{Kc:2,Jc:"ec"},{Kc:3,Jc:"em"})};
zca=function(a){this.j=a;this.j.ev("/client_streamz/bg/fil",{Kc:3,Jc:"rk"},{Kc:3,Jc:"ke"})};
Aca=function(a){this.j=a;this.j.Nh("/client_streamz/bg/fcc",{Kc:2,Jc:"ph"},{Kc:3,Jc:"ke"})};
Bca=function(a){this.j=a;this.j.ev("/client_streamz/bg/fcd",{Kc:2,Jc:"ph"},{Kc:3,Jc:"ke"})};
Cca=function(a){this.j=a;this.j.Nh("/client_streamz/bg/fsc",{Kc:3,Jc:"rk"},{Kc:3,Jc:"ke"})};
Dca=function(a){this.j=a;this.j.ev("/client_streamz/bg/fsl",{Kc:3,Jc:"rk"},{Kc:3,Jc:"ke"})};
Eca=function(a){this.j=a;this.j.ev("/client_streamz/bg/wrl",{Kc:3,Jc:"mn"},{Kc:2,Jc:"ac"},{Kc:2,Jc:"sc"},{Kc:3,Jc:"rk"})};
Fca=function(a){this.j=a;this.j.ev("/client_streamz/bg/el",{Kc:3,Jc:"en"},{Kc:3,Jc:"rk"})};
Gca=function(a){this.j=a;this.j.Nh("/client_streamz/bg/cec",{Kc:2,Jc:"ec"},{Kc:3,Jc:"rk"})};
Hca=function(a){this.j=a;this.j.Nh("/client_streamz/bg/po/csc",{Kc:2,Jc:"cs"},{Kc:3,Jc:"rk"})};
Ica=function(a){this.j=a;this.j.Nh("/client_streamz/bg/po/ctav",{Kc:3,Jc:"av"},{Kc:3,Jc:"rk"})};
Jca=function(a){this.j=a;this.j.Nh("/client_streamz/bg/po/cwsc",{Kc:3,Jc:"su"},{Kc:3,Jc:"rk"})};
Kca=function(a){this.j=a;this.j.ev("/client_streamz/po/w/rl",{Kc:3,Jc:"mn"},{Kc:2,Jc:"ac"},{Kc:2,Jc:"sc"},{Kc:3,Jc:"rk"})};
Lca=function(a){this.j=a;this.j.ev("/client_streamz/po/w/el",{Kc:3,Jc:"en"},{Kc:3,Jc:"rk"})};
Mca=function(a){this.j=a;this.j.Nh("/client_streamz/po/w/cec",{Kc:2,Jc:"ec"},{Kc:3,Jc:"rk"})};
Nca=function(a){this.j=a;this.j.Nh("/client_streamz/po/w/csc",{Kc:2,Jc:"cs"},{Kc:3,Jc:"rk"})};
Oca=function(a){this.j=a;this.j.Nh("/client_streamz/po/w/ctav",{Kc:3,Jc:"av"},{Kc:3,Jc:"rk"})};
Pca=function(a){this.j=a;this.j.Nh("/client_streamz/po/w/cwsc",{Kc:3,Jc:"su"},{Kc:3,Jc:"rk"})};
Eg=function(){throw Error("Invalid UTF8");};
Qca=function(a,b){b=String.fromCharCode.apply(null,b);return null==a?b:a+b};
Uca=function(a){var b=!1;b=void 0===b?!1:b;if(Rca){if(b&&(Sca?!a.V8():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("Found an unpaired surrogate");a=(Tca||(Tca=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var f=a.charCodeAt(e);if(128>f)d[c++]=f;else{if(2048>f)d[c++]=f>>6|192;else{if(55296<=f&&57343>=f){if(56319>=f&&e<a.length){var h=a.charCodeAt(++e);if(56320<=h&&57343>=h){f=1024*(f-55296)+h-56320+65536;
d[c++]=f>>18|240;d[c++]=f>>12&63|128;d[c++]=f>>6&63|128;d[c++]=f&63|128;continue}else e--}if(b)throw Error("Found an unpaired surrogate");f=65533}d[c++]=f>>12|224;d[c++]=f>>6&63|128}d[c++]=f&63|128}}a=c===d.length?d:d.subarray(0,c)}return a};
Vca=function(a){return Array.prototype.map.call(a,function(b){b=b.toString(16);return 1<b.length?b:"0"+b}).join("")};
Wca=function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c,c+2),16));return b};
g.Fg=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};
g.Gg=function(a,b){void 0===b&&(b=0);Xca();b=Yca[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,f=0;e<a.length-2;e+=3){var h=a[e],l=a[e+1],m=a[e+2],n=b[h>>2];h=b[(h&3)<<4|l>>4];l=b[(l&15)<<2|m>>6];m=b[m&63];c[f++]=""+n+h+l+m}n=0;m=d;switch(a.length-e){case 2:n=a[e+1],m=b[(n&15)<<2]||d;case 1:a=a[e],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+m+d}return c.join("")};
g.Hg=function(a,b){if(Zca&&!b)a=g.Ta.btoa(a);else{for(var c=[],d=0,e=0;e<a.length;e++){var f=a.charCodeAt(e);255<f&&(c[d++]=f&255,f>>=8);c[d++]=f}a=g.Gg(c,b)}return a};
ada=function(a){var b=[];$ca(a,function(c){b.push(c)});
return b};
Ig=function(a){var b=a.length,c=3*b/4;c%3?c=Math.floor(c):g.ic("=.",a[b-1])&&(c=g.ic("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;$ca(a,function(f){d[e++]=f});
return e!==c?d.subarray(0,e):d};
$ca=function(a,b){function c(m){for(;d<a.length;){var n=a.charAt(d++),p=Jg[n];if(null!=p)return p;if(!g.ec(n))throw Error("Unknown base64 encoding at char: "+n);}return m}
Xca();for(var d=0;;){var e=c(-1),f=c(0),h=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=h&&(b(f<<4&240|h>>2),64!=l&&b(h<<6&192|l))}};
Xca=function(){if(!Jg){Jg={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;5>c;c++){var d=a.concat(b[c].split(""));Yca[c]=d;for(var e=0;e<d.length;e++){var f=d[e];void 0===Jg[f]&&(Jg[f]=e)}}}};
cda=function(a){if(!bda)return g.Gg(a);for(var b="",c=0,d=a.length-10240;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String.fromCharCode.apply(null,c?a.subarray(c):a);return btoa(b)};
eda=function(a){return dda[a]||""};
gda=function(a){if(!bda)return Ig(a);fda.test(a)&&(a=a.replace(fda,eda));a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
Kg=function(a){return hda&&null!=a&&a instanceof Uint8Array};
Lg=function(){return ida||(ida=new Uint8Array(0))};
jda=function(a){if(a!==Mg)throw Error("illegal external caller");};
Ng=function(a,b){jda(b);this.j=a;if(null!=a&&0===a.length)throw Error("ByteString should be constructed with non-empty values");};
Og=function(){return kda||(kda=new Ng(null,Mg))};
lda=function(a){var b=a.j;return null==b?"":"string"===typeof b?b:a.j=cda(b)};
$g=function(a){return(a=Pg(a))?new Uint8Array(a):Lg()};
Pg=function(a){jda(Mg);var b=a.j;b=null==b||Kg(b)?b:"string"===typeof b?gda(b):null;return null==b?b:a.j=b};
mda=function(a,b){return Error("Invalid wire type: "+a+" (at position "+b+")")};
ah=function(){return Error("Failed to read varint, encoding is invalid.")};
nda=function(a,b){return Error("Tried to read past the end of the data "+b+" > "+a)};
bh=function(a){if("string"===typeof a)return{buffer:gda(a),jw:!1};if(Array.isArray(a))return{buffer:new Uint8Array(a),jw:!1};if(a.constructor===Uint8Array)return{buffer:a,jw:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),jw:!1};if(a.constructor===Ng)return{buffer:Pg(a)||Lg(),jw:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),jw:!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");
};
ch=function(){return"function"===typeof BigInt};
gh=function(a){var b=0>a;a=Math.abs(a);var c=a>>>0;a=Math.floor((a-c)/4294967296);b&&(c=g.u(dh(c,a)),b=c.next().value,a=c.next().value,c=b);eh=c>>>0;fh=a>>>0};
oda=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,0==a&&(b=b+1>>>0));a=4294967296*b+(a>>>0);return c?-a:a};
hh=function(a,b){b>>>=0;a>>>=0;if(2097151>=b)var c=""+(4294967296*b+a);else ch()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+6777216*c+6710656*b,c+=8147497*b,b*=2,1E7<=a&&(c+=Math.floor(a/1E7),a%=1E7),1E7<=c&&(b+=Math.floor(c/1E7),c%=1E7),c=b+pda(c)+pda(a));return c};
pda=function(a){a=String(a);return"0000000".slice(a.length)+a};
qda=function(){var a=eh,b=fh;b&2147483648?ch()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=g.u(dh(a,b)),a=b.next().value,b=b.next().value,a="-"+hh(a,b)):a=hh(a,b);return a};
ih=function(a){if(16>a.length)gh(Number(a));else if(ch())a=BigInt(a),eh=Number(a&BigInt(4294967295))>>>0,fh=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+("-"===a[0]);fh=eh=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)),fh*=1E6,eh=1E6*eh+d,4294967296<=eh&&(fh+=Math.trunc(eh/4294967296),fh>>>=0,eh>>>=0);b&&(b=g.u(dh(eh,fh)),a=b.next().value,b=b.next().value,eh=a,fh=b)}};
dh=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
jh=function(a,b){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.init(a,void 0,void 0,b)};
lh=function(a){var b=0,c=0,d=0,e=a.B,f=a.j;do{var h=e[f++];b|=(h&127)<<d;d+=7}while(32>d&&h&128);32<d&&(c|=(h&127)>>4);for(d=3;32>d&&h&128;d+=7)h=e[f++],c|=(h&127)<<d;kh(a,f);if(128>h)return oda(b>>>0,c>>>0);throw ah();};
kh=function(a,b){a.j=b;if(b>a.C)throw nda(a.C,b);};
mh=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 ah();kh(a,c);return e};
nh=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];kh(a,a.j+4);return(d<<0|e<<8|f<<16|b<<24)>>>0};
oh=function(a){var b=nh(a);return 4294967296*nh(a)+(b>>>0)};
ph=function(a){var b=nh(a),c=nh(a);a=2*(c>>31)+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return 2047==d?b?NaN:Infinity*a:0==d?a*Math.pow(2,-1074)*b:a*Math.pow(2,d-1075)*(b+4503599627370496)};
qh=function(a){for(var b=0,c=a.j,d=c+10,e=a.B;c<d;){var f=e[c++];b|=f;if(0===(f&128))return kh(a,c),!!(b&127)}throw ah();};
rda=function(a,b){if(0>b)throw Error("Tried to read a negative byte length: "+b);var c=a.j,d=c+b;if(d>a.C)throw nda(b,a.C-c);a.j=d;return c};
tda=function(a,b){if(0==b)return Og();var c=rda(a,b);a.nH&&a.G?c=a.B.subarray(c,c+b):(a=a.B,b=c+b,c=c===b?Lg():sda?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return 0==c.length?Og():new Ng(c,Mg)};
Eh=function(a,b){if(Dh.length){var c=Dh.pop();c.init(a,void 0,void 0,b);a=c}else a=new jh(a,b);this.j=a;this.C=this.j.j;this.B=this.D=-1;uda(this,b)};
uda=function(a,b){b=void 0===b?{}:b;a.SN=void 0===b.SN?!1:b.SN};
vda=function(a){var b=a.j;if(b.j==b.C)return!1;a.C=a.j.j;var c=mh(a.j)>>>0;b=c>>>3;c&=7;if(!(0<=c&&5>=c))throw mda(c,a.C);if(1>b)throw Error("Invalid field number: "+b+" (at position "+a.C+")");a.D=b;a.B=c;return!0};
Fh=function(a){switch(a.B){case 0:0!=a.B?Fh(a):qh(a.j);break;case 1:a=a.j;kh(a,a.j+8);break;case 2:if(2!=a.B)Fh(a);else{var b=mh(a.j)>>>0;a=a.j;kh(a,a.j+b)}break;case 5:a=a.j;kh(a,a.j+4);break;case 3:b=a.D;do{if(!vda(a))throw Error("Unmatched start-group tag: stream EOF");if(4==a.B){if(a.D!=b)throw Error("Unmatched end-group tag");break}Fh(a)}while(1);break;default:throw mda(a.B,a.C);}};
Gh=function(a,b,c){var d=a.j.C,e=mh(a.j)>>>0,f=a.j.j+e,h=f-d;0>=h&&(a.j.C=f,c(b,a,void 0,void 0,void 0),h=f-a.j.j);if(h)throw Error("Message parsing ended unexpectedly. Expected to read "+(e+" bytes, instead read "+(e-h)+" bytes, either the data ended unexpectedly or the message misreported its own length"));a.j.j=f;a.j.C=d};
Jh=function(a){var b=mh(a.j)>>>0;a=a.j;var c=rda(a,b);a=a.B;if(wda){var d=a,e;(e=Hh)||(e=Hh=new TextDecoder("utf-8",{fatal:!0}));b=c+b;d=0===c&&b===d.length?d:d.subarray(c,b);try{var f=e.decode(d)}catch(n){if(void 0===Ih){try{e.decode(new Uint8Array([128]))}catch(p){}try{e.decode(new Uint8Array([97])),Ih=!0}catch(p){Ih=!1}}!Ih&&(Hh=void 0);throw n;}}else{f=c;b=f+b;c=[];for(var h=null,l,m;f<b;)l=a[f++],128>l?c.push(l):224>l?f>=b?Eg():(m=a[f++],194>l||128!==(m&192)?(f--,Eg()):c.push((l&31)<<6|m&63)):
240>l?f>=b-1?Eg():(m=a[f++],128!==(m&192)||224===l&&160>m||237===l&&160<=m||128!==((e=a[f++])&192)?(f--,Eg()):c.push((l&15)<<12|(m&63)<<6|e&63)):244>=l?f>=b-2?Eg():(m=a[f++],128!==(m&192)||0!==(l<<28)+(m-144)>>30||128!==((e=a[f++])&192)||128!==((d=a[f++])&192)?(f--,Eg()):(l=(l&7)<<18|(m&63)<<12|(e&63)<<6|d&63,l-=65536,c.push((l>>10&1023)+55296,(l&1023)+56320))):Eg(),8192<=c.length&&(h=Qca(h,c),c.length=0);f=Qca(h,c)}return f};
xda=function(a){var b=mh(a.j)>>>0;return tda(a.j,b)};
yda=function(a,b){this.B=a>>>0;this.j=b>>>0};
Ada=function(a){if(!a)return zda||(zda=new yda(0,0));if(!/^\d+$/.test(a))return null;ih(a);return new yda(eh,fh)};
Bda=function(a,b){this.B=a>>>0;this.j=b>>>0};
Dda=function(a){if(!a)return Cda||(Cda=new Bda(0,0));if(!/^-?\d+$/.test(a))return null;ih(a);return new Bda(eh,fh)};
Kh=function(){this.j=[]};
Eda=function(a,b,c){for(;0<c||127<b;)a.j.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.j.push(b)};
Lh=function(a,b){for(;127<b;)a.j.push(b&127|128),b>>>=7;a.j.push(b)};
Fda=function(a,b){if(0<=b)Lh(a,b);else{for(var c=0;9>c;c++)a.j.push(b&127|128),b>>=7;a.j.push(1)}};
Mh=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)};
Gda=function(){this.C=[];this.B=0;this.j=new Kh};
Nh=function(a,b){0!==b.length&&(a.C.push(b),a.B+=b.length)};
Oh=function(a,b,c){Lh(a.j,8*b+c)};
Hda=function(a,b,c){null!=c&&("string"===typeof c&&Ada(c),Oh(a,b,1),"number"===typeof c?(a=a.j,b=c>>>0,c=Math.floor((c-b)/4294967296)>>>0,eh=b,fh=c,Mh(a,eh),Mh(a,fh)):(c=Ada(c),a=a.j,b=c.j,Mh(a,c.B),Mh(a,b)))};
Ph=function(a,b,c){Oh(a,b,2);Lh(a.j,c.length);Nh(a,a.j.end());Nh(a,c)};
Qh=function(a,b,c,d){this.HL=a;this.IL=b;this.j=c;this.V1=d};
Rh=function(a){return Array.prototype.slice.call(a)};
Sh=function(a){return"function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol():a};
Th=function(a,b,c){return c?a|b:a&~b};
Wh=function(a){Uh(a,34);return a};
Ida=function(a,b){Xh(b,(a|0)&-14591)};
Yh=function(a,b){Xh(b,(a|34)&-14557)};
Jda=function(a){a=a>>14&1023;return 0===a?536870912:a};
Lda=function(a){return!(!a||"object"!==typeof a||a.n9!==Kda)};
Zh=function(a){return null!==a&&"object"===typeof a&&!Array.isArray(a)&&a.constructor===Object};
$h=function(a,b,c){if(null!=a)if("string"===typeof a)a=a?new Ng(a,Mg):Og();else if(a.constructor!==Ng)if(Kg(a))a=a.length?new Ng(c?a:new Uint8Array(a),Mg):Og();else{if(!b)throw Error();a=void 0}return a};
ni=function(a,b,c){if(!Array.isArray(a)||a.length)return!1;var d=mi(a);if(d&1)return!0;if(!(b&&(Array.isArray(b)?b.includes(c):b.has(c))))return!1;Xh(a,d|1);return!0};
oi=function(a){if(a&2)throw Error();};
Mda=function(a,b){if("number"!==typeof b||0>b||b>=a.length)throw Error();};
Nda=function(a,b){if("number"!==typeof b||0>b||b>a.length)throw Error();};
pi=function(a,b,c){this.C=0;this.j=a;this.B=b;this.D=c};
Oda=function(a,b){(b=qi?b[qi]:void 0)&&(a[qi]=Rh(b))};
Pda=function(){var a=Error();Baa(a,"incident");Tf(a)};
ri=function(a){a=Error(a);Baa(a,"warning");return a};
si=function(a){if(null!=a&&"number"!==typeof a)throw Error("Value of float/double field must be a number, found "+typeof a+": "+a);return a};
Qda=function(a){if(null==a||"number"===typeof a)return a;if("NaN"===a||"Infinity"===a||"-Infinity"===a)return Number(a)};
Rda=function(a){return a.displayName||a.name||"unknown type name"};
Sda=function(a){if("boolean"!==typeof a)throw Error("Expected boolean but got "+$a(a)+": "+a);return a};
Tda=function(a){if(null==a||"boolean"===typeof a)return a;if("number"===typeof a)return!!a};
ti=function(a){var b=typeof a;return"number"===b?Number.isFinite(a):"string"!==b?!1:Uda.test(a)};
ui=function(a){if(!Number.isFinite(a))throw ri("enum");return a|0};
vi=function(a){return null==a?a:Number.isFinite(a)?a|0:void 0};
Vda=function(a){if("number"!==typeof a)throw ri("int32");if(!Number.isFinite(a))throw ri("int32");return a|0};
wi=function(a){return null==a?a:Vda(a)};
xi=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if("number"===typeof a)return Number.isFinite(a)?a|0:void 0};
yi=function(a){if(null==a)return a;if("string"===typeof a){if(!a)return;a=+a}if("number"===typeof a)return Number.isFinite(a)?a>>>0:void 0};
Xda=function(a,b){b=!!b;if(!ti(a))throw ri("int64");return"string"===typeof a?zi(a):b?Wda(a):Ai(a)};
Bi=function(a){return null==a?a:Xda(a)};
Ci=function(a){return"-"===a[0]?!1:20>a.length?!0:20===a.length&&184467>Number(a.substring(0,6))};
Yda=function(a){return"-"===a[0]?20>a.length?!0:20===a.length&&-922337<Number(a.substring(0,7)):19>a.length?!0:19===a.length&&922337>Number(a.substring(0,6))};
Zda=function(a){if(0>a){gh(a);var b=hh(eh,fh);a=Number(b);return Number.isSafeInteger(a)?a:b}if(Ci(String(a)))return a;gh(a);return 4294967296*fh+(eh>>>0)};
Ai=function(a){ti(a);a=Math.trunc(a);Number.isSafeInteger(a)||(gh(a),a=oda(eh,fh));return a};
Di=function(a){ti(a);a=Math.trunc(a);return 0<=a&&Number.isSafeInteger(a)?a:Zda(a)};
Wda=function(a){ti(a);a=Math.trunc(a);if(Number.isSafeInteger(a))a=String(a);else{var b=String(a);Yda(b)?a=b:(gh(a),a=qda())}return a};
zi=function(a){ti(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b))return String(b);b=a.indexOf(".");-1!==b&&(a=a.substring(0,b));Yda(a)||(ih(a),a=qda());return a};
Xi=function(a){ti(a);var b=Math.trunc(Number(a));if(Number.isSafeInteger(b)&&0<=b)return String(b);b=a.indexOf(".");-1!==b&&(a=a.substring(0,b));Ci(a)||(ih(a),a=hh(eh,fh));return a};
$da=function(a){if(null==a)return a;if(ti(a)){if("string"===typeof a)return Xi(a);if("number"===typeof a)return Di(a)}};
aea=function(a){if(null==a||"string"==typeof a||Kg(a)||a instanceof Ng)return a};
Yi=function(a){if("string"!==typeof a)throw Error();return a};
Zi=function(a){if(null!=a&&"string"!==typeof a)throw Error();return a};
$i=function(a){return null==a||"string"===typeof a?a:void 0};
aj=function(a,b){if(!(a instanceof b))throw Error("Expected instanceof "+Rda(b)+" but got "+(a&&Rda(a.constructor)));return a};
cj=function(a,b,c,d){if(null!=a&&"object"===typeof a&&a.HJ===bj)return a;if(!Array.isArray(a))return c?d&2?(a=b[bea])?b=a:(a=new b,Wh(a.ea),b=b[bea]=a):b=new b:b=void 0,b;var e=c=mi(a);0===e&&(e|=d&32);e|=d&2;e!==c&&Xh(a,e);return new b(a)};
ej=function(a,b){dj=b;a=new a(b);dj=void 0;return a};
gj=function(a){switch(typeof a){case "boolean":return fj||(fj=[0,void 0,!0]);case "number":return 0<a?void 0:0===a?cea||(cea=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}};
P=function(a,b,c){null==a&&(a=dj);dj=void 0;if(null==a){var d=96;c?(a=[c],d|=512):a=[];b&&(d=d&-16760833|(b&1023)<<14)}else{if(!Array.isArray(a))throw Error("narr");d=mi(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(Zh(c[f])){d|=256;b=f-(+!!(d&512)-1);if(1024<=b)throw Error("pvtlmt");d=d&-16760833|(b&1023)<<14;break a}}if(b){b=Math.max(b,e-(+!!(d&512)-1));if(1024<b)throw Error("spvt");d=d&-16760833|(b&1023)<<
14}}}Xh(a,d);return a};
hj=function(){this.j=new Map};
dea=function(a){return a};
jj=function(a,b,c,d){c=void 0===c?dea:c;d=void 0===d?dea:d;var e=ij.call(this)||this;var f=mi(a);f|=64;Xh(a,f);e.pH=f;e.CL=b;e.yE=c;e.WS=e.CL?eea:d;for(var h=0;h<a.length;h++){var l=a[h],m=c(l[0],!1,!0),n=l[1];b?void 0===n&&(n=null):n=d(l[1],!1,!0,void 0,void 0,f);ij.prototype.set.call(e,m,n)}return e};
kj=function(a){if(a.pH&2)throw Error("Cannot mutate an immutable Map");};
hea=function(a,b){b=void 0===b?fea:b;if(0!==a.size)return gea(a,b)};
gea=function(a,b){b=void 0===b?fea:b;var c=[];a=ij.prototype.entries.call(a);for(var d;!(d=a.next()).done;)d=d.value,d[0]=b(d[0]),d[1]=b(d[1]),c.push(d);return c};
eea=function(a,b,c,d,e,f){b&&aj(a,d);a=cj(a,d,c,f);e&&(a=lj(a));return a};
fea=function(a){return a};
iea=function(a){return[a,this.get(a)]};
kea=function(a,b){return jea(b)};
jea=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(ni(a,void 0,0))return}else{if(Kg(a))return cda(a);if(a instanceof Ng)return lda(a);if(a instanceof jj)return hea(a)}}return a};
lea=function(a,b,c){var d=Rh(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])}Oda(d,a);return d};
nj=function(a,b,c,d,e){if(null!=a){if(Array.isArray(a))a=ni(a,void 0,0)?void 0:e&&mi(a)&2?a:mj(a,b,c,void 0!==d,e);else if(Zh(a)){var f={},h;for(h in a)f[h]=nj(a[h],b,c,d,e);a=f}else a=b(a,d);return a}};
mj=function(a,b,c,d,e){var f=d||c?mi(a):0;d=d?!!(f&32):void 0;for(var h=Rh(a),l=0;l<h.length;l++)h[l]=nj(h[l],b,c,d,e);c&&(Oda(h,a),c(f,h));return h};
nea=function(a){return nj(a,mea,void 0,void 0,!1)};
mea=function(a){return a.HJ===bj?a.toJSON():a instanceof jj?hea(a,nea):jea(a)};
yj=function(a,b,c){c=void 0===c?Yh:c;if(null!=a){if(hda&&a instanceof Uint8Array)return b?a:new Uint8Array(a);if(Array.isArray(a)){var d=mi(a);if(d&2)return a;b&&(b=0===d||!!(d&32)&&!(d&64||!(d&16)));return b?Xh(a,(d|34)&-12293):mj(a,yj,d&4?Yh:c,!0,!0)}a.HJ===bj?(c=a.ea,d=zj(c),a=d&2?a:ej(a.constructor,Aj(c,d,!0))):a instanceof jj&&!(a.pH&2)&&(c=Wh(gea(a,yj)),a=new jj(c,a.CL,a.yE,a.WS));return a}};
Aj=function(a,b,c){var d=c||b&2?Yh:Ida,e=!!(b&32);a=lea(a,b,function(f){return yj(f,e,d)});
Uh(a,32|(c?2:0));return a};
lj=function(a){var b=a.ea,c=zj(b);return c&2?ej(a.constructor,Aj(b,c,!1)):a};
pea=function(a,b,c,d){if(!(4&b))return!0;if(null==c)return!1;!d&&0===c&&(4096&b||8192&b)&&5>(a.constructor[oea]=(a.constructor[oea]|0)+1)&&Pda();return 0===c?!1:!(c&b)};
Cj=function(a,b){a=a.ea;return Bj(a,zj(a),b)};
qea=function(a,b,c,d){b=d+(+!!(b&512)-1);if(!(0>b||b>=a.length||b>=c))return a[b]};
Bj=function(a,b,c,d){if(-1===c)return null;var e=Jda(b);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],null!=d)){if(qea(a,b,e,c)&&null!=Dj){var h;a=null!=(h=rea)?h:rea={};h=a[Dj]||0;4<=h||(a[Dj]=h+1,Pda())}return d}return qea(a,b,e,c)}};
Fj=function(a,b,c){var d=a.ea,e=zj(d);oi(e);Ej(d,e,b,c);return a};
Ej=function(a,b,c,d,e){var f=Jda(b);if(c>=f||e){var h=b;if(b&256)e=a[a.length-1];else{if(null==d)return h;e=a[f+(+!!(b&512)-1)]={};h|=256}e[c]=d;c<f&&(a[c+(+!!(b&512)-1)]=void 0);h!==b&&Xh(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};
Gj=function(a,b,c){return void 0!==sea(a,b,c,!1)};
Jj=function(a,b,c,d,e){var f=b&2,h=Bj(a,b,c,e);Array.isArray(h)||(h=Hj);var l=!(d&2);d=!(d&1);var m=!!(b&32),n=mi(h);0!==n||!m||f||l?n&1||(n|=1,Xh(h,n)):(n|=33,Xh(h,n));f?(a=!1,n&2||(Wh(h),a=!!(4&n)),(d||a)&&Object.freeze(h)):(f=!!(2&n)||!!(2048&n),d&&f?(h=Rh(h),d=1,m&&!l&&(d|=32),Xh(h,d),Ej(a,b,c,h,e)):l&&n&32&&!f&&Ij(h,32));return h};
Nj=function(a,b,c,d,e,f){var h=a.ea,l=zj(h);d=2&l?1:d;f=!!f;var m=tea(h,l,b,e),n=mi(m);if(pea(a,n,void 0,f)){if(4&n||Object.isFrozen(m))m=Rh(m),n=Kj(n,l),l=Ej(h,l,b,m,e);for(var p=a=0;a<m.length;a++){var q=c(m[a]);null!=q&&(m[p++]=q)}p<a&&(m.length=p);n=uea(n,l);n=Th(n,20,!0);n=Th(n,4096,!1);n=Th(n,8192,!1);Xh(m,n);2&n&&Object.freeze(m)}Lj(n)||(c=n,(a=1===d)?(32&n||(m=Rh(m),c=0,l=Ej(h,l,b,m,e)),n=Th(n,2,!0)):n=Mj(n,l,f),n!==c&&Xh(m,n),a&&Object.freeze(m));2===d&&Lj(n)&&(m=Rh(m),n=Kj(n,l),n=Mj(n,l,
f),Xh(m,n),Ej(h,l,b,m,e));return m};
tea=function(a,b,c,d){a=Bj(a,b,c,d);return Array.isArray(a)?a:Hj};
uea=function(a,b){0===a&&(a=Kj(a,b));return a=Th(a,1,!0)};
Lj=function(a){return!!(2&a)&&!!(4&a)||!!(2048&a)};
vea=function(a){return $h(a,!0,!0)};
wea=function(a){return $h(a,!0,!1)};
Oj=function(a,b){a=a.ea;var c=zj(a),d=Bj(a,c,b),e=$h(d,!0,!!(c&34));null!=e&&e!==d&&Ej(a,c,b,e);return null==e?Og():e};
xea=function(a,b,c){var d=a.ea,e=zj(d);oi(e);if(null==b)return Ej(d,e,3),a;if(!Array.isArray(b))throw ri();var f=mi(b),h=f,l=!!(2&f)||Object.isFrozen(b),m=!l&&!1;if(pea(a,f))for(f=21,l&&(b=Rh(b),h=0,f=Kj(f,e),f=Mj(f,e,!0)),l=0;l<b.length;l++)b[l]=c(b[l]);m&&(b=Rh(b),h=0,f=Kj(f,e),f=Mj(f,e,!0));f!==h&&Xh(b,f);Ej(d,e,3,b);return a};
Pj=function(a,b,c,d){var e=a.ea,f=zj(e);oi(f);Ej(e,f,b,("0"===d?0===Number(c):c===d)?void 0:c);return a};
Rj=function(a,b,c,d,e){Qj(a.ea,b,c,d,e);return a};
Qj=function(a,b,c,d,e){var f=zj(a);oi(f);a=Jj(a,f,b,2);b=mi(a);d=c(d,!!(4&b)&&!!(4096&b));void 0!=e?a.splice(e,0,d):a.push(d)};
yea=function(a){return a};
zea=function(a,b,c,d,e,f){oi(zj(a.ea));b=f(a,b,2,void 0,!0);Nda(b,d);f=mi(b);b[d]=c(e,!!(4&f)&&!!(4096&f));return a};
Tj=function(a,b,c,d){var e=a.ea,f=zj(e);oi(f);(c=Sj(e,f,c))&&c!==b&&null!=d&&(f=Ej(e,f,c));Ej(e,f,b,d);return a};
Uj=function(a,b,c,d){var e=zj(a);oi(e);(c=Sj(a,e,c))&&c!==b&&(e=Ej(a,e,c));Ej(a,e,b,d)};
Vj=function(a,b,c){a=a.ea;return Sj(a,zj(a),b)===c?c:-1};
Sj=function(a,b,c){for(var d=0,e=0;e<c.length;e++){var f=c[e];null!=Bj(a,b,f)&&(0!==d&&(b=Ej(a,b,d)),d=f)}return d};
pk=function(a,b,c,d){var e=zj(a);oi(e);var f=Bj(a,e,c,d),h;if(null!=f&&f.HJ===bj)return b=lj(f),b!==f&&Ej(a,e,c,b,d),b.ea;if(Array.isArray(f)){var l=mi(f);l&2?h=Aj(f,l,!1):h=f;h=P(h,b[0],b[1])}else h=P(void 0,b[0],b[1]);h!==f&&Ej(a,e,c,h,d);return h};
sea=function(a,b,c,d){a=a.ea;var e=zj(a),f=Bj(a,e,c,d);b=cj(f,b,!1,e);b!==f&&null!=b&&Ej(a,e,c,b,d);return b};
g.qk=function(a,b,c,d){d=void 0===d?!1:d;b=sea(a,b,c,d);if(null==b)return b;a=a.ea;var e=zj(a);if(!(e&2)){var f=lj(b);f!==b&&(b=f,Ej(a,e,c,b,d))}return b};
Aea=function(a,b,c,d,e,f,h){var l=!!(2&b),m=l?1:2,n=1===m;m=2===m;f=!!f;h&&(h=!l);l=tea(a,b,d,e);var p=mi(l),q=!!(4&p);if(!q){p=uea(p,b);var r=l,t=b,v;(v=!!(2&p))&&(t=Th(t,2,!0));for(var w=!v,A=!0,C=0,F=0;C<r.length;C++){var G=cj(r[C],c,!1,t);if(G instanceof c){if(!v){var L=!!(mi(G.ea)&2);w&&(w=!L);A&&(A=L)}r[F++]=G}}F<C&&(r.length=F);p=Th(p,4,!0);p=Th(p,16,A);p=Th(p,8,w);Xh(r,p);v&&Object.freeze(r)}c=!!(8&p)||n&&!l.length;if(h&&!c){Lj(p)&&(l=Rh(l),p=Kj(p,b),b=Ej(a,b,d,l,e));h=l;c=p;for(r=0;r<h.length;r++)p=
h[r],t=lj(p),p!==t&&(h[r]=t);c=Th(c,8,!0);c=Th(c,16,!h.length);Xh(h,c);p=c}Lj(p)||(h=p,n?(c=!!(32&p),c||(l=Rh(l),h=0,b=Ej(a,b,d,l,e)),p=Th(p,!l.length||16&p&&(!q||c)?2:2048,!0)):p=Mj(p,b,f),p!==h&&Xh(l,p),n&&Object.freeze(l));m&&Lj(p)&&(l=Rh(l),p=Kj(p,b),p=Mj(p,b,f),Xh(l,p),Ej(a,b,d,l,e));return l};
Bea=function(a,b){a=a.ea;var c=zj(a);return Aea(a,c,b,3,void 0,!1,!(2&c))};
rk=function(a,b,c,d){null!=d?aj(d,b):d=void 0;return Fj(a,c,d)};
sk=function(a,b,c,d,e){null!=e?aj(e,b):e=void 0;return Tj(a,c,d,e)};
tk=function(a,b,c,d){var e=a.ea,f=zj(e);oi(f);if(null==d)return Ej(e,f,c),a;if(!Array.isArray(d))throw ri();for(var h=mi(d),l=h,m=!!(2&h)||!!(2048&h),n=m||Object.isFrozen(d),p=!n&&!1,q=!0,r=!0,t=0;t<d.length;t++){var v=d[t];aj(v,b);m||(v=!!(mi(v.ea)&2),q&&(q=!v),r&&(r=v))}m||(h=Th(h,5,!0),h=Th(h,8,q),h=Th(h,16,r));if(p||n&&h!==l)d=Rh(d),l=0,h=Kj(h,f),h=Mj(h,f,!0);h!==l&&Xh(d,h);Ej(e,f,c,d);return a};
Kj=function(a,b){a=Th(a,2,!!(2&b));a=Th(a,32,!0);return a=Th(a,2048,!1)};
Mj=function(a,b,c){32&b&&c||(a=Th(a,32,!1));return a};
Cea=function(a,b,c,d,e,f,h){a=a.ea;var l=zj(a);oi(l);b=Aea(a,l,c,b,f,!0);f=null!=d?aj(d,c):new c;h&&(Nda(b,e),aj(d,c));void 0!=e?b.splice(e,h,f):b.push(f);mi(f.ea)&2?Ij(b,8):Ij(b,16)};
uk=function(a,b,c,d,e){Cea(a,b,c,d,e);return a};
vk=function(a,b){a=Cj(a,b);var c;null==a?c=a:ti(a)?"number"===typeof a?c=Ai(a):c=zi(a):c=void 0;return c};
Dea=function(a){a=Cj(a,1);var b=void 0===b?!1:b;b=null==a?a:ti(a)?"string"===typeof a?zi(a):b?Wda(a):Ai(a):void 0;return b};
wk=function(a,b){return $i(Cj(a,b))};
Eea=function(a,b,c,d,e){return Nj(a,b,$i,c,d,e)};
Fea=function(a,b,c,d,e){return Nj(a,b,vi,c,d,e)};
xk=function(a,b){return null!=a?a:b};
yk=function(a,b,c){c=void 0===c?0:c;a=xi(Cj(a,b));return xk(a,c)};
zk=function(a,b){var c=void 0===c?0:c;return xk(yi(Cj(a,b)),c)};
Gea=function(a,b){var c=void 0===c?0:c;return xk(vk(a,b),c)};
Ak=function(a,b){var c=void 0===c?0:c;a=Cj(a,b);var d;null==a?d=a:ti(a)?"number"===typeof a?d=Di(a):d=Xi(a):d=void 0;return xk(d,c)};
Hea=function(a,b){var c=void 0===c?0:c;a=a.ea;var d=zj(a),e=Bj(a,d,b),f=Qda(e);null!=f&&f!==e&&Ej(a,d,b,f);return xk(f,c)};
Bk=function(a,b){var c=void 0===c?"":c;return xk(wk(a,b),c)};
Ck=function(a,b){var c=0;c=void 0===c?0:c;return xk(vi(Cj(a,b)),c)};
Iea=function(a,b,c){a=Fea(a,b,3,void 0,!0);Mda(a,c);return a[c]};
Dk=function(a,b,c){return Fj(a,b,null==c?c:Sda(c))};
Ek=function(a,b,c){return Fj(a,b,wi(c))};
Fk=function(a,b,c){if(null!=c){if("number"!==typeof c)throw ri("uint32");if(!Number.isFinite(c))throw ri("uint32");c>>>=0}Fj(a,b,c)};
Gk=function(a,b,c){return Fj(a,b,Bi(c))};
Hk=function(a,b,c){if(null!=c){var d=!!d;if(!ti(c))throw ri("uint64");"string"===typeof c?c=Xi(c):d?(ti(c),c=Math.trunc(c),0<=c&&Number.isSafeInteger(c)?c=String(c):(d=String(c),Ci(d)?c=d:(gh(c),c=hh(eh,fh)))):c=Di(c)}Fj(a,b,c)};
Ik=function(a,b,c){return Fj(a,b,si(c))};
Q=function(a,b,c){return Fj(a,b,Zi(c))};
Jk=function(a,b,c){return Pj(a,b,Zi(c),"")};
Kk=function(a,b,c){return Fj(a,b,$h(c,!1,!1))};
S=function(a,b,c){return Fj(a,b,null==c?c:ui(c))};
Lk=function(a,b,c,d){Tj(a,b,c,null==d?d:ui(d))};
T=function(a,b,c){this.ea=P(a,b,c)};
Jea=function(a,b){if(null==b||""==b)return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");Uh(b,32);return ej(a,b)};
Mk=function(a,b,c){var d=Kea?void 0:a.constructor.ub;var e=zj(c?a.ea:b);a=b.length;if(!a)return b;var f;if(Zh(c=b[a-1])){a:{var h=c;var l={},m=!1,n;for(n in h){var p=h[n];if(Array.isArray(p)){var q=p;if(ni(p,d,+n)||Lda(p)&&0===p.size)p=null;p!=q&&(m=!0)}null!=p?l[n]=p:m=!0}if(m){for(var r in l){h=l;break a}h=null}}h!=c&&(f=!0);a--}for(n=+!!(e&512)-1;0<a;a--){r=a-1;c=b[r];r-=n;if(!(null==c||ni(c,d,r)||Lda(c)&&0===c.size))break;var t=!0}if(!f&&!t)return b;b=Array.prototype.slice.call(b,0,a);h&&b.push(h);
return b};
Mea=function(a){return Array.isArray(a)?a[0]instanceof Qh?a:[Lea,a]:[a,void 0]};
Nk=function(a,b,c){if(Array.isArray(b)){var d=mi(b);if(d&4)return b;for(var e=0,f=0;e<b.length;e++){var h=a(b[e]);null!=h&&(b[f++]=h)}f<e&&(b.length=f);c&&(Xh(b,(d|5)&-12289),d&2&&Object.freeze(b));return b}};
Rk=function(a){var b=a[Nea];if(!b){var c=Oea(a),d=Ok(a),e=d.C;b=e?function(f,h){return e(f,h,d)}:function(f,h){for(;vda(h)&&4!=h.B;){var l=h.D,m=d[l];
if(!m){var n=d.extensions;n&&(n=n[l])&&(m=d[l]=Pea(n))}m&&m(h,f,l)||(m=h,l=m.C,Fh(m),m.SN?m=void 0:(n=m.j.j-l,m.j.j=l,m=tda(m.j,n)),l=f,m&&(qi||(qi=Symbol()),(n=l[qi])?n.push(m):l[qi]=[m]))}c===Pk||c===Qk||c.G||(f[Qea||(Qea=Symbol())]=c)};
a[Nea]=b}return b};
Pea=function(a){a=Mea(a);var b=a[0].HL;if(a=a[1]){var c=Rk(a),d=Ok(a).xA;return function(e,f,h){return b(e,f,h,d,c)}}return b};
sl=function(){};
Rea=function(a,b,c){var d=c[1];if(d){var e=d[tl];var f=e?e.xA:gj(d[0]);a[b]=null!=e?e:d}f&&f===fj?(a.j||(a.j=new Set)).add(b):c[0]&&(a.B||(a.B=new Set)).add(b)};
Sea=function(a,b){return[a.j,!b||0<b[0]?void 0:b]};
Oea=function(a){var b=a[tl];if(b)return b;b=ul(a,a[tl]=new sl,Sea,Sea,Rea);if(!b.extensions&&!b.B&&!b.j){var c=!0,d;for(d in b)isNaN(d)||(c=!1);c?(gj(a[0])===fj?Qk?b=Qk:(b=new sl,b.xA=gj(!0),b=Qk=b):b=Pk||(Pk=new sl),b=a[tl]=b):b.G=!0}return b};
Tea=function(a,b,c){a[b]=c};
ul=function(a,b,c,d,e){e=void 0===e?Tea:e;b.xA=gj(a[0]);var f=0,h=a[++f];h&&h.constructor===Object&&(b.extensions=h,h=a[++f],"function"===typeof h&&(b.C=h,b.D=a[++f],h=a[++f]));for(var l={};Array.isArray(h)&&"number"===typeof h[0]&&0<h[0];){for(var m=0;m<h.length;m++)l[h[m]]=h;h=a[++f]}for(m=1;void 0!==h;){"number"===typeof h&&(m+=h,h=a[++f]);var n=void 0;if(h instanceof Qh)var p=h;else p=Uea,f--;if(p.V1){h=a[++f];n=a;var q=f;"function"==typeof h&&(h=h(),n[q]=h);n=h}h=a[++f];q=m+1;"number"===typeof h&&
0>h&&(q-=h,h=a[++f]);for(;m<q;m++){var r=l[m];e(b,m,n?d(p,n,r):c(p,r))}}return b};
Xea=function(a){var b=a[Vea];if(!b){var c=vl(a);b=function(d,e){return Wea(d,e,c)};
a[Vea]=b}return b};
Yea=function(a){return a.IL};
Zea=function(a,b){var c,d,e=a.IL;return function(f,h,l){return e(f,h,l,d||(d=vl(b).xA),c||(c=Xea(b)))}};
vl=function(a){var b=a[wl];if(b)return b;b=ul(a,a[wl]={},Yea,Zea);$ea(a);return b};
afa=function(a,b){var c=a.HL;return b?function(d,e,f){return c(d,e,f,b)}:c};
bfa=function(a,b,c){var d=a.HL,e,f;return function(h,l,m){return d(h,l,m,f||(f=Ok(b).xA),e||(e=Rk(b)),c)}};
Ok=function(a){var b=a[xl];if(b)return b;Oea(a);b=ul(a,a[xl]={},afa,bfa);$ea(a);return b};
$ea=function(a){xl in a&&tl in a&&wl in a&&(a.length=0)};
cfa=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){c=Mea(c);var d=c[0].IL;if(c=c[1]){var e=Xea(c),f=vl(c).xA;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}};
Wea=function(a,b,c){for(var d=zj(a),e=+!!(d&512)-1,f=a.length,h=f+(d&256?-1:0),l=d&512?1:0;l<h;l++){var m=a[l];if(null!=m){var n=l-e,p=cfa(c,n);p&&p(b,m,n)}}if(d&256){d=a[f-1];for(var q in d)e=+q,Number.isNaN(e)||(f=d[q],null!=f&&(h=cfa(c,e))&&h(b,f,e))}if(a=qi?a[qi]:void 0)for(Nh(b,b.j.end()),c=0;c<a.length;c++)Nh(b,Pg(a[c])||Lg())};
yl=function(a,b){return new Qh(a,b,!1,!1)};
zl=function(a,b){return new Qh(a,b,!0,!1)};
Al=function(a,b,c){Ej(a,zj(a),b,c)};
Bl=function(a,b,c){b=Qda(b);null!=b&&(Oh(a,c,1),a=a.j,c=dfa||(dfa=new DataView(new ArrayBuffer(8))),c.setFloat64(0,+b,!0),eh=c.getUint32(0,!0),fh=c.getUint32(4,!0),Mh(a,eh),Mh(a,fh))};
Cl=function(a,b,c){a:if(null!=b){if(ti(b)){if("string"===typeof b){b=zi(b);break a}if("number"===typeof b){b=Ai(b);break a}}b=void 0}null!=b&&("string"===typeof b&&Dda(b),null!=b&&(Oh(a,c,0),"number"===typeof b?(a=a.j,gh(b),Eda(a,eh,fh)):(c=Dda(b),Eda(a.j,c.B,c.j))))};
Dl=function(a,b,c){b=xi(b);null!=b&&null!=b&&(Oh(a,c,0),Fda(a.j,b))};
efa=function(a,b,c){b=Tda(b);null!=b&&(Oh(a,c,0),a.j.j.push(b?1:0))};
ffa=function(a,b,c){b=$i(b);null!=b&&Ph(a,c,Uca(b))};
El=function(a,b,c,d,e){b=b instanceof T?b.ea:Array.isArray(b)?P(b,d[0],d[1]):void 0;if(null!=b){Oh(a,c,2);c=a.j.end();Nh(a,c);c.push(a.B);e(b,a);e=c.pop();for(e=a.B+a.j.length()-e;127<e;)c.push(e&127|128),e>>>=7,a.B++;c.push(e);a.B++}};
gfa=function(a){return function(){var b=new Gda;Wea(this.ea,b,vl(a));Nh(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}};
Fl=function(a){return function(b){return Jea(a,b)}};
Gl=function(a){this.ea=P(a)};
Hl=function(a){this.ea=P(a)};
Il=function(a){this.ea=P(a)};
Jl=function(a){this.ea=P(a)};
Kl=function(a){this.ea=P(a)};
Ll=function(a){this.ea=P(a)};
g.hfa=function(a){var b=new Kl;b=Q(b,1,a.D);for(var c=[],d=0;d<a.fields.length;d++)c.push(a.fields[d].Jc);b=xea(b,c,Yi);c=[];d=[];for(var e=g.u(a.j.keys()),f=e.next();!f.done;f=e.next())d.push(f.value.split(","));for(e=0;e<d.length;e++){f=d[e];for(var h=a.C,l=a.mO(f)||[],m=[],n=0;n<l.length;n++){var p=l[n],q=p&&p.j;p=new Il;switch(h){case 3:q=Number(q);Number.isFinite(q)&&Tj(p,1,Ml,Bi(q));break;case 2:Tj(p,2,Ml,si(Number(q)))}m.push(p)}h=m;for(l=0;l<h.length;l++){m=h[l];n=new Jl;m=rk(n,Il,2,m);n=
[];p=a;q=[];for(var r=0;r<p.fields.length;r++)q.push(p.fields[r].Kc);p=q;for(q=0;q<p.length;q++){var t=p[q],v=f[q];r=new Hl;switch(t){case 3:Tj(r,1,Nl,Zi(String(v)));break;case 2:t=Number(v);Number.isFinite(t)&&Tj(r,2,Nl,wi(t));break;case 1:t="true"===v,t=null==t?t:Sda(t),Tj(r,3,Nl,t)}n.push(r)}tk(m,Hl,1,n);c.push(m)}}tk(b,Jl,4,c);return b};
ifa=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";0===a.indexOf("blob:")&&(a=a.substring(5));a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==
c&&"moz-extension"!==c&&"file"!==c&&"android-app"!==c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==c&&"app"!==c&&"devtools"!==c)throw Error("Invalid URI scheme in origin: "+c);a="";var d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1);b=b.substring(0,d);if("http"===c&&"80"!==e||"https"===c&&"443"!==e)a=":"+e}return c+"://"+b+a};
jfa=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;p=n=0}
function b(q){for(var r=h,t=0;64>t;t+=4)r[t/4]=q[t]<<24|q[t+1]<<16|q[t+2]<<8|q[t+3];for(t=16;80>t;t++)q=r[t-3]^r[t-8]^r[t-14]^r[t-16],r[t]=(q<<1|q>>>31)&4294967295;q=e[0];var v=e[1],w=e[2],A=e[3],C=e[4];for(t=0;80>t;t++){if(40>t)if(20>t){var F=A^v&(w^A);var G=1518500249}else F=v^w^A,G=1859775393;else 60>t?(F=v&w|A&(v|w),G=2400959708):(F=v^w^A,G=3395469782);F=((q<<5|q>>>27)&4294967295)+F+C+G+r[t]&4294967295;C=A;A=w;w=(v<<30|v>>>2)&4294967295;v=q;q=F}e[0]=e[0]+q&4294967295;e[1]=e[1]+v&4294967295;e[2]=
e[2]+w&4294967295;e[3]=e[3]+A&4294967295;e[4]=e[4]+C&4294967295}
function c(q,r){if("string"===typeof q){q=unescape(encodeURIComponent(q));for(var t=[],v=0,w=q.length;v<w;++v)t.push(q.charCodeAt(v));q=t}r||(r=q.length);t=0;if(0==n)for(;t+64<r;)b(q.slice(t,t+64)),t+=64,p+=64;for(;t<r;)if(f[n++]=q[t++],p++,64==n)for(n=0,b(f);t+64<r;)b(q.slice(t,t+64)),t+=64,p+=64}
function d(){var q=[],r=8*p;56>n?c(l,56-n):c(l,64-(n-56));for(var t=63;56<=t;t--)f[t]=r&255,r>>>=8;b(f);for(t=r=0;5>t;t++)for(var v=24;0<=v;v-=8)q[r++]=e[t]>>v&255;return q}
for(var e=[],f=[],h=[],l=[128],m=1;64>m;++m)l[m]=0;var n,p;a();return{reset:a,update:c,digest:d,L6: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}}};
lfa=function(a,b,c){var d=String(g.Ta.location.href);return d&&a&&b?[b,kfa(ifa(d),a,c||null)].join(" "):null};
kfa=function(a,b,c){var d=[],e=[];if(1==(Array.isArray(c)?2:1))return e=[b,a],g.$b(d,function(l){e.push(l)}),mfa(e.join(" "));
var f=[],h=[];g.$b(c,function(l){h.push(l.key);f.push(l.value)});
c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];g.$b(d,function(l){e.push(l)});
a=mfa(e.join(" "));a=[c,a];0==h.length||a.push(h.join(""));return a.join("_")};
mfa=function(a){var b=jfa();b.update(a);return b.L6().toLowerCase()};
Ol=function(a){this.j=a||{cookie:""}};
Pl=function(a){a=(a.j.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=kc(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
Ql=function(a){return!!nfa.FPA_SAMESITE_PHASE2_MOD||!(void 0===a||!a)};
ofa=function(a){a=void 0===a?!1:a;var b=g.Ta.__SAPISID||g.Ta.__APISID||g.Ta.__3PSAPISID||g.Ta.__OVERRIDE_SID;Ql(a)&&(b=b||g.Ta.__1PSAPISID);if(b)return!0;if("undefined"!==typeof document){var c=new Ol(document);b=c.get("SAPISID")||c.get("APISID")||c.get("__Secure-3PAPISID")||c.get("SID")||c.get("OSID");Ql(a)&&(b=b||c.get("__Secure-1PAPISID"))}return!!b};
pfa=function(a,b,c,d){(a=g.Ta[a])||"undefined"===typeof document||(a=(new Ol(document)).get(b));return a?lfa(a,c,d):null};
qfa=function(a,b){b=void 0===b?!1:b;var c=ifa(String(g.Ta.location.href)),d=[];if(ofa(b)){c=0==c.indexOf("https:")||0==c.indexOf("chrome-extension:")||0==c.indexOf("moz-extension:");var e=c?g.Ta.__SAPISID:g.Ta.__APISID;e||"undefined"===typeof document||(e=new Ol(document),e=e.get(c?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?lfa(e,c?"SAPISIDHASH":"APISIDHASH",a):null)&&d.push(e);c&&Ql(b)&&((b=pfa("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&d.push(b),(a=pfa("__3PSAPISID","__Secure-3PAPISID",
"SAPISID3PHASH",a))&&d.push(a))}return 0==d.length?null:d.join(" ")};
Rl=function(a){this.ea=P(a)};
Sl=function(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.j=function(){return g.kb()};
this.B=this.j()};
Tl=function(a){this.ea=P(a)};
Ul=function(a){this.ea=P(a)};
g.Bm=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.Cm=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++};
Dm=function(a){this.ea=P(a)};
Em=function(a){this.ea=P(a)};
Fm=function(a){this.ea=P(a)};
rfa=function(a,b){tk(a,Em,1,b)};
Gm=function(a){this.ea=P(a)};
tfa=function(a,b){b=void 0===b?sfa:b;if(!Hm){var c;a=null==(c=a.navigator)?void 0:c.userAgentData;if(!a||"function"!==typeof a.getHighEntropyValues||a.brands&&"function"!==typeof a.brands.map)return Promise.reject(Error("UACH unavailable"));c=(a.brands||[]).map(function(e){var f=new Em;f=Q(f,1,e.brand);return Q(f,2,e.version)});
rfa(Dk(Im,2,a.mobile),c);Hm=a.getHighEntropyValues(b)}var d=new Set(b);return Hm.then(function(e){var f=Im.clone();d.has("platform")&&Q(f,3,e.platform);d.has("platformVersion")&&Q(f,4,e.platformVersion);d.has("architecture")&&Q(f,5,e.architecture);d.has("model")&&Q(f,6,e.model);d.has("uaFullVersion")&&Q(f,7,e.uaFullVersion);return f}).catch(function(){return Im.clone()})};
Jm=function(a){this.ea=P(a)};
Km=function(a){this.ea=P(a)};
Lm=function(a){this.ea=P(a,4)};
Mm=function(a){this.ea=P(a,35)};
Nm=function(a){this.ea=P(a,19)};
Om=function(a){this.ea=P(a,8)};
ufa=function(a){this.ea=P(a)};
Rm=function(a){g.I.call(this);var b=this;this.componentId="";this.C=[];this.ra="";this.pageId=null;this.Ba=this.Y=-1;this.experimentIds=null;this.Z=this.G=0;this.Ga=1;this.timeoutMillis=0;this.logSource=a.logSource;this.CD=a.CD||function(){};
this.B=new Pm(a.logSource,a.pw);this.network=a.network;this.eB=a.eB||null;this.K=a.Nda||null;this.sessionIndex=a.sessionIndex||null;this.jD=a.jD||!1;this.logger=null;this.withCredentials=!a.vW;this.pw=a.pw||!1;this.N="undefined"!==typeof URLSearchParams&&!!(new URL(Qm())).searchParams&&!!(new URL(Qm())).searchParams.set;var c=S(new Jm,1,1);vfa(this.B,c);this.D=new g.Bm(1E4,3E5,.1);a=wfa(this,a.JV);this.j=new Sl(this.D.getValue(),a);this.qa=new Sl(6E5,a);this.jD||this.qa.start();this.pw||(document.addEventListener("visibilitychange",
function(){"hidden"===document.visibilityState&&b.cO()}),document.addEventListener("pagehide",this.cO.bind(this)))};
wfa=function(a,b){return a.N?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
Qm=function(){return"https://play.google.com/log?format=json&hasfast=true"};
Pm=function(a,b){this.pw=b=void 0===b?!1:b;this.B=this.locale=null;this.j=new Nm;Number.isInteger(a)&&this.j.hG(a);b||(this.locale=document.documentElement.getAttribute("lang"));vfa(this,new Jm)};
vfa=function(a,b){rk(a.j,Jm,1,b);vi(Cj(b,1))||S(b,1,1);a.pw||(b=Sm(a),wk(b,5)||Q(b,5,a.locale));a.B&&(b=Sm(a),g.qk(b,Fm,9)||rk(b,Fm,9,a.B))};
xfa=function(a,b){Gj(Tm(a),Gm,11)&&(a=Um(a),S(a,1,b))};
yfa=function(a,b){Gj(Tm(a),Gm,11)&&(a=Um(a),Dk(a,2,b))};
Tm=function(a){return g.qk(a.j,Jm,1)};
zfa=function(a){var b=void 0===b?sfa:b;var c=a.pw?void 0:vf();c?tfa(c,b).then(function(d){a.B=d;d=Sm(a);rk(d,Fm,9,a.B);return!0}).catch(function(){return!1}):Promise.resolve(!1)};
Sm=function(a){a=Tm(a);var b=g.qk(a,Gm,11);b||(b=new Gm,rk(a,Gm,11,b));return b};
Um=function(a){a=Sm(a);var b=g.qk(a,Dm,10);b||(b=new Dm,Dk(b,2,!1),rk(a,Dm,10,b));return b};
Vm=function(){this.E5="undefined"!==typeof AbortController};
Wm=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.Uy=this.eB=null};
Xm=function(a,b,c,d,e,f,h){a=void 0===a?-1:a;b=void 0===b?"":b;c=void 0===c?"":c;d=void 0===d?!1:d;e=void 0===e?"":e;g.I.call(this);this.logSource=a;this.componentId=b;f?b=f:(a=new Wm(a,"0"),a.componentId=b,g.O(this,a),""!==c&&(a.B=c),d&&(a.C=!0),e&&(a.j=e),h&&(a.network=h),b=a.build());this.j=b};
Ym=function(a){switch(a){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}};
Afa=function(a){switch(a){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS";
default:return""}};
Zm=function(a,b,c){c=void 0===c?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c};
g.$m=function(a){return(new Bfa).yk(a)};
Bfa=function(){};
an=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(Array.isArray(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),an(a,d[f],c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");e="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(f=b[d],"function"!=typeof f&&(c.push(e),Cfa(d,c),c.push(":"),an(a,f,c),e=","));c.push("}");return}}switch(typeof b){case "string":Cfa(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);}}};
Cfa=function(a,b){b.push('"',a.replace(Dfa,function(c){var d=Efa[c];d||(d="\\u"+(c.charCodeAt(0)|65536).toString(16).slice(1),Efa[c]=d);return d}),'"')};
Ffa=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"}};
bn=function(){};
cn=function(){};
dn=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};
en=function(a){return a?decodeURI(a):a};
g.gn=function(a,b){return b.match(fn)[a]||null};
g.hn=function(a){return en(g.gn(3,a))};
g.Gfa=function(a){a=a.match(fn);return dn(a[1],a[2],a[3],a[4])};
Hfa=function(a){a=a.match(fn);return dn(a[1],null,a[3],a[4])};
Hn=function(a){a=a.match(fn);return dn(null,null,null,null,a[5],a[6],a[7])};
Ifa=function(a){var b=a.indexOf("#");return 0>b?a:a.slice(0,b)};
In=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(0<=d){var f=a[c].substring(0,d);e=a[c].substring(d+1)}else f=a[c];b(f,e?Te(e):"")}}};
Jn=function(a,b){if(!b)return a;var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.slice(0,d),e,a.slice(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
Kn=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)Kn(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.Se(b)))};
Jfa=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)Kn(a[b],a[b+1],c);return c.join("&")};
g.Ln=function(a){var b=[],c;for(c in a)Kn(c,a[c],b);return b.join("&")};
Kfa=function(a,b){var c=2==arguments.length?Jfa(arguments[1],0):Jfa(arguments,1);return Jn(a,c)};
g.Mn=function(a,b){b=g.Ln(b);return Jn(a,b)};
Nn=function(a,b,c){c=null!=c?"="+g.Se(c):"";return Jn(a,b+c)};
Lfa=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1};
On=function(a,b){var c=a.search(Mfa),d=Lfa(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return Te(a.slice(d,-1!==e?e:0))};
Pn=function(a,b){for(var c=a.search(Mfa),d=0,e,f=[];0<=(e=Lfa(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));return f.join("").replace(Nfa,"$1")};
Ofa=function(a,b,c){return Nn(Pn(a,b),b,c)};
g.Qn=function(a){g.Dd.call(this);this.headers=new Map;this.N=a||null;this.C=!1;this.Ba=this.j=null;this.Y="";this.B=0;this.D="";this.G=this.Da=this.Z=this.Ga=!1;this.ra=0;this.qa=null;this.La="";this.K=!1};
Qfa=function(a,b,c,d,e,f,h){var l=new g.Qn;Pfa.push(l);b&&l.listen("complete",b);l.uJ("ready",l.l6);f&&(l.ra=Math.max(0,f));h&&(l.K=h);l.send(a,c,d,e)};
Sfa=function(a,b){a.C=!1;a.j&&(a.G=!0,a.j.abort(),a.G=!1);a.D=b;a.B=5;Rfa(a);Rn(a)};
Rfa=function(a){a.Ga||(a.Ga=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Tfa=function(a){if(a.C&&"undefined"!=typeof Sn)if(a.Ba[1]&&4==g.Tn(a)&&2==a.getStatus())a.getStatus();else if(a.Z&&4==g.Tn(a))g.Bg(a.TZ,0,a);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.getStatus();a.C=!1;try{if(Un(a))a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.B=6;try{var b=2<g.Tn(a)?a.j.statusText:""}catch(c){b=""}a.D=b+" ["+a.getStatus()+"]";Rfa(a)}}finally{Rn(a)}}};
Rn=function(a,b){if(a.j){Ufa(a);var c=a.j,d=a.Ba[0]?function(){}:null;
a.j=null;a.Ba=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Ufa=function(a){a.qa&&(g.Ta.clearTimeout(a.qa),a.qa=null)};
Un=function(a){var b=a.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}if(!c){if(b=0===b)a=g.gn(1,String(a.Y)),!a&&g.Ta.self&&g.Ta.self.location&&(a=g.Ta.self.location.protocol.slice(0,-1)),b=!Vfa.test(a?a.toLowerCase():"");c=b}return c};
g.Tn=function(a){return a.j?a.j.readyState:0};
g.Vn=function(a){try{return a.j?a.j.responseText:""}catch(b){return""}};
g.Wn=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.Wfa=function(a){var b={};a=(a.j&&2<=g.Tn(a)?a.j.getAllResponseHeaders()||"":"").split("\r\n");for(var c=0;c<a.length;c++)if(!g.ec(a[c])){var d=Rba(a[c]),e=d[0];d=d[1];if("string"===typeof d){d=d.trim();var f=b[e]||[];b[e]=f;f.push(d)}}return Yc(b,function(h){return h.join(", ")})};
g.Xn=function(a,b){return a.j?a.j.getResponseHeader(b):null};
Yn=function(){};
Zn=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()};
$n=function(a,b){this.logger=a;this.j=b;this.startMillis=Zn()};
Xfa=function(){};
Yfa=function(a,b,c){this.Xi=a;a=new Wm(c?1828:1654,"0");a.j="19";a.network=new Yn;if(b){var d=new Gl;b=xea(d,b,Vda);a.Uy=b}b=new Xm(c?1828:1654,"","",!1,"",a.build());b=new g.Dg(b);c?(this.clientError=new Gca(b),this.D=new Fca(b),this.G=new Eca(b),this.C=new Hca(b),this.B=new Ica(b),this.j=new Jca(b)):(this.clientError=new Mca(b),this.D=new Lca(b),this.G=new Kca(b),this.C=new Nca(b),this.B=new Oca(b),this.j=new Pca(b))};
Zfa=function(a,b){try{return globalThis.sessionStorage.setItem(a,b),!0}catch(c){return!1}};
ao=function(a,b,c,d){b=void 0===b?0:b;c=void 0===c?a.length:c;var e=0;for(d&&(e=ao(d));b<c;b++)d="string"===typeof a?a.charCodeAt(b):a[b],e=$fa(31,e)+d|0;return e};
aga=function(a,b){return[ao(a,0,a.length>>1,b),ao(a,a.length>>1)]};
bo=function(a,b,c){c=void 0===c?[]:c;this.maxItems=a;this.j=void 0===b?0:b;this.B=c};
cga=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new bo(a);var c=b.split(",");if(2>c.length)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new bo(a);b=c.slice(1);1===b.length&&""===b[0]&&(b=[]);c=Number(c[0]);return isNaN(c)||0>c||c>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new bo(a)):new bo(a,c,b)};
dga=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=cga(a))};
gga=function(a,b,c,d,e){if(a.index){var f=new $n(a.logger,"W"),h=(4-(co.length+c.length)%4)%4,l=new Uint8Array(4+h+co.length+4+c.length),m=new DataView(l.buffer),n=0;m.setUint32(n,4294967295*Math.random());n=n+4+h;l.set(co,n);n+=co.length;m.setUint32(n,e);l.set(c,n+4);ega(l,d);b=fga(null!=b?b:[]);a.index.wh(b,function(p){globalThis.sessionStorage.removeItem(p)})?Zfa(b,g.Gg(l))?(a.logger.HE("s"),f.done()):a.logger.HE("t"):a.logger.HE("i")}else a.logger.HE("u")};
fga=function(a){var b=g.u(aga(a,co));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)};
ega=function(a,b){var c=aga(b);a=new Uint32Array(a.buffer);b=a[0];var d=g.u(c);c=d.next().value;d=d.next().value;for(var e=1;e<a.length;e+=2){for(var f=b,h=e,l=c,m=d,n=0;22>n;n++)h=h>>>8|h<<24,h+=f|0,h^=l+38293,f=f<<3|f>>>29,f^=h,m=m>>>8|m<<24,m+=l|0,m^=n+38293,l=l<<3|l>>>29,l^=m;f=[f,h];a[e]^=f[0];e+1<a.length&&(a[e+1]^=f[1])}};
jga=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=hga(a);for(var c=2654435769,d=2654435769,e=314159265,f=a.length,h=f,l=0;12<=h;h-=12,l+=12)c+=eo(a,l),d+=eo(a,l+4),e+=eo(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 iga.toString(e)};
hga=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return b};
eo=function(a,b){return a[b+0]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};
go=function(a,b,c){this.logger=a;this.event=b;if(void 0===c||c)this.startMillis=fo()};
kga=function(){};
ho=function(a,b,c){g.I.call(this);this.B=b;this.D=new Xm(1828,"","",!1,"",void 0,new Yn);this.j=new g.Dg(this.D);c&&(this.j.C=1E5,b=this.j,b.flushInterval=3E4,b.j.setInterval(3E4));this.Z=new zca(this.j);this.Y=new Cca(this.j);this.qa=new Dca(this.j);this.N=new yca(this.j);this.G=new Aca(this.j);this.K=new Bca(this.j);this.C=jga(a);(new xca(this.j)).j.Ji("/client_streamz/bg/fic",this.B);g.O(this,this.D);g.O(this,this.j)};
io=function(a,b,c){a.G.j.Ji("/client_streamz/bg/fcc",c,a.B);a.K.rg(b,c,a.B)};
fo=function(){var a,b,c;return null!=(c=null==(a=globalThis.performance)?void 0:null==(b=a.now)?void 0:b.call(a))?c:Date.now()};
jo=function(a){this.ea=P(a)};
ko=function(a){this.ea=P(a)};
lo=function(a){this.ea=P(a,0,lo.messageId)};
g.mo=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};
no=function(a){function b(t,v,w){Promise.resolve().then(function(){q.done();d.j&&d.Tg.Im();p.resolve({Z5:t,Tca:v,mpb:w})})}
function c(t,v,w,A,C){l&&d.Tg.UY(t,v,w,null!=A?A:!1,null!=C?C:!1)}
g.I.call(this);var d=this;this.j=!1;if(a.challenge instanceof lo){var e=Bk(a.challenge,4);var f=Bk(a.challenge,5)}else e=a.program,f=a.globalName;var h=Math.random(),l=.1>h;null!=a.j6&&(l=h<a.j6);l&&(this.j=!0);var m=new g.I;this.addOnDisposeCallback(function(){d.B.then(function(t){t=t.Tca;d.Tg.Im();null==t||t();m.dispose()})});
if(!1!==a.I_)if(a.Tg)this.Tg=a.Tg;else{var n;g.O(m,this.Tg=new ho(f,null!=(n=a.iZ)?n:"_",this.j))}else this.Tg=new kga;var p=new g.mo;this.B=p.promise;var q=new go(this.Tg,0,!1);g.Ta[f]?g.Ta[f].a||(this.Tg.wJ(2,""),this.Tg.Im()):(this.Tg.wJ(1,""),this.Tg.Im());try{var r=g.Ta[f].a;q.start();this.C=g.u(r(e,b,!0,a.jqb,c)).next().value;this.gS=p.promise.then(function(){})}catch(t){throw this.Tg.wJ(4,t.message),this.Tg.Im(),t;
}};
lga=function(a){if(!a)return null;a=wk(a,4);return null===a||void 0===a?null:Yd(a)};
oo=function(){this.B={};this.j=null};
po=function(){oo.instance||(oo.instance=new oo);return oo.instance};
nga=function(a){var b=po();return mga(b,g.qk(a,jo,1),g.qk(a,ko,2),Bk(a,3))};
mga=function(a,b,c,d){if(!b&&!c)return Promise.resolve();if(!d)return oga(b,c);var e;(e=a.B)[d]||(e[d]=new Promise(function(f,h){oga(b,c).then(function(){a.j=d;f()},function(l){delete a.B[d];
h(l)})}));
return a.B[d]};
oga=function(a,b){return b?pga(b):a?qga(a):Promise.resolve()};
pga=function(a){return new Promise(function(b,c){var d=g.yf("SCRIPT"),e=lga(a);g.Re(d,e);d.onload=function(){g.Ff(d);b()};
d.onerror=function(){g.Ff(d);c(Error("EWLS"))};
(g.lf("HEAD")[0]||document.documentElement).appendChild(d)})};
qga=function(a){return new Promise(function(b){var c=g.yf("SCRIPT");if(a){var d=wk(a,6);d=null===d||void 0===d?null:Gba(d)}else d=null;c.textContent=ve(d);Pe(c);(g.lf("HEAD")[0]||document.documentElement).appendChild(c);g.Ff(c);b()})};
sga=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a[c]+97;if(g.Ta.TextDecoder)b=(new TextDecoder).decode(b);else if(8192>=b.length)b=String.fromCharCode.apply(null,b);else{a="";for(c=0;c<b.length;c+=8192)a+=String.fromCharCode.apply(null,Array.prototype.slice.call(b,c,c+8192));b=a}return rga(b)};
qo=function(a){this.ea=P(a)};
ro=function(a){this.ea=P(a)};
so=function(a){this.ea=P(a)};
to=function(a,b,c){this.client=a;this.Xi=b;this.j=c};
uo=function(a){this.ea=P(a)};
vo=function(a,b,c){this.j=a;this.C=b;this.B=c};
wo=function(a,b,c){c=void 0===c?{}:c;this.sca=a;this.j=c;this.B=b};
xo=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.j=d;this.B=e};
tga=function(a,b,c){c=void 0===c?{}:c;return new vo(b,a,c)};
yo=function(a){this.ea=P(a)};
zo=function(a){this.ea=P(a)};
Ao=function(a){this.ea=P(a)};
Bo=function(a){this.ea=P(a)};
Co=function(a,b){this.N=a.K9;this.Z=b;this.j=a.xhr;this.C=[];this.G=[];this.K=[];this.D=[];this.B=[];this.N&&uga(this)};
xga=function(a,b){g.td(a.j,"complete",function(){if(Un(a.j)){var c=g.Vn(a.j);if(b&&"text/plain"===a.j.getResponseHeader("Content-Type")){if(!atob)throw Error("Cannot decode Base64 response");c=atob(c)}try{var d=a.Z(c)}catch(h){Do(a,new Zm(13,"Error when deserializing response data; error: "+h+(", response: "+c)));return}c=Ym(a.j.getStatus());Eo(a,Fo(a));0==c?vga(a,d):Do(a,new Zm(c,"Xhr succeeded but the status code is not 200"))}else{c=g.Vn(a.j);d=Fo(a);if(c){var e=wga(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;Eo(a,d);Do(a,new Zm(c,f,e))}})};
uga=function(a){a.N.on("data",function(b){if("1"in b){var c=b["1"];try{var d=a.Z(c)}catch(e){Do(a,new Zm(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&vga(a,d)}if("2"in b)for(b=wga(a,b["2"]),c=0;c<a.K.length;c++)a.K[c](b)});
a.N.on("end",function(){Eo(a,Fo(a));for(var b=0;b<a.D.length;b++)a.D[b]()});
a.N.on("error",function(){if(0!=a.B.length){var b=a.j.B;0!==b||Un(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=Ym(c);break;default:d=14}Eo(a,Fo(a));b=Ffa(b)+", error: "+a.j.getLastError();-1!=c&&(b+=", http status code: "+c);Do(a,new Zm(d,b))}})};
Fo=function(a){var b={},c=g.Wfa(a.j);Object.keys(c).forEach(function(d){b[d]=c[d]});
return b};
wga=function(a,b){var c=2,d={};try{var e=yga(b);c=yk(e,1);var f=e.getMessage();Bea(e,Ao).length&&(d["grpc-web-status-details-bin"]=b)}catch(h){a.j&&404===a.j.getStatus()?(c=5,f="Not Found: "+String(a.j.Y)):(c=14,f="Unable to parse RpcStatus: "+h)}return{code:c,details:f,metadata:d}};
Go=function(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)};
vga=function(a,b){for(var c=0;c<a.C.length;c++)a.C[c](b)};
Eo=function(a,b){for(var c=0;c<a.G.length;c++)a.G[c](b)};
Do=function(a,b){for(var c=0;c<a.B.length;c++)a.B[c](b)};
g.Ho=function(a){this.K=a.Yda||null;this.G=a.F0||!1;this.B=void 0};
Io=function(a,b){g.Dd.call(this);this.ra=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.qa="GET";this.Y="";this.j=!1;this.N=this.C=this.D=null};
zga=function(a){a.C.read().then(a.b8.bind(a)).catch(a.UI.bind(a))};
Ko=function(a){a.readyState=4;a.D=null;a.C=null;a.N=null;Jo(a)};
Jo=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
g.xp=function(a){this.j=this.Z=this.G="";this.D=null;this.K=this.C="";this.N=!1;var b;a instanceof g.xp?(this.N=a.N,g.yp(this,a.G),this.Z=a.Z,g.zp(this,a.j),g.Ap(this,a.D),this.C=a.C,Bp(this,a.B.clone()),this.K=a.K):a&&(b=String(a).match(fn))?(this.N=!1,g.yp(this,b[1]||"",!0),this.Z=Cp(b[2]||""),g.zp(this,b[3]||"",!0),g.Ap(this,b[4]),this.C=Cp(b[5]||"",!0),Bp(this,b[6]||"",!0),this.K=Cp(b[7]||"")):(this.N=!1,this.B=new Dp(null,this.N))};
g.yp=function(a,b,c){a.G=c?Cp(b,!0):b;a.G&&(a.G=a.G.replace(/:$/,""))};
g.zp=function(a,b,c){a.j=c?Cp(b,!0):b};
g.Ap=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null};
Bp=function(a,b,c){b instanceof Dp?(a.B=b,Aga(a.B,a.N)):(c||(b=Ep(b,Bga)),a.B=new Dp(b,a.N))};
g.Fp=function(a,b,c){a.B.set(b,c)};
g.Gp=function(a){return a instanceof g.xp?a.clone():new g.xp(a)};
Cp=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
Ep=function(a,b,c){return"string"===typeof a?(a=encodeURI(a).replace(b,Cga),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
Cga=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
Dp=function(a,b){this.B=this.j=null;this.C=a||null;this.D=!!b};
Hp=function(a){a.j||(a.j=new Map,a.B=0,a.C&&In(a.C,function(b,c){a.add(Te(b),c)}))};
Dga=function(a,b){Hp(a);b=Ip(a,b);return a.j.has(b)};
g.Ega=function(a,b,c){a.remove(b);0<c.length&&(a.C=null,a.j.set(Ip(a,b),g.Lb(c)),a.B=a.B+c.length)};
Ip=function(a,b){b=String(b);a.D&&(b=b.toLowerCase());return b};
Aga=function(a,b){b&&!a.D&&(Hp(a),a.C=null,a.j.forEach(function(c,d){var e=d.toLowerCase();d!=e&&(this.remove(d),g.Ega(this,e,c))},a));
a.D=b};
g.Fga=function(a){var b="";g.Vc(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b};
g.Jp=function(a,b,c){if(g.id(c))return a;c=g.Fga(c);if("string"===typeof a)return Nn(a,g.Se(b),c);g.Fp(a,b,c);return a};
g.Kp=function(a){g.I.call(this);this.B=a;this.j={}};
Gga=function(a,b,c,d,e,f){if(Array.isArray(c))for(var h=0;h<c.length;h++)Gga(a,b,c[h],d,e,f);else{b=sd(b,c,d||a.handleEvent,e,f||a.B||a);if(!b)return a;a.j[b.key]=b}return a};
Hga=function(){this.C=!0;this.B=0;this.j=""};
Iga=function(a,b,c){a.C=!1;throw Error("The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b);};
Lp=function(){this.K=null;this.N=[];this.D=this.B=this.C=this.j=this.Y=0;this.G=null;this.Z=0};
Mp=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);};
Np=function(){this.j=null;this.B=0;this.C=new Hga;this.D=new Lp};
Jga=function(a,b,c){a.j="The stream is broken @"+a.B+". Error: "+c+". With input:\n"+b;throw Error(a.j);};
Op=function(a){return"\r"==a||"\n"==a||" "==a||"\t"==a};
Pp=function(a){this.Y=null;this.K=[];this.D="";this.ra=[];this.C=this.B=0;this.N=!1;this.Z=0;this.Ba=/[\\"]/g;this.j=this.G=0;this.qa=!(!a||!a.I6)};
Qp=function(a,b,c){a.G=3;a.Y="The stream is broken @"+a.C+"/"+c+". With input:\n"+b;throw Error(a.Y);};
Rp=function(){this.G=this.C=null;this.B=this.j=0;this.D=[];this.K=!1};
Kga=function(a){var b=g.Xn(a,"Content-Type");if(!b)return null;b=b.toLowerCase();return b.startsWith("application/json")?b.startsWith("application/json+protobuf")?new Rp:new Pp:b.startsWith("application/x-protobuf")?(a=g.Xn(a,"Content-Transfer-Encoding"))?"base64"==a.toLowerCase()?new Np:null:new Lp:null};
Sp=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.Kp(this);this.Z.listen(this.j,"readystatechange",this.qa)};
Tp=function(a,b){a.D!=b&&(a.D=b,a.N&&a.N())};
Up=function(a){a.Z.removeAll();if(a.j){var b=a.j;a.j=null;b.abort();b.dispose()}};
Lga=function(a){a=this.C=a;var b=(0,g.gb)(this.o$,this);a.G=b;a=this.C;b=(0,g.gb)(this.dba,this);a.N=b;this.B={};this.j={}};
Mga=function(a,b){for(var c={},d=0;d<a.length;c={eZ:void 0},d++)c.eZ=a[d],b.forEach(function(e){return function(f){try{f(e.eZ)}catch(h){}}}(c))};
Vp=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]=[]};
Nga=function(){var a={format:"jspb"};a=void 0===a?{}:a;this.G=a.aqb||g.Xa("suppressCorsPreflight",a)||!1;this.B=a.withCredentials||g.Xa("withCredentials",a)||!1;this.D=a.Zpb||[];this.K=a.fqb||[];this.j=a.kqb;this.C=a.hqb||!1};
Wp=function(a,b,c,d,e){var f=b.substr(0,b.length-e.name.length);return Oga(function(h){return new Pga(function(l,m){var n={},p=Qga(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.yI(),t=n;t=void 0===t?{}:t;l(new wo(q,r,t))})})},a.K).call(a,tga(e,c,d)).then(function(h){return h.sca})};
Qga=function(a,b,c){var d=b.yI(),e=b.getMetadata(),f=Rga(a,!0);a=Sga(a,e,f,c+d.getName());c=Tga(f,d.B,!1);xga(c,"base64"==e["X-Goog-Encode-Response-If-Executable"]);b=d.j(b.j);f.send(a,"POST",b);return c};
Rga=function(a,b){b=a.C&&!b;return a.j||b?new g.Qn(new g.Ho({Yda:a.j,F0:b})):new g.Qn};
Sga=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";b["X-User-Agent"]="grpc-web-javascript/0.1";var e="Authorization"in b?(e=b.Authorization)?!!{SAPISIDHASH:!0,APISIDHASH:!0}[e.split(" ")[0]]:!1:!1;if(e||a.B)c.K=!0;if(a.G)d=g.Jp(d,"$httpHeaders",b);else for(var f in b)c.headers.set(f,b[f]);return d};
Tga=function(a,b,c){if(c){a.isActive();c=new Sp(a);var d=new Lga(c)}return new Co({xhr:a,K9:d},b)};
Oga=function(a,b){var c=a;b.forEach(function(d){var e=c;c=function(f){return d.intercept(f,e)}});
return c};
Xp=function(){this.j=new Nga;this.B="https://jnn-pa.googleapis.com".replace(/\/+$/,"")};
Yp=function(a){g.I.call(this);this.owner=a;this.signals=new Set;a&&g.O(a,this)};
Zp=function(a,b,c){var d=Uga;a.signals.has(b);d({signal:b,data:c})};
$p=function(a){g.I.call(this);this.PV=a;this.slots=new Map;this.mB=new Set;this.QX=!1};
Vga=function(a,b){a.Ma()||a.slots.set(b,{slotId:b,slot:void 0,sW:function(){return a.slots.delete(b)}})};
Wga=function(a,b){return new Promise(function(c){aq(function(){a.PV&&(a.EY=b,a.QX=!0);for(var d=g.u(a.slots.values()),e=d.next();!e.done;e=d.next()){var f=e.value;e=f.slotId;f=f.slot;try{f(b,{signal:a,slotId:e})}catch(h){Tf(h)}}d=g.u(a.mB);for(e=d.next();!e.done;e=d.next())e.value.resolve(b);a.mB.clear();c()})})};
Uga=function(){var a=g.Ia.apply(0,arguments);0===a.length?Promise.resolve():1===a.length?(a=a[0],Wga(a.signal,a.data)):Promise.all(a.map(function(b){return Wga(b.signal,b.data)})).then()};
aq=function(a){bq.push(a);Xga()};
Xga=function(){var a,b;g.H(function(c){switch(c.j){case 1:if(cq)return c.return();g.Ba(c,2,3);cq=!0;a=Yga(0);case 5:if(!(a<bq.length)){c.Ia(3);break}return g.z(c,Promise.resolve(),8);case 8:a=Yga(a);c.Ia(5);break;case 3:g.Ea(c);bq.length=0;cq=!1;g.Fa(c,0);break;case 2:b=g.Da(c),Tf(b),c.Ia(3)}})};
Yga=function(a){for(var b=a+100;a<b&&a<bq.length;)try{bq[a++]()}catch(c){Tf(c)}return a};
Zga=function(a,b){if(a.Ma())b();else{var c=dq.get(a);if(c)c.push(b);else{var d=[b];dq.set(a,d);a.addOnDisposeCallback(function(){for(var e=g.u([].concat(g.qa(d))),f=e.next();!f.done;f=e.next())f=f.value,f();dq.delete(a)})}}};
eq=function(a,b,c){g.I.call(this);this.N=a;this.milliseconds=b;this.Cb=c;this.state=this.D=0};
$ga=function(a,b){if(b)if("function"===typeof b)var c=b;else{c=b.eK;var d=b.qQ}else c=function(){};
return new eq(!1,a,{eK:c,qQ:d})};
fq=function(a){xb.call(this,a);this.name="TimerCancelledError"};
gq=function(a){xb.call(this,a);this.name="TimerDisposedError"};
bha=function(a){return aha?Array.from(aha.encode(a)):g.Fg(a)};
cha=function(a){var b=new Xp,c={"X-Goog-Api-Key":"AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw"};return new to(b,a,function(){return c})};
hq=function(a,b){if(a.EW)return a.EW;if(void 0===a.Av)return[];b=new $n(b,"c");var c=bha(a.Av);b.done();return a.EW=c};
dha=function(a,b,c){b=new $n(c,b);a=g.Gg(a,2);b.done();return a};
iq=function(a,b,c){b.vJ(a.code);null==c||c(a)};
jq=function(a,b,c){var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;b+=":";null!=c||(c=Error());if(c instanceof Error){this.message=b+c.message;var e;this.stack=null!=(e=c.stack)?e:""}else this.message=b+String(c),this.stack="";Object.setPrototypeOf(this,jq.prototype)};
kq=function(a){g.I.call(this);var b=this;this.logger=a;this.D=new g.mo;this.addOnDisposeCallback(function(){return b.D.reject()})};
lq=function(a,b){b=$ga(b,function(){a.D.resolve()});
g.O(a,b);b.start()};
mq=function(a,b,c,d,e,f,h){kq.call(this,a);this.Z=c;this.qa=d;this.N=f;this.onError=h;this.C="m";this.B="x";this.Y=0;g.O(this,b);lq(this,e);this.K=Math.floor((Date.now()+e)/1E3)};
nq=function(a,b,c){kq.call(this,a);this.K=b;this.C="f";this.B="z";lq(this,c)};
oq=function(a,b,c){kq.call(this,a);this.K=b;this.C="w";this.B="z";lq(this,c)};
pq=function(a,b){kq.call(this,a);this.error=b;this.C="e";this.B="y"};
eha=function(a,b){b=(b(a.error.message)+":"+b(a.error.stack)).substring(0,2048);var c=b.length+1;return new Uint8Array([42,c&127|128,c>>7,a.error.code].concat(bha(b)))};
qq=function(a,b,c){kq.call(this,a);this.K=b;this.clientState=c;this.C="S";this.B="q"};
rq=function(a){g.I.call(this);var b=this;this.j=void 0;this.D=new g.mo;this.state=1;this.C=0;this.cache=this.B=void 0;this.rz=a.rz;this.DQ=a.DQ;this.onError=a.onError;var c;this.onEvent=null!=(c=a.onEvent)?c:function(){};
this.logger=a.Apb?new Xfa:new Yfa(a.Xi,a.Uy,a.Oda);this.addOnDisposeCallback(function(){b.j&&(b.j.dispose(),b.j=void 0)})};
fha=function(a,b,c,d){if(!d)throw new jq(4,"PMD:Undefined");d=d($g(Oj(b,1)));if(!(d instanceof Function))throw new jq(16,"APF:Failed");return new mq(a.logger,c,d,zk(b,3),1E3*zk(b,2),function(){return a.cache},a.onError)};
hha=function(a){var b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,G,L;return g.H(function(M){switch(M.j){case 1:b=void 0,c=a.isReady()?6E4:1E3,d=new g.Bm(c,6E5,.25,2),e={},f=1;case 2:if(!(2>=f)){M.Ia(4);break}g.Ba(M,5);a.state=3;a.C=f-1;return g.z(M,a.B&&1===f?a.B:a.uD(f),7);case 7:return h=M.B,a.B=void 0,a.state=4,l=new $n(a.logger,"b"),g.z(M,nga(h),8);case 8:return a.state=5,a.onEvent(1),e.hN=3,m=new no({challenge:h}),n=sq(a,12E4).then(function(ea){return function(){a.onEvent(ea.hN);return Promise.reject(new jq(15,
"MDA:Timeout"))}}(e)),g.z(M,Promise.race([m.gS,
n]),9);case 9:return a.onEvent(2),p=[],a.onEvent(4),e.hN=6,g.z(M,Promise.race([m.snapshot({M1:p}),n]),10);case 10:return q=M.B,a.onEvent(5),r=g.u(p),v=t=r.next().value,l.done(),a.state=6,g.z(M,gha(a,a.logger.OP("g",f,a.rz.MW(q)),new jq(10,"BWB:Timeout")),11);case 11:w=M.B;a.state=7;A=new $n(a.logger,"i");if(Bk(w,4)){m.dispose();var R=new oq(a.logger,Bk(w,4),1E3*zk(w,2))}else zk(w,3)?R=fha(a,w,m,v):(m.dispose(),R=new nq(a.logger,$g(Oj(w,1)),1E3*zk(w,2)));C=R;A.done();G=F=void 0;null==(G=(F=a).DQ)||
G.call(F,$g(Oj(w,1)));a.state=8;return M.return(C);case 5:L=g.Da(M);b=L instanceof jq?L:L instanceof gq?new jq(20,"WTO:Disposed",L):L instanceof Zm?new jq(11,"EBH:Error",L):new jq(12,"BSO:Unknown",L);iq(b,a.logger,a.onError);a:{if(L instanceof Zm)switch(L.code){case 2:case 13:case 14:case 4:R=!0;break a;default:R=!1;break a}R=L instanceof jq?20!==L.code:!0}if(!R)throw b;return g.z(M,sq(a,d.getValue()),12);case 12:g.Cm(d);case 3:e={hN:void 0};f++;M.Ia(2);break;case 4:throw b;}})};
sq=function(a,b){b=$ga(b);g.O(a,b);b.start();return b.Z};
gha=function(a,b,c){return Promise.race([b,sq(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.vJ(13);e.Ia(0);break}a.logger.vJ(14);b=new pq(a.logger,c instanceof jq?c:new jq(14,"SOM:Init",c instanceof Error?c:Error(String(c))));case 6:return d=void 0,null==(d=a.j)||d.dispose(),a.j=b,a.D.resolve(),g.Ba(e,8),g.z(e,a.j.D.promise,10);case 10:g.Ca(e,1);break;case 8:g.Da(e),e.Ia(0)}})};
jha=function(a,b){b=Object.assign({},b);var c=22;try{b.Py&&!a.cache&&(a.cache=new dga(Math.min(b.Py.p9,150),a.logger));c=23;var d;if(!a.isReady()&&(null==(d=b.Py)?0:d.a6)){var e;if(null==(e=a.cache))var f=void 0;else a:{var h=hq(b,a.logger),l=b.Py.OV;if(e.index){var m=new $n(e.logger,"R"),n=fga(null!=h?h:[]),p=globalThis.sessionStorage.getItem(n);if(p){try{var q=Ig(p);ega(q,l)}catch(A){globalThis.sessionStorage.removeItem(n);e.logger.Fw("c");f=void 0;break a}for(d=4;7>d&&0===q[d];)d++;for(h=0;h<co.length;h++)if(q[d++]!==
co[h]){globalThis.sessionStorage.removeItem(n);e.logger.Fw("d");f=void 0;break a}var r=(new DataView(q.buffer)).getUint32(d);if(Math.floor(Date.now()/1E3)>=r)globalThis.sessionStorage.removeItem(n),e.logger.Fw("e");else{var t=new Uint8Array(q.buffer,d+4);m.done();e.logger.Fw("a");f=t;break a}}else e.logger.Fw("m")}else e.logger.Fw("u");f=void 0}if(e=f)return dha(e,"a",a.logger)}}catch(A){iq(new jq(c,22===c?"GBJ:init":"RXO:read",A),a.logger,a.onError)}var v;c=null!=(v=a.j)?v:new qq(a.logger,a.C,a.state);
v=new $n(a.logger,c.C);try{if(a.Ma())throw new jq(21,"BNT:disposed");return c.G(b)}catch(A){v=new $n(a.logger,"e");var w=A instanceof jq?A:new jq(5,"TVD:error",A);iq(w,a.logger,a.onError);c=new pq(a.logger,w);return c.G(b)}finally{v.done()}};
kha=function(a){var b={};g.$b(a,function(c){var d=c.event,e=b[d];b.hasOwnProperty(d)?null!==e&&(c.j(e)||(b[d]=null)):b[d]=c});
uaa(a,function(c){return null===b[c.event]})};
rr=function(){this.Ce=0;this.j=!1;this.B=-1;this.lw=!1;this.xk=0};
sr=function(){this.B=null;this.j=!1};
tr=function(a){sr.call(this);this.D=a};
ur=function(){sr.call(this)};
vr=function(){sr.call(this)};
wr=function(){this.j={};this.B=!0;this.C={}};
xr=function(a,b,c){a.j[b]||(a.j[b]=new tr(c));return a.j[b]};
lha=function(a){a.j.queryid||(a.j.queryid=new vr)};
yr=function(a,b,c){(a=a.j[b])&&a.C(c)};
zr=function(a,b){if(g.ed(a.C,b))return a.C[b];if(a=a.j[b])return a.getValue()};
Ar=function(a){var b={},c=g.Xc(a.j,function(d){return d.j});
g.Vc(c,function(d,e){d=void 0!==a.C[e]?String(a.C[e]):d.j&&null!==d.B?String(d.B):"";0<d.length&&(b[e]=d)},a);
return b};
mha=function(a){a=Ar(a);var b=[];g.Vc(a,function(c,d){d in Object.prototype||"undefined"!=typeof c&&b.push([d,":",c].join(""))});
return b};
oha=function(a){xr(a,"od",nha);xr(a,"opac",Br).j=!0;xr(a,"sbeos",Br).j=!0;xr(a,"prf",Br).j=!0;xr(a,"mwt",Br).j=!0;xr(a,"iogeo",Br)};
pha=function(){this.j=this.Lt=null};
Cr=function(){};
Er=function(){if(!Dr())throw Error();};
Dr=function(){return!(!Fr||!Fr.performance)};
Gr=function(a){return a?a.passive&&qha()?a:a.capture||!1:!1};
Hr=function(a,b,c,d){return a.addEventListener?(a.addEventListener(b,c,Gr(d)),!0):!1};
Ir=function(a){return a.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""]||0};
rha=function(){};
sha=function(){return(rc||tc)&&wc?wc.mobile:!Jr()&&(yc("iPod")||yc("iPhone")||yc("Android")||yc("IEMobile"))};
Jr=function(){return(rc||tc)&&wc?!wc.mobile&&(yc("iPad")||yc("Android")||yc("Silk")):yc("iPad")||yc("Android")&&!yc("Mobile")||yc("Silk")};
Kr=function(a){try{return!!a&&null!=a.location.href&&Lc(a,"foo")}catch(b){return!1}};
Lr=function(a,b){if(a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)};
uha=function(){var a=[];Lr(tha,function(b){a.push(b)});
return a};
vha=function(a){var b,c;return null!=(c=null==(b=/https?:\/\/[^\/]+/.exec(a))?void 0:b[0])?c:""};
yha=function(){var a=wha("IFRAME"),b={};g.$b(xha(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b};
wha=function(a,b){b=void 0===b?document:b;return b.createElement(String(a).toLowerCase())};
zha=function(a){for(var b=a;a&&a!=a.parent;)a=a.parent,Kr(a)&&(b=a);return b};
Dha=function(a){a=a||Mr();for(var b=new Aha(g.Ta.location.href,!1),c=null,d=a.length-1,e=d;0<=e;--e){var f=a[e];!c&&Bha.test(f.url)&&(c=f);if(f.url&&!f.yP){b=f;break}}e=null;f=a.length&&a[d].url;0!=b.depth&&f&&(e=a[d]);return new Cha(b,e,c)};
Mr=function(){var a=g.Ta,b=[],c=null;do{var d=a;if(Kr(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new Aha(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.Ta;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.yP=!0);return b};
Cha=function(a,b,c){this.j=a;this.B=b;this.C=c};
Aha=function(a,b){this.url=a;this.yP=!!b;this.depth=null};
Nr=function(){this.C="&";this.B={};this.D=0;this.j=[]};
Or=function(a,b){var c={};c[a]=b;return[c]};
Eha=function(a,b,c,d,e){var f=[];Lr(a,function(h,l){(h=Pr(h,b,c,d,e))&&f.push(l+"="+h)});
return f.join(b)};
Pr=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],h=0;h<a.length;h++)f.push(Pr(a[h],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?encodeURIComponent(Eha(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))};
Fha=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};
Qr=function(a,b){this.j=a;this.depth=b};
Hha=function(){function a(l,m){return null==l?m:l}
var b=Mr(),c=Math.max(b.length-1,0),d=Dha(b);b=d.j;var e=d.B,f=d.C,h=[];f&&h.push(new Qr([f.url,f.yP?2:0],a(f.depth,1)));e&&e!=f&&h.push(new Qr([e.url,2],0));b.url&&b!=f&&h.push(new Qr([b.url,0],a(b.depth,c)));d=g.Rr(h,function(l,m){return h.slice(0,h.length-m)});
!b.url||(f||e)&&b!=f||(e=vha(b.url))&&d.push([new Qr([e,1],a(b.depth,c))]);d.push([]);return g.Rr(d,function(l){return Gha(c,l)})};
Gha=function(a,b){g.Sr(b,function(e){return 0<=e.depth});
var c=Tr(b,function(e,f){return Math.max(e,f.depth)},-1),d=zaa(c+2);
d[0]=a;g.$b(b,function(e){return d[e.depth+1]=e.j});
return d};
Iha=function(){var a=void 0===a?Hha():a;return a.map(function(b){return Pr(b)})};
Jha=function(a){var b=!1;b=void 0===b?!1:b;Fr.google_image_requests||(Fr.google_image_requests=[]);var c=wha("IMG",Fr.document);b&&(c.attributionSrc="");c.src=a;Fr.google_image_requests.push(c)};
Ur=function(a){var b="dh";if(a.dh&&a.hasOwnProperty(b))return a.dh;var c=new a;a.dh=c;a.hasOwnProperty(b);return c};
Vr=function(){this.B=new rha;this.j=Dr()?new Er:new Cr};
Kha=function(){Wr();var a=Fr.document;return!!(a&&a.body&&a.body.getBoundingClientRect&&"function"===typeof Fr.setInterval&&"function"===typeof Fr.clearInterval&&"function"===typeof Fr.setTimeout&&"function"===typeof Fr.clearTimeout)};
Lha=function(){Wr();return Iha()};
Mha=function(){};
Wr=function(){var a=Ur(Mha);if(!a.j){if(!Fr)throw Error("Context has not been set and window is undefined.");a.j=Ur(Vr)}return a.j};
Xr=function(a){this.ea=P(a)};
Nha=function(a){this.C=a;this.j=-1;this.B=this.D=0};
Yr=function(a,b){return function(){var c=g.Ia.apply(0,arguments);if(-1<a.j)return b.apply(null,g.qa(c));try{return a.j=a.C.j.now(),b.apply(null,g.qa(c))}finally{a.D+=a.C.j.now()-a.j,a.j=-1,a.B+=1}}};
Oha=function(a,b){this.B=a;this.C=b;this.j=new Nha(a)};
Pha=function(){this.j={}};
Rha=function(){var a=Zr().flags,b=Qha;a=a.j[b.key];if("proto"===b.valueType){try{var c=JSON.parse(a);if(Array.isArray(c))return c}catch(d){}return b.defaultValue}return typeof a===typeof b.defaultValue?a:b.defaultValue};
Vha=function(){this.C=void 0;this.B=this.K=0;this.G=-1;this.Gc=new wr;xr(this.Gc,"mv",Sha).j=!0;xr(this.Gc,"omid",Br);xr(this.Gc,"epoh",Br).j=!0;xr(this.Gc,"epph",Br).j=!0;xr(this.Gc,"umt",Br).j=!0;xr(this.Gc,"phel",Br).j=!0;xr(this.Gc,"phell",Br).j=!0;xr(this.Gc,"oseid",Tha).j=!0;var a=this.Gc;a.j.sloi||(a.j.sloi=new ur);a.j.sloi.j=!0;xr(this.Gc,"mm",$r);xr(this.Gc,"ovms",Uha).j=!0;xr(this.Gc,"xdi",Br).j=!0;xr(this.Gc,"amp",Br).j=!0;xr(this.Gc,"prf",Br).j=!0;xr(this.Gc,"gtx",Br).j=!0;xr(this.Gc,
"mvp_lv",Br).j=!0;xr(this.Gc,"ssmol",Br).j=!0;xr(this.Gc,"fmd",Br).j=!0;xr(this.Gc,"gen204simple",Br);this.j=new Oha(Wr(),this.Gc);this.D=!1;this.flags=new Pha};
Zr=function(){return Ur(Vha)};
Wha=function(a,b,c,d){if(Math.random()<(d||a.j))try{if(c instanceof Nr)var e=c;else e=new Nr,Lr(c,function(h,l){var m=e,n=m.D++;h=Or(l,h);m.j.push(n);m.B[n]=h});
var f=e.Oe(a.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");f&&(Wr(),Jha(f))}catch(h){}};
Xha=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=c};
Yha=function(){var a=void 0===a?g.Ta:a;return(a=a.performance)&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):g.kb()};
Zha=function(){var a=void 0===a?g.Ta:a;return(a=a.performance)&&a.now?a.now():null};
$ha=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()};
bs=function(){var a=window;this.events=[];this.B=a||g.Ta;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=as()||(null!=b?b:1>Math.random())};
aia=function(a){a&&cs&&as()&&(cs.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),cs.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_end"))};
bia=function(){var a=ds;this.j=es;this.IW="jserror";this.pS=!0;this.XM=null;this.B=this.SP;this.fd=void 0===a?null:a};
cia=function(a,b,c){var d=fs;return Yr(Zr().j.j,function(){try{if(d.fd&&d.fd.j){var e=d.fd.start(a.toString(),3);var f=b();d.fd.end(e)}else f=b()}catch(l){var h=d.pS;try{aia(e),h=d.B(a,new gs(hs(l)),void 0,c)}catch(m){d.SP(217,m)}if(!h)throw l;}return f})()};
is=function(a,b,c,d){return Yr(Zr().j.j,function(){var e=g.Ia.apply(0,arguments);return cia(a,function(){return b.apply(c,e)},d)})};
hs=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b};
gs=function(a){Xha.call(this,Error(a),{message:a})};
dia=function(){Fr&&"undefined"!=typeof Fr.google_measure_js_timing&&(Fr.google_measure_js_timing||ds.disable())};
eia=function(a){fs.XM=function(b){g.$b(a,function(c){c(b)})}};
fia=function(a,b){return cia(a,b)};
js=function(a,b){return is(a,b)};
ks=function(a,b,c,d){fs.SP(a,b,c,d)};
ls=function(){return Date.now()-gia};
hia=function(){var a=Zr().C,b=0<=ms?ls()-ms:-1,c=ns?ls()-os:-1,d=0<=ps?ls()-ps:-1;if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];var e=[250,500,1E3];ks(637,Error(),.001);var f=b;-1!=c&&c<b&&(f=c);for(b=0;b<a.length;++b)if(f<a[b]){var h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h};
qs=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
rs=function(a){return a.right-a.left};
ts=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,"number"===typeof c&&(a.top+=c,a.bottom+=c));return a};
iia=function(a,b,c){var d=new qs(0,0,0,0);this.time=a;this.volume=null;this.C=b;this.j=d;this.B=c};
us=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};
kia=function(a){var b=a!==a.top,c=a.top===zha(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(jia,function(h){return"function"===typeof f[h]})||(e=1));
return{Tn:f,compatibility:e,Xca:d}};
lia=function(){var a=window.document;return a&&"function"===typeof a.elementFromPoint};
mia=function(a,b,c){a&&null!==b&&b!=b.top&&(b=b.top);try{return(void 0===c?0:c)?(new g.Ie(b.innerWidth,b.innerHeight)).round():Uba(b||window).round()}catch(d){return new g.Ie(-12245933,-12245933)}};
vs=function(a,b,c){try{a&&(b=b.top);var d=mia(a,b,c),e=d.height,f=d.width;if(-12245933===f)return new qs(f,f,f,f);var h=Wba(jf(b.document).j),l=h.x,m=h.y;return new qs(m,l+f,m+e,l)}catch(n){return new qs(-12245933,-12245933,-12245933,-12245933)}};
g.ws=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
xs=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.zs=function(a,b,c){if("string"===typeof b)(b=ys(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=ys(c,d);f&&(c.style[f]=e)}};
ys=function(a,b){var c=nia[b];if(!c){var d=Oba(b);c=d;void 0===a.style[d]&&(d=(g.Rc?"Webkit":As?"Moz":g.Bs?"ms":null)+Qba(d),void 0!==a.style[d]&&(c=d));nia[b]=c}return c};
g.Cs=function(a,b){var c=a.style[Oba(b)];return"undefined"!==typeof c?c:a.style[ys(a,b)]||""};
Ds=function(a,b){var c=bf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
Es=function(a,b){return Ds(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.Gs=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.Fs(d,!1);a.style.top=g.Fs(b,!1)};
Hs=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
oia=function(a){var b=bf(a),c=Es(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Es(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null};
g.Is=function(a){var b=bf(a),c=new g.Ge(0,0);if(a==(b?bf(b):document).documentElement)return c;a=Hs(a);b=Wba(jf(b).j);c.x=a.left+b.x;c.y=a.top+b.y;return c};
qia=function(a,b){var c=new g.Ge(0,0),d=vf(bf(a));if(!Lc(d,"parent"))return c;do{var e=d==b?g.Is(a):pia(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.Js=function(a,b){a=ria(a);b=ria(b);return new g.Ge(a.x-b.x,a.y-b.y)};
pia=function(a){a=Hs(a);return new g.Ge(a.left,a.top)};
ria=function(a){if(1==a.nodeType)return pia(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Ge(a.clientX,a.clientY)};
g.Ks=function(a,b,c){if(b instanceof g.Ie)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=g.Fs(b,!0);a.style.height=g.Fs(c,!0)};
g.Fs=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.Ls=function(a){var b=sia;if("none"!=Es(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a};
sia=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.Rc&&!b&&!c;return(void 0===b||d)&&a.getBoundingClientRect?(a=Hs(a),new g.Ie(a.right-a.left,a.bottom-a.top)):new g.Ie(b,c)};
g.Ms=function(a,b){a.style.display=b?"":"none"};
Ns=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b};
tia=function(a){return new qs(a.top,a.right,a.bottom,a.left)};
uia=function(a){var b=a.top||0,c=a.left||0;return new qs(b,c+(a.width||0),b+(a.height||0),c)};
Os=function(a){return null!=a&&0<=a&&1>=a};
via=function(){var a=g.pc();return a?Ps("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(b){return jc(a,b)})||jc(a,"OMI/")&&!jc(a,"XiaoMi/")?!0:jc(a,"Presto")&&jc(a,"Linux")&&!jc(a,"X11")&&!jc(a,"Android")&&!jc(a,"Mobi"):!1};
wia=function(){this.C=!Kr(Fr.top);this.isMobileDevice=Jr()||sha();var a=Mr();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.hn(a[a.length-1].url)||"":"";this.j=new qs(0,0,0,0);this.D=new g.Ie(0,0);this.G=new g.Ie(0,0);this.N=new qs(0,0,0,0);this.frameOffset=new g.Ge(0,0);this.K=0;this.Z=!1;this.B=!(!Fr||!kia(Fr).Tn);this.update(Fr)};
xia=function(a,b){b&&b.screen&&(a.D=new g.Ie(b.screen.width,b.screen.height))};
yia=function(a,b){var c=a.j?new g.Ie(rs(a.j),a.j.getHeight()):new g.Ie(0,0);b=void 0===b?Fr:b;null!==b&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,h=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)d=l.scrollHeight!=c.height?l.scrollHeight:l.offsetHeight,e=l.scrollWidth!=c.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=l.scrollWidth,p=l.offsetHeight,q=l.offsetWidth;l.clientHeight!=p&&(m=h.scrollHeight,n=h.scrollWidth,p=h.offsetHeight,q=h.offsetWidth);
m>c.height?m>p?(d=m,e=n):(d=p,e=q):m<p?(d=m,e=n):(d=p,e=q)}var r=new g.Ie(e,d)}catch(t){r=new g.Ie(-12245933,-12245933)}a.G=r};
Ss=function(){var a=Qs();if(0<a.K||a.Z)return!0;a=Wr().B.isVisible();var b=0===Ir(Rs);return a||b};
Qs=function(){return Ur(wia)};
Ts=function(a){this.C=a;this.B=0;this.j=null};
Us=function(a,b,c){this.C=a;this.Ra=void 0===c?"na":c;this.G=[];this.isInitialized=!1;this.D=new iia(-1,!0,this);this.j=this;this.Z=b;this.qa=this.Y=!1;this.Da="uk";this.Ga=!1;this.K=!0};
Vs=function(a,b){g.Fb(a.G,b)||(a.G.push(b),b.Gz(a.j),b.kt(a.D),b.Xp()&&(a.Y=!0))};
zia=function(a){a=a.j;a.nU();a.mU();var b=Qs();b.N=vs(!1,a.C,b.isMobileDevice);yia(Qs(),a.C);a.D.j=a.tX()};
Aia=function(a){a.Y=a.G.length?Ps(a.G,function(b){return b.Xp()}):!1};
Bia=function(a){var b=g.Lb(a.G);g.$b(b,function(c){c.kt(a.D)})};
Ws=function(a){var b=g.Lb(a.G);g.$b(b,function(c){c.Gz(a.j)});
a.j!=a||Bia(a)};
Xs=function(a,b,c,d){this.element=a;this.j=new qs(0,0,0,0);this.D=new qs(0,0,0,0);this.B=b;this.Gc=c;this.ra=d;this.qa=!1;this.timestamp=-1;this.N=new us(b.D,this.element,this.j,new qs(0,0,0,0),0,0,ls(),0)};
Ys=function(a){this.G=!1;this.j=a;this.D=function(){}};
Cia=function(a,b,c){this.C=void 0===c?0:c;this.B=a;this.j=null==b?"":b};
Dia=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}};
Eia=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};
Zs=function(){this.C=0;this.j=[];this.B=!1};
Fia=function(a,b){(0,g.$b)(b.j,function(c){a.add(c.B,c.j,Dia(c))})};
$s=function(a,b){var c=void 0===c?0:c;var d=void 0===d?!0:d;Lr(b,function(e,f){d&&void 0===e||a.add(f,e,c)});
return a};
lt=function(a){var b=Gia;a.B&&(g.Wb(a.j,function(c,d){return Eia(d,c)?1:Eia(c,d)?-1:0}),a.B=!1);
return Tr(a.j,function(c,d){d=b(d);return""+c+(""!=c&&""!=d?"&":"")+d},"")};
Gia=function(a){var b=a.B;a=a.j;return""===a?b:"boolean"===typeof a?a?b:"":Array.isArray(a)?0===a.length?b:b+"="+a.join():b+"="+(g.Fb(["mtos","tos","p"],b)?a:encodeURIComponent(a))};
Hia=function(a){var b=void 0===b?!0:b;this.j=new Zs;void 0!==a&&Fia(this.j,a);b&&this.j.add("v","unreleased",-16)};
Iia=function(a){var b=[],c=[];g.Vc(a,function(d,e){if(!(e in Object.prototype)&&"undefined"!=typeof d)switch(Array.isArray(d)&&(d=d.join(",")),d=[e,"=",d].join(""),e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(d);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(d);break;default:b.push(d)}});
return b.concat(c)};
Jia=function(a){a=a.toString();Wr();Jha(a)};
Kia=function(){this.j=0};
Lia=function(a,b,c){(0,g.$b)(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 Zs;h.add("id","av-js");h.add("type","verif");h.add("vtype",d.G);d=Ur(Kia);h.add("i",d.j++);h.add("adk",e);$s(h,f);e=new Hia(h);Jia(e)}})};
mt=function(){this.B=this.C=this.D=this.j=0};
nt=function(a){this.B=a=void 0===a?Mia:a;this.j=g.Rr(this.B,function(){return new mt})};
ot=function(a,b){return Nia(a,function(c){return c.j},void 0===b?!0:b)};
qt=function(a,b){return pt(a,b,function(c){return c.j})};
Oia=function(a,b){return Nia(a,function(c){return c.C},void 0===b?!0:b)};
rt=function(a,b){return pt(a,b,function(c){return c.C})};
tt=function(a,b){return pt(a,b,function(c){return c.B})};
Pia=function(a){g.$b(a.j,function(b){b.B=0})};
Nia=function(a,b,c){a=g.Rr(a.j,function(d){return b(d)});
return c?a:Qia(a)};
pt=function(a,b,c){var d=g.Eb(a.B,function(e){return b<=e});
return-1==d?0:c(a.j[d])};
Qia=function(a){return g.Rr(a,function(b,c,d){return 0<c?d[c]-d[c-1]:d[c]})};
ut=function(){this.B=new nt;this.Ra=new mt;this.ra=this.N=-1;this.Za=1E3;this.bb=new nt([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Da=this.Ba=-1};
vt=function(a,b){return Oia(a.B,void 0===b?!0:b)};
wt=function(a,b,c,d){var e=void 0===e?!1:e;c=is(d,c);Hr(a,b,c,{capture:e})};
zt=function(a,b){b=xt(b);return 0===b?0:xt(a)/b};
xt=function(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)};
Ria=function(a,b){if(!a||!b)return!1;for(var c=0;null!==a&&100>c++;){if(a===b)return!0;try{if(a=g.Gf(a)||a){var d=bf(a),e=d&&vf(d),f=e&&e.frameElement;f&&(a=f)}}catch(h){break}}return!1};
Sia=function(a,b,c){if(!a||!b)return!1;b=ts(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Kr(window.top)&&window.top&&window.top.document&&(window=window.top);if(!lia())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=bf(c))&&b.defaultView&&b.defaultView.frameElement)&&Ria(b,a);var d=a===c;a=!d&&a&&Pf(a,function(e){return e===c});
return!(b||d||a)};
Tia=function(a,b,c,d){return Qs().C?!1:0>=rs(a)||0>=a.getHeight()?!0:c&&d?fia(208,function(){return Sia(a,b,c)}):!1};
At=function(a,b,c){g.I.call(this);this.position=Uia.clone();this.EJ=this.BI();this.NP=-2;this.pda=Date.now();this.S0=-1;this.Ip=b;this.sJ=null;this.mD=!1;this.SJ=null;this.opacity=-1;this.requestSource=c;this.wda=!1;this.TP=function(){};
this.o1=function(){};
this.Pj=new pha;this.Pj.Lt=a;this.Pj.j=a;this.vt=!1;this.Bv={dQ:null,cQ:null};this.u0=!0;this.uG=null;this.Tz=this.U8=!1;Zr().K++;this.Yh=this.CO();this.N0=-1;this.Vf=null;this.hasCompleted=this.Q8=!1;this.Gc=new wr;oha(this.Gc);Via(this);1==this.requestSource?yr(this.Gc,"od",1):yr(this.Gc,"od",0)};
Via=function(a){a=a.Pj.Lt;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Wia&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+Pba()):!!a.getAttribute("data-"+Pba());b&&(Qs().B=!0)};
Bt=function(a,b){b!=a.Tz&&(a.Tz=b,a=Qs(),b?a.K++:0<a.K&&a.K--)};
Xia=function(a,b){if(a.Vf){if(b.getName()===a.Vf.getName())return;a.Vf.dispose();a.Vf=null}b=b.create(a.Pj.j,a.Gc,a.Xp());if(b=null!=b&&b.lM()?b:null)a.Vf=b};
Yia=function(a,b,c){if(!a.sJ||-1==a.Ip||-1===b.B||-1===a.sJ.B)return 0;a=b.B-a.sJ.B;return a>c?0:a};
Zia=function(a,b,c){if(a.Vf){a.Vf.xs();var d=a.Vf.N,e=d.D,f=e.j;if(null!=d.K){var h=d.C;a.SJ=new g.Ge(h.left-f.left,h.top-f.top)}f=a.fL()?Math.max(d.j,d.G):d.j;h={};null!==e.volume&&(h.volume=e.volume);e=a.jX(d);a.sJ=d;a.Sa(f,b,c,!1,h,e,d.Z)}};
$ia=function(a){if(a.mD&&a.uG){var b=1==zr(a.Gc,"od"),c=Qs().j,d=a.uG,e=a.Vf?a.Vf.getName():"ns",f=a.SJ,h=new g.Ie(rs(c),c.getHeight());c=a.fL();a={fda:e,SJ:f,Vda:h,fL:c,Ce:a.Yh.Ce,Qda:b};if(b=d.B){b.xs();e=b.N;f=e.D.j;var l=h=null;null!=e.K&&f&&(h=e.C,h=new g.Ge(h.left-f.left,h.top-f.top),l=new g.Ie(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.j,e.G):e.j;c={fda:b.getName(),SJ:h,Vda:l,fL:c,Qda:!1,Ce:e}}else c=null;c&&Lia(d,a,c)}};
aja=function(a,b,c){b&&(a.TP=b);c&&(a.o1=c)};
g.Ct=function(){};
g.Dt=function(a){return{value:a,done:!1}};
bja=function(){this.D=this.j=this.C=this.B=this.G=0};
cja=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};
dja=function(){rr.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};
Et=function(a){return Os(a.volume)&&0<a.volume};
Ft=function(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?function(){return!0}:d;
return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return eja(f,b,c)}};
Gt=function(a,b){return function(c){return b(c)?c[a]:void 0}};
fja=function(a){return function(b){for(var c=0;c<a.length;c++)if(a[c]===b.e||void 0===a[c]&&!b.hasOwnProperty("e"))return!0;return!1}};
eja=function(a,b,c){return void 0===c||c?g.Ht(a,function(d,e){return g.Fb(b,e)}):g.Rr(b,function(d,e,f){return a.slice(0<e?f[e-1]+1:0,d+1).reduce(function(h,l){return h+l},0)})};
gja=function(){this.B=this.j=""};
hja=function(){};
It=function(a,b){var c={};if(void 0!==a)if(null!=b)for(var d in b){var e=b[d];d in Object.prototype||null!=e&&(c[d]="function"===typeof e?e(a):a[e])}else g.od(c,a);return lt($s(new Zs,c))};
ija=function(){var a={};this.B=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a.mut=[33554432,33554432],a.umutb=[67108864,67108864],a.tvoff=[134217728,134217728],a);this.j={};for(var b in this.B)0<this.B[b][1]&&(this.j[b]=0);this.C=0};
Jt=function(a,b){var c=a.B[b],d=c[1];a.C+=c[0];0<d&&0==a.j[b]&&(a.j[b]=1)};
jja=function(a){var b=g.dd(a.B),c=0,d;for(d in a.j)g.Fb(b,d)&&1==a.j[d]&&(c+=a.B[d][1],a.j[d]=2);return c};
kja=function(a){var b=0,c;for(c in a.j){var d=a.j[c];if(1==d||2==d)b+=a.B[c][1]}return b};
Kt=function(){this.j=this.B=0};
Lt=function(){ut.call(this);this.C=new mt;this.Na=this.Y=this.Ga=0;this.Z=-1;this.fb=new mt;this.G=new mt;this.j=new nt;this.K=this.D=-1;this.qa=new mt;this.Za=2E3;this.La=new Kt;this.Wa=new Kt;this.Va=new Kt};
Mt=function(a,b,c){var d=a.Na;ns||c||-1==a.Z||(d+=b-a.Z);return d};
lja=function(){this.C=!1};
Nt=function(a,b){this.C=!1;this.D=a;this.Y=b;this.G=0};
Ot=function(a,b){Nt.call(this,a,b);this.N=[]};
mja=function(){};
Pt=function(){};
Qt=function(a,b,c,d){Xs.call(this,a,b,c,d)};
Rt=function(a,b,c){Xs.call(this,null,a,b,c);this.K=a.isActive();this.G=0};
St=function(a){return[a.top,a.left,a.bottom,a.right]};
Tt=function(a,b,c,d,e,f){f=void 0===f?new Pt:f;At.call(this,b,c,d);this.fR=e;this.QN=0;this.ai={};this.Hg=new ija;this.K1={};this.Vi="";this.Za=null;this.Gb=!1;this.j=[];this.jr=f.B();this.K=f.C();this.D=null;this.C=-1;this.Ra=this.Y=void 0;this.ra=this.qa=0;this.Da=-1;this.fb=this.bb=!1;this.Ga=this.Z=this.B=this.OB=this.Hb=0;new nt;this.La=this.Va=0;this.Wa=-1;this.bk=0;this.N=g.Jd;this.Ba=[this.BI()];this.Pb=2;this.Kx={};this.Kx.pause="p";this.Kx.resume="r";this.Kx.skip="s";this.Kx.mute="m";this.Kx.unmute=
"um";this.Kx.exitfullscreen="ef";this.G=null;this.rb=this.zb=!1;this.Jb=Math.floor(Date.now()/1E3-1704067200);this.Na=0};
Ut=function(a){a.hasCompleted=!0;0!=a.bk&&(a.bk=3)};
Vt=function(a){return void 0===a?a:Number(a)?Ns(a,3):0};
Wt=function(a,b){return a.Ba[null!=b&&b<a.Ba.length?b:a.Ba.length-1]};
nja=function(a){var b=!!zr(Zr().Gc,"umt");return a.Y||!b&&!a.Ra?0:1};
oja=function(a,b){a.Pn()?b=0:-1==a.Ip?b=0:(b-=a.Ip,b=b>Math.max(1E4,a.C/3)?0:b);var c=a.N(a)||{};c=void 0!==c.currentTime?c.currentTime:a.qa;var d=c-a.qa,e=0;0<=d?(a.ra+=b,a.La+=Math.max(b-d,0),e=Math.min(d,a.ra)):a.Va+=Math.abs(d);0!=d&&(a.ra=0);-1==a.Wa&&0<d&&(a.Wa=0<=ps?ls()-ps:-1);a.qa=c;return e};
pja=function(a,b){Ps(a.K,function(c){return c.D==b.D})||a.K.push(b)};
qja=function(a){var b=qt(a.nj().j,1);return Xt(a,b)};
Xt=function(a,b,c){return 15E3<=b?!0:a.bb?(void 0===c?0:c)?!0:0<a.C?b>=a.C/2:0<a.Da?b>=a.Da:!1:!1};
rja=function(a){var b=Ns(a.Yh.Ce,2),c=a.Hg.C,d=a.Yh,e=Wt(a),f=Vt(e.D),h=Vt(e.K),l=Vt(d.volume),m=Ns(e.N,2),n=Ns(e.ra,2),p=Ns(d.Ce,2),q=Ns(e.Ba,2),r=Ns(e.Da,2);d=Ns(d.xk,2);a=a.Ws().clone();a.round();e=vt(e,!1);return{Uda:b,kE:c,IJ:f,yJ:h,SC:l,JJ:m,AJ:n,Ce:p,LJ:q,BJ:r,xk:d,position:a,NJ:e}};
tja=function(a,b){sja(a.j,b,function(){return{Uda:0,kE:void 0,IJ:-1,yJ:-1,SC:-1,JJ:-1,AJ:-1,Ce:-1,LJ:-1,BJ:-1,xk:-1,position:void 0,NJ:[]}});
a.j[b]=rja(a)};
sja=function(a,b,c){for(var d=a.length;d<b+1;)a.push(c()),d++};
Zt=function(a,b,c){var d=a.K1[b];if(null!=d)return d;d=uja(a,b);var e=hd(Yt,function(f){return f==b});
a=vja(a,d,d,c,wja[Yt[e]]);"fully_viewable_audible_half_duration_impression"==b&&(a.std="csm");return a};
$t=function(a,b,c){var d=[b];if(a!=b||c!=b)d.unshift(a),d.push(c);return d};
vja=function(a,b,c,d,e){if(a.vt)return{"if":0,vs:0};var f=a.Ws().clone();f.round();var h=Qs(),l=Zr(),m=a.nj(),n=a.Vf?a.Vf.getName():"ns",p={};p["if"]=h.C?1:void 0;p.sdk=a.D?a.D:void 0;p.t=a.pda;p.p=[f.top,f.left,f.bottom,f.right];p.tos=ot(m.B,!1);p.mtos=vt(m);p.mcvt=m.Ra.C;p.ps=void 0;f=Mt(m,ls(),a.Pn());p.vht=f;p.mut=m.fb.C;p.a=Vt(a.Yh.volume);p.mv=Vt(m.K);p.fs=a.Tz?1:0;p.ft=m.qa.j;p.at=m.G.j;p.as=0<m.D?1:0;p.atos=ot(m.j);p.ssb=ot(m.bb,!1);p.amtos=Oia(m.j,!1);p.uac=a.Hb;p.vpt=m.C.j;"nio"==n&&(p.nio=
1,p.avms="nio");p.gmm="4";p.gdr=Xt(a,m.C.j,!0)?1:0;p.efpf=a.Pb;if("gsv"==n||"nis"==n)n=a.Vf,0<n.G&&(p.nnut=n.G);p.tcm=nja(a);p.nmt=a.Va;p.bt=a.La;p.pst=a.Wa;p.vpaid=a.Y;p.dur=a.C;p.vmtime=a.qa;p.is=a.Hg.C;1<=a.j.length&&(p.i0=a.j[0].kE,p.a0=[a.j[0].SC],p.c0=[a.j[0].Ce],p.ss0=[a.j[0].xk],n=a.j[0].position,p.p0=n?St(n):void 0);2<=a.j.length&&(p.i1=a.j[1].kE,p.a1=$t(a.j[1].IJ,a.j[1].SC,a.j[1].yJ),p.c1=$t(a.j[1].JJ,a.j[1].Ce,a.j[1].AJ),p.ss1=$t(a.j[1].LJ,a.j[1].xk,a.j[1].BJ),n=a.j[1].position,p.p1=n?
St(n):void 0,p.mtos1=a.j[1].NJ);3<=a.j.length&&(p.i2=a.j[2].kE,p.a2=$t(a.j[2].IJ,a.j[2].SC,a.j[2].yJ),p.c2=$t(a.j[2].JJ,a.j[2].Ce,a.j[2].AJ),p.ss2=$t(a.j[2].LJ,a.j[2].xk,a.j[2].BJ),n=a.j[2].position,p.p2=n?St(n):void 0,p.mtos2=a.j[2].NJ);4<=a.j.length&&(p.i3=a.j[3].kE,p.a3=$t(a.j[3].IJ,a.j[3].SC,a.j[3].yJ),p.c3=$t(a.j[3].JJ,a.j[3].Ce,a.j[3].AJ),p.ss3=$t(a.j[3].LJ,a.j[3].xk,a.j[3].BJ),n=a.j[3].position,p.p3=n?St(n):void 0,p.mtos3=a.j[3].NJ);p.cs=kja(a.Hg);b&&(p.ic=jja(a.Hg),p.dvpt=m.C.B,p.dvs=tt(m.B,
.5),p.dfvs=tt(m.B,1),p.davs=tt(m.j,.5),p.dafvs=tt(m.j,1),c&&(m.C.B=0,Pia(m.B),Pia(m.j)),a.gr()&&(p.dtos=m.Ga,p.dav=m.Y,p.dtoss=a.QN+1,c&&(m.Ga=0,m.Y=0,a.QN++)),p.dat=m.G.B,p.dft=m.qa.B,c&&(m.G.B=0,m.qa.B=0));p.ps=[h.G.width,h.G.height];p.bs=[rs(h.j),h.j.getHeight()];p.scs=[h.D.width,h.D.height];p.dom=h.domain;a.OB&&(p.vds=a.OB);if(0<a.K.length||a.jr)b=g.Lb(a.K),a.jr&&b.push(a.jr),p.pings=g.Rr(b,function(q){return q.toString()});
b=g.Rr(g.Ht(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.Ga&&(p.vmiec=a.Ga);p.avms=a.Vf?a.Vf.getName():"ns";a.Vf&&g.od(p,a.Vf.Ts());d?(p.c=Ns(a.Yh.Ce,2),p.ss=Ns(a.Yh.xk,2)):p.tth=ls()-xja;p.mc=Ns(m.ra,2);p.nc=Ns(m.N,2);p.mv=Vt(m.K);p.nv=Vt(m.D);p.lte=Ns(a.NP,2);d=Wt(a,e);vt(m);p.qmtos=vt(d);p.qnc=Ns(d.N,2);p.qmv=Vt(d.K);p.qnv=Vt(d.D);p.qas=0<d.D?1:0;p.qi=a.Vi;p.avms||(p.avms="geo");p.psm=m.La.j;p.psv=m.La.getValue();p.psfv=m.Wa.getValue();p.psa=m.Va.getValue();l=mha(l.Gc);l.length&&(p.veid=l);a.G&&g.od(p,
cja(a.G));p.avas=a.pI();p.vs=a.wX();p.co=yja(a);return p};
uja=function(a,b){if(g.Fb(zja,b))return!0;var c=a.ai[b];return void 0!==c?(a.ai[b]=!0,!c):!1};
yja=function(a){var b=a.Na.toString(10).padStart(2,"0");b=""+a.Jb+b;99>a.Na&&a.Na++;return b};
Bja=function(){this.j={};var a=vf();au(this,a,document);var b=Aja();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)au(this,c,c.document);au(this,a.top,a.top.document)}}catch(d){}};
Aja=function(){var a=document.documentElement;try{if(!Kr(vf().top))return"2";var b=[],c=vf(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&0!=b.length?"1":"0"}catch(d){return"2"}};
au=function(a,b,c){wt(c,"mousedown",function(){return Cja(a)},301);
wt(b,"scroll",function(){return Dja(a)},302);
wt(c,"touchmove",function(){return Eja(a)},303);
wt(c,"mousemove",function(){return Fja(a)},304);
wt(c,"keydown",function(){return Gja(a)},305)};
Cja=function(a){g.Vc(a.j,function(b){1E5<b.C||++b.C})};
Dja=function(a){g.Vc(a.j,function(b){1E5<b.j||++b.j})};
Eja=function(a){g.Vc(a.j,function(b){1E5<b.j||++b.j})};
Gja=function(a){g.Vc(a.j,function(b){1E5<b.B||++b.B})};
Fja=function(a){g.Vc(a.j,function(b){1E5<b.D||++b.D})};
Hja=function(){this.j=[];this.B=[]};
bu=function(a,b){return g.Db(a.j,function(c){return c.Vi==b})};
Ija=function(a,b){return b?g.Db(a.j,function(c){return c.Pj.Lt==b}):null};
Jja=function(a,b){return g.Db(a.B,function(c){return 2==c.vp()&&c.Vi==b})};
du=function(){var a=cu;return 0==a.j.length?a.B:0==a.B.length?a.j:g.Kb(a.B,a.j)};
Kja=function(a,b){a=1==b.vp()?a.j:a.B;var c=Cb(a,function(d){return d==b});
return-1!=c?(a.splice(c,1),b.Vf&&b.Vf.cH(),b.dispose(),!0):!1};
Lja=function(a){var b=cu;if(Kja(b,a)){switch(a.vp()){case 0:var c=function(){return null};
case 2:c=function(){return Jja(b,a.Vi)};
break;case 1:c=function(){return bu(b,a.Vi)}}for(var d=c();d;d=c())Kja(b,d)}};
Mja=function(a){var b=cu;a=g.Ht(a,function(c){return!Ija(b,c.Pj.Lt)});
b.j.push.apply(b.j,g.qa(a))};
Nja=function(a){var b=[];g.$b(a,function(c){Ps(cu.j,function(d){return d.Pj.Lt===c.Pj.Lt&&d.Vi===c.Vi})||(cu.j.push(c),b.push(c))})};
eu=function(){this.j=this.B=null};
Oja=function(a,b){function c(d,e){b(d,e)}
if(null==a.B)return!1;a.j=g.Db(a.B,function(d){return null!=d&&d.oU()});
a.j&&(a.j.init(c)?zia(a.j.j):b(a.j.j.xz(),a.j));return null!=a.j};
fu=function(a){a=Pja(a);Ys.call(this,a.length?a[a.length-1]:new Us(Fr,0));this.C=a;this.B=null};
Pja=function(a){if(!a.length)return[];a=(0,g.Ht)(a,function(c){return null!=c&&c.pC()});
for(var b=1;b<a.length;b++)Vs(a[b-1],a[b]);return a};
gu=function(a,b,c,d){Xs.call(this,a,b,c,d);this.Y=this.Z=this.G=this.K=this.C=null};
hu=function(a){return a.C&&a.C.takeRecords?a.C.takeRecords():[]};
Rja=function(a){if(!a.element)return!1;var b=a.element,c=a.B.j.C,d=Zr().j.j;a.C=new c.IntersectionObserver(Yr(d,function(e){return iu(a,e)}),Qja);
d=Yr(d,function(){a.C.unobserve(b);a.C.observe(b);iu(a,hu(a))});
c.ResizeObserver?(a.K=new c.ResizeObserver(d),a.K.observe(b)):c.MutationObserver&&(a.G=new g.Ta.MutationObserver(d),a.G.observe(b,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));a.C.observe(b);iu(a,hu(a));return!0};
iu=function(a,b){try{if(b.length){a.Z||(a.Z=ls());var c=Sja(b),d=qia(a.element,a.B.j.C),e=d.x,f=d.y;a.j=new qs(Math.round(f),Math.round(e)+c.boundingClientRect.width,Math.round(f)+c.boundingClientRect.height,Math.round(e));var h=tia(c.intersectionRect);a.D=ts(h,a.j.left-h.left,a.j.top-h.top)}}catch(l){a.cH(),ks(299,l)}};
Sja=function(a){return Tr(a,function(b,c){return b.time>c.time?b:c},a[0])};
ju=function(a){a=void 0===a?Fr:a;Ys.call(this,new Us(a,2))};
ku=function(){var a=Tja();Us.call(this,Fr.top,a,"geo")};
Tja=function(){Zr();var a=Qs();return a.C||a.B?0:2};
Uja=function(){};
lu=function(){this.done=!1;this.j={G5:0,tV:0,Cpb:0,yW:0,lP:-1,v6:0,u6:0,w6:0,cda:0};this.G=null;this.K=!1;this.C=null;this.N=0;this.B=new Ts(this)};
nu=function(){var a=mu;a.K||(a.K=!0,Vja(a,function(){return a.D.apply(a,g.qa(g.Ia.apply(0,arguments)))}),a.D())};
Wja=function(){Ur(Uja);var a=Ur(eu);null!=a.j&&a.j.j?zia(a.j.j):Qs().update(Fr)};
ou=function(a,b,c){if(!a.done&&(a.B.cancel(),0!=b.length)){a.C=null;try{Wja();var d=ls();Zr().G=d;if(null!=Ur(eu).j)for(var e=0;e<b.length;e++)Zia(b[e],d,c);for(d=0;d<b.length;d++)$ia(b[d]);++a.j.yW}finally{c?g.$b(b,function(f){f.Yh.Ce=0}):a.B.schedule()}}};
Vja=function(a,b){if(!a.G){b=is(142,b);Wr();var c;Rs.visibilityState?c="visibilitychange":Rs.mozVisibilityState?c="mozvisibilitychange":Rs.webkitVisibilityState&&(c="webkitvisibilitychange");c&&Hr(Rs,c,b,{capture:!1})&&(a.G=b)}};
Xja=function(){var a=Ur(eu);if(null!=a.j){var b=a.j;g.$b(du(),function(c){return Xia(c,b)})}};
Yja=function(a,b){a=a.N;ns&&(a+=b-os);return a};
Zja=function(a){a=void 0===a?function(){return{}}:a;
fs.IW="av-js";es.j=.01;eia([function(b){var c=Zr(),d={};d=(d.bin=c.B,d.type="error",d);c=Ar(c.Gc);if(!mu.C){var e=mu,f=Fr.document,h=0<=ms?ls()-ms:-1,l=ls();-1==e.j.lP&&(h=l);var m=Qs(),n=Zr(),p=Ar(n.Gc),q=du();try{if(0<q.length){var r=m.j;r&&(p.bs=[rs(r),r.getHeight()]);var t=m.G;t&&(p.ps=[t.width,t.height]);Fr.screen&&(p.scs=[Fr.screen.width,Fr.screen.height])}else p.url=encodeURIComponent(Fr.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512)));
p.tt=h;p.pt=ms;p.bin=n.B;void 0!==Fr.google_osd_load_pub_page_exp&&(p.olpp=Fr.google_osd_load_pub_page_exp);p.deb=[1,e.j.G5,e.j.tV,e.j.yW,e.j.lP,0,e.B.B,e.j.v6,e.j.u6,e.j.w6,e.j.cda,-1].join(";");p.tvt=Yja(e,l);m.B&&(p.inapp=1);if(null!==Fr&&Fr!=Fr.top){0<q.length&&(p.iframe_loc=encodeURIComponent(Fr.location.href.substring(0,512)));var v=m.N;p.is=[rs(v),v.getHeight()]}}catch(w){p.error=1}mu.C=p}r=g.md(mu.C);t=Zr().j;1==zr(t.C,"prf")?(v=new Xr,e=t.j,f=0,-1<e.j&&(f=e.C.j.now()-e.j),v=Pj(v,1,si(e.D+
f),0),e=t.j,v=Pj(v,5,wi(-1<e.j?e.B+1:e.B),0),v=Pj(v,2,Bi(t.B.j.C()),"0"),v=Pj(v,3,Bi(t.B.j.B()),"0"),t=Pj(v,4,Bi(t.B.j.j()),"0"),v={},t=(v.pf=g.Gg(t.j()),v)):t={};g.od(r,t);g.od(b,d,c,r,a())}])};
aka=function(){var a=$ja||Fr;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("&")};
pu=function(){var a="youtube.player.web_20240423_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20240423_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20240423_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20240423_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(2==(null==(b=a)?void 0:b.length))return a[1];a="youtube.player.web_20240423_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return 3==(null==(c=a)?void 0:c.length)?"20"+a[1]+a[2]:null};
bka=function(){return"av.default_js".includes("ima_html5_sdk")?{fp:"ima",hp:null}:"av.default_js".includes("ima_native_sdk")?{fp:"nima",hp:null}:"av.default_js".includes("admob-native-video-javascript")?{fp:"an",hp:null}:"youtube.player.web_20240423_01_RC00".includes("cast_js_sdk")?{fp:"cast",hp:pu()}:"youtube.player.web_20240423_01_RC00".includes("youtube.player.web")?{fp:"yw",hp:pu()}:"youtube.player.web_20240423_01_RC00".includes("outstream_web_client")?{fp:"out",hp:pu()}:"youtube.player.web_20240423_01_RC00".includes("drx_rewarded_web")?
{fp:"r",hp:pu()}:"youtube.player.web_20240423_01_RC00".includes("gam_native_web_video")?{fp:"n",hp:pu()}:"youtube.player.web_20240423_01_RC00".includes("admob_interstitial_video")?{fp:"int",hp:pu()}:{fp:"j",hp:null}};
tu=function(a,b){var c={sv:"961"};null!==qu&&(c.v=qu);c.cb=cka;c.nas=cu.j.length;c.msg=a;void 0!==b&&(a=dka(b))&&(c.e=ru[a]);return c};
uu=function(a){return dc(a,"custom_metric_viewable")};
dka=function(a){var b=uu(a)?"custom_metric_viewable":a.toLowerCase();return hd(Yt,function(c){return c==b})};
eka=function(){this.j=void 0;this.B=!1;this.C=0;this.D=-1;this.G="tos"};
hka=function(a){try{var b=a.split(",");return b.length>g.dd(fka).length?null:Tr(b,function(c,d){d=d.toLowerCase().split("=");if(2!=d.length||void 0===gka[d[0]]||!gka[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}};
ika=function(a,b){if(void 0==a.j)return 0;switch(a.G){case "mtos":return a.B?rt(b.j,a.j):rt(b.B,a.j);case "tos":return a.B?qt(b.j,a.j):qt(b.B,a.j)}return 0};
vu=function(a,b,c,d){Nt.call(this,b,d);this.N=a;this.Z=c};
wu=function(){};
xu=function(a){Nt.call(this,"fully_viewable_audible_half_duration_impression",a)};
yu=function(a){this.j=a};
zu=function(a,b){Nt.call(this,a,b)};
Au=function(a){Ot.call(this,"measurable_impression",a)};
Bu=function(){yu.apply(this,arguments)};
Cu=function(a,b,c){Rt.call(this,a,b,c)};
Du=function(a){a=void 0===a?Fr:a;Ys.call(this,new Us(a,2))};
Eu=function(a,b,c){Rt.call(this,a,b,c)};
Fu=function(a){a=void 0===a?Fr:a;Ys.call(this,new Us(a,2))};
Gu=function(){Us.call(this,Fr,2,"mraid");this.La=0;this.ra=this.Ba=!1;this.N=null;this.B=kia(this.C);this.D.j=new qs(0,0,0,0);this.Na=!1};
Hu=function(a,b,c){a.du("addEventListener",b,c)};
mka=function(a){Zr().D=!!a.du("isViewable");Hu(a,"viewableChange",jka);"loading"===a.du("getState")?Hu(a,"ready",kka):lka(a)};
lka=function(a){"string"===typeof a.B.Tn.AFMA_LIDAR?(a.Ba=!0,nka(a)):(a.B.compatibility=3,a.N="nc",a.lj("w"))};
nka=function(a){a.ra=!1;var b=1==zr(Zr().Gc,"rmmt"),c=!!a.du("isViewable");(b?!c:1)&&Wr().setTimeout(js(524,function(){a.ra||(oka(a),ks(540,Error()),a.N="mt",a.lj("w"))}),500);
pka(a);Hu(a,a.B.Tn.AFMA_LIDAR,qka)};
pka=function(a){var b=1==zr(Zr().Gc,"sneio"),c=void 0!==a.B.Tn.AFMA_LIDAR_EXP_1,d=void 0!==a.B.Tn.AFMA_LIDAR_EXP_2;(b=b&&d)&&(a.B.Tn.AFMA_LIDAR_EXP_2=!0);c&&(a.B.Tn.AFMA_LIDAR_EXP_1=!b)};
oka=function(a){a.du("removeEventListener",a.B.Tn.AFMA_LIDAR,qka);a.Ba=!1};
rka=function(a,b){if("loading"===a.du("getState"))return new g.Ie(-1,-1);b=a.du(b);if(!b)return new g.Ie(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new g.Ie(-1,-1):new g.Ie(a,b)};
kka=function(){try{var a=Ur(Gu);a.du("removeEventListener","ready",kka);lka(a)}catch(b){ks(541,b)}};
qka=function(a,b){try{var c=Ur(Gu);c.ra=!0;var d=a?new qs(a.y,a.x+a.width,a.y+a.height,a.x):new qs(0,0,0,0);var e=ls(),f=Ss();var h=new iia(e,f,c);h.j=d;h.volume=b;c.kt(h)}catch(l){ks(542,l)}};
jka=function(a){var b=Zr(),c=Ur(Gu);a&&!b.D&&(b.D=!0,c.Na=!0,c.N&&c.lj("w",!0))};
Iu=function(){this.isInitialized=!1;this.j=this.B=null;var a={};this.K=(a.start=this.x8,a.firstquartile=this.s8,a.midpoint=this.u8,a.thirdquartile=this.y8,a.complete=this.p8,a.error=this.q8,a.pause=this.eR,a.resume=this.Q_,a.skip=this.w8,a.viewable_impression=this.wp,a.mute=this.LB,a.unmute=this.LB,a.fullscreen=this.t8,a.exitfullscreen=this.r8,a.fully_viewable_audible_half_duration_impression=this.wp,a.measurable_impression=this.wp,a.abandon=this.eR,a.engagedview=this.wp,a.impression=this.wp,a.creativeview=
this.wp,a.progress=this.LB,a.custom_metric_viewable=this.wp,a.bufferstart=this.eR,a.bufferfinish=this.Q_,a.audio_measurable=this.wp,a.audio_audible=this.wp,a);a={};this.N=(a.overlay_resize=this.v8,a.abandon=this.YO,a.close=this.YO,a.collapse=this.YO,a.overlay_unmeasurable_impression=function(b){return Zt(b,"overlay_unmeasurable_impression",Ss())},a.overlay_viewable_immediate_impression=function(b){return Zt(b,"overlay_viewable_immediate_impression",Ss())},a.overlay_unviewable_impression=function(b){return Zt(b,
"overlay_unviewable_impression",Ss())},a.overlay_viewable_end_of_session_impression=function(b){return Zt(b,"overlay_viewable_end_of_session_impression",Ss())},a);
Zr().B=3;ska(this)};
Ju=function(a,b,c,d){a=a.LF(null,d,!0,b);a.D=c;Mja([a]);return a};
tka=function(a,b,c){kha(b);var d=a.j;g.$b(b,function(e){var f=g.Rr(e.criteria,function(h){var l=hka(h);if(null==l)h=null;else if(h=new eka,null!=l.visible&&(h.j=l.visible/100),null!=l.audible&&(h.B=1==l.audible),null!=l.time){var m="mtos"==l.timetype?"mtos":"tos",n=Faa(l.time,"%")?"%":"ms";l=parseInt(l.time,10);"%"==n&&(l/=100);h.setTime(l,n,m)}return h});
Ps(f,function(h){return null==h})||pja(c,new vu(e.id,e.event,f,d))})};
uka=function(){var a=[],b=Zr();a.push(Ur(ku));zr(b.Gc,"mvp_lv")&&a.push(Ur(Gu));b=[new Du,new Fu];b.push(new fu(a));b.push(new ju(Fr));return b};
vka=function(a){if(!a.isInitialized){a.isInitialized=!0;try{var b=ls(),c=Zr(),d=Qs();ms=b;c.C=79463069;"o"!==a.B&&($ja=zha(Fr));if(Kha()){mu.j.tV=0;mu.j.lP=ls()-b;var e=uka(),f=Ur(eu);f.B=e;Oja(f,function(){Ku()})?mu.done||(Xja(),Vs(f.j.j,a),nu()):d.C?Ku():nu()}else Lu=!0}catch(h){throw cu.reset(),h;
}}};
Nu=function(a){mu.B.cancel();Mu=a;mu.done=!0};
Ou=function(a){if(a.B)return a.B;var b=Ur(eu).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};
Pu=function(a,b,c){if(null==a.j)return b.OB|=4,!1;a=wka(a.j,c,b);b.OB|=a;return 0==a};
Ku=function(){var a=[new ju(Fr)],b=Ur(eu);b.B=a;Oja(b,function(){Nu("i")})?mu.done||(Xja(),nu()):Nu("i")};
xka=function(a,b){if(!a.Gb){var c=Zt(a,"start",Ss());c=a.fR.j(c).j;var d={id:"lidarv"};d.r=b;d.sv="961";null!==qu&&(d.v=qu);In(c,function(e,f){return d[e]="mtos"==e||"tos"==e?f:encodeURIComponent(f)});
b=aka();In(b,function(e,f){return d[e]=encodeURIComponent(f)});
b="//pagead2.googlesyndication.com/pagead/gen_204?"+lt($s(new Zs,d));Jia(b);a.Gb=!0}};
Qu=function(a,b,c){ou(mu,[a],!Ss());tja(a,c);4!=c&&sja(a.Ba,c,a.BI);return Zt(a,b,Ss())};
ska=function(a){Zja(function(){var b=yka();null!=a.B&&(b.sdk=a.B);var c=Ur(eu);null!=c.j&&(b.avms=c.j.getName());return b})};
zka=function(a,b,c,d){var e=Ija(cu,c);null!==e&&e.Vi!==b&&(a.UH(e),e=null);e||(b=a.LF(c,ls(),!1,b),0==cu.B.length&&(Zr().C=79463069),Nja([b]),e=b,e.D=Ou(a),d&&(e.Za=d));return e};
Aka=function(a,b){var c=a[b];void 0!==c&&0<c&&(a[b]=Math.floor(1E3*c))};
yka=function(){var a=Qs(),b={},c={},d={};return Object.assign({},(b.sv="961",b),null!==qu&&(c.v=qu,c),(d["if"]=a.C?"1":"0",d.nas=String(cu.j.length),d))};
Ru=function(a){Nt.call(this,"audio_audible",a)};
Su=function(a){Ot.call(this,"audio_measurable",a)};
Tu=function(){yu.apply(this,arguments)};
Uu=function(){};
Bka=function(a){this.j=a};
wka=function(a,b,c){a=a.B();if("function"===typeof a){var d={};var e={};d=Object.assign({},null!==qu&&(d.v=qu,d),(e.sv="961",e.cb=cka,e.e=Cka(b),e));e=Zt(c,b,Ss());g.od(d,e);c.K1[b]=e;d=2==c.vp()?Iia(d).join("&"):c.fR.j(d).j;try{return a(c.Vi,d,b),0}catch(f){return 2}}else return 1};
Cka=function(a){var b=uu(a)?"custom_metric_viewable":a;a=hd(Yt,function(c){return c==b});
return ru[a]};
Vu=function(){Iu.call(this);this.G=null;this.D=!1;this.C="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
Dka=function(a,b,c){c=c.opt_configurable_tracking_events;null!=a.j&&Array.isArray(c)&&tka(a,c,b)};
Eka=function(a,b,c){var d=bu(cu,b);d||(d=c.opt_nativeTime||-1,d=Ju(a,b,Ou(a),d),c.opt_osdId&&(d.Za=c.opt_osdId));return d};
Fka=function(a,b,c){var d=bu(cu,b);d||(d=Ju(a,b,"n",c.opt_nativeTime||-1));return d};
Gka=function(a,b){var c=bu(cu,b);c||(c=Ju(a,b,"h",-1));return c};
Hka=function(a){Zr();switch(Ou(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};
Kka=function(a,b,c,d){c=void 0===c?{}:c;var e={};g.od(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.LI(b,c);c=f?f.fR:a.KN();if(e.opt_bounds)return c.j(tu("ol",d));if(void 0!==d)if(void 0!==dka(d))if(Lu)a=tu("ue",d);else if(vka(a),"i"==Mu)a=tu("i",d),a["if"]=0;else if(b=a.LI(b,e)){b:{"i"==Mu&&(b.vt=!0);f=e.opt_fullscreen;void 0!==f&&Bt(b,!!f);var h;if(f=!Qs().B)(f=jc(g.pc(),"CrKey")||jc(g.pc(),"PlayStation")||jc(g.pc(),"Roku")||via()||jc(g.pc(),"Xbox"))||(f=g.pc(),f=jc(f,"AppleTV")||jc(f,
"Apple TV")||jc(f,"CFNetwork")||jc(f,"tvOS")),f||(f=g.pc(),f=jc(f,"sdk_google_atv_x86")||jc(f,"Android TV")),f=!f;f&&(Wr(),f=0===Ir(Rs));if(h=f){switch(b.vp()){case 1:xka(b,"pv");break;case 2:a.zR(b)}Nu("pv")}f=d.toLowerCase();if(h=!h)h=zr(Zr().Gc,"ssmol")&&"loaded"===f?!1:g.Fb(Ika,f);if(h&&0==b.bk){"i"!=Mu&&(mu.done=!1);h=void 0!==e?e.opt_nativeTime:void 0;ps=h="number"===typeof h?h:ls();b.mD=!0;var l=Ss();b.bk=1;b.ai={};b.ai.start=!1;b.ai.firstquartile=!1;b.ai.midpoint=!1;b.ai.thirdquartile=!1;
b.ai.complete=!1;b.ai.resume=!1;b.ai.pause=!1;b.ai.skip=!1;b.ai.mute=!1;b.ai.unmute=!1;b.ai.viewable_impression=!1;b.ai.measurable_impression=!1;b.ai.fully_viewable_audible_half_duration_impression=!1;b.ai.fullscreen=!1;b.ai.exitfullscreen=!1;b.QN=0;l||(b.nj().Z=h);ou(mu,[b],!l)}(h=b.Kx[f])&&Jt(b.Hg,h);zr(Zr().Gc,"fmd")||g.Fb(Jka,f)&&b.jr&&b.jr.B(b,null);switch(b.vp()){case 1:var m=uu(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),zr(Zr().Gc,"fmd")&&g.Fb(Jka,f)&&
b.jr&&b.jr.B(b,null),void 0!==d)){e=tu(void 0,f);g.od(e,d);d=e;break b}d=void 0}3==b.bk&&a.UH(b);a=d}else a=tu("nf",d);else a=void 0;else Lu?a=tu("ue"):f?(a=tu(),g.od(a,vja(f,!0,!1,!1))):a=tu("nf");return"string"===typeof a?c.j():c.j(a)};
Lka=function(a,b){b&&(a.C=b)};
Mka=function(a){var b={};return b.viewability=a.j,b.googleViewability=a.B,b};
Nka=function(a,b,c){c=void 0===c?{}:c;a=Kka(Ur(Vu),b,c,a);return Mka(a)};
Oka=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}};
Rka=function(a){if(g.ec(g.Ye(a)))return!1;if(0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&"))return!0;try{var b=new g.xp(a)}catch(c){return null!=g.Db(Pka,function(d){return 0<a.search(d)})}return b.K.match(Qka)?!0:null!=g.Db(Pka,function(c){return null!=a.match(c)})};
g.Wu=function(a,b){return a.replace(Ska,function(c,d){try{var e=g.jd(b,d);if(null==e||null==e.toString())return c;e=e.toString();if(""==e||!g.ec(g.Ye(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(f){}return c})};
Yu=function(a){g.Dd.call(this);var b=this;this.G=this.B=0;this.Qn=null!=a?a:{Mi:function(e,f){return setTimeout(e,f)},
Mj:function(e){clearTimeout(e)}};
var c,d;this.j=null!=(d=null==(c=window.navigator)?void 0:c.onLine)?d:!0;this.C=function(){return g.H(function(e){return g.z(e,Xu(b),0)})};
window.addEventListener("offline",this.C);window.addEventListener("online",this.C);this.G||this.rf()};
Tka=function(){var a=g.Zu;Yu.instance||(Yu.instance=new Yu(a));return Yu.instance};
Xu=function(a,b){return a.D?a.D:a.D=new Promise(function(c){var d,e,f,h;return g.H(function(l){switch(l.j){case 1:return d=window.AbortController?new window.AbortController:void 0,f=null==(e=d)?void 0:e.signal,h=!1,g.Ba(l,2,3),d&&(a.B=a.Qn.Mi(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.Qn.Mj(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.Ia(3)}})})};
$u=function(){this.data=[];this.j=-1};
Uka=function(a){-1===a.j&&(a.j=a.data.reduce(function(b,c,d){return b+(c?Math.pow(2,d):0)},0));
return a.j};
av=function(a){a.setAttribute("role","link")};
hv=function(a,b){Array.isArray(b)&&(b=b.join(" "));""===b||void 0==b?(gv||(b={},gv=(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=gv,"label"in b?a.setAttribute("aria-label",b.label):a.removeAttribute("aria-label")):a.setAttribute("aria-label",b)};
iv=function(a){a=a.getAttribute("aria-label");return null==a||void 0==a?"":String(a)};
g.jv=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.gb)(this.w4,this)};
g.kv=function(a){a.isActive()||a.start()};
Vka=function(a){a=a.B;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
Wka=function(a){a=a.B;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.lv=function(a,b,c){g.I.call(this);this.j=a;this.Si=b||0;this.B=c;this.C=(0,g.gb)(this.qU,this)};
g.mv=function(a,b){a.isActive()||a.start(b)};
g.nv=function(a){a.stop();a.qU()};
g.ov=function(a){a.isActive()&&g.nv(a)};
g.pv=function(a,b){this.j=a[g.Ta.Symbol.iterator]();this.B=b};
Xka=function(a){return"string"==typeof a.className?a.className:a.getAttribute&&a.getAttribute("class")||""};
qv=function(a){return a.classList?a.classList:Xka(a).match(/\S+/g)||[]};
g.rv=function(a,b){"string"==typeof a.className?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
g.tv=function(a,b){return a.classList?a.classList.contains(b):g.Fb(qv(a),b)};
g.uv=function(a,b){if(a.classList)a.classList.add(b);else if(!g.tv(a,b)){var c=Xka(a);g.rv(a,c+(0<c.length?" "+b:b))}};
g.vv=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){g.uv(a,e)});
else{var c={};Array.prototype.forEach.call(qv(a),function(e){c[e]=!0});
Array.prototype.forEach.call(b,function(e){c[e]=!0});
b="";for(var d in c)b+=0<b.length?" "+d:d;g.rv(a,b)}};
g.wv=function(a,b){a.classList?a.classList.remove(b):g.tv(a,b)&&g.rv(a,Array.prototype.filter.call(qv(a),function(c){return c!=b}).join(" "))};
g.xv=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){g.wv(a,c)}):g.rv(a,Array.prototype.filter.call(qv(a),function(c){return!g.Fb(b,c)}).join(" "))};
g.yv=function(a,b,c){c?g.uv(a,b):g.wv(a,b)};
Yka=function(a,b){var c=!g.tv(a,b);g.yv(a,b,c)};
g.zv=function(){g.Dd.call(this);this.j=0;this.endTime=this.startTime=null};
Zka=function(a,b){Array.isArray(b)||(b=[b]);b=b.map(function(c){return"string"===typeof c?c:c.property+" "+c.duration+"s "+c.timing+" "+c.delay+"s"});
g.zs(a,"transition",b.join(","))};
Av=function(a,b,c,d,e){g.zv.call(this);this.B=a;this.G=b;this.K=c;this.D=d;this.N=Array.isArray(e)?e:[e]};
$ka=function(a,b,c,d){return new Av(a,b,{opacity:c},{opacity:d},{property:"opacity",duration:b,timing:"ease-in",delay:0})};
bla=function(a){a=kc(a);if(""==a)return null;var b=String(a.slice(0,4)).toLowerCase();if(0==("url("<b?-1:"url("==b?0:1))return!a.endsWith(")")||1<(a?a.split("(").length-1:0)||a&&a.split(")"),null;if(0<a.indexOf("(")){if(/"|'/.test(a))return null;b=/([\-\w]+)\(/g;for(var c;c=b.exec(a);)if(!(c[1].toLowerCase()in ala))return null}return a};
Bv=function(a,b){a=g.Ta[a];return a&&a.prototype?(b=Object.getOwnPropertyDescriptor(a.prototype,b))&&b.get||null:null};
dla=function(a){var b=g.Ta.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[a]||null};
ela=function(a,b,c,d){if(a)return a.apply(b,d);if(g.Bs&&10>document.documentMode){if(!b[c].call)throw Error("IE Clobbering detected");}else if("function"!=typeof b[c])throw Error("Clobbering detected");return b[c].apply(b,d)};
kla=function(a){if(!a)return fla;var b=document.createElement("div").style;gla(a).forEach(function(c){var d=g.Rc&&c in hla?c:c.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");dc(d,"--")||dc(d,"var")||(c=ela(ila,a,a.getPropertyValue?"getPropertyValue":"getAttribute",[c])||"",c=bla(c),null!=c&&ela(jla,b,b.setProperty?"setProperty":"setAttribute",[d,c]))});
return new g.ke(b.cssText||"",we)};
gla=function(a){g.ab(a)?a=g.Lb(a):(a=g.dd(a),g.Hb(a,"cssText"));return a};
g.Dv=function(a){var b,c=b=0,d=!1;a=a.split(lla);for(var e=0;e<a.length;e++){var f=a[e];g.Cv.test(f)?(b++,c++):mla.test(f)?d=!0:nla.test(f)?c++:ola.test(f)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1;return-1==(0==b?null:b)?"rtl":"ltr"};
g.Hv=function(a){if(a instanceof Ev||a instanceof Fv||a instanceof Gv)return a;if("function"==typeof a.next)return new Ev(function(){return a});
if("function"==typeof a[Symbol.iterator])return new Ev(function(){return a[Symbol.iterator]()});
if("function"==typeof a.Sl)return new Ev(function(){return a.Sl()});
throw Error("Not an iterator or iterable.");};
Ev=function(a){this.B=a};
Fv=function(a){this.B=a};
Gv=function(a){Ev.call(this,function(){return a});
this.C=a};
Iv=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};
Jv=function(a,b){if(0==b)return a.j;if(1==b)return a.B;var c=Fe(a.j,a.x1,b),d=Fe(a.x1,a.x2,b);a=Fe(a.x2,a.B,b);c=Fe(c,d,b);d=Fe(d,a,b);return Fe(c,d,b)};
pla=function(a,b){var c=(b-a.j)/(a.B-a.j);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,h=0;8>h;h++){f=Jv(a,c);var l=(Jv(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else f<b?d=c:e=c,c-=(f-b)/l}for(h=0;1E-6<Math.abs(f-b)&&8>h;h++)f<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),f=Jv(a,c);return c};
Kv=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Lv=function(a){return(a=a.exec(g.pc()))?a[1]:""};
Mv=function(a){return 0<=g.mc(qla,a)};
g.Nv=function(a){g.I.call(this);this.K=1;this.C=[];this.D=0;this.j=[];this.B={};this.N=!!a};
rla=function(a,b,c){g.fg(function(){a.apply(b,c)})};
g.Ov=function(a){this.j=a};
Pv=function(a){this.j=a};
sla=function(a){this.data=a};
tla=function(a){return void 0===a||a instanceof sla?a:new sla(a)};
Qv=function(a){this.j=a};
g.ula=function(a){var b=a.creation;a=a.expiration;return!!a&&a<g.kb()||!!b&&b>g.kb()};
g.Rv=function(a){this.j=a};
vla=function(){};
Sv=function(){};
Tv=function(a){this.j=a;this.B=null};
Uv=function(a){if(null==a.j)throw Error("Storage mechanism: Storage unavailable");var b;(null!=(b=a.B)?b:a.isAvailable())||Tf(Error("Storage mechanism: Storage unavailable"))};
Vv=function(){var a=null;try{a=g.Ta.localStorage||null}catch(b){}Tv.call(this,a)};
wla=function(){var a=null;try{a=g.Ta.sessionStorage||null}catch(b){}Tv.call(this,a)};
Wv=function(a,b){this.B=a;this.j=b+"::"};
g.Xv=function(a){var b=new Vv;return b.isAvailable()?a?new Wv(b,a):b:null};
Yv=function(a,b){this.j=a;this.B=b};
Zv=function(a){this.j=[];if(a)a:{if(a instanceof Zv){var b=a.An();a=a.lm();if(0>=this.j.length){for(var c=this.j,d=0;d<b.length;d++)c.push(new Yv(b[d],a[d]));break a}}else b=g.dd(a),a=g.cd(a);for(c=0;c<b.length;c++)this.wh(b[c],a[c])}};
$v=function(){Zv.apply(this,arguments)};
aw=function(){};
xla=function(a){var b,c,d=a.length,e=0;for(b=0;b<d;b++){var f=a.charCodeAt(b);if(55296===(f&64512)&&b+1<d){var h=a.charCodeAt(b+1);56320===(h&64512)&&(f=65536+(f-55296<<10)+(h-56320),b++)}e+=128>f?1:2048>f?2:65536>f?3:4}var l=new bw.Ox(e);for(b=c=0;c<e;b++)f=a.charCodeAt(b),55296===(f&64512)&&b+1<d&&(h=a.charCodeAt(b+1),56320===(h&64512)&&(f=65536+(f-55296<<10)+(h-56320),b++)),128>f?l[c++]=f:(2048>f?l[c++]=192|f>>>6:(65536>f?l[c++]=224|f>>>12:(l[c++]=240|f>>>18,l[c++]=128|f>>>12&63),l[c++]=128|f>>>
6&63),l[c++]=128|f&63);return l};
cw=function(a){for(var b=a.length;0<=--b;)a[b]=0};
dw=function(a,b,c,d,e){this.E0=a;this.f7=b;this.e7=c;this.S6=d;this.t9=e;this.XX=a&&a.length};
ew=function(a,b){this.zW=a;this.uA=0;this.vu=b};
fw=function(a,b){a.pg[a.pending++]=b&255;a.pg[a.pending++]=b>>>8&255};
gw=function(a,b,c){a.ji>16-c?(a.ij|=b<<a.ji&65535,fw(a,a.ij),a.ij=b>>16-a.ji,a.ji+=c-16):(a.ij|=b<<a.ji&65535,a.ji+=c)};
hw=function(a,b,c){gw(a,c[2*b],c[2*b+1])};
yla=function(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(0<--b);return c>>>1};
zla=function(a,b,c){var d=Array(16),e=0,f;for(f=1;15>=f;f++)d[f]=e=e+c[f-1]<<1;for(c=0;c<=b;c++)e=a[2*c+1],0!==e&&(a[2*c]=yla(d[e]++,e))};
Ala=function(a){var b;for(b=0;286>b;b++)a.Sj[2*b]=0;for(b=0;30>b;b++)a.Fv[2*b]=0;for(b=0;19>b;b++)a.Ni[2*b]=0;a.Sj[512]=1;a.yr=a.DB=0;a.ym=a.matches=0};
Bla=function(a){8<a.ji?fw(a,a.ij):0<a.ji&&(a.pg[a.pending++]=a.ij);a.ij=0;a.ji=0};
Cla=function(a,b,c){Bla(a);fw(a,c);fw(a,~c);bw.Ky(a.pg,a.window,b,c,a.pending);a.pending+=c};
Dla=function(a,b,c,d){var e=2*b,f=2*c;return a[e]<a[f]||a[e]===a[f]&&d[b]<=d[c]};
iw=function(a,b,c){for(var d=a.xg[c],e=c<<1;e<=a.Vq;){e<a.Vq&&Dla(b,a.xg[e+1],a.xg[e],a.depth)&&e++;if(Dla(b,d,a.xg[e],a.depth))break;a.xg[c]=a.xg[e];c=e;e<<=1}a.xg[c]=d};
Ela=function(a,b,c){var d=0;if(0!==a.ym){do{var e=a.pg[a.gD+2*d]<<8|a.pg[a.gD+2*d+1];var f=a.pg[a.GP+d];d++;if(0===e)hw(a,f,b);else{var h=jw[f];hw(a,h+256+1,b);var l=kw[h];0!==l&&(f-=lw[h],gw(a,f,l));e--;h=256>e?mw[e]:mw[256+(e>>>7)];hw(a,h,c);l=nw[h];0!==l&&(e-=ow[h],gw(a,e,l))}}while(d<a.ym)}hw(a,256,b)};
pw=function(a,b){var c=b.zW,d=b.vu.E0,e=b.vu.XX,f=b.vu.S6,h,l=-1;a.Vq=0;a.Jz=573;for(h=0;h<f;h++)0!==c[2*h]?(a.xg[++a.Vq]=l=h,a.depth[h]=0):c[2*h+1]=0;for(;2>a.Vq;){var m=a.xg[++a.Vq]=2>l?++l:0;c[2*m]=1;a.depth[m]=0;a.yr--;e&&(a.DB-=d[2*m+1])}b.uA=l;for(h=a.Vq>>1;1<=h;h--)iw(a,c,h);m=f;do h=a.xg[1],a.xg[1]=a.xg[a.Vq--],iw(a,c,1),d=a.xg[1],a.xg[--a.Jz]=h,a.xg[--a.Jz]=d,c[2*m]=c[2*h]+c[2*d],a.depth[m]=(a.depth[h]>=a.depth[d]?a.depth[h]:a.depth[d])+1,c[2*h+1]=c[2*d+1]=m,a.xg[1]=m++,iw(a,c,1);while(2<=
a.Vq);a.xg[--a.Jz]=a.xg[1];h=b.zW;m=b.uA;d=b.vu.E0;e=b.vu.XX;f=b.vu.f7;var n=b.vu.e7,p=b.vu.t9,q,r=0;for(q=0;15>=q;q++)a.yq[q]=0;h[2*a.xg[a.Jz]+1]=0;for(b=a.Jz+1;573>b;b++){var t=a.xg[b];q=h[2*h[2*t+1]+1]+1;q>p&&(q=p,r++);h[2*t+1]=q;if(!(t>m)){a.yq[q]++;var v=0;t>=n&&(v=f[t-n]);var w=h[2*t];a.yr+=w*(q+v);e&&(a.DB+=w*(d[2*t+1]+v))}}if(0!==r){do{for(q=p-1;0===a.yq[q];)q--;a.yq[q]--;a.yq[q+1]+=2;a.yq[p]--;r-=2}while(0<r);for(q=p;0!==q;q--)for(t=a.yq[q];0!==t;)d=a.xg[--b],d>m||(h[2*d+1]!==q&&(a.yr+=(q-
h[2*d+1])*h[2*d],h[2*d+1]=q),t--)}zla(c,l,a.yq)};
Fla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);b[2*(c+1)+1]=65535;for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];++h<l&&n===f||(h<m?a.Ni[2*n]+=h:0!==n?(n!==e&&a.Ni[2*n]++,a.Ni[32]++):10>=h?a.Ni[34]++:a.Ni[36]++,h=0,e=n,0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4))}};
Gla=function(a,b,c){var d,e=-1,f=b[1],h=0,l=7,m=4;0===f&&(l=138,m=3);for(d=0;d<=c;d++){var n=f;f=b[2*(d+1)+1];if(!(++h<l&&n===f)){if(h<m){do hw(a,n,a.Ni);while(0!==--h)}else 0!==n?(n!==e&&(hw(a,n,a.Ni),h--),hw(a,16,a.Ni),gw(a,h-3,2)):10>=h?(hw(a,17,a.Ni),gw(a,h-3,3)):(hw(a,18,a.Ni),gw(a,h-11,7));h=0;e=n;0===f?(l=138,m=3):n===f?(l=6,m=3):(l=7,m=4)}}};
Hla=function(a){var b=4093624447,c;for(c=0;31>=c;c++,b>>>=1)if(b&1&&0!==a.Sj[2*c])return 0;if(0!==a.Sj[18]||0!==a.Sj[20]||0!==a.Sj[26])return 1;for(c=32;256>c;c++)if(0!==a.Sj[2*c])return 1;return 0};
qw=function(a,b,c){a.pg[a.gD+2*a.ym]=b>>>8&255;a.pg[a.gD+2*a.ym+1]=b&255;a.pg[a.GP+a.ym]=c&255;a.ym++;0===b?a.Sj[2*c]++:(a.matches++,b--,a.Sj[2*(jw[c]+256+1)]++,a.Fv[2*(256>b?mw[b]:mw[256+(b>>>7)])]++);return a.ym===a.GE-1};
tw=function(a,b){a.msg=rw[b];return b};
uw=function(a){for(var b=a.length;0<=--b;)a[b]=0};
vw=function(a){var b=a.state,c=b.pending;c>a.Je&&(c=a.Je);0!==c&&(bw.Ky(a.output,b.pg,b.uF,c,a.CA),a.CA+=c,b.uF+=c,a.GS+=c,a.Je-=c,b.pending-=c,0===b.pending&&(b.uF=0))};
yw=function(a,b){var c=0<=a.Ik?a.Ik:-1,d=a.Ab-a.Ik,e=0;if(0<a.level){2===a.ye.ON&&(a.ye.ON=Hla(a));pw(a,a.pJ);pw(a,a.TH);Fla(a,a.Sj,a.pJ.uA);Fla(a,a.Fv,a.TH.uA);pw(a,a.MV);for(e=18;3<=e&&0===a.Ni[2*Ila[e]+1];e--);a.yr+=3*(e+1)+14;var f=a.yr+3+7>>>3;var h=a.DB+3+7>>>3;h<=f&&(f=h)}else f=h=d+5;if(d+4<=f&&-1!==c)gw(a,b?1:0,3),Cla(a,c,d);else if(4===a.strategy||h===f)gw(a,2+(b?1:0),3),Ela(a,ww,xw);else{gw(a,4+(b?1:0),3);c=a.pJ.uA+1;d=a.TH.uA+1;e+=1;gw(a,c-257,5);gw(a,d-1,5);gw(a,e-4,4);for(f=0;f<e;f++)gw(a,
a.Ni[2*Ila[f]+1],3);Gla(a,a.Sj,c-1);Gla(a,a.Fv,d-1);Ela(a,a.Sj,a.Fv)}Ala(a);b&&Bla(a);a.Ik=a.Ab;vw(a.ye)};
zw=function(a,b){a.pg[a.pending++]=b};
Aw=function(a,b){a.pg[a.pending++]=b>>>8&255;a.pg[a.pending++]=b&255};
Jla=function(a,b){var c=a.aZ,d=a.Ab,e=a.Zk,f=a.tZ,h=a.Ab>a.cj-262?a.Ab-(a.cj-262):0,l=a.window,m=a.Gu,n=a.Up,p=a.Ab+258,q=l[d+e-1],r=l[d+e];a.Zk>=a.yX&&(c>>=2);f>a.hc&&(f=a.hc);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.sA=b;e=t;if(t>=f)break;q=l[d+e-1];r=l[d+e]}}}while((b=n[b&m])>h&&0!==
--c);return e<=a.hc?e:a.hc};
Dw=function(a){var b=a.cj,c;do{var d=a.P1-a.hc-a.Ab;if(a.Ab>=b+(b-262)){bw.Ky(a.window,a.window,b,b,0);a.sA-=b;a.Ab-=b;a.Ik-=b;var e=c=a.VI;do{var f=a.head[--e];a.head[e]=f>=b?f-b:0}while(--c);e=c=b;do f=a.Up[--e],a.Up[e]=f>=b?f-b:0;while(--c);d+=b}if(0===a.ye.hj)break;e=a.ye;c=a.window;f=a.Ab+a.hc;var h=e.hj;h>d&&(h=d);0===h?c=0:(e.hj-=h,bw.Ky(c,e.input,e.Mw,h,f),1===e.state.wrap?e.Wd=Bw(e.Wd,c,h,f):2===e.state.wrap&&(e.Wd=Cw(e.Wd,c,h,f)),e.Mw+=h,e.Ix+=h,c=h);a.hc+=c;if(3<=a.hc+a.wh)for(d=a.Ab-a.wh,
a.De=a.window[d],a.De=(a.De<<a.Tq^a.window[d+1])&a.Sq;a.wh&&!(a.De=(a.De<<a.Tq^a.window[d+3-1])&a.Sq,a.Up[d&a.Gu]=a.head[a.De],a.head[a.De]=d,d++,a.wh--,3>a.hc+a.wh););}while(262>a.hc&&0!==a.ye.hj)};
Ew=function(a,b){for(var c;;){if(262>a.hc){Dw(a);if(262>a.hc&&0===b)return 1;if(0===a.hc)break}c=0;3<=a.hc&&(a.De=(a.De<<a.Tq^a.window[a.Ab+3-1])&a.Sq,c=a.Up[a.Ab&a.Gu]=a.head[a.De],a.head[a.De]=a.Ab);0!==c&&a.Ab-c<=a.cj-262&&(a.Ye=Jla(a,c));if(3<=a.Ye)if(c=qw(a,a.Ab-a.sA,a.Ye-3),a.hc-=a.Ye,a.Ye<=a.RP&&3<=a.hc){a.Ye--;do a.Ab++,a.De=(a.De<<a.Tq^a.window[a.Ab+3-1])&a.Sq,a.Up[a.Ab&a.Gu]=a.head[a.De],a.head[a.De]=a.Ab;while(0!==--a.Ye);a.Ab++}else a.Ab+=a.Ye,a.Ye=0,a.De=a.window[a.Ab],a.De=(a.De<<a.Tq^
a.window[a.Ab+1])&a.Sq;else c=qw(a,0,a.window[a.Ab]),a.hc--,a.Ab++;if(c&&(yw(a,!1),0===a.ye.Je))return 1}a.wh=2>a.Ab?a.Ab:2;return 4===b?(yw(a,!0),0===a.ye.Je?3:4):a.ym&&(yw(a,!1),0===a.ye.Je)?1:2};
Fw=function(a,b){for(var c,d;;){if(262>a.hc){Dw(a);if(262>a.hc&&0===b)return 1;if(0===a.hc)break}c=0;3<=a.hc&&(a.De=(a.De<<a.Tq^a.window[a.Ab+3-1])&a.Sq,c=a.Up[a.Ab&a.Gu]=a.head[a.De],a.head[a.De]=a.Ab);a.Zk=a.Ye;a.x_=a.sA;a.Ye=2;0!==c&&a.Zk<a.RP&&a.Ab-c<=a.cj-262&&(a.Ye=Jla(a,c),5>=a.Ye&&(1===a.strategy||3===a.Ye&&4096<a.Ab-a.sA)&&(a.Ye=2));if(3<=a.Zk&&a.Ye<=a.Zk){d=a.Ab+a.hc-3;c=qw(a,a.Ab-1-a.x_,a.Zk-3);a.hc-=a.Zk-1;a.Zk-=2;do++a.Ab<=d&&(a.De=(a.De<<a.Tq^a.window[a.Ab+3-1])&a.Sq,a.Up[a.Ab&a.Gu]=
a.head[a.De],a.head[a.De]=a.Ab);while(0!==--a.Zk);a.Gw=0;a.Ye=2;a.Ab++;if(c&&(yw(a,!1),0===a.ye.Je))return 1}else if(a.Gw){if((c=qw(a,0,a.window[a.Ab-1]))&&yw(a,!1),a.Ab++,a.hc--,0===a.ye.Je)return 1}else a.Gw=1,a.Ab++,a.hc--}a.Gw&&(qw(a,0,a.window[a.Ab-1]),a.Gw=0);a.wh=2>a.Ab?a.Ab:2;return 4===b?(yw(a,!0),0===a.ye.Je?3:4):a.ym&&(yw(a,!1),0===a.ye.Je)?1:2};
Kla=function(a,b){for(var c,d,e,f=a.window;;){if(258>=a.hc){Dw(a);if(258>=a.hc&&0===b)return 1;if(0===a.hc)break}a.Ye=0;if(3<=a.hc&&0<a.Ab&&(d=a.Ab-1,c=f[d],c===f[++d]&&c===f[++d]&&c===f[++d])){for(e=a.Ab+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.Ye=258-(e-d);a.Ye>a.hc&&(a.Ye=a.hc)}3<=a.Ye?(c=qw(a,1,a.Ye-3),a.hc-=a.Ye,a.Ab+=a.Ye,a.Ye=0):(c=qw(a,0,a.window[a.Ab]),a.hc--,a.Ab++);if(c&&(yw(a,!1),0===a.ye.Je))return 1}a.wh=0;return 4===
b?(yw(a,!0),0===a.ye.Je?3:4):a.ym&&(yw(a,!1),0===a.ye.Je)?1:2};
Lla=function(a,b){for(var c;;){if(0===a.hc&&(Dw(a),0===a.hc)){if(0===b)return 1;break}a.Ye=0;c=qw(a,0,a.window[a.Ab]);a.hc--;a.Ab++;if(c&&(yw(a,!1),0===a.ye.Je))return 1}a.wh=0;return 4===b?(yw(a,!0),0===a.ye.Je?3:4):a.ym&&(yw(a,!1),0===a.ye.Je)?1:2};
Gw=function(a,b,c,d,e){this.V7=a;this.s9=b;this.J9=c;this.r9=d;this.func=e};
Mla=function(){this.ye=null;this.status=0;this.pg=null;this.wrap=this.pending=this.uF=this.Dm=0;this.Pd=null;this.Gn=0;this.method=8;this.iA=-1;this.Gu=this.aT=this.cj=0;this.window=null;this.P1=0;this.head=this.Up=null;this.tZ=this.yX=this.strategy=this.level=this.RP=this.aZ=this.Zk=this.hc=this.sA=this.Ab=this.Gw=this.x_=this.Ye=this.Ik=this.Tq=this.Sq=this.dP=this.VI=this.De=0;this.Sj=new bw.lq(1146);this.Fv=new bw.lq(122);this.Ni=new bw.lq(78);uw(this.Sj);uw(this.Fv);uw(this.Ni);this.MV=this.TH=
this.pJ=null;this.yq=new bw.lq(16);this.xg=new bw.lq(573);uw(this.xg);this.Jz=this.Vq=0;this.depth=new bw.lq(573);uw(this.depth);this.ji=this.ij=this.wh=this.matches=this.DB=this.yr=this.gD=this.ym=this.GE=this.GP=0};
Nla=function(a,b){if(!a||!a.state||5<b||0>b)return a?tw(a,-2):-2;var c=a.state;if(!a.output||!a.input&&0!==a.hj||666===c.status&&4!==b)return tw(a,0===a.Je?-5:-2);c.ye=a;var d=c.iA;c.iA=b;if(42===c.status)if(2===c.wrap)a.Wd=0,zw(c,31),zw(c,139),zw(c,8),c.Pd?(zw(c,(c.Pd.text?1:0)+(c.Pd.nt?2:0)+(c.Pd.extra?4:0)+(c.Pd.name?8:0)+(c.Pd.comment?16:0)),zw(c,c.Pd.time&255),zw(c,c.Pd.time>>8&255),zw(c,c.Pd.time>>16&255),zw(c,c.Pd.time>>24&255),zw(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),zw(c,c.Pd.os&
255),c.Pd.extra&&c.Pd.extra.length&&(zw(c,c.Pd.extra.length&255),zw(c,c.Pd.extra.length>>8&255)),c.Pd.nt&&(a.Wd=Cw(a.Wd,c.pg,c.pending,0)),c.Gn=0,c.status=69):(zw(c,0),zw(c,0),zw(c,0),zw(c,0),zw(c,0),zw(c,9===c.level?2:2<=c.strategy||2>c.level?4:0),zw(c,3),c.status=113);else{var e=8+(c.aT-8<<4)<<8;e|=(2<=c.strategy||2>c.level?0:6>c.level?1:6===c.level?2:3)<<6;0!==c.Ab&&(e|=32);c.status=113;Aw(c,e+(31-e%31));0!==c.Ab&&(Aw(c,a.Wd>>>16),Aw(c,a.Wd&65535));a.Wd=1}if(69===c.status)if(c.Pd.extra){for(e=
c.pending;c.Gn<(c.Pd.extra.length&65535)&&(c.pending!==c.Dm||(c.Pd.nt&&c.pending>e&&(a.Wd=Cw(a.Wd,c.pg,c.pending-e,e)),vw(a),e=c.pending,c.pending!==c.Dm));)zw(c,c.Pd.extra[c.Gn]&255),c.Gn++;c.Pd.nt&&c.pending>e&&(a.Wd=Cw(a.Wd,c.pg,c.pending-e,e));c.Gn===c.Pd.extra.length&&(c.Gn=0,c.status=73)}else c.status=73;if(73===c.status)if(c.Pd.name){e=c.pending;do{if(c.pending===c.Dm&&(c.Pd.nt&&c.pending>e&&(a.Wd=Cw(a.Wd,c.pg,c.pending-e,e)),vw(a),e=c.pending,c.pending===c.Dm)){var f=1;break}f=c.Gn<c.Pd.name.length?
c.Pd.name.charCodeAt(c.Gn++)&255:0;zw(c,f)}while(0!==f);c.Pd.nt&&c.pending>e&&(a.Wd=Cw(a.Wd,c.pg,c.pending-e,e));0===f&&(c.Gn=0,c.status=91)}else c.status=91;if(91===c.status)if(c.Pd.comment){e=c.pending;do{if(c.pending===c.Dm&&(c.Pd.nt&&c.pending>e&&(a.Wd=Cw(a.Wd,c.pg,c.pending-e,e)),vw(a),e=c.pending,c.pending===c.Dm)){f=1;break}f=c.Gn<c.Pd.comment.length?c.Pd.comment.charCodeAt(c.Gn++)&255:0;zw(c,f)}while(0!==f);c.Pd.nt&&c.pending>e&&(a.Wd=Cw(a.Wd,c.pg,c.pending-e,e));0===f&&(c.status=103)}else c.status=
103;103===c.status&&(c.Pd.nt?(c.pending+2>c.Dm&&vw(a),c.pending+2<=c.Dm&&(zw(c,a.Wd&255),zw(c,a.Wd>>8&255),a.Wd=0,c.status=113)):c.status=113);if(0!==c.pending){if(vw(a),0===a.Je)return c.iA=-1,0}else if(0===a.hj&&(b<<1)-(4<b?9:0)<=(d<<1)-(4<d?9:0)&&4!==b)return tw(a,-5);if(666===c.status&&0!==a.hj)return tw(a,-5);if(0!==a.hj||0!==c.hc||0!==b&&666!==c.status){d=2===c.strategy?Lla(c,b):3===c.strategy?Kla(c,b):Hw[c.level].func(c,b);if(3===d||4===d)c.status=666;if(1===d||3===d)return 0===a.Je&&(c.iA=
-1),0;if(2===d&&(1===b?(gw(c,2,3),hw(c,256,ww),16===c.ji?(fw(c,c.ij),c.ij=0,c.ji=0):8<=c.ji&&(c.pg[c.pending++]=c.ij&255,c.ij>>=8,c.ji-=8)):5!==b&&(gw(c,0,3),Cla(c,0,0),3===b&&(uw(c.head),0===c.hc&&(c.Ab=0,c.Ik=0,c.wh=0))),vw(a),0===a.Je))return c.iA=-1,0}if(4!==b)return 0;if(0>=c.wrap)return 1;2===c.wrap?(zw(c,a.Wd&255),zw(c,a.Wd>>8&255),zw(c,a.Wd>>16&255),zw(c,a.Wd>>24&255),zw(c,a.Ix&255),zw(c,a.Ix>>8&255),zw(c,a.Ix>>16&255),zw(c,a.Ix>>24&255)):(Aw(c,a.Wd>>>16),Aw(c,a.Wd&65535));vw(a);0<c.wrap&&
(c.wrap=-c.wrap);return 0!==c.pending?0:1};
Iw=function(a){if(!(this instanceof Iw))return new Iw(a);a=this.options=bw.assign({level:-1,method:8,chunkSize:16384,Hu:15,y9:8,strategy:0,to:""},a||{});a.raw&&0<a.Hu?a.Hu=-a.Hu:a.W7&&0<a.Hu&&16>a.Hu&&(a.Hu+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.ye=new Ola;this.ye.Je=0;var b=this.ye;var c=a.level,d=a.method,e=a.Hu,f=a.y9,h=a.strategy;if(b){var l=1;-1===c&&(c=6);0>e?(l=0,e=-e):15<e&&(l=2,e-=16);if(1>f||9<f||8!==d||8>e||15<e||0>c||9<c||0>h||4<h)b=tw(b,-2);else{8===e&&(e=9);var m=
new Mla;b.state=m;m.ye=b;m.wrap=l;m.Pd=null;m.aT=e;m.cj=1<<m.aT;m.Gu=m.cj-1;m.dP=f+7;m.VI=1<<m.dP;m.Sq=m.VI-1;m.Tq=~~((m.dP+3-1)/3);m.window=new bw.Ox(2*m.cj);m.head=new bw.lq(m.VI);m.Up=new bw.lq(m.cj);m.GE=1<<f+6;m.Dm=4*m.GE;m.pg=new bw.Ox(m.Dm);m.gD=1*m.GE;m.GP=3*m.GE;m.level=c;m.strategy=h;m.method=d;if(b&&b.state){b.Ix=b.GS=0;b.ON=2;c=b.state;c.pending=0;c.uF=0;0>c.wrap&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.Wd=2===c.wrap?0:1;c.iA=0;if(!Pla){d=Array(16);for(f=h=0;28>f;f++)for(lw[f]=h,e=0;e<
1<<kw[f];e++)jw[h++]=f;jw[h-1]=f;for(f=h=0;16>f;f++)for(ow[f]=h,e=0;e<1<<nw[f];e++)mw[h++]=f;for(h>>=7;30>f;f++)for(ow[f]=h<<7,e=0;e<1<<nw[f]-7;e++)mw[256+h++]=f;for(e=0;15>=e;e++)d[e]=0;for(e=0;143>=e;)ww[2*e+1]=8,e++,d[8]++;for(;255>=e;)ww[2*e+1]=9,e++,d[9]++;for(;279>=e;)ww[2*e+1]=7,e++,d[7]++;for(;287>=e;)ww[2*e+1]=8,e++,d[8]++;zla(ww,287,d);for(e=0;30>e;e++)xw[2*e+1]=5,xw[2*e]=yla(e,5);Qla=new dw(ww,kw,257,286,15);Rla=new dw(xw,nw,0,30,15);Sla=new dw([],Tla,0,19,7);Pla=!0}c.pJ=new ew(c.Sj,Qla);
c.TH=new ew(c.Fv,Rla);c.MV=new ew(c.Ni,Sla);c.ij=0;c.ji=0;Ala(c);c=0}else c=tw(b,-2);0===c&&(b=b.state,b.P1=2*b.cj,uw(b.head),b.RP=Hw[b.level].s9,b.yX=Hw[b.level].V7,b.tZ=Hw[b.level].J9,b.aZ=Hw[b.level].r9,b.Ab=0,b.Ik=0,b.hc=0,b.wh=0,b.Ye=b.Zk=2,b.Gw=0,b.De=0);b=c}}else b=-2;if(0!==b)throw Error(rw[b]);a.header&&(b=this.ye)&&b.state&&2===b.state.wrap&&(b.state.Pd=a.header);if(a.hD){var n;"string"===typeof a.hD?n=xla(a.hD):"[object ArrayBuffer]"===Ula.call(a.hD)?n=new Uint8Array(a.hD):n=a.hD;a=this.ye;
f=n;h=f.length;if(a&&a.state)if(n=a.state,b=n.wrap,2===b||1===b&&42!==n.status||n.hc)b=-2;else{1===b&&(a.Wd=Bw(a.Wd,f,h,0));n.wrap=0;h>=n.cj&&(0===b&&(uw(n.head),n.Ab=0,n.Ik=0,n.wh=0),c=new bw.Ox(n.cj),bw.Ky(c,f,h-n.cj,n.cj,0),f=c,h=n.cj);c=a.hj;d=a.Mw;e=a.input;a.hj=h;a.Mw=0;a.input=f;for(Dw(n);3<=n.hc;){f=n.Ab;h=n.hc-2;do n.De=(n.De<<n.Tq^n.window[f+3-1])&n.Sq,n.Up[f&n.Gu]=n.head[n.De],n.head[n.De]=f,f++;while(--h);n.Ab=f;n.hc=2;Dw(n)}n.Ab+=n.hc;n.Ik=n.Ab;n.wh=n.hc;n.hc=0;n.Ye=n.Zk=2;n.Gw=0;a.Mw=
d;a.input=e;a.hj=c;n.wrap=b;b=0}else b=-2;if(0!==b)throw Error(rw[b]);this.Omb=!0}};
Vla=function(a,b){b=b||{};b.W7=!0;b=new Iw(b);b.push(a,!0);if(b.err)throw b.msg||rw[b.err];return b.result};
Wla=function(){var a=g.Ia.apply(0,arguments);return 0===a.length?function(b){return b}:1===a.length?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,g.qa(g.Ia.apply(0,arguments))))}})};
Xla=function(){var a=g.Ia.apply(0,arguments);return function(b){return function(c,d){function e(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");}
c=b(c,d);var f={getState:c.getState,dispatch:function(h){return e.apply(null,[h].concat(g.qa(g.Ia.apply(1,arguments))))}};
d=a.map(function(h){return h(f)});
e=Wla.apply(null,g.qa(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
Jw=function(){return Math.random().toString(36).substring(7).split("").join(".")};
Yla=function(a){Object.keys(a).forEach(function(b){var c=a[b];if("undefined"===typeof c(void 0,{type:Kw}))throw Error('The slice reducer for key "'+b+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Jw()}))throw Error('The slice reducer for key "'+
b+"\" returned undefined when probed with a random type. Don't try to handle '"+(Kw+'\' 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.'));})};
Zla=function(a,b,c,d){function e(){if(q)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return m}
function f(t){if("function"!==typeof t)throw Error("Expected the listener to be a function. Instead, received: '"+typeof t+"'");if(q)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var v=!0;p===n&&(p=n.slice());p.push(t);return function(){if(v){if(q)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");
v=!1;p===n&&(p=n.slice());p.splice(p.indexOf(t),1);n=null}}}
function h(t){if("object"!==typeof t||null===t)var v=!1;else{for(v=t;null!==Object.getPrototypeOf(v);)v=Object.getPrototypeOf(v);v=Object.getPrototypeOf(t)===v}if(!v)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof t+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
if("undefined"===typeof t.type)throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(q)throw Error("Reducers may not dispatch actions.");try{q=!0,m=l(m,t)}finally{q=!1}v=n=p;for(var w=0;w<v.length;w++)(0,v[w])();return t}
if("function"===typeof b&&"function"===typeof c||"function"===typeof c&&"function"===typeof d)throw Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");"function"===typeof b&&"undefined"===typeof c&&(c=b,b=void 0);if("undefined"!==typeof c){if("function"!==typeof c)throw Error("Expected the enhancer to be a function. Instead, received: '"+
typeof c+"'");return c(Zla)(a,b)}if("function"!==typeof a)throw Error("Expected the root reducer to be a function. Instead, received: '"+typeof a+"'");var l=a,m=b,n=[],p=n,q=!1;h({type:Kw});a={};var r=(a.dispatch=h,a.subscribe=f,a.getState=e,a.replaceReducer=function(t){if("function"!==typeof t)throw Error("Expected the nextReducer to be a function. Instead, received: '"+typeof t);l=t;h({type:$la});return r},a[ama]=function(){var t={};
return t.subscribe=function(v){function w(){v.next&&v.next(e())}
if("object"!==typeof v||null===v)throw new TypeError("Expected the observer to be an object. Instead, received: '"+typeof v+"'");w();return{unsubscribe:f(w)}},t[ama]=function(){return this},t},a);
return r};
bma=function(a){return a?(a=a.privateDoNotAccessOrElseSafeScriptWrappedValue)?Gba(a):null:null};
Lw=function(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?Yd(a):null:null};
dma=function(a){a=cma(a);return re(a)};
g.Mw=function(a){a=cma(a);return Yd(a)};
cma=function(a){return null===a?"null":void 0===a?"undefined":a};
Nw=function(a){this.ea=P(a)};
ema=function(a){var b=a.split(""),c=[-1537908352,function(d,e,f,h,l){return e(f,h,l)},
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},
-1666695271,-106837546,-250737978,1648531650,808540394,517445039,-675036924,-1332099025,-665355487,899990130,675569584,b,-1171266471,736444058,-1066236535,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(-e).reverse().forEach(function(f){d.unshift(f)})},
function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
function(d,e){if(0!=e.length){d=(d%e.length+e.length)%e.length;var f=e[0];e[0]=e[d];e[d]=f}},
function(d,e,f,h,l,m,n){return d(l,m,n)},
707235013,-275681566,588812369,777085846,-1788926088,-2077355140,1905647404,1442215677,2087986763,-827965801,113940777,function(d){d.reverse()},
422493608,1019436304,-1066236535,function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 58:d-=14;case 91:case 92:case 93:continue;case 123:d=47;case 94:case 95:case 96:continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
b,1743682167,-1972414822,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},
"-",-1991316522,-827965801,-497986679,1870722699,-1490685784,374656762,function(d,e,f,h,l,m,n,p){return e(f,h,l,m,n,p)},
885620659,-1493051542,-427055191,function(d,e){e.push(d)},
1950303240,1731264525,777085846,-1251865111,92237985,null,function(d,e){e=(e%d.length+d.length)%d.length;d.splice(e,1)},
null,function(d,e,f,h,l,m,n){return d(l,m,n)},
"Lm6zt",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},
";,};{;",-935927685,function(d,e,f,h,l,m){return e(h,l,m)},
function(d,e){for(d=(d%e.length+e.length)%e.length;d--;)e.unshift(e.pop())},
517445039,b,2064122032,function(d,e){0!=d.length&&(e=(e%d.length+d.length)%d.length,d.splice(0,1,d.splice(e,1,d[0])[0]))},
482937094,function(d,e){d.splice(d.length,0,e)},
-41952308,function(d,e,f){var h=d.length;e.forEach(function(l,m,n){this.push(n[m]=d[(d.indexOf(l)-d.indexOf(this[m])+m+h--)%d.length])},f.split(""))},
null,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},
1328341802,-39699019,-69244645,336253318];c[59]=c;c[61]=c;c[77]=c;try{try{(c[16]<47-Math.pow(3,3)-18||((0,c[20])(c[40],c[77]),""))&&(0,c[60])(c[77],c[69])}catch(d){(0,c[76])((0,c[64])(),c[14],c[63])}try{6!==c[34]&&(0,c[49])((0,c[76])((0,c[78])(),c[14],c[42]),c[67],(0,c[1])((0,c[60])(c[70],c[21012-Math.pow(5,4)-20329]),c[72],c[70],c[80]),c[68],(0,c[20])(c[17],c[77]),c[75],c[Math.pow(6,5)%268+57]),5<c[64]&&(-8<c[78]?(0,c[8])((0,c[35])((0,c[37])(),c[80],c[1]),c[43],(0,c[43])((0,c[43])((0,c[35])((0,c[0])(),
c[29],c[1]),c[35],(0,c[44])(),c[29],c[1]),c[62],c[40],c[56]),c[31],c[20],c[new Date("1970-01-01T08:00:07.000+08:00")/1E3]):(0,c[61])(c[18])===((0,c[70])(c[2],c[new Date("1969-12-31T17:00:46.000-07:00")/1E3])!==(0,c[22])(c[62],c[80]))===(0,c[39*Math.pow(6,5)-303231])((0,c[64])(c[81],c[58]),c[1],c[40]))}catch(d){(0,c[35])(c[23],c[64]),(0,c[39])(c[4],c[65])}finally{-3!=c[22]&&(((0,c[113*Math.pow(6,3)+-24339])(c[26]),c[147758+-114*Math.pow(6,4)])(c[38],c[20]),c[45])(c[80],c[71])}try{-2!==c[10]&&(-2<c[3]?
((0,c[15])(c[47]),(0,c[45])(c[40],c[11]),c[57])(c[20],c[46]):(0,c[33])((0,c[33])((0,c[14])(c[Math.pow(2,4)%108- -11],c[77]),c[49],c[70],c[56]),c[61],c[11],c[50])),7>=c[51]?(0,c[49])((0,c[57])((0,c[48])(),c[36],c[6]),c[30],c[45],c[72]):(0,c[49])((0,c[61])(c[8],c[28]),c[65],c[26],c[72]),-4<c[-2*Math.pow(3,4)+207]&&((0,c[78])((0,c[9])(c[51],c[18]),c[28],c[42],c[19]),c[28])(c[62],c[56]),-5>=c[21]&&(-6>c[3]&&(((0,c[80])(c[19],c[51]),c[9])(c[61],c[35]),1)||(0,c[28])((0,c[52])(c[35],c[26]),c[36],(0,c[27])(),
c[72],c[49])),-7!==c[46]&&(8<=c[30]&&(((0,c[28])((0,c[38])(c[35],c[37]),c[52],c[72],c[60]),c[9])(c[84],c[35]),1)||(0,c[45])((0,c[40])(c[72],c[82]),c[52],(0,c[40])(c[51],c[80]),c[53],c[63])),-9===c[22]?((0,c[40])(c[72],c[62]),c[52])(c[310-257%Math.pow(8,5)],c[83]):(0,c[81])(c[75])+(0,c[59])(c[71],c[35]),c[46]!==376964-157*Math.pow(7,4)&&((0,c[50])(c[40],(0,c[52])(c[75],c[57]),(0,c[81])(c[72]),((0,c[9])(c[19],c[35]),c[81])(c[new Date("1969-12-31T21:31:15.000-02:30")/1E3]),c[35],c[17]),1)||((((0,c[44])(c[13],
c[75]),c[10])(c[75]),(0,c[2921+Math.pow(6,4)-new Date("1970-01-01T09:24:25.000+08:15")/1E3])(c[72],c[30]),c[52])(c[Math.pow(8,3)-12+-428],c[25]),c[10])(c[35])}catch(d){(0,c[28])((0,c[28])(((0,c[52])(c[15],c[20]),c[36])((0,c[79])(),c[15],c[49]),c[52],c[53],c[23]),c[81],c[72]),(0,c[28])((0,c[52])(c[35],c[74]),c[52],c[15],c[55]),(0,c[52])(c[42],c[39])}finally{3!==c[30]&&(0,c[36])((0,c[27])(),c[75],c[49])^((0,c[10])(c[75]),c[52])(c[42],c[18]),8>=c[85]&&(2<=c[65]||(((0,c[28])((0,c[9])(c[3],c[51]),c[40],
c[72],c[46]),c[11])(c[72],c[2]),NaN))&&(0,c[28])((0,c[36])((0,c[27])(),c[0],c[70]),c[new Date("1969-12-31T19:00:44.000-05:00")/1E3],c[16],c[42])<<(0,c[81])(c[51])}}catch(d){return"enhanced_except__ZoBguX-_w8_"+a}return b.join("")};
g.Ow=function(a){this.name=a};
Pw=function(a){this.ea=P(a)};
Qw=function(a){this.ea=P(a)};
Rw=function(a){this.ea=P(a)};
Sw=function(a){this.ea=P(a)};
Tw=function(a){this.ea=P(a)};
Uw=function(a){this.ea=P(a)};
Vw=function(a){this.ea=P(a)};
Ww=function(a){this.ea=P(a)};
Xw=function(a){this.ea=P(a)};
Yw=function(a){this.ea=P(a)};
Zw=function(a){this.ea=P(a)};
$w=function(a){this.ea=P(a)};
ax=function(a){this.ea=P(a)};
bx=function(a){this.ea=P(a)};
cx=function(a){this.ea=P(a)};
dx=function(a){this.ea=P(a)};
ex=function(a){this.ea=P(a)};
fx=function(a){this.ea=P(a)};
gx=function(a){this.ea=P(a)};
hx=function(a){this.ea=P(a)};
ix=function(a){this.ea=P(a)};
jx=function(a){this.ea=P(a)};
kx=function(a){this.ea=P(a)};
lx=function(a){this.ea=P(a)};
mx=function(a){this.ea=P(a)};
nx=function(a){this.ea=P(a)};
ox=function(a){this.ea=P(a)};
px=function(a){this.ea=P(a)};
qx=function(a){this.ea=P(a)};
rx=function(a){this.ea=P(a)};
sx=function(a){this.ea=P(a)};
tx=function(a){this.ea=P(a)};
ux=function(a){this.ea=P(a)};
vx=function(a){this.ea=P(a)};
wx=function(a){this.ea=P(a)};
xx=function(a){this.ea=P(a)};
yx=function(a){this.ea=P(a)};
zx=function(a){this.ea=P(a)};
Ax=function(a){this.ea=P(a)};
Bx=function(a){this.ea=P(a)};
Px=function(a){this.ea=P(a)};
Qx=function(a){this.ea=P(a)};
Rx=function(a){this.ea=P(a)};
Sx=function(a){this.ea=P(a)};
Tx=function(a){this.ea=P(a)};
Ux=function(a){this.ea=P(a)};
Vx=function(a){this.ea=P(a)};
Wx=function(a){this.ea=P(a)};
Xx=function(a){this.ea=P(a)};
Yx=function(a){this.ea=P(a)};
Zx=function(a){this.ea=P(a)};
$x=function(a){this.ea=P(a)};
ay=function(a){this.ea=P(a)};
by=function(a){this.ea=P(a)};
cy=function(a){this.ea=P(a)};
dy=function(a){this.ea=P(a)};
ey=function(a){this.ea=P(a)};
fy=function(a){this.ea=P(a)};
gy=function(a){this.ea=P(a)};
hy=function(a){this.ea=P(a)};
iy=function(a){this.ea=P(a)};
jy=function(a){this.ea=P(a)};
ky=function(a){this.ea=P(a)};
ly=function(a){this.ea=P(a)};
my=function(a){this.ea=P(a)};
ny=function(a){this.ea=P(a)};
fma=function(a){this.ea=P(a)};
gma=function(a){this.ea=P(a)};
hma=function(a){this.ea=P(a)};
ima=function(a){this.ea=P(a)};
jma=function(a){this.ea=P(a)};
oy=function(a){this.ea=P(a)};
kma=function(a){this.ea=P(a)};
lma=function(a){this.ea=P(a)};
mma=function(a){this.ea=P(a)};
py=function(a){this.ea=P(a)};
nma=function(a){this.ea=P(a)};
oma=function(a){this.ea=P(a)};
pma=function(a){this.ea=P(a)};
qy=function(a){this.ea=P(a)};
qma=function(a){this.ea=P(a)};
ry=function(a){this.ea=P(a)};
rma=function(a,b){return Ek(a,1,b)};
sy=function(a){this.ea=P(a)};
ty=function(a){this.ea=P(a)};
uy=function(a){this.ea=P(a)};
vy=function(a){this.ea=P(a)};
wy=function(a){this.ea=P(a)};
yy=function(a){this.ea=P(a)};
sma=function(a){this.ea=P(a)};
tma=function(a){this.ea=P(a)};
zy=function(a){this.ea=P(a)};
uma=function(a){this.ea=P(a)};
Ay=function(a){this.ea=P(a)};
By=function(a){this.ea=P(a)};
Cy=function(a){this.ea=P(a)};
Dy=function(a){this.ea=P(a)};
Ey=function(a){this.ea=P(a)};
Fy=function(a){this.ea=P(a)};
Gy=function(a){this.ea=P(a)};
Hy=function(a){this.ea=P(a)};
vma=function(a){this.ea=P(a)};
wma=function(a){this.ea=P(a)};
xma=function(a){this.ea=P(a)};
yma=function(a){this.ea=P(a)};
zma=function(a){this.ea=P(a)};
Iy=function(a){this.ea=P(a)};
Ama=function(a){this.ea=P(a)};
Bma=function(a){this.ea=P(a)};
Cma=function(a){this.ea=P(a)};
Dma=function(a){this.ea=P(a)};
Jy=function(a){this.ea=P(a)};
Ema=function(a){this.ea=P(a)};
Fma=function(a){this.ea=P(a)};
Gma=function(a){this.ea=P(a)};
Ky=function(a){this.ea=P(a)};
Ly=function(a){this.ea=P(a)};
My=function(a){this.ea=P(a)};
Ny=function(a){this.ea=P(a)};
Oy=function(a){this.ea=P(a)};
Py=function(a){this.ea=P(a)};
Hma=function(a){this.ea=P(a)};
Qy=function(a){this.ea=P(a)};
Ry=function(a){this.ea=P(a)};
Sy=function(a){this.ea=P(a)};
Ty=function(a){this.ea=P(a)};
Ima=function(a){this.ea=P(a)};
Uy=function(a){this.ea=P(a)};
Vy=function(a){this.ea=P(a)};
Wy=function(a){this.ea=P(a)};
Jma=function(a){this.ea=P(a)};
Kma=function(a){this.ea=P(a)};
Xy=function(a){this.ea=P(a)};
Yy=function(a){this.ea=P(a)};
Zy=function(a){this.ea=P(a)};
$y=function(a){this.ea=P(a)};
az=function(a){this.ea=P(a)};
bz=function(a){this.ea=P(a)};
cz=function(a){this.ea=P(a)};
dz=function(a){this.ea=P(a)};
Lma=function(a){this.ea=P(a)};
Mma=function(a){this.ea=P(a)};
ez=function(a){this.ea=P(a)};
Nma=function(a){this.ea=P(a)};
Oma=function(a){this.ea=P(a)};
Pma=function(a){this.ea=P(a)};
fz=function(a){this.ea=P(a)};
Qma=function(a){this.ea=P(a)};
Rma=function(a){this.ea=P(a)};
Sma=function(a){this.ea=P(a)};
gz=function(a){this.ea=P(a)};
Tma=function(a){this.ea=P(a)};
hz=function(a){this.ea=P(a)};
iz=function(a){this.ea=P(a)};
jz=function(a){this.ea=P(a)};
Uma=function(a){this.ea=P(a)};
kz=function(a){this.ea=P(a)};
Vma=function(a){this.ea=P(a)};
lz=function(a){this.ea=P(a)};
mz=function(a){this.ea=P(a)};
Wma=function(a){this.ea=P(a)};
nz=function(a){this.ea=P(a)};
Xma=function(a){this.ea=P(a)};
oz=function(a){this.ea=P(a)};
Yma=function(a){this.ea=P(a)};
Zma=function(a){this.ea=P(a)};
$ma=function(a){this.ea=P(a)};
pz=function(a){this.ea=P(a)};
ana=function(a){this.ea=P(a)};
qz=function(a){this.ea=P(a)};
rz=function(a){this.ea=P(a)};
sz=function(a){this.ea=P(a)};
bna=function(a){this.ea=P(a)};
tz=function(a){this.ea=P(a)};
cna=function(a){this.ea=P(a)};
uz=function(a){this.ea=P(a)};
vz=function(a){this.ea=P(a)};
wz=function(a){this.ea=P(a)};
xz=function(a){this.ea=P(a)};
g.yz=function(a){this.ea=P(a)};
g.zz=function(a){this.ea=P(a)};
Az=function(a){this.ea=P(a)};
Bz=function(a){this.ea=P(a)};
Cz=function(a){this.ea=P(a)};
dna=function(a){this.ea=P(a)};
Dz=function(a){this.ea=P(a)};
Ez=function(a){this.ea=P(a)};
Fz=function(a){this.ea=P(a)};
ena=function(a){this.ea=P(a)};
Gz=function(a){this.ea=P(a)};
Hz=function(a){this.ea=P(a)};
Iz=function(a){this.ea=P(a)};
Jz=function(a){this.ea=P(a)};
fna=function(a){this.ea=P(a)};
Kz=function(a){this.ea=P(a)};
Lz=function(a){this.ea=P(a)};
Mz=function(a){this.ea=P(a)};
Nz=function(a){this.ea=P(a)};
Oz=function(a){this.ea=P(a)};
gna=function(a){this.ea=P(a)};
Pz=function(a){this.ea=P(a)};
hna=function(a){this.ea=P(a)};
Qz=function(a){this.ea=P(a)};
ina=function(a){this.ea=P(a)};
jna=function(a){this.ea=P(a)};
Rz=function(a){this.ea=P(a)};
Sz=function(a){this.ea=P(a)};
kna=function(a){this.ea=P(a)};
Tz=function(a){this.ea=P(a)};
Uz=function(a){this.ea=P(a)};
Vz=function(a){this.ea=P(a)};
lna=function(a){this.ea=P(a)};
mna=function(a){this.ea=P(a)};
nna=function(a){this.ea=P(a)};
ona=function(a){this.ea=P(a)};
Wz=function(a){this.ea=P(a)};
Xz=function(a){this.ea=P(a)};
pna=function(a){this.ea=P(a)};
Yz=function(a){this.ea=P(a)};
qna=function(a){this.ea=P(a)};
rna=function(a){this.ea=P(a)};
sna=function(a){this.ea=P(a)};
tna=function(a){this.ea=P(a)};
una=function(a){this.ea=P(a)};
Zz=function(a){this.ea=P(a)};
vna=function(a){this.ea=P(a)};
wna=function(a){this.ea=P(a)};
xna=function(a){this.ea=P(a)};
$z=function(a){this.ea=P(a)};
aA=function(a){this.ea=P(a)};
yna=function(a){this.ea=P(a)};
bA=function(a){this.ea=P(a)};
zna=function(a){this.ea=P(a)};
Ana=function(a){this.ea=P(a)};
cA=function(a){this.ea=P(a)};
Bna=function(a){this.ea=P(a)};
Cna=function(a){this.ea=P(a)};
Dna=function(a){this.ea=P(a)};
Ena=function(a){this.ea=P(a)};
dA=function(a){this.ea=P(a)};
eA=function(a){this.ea=P(a)};
fA=function(a){this.ea=P(a)};
gA=function(a){this.ea=P(a)};
Fna=function(a){this.ea=P(a)};
Gna=function(a){this.ea=P(a)};
hA=function(a){this.ea=P(a)};
Hna=function(a){this.ea=P(a)};
Ina=function(a){this.ea=P(a)};
Jna=function(a){this.ea=P(a)};
Kna=function(a){this.ea=P(a)};
iA=function(a){this.ea=P(a)};
Lna=function(a){this.ea=P(a)};
Mna=function(a){this.ea=P(a)};
Nna=function(a){this.ea=P(a)};
Ona=function(a){this.ea=P(a)};
Pna=function(a){this.ea=P(a)};
Qna=function(a){this.ea=P(a)};
Rna=function(a){this.ea=P(a)};
Sna=function(a){this.ea=P(a)};
Tna=function(a){this.ea=P(a)};
jA=function(a){this.ea=P(a)};
Una=function(a){this.ea=P(a)};
kA=function(a){this.ea=P(a)};
lA=function(a){this.ea=P(a)};
Vna=function(a){this.ea=P(a)};
Wna=function(a){this.ea=P(a)};
mA=function(a){this.ea=P(a)};
Xna=function(a){this.ea=P(a)};
Yna=function(a){this.ea=P(a)};
Zna=function(a){this.ea=P(a)};
$na=function(a){this.ea=P(a)};
aoa=function(a){this.ea=P(a)};
boa=function(a){this.ea=P(a)};
coa=function(a){this.ea=P(a)};
doa=function(a){this.ea=P(a)};
nA=function(a){this.ea=P(a)};
eoa=function(a){this.ea=P(a)};
foa=function(a){this.ea=P(a)};
goa=function(a){this.ea=P(a)};
oA=function(a){this.ea=P(a)};
hoa=function(a){this.ea=P(a)};
ioa=function(a){this.ea=P(a)};
pA=function(a){this.ea=P(a)};
qA=function(a){this.ea=P(a)};
joa=function(a){this.ea=P(a)};
koa=function(a){this.ea=P(a)};
rA=function(a){this.ea=P(a)};
sA=function(a){this.ea=P(a)};
loa=function(a){this.ea=P(a)};
tA=function(a){this.ea=P(a)};
moa=function(a){this.ea=P(a)};
uA=function(a){this.ea=P(a)};
noa=function(a){this.ea=P(a)};
vA=function(a){this.ea=P(a)};
wA=function(a){this.ea=P(a)};
ooa=function(a){this.ea=P(a)};
poa=function(a){this.ea=P(a)};
xA=function(a){this.ea=P(a)};
qoa=function(a){this.ea=P(a)};
roa=function(a){this.ea=P(a)};
yA=function(a){this.ea=P(a)};
soa=function(a){this.ea=P(a)};
toa=function(a){this.ea=P(a)};
uoa=function(a){this.ea=P(a)};
voa=function(a){this.ea=P(a)};
woa=function(a){this.ea=P(a)};
xoa=function(a){this.ea=P(a)};
yoa=function(a){this.ea=P(a)};
zoa=function(a){this.ea=P(a)};
Aoa=function(a){this.ea=P(a)};
Boa=function(a){this.ea=P(a)};
zA=function(a){this.ea=P(a)};
Coa=function(a){this.ea=P(a)};
Doa=function(a){this.ea=P(a)};
AA=function(a){this.ea=P(a)};
Eoa=function(a){this.ea=P(a)};
BA=function(a){this.ea=P(a)};
CA=function(a){this.ea=P(a)};
Foa=function(a){this.ea=P(a)};
Goa=function(a){this.ea=P(a)};
DA=function(a){this.ea=P(a)};
Hoa=function(a){this.ea=P(a)};
Ioa=function(a,b){rk(a,eA,1,b)};
EA=function(a){this.ea=P(a)};
Joa=function(a,b){return rk(a,eA,1,b)};
FA=function(a){this.ea=P(a)};
Koa=function(a,b){return rk(a,eA,2,b)};
GA=function(a){this.ea=P(a)};
HA=function(a){this.ea=P(a)};
IA=function(a){this.ea=P(a)};
JA=function(a){this.ea=P(a)};
Loa=function(a){this.ea=P(a)};
KA=function(a){this.ea=P(a)};
LA=function(a){var b=new KA;return Q(b,1,a)};
MA=function(a,b){return Q(a,2,b)};
NA=function(a){this.ea=P(a)};
Moa=function(a){this.ea=P(a)};
OA=function(a){this.ea=P(a)};
PA=function(a,b){uk(a,68,KA,b)};
Noa=function(a){this.ea=P(a)};
Ooa=function(a){this.ea=P(a)};
QA=function(a){this.ea=P(a)};
RA=function(a){this.ea=P(a)};
SA=function(a){this.ea=P(a)};
Poa=function(a){this.ea=P(a)};
TA=function(a){this.ea=P(a)};
Qoa=function(a){this.ea=P(a)};
Roa=function(a){this.ea=P(a)};
Soa=function(a){this.ea=P(a)};
UA=function(a){this.ea=P(a)};
Toa=function(a){this.ea=P(a)};
Uoa=function(a){this.ea=P(a)};
Voa=function(a){this.ea=P(a)};
VA=function(a){this.ea=P(a)};
Woa=function(a){this.ea=P(a)};
Xoa=function(a){this.ea=P(a)};
WA=function(a){this.ea=P(a)};
XA=function(a){this.ea=P(a)};
Yoa=function(a){this.ea=P(a)};
YA=function(a){this.ea=P(a)};
Zoa=function(a){this.ea=P(a)};
$oa=function(a){this.ea=P(a)};
ZA=function(a){this.ea=P(a,497)};
apa=function(a){this.ea=P(a)};
$A=function(a){this.ea=P(a)};
bpa=function(a){this.ea=P(a)};
cpa=function(){return g.Xa("yt.ads.biscotti.lastId_")||""};
dpa=function(a){g.Va("yt.ads.biscotti.lastId_",a)};
bB=function(){var a=arguments;1<a.length?aB[a[0]]=a[1]:1===a.length&&Object.assign(aB,a[0])};
g.cB=function(a,b){return a in aB?aB[a]:b};
dB=function(a){var b=aB.EXPERIMENT_FLAGS;return b?b[a]:void 0};
epa=function(a){eB.forEach(function(b){return b(a)})};
g.gB=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.fB(b)}}:a};
g.fB=function(a){var b=g.Xa("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=g.cB("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),bB("ERRORS",b));epa(a)};
hB=function(a,b,c,d,e){var f=g.Xa("yt.logging.errors.log");f?f(a,"WARNING",b,c,d,void 0,e):(f=g.cB("ERRORS",[]),f.push([a,"WARNING",b,c,d,void 0,e]),bB("ERRORS",f))};
iB=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var f=b[d].split("=");if(1===f.length&&f[0]||2===f.length)try{var h=fpa(f[0]||""),l=fpa(f[1]||"");if(h in c){var m=c[h];Array.isArray(m)?g.Mb(m,l):c[h]=[m,l]}else c[h]=l}catch(r){var n=r,p=f[0],q=String(iB);n.args=[{key:p,value:f[1],query:a,method:gpa===q?"unchanged":q}];hpa.hasOwnProperty(p)||hB(n)}}return c};
jB=function(a){var b=[];g.Vc(a,function(c,d){var e=g.Se(d);g.$b(Array.isArray(c)?c:[c],function(f){""==f?b.push(e):b.push(e+"="+g.Se(f))})});
return b.join("&")};
kB=function(a){"?"===a.charAt(0)&&(a=a.substring(1));return iB(a,"&")};
ipa=function(a){return a.split(",").map(function(b){return kB(b)})};
g.lB=function(a){return-1!==a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),kB(1<a.length?a[1]:a[0])):{}};
mB=function(a,b){return jpa(a,b||{},!0)};
nB=function(a,b){return jpa(a,b||{},!1)};
jpa=function(a,b,c){var d=a.split("#",2);a=d[0];d=1<d.length?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=kB(e[1]||"");for(var f in b)if(c||!g.ed(e,f))e[f]=b[f];return g.Mn(a,e)+d};
oB=function(a){if(!b)var b=window.location.href;var c=g.gn(1,a),d=g.hn(a);c&&d?(a=a.match(fn),b=b.match(fn),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.hn(b)===d&&(Number(g.gn(4,b))||null)===(Number(g.gn(4,a))||null):!0;return a};
pB=function(a){a||(a=document.location.href);a=g.gn(1,a);return null!==a&&"https"===a};
qB=function(a){a=g.hn(a);a=null!==a?a.split(".").reverse():null;return null===a?!1:"com"===a[0]&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
fpa=function(a){return a&&a.match(kpa)?a:Te(a)};
tB=function(a){var b=lpa;a=void 0===a?cpa():a;var c=Object,d=c.assign,e=mpa(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 v=f.screen.availWidth;var w=f.screen.availTop}catch(C){}f=[r,t,h,l,v,w,m,n,p,q];h=mia(!1,b.j.top);l={};var A=void 0===A?g.Ta:A;m=new $u;"SVGElement"in A&&"createElementNS"in
A.document&&m.set(0);n=yha();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=Uka(m);b=(l.bc=A,l.bih=h.height,l.biw=h.width,l.brdim=f.join(),l.vis=Ir(b.B),l.wgl=!!Fr.WebGLRenderingContext,l);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c};
mpa=function(a){var b={};b.dt=npa;b.flash="0";a:{try{var c=a.j.top.location.href}catch(p){a=2;break a}a=c?c===a.B.location.href?0:1:2}b=(b.frm=a,b);try{b.u_tz=-(new Date).getTimezoneOffset();var d=void 0===d?Fr:d;try{var e=d.history.length}catch(p){e=0}b.u_his=e;var f;b.u_h=null==(f=Fr.screen)?void 0:f.height;var h;b.u_w=null==(h=Fr.screen)?void 0:h.width;var l;b.u_ah=null==(l=Fr.screen)?void 0:l.availHeight;var m;b.u_aw=null==(m=Fr.screen)?void 0:m.availWidth;var n;b.u_cd=null==(n=Fr.screen)?void 0:
n.colorDepth}catch(p){}return b};
ppa=function(){if(!opa)return null;var a=opa();return"open"in a?a:null};
g.vB=function(a){switch(uB(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
uB=function(a){return a&&"status"in a?a.status:-1};
g.wB=function(a,b){"function"===typeof a&&(a=g.gB(a));return window.setTimeout(a,b)};
g.xB=function(a,b){"function"===typeof a&&(a=g.gB(a));return window.setInterval(a,b)};
g.yB=function(a){window.clearTimeout(a)};
g.zB=function(a){window.clearInterval(a)};
g.AB=function(a){a=qpa(a);return"string"===typeof a&&"false"===a?!1:!!a};
g.BB=function(a,b){a=qpa(a);return void 0===a&&void 0!==b?b:Number(a||0)};
rpa=function(){return g.cB("EXPERIMENTS_TOKEN","")};
qpa=function(a){return g.cB("EXPERIMENT_FLAGS",{})[a]};
spa=function(){for(var a=[],b=g.cB("EXPERIMENTS_FORCED_FLAGS",{}),c=g.u(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=g.cB("EXPERIMENT_FLAGS",{});d=g.u(Object.keys(c));for(var e=d.next();!e.done;e=d.next())e=e.value,e.startsWith("force_")&&void 0===b[e]&&a.push({key:e,value:String(c[e])});return a};
vpa=function(a,b,c,d,e,f,h,l){function m(){4===(n&&"readyState"in n?n.readyState:0)&&b&&g.gB(b)(n)}
c=void 0===c?"GET":c;d=void 0===d?"":d;l=void 0===l?!1:l;var n=ppa();if(!n)return null;"onloadend"in n?n.addEventListener("loadend",m,!1):n.onreadystatechange=m;g.AB("debug_forward_web_query_parameters")&&(a=tpa(a,window.location.search));n.open(c,a,!0);f&&(n.responseType=f);h&&(n.withCredentials=!0);c="POST"===c&&(void 0===window.FormData||!(d instanceof FormData));if(e=upa(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){hB(q)}}n.send(d);return n};
upa=function(a,b){b=void 0===b?{}:b;var c=oB(a),d=g.AB("web_ajax_ignore_global_headers_if_set"),e;for(e in wpa){var f=g.cB(wpa[e]),h="X-Goog-AuthUser"===e||"X-Goog-PageId"===e;"X-Goog-Visitor-Id"!==e||f||(f=g.cB("VISITOR_DATA"));!f||!c&&g.hn(a)||d&&void 0!==b[e]||"TVHTML5_UNPLUGGED"===g.cB("INNERTUBE_CLIENT_NAME")&&h||(b[e]=f)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!g.hn(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!g.hn(a)){try{var l=
(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(m){}l&&(b["X-YouTube-Time-Zone"]=l)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&g.hn(a)||(b["X-YouTube-Ad-Signals"]=jB(tB()));return b};
ypa=function(a,b){var c=g.hn(a);g.AB("debug_handle_relative_url_for_query_forward_killswitch")||!c&&oB(a)&&(c=document.location.hostname);var d=en(g.gn(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=kB(b),f={};g.$b(xpa,function(h){e[h]&&(f[h]=e[h])});
return nB(a,f)};
zpa=function(a,b){b.method="POST";b.postParams||(b.postParams={});return g.CB(a,b)};
g.CB=function(a,b){var c=b.format||"JSON";a=Apa(a,b);var d=Bpa(a,b),e=!1,f=Cpa(a,function(m){if(!e){e=!0;l&&g.yB(l);var n=g.vB(m),p=null,q=400<=m.status&&500>m.status,r=500<=m.status&&600>m.status;if(n||q||r)p=Dpa(a,c,m,b.convertToSafeHtml);n&&(n=Epa(c,m,p));p=p||{};q=b.context||g.Ta;n?b.onSuccess&&b.onSuccess.call(q,m,p):b.onError&&b.onError.call(q,m,p);b.onFinish&&b.onFinish.call(q,m,p)}},b.method,d,b.headers,b.responseType,b.withCredentials);
d=b.timeout||0;if(b.onTimeout&&0<d){var h=b.onTimeout;var l=g.wB(function(){e||(e=!0,f.abort(),g.yB(l),h.call(b.context||g.Ta,f))},d)}return f};
Apa=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=g.cB("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=mB(a,b);return a};
Bpa=function(a,b){var c=g.cB("XSRF_FIELD_NAME"),d=g.cB("XSRF_TOKEN"),e=b.postBody||"",f=b.postParams,h=g.cB("XSRF_FIELD_NAME"),l;b.headers&&(l=b.headers["Content-Type"]);b.excludeXsrf||g.hn(a)&&!b.withCredentials&&g.hn(a)!==document.location.hostname||"POST"!==b.method||l&&"application/x-www-form-urlencoded"!==l||b.postParams&&b.postParams[h]||(f||(f={}),f[c]=d);(g.AB("ajax_parse_query_data_only_when_filled")&&f&&0<Object.keys(f).length||f)&&"string"===typeof e&&(e=kB(e),g.od(e,f),e=b.postBodyFormat&&
"JSON"===b.postBodyFormat?JSON.stringify(e):g.Ln(e));f=e||f&&!g.id(f);!Fpa&&f&&"POST"!==b.method&&(Fpa=!0,g.fB(Error("AJAX request with postData should use POST")));return e};
Dpa=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,hB(d),h;}a=c.getResponseHeader("Content-Type")||"";f&&0<=a.indexOf("json")&&(")]}'\n"===f.substring(0,5)&&(f=f.substring(5)),e=JSON.parse(f));break;case "XML":if(a=(a=c.responseXML)?Gpa(a):null)e={},g.$b(a.getElementsByTagName("*"),function(h){e[h.tagName]=Hpa(h)})}d&&Ipa(e);
return e};
Ipa=function(a){if(g.bb(a))for(var b in a)"html_content"===b||Faa(b,"_html")?a[b]=re(a[b]):Ipa(a[b])};
Epa=function(a,b,c){if(b&&204===b.status)return!0;switch(a){case "JSON":return!!c;case "XML":return 0===Number(c&&c.return_code);case "RAW":return!0;default:return!!c}};
Gpa=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
Hpa=function(a){var b="";g.$b(a.childNodes,function(c){b+=c.nodeValue});
return b};
EB=function(a,b){var c=g.md(b),d;return(new g.hg(function(e,f){c.onSuccess=function(h){g.vB(h)?e(new Jpa(h)):f(new DB("Request failed, status="+uB(h),"net.badstatus",h))};
c.onError=function(h){f(new DB("Unknown request error","net.unknown",h))};
c.onTimeout=function(h){f(new DB("Request timed out","net.timeout",h))};
d=g.CB(a,c)})).wl(function(e){if(e instanceof og){var f;
null==(f=d)||f.abort()}return kg(e)})};
g.FB=function(a,b,c,d){function e(l,m,n){return l.wl(function(p){if(0>=m||403===uB(p.xhr))return kg(new DB("Request retried too many times","net.retryexhausted",p.xhr,p));p=Math.pow(2,c-m+1)*n;var q=0<h?Math.min(h,p):p;return f(n).then(function(){return e(EB(a,b),m-1,q)})})}
function f(l){return new g.hg(function(m){setTimeout(m,l)})}
var h=void 0===h?-1:h;return e(EB(a,b),c-1,d)};
DB=function(a,b,c){xb.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
Jpa=function(a){this.xhr=a};
GB=function(a){this.j=void 0===a?null:a;this.C=0;this.B=null};
HB=function(a){var b=new GB;a=void 0===a?null:a;b.C=2;b.B=void 0===a?null:a;return b};
IB=function(a){var b=new GB;a=void 0===a?null:a;b.C=1;b.B=void 0===a?null:a;return b};
g.LB=function(a,b,c,d,e){JB||KB.set(""+a,b,{OE:c,path:"/",domain:void 0===d?"youtube.com":d,secure:void 0===e?!1:e})};
g.MB=function(a,b){if(!JB)return KB.get(""+a,b)};
g.Kpa=function(a,b,c){JB||KB.remove(""+a,void 0===b?"/":b,void 0===c?"youtube.com":c)};
Lpa=function(){if(g.AB("embeds_web_enable_cookie_detection_fix")){if(!g.Ta.navigator.cookieEnabled)return!1}else if(!KB.isEnabled())return!1;if(!KB.isEmpty())return!0;g.AB("embeds_web_enable_cookie_detection_fix")?KB.set("TESTCOOKIESENABLED","1",{OE:60,Bca:"none",secure:!0}):KB.set("TESTCOOKIESENABLED","1",{OE:60});if("1"!==KB.get("TESTCOOKIESENABLED"))return!1;KB.remove("TESTCOOKIESENABLED");return!0};
g.V=function(a,b){if(a)return a[b.name]};
Mpa=function(a){var b=g.cB("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(Hn(a)));return a};
Npa=function(a,b){var c={};g.AB("web_api_key_killswitch")&&(g.cB("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")&&(null==b?0:b.Authorization)||(c.key=g.cB("INNERTUBE_API_KEY")));g.AB("json_condensed_response")&&(c.prettyPrint="false");return a=nB(a,c)};
Opa=function(a,b){var c=void 0===c?{}:c;a={method:void 0===b?"POST":b,mode:oB(a)?"same-origin":"cors",credentials:oB(a)?"same-origin":"include"};b={};for(var d=g.u(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);0<Object.keys(b).length&&(a.headers=b);return a};
Ppa=function(){var a=/Chrome\/(\d+)/.exec(g.pc());return a?parseFloat(a[1]):NaN};
Qpa=function(){var a=/\sCobalt\/(\S+)\s/.exec(g.pc());if(!a)return NaN;var b=[];a=g.u(a[1].split("."));for(var c=a.next();!c.done;c=a.next())c=parseInt(c.value,10),0<=c&&b.push(c);return parseFloat(b.join("."))};
OB=function(){return g.NB("android")&&g.NB("chrome")&&!(g.NB("trident/")||g.NB("edge/"))&&!g.NB("cobalt")};
Rpa=function(){return g.NB("armv7")||g.NB("aarch64")||g.NB("android")};
g.PB=function(){return g.NB("cobalt")};
QB=function(){return g.NB("cobalt")&&g.NB("appletv")};
Spa=function(){return g.NB("(ps3; leanback shell)")||g.NB("ps3")&&g.PB()};
Tpa=function(){return g.NB("(ps4; leanback shell)")||g.NB("ps4")&&g.PB()};
g.Upa=function(){return g.PB()&&(g.NB("ps4 vr")||g.NB("ps4 pro vr"))};
RB=function(){var a=/WebKit\/([0-9]+)/.exec(g.pc());return!!(a&&600<=parseInt(a[1],10))};
Vpa=function(){var a=/WebKit\/([0-9]+)/.exec(g.pc());return!!(a&&602<=parseInt(a[1],10))};
Wpa=function(){return g.NB("iemobile")||g.NB("windows phone")&&g.NB("edge")};
Xpa=function(){return(SB||TB)&&g.NB("applewebkit")&&!g.NB("version")&&(!g.NB("safari")||g.NB("gsa/"))};
VB=function(){return g.UB&&g.NB("version/")};
Ypa=function(){return g.NB("smart-tv")&&g.NB("samsung")};
g.NB=function(a){var b=g.pc();return b?0<=b.toLowerCase().indexOf(a):!1};
Zpa=function(){return ofa()||Xpa()||VB()?!0:g.cB("EOM_VISITOR_DATA")?!1:!0};
WB=function(a,b){return void 0===b||null===b?a:"1"===b||!0===b||1===b||"True"===b?!0:!1};
XB=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
YB=function(a,b){return void 0===b||null===b?a:Number(b)};
ZB=function(a,b){return void 0===b||null===b?a:b.toString()};
cqa=function(a,b){if(b){if("fullwidth"===a)return Infinity;if("fullheight"===a)return 0}return a&&(b=a.match($pa))&&(a=Number(b[2]),b=Number(b[1]),!isNaN(a)&&!isNaN(b)&&0<a)?b/a:NaN};
$B=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};
eqa=function(a){return"EMBEDDED_PLAYER_MODE_PFL"===dqa(a,!1)};
g.aC=function(a){return"EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"===a||"EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"===a?!0:!1};
dqa=function(a,b){b=(void 0===b?0:b)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(d){return b}return c?XB(b,c.embeddedPlayerMode,fqa):b};
gqa=function(a){xb.call(this,a.message||a.description||a.name);this.isMissing=a instanceof bC;this.isTimeout=a instanceof DB&&"net.timeout"==a.errorCode;this.isCanceled=a instanceof og};
bC=function(){xb.call(this,"Biscotti ID is missing from server")};
hqa=function(){if(g.AB("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Zpa())return Error("User has not consented - not fetching biscotti id.");var a=g.cB("PLAYER_VARS",{});if("1"==g.jd(a,"privembed",!1))return Error("Biscotti ID is not available in private embed mode");if(eqa(a))return Error("Biscotti id fetching has been disabled for pfl.")};
lqa=function(){var a=hqa();if(void 0!==a)return kg(a);cC||(cC=EB("//googleads.g.doubleclick.net/pagead/id",iqa).then(jqa).wl(function(b){return kqa(2,b)}));
return cC};
jqa=function(a){a=a.xhr.responseText;if(!dc(a,")]}'"))throw new bC;a=JSON.parse(a.substr(4));if(1<(a.type||1))throw new bC;a=a.id;dpa(a);cC=IB(a);mqa(18E5,2);return a};
kqa=function(a,b){b=new gqa(b);dpa("");cC=HB(b);0<a&&mqa(12E4,a-1);throw b;};
mqa=function(a,b){g.wB(function(){EB("//googleads.g.doubleclick.net/pagead/id",iqa).then(jqa,function(c){return kqa(b,c)}).wl(g.Jd)},a)};
nqa=function(){try{var a=g.Xa("yt.ads.biscotti.getId_");return a?a():lqa()}catch(b){return kg(b)}};
qqa=function(a){a&&(a.dataset?a.dataset[oqa()]="true":Mba([new te(pqa[0].toLowerCase())],a,"data-loaded","true".toString()))};
rqa=function(a){return a?a.dataset?a.dataset[oqa()]:a.getAttribute("data-loaded"):null};
oqa=function(){return sqa.loaded||(sqa.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))};
uqa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=tqa+"VisibilityState";if(b in a)return a[b]};
dC=function(a,b){var c;Ps(a,function(d){c=b[d];return!!c});
return c};
vqa=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()};
gC=function(a){var b;g.eC()?fC()==a&&(b=document):b=a;return b&&(a=dC(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=a.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()};
wqa=function(a){return g.Db(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
xqa=function(){var a=document;return g.Db(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
g.eC=function(){return!!dC(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)};
fC=function(a){a=void 0===a?!1:a;var b=dC(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
hC=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 yqa||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&3==c.nodeType&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;
if(d)try{d=d.nodeName?d:null}catch(e){d=null}else"mouseover"==this.type?d=a.fromElement:"mouseout"==this.type&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.j=a.pageX;this.B=a.pageY}}catch(e){}};
zqa=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}};
Aqa=function(a,b,c,d){d=void 0===d?{}:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return hd(iC,function(e){var f="boolean"===typeof e[4]&&e[4]==!!d,h=g.bb(e[4])&&g.bb(d)&&g.ld(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(f||h)})};
g.jC=function(a,b,c,d){d=void 0===d?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Aqa(a,b,c,d);if(e)return e;e=++Bqa.count+"";var f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var h=f?function(l){l=new hC(l);if(!Pf(l.relatedTarget,function(m){return m==a},!0))return l.currentTarget=a,l.type=b,c.call(a,l)}:function(l){l=new hC(l);
l.currentTarget=a;return c.call(a,l)};
h=g.gB(h);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),Cqa()||"boolean"===typeof d?a.addEventListener(b,h,d):a.addEventListener(b,h,!!d.capture)):a.attachEvent("on"+b,h);iC[e]=[a,b,c,h,d];return e};
Eqa=function(a){return Dqa(a,function(b){return g.tv(b,"ytp-ad-has-logging-urls")})};
Dqa=function(a,b){var c=document.body||document;return g.jC(c,"click",function(d){var e=Pf(d.target,function(f){return f===c||b(f)},!0);
e&&e!==c&&!e.disabled&&(d.currentTarget=e,a.call(e,d))})};
g.kC=function(a){a&&("string"==typeof a&&(a=[a]),g.$b(a,function(b){if(b in iC){var c=iC[b],d=c[0],e=c[1],f=c[3];c=c[4];d.removeEventListener?Cqa()||"boolean"===typeof c?d.removeEventListener(e,f,c):d.removeEventListener(e,f,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,f);delete iC[b]}}))};
Fqa=function(a){for(var b in iC)iC[b][0]==a&&g.kC(b)};
lC=function(a){a=a||window.event;var b;a.composedPath&&"function"===typeof a.composedPath?b=a.composedPath():b=a.path;b&&b.length?a=b[0]:(a=a||window.event,a=a.target||a.srcElement,3==a.nodeType&&(a=a.parentNode));return a};
mC=function(a){this.N=a;this.j=null;this.D=0;this.K=null;this.G=0;this.B=[];for(a=0;4>a;a++)this.B.push(0);this.C=0;this.ra=g.jC(window,"mousemove",(0,g.gb)(this.Y,this));this.Z=g.xB((0,g.gb)(this.qa,this),25)};
nC=function(a){g.I.call(this);this.N=[];this.rb=a||this};
oC=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
g.pC=function(a,b){for(;a.N.length;){var c=a.N.pop(),d=void 0;b&&Gqa()&&(d={passive:!0});c.target.removeEventListener(c.name,c.callback,d)}};
qC=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||g.md(b);this.assets=a.assets||{};this.attrs=a.attrs||g.md(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
Hqa=function(a){a instanceof qC||(a=new qC(a));return a};
g.sC=function(a,b,c){var d=c&&0<c?c:0;c=d?Date.now()+1E3*d:0;if((d=d?(0,g.rC)():Iqa())&&window.JSON){"string"!==typeof b&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.tC=function(a){var b=Iqa(),c=(0,g.rC)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if("string"!==typeof d)try{d=c.get(a)}catch(e){}if("string"!==typeof d)return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
Jqa=function(){var a=(0,g.rC)();if(a&&(a=a.B("yt-player-quality")))return a.creation};
g.uC=function(a){try{var b=Iqa(),c=(0,g.rC)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
g.vC=function(){return g.tC("yt-remote-session-screen-id")};
Kqa=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})};
Lqa=function(){if(!g.Ta.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.Ta.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.Ta.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.Ta.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.Ta.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};
wC=function(){this.I0=!0};
Mqa=function(){wC.instance||(wC.instance=new wC);return wC.instance};
Nqa=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}};
Oqa=function(){this.j=g.cB("ALT_PREF_COOKIE_NAME","PREF");this.B=g.cB("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=g.MB(this.j);a&&this.parse(a)};
g.xC=function(){Pqa||(Pqa=new Oqa);return Pqa};
g.yC=function(a,b){return!!((Qqa("f"+(Math.floor(b/31)+1))||0)&1<<b%31)};
Rqa=function(a,b){var c="f"+(Math.floor(a/31)+1);a=1<<a%31;var d=Qqa(c)||0;d=b?d|a:d&~a;0===d?delete zC[c]:(b=d.toString(16),zC[c]=b.toString())};
Sqa=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("ExpectedRegexMatch: "+a);};
Tqa=function(a){if(!/^\w+$/.test(a))throw Error("ExpectedRegexMismatch: "+a);};
Qqa=function(a){a=void 0!==zC[a]?zC[a].toString():null;return null!=a&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
Uqa=function(){var a=g.Ta.navigator;return a?a.connection:void 0};
Wqa=function(){var a=Uqa();if(a){var b=Vqa[a.type||"unknown"]||"CONN_UNKNOWN";a=Vqa[a.effectiveType||"unknown"]||"CONN_UNKNOWN";"CONN_CELLULAR_UNKNOWN"===b&&"CONN_UNKNOWN"!==a&&(b=a);if("CONN_UNKNOWN"!==b)return b;if("CONN_UNKNOWN"!==a)return a}};
Yqa=function(){var a=Uqa();if(null!=a&&a.effectiveType)return Xqa.hasOwnProperty(a.effectiveType)?Xqa[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
g.AC=function(a){var b=g.Ia.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(g.qa(b))};
g.CC=function(){try{return g.BC(),!0}catch(a){return!1}};
g.BC=function(a){if(void 0!==g.cB("DATASYNC_ID"))return g.cB("DATASYNC_ID");throw new g.AC("Datasync ID not set",void 0===a?"unknown":a);};
DC=function(){this.j=new WeakMap};
g.FC=function(a,b,c){return EC(b,0,c)};
Zqa=function(a){var b=g.Xa("yt.scheduler.instance.addImmediateJob");b?b(a):a()};
GC=function(){DC.apply(this,arguments)};
g.HC=function(){GC.instance||(GC.instance=new GC);return GC.instance};
g.IC=function(){return!!g.Xa("yt.scheduler.instance")};
EC=function(a,b,c){void 0!==c&&Number.isNaN(Number(c))&&(c=void 0);var d=g.Xa("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),NaN):g.wB(a,c||0)};
JC=function(a,b){(a=g.Xa("yt.scheduler.instance.setPriorityThreshold"))&&a(b)};
KC=function(a){this.j=(a=g.Xv(a))?new Qv(a):null;this.B=document.domain||window.location.hostname};
ara=function(){var a;return null==(a=$qa())?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
dra=function(){var a={};for(LC=new bra(void 0===a.handleError?cra:a.handleError,void 0===a.logEvent?g.MC:a.logEvent);0<NC.length;)switch(a=NC.shift(),a.type){case "ERROR":LC.IE(a.payload);break;case "EVENT":LC.logEvent(a.eventType,a.payload)}};
PC=function(a){OC||(LC?LC.IE(a):(NC.push({type:"ERROR",payload:a}),10<NC.length&&NC.shift()))};
QC=function(a,b){OC||(LC?LC.logEvent(a,b):(NC.push({type:"EVENT",eventType:a,payload:b}),10<NC.length&&NC.shift()))};
RC=function(a){if(0<=a.indexOf(":"))throw Error("Database name cannot contain ':'");};
SC=function(a){return a.substr(0,a.indexOf(":"))||a};
g.TC=function(a,b,c,d,e){b=void 0===b?{}:b;c=void 0===c?era[a]:c;d=void 0===d?fra[a]:d;e=void 0===e?gra[a]:e;g.AC.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:void 0===self.document,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.j=e;Object.setPrototypeOf(this,g.TC.prototype)};
hra=function(a,b){g.TC.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},era.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,hra.prototype)};
UC=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,UC.prototype)};
jra=function(a,b,c,d){b=SC(b);var e=a instanceof Error?a:Error("Unexpected error: "+a);if(e instanceof g.TC)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if("QuotaExceededError"===e.name)return new g.TC("QUOTA_EXCEEDED",a);if(g.VC&&"UnknownError"===e.name)return new g.TC("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof UC)return new g.TC("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if("InvalidStateError"===e.name&&ira.some(function(f){return e.message.includes(f)}))return new g.TC("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if("AbortError"===e.name)return new g.TC("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",mK:e.name})];e.level="WARNING";return e};
g.WC=function(a,b,c){var d=ara();return new g.TC("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:null==d?void 0:d.hasSucceededOnce}})};
kra=function(a){if(!a)throw Error();throw a;};
lra=function(a){return a};
XC=function(a){this.j=a};
g.YC=function(a){function b(e){if("PENDING"===d.state.status){d.state={status:"REJECTED",reason:e};e=g.u(d.B);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
function c(e){if("PENDING"===d.state.status){d.state={status:"FULFILLED",value:e};e=g.u(d.j);for(var f=e.next();!f.done;f=e.next())f=f.value,f()}}
var d=this;this.state={status:"PENDING"};this.j=[];this.B=[];a=a.j;try{a(c,b)}catch(e){b(e)}};
nra=function(a,b,c,d,e){try{if("FULFILLED"!==a.state.status)throw Error("calling handleResolve before the promise is fulfilled.");var f=c(a.state.value);f instanceof g.YC?mra(a,b,f,d,e):d(f)}catch(h){e(h)}};
ora=function(a,b,c,d,e){try{if("REJECTED"!==a.state.status)throw Error("calling handleReject before the promise is rejected.");var f=c(a.state.reason);f instanceof g.YC?mra(a,b,f,d,e):d(f)}catch(h){e(h)}};
mra=function(a,b,c,d,e){b===c?e(new TypeError("Circular promise chain detected.")):c.then(function(f){f instanceof g.YC?mra(a,b,f,d,e):d(f)},function(f){e(f)})};
pra=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)};
qra=function(a){return new Promise(function(b,c){pra(a,b,c)})};
ZC=function(a){return new g.YC(new XC(function(b,c){pra(a,b,c)}))};
rra=function(a,b){return new g.YC(new XC(function(c,d){function e(){var f=a?b(a):null;f?f.then(function(h){a=h;e()},d):c()}
e()}))};
sra=function(a,b){this.request=a;this.cursor=b};
tra=function(a){return ZC(a).then(function(b){return b?new sra(a,b):null})};
g.ura=function(a){a.cursor.continue(void 0);return tra(a.request)};
vra=function(a,b){this.j=a;this.options=b;this.transactionCount=0;this.C=Math.round((0,g.$C)());this.B=!1};
g.aD=function(a,b,c){a=a.j.createObjectStore(b,c);return new wra(a)};
bD=function(a,b){a.j.objectStoreNames.contains(b)&&a.j.deleteObjectStore(b)};
g.eD=function(a,b,c){return g.cD(a,[b],{mode:"readwrite",Nb:!0},function(d){return g.dD(d.objectStore(b),c)})};
g.cD=function(a,b,c,d){var e,f,h,l,m,n,p,q,r,t,v,w;return g.H(function(A){switch(A.j){case 1:var C={mode:"readonly",Nb:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};"string"===typeof c?C.mode=c:Object.assign(C,c);e=C;a.transactionCount++;f=e.Nb?3:1;h=0;case 2:if(l){A.Ia(4);break}h++;m=Math.round((0,g.$C)());g.Ba(A,5);n=a.j.transaction(b,e.mode);C=new fD(n);C=xra(C,d);return g.z(A,C,7);case 7:return p=A.B,q=Math.round((0,g.$C)()),yra(a,m,q,h,void 0,b.join(),e),A.return(p);case 5:r=g.Da(A);t=Math.round((0,g.$C)());
v=jra(r,a.j.name,b.join(),a.j.version);if((w=v instanceof g.TC&&!v.j)||h>=f)yra(a,m,t,h,v,b.join(),e),l=v;A.Ia(2);break;case 4:return A.return(Promise.reject(l))}})};
yra=function(a,b,c,d,e,f,h){b=c-b;e?(e instanceof g.TC&&("QUOTA_EXCEEDED"===e.type||"QUOTA_MAYBE_EXCEEDED"===e.type)&&QC("QUOTA_EXCEEDED",{dbName:SC(a.j.name),objectStoreNames:f,transactionCount:a.transactionCount,transactionMode:h.mode}),e instanceof g.TC&&"UNKNOWN_ABORT"===e.type&&(c-=a.C,0>c&&c>=Math.pow(2,31)&&(c=0),QC("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.B=!0),zra(a,!1,d,f,b,h.tag),PC(e)):zra(a,!0,d,
f,b,h.tag)};
zra=function(a,b,c,d,e,f){QC("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.B,duration:e,isSuccessful:b,tryCount:c,tag:void 0===f?"IDB_TRANSACTION_TAG_UNKNOWN":f})};
wra=function(a){this.j=a};
g.gD=function(a,b,c){a.j.createIndex(b,c,{unique:!1})};
Ara=function(a,b){return g.hD(a,{query:b},function(c){return c.delete().then(function(){return g.iD(c)})}).then(function(){})};
Bra=function(a,b,c){var d=[];return g.hD(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),g.iD(e)}).then(function(){return d})};
Dra=function(a){return"getAllKeys"in IDBObjectStore.prototype?ZC(a.j.getAllKeys(void 0,void 0)):Cra(a)};
Cra=function(a){var b=[];return g.Era(a,{query:void 0},function(c){b.push(c.cursor.primaryKey);return g.ura(c)}).then(function(){return b})};
g.dD=function(a,b,c){return ZC(a.j.put(b,c))};
g.hD=function(a,b,c){a=a.j.openCursor(b.query,b.direction);return Fra(a).then(function(d){return rra(d,c)})};
g.Era=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 tra(a).then(function(e){return rra(e,c)})};
fD=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.TC;for(var f=b.j.objectStoreNames,h=[],l=0;l<f.length;l++){var m=f.item(l);if(null===m)throw Error("Invariant: item in DOMStringList is null");h.push(m)}e=new e("UNKNOWN_ABORT",{objectStoreNames:h.join(),dbName:b.j.db.name,mode:b.j.mode});d(e)}})})};
xra=function(a,b){var c=new Promise(function(d,e){try{b(a).then(function(f){d(f)}).catch(e)}catch(f){e(f),a.abort()}});
return Promise.all([c,a.done]).then(function(d){return g.u(d).next().value})};
Gra=function(a){this.j=a};
Hra=function(a,b,c){var d=[];return g.jD(a,{query:b},function(e){if(!(void 0!==c&&d.length>=c))return d.push(e.getValue()),g.iD(e)}).then(function(){return d})};
g.jD=function(a,b,c){a=a.j.openCursor(void 0===b.query?null:b.query,void 0===b.direction?"next":b.direction);return Fra(a).then(function(d){return rra(d,c)})};
kD=function(a,b){this.request=a;this.cursor=b};
Fra=function(a){return ZC(a).then(function(b){return b?new kD(a,b):null})};
g.iD=function(a){a.cursor.continue(void 0);return Fra(a.request)};
Ira=function(a,b,c){return new Promise(function(d,e){function f(){r||(r=new vra(h.result,{closed:q}));return r}
var h=void 0!==b?self.indexedDB.open(a,b):self.indexedDB.open(a);var l=c.blocked,m=c.blocking,n=c.lda,p=c.upgrade,q=c.closed,r;h.addEventListener("upgradeneeded",function(t){try{if(null===t.newVersion)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(null===h.transaction)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&"none"!==t.dataLoss&&QC("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:SC(a)});var v=f(),w=new fD(h.transaction);
p&&p(v,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(){QC("IDB_UNEXPECTEDLY_CLOSED",{dbName:SC(a),dbVersion:t.version});n&&n()});
d(f())});
h.addEventListener("error",function(){e(h.error)});
l&&h.addEventListener("blocked",function(){l()})})};
Jra=function(a,b,c){c=void 0===c?{}:c;return Ira(a,b,c)};
lD=function(a,b){b=void 0===b?{}:b;var c,d,e,f;return g.H(function(h){if(1==h.j)return g.Ba(h,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),g.z(h,qra(c),4);
if(2!=h.j)return g.Ca(h,0);f=g.Da(h);throw jra(f,a,"",-1);})};
mD=function(a,b){this.name=a;this.options=b;this.C=!0;this.G=this.D=0};
Kra=function(a,b){return new g.TC("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
g.nD=function(a,b){if(!b)throw g.WC("openWithToken",SC(a.name));return a.open()};
Mra=function(a,b){var c;return g.H(function(d){if(1==d.j)return g.z(d,g.nD(Lra,b),2);c=d.B;return d.return(g.cD(c,["databases"],{Nb:!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.dD(f,a).then(function(){})})}))})};
oD=function(a,b){var c;return g.H(function(d){if(1==d.j)return a?g.z(d,g.nD(Lra,b),2):d.return();c=d.B;return d.return(c.delete("databases",a))})};
Nra=function(a,b){var c,d;return g.H(function(e){return 1==e.j?(c=[],g.z(e,g.nD(Lra,b),2)):3!=e.j?(d=e.B,g.z(e,g.cD(d,["databases"],{Nb:!0,mode:"readonly"},function(f){c.length=0;return g.hD(f.objectStore("databases"),{},function(h){a(h.getValue())&&c.push(h.getValue());return g.iD(h)})}),3)):e.return(c)})};
Ora=function(a,b){return Nra(function(c){return c.publicName===a&&void 0!==c.userIdentifier},b)};
Qra=function(){var a,b,c,d;return g.H(function(e){switch(e.j){case 1:a=ara();if(null==(b=a)?0:b.hasSucceededOnce)return e.return(!0);if(pD&&RB()&&!Vpa()||g.qD)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,Mra(d,Pra),4);case 4:return g.z(e,oD("yt-idb-test-do-not-use",Pra),5);case 5:return e.return(!0);case 2:return g.Da(e),e.return(!1)}})};
Sra=function(){if(void 0!==Rra)return Rra;OC=!0;return Rra=Qra().then(function(a){OC=!1;var b;if(null!=(b=$qa())&&b.j){var c;b={hasSucceededOnce:(null==(c=ara())?void 0:c.hasSucceededOnce)||a};var d;null==(d=$qa())||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
rD=function(){return g.Xa("ytglobal.idbToken_")||void 0};
g.sD=function(){var a=rD();return a?Promise.resolve(a):Sra().then(function(b){(b=b?Pra:void 0)&&g.Va("ytglobal.idbToken_",b);return b})};
Tra=function(a){if(!g.CC())throw a=new g.TC("AUTH_INVALID",{dbName:a}),PC(a),a;var b=g.BC();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
Ura=function(a,b,c,d){var e,f,h,l,m,n;return g.H(function(p){switch(p.j){case 1:return f=null!=(e=Error().stack)?e:"",g.z(p,g.sD(),2);case 2:h=p.B;if(!h)throw l=g.WC("openDbImpl",a,b),g.AB("ytidb_async_stack_killswitch")||(l.stack=l.stack+"\n"+f.substring(f.indexOf("\n")+1)),PC(l),l;RC(a);m=c?{actualName:a,publicName:a,userIdentifier:void 0}:Tra(a);g.Ba(p,3);return g.z(p,Mra(m,h),5);case 5:return g.z(p,Jra(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,oD(m.actualName,
h),9);case 9:g.Ca(p,8);break;case 7:g.Da(p);case 8:throw n;}})};
Vra=function(a,b,c){c=void 0===c?{}:c;return Ura(a,b,!1,c)};
Wra=function(a,b,c){c=void 0===c?{}:c;return Ura(a,b,!0,c)};
Xra=function(a,b){b=void 0===b?{}:b;var c,d;return g.H(function(e){if(1==e.j)return g.z(e,g.sD(),2);if(3!=e.j){c=e.B;if(!c)return e.return();RC(a);d=Tra(a);return g.z(e,lD(d.actualName,b),3)}return g.z(e,oD(d.actualName,c),0)})};
Yra=function(a,b,c){a=a.map(function(d){return g.H(function(e){return 1==e.j?g.z(e,lD(d.actualName,b),2):g.z(e,oD(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
Zra=function(a){var b=void 0===b?{}:b;var c,d;return g.H(function(e){if(1==e.j)return g.z(e,g.sD(),2);if(3!=e.j){c=e.B;if(!c)return e.return();RC(a);return g.z(e,Ora(a,c),3)}d=e.B;return g.z(e,Yra(d,b,c),0)})};
$ra=function(a,b){b=void 0===b?{}:b;var c;return g.H(function(d){if(1==d.j)return g.z(d,g.sD(),2);if(3!=d.j){c=d.B;if(!c)return d.return();RC(a);return g.z(d,lD(a,b),3)}return g.z(d,oD(a,c),0)})};
tD=function(a,b){mD.call(this,a,b);this.options=b;RC(a)};
asa=function(a,b){var c;return function(){c||(c=new tD(a,b));return c}};
g.uD=function(a,b){return asa(a,b)};
vD=function(a){return g.nD(bsa(),a)};
csa=function(a,b,c,d){var e,f,h;return g.H(function(l){switch(l.j){case 1:return e={config:a,hashData:b,timestamp:void 0!==d?d:(0,g.$C)()},g.z(l,vD(c),2);case 2:return f=l.B,g.z(l,f.clear("hotConfigStore"),3);case 3:return g.z(l,g.eD(f,"hotConfigStore",e),4);case 4:return h=l.B,l.return(h)}})};
dsa=function(a,b,c,d,e){var f,h,l;return g.H(function(m){switch(m.j){case 1:return f={config:a,hashData:b,configData:c,timestamp:void 0!==e?e:(0,g.$C)()},g.z(m,vD(d),2);case 2:return h=m.B,g.z(m,h.clear("coldConfigStore"),3);case 3:return g.z(m,g.eD(h,"coldConfigStore",f),4);case 4:return l=m.B,m.return(l)}})};
esa=function(a){var b,c;return g.H(function(d){return 1==d.j?g.z(d,vD(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.cD(b,["coldConfigStore"],{mode:"readwrite",Nb:!0},function(e){return g.jD(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
fsa=function(a){var b,c;return g.H(function(d){return 1==d.j?g.z(d,vD(a),2):3!=d.j?(b=d.B,c=void 0,g.z(d,g.cD(b,["hotConfigStore"],{mode:"readwrite",Nb:!0},function(e){return g.jD(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(f){c=f.getValue()})}),3)):d.return(c)})};
gsa=function(){return g.H(function(a){return g.z(a,Zra("ytGcfConfig"),0)})};
hsa=function(){g.I.call(this);this.B=[];this.j=[];var a=g.Xa("yt.gcf.config.hotUpdateCallbacks");a?(this.B=[].concat(g.qa(a)),this.j=a):(this.j=[],g.Va("yt.gcf.config.hotUpdateCallbacks",this.j))};
AD=function(){var a=this;this.G=!1;this.C=this.D=0;this.K=new hsa;this.pd={Gob:function(){a.G=!0},
Lnb:function(){return a.j},
Npb:function(b){wD(a,b)},
Hr:function(b){a.Hr(b)},
Hpb:function(b){isa(a,b)},
t7:function(){return a.coldHashData},
B7:function(){return a.hotHashData},
cob:function(){return a.B},
Unb:function(){return xD()},
Wnb:function(){return yD()},
Vnb:function(){return g.Xa("yt.gcf.config.coldHashData")},
Xnb:function(){return g.Xa("yt.gcf.config.hotHashData")},
dqb:function(){jsa(a)},
Bpb:function(){a.Hr(void 0);zD(a);delete AD.instance},
Kpb:function(b){a.C=b},
Qnb:function(){return a.C}}};
ksa=function(){if(!AD.instance){var a=new AD;AD.instance=a}return AD.instance};
nsa=function(a){var b;g.H(function(c){if(1==c.j)return g.AB("start_client_gcf")||g.AB("delete_gcf_config_db")?g.AB("start_client_gcf")?g.z(c,g.sD(),3):c.Ia(2):c.return();2!=c.j&&((b=c.B)&&g.CC()&&!g.AB("delete_gcf_config_db")?(a.G=!0,jsa(a)):(lsa(a),msa(a)));return g.AB("delete_gcf_config_db")?g.z(c,gsa(),0):c.Ia(0)})};
BD=function(){var a;return null!=(a=yD())?a:g.cB("RAW_HOT_CONFIG_GROUP")};
osa=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(yD());if(!a.G)return b=g.WC("getHotConfig IDB not initialized"),hB(b),l.return(Promise.reject(b));c=rD();d=g.cB("TIME_CREATED_MS");if(!c){e=g.WC("getHotConfig token error");hB(e);l.Ia(2);break}return g.z(l,fsa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return wD(a,f.config),a.Hr(f.hashData),l.return(yD());case 2:msa(a);if(!(c&&a.B&&a.hotHashData)){l.Ia(4);break}return g.z(l,csa(a.B,a.hotHashData,c,d),4);case 4:return a.B?
l.return(yD()):(h=new g.AC("Config not available in ytConfig"),hB(h),l.return(Promise.reject(h)))}})};
qsa=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(xD());if(!a.G)return b=g.WC("getColdConfig IDB not initialized"),hB(b),l.return(Promise.reject(b));c=rD();d=g.cB("TIME_CREATED_MS");if(!c){e=g.WC("getColdConfig");hB(e);l.Ia(2);break}return g.z(l,esa(c),3);case 3:if((f=l.B)&&f.timestamp>d)return isa(a,f.config),psa(a,f.configData),zD(a,f.hashData),l.return(xD());case 2:lsa(a);if(!(c&&a.j&&a.coldHashData&&a.configData)){l.Ia(4);break}return g.z(l,dsa(a.j,
a.coldHashData,a.configData,c,d),4);case 4:return a.j?l.return(xD()):(h=new g.AC("Config not available in ytConfig"),hB(h),l.return(Promise.reject(h)))}})};
jsa=function(a){if(!a.B||!a.j){if(!rD()){var b=g.WC("scheduleGetConfigs");hB(b)}a.D||(a.D=g.Zu.Mi(function(){return g.H(function(c){switch(c.j){case 1:return g.Ba(c,2),g.z(c,osa(a),4);case 4:g.Ca(c,3);break;case 2:g.Da(c);case 3:return g.Ba(c,5),g.z(c,qsa(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))}};
rsa=function(a,b,c){var d,e,f;return g.H(function(h){switch(h.j){case 1:if(!g.AB("start_client_gcf")){h.Ia(0);break}c&&wD(a,c);a.Hr(b);d=rD();if(!d){h.Ia(3);break}if(c){h.Ia(4);break}return g.z(h,fsa(d),5);case 5:e=h.B,c=null==(f=e)?void 0:f.config;case 4:return g.z(h,csa(c,b,d),3);case 3:if(c)for(var l=c,m=g.u(a.K.j),n=m.next();!n.done;n=m.next())n=n.value,n(l);g.Aa(h)}})};
ssa=function(a,b,c){var d,e,f,h;return g.H(function(l){if(1==l.j){if(!g.AB("start_client_gcf"))return l.Ia(0);zD(a,b);return(d=rD())?c?l.Ia(4):g.z(l,esa(d),5):l.Ia(0)}4!=l.j&&(e=l.B,c=null==(f=e)?void 0:f.config);if(!c)return l.Ia(0);h=c.configData;return g.z(l,dsa(c,b,h,d),0)})};
tsa=function(){var a=ksa(),b=(0,g.$C)()-a.C;if(!(0!==a.C&&b<g.BB("send_config_hash_timer"))){b=g.Xa("yt.gcf.config.coldConfigData");var c=g.Xa("yt.gcf.config.hotHashData"),d=g.Xa("yt.gcf.config.coldHashData");b&&c&&d&&(a.C=(0,g.$C)());return{coldConfigData:b,hotHashData:c,coldHashData:d}}};
lsa=function(a){isa(a,g.cB("RAW_COLD_CONFIG_GROUP"));zD(a,g.cB("SERIALIZED_COLD_HASH_DATA"));var b;psa(a,null==(b=a.j)?void 0:b.configData)};
msa=function(a){wD(a,g.cB("RAW_HOT_CONFIG_GROUP"));a.Hr(g.cB("SERIALIZED_HOT_HASH_DATA"))};
wD=function(a,b){a.B=b;g.Va("yt.gcf.config.hotConfigGroup",a.B||null)};
isa=function(a,b){a.j=b;g.Va("yt.gcf.config.coldConfigGroup",a.j||null)};
zD=function(a,b){a.coldHashData=b;g.Va("yt.gcf.config.coldHashData",a.coldHashData||null)};
psa=function(a,b){a.configData=b;g.Va("yt.gcf.config.coldConfigData",a.configData||null)};
yD=function(){return g.Xa("yt.gcf.config.hotConfigGroup")};
xD=function(){return g.Xa("yt.gcf.config.coldConfigGroup")};
usa=function(){return"INNERTUBE_API_KEY"in aB&&"INNERTUBE_API_VERSION"in aB};
g.CD=function(){return{innertubeApiKey:g.cB("INNERTUBE_API_KEY"),innertubeApiVersion:g.cB("INNERTUBE_API_VERSION"),eJ:g.cB("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),mP:g.cB("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),jY:g.cB("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.cB("INNERTUBE_CONTEXT_CLIENT_VERSION"),oP:g.cB("INNERTUBE_CONTEXT_HL"),nP:g.cB("INNERTUBE_CONTEXT_GL"),kY:g.cB("INNERTUBE_HOST_OVERRIDE")||"",lY:!!g.cB("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),pP:!!g.cB("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",
!1),appInstallData:g.cB("SERIALIZED_CLIENT_CONFIG_DATA")}};
g.Bsa=function(a){var b={client:{hl:a.oP,gl:a.nP,clientName:a.mP,clientVersion:a.innertubeContextClientVersion,configInfo:a.eJ}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=g.Ta.devicePixelRatio;c&&1!=c&&(b.client.screenDensityFloat=String(c));c=rpa();""!==c&&(b.client.experimentsToken=c);c=spa();0<c.length&&(b.request={internalExperimentFlags:c});vsa(a,void 0,b);wsa(void 0,b);xsa(void 0,b);ysa(a,void 0,b);zsa(void 0,b);g.AB("start_client_gcf")&&Asa(void 0,b);g.cB("DELEGATED_SESSION_ID")&&
!g.AB("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.cB("DELEGATED_SESSION_ID")});!g.AB("fill_delegate_context_in_gel_killswitch")&&(a=g.cB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=Object;c=a.assign;for(var d=b.client,e={},f=g.u(Object.entries(kB(g.cB("DEVICE","")))),h=f.next();!h.done;h=f.next()){var l=g.u(h.value);h=l.next().value;l=l.next().value;"cbrand"===h?e.deviceMake=l:"cmodel"===h?e.deviceModel=l:"cbr"===
h?e.browserName=l:"cbrver"===h?e.browserVersion=l:"cos"===h?e.osName=l:"cosver"===h?e.osVersion=l:"cplatform"===h&&(e.platform=l)}b.client=c.call(a,d,e);return b};
vsa=function(a,b,c){a=a.mP;if("WEB"===a||"MWEB"===a||1===a||2===a)if(b){c=g.qk(b,zy,96)||new zy;var d=Lqa();d=Object.keys(Csa).indexOf(d);d=-1===d?null:d;null!==d&&S(c,3,d);rk(b,zy,96,c)}else c&&(c.client.mainAppWebInfo=null!=(d=c.client.mainAppWebInfo)?d:{},c.client.mainAppWebInfo.webDisplayMode=Lqa())};
wsa=function(a,b){var c=g.Xa("yt.embedded_player.embed_url");c&&(a?(b=g.qk(a,Dy,7)||new Dy,Q(b,4,c),rk(a,Dy,7,b)):b&&(b.thirdParty={embedUrl:c}))};
xsa=function(a,b){var c;if(g.AB("web_log_memory_total_kbytes")&&(null==(c=g.Ta.navigator)?0:c.deviceMemory)){var d;c=null==(d=g.Ta.navigator)?void 0:d.deviceMemory;a?Fj(a,95,Bi(1E6*c)):b&&(b.client.memoryTotalKbytes=""+1E6*c)}};
ysa=function(a,b,c){if(a.appInstallData)if(b){var d;c=null!=(d=g.qk(b,wy,62))?d:new wy;Q(c,6,a.appInstallData);rk(b,wy,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
zsa=function(a,b){var c=Wqa();c&&(a?S(a,61,Dsa[c]):b&&(b.client.connectionType=c));g.AB("web_log_effective_connection_type")&&(c=Yqa())&&(a?S(a,94,Esa[c]):b&&(b.client.effectiveConnectionType=c))};
Fsa=function(a,b,c){c=void 0===c?{}:c;var d={};g.cB("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":g.cB("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||g.cB("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.CV||g.cB("AUTHORIZATION");b||(a?b="Bearer "+g.Xa("gapi.auth.getToken")().access_token:(a=Mqa().DD(DD),g.AB("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d};
Asa=function(a,b){var c=tsa();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(a){var f;b=null!=(f=g.qk(a,wy,62))?f:new wy;d=Q(b,1,d);Q(d,3,e).Hr(c);rk(a,wy,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))}};
ED=function(a,b){this.version=a;this.args=b};
FD=function(a,b){this.topic=a;this.j=b};
GD=function(a,b){var c=Gsa();c&&c.publish.call(c,a.toString(),a,b)};
Isa=function(a,b){var c=Gsa();if(!c)return 0;var d=c.subscribe(a.toString(),function(e,f){var h=g.Xa("ytPubsub2Pubsub2SkipSubKey");h&&h==d||(h=function(){if(HD[d])try{if(f&&a instanceof FD&&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.Fu){var n=new l;l.Fu=n.version}var p=l.Fu}catch(q){}if(!p||m.version!=p)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(l,
g.Lb(m.args))}catch(q){throw q.message="yt.pubsub2.Data.deserialize(): "+q.message,q;}}catch(q){throw q.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+q.message,q;}b.call(window,f)}catch(q){g.fB(q)}},Hsa[a.toString()]?g.IC()?g.Zu.Mi(h):g.wB(h,0):h())});
HD[d]=!0;ID[a.toString()]||(ID[a.toString()]=[]);ID[a.toString()].push(d);return d};
Ksa=function(a,b){var c=Isa(a,function(d){b.apply(void 0,arguments);Jsa(c)});
return c};
Jsa=function(a){var b=Gsa();b&&("number"===typeof a&&(a=[a]),g.$b(a,function(c){b.unsubscribeByKey(c);delete HD[c]}))};
Gsa=function(){return g.Xa("ytPubsub2Pubsub2Instance")};
Lsa=function(a,b,c){c=void 0===c?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&GD("meta_logging_csi_event",{timerName:a,bqb:b})};
Nsa=function(){Msa||(Msa=Lw(g.cB("WORKER_SERIALIZATION_URL")));return Msa||void 0};
JD=function(){var a=Nsa();Osa||void 0===a||(Osa=new Worker(g.Xd(a),void 0));return Osa};
Psa=function(){return"function"===typeof Worker&&Nsa()?!0:!1};
Ssa=function(){if(Psa()&&!Qsa){var a=function(c){c=c.data;if("gzippedGelBatch"===c.op){var d=KD.get(c.key);d&&(Rsa(c.gzippedBatch,d.latencyPayload,d.url,d.options,d.sendFn),KD.delete(c.key))}},b=JD();
b&&(b.addEventListener("message",a),b.onerror=function(){KD.clear()},Qsa=!0)}};
MD=function(a,b,c,d,e){e=void 0===e?!1:e;var f={startTime:(0,g.$C)(),ticks:{},infos:{}};if(LD)try{var h=Tsa(b);if(null!=h&&(h>Usa||h<Vsa))d(a,c);else{if(g.AB("gzip_gel_with_worker")&&(g.AB("initial_gzip_use_main_thread")&&!Wsa||!g.AB("initial_gzip_use_main_thread"))){Qsa||Ssa();var l=JD();if(l&&!e){KD.set(Xsa,{latencyPayload:f,url:a,options:c,sendFn:d});l.postMessage({op:"gelBatchToGzip",serializedBatch:b,key:Xsa});Xsa++;return}}var m=Vla(Ysa(b));Rsa(m,f,a,c,d)}}catch(n){hB(n),d(a,c)}else d(a,c)};
Rsa=function(a,b,c,d,e){Wsa=!1;var f=(0,g.$C)();b.ticks.gelc=f;ND++;g.AB("disable_compression_due_to_performance_degredation")&&f-b.startTime>=Zsa&&(OD++,g.AB("abandon_compression_after_N_slow_zips")?ND===g.BB("compression_disable_point")&&OD>$sa&&(LD=!1):LD=!1);ata(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)};
bta=function(a){var b=void 0===b?!1:b;var c=void 0===c?!1:c;var d=(0,g.$C)(),e={startTime:d,ticks:{},infos:{}},f=b?g.Xa("yt.logging.gzipForFetch",!1):!0;if(LD&&f){if(!a.body)return a;try{var h=c?a.body:"string"===typeof a.body?a.body:JSON.stringify(a.body);f=h;if(!c&&"string"===typeof h){var l=Tsa(h);if(null!=l&&(l>Usa||l<Vsa))return a;c=b?{level:1}:void 0;f=Vla(Ysa(h),c);var m=(0,g.$C)();e.ticks.gelc=m;if(b){ND++;if((g.AB("disable_compression_due_to_performance_degredation")||g.AB("disable_compression_due_to_performance_degradation_lr"))&&
m-d>=Zsa)if(OD++,g.AB("abandon_compression_after_N_slow_zips")||g.AB("abandon_compression_after_N_slow_zips_lr")){b=OD/ND;var n=$sa/g.BB("compression_disable_point");0<ND&&0===ND%g.BB("compression_disable_point")&&b>=n&&(LD=!1)}else LD=!1;ata(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=f;return a}catch(p){return hB(p),a}}else return a};
Tsa=function(a){try{return(new Blob(a.split(""))).size}catch(b){return hB(b),null}};
ata=function(a){g.AB("gel_compression_csi_killswitch")||!g.AB("log_gel_compression_latency")&&!g.AB("log_gel_compression_latency_lr")||Lsa("gel_compression",a,{sampleRate:.1})};
QD=function(a){var b=this;this.wH=this.j=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){};
this.Hz=function(){};
this.now=Date.now;this.kD=!1;this.pd={Jpb:function(p){b.Ff=p},
eqb:function(){b.GB()},
e6:function(){b.pN()},
hE:function(p){return g.H(function(q){return g.z(q,b.hE(p),0)})},
QK:function(p,q){return b.QK(p,q)},
TK:function(){b.TK()}};
var c;this.M0=null!=(c=a.M0)?c:100;var d;this.T_=null!=(d=a.T_)?d:1;var e;this.M_=null!=(e=a.M_)?e:2592E6;var f;this.H_=null!=(f=a.H_)?f:12E4;var h;this.S_=null!=(h=a.S_)?h:5E3;var l;this.Ff=null!=(l=a.Ff)?l:void 0;this.bI=!!a.bI;var m;this.GH=null!=(m=a.GH)?m:.1;var n;this.AK=null!=(n=a.AK)?n:10;a.handleError&&(this.handleError=a.handleError);a.Hz&&(this.Hz=a.Hz);a.kD&&(this.kD=a.kD);a.wH&&(this.wH=a.wH);this.jb=a.jb;this.Qn=a.Qn;this.Bh=a.Bh;this.fh=a.fh;this.sendFn=a.sendFn;this.XQ=a.XQ;this.kQ=
a.kQ;PD(this)&&(!this.jb||this.jb("networkless_logging"))&&cta(this)};
cta=function(a){PD(a)&&!a.kD&&(a.j=!0,a.bI&&Math.random()<=a.GH&&a.Bh.k6(a.Ff),a.TK(),a.fh.Wh()&&a.GB(),a.fh.listen(a.XQ,a.GB.bind(a)),a.fh.listen(a.kQ,a.pN.bind(a)))};
fta=function(a,b){if(!PD(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=dta(f);(l=eta(f))&&a.jb&&a.jb("web_enable_error_204")&&a.handleError(Error("Request failed due to compression"),b.url,f);if(!(a.jb&&a.jb("nwl_consider_error_code")&&h||a.jb&&!a.jb("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.AK)){p.Ia(2);break}if(!a.fh.WK){p.Ia(3);break}return g.z(p,a.fh.WK(),3);case 3:if(a.fh.Wh()){p.Ia(2);break}c(e,f);if(!a.jb||!a.jb("nwl_consider_error_code")||void 0===(null==(m=
b)?void 0:m.id)){p.Ia(6);break}return g.z(p,a.Bh.HR(b.id,a.Ff,!1),6);case 6:return p.return();case 2:if(a.jb&&a.jb("nwl_consider_error_code")&&!h&&a.potentialEsfErrorCounter>a.AK)return p.return();a.potentialEsfErrorCounter++;if(void 0===(null==(n=b)?void 0:n.id)){p.Ia(8);break}return b.sendCount<a.T_?g.z(p,a.Bh.HR(b.id,a.Ff,!0,l?!1:void 0),12):g.z(p,a.Bh.lz(b.id,a.Ff),8);case 12:a.Qn.Mi(function(){a.fh.Wh()&&a.GB()},a.S_);
case 8:c(e,f),g.Aa(p)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,f){var h;return g.H(function(l){if(1==l.j)return void 0===(null==(h=b)?void 0:h.id)?l.Ia(2):g.z(l,a.Bh.lz(b.id,a.Ff),2);a.fh.Kw&&a.jb&&a.jb("vss_network_hint")&&a.fh.Kw(!0);d(e,f);g.Aa(l)})};
return b};
RD=function(a,b){a.Q1&&!a.fh.Wh()?a.Q1(b):a.handleError(b)};
PD=function(a){return!!a.Ff||a.wH};
dta=function(a){var b;return(a=null==a?void 0:null==(b=a.error)?void 0:b.code)&&400<=a&&599>=a?!1:!0};
eta=function(a){var b;a=null==a?void 0:null==(b=a.error)?void 0:b.code;return!(400!==a&&415!==a)};
gta=function(){if(SD)return SD();var a={};SD=g.uD("LogsDatabaseV2",{rr:(a.LogsRequestsStore={Zm:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&g.aD(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.j.indexNames.contains("newRequest")&&d.j.deleteIndex("newRequest"),g.gD(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&bD(b,"sapisid");c(9)&&bD(b,"SWHealthLog")},
version:9});return SD()};
TD=function(a){return g.nD(gta(),a)};
ita=function(a,b){var c,d,e,f;return g.H(function(h){if(1==h.j)return c={startTime:(0,g.$C)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.z(h,TD(b),2);if(3!=h.j)return d=h.B,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:g.cB("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.z(h,g.eD(d,"LogsRequestsStore",e),3);f=h.B;c.ticks.tc=(0,g.$C)();hta(c);return h.return(f)})};
jta=function(a,b){var c,d,e,f,h,l,m,n;return g.H(function(p){if(1==p.j)return c={startTime:(0,g.$C)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.z(p,TD(b),2);if(3!=p.j)return d=p.B,e=g.cB("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[a,e,0],h=[a,e,(0,g.$C)()],l=IDBKeyRange.bound(f,h),m="prev",g.AB("use_fifo_for_networkless")&&(m="next"),n=void 0,g.z(p,g.cD(d,["LogsRequestsStore"],{mode:"readwrite",Nb:!0},function(q){return g.jD(q.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:l,direction:m},function(r){r.getValue()&&(n=r.getValue(),"NEW"===a&&(n.status="QUEUED",r.update(n)))})}),3);
c.ticks.tc=(0,g.$C)();hta(c);return p.return(n)})};
kta=function(a,b){var c;return g.H(function(d){if(1==d.j)return g.z(d,TD(b),2);c=d.B;return d.return(g.cD(c,["LogsRequestsStore"],{mode:"readwrite",Nb:!0},function(e){var f=e.objectStore("LogsRequestsStore");return f.get(a).then(function(h){if(h)return h.status="QUEUED",g.dD(f,h).then(function(){return h})})}))})};
lta=function(a,b,c,d){c=void 0===c?!0:c;var e;return g.H(function(f){if(1==f.j)return g.z(f,TD(b),2);e=f.B;return f.return(g.cD(e,["LogsRequestsStore"],{mode:"readwrite",Nb:!0},function(h){var l=h.objectStore("LogsRequestsStore");return l.get(a).then(function(m){return m?(m.status="NEW",c&&(m.sendCount+=1),void 0!==d&&(m.options.compress=d),g.dD(l,m).then(function(){return m})):g.YC.resolve(void 0)})}))})};
mta=function(a,b){var c;return g.H(function(d){if(1==d.j)return g.z(d,TD(b),2);c=d.B;return d.return(c.delete("LogsRequestsStore",a))})};
nta=function(a){var b,c;return g.H(function(d){if(1==d.j)return g.z(d,TD(a),2);b=d.B;c=(0,g.$C)()-2592E6;return g.z(d,g.cD(b,["LogsRequestsStore"],{mode:"readwrite",Nb:!0},function(e){return g.hD(e.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.iD(f)})})}),0)})};
ota=function(){g.H(function(a){return g.z(a,Zra("LogsDatabaseV2"),0)})};
hta=function(a){g.AB("nwl_csi_killswitch")||Lsa("networkless_performance",a,{sampleRate:1})};
qta=function(a){return g.nD(pta(),a)};
rta=function(a){var b,c;g.H(function(d){if(1==d.j)return g.z(d,qta(a),2);b=d.B;c=(0,g.$C)()-2592E6;return g.z(d,g.cD(b,["SWHealthLog"],{mode:"readwrite",Nb:!0},function(e){return g.hD(e.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=c)return f.delete().then(function(){return g.iD(f)})})}),0)})};
sta=function(a){var b;return g.H(function(c){if(1==c.j)return g.z(c,qta(a),2);b=c.B;return g.z(c,b.clear("SWHealthLog"),0)})};
g.UD=function(a,b,c,d,e,f,h){e=void 0===e?"":e;f=void 0===f?!1:f;h=void 0===h?!1:h;if(a)if(c&&!g.PB()){if(a){a=g.be(g.ie(a));if(a===g.ee.toString()||a.startsWith("data"))a="";else{var l=void 0===l?{}:l;a instanceof g.me?l=a:(a=String(a).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"),l.wpb&&(a=a.replace(/(^|[\r\n\t ]) /g,"$1&#160;")),l.vpb&&(a=a.replace(/(\r\n|\n|\r)/g,"<br>")),l.ypb&&(a=a.replace(/(\t+)/g,'<span style="white-space:pre">$1</span>')),
l=re(a));a=g.Se(g.$m(g.ne(l).toString()))}g.ec(a)||(l=xf("IFRAME",{src:'javascript:"<body><img src=\\""+'+a+'+"\\"></body>"',style:"display:none"}),bf(l).body.appendChild(l))}}else if(e)vpa(a,b,"POST",e,d);else if(g.cB("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||h)vpa(a,b,"GET","",d,void 0,f,h);else{b:{try{var m=new Oka({url:a});if(m.C&&m.B||m.D){var n=en(g.gn(5,a));var p=!(!n||!n.endsWith("/aclk")||"1"!==On(a,"ri"));break b}}catch(q){}p=!1}p?tta(a)?(b&&b(),l=!0):l=!1:l=!1;l||uta(a,b)}};
tta=function(a,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,void 0===b?"":b))return!0}catch(c){}return!1};
uta=function(a,b){var c=new Image,d=""+vta++;wta[d]=c;c.onload=c.onerror=function(){b&&wta[d]&&b();delete wta[d]};
c.src=a};
xta=function(a){var b=g.hn(a);if(!g.AB("update_chrome_api_monitoring_allowed_features")&&"www.googleadservices.com"!==b)return a;var c,d,e;return(g.AB("update_chrome_api_monitoring_allowed_features")?null==(c=document.featurePolicy)?0:c.allowedFeatures().includes("attribution-reporting"):"function"===typeof(null==(d=document.featurePolicy)?void 0:d.features)&&(null==(e=document.featurePolicy)?0:e.features().includes("attribution-reporting")))?a+"&nis=6":a+"&nis=5"};
VD=function(){yta||(yta=new KC("yt.offline"));return yta};
zta=function(a){if(g.AB("offline_error_handling")){var b=VD().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);VD().set("errors",b,2592E3,!0)}};
WD=function(){this.j=new Map;this.B=!1};
XD=function(){if(!WD.instance){var a=g.Xa("yt.networkRequestMonitor.instance")||new WD;g.Va("yt.networkRequestMonitor.instance",a);WD.instance=a}return WD.instance};
YD=function(){g.Dd.call(this);var a=this;this.B=!1;this.j=Tka();this.j.listen("networkstatus-online",function(){if(a.B&&g.AB("offline_error_handling")){var b=VD().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new g.AC(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;g.fB(d)}VD().set("errors",{},2592E3,!0)}}})};
Ata=function(){if(!YD.instance){var a=g.Xa("yt.networkStatusManager.instance")||new YD;g.Va("yt.networkStatusManager.instance",a);YD.instance=a}return YD.instance};
g.ZD=function(a){a=void 0===a?{}:a;g.Dd.call(this);var b=this;this.j=this.D=0;this.B=Ata();var c=g.Xa("yt.networkStatusManager.instance.listen").bind(this.B);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){Bta(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){Bta(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
Bta=function(a,b){a.rateLimit?a.j?(g.Zu.Mj(a.D),a.D=g.Zu.Mi(function(){a.C!==b&&(a.dispatchEvent(b),a.C=b,a.j=(0,g.$C)())},a.rateLimit-((0,g.$C)()-a.j))):(a.dispatchEvent(b),a.C=b,a.j=(0,g.$C)()):a.dispatchEvent(b)};
$D=function(){var a=QD.call;Cta||(Cta=new g.ZD({Rob:!0,nnb:!0}));a.call(QD,this,{Bh:{k6:nta,lz:mta,kX:jta,o9:kta,HR:lta,set:ita},fh:Cta,handleError:function(b,c,d){var e,f=null==d?void 0:null==(e=d.error)?void 0:e.code;if(400===f||415===f){var h;hB(new g.AC(b.message,c,null==d?void 0:null==(h=d.error)?void 0:h.code),void 0,void 0,void 0,!0)}else g.fB(b)},
Hz:hB,sendFn:Dta,now:g.$C,Q1:zta,Qn:g.HC(),XQ:"publicytnetworkstatus-online",kQ:"publicytnetworkstatus-offline",bI:!0,GH:.1,AK:g.BB("potential_esf_error_limit",10),jb:g.AB,kD:!(g.CC()&&"www.youtube-nocookie.com"!==g.hn(document.location.toString()))});this.C=new g.mo;g.AB("networkless_immediately_drop_all_requests")&&ota();$ra("LogsDatabaseV2")};
aE=function(){var a=g.Xa("yt.networklessRequestController.instance");a||(a=new $D,g.Va("yt.networklessRequestController.instance",a),g.AB("networkless_logging")&&g.sD().then(function(b){a.Ff=b;cta(a);a.C.resolve();a.bI&&Math.random()<=a.GH&&a.Ff&&rta(a.Ff);g.AB("networkless_immediately_drop_sw_health_store")&&Eta(a)}));
return a};
Eta=function(a){var b;g.H(function(c){if(!a.Ff)throw b=g.WC("clearSWHealthLogsDb"),b;return c.return(sta(a.Ff).catch(function(d){a.handleError(d)}))})};
Dta=function(a,b,c,d){d=void 0===d?!1:d;b=g.AB("web_fp_via_jspb")?Object.assign({},b):b;g.AB("use_cfr_monitor")&&Fta(a,b);if(g.AB("use_request_time_ms_header"))b.headers&&oB(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.$C)())));else{var e;if(null==(e=b.postParams)?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.$C)())}c&&0===Object.keys(b).length?g.UD(a):b.compress?b.postBody?("string"!==typeof b.postBody&&(b.postBody=JSON.stringify(b.postBody)),MD(a,b.postBody,
b,g.CB,d)):MD(a,JSON.stringify(b.postParams),b,zpa,d):g.CB(a,b)};
Gta=function(a,b){g.AB("use_event_time_ms_header")&&oB(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.$C)())));return b};
Fta=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,f){XD().requestComplete(a,!1);c(e,f)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,f){XD().requestComplete(a,!0);d(e,f)}};
g.bE=function(a){this.config_=null;a?this.config_=a:usa()&&(this.config_=g.CD())};
g.cE=function(a,b,c,d){function e(p){try{if((void 0===p?0:p)&&d.retry&&!d.networklessOptions.bypassNetworkless)f.method="POST",d.networklessOptions.writeThenSend?aE().writeThenSend(n,f):aE().sendAndWrite(n,f);else if(d.compress){var q=!d.networklessOptions.writeThenSend;if(f.postBody){var r=f.postBody;"string"!==typeof r&&(r=JSON.stringify(f.postBody));MD(n,r,f,g.CB,q)}else MD(n,JSON.stringify(f.postParams),f,zpa,q)}else g.AB("web_all_payloads_via_jspb")?g.CB(n,f):zpa(n,f)}catch(t){if("InvalidAccessError"===
t.name)hB(Error("An extension is blocking network request."));else throw t;}}
!g.cB("VISITOR_DATA")&&"visitor_id"!==b&&.01>Math.random()&&hB(new g.AC("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady())throw a=new g.AC("innertube xhrclient not ready",b,c,d),g.fB(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_.kY;h&&(c=h);var l=a.config_.lY||!1;h=Fsa(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_.pP&&h;m=m&&h.startsWith("Bearer");m||(l.key=a.config_.innertubeApiKey);var n=mB(""+c+b,l);g.Xa("ytNetworklessLoggingInitializationOptions")&&
Hta.isNwlInitialized?Sra().then(function(p){e(p)}):e(!1)};
g.hE=function(a,b,c){var d=g.dE();if(d&&b){var e=d.subscribe(a,function(){function f(){eE[e]&&b.apply&&"function"==typeof b.apply&&b.apply(c||window,h)}
var h=arguments;try{g.fE[a]?f():g.wB(f,0)}catch(l){g.fB(l)}},c);
eE[e]=!0;gE[a]||(gE[a]=[]);gE[a].push(e);return e}return 0};
Ita=function(a){var b=g.hE("LOGGED_IN",function(c){a.apply(void 0,arguments);g.iE(b)})};
g.iE=function(a){var b=g.dE();b&&("number"===typeof a?a=[a]:"string"===typeof a&&(a=[parseInt(a,10)]),g.$b(a,function(c){b.unsubscribeByKey(c);delete eE[c]}))};
g.jE=function(a,b){var c=g.dE();return c?c.publish.apply(c,arguments):!1};
Kta=function(a){var b=g.dE();if(b)if(b.clear(a),a)Jta(a);else for(var c in gE)Jta(c)};
g.dE=function(){return g.Ta.ytPubsubPubsubInstance};
Jta=function(a){gE[a]&&(a=gE[a],g.$b(a,function(b){eE[b]&&delete eE[b]}),a.length=0)};
g.Mta=function(a,b,c){Lta(a,b,void 0===c?null:c)};
Lta=function(a,b,c){c=void 0===c?null:c;var d=Nta(a),e=document.getElementById(d),f=e&&rqa(e),h=e&&!f;f?b&&b():(b&&(f=g.hE(d,b),b=""+g.fb(b),Ota[b]=f),h||(e=Pta(a,d,function(){rqa(e)||(qqa(e),g.jE(d),g.wB(function(){Kta(d)},0))},c)))};
Pta=function(a,b,c,d){d=void 0===d?null:d;var e=g.yf("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.Re(e,g.Mw(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
Nta=function(a){var b=document.createElement("a");g.Ke(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Ze(a)};
lE=function(a){var b=g.Ia.apply(1,arguments);if(!kE(a)||b.some(function(d){return!kE(d)}))throw Error("Only objects may be merged.");
b=g.u(b);for(var c=b.next();!c.done;c=b.next())Qta(a,c.value)};
Qta=function(a,b){for(var c in b)if(kE(b[c])){if(c in a&&!kE(a[c]))throw Error("Cannot merge an object into a non-object.");c in a||(a[c]={});Qta(a[c],b[c])}else if(Rta(b[c])){if(c in a&&!Rta(a[c]))throw Error("Cannot merge an array into a non-array.");c in a||(a[c]=[]);Sta(a[c],b[c])}else a[c]=b[c];return a};
Sta=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,kE(c)?a.push(Qta({},c)):Rta(c)?a.push(Sta([],c)):a.push(c);return a};
kE=function(a){return"object"===typeof a&&!Array.isArray(a)};
Rta=function(a){return"object"===typeof a&&Array.isArray(a)};
mE=function(a){g.I.call(this);this.B=a};
nE=function(a){mE.call(this,!0);this.j=a};
Tta=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.qa=null;var d=(0,g.gb)(a,b);this.j=new g.lv(function(){return d(c.qa)},300);
g.O(this,this.j);this.Y=this.Z=Infinity};
Uta=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};
Vta=function(a){for(var b=Array(a),c=0;c<a;c++){for(var d=Date.now(),e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(256*Math.random())}if(oE)for(c=1,d=0;d<oE.length;d++)b[c%a]=b[c%a]^b[(c-1)%a]/4^oE.charCodeAt(d),c++;return b};
pE=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(a),c=new Uint8Array(a);window.crypto.getRandomValues(c);for(var d=0;d<b.length;d++)b[d]=c[d];return b}catch(e){}return Vta(a)};
g.qE=function(a){a=pE(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
g.Wta=function(){return g.Rr(pE(16),function(a){return(a&15).toString(16)}).join("")};
Xta=function(){var a={},b=void 0===a.Pba?!1:a.Pba;a=void 0===a.W6?!0:a.W6;if(null==g.Xa("_lact",window)){var c=parseInt(g.cB("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;g.Va("_lact",c,window);g.Va("_fact",c,window);-1==c&&rE();g.jC(document,"keydown",rE);g.jC(document,"keyup",rE);g.jC(document,"mousedown",rE);g.jC(document,"mouseup",rE);b?g.jC(window,"touchmove",function(){sE("touchmove",200)},{passive:!0}):(g.jC(window,"resize",function(){sE("resize",200)}),a&&g.jC(window,"scroll",function(){sE("scroll",
200)}));
new mC(function(){sE("mouse",100)});
g.jC(document,"touchstart",rE,{passive:!0});g.jC(document,"touchend",rE,{passive:!0})}};
sE=function(a,b){Yta[a]||(Yta[a]=!0,g.Zu.Mi(function(){rE();Yta[a]=!1},b))};
rE=function(){null==g.Xa("_lact",window)&&(Xta(),g.Xa("_lact",window));var a=Date.now();g.Va("_lact",a,window);-1==g.Xa("_fact",window)&&g.Va("_fact",a,window);(a=g.Xa("ytglobal.ytUtilActivityCallback_"))&&a()};
tE=function(){var a=g.Xa("_lact",window);return null==a?-1:Math.max(Date.now()-a,0)};
uE=function(a){this.name=a};
vE=function(a){this.key=a};
Zta=function(){var a=this;this.j=new Map;this.C=new Map;this.B=new Map;this.pd={eob:function(){return new Map(a.j)}}};
$ta=function(a,b){a.j.set(b.BF,b);var c=a.C.get(b.BF);if(c)try{c.JR(a.resolve(b.BF))}catch(d){c.wR(d)}};
xE=function(a,b,c,d){d=void 0===d?!1:d;if(-1<c.indexOf(b))throw Error("Deps cycle for: "+b);if(a.B.has(b))return a.B.get(b);if(!a.j.has(b)){if(d)return;throw Error("No provider for: "+b);}d=a.j.get(b);c.push(b);if(void 0!==d.VS)var e=d.VS;else if(d.Pda)e=d[wE]?aua(a,d[wE],c):[],e=d.Pda.apply(d,g.qa(e));else if(d.F1){e=d.F1;var f=e[wE]?aua(a,e[wE],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(g.qa(f))))}else throw Error("Could not resolve providers for: "+b);c.pop();d.Xpb||a.B.set(b,e);
return e};
aua=function(a,b,c){return b?b.map(function(d){return d instanceof vE?xE(a,d.key,c,!0):xE(a,d,c)}):[]};
yE=function(){bua||(bua=new Zta);return bua};
cua=function(){var a,b;return"h5vcc"in zE&&(null==(a=zE.h5vcc.traceEvent)?0:a.traceBegin)&&(null==(b=zE.h5vcc.traceEvent)?0:b.traceEnd)?1:"performance"in zE&&zE.performance.mark&&zE.performance.measure?2:0};
dua=function(a){var b=cua();switch(b){case 1:zE.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:zE.performance.mark(a+"-start");break;case 0:break;default:Le(b,"unknown trace type")}};
eua=function(a){var b=cua();switch(b){case 1:zE.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";zE.performance.mark(c);zE.performance.measure(a,b,c);break;case 0:break;default:Le(b,"unknown trace type")}};
gua=function(a){var b=this;var c=void 0===c?0:c;var d=void 0===d?g.HC():d;this.C=c;this.scheduler=d;this.B=new g.mo;this.j=a;for(a={Xv:0};a.Xv<this.j.length;a={tK:void 0,Xv:a.Xv},a.Xv++)a.tK=this.j[a.Xv],c=function(e){return function(){e.tK.FP();b.j[e.Xv].DK=!0;b.j.every(function(f){return!0===f.DK})&&b.B.resolve()}}(a),d=EC(c,fua(this,a.tK)),this.j[a.Xv]=Object.assign({},a.tK,{FP:c,
jobId:d})};
hua=function(a){var b=Array.from(a.j.keys()).sort(function(d,e){return fua(a,a.j[e])-fua(a,a.j[d])});
b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=a.j[c.value],void 0===c.jobId||c.DK||(a.scheduler.Mj(c.jobId),EC(c.FP,10))};
fua=function(a,b){var c;return null!=(c=b.priority)?c:a.C};
BE=function(a){this.state=a;this.plugins=[];this.C=void 0;this.D={};AE&&dua(this.state)};
jua=function(a,b){var c=b.filter(function(e){return 10===iua(a,e)}),d=b.filter(function(e){return 10!==iua(a,e)});
return a.D.Tpb?function(){var e=g.Ia.apply(0,arguments);return g.H(function(f){if(1==f.j)return g.z(f,a.vca.apply(a,[c].concat(g.qa(e))),2);a.m0.apply(a,[d].concat(g.qa(e)));g.Aa(f)})}:function(){var e=g.Ia.apply(0,arguments);
a.wca.apply(a,[c].concat(g.qa(e)));a.m0.apply(a,[d].concat(g.qa(e)))}};
iua=function(a,b){var c,d;return null!=(d=null!=(c=a.C)?c:b.priority)?d:0};
kua=function(a){AE&&a&&dua(a)};
CE=function(a){AE&&a&&eua(a)};
mua=function(a,b,c){lua&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())};
DE=function(a){BE.call(this,void 0===a?"none":a);this.j=null;this.C=10;this.transitions=[{from:"none",to:"application_navigating",action:this.G},{from:"application_navigating",to:"none",action:this.K},{from:"application_navigating",to:"application_navigating",action:function(){}},
{from:"none",to:"none",action:function(){}}]};
oua=function(){nua||(nua=new DE);return nua};
EE=function(){var a=this;this.store={};this.j=0;this.B={};this.pd={Snb:function(){return a.j}}};
qua=function(a,b){var c=pua(b);if(a.B[c])return a.B[c];var d=Object.keys(a.store)||[];if(1>=d.length&&pua(b)===d[0])return d;for(var e=[],f=0;f<d.length;f++){var h=d[f].split("/");if(FE(b.auth,h[0])){var l=b.isJspb;FE(void 0===l?"undefined":l?"true":"false",h[1])&&FE(b.cttAuthInfo,h[2])&&(l=b.tier,l=void 0===l?"undefined":JSON.stringify(l),FE(l,h[3])&&e.push(d[f]))}}return a.B[c]=e};
FE=function(a,b){return void 0===a||"undefined"===a?!0:a===b};
pua=function(a){return[void 0===a.auth?"undefined":a.auth,void 0===a.isJspb?"undefined":a.isJspb,void 0===a.cttAuthInfo?"undefined":a.cttAuthInfo,void 0===a.tier?"undefined":a.tier].join("/")};
GE=function(){this.D=this.j=this.B=0;this.C=!1};
HE=function(){var a=g.Xa("yt.logging.ims");a||(a=new EE,g.Va("yt.logging.ims",a));return a};
tua=function(){if(Psa()&&!rua){var a=function(c){c=c.data;if("serializedGelBatch"===c.op){var d=IE.get(c.key);d&&(sua(c.serializedBatch,d.client,d.resolve,d.networklessOptions,d.isIsolated,d.useVSSEndpoint,d.dangerousLogToVisitorSession,d.requestsOutstanding),IE.delete(c.key))}},b=JD();
b&&(b.addEventListener("message",a),b.onerror=function(){IE.clear()});
rua=!0}};
zua=function(a,b){if("log_event"===a.endpoint){JE(a);var c=KE(a),d=uua(a.payload)||"",e=vua(d),f=200;if(e){if(!1===e.enabled&&!g.AB("web_payload_policy_disabled_killswitch"))return;f=wua(e.tier);if(400===f){xua(a,b);return}}LE[c]=!0;e={cttAuthInfo:c,isJspb:!1,tier:f};HE().storePayload(e,a.payload);yua(b,c,!1,e,ME(d))}};
Bua=function(a,b,c){if("log_event"===b.endpoint){JE(void 0,b);var d=KE(b,!0),e=vua(a),f=200;if(e){if(!1===e.enabled&&!g.AB("web_payload_policy_disabled_killswitch"))return;f=wua(e.tier);if(400===f){Aua(a,b,c);return}}LE[d]=!0;e={cttAuthInfo:d,isJspb:!0,tier:f};HE().storePayload(e,b.payload.toJSON());yua(c,d,!0,e,ME(a))}};
yua=function(a,b,c,d,e){function f(){Cua({writeThenSend:!0},g.AB("flush_only_full_queue")?b:void 0,c,d.tier)}
c=void 0===c?!1:c;e=void 0===e?!1:e;a&&(NE=new a);a=g.BB("tvhtml5_logging_max_batch_ads_fork")||g.BB("web_logging_max_batch")||100;var h=(0,g.$C)(),l=Dua(c,d.tier),m=l.D;e&&(l.C=!0);e=0;d&&(e=HE().getSequenceCount(d));1E3<=e?f():e>=a?Eua||(Eua=Fua(function(){f();Eua=void 0},0)):10<=h-m&&(Gua(c,d.tier),l.D=h)};
xua=function(a,b){if("log_event"===a.endpoint){JE(a);var c=KE(a),d=new Map;d.set(c,[a.payload]);var e=uua(a.payload)||"";b&&(NE=new b);return new g.hg(function(f,h){NE&&NE.isReady()?Hua(d,NE,f,h,{bypassNetworkless:!0},!0,ME(e)):f()})}};
Aua=function(a,b,c){if("log_event"===b.endpoint){JE(void 0,b);var d=KE(b,!0),e=new Map;e.set(d,[b.payload.toJSON()]);c&&(NE=new c);return new g.hg(function(f){NE&&NE.isReady()?Iua(e,NE,f,{bypassNetworkless:!0},!0,ME(a)):f()})}};
KE=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(void 0===b?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new $A;c.videoId?d.setVideoId(c.videoId):c.playlistId&&Tj(d,2,OE,Zi(c.playlistId));PE[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),QE[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
Cua=function(a,b,c,d){a=void 0===a?{}:a;c=void 0===c?!1:c;new g.hg(function(e,f){var h=Dua(c,d),l=h.C;h.C=!1;Jua(h.B);Jua(h.j);h.j=0;NE&&NE.isReady()?void 0===d&&g.AB("enable_web_tiered_gel")?Kua(e,f,a,b,c,300,l):Kua(e,f,a,b,c,d,l):(Gua(c,d),e())})};
Kua=function(a,b,c,d,e,f,h){var l=NE;c=void 0===c?{}:c;e=void 0===e?!1:e;f=void 0===f?200:f;h=void 0===h?!1:h;var m=new Map,n=new Map,p={isJspb:e,cttAuthInfo:d,tier:f},q={isJspb:e,cttAuthInfo:d};if(void 0!==d)e?(b=g.AB("enable_web_tiered_gel")?HE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):HE().extractMatchingEntries(q),m.set(d,b),Iua(m,l,a,c,!1,h)):(m=g.AB("enable_web_tiered_gel")?HE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):HE().extractMatchingEntries(q),n.set(d,m),
Hua(n,l,a,b,c,!1,h));else if(e){b=g.u(Object.keys(LE));for(n=b.next();!n.done;n=b.next())n=n.value,f=g.AB("enable_web_tiered_gel")?HE().smartExtractMatchingEntries({keys:[p,q],sizeLimit:1E3}):HE().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),0<f.length&&m.set(n,f),(g.AB("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.AB("web_fp_via_jspb_and_json"))&&delete LE[n];Iua(m,l,a,c,!1,h)}else{m=g.u(Object.keys(LE));for(p=m.next();!p.done;p=m.next())p=p.value,q=g.AB("enable_web_tiered_gel")?HE().smartExtractMatchingEntries({keys:[{isJspb:!1,
cttAuthInfo:p,tier:f},{isJspb:!1,cttAuthInfo:p}],sizeLimit:1E3}):HE().extractMatchingEntries({isJspb:!1,cttAuthInfo:p}),0<q.length&&n.set(p,q),(g.AB("web_fp_via_jspb_and_json")&&c.writeThenSend||!g.AB("web_fp_via_jspb_and_json"))&&delete LE[p];Hua(n,l,a,b,c,!1,h)}};
Gua=function(a,b){function c(){Cua({writeThenSend:!0},void 0,a,b)}
a=void 0===a?!1:a;b=void 0===b?200:b;var d=Dua(a,b),e=d===Lua||d===Mua?5E3:Nua;g.AB("web_gel_timeout_cap")&&!d.j&&(e=Fua(function(){c()},e),d.j=e);
Jua(d.B);e=g.cB("LOGGING_BATCH_TIMEOUT",g.BB("web_gel_debounce_ms",1E4));g.AB("shorten_initial_gel_batch_timeout")&&RE&&(e=Oua);e=Fua(function(){0<g.BB("gel_min_batch_size")?HE().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=Pua&&c():c()},e);
d.B=e};
Hua=function(a,b,c,d,e,f,h){e=void 0===e?{}:e;var l=Math.round((0,g.$C)()),m=a.size,n=Qua(h);a=g.u(a);var p=a.next();for(h={};!p.done;h={fQ:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,SQ:void 0,wQ:void 0},p=a.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;h.batchRequest=g.nd({context:g.Bsa(b.config_||g.CD())});if(!g.ab(q)&&!g.AB("throw_err_when_logevent_malformed_killswitch")){d();break}h.batchRequest.events=q;(q=QE[p])&&Rua(h.batchRequest,p,q);delete QE[p];h.dangerousLogToVisitorSession=
"visitorOnlyApprovedKey"===p;Sua(h.batchRequest,l,h.dangerousLogToVisitorSession);Tua(e);h.SQ=function(r){g.AB("start_client_gcf")&&g.Zu.Mi(function(){return g.H(function(t){return g.z(t,Uua(r),0)})});
m--;m||c()};
h.fQ=0;h.wQ=function(r){return function(){r.fQ++;if(e.bypassNetworkless&&1===r.fQ)try{g.cE(b,n,r.batchRequest,Vua({writeThenSend:!0},r.dangerousLogToVisitorSession,r.SQ,r.wQ,f)),RE=!1}catch(t){g.fB(t),d()}m--;m||c()}}(h);
try{g.cE(b,n,h.batchRequest,Vua(e,h.dangerousLogToVisitorSession,h.SQ,h.wQ,f)),RE=!1}catch(r){g.fB(r),d()}}};
Iua=function(a,b,c,d,e,f){d=void 0===d?{}:d;var h=Math.round((0,g.$C)()),l={value:a.size},m=new Map([].concat(g.qa(a)));m=g.u(m);for(var n=m.next();!n.done;n=m.next()){var p=g.u(n.value).next().value,q=a.get(p);n=new bpa;var r=b.config_||g.CD(),t=new Gy,v=new Ay;Q(v,1,r.oP);Q(v,2,r.nP);S(v,16,r.jY);Q(v,17,r.innertubeContextClientVersion);if(r.eJ){var w=r.eJ,A=new wy;w.coldConfigData&&Q(A,1,w.coldConfigData);w.appInstallData&&Q(A,6,w.appInstallData);w.coldHashData&&Q(A,3,w.coldHashData);w.hotHashData&&
A.Hr(w.hotHashData);rk(v,wy,62,A)}(w=g.Ta.devicePixelRatio)&&1!=w&&Ik(v,65,w);w=rpa();""!==w&&Q(v,54,w);w=spa();if(0<w.length){A=new Cy;for(var C=0;C<w.length;C++){var F=new By;Q(F,1,w[C].key);Tj(F,2,Wua,Zi(w[C].value));uk(A,15,By,F)}rk(t,Cy,5,A)}vsa(r,v);wsa(t);xsa(v);ysa(r,v);zsa(v);g.AB("start_client_gcf")&&Asa(v);g.cB("DELEGATED_SESSION_ID")&&!g.AB("pageid_as_header_web")&&(r=new Fy,Q(r,3,g.cB("DELEGATED_SESSION_ID")));!g.AB("fill_delegate_context_in_gel_killswitch")&&(w=g.cB("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&
(A=g.qk(t,Fy,3)||new Fy,r=t,w=Q(A,18,w),rk(r,Fy,3,w));r=v;w=g.u(Object.entries(kB(g.cB("DEVICE",""))));for(A=w.next();!A.done;A=w.next())C=g.u(A.value),A=C.next().value,C=C.next().value,"cbrand"===A?Q(r,12,C):"cmodel"===A?Q(r,13,C):"cbr"===A?Q(r,87,C):"cbrver"===A?Q(r,88,C):"cos"===A?Q(r,18,C):"cosver"===A?Q(r,19,C):"cplatform"===A&&S(r,42,Nqa(C));t.vx(v);rk(n,Gy,1,t);if(v=PE[p])a:{if(v.oe())t=1;else if(v.getPlaylistId())t=2;else break a;rk(n,$A,4,v);v=g.qk(n,Gy,1)||new Gy;r=g.qk(v,Fy,3)||new Fy;
w=new Ey;w.setToken(p);S(w,1,t);uk(r,12,Ey,w);rk(v,Fy,3,r)}delete PE[p];p="visitorOnlyApprovedKey"===p;Xua()||Gk(n,2,h);!p&&(t=g.cB("EVENT_ID"))&&(v=Yua(),r=new apa,Q(r,1,t),Gk(r,2,v),rk(n,apa,5,r));Tua(d);if(g.AB("jspb_serialize_with_worker")&&(t=JD())&&d.writeThenSend){IE.set(Zua,{client:b,resolve:c,networklessOptions:d,isIsolated:e,useVSSEndpoint:f,dangerousLogToVisitorSession:p,requestsOutstanding:l});t.postMessage({op:"gelBatchToSerialize",batchRequest:n.toJSON(),clientEvents:q,key:Zua});Zua++;
break}if(q){t=[];for(v=0;v<q.length;v++)try{t.push(new ZA(q[v]))}catch(G){g.fB(new g.AC("Transport failed to deserialize "+String(q[v])))}q=t}else q=[];q=g.u(q);for(t=q.next();!t.done;t=q.next())uk(n,3,ZA,t.value);q={startTime:(0,g.$C)(),ticks:{},infos:{}};n=n.yk();q.ticks.geljspc=(0,g.$C)();g.AB("log_jspb_serialize_latency")&&Lsa("gel_jspb_serialize",q,{sampleRate:.1});sua(n,b,c,d,e,f,p,l)}};
sua=function(a,b,c,d,e,f,h,l){d=void 0===d?{}:d;l=void 0===l?{value:0}:l;f=Qua(f);d=Vua(d,h,function(m){g.AB("start_client_gcf")&&g.Zu.Mi(function(){return g.H(function(n){return g.z(n,Uua(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.cE(b,f,"",d);RE=!1};
Tua=function(a){g.AB("always_send_and_write")&&(a.writeThenSend=!1)};
Vua=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,anb:!!e,headers:{},postBodyFormat:"",postBody:"",compress:g.AB("compress_gel")||g.AB("compress_gel_lr")};Xua()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.$C)())));return a};
Sua=function(a,b,c){Xua()||(a.requestTimeMs=String(b));g.AB("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=g.cB("EVENT_ID"))&&(c=Yua(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
Yua=function(){var a=g.cB("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*$ua/2));a++;a>$ua&&(a=1);bB("BATCH_CLIENT_COUNTER",a);return a};
Rua=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}]};
JE=function(a,b){if(!g.Xa("yt.logging.transport.enableScrapingForTest")){var c=qpa("il_payload_scraping");if("enable_il_payload_scraping"===(void 0!==c?String(c):""))ava=[],g.Va("yt.logging.transport.enableScrapingForTest",!0),g.Va("yt.logging.transport.scrapedPayloadsForTesting",ava),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.Xa("yt.logging.transport.scrapedPayloadsForTesting");var d=g.Xa("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.Xa("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&c.push(b));b=g.Xa("yt.logging.transport.scrapeClientEvent");if(d&&1<=d.length)for(var e=0;e<d.length;e++)if(a&&a.payload[d[e]])if(b)c.push(a.payload);else{var f=void 0;c.push((null==(f=a)?void 0:f.payload)[d[e]])}g.Va("yt.logging.transport.scrapedPayloadsForTesting",
c)};
Xua=function(){return g.AB("use_request_time_ms_header")||g.AB("lr_use_request_time_ms_header")};
Fua=function(a,b){return!1===g.AB("embeds_transport_use_scheduler")?g.wB(a,b):g.AB("logging_avoid_blocking_during_navigation")||g.AB("lr_logging_avoid_blocking_during_navigation")?g.FC(0,function(){if("none"===oua().currentState)a();else{var c={};oua().install((c.none={callback:a},c))}},b):EC(a,0,b)};
Jua=function(a){g.AB("transport_use_scheduler")?g.Zu.Mj(a):g.yB(a)};
Uua=function(a){var b,c,d,e,f,h,l,m,n,p;return g.H(function(q){return 1==q.j?(d=null==(b=a)?void 0:null==(c=b.responseContext)?void 0:c.globalConfigGroup,e=g.V(d,bva),h=null==(f=d)?void 0:f.hotHashData,l=g.V(d,cva),n=null==(m=d)?void 0:m.coldHashData,(p=yE().resolve(new vE(AD)))?h?e?g.z(q,rsa(p,h,e),2):g.z(q,rsa(p,h),2):q.Ia(2):q.return()):n?l?g.z(q,ssa(p,n,l),0):g.z(q,ssa(p,n),0):q.Ia(0)})};
Dua=function(a,b){b=void 0===b?200:b;return a?300===b?Lua:dva:300===b?Mua:eva};
vua=function(a){if(g.AB("enable_web_tiered_gel")){a=fva[a||""];var b,c,d,e=null==yE().resolve(new vE(AD))?void 0:null==(b=BD())?void 0:null==(c=b.loggingHotConfig)?void 0:null==(d=c.eventLoggingConfig)?void 0:d.payloadPolicies;if(e)for(b=0;b<e.length;b++)if(e[b].payloadNumber===a)return e[b]}};
uua=function(a){a=Object.keys(a);a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,fva[b])return b};
wua=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}};
ME=function(a){return"gelDebuggingEvent"===a};
Qua=function(a){return(void 0===a?0:a)&&g.AB("vss_through_gel_video_stats")?"video_stats":"log_event"};
TE=function(a,b,c,d){d=void 0===d?{}:d;var e={},f=Math.round(d.timestamp||(0,g.$C)());e.eventTimeMs=f<Number.MAX_SAFE_INTEGER?f:0;e[a]=b;a=tE();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};d.sequenceGroup&&!g.AB("web_gel_sequence_info_killswitch")&&(a=e.context,b=d.sequenceGroup,b={index:gva(b),groupKey:b},a.sequence=b,d.endOfSequence&&delete SE[d.sequenceGroup]);(d.sendIsolatedPayload?xua:zua)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},
c)};
hva=function(a){Cua(void 0,void 0,void 0===a?!1:a)};
gva=function(a){SE[a]=a in SE?SE[a]+1:0;return SE[a]};
lva=function(a,b){iva||(iva=!0);jva=a;UE=b;kva=!1};
g.MC=function(a,b,c){c=void 0===c?{}:c;var d=mva;g.cB("ytLoggingEventsDefaultDisabled",!1)&&mva===g.bE&&(d=null);if(g.AB("web_all_payloads_via_jspb"))if(c.timestamp||(c.lact=tE(),c.timestamp=(0,g.$C)()),jva&&UE){var e=jva[a];if(e){e=e(nva(b));var f=e[1];(e[0]||!g.AB("jspb_translator_return_completion"))&&f&&UE[a]?(UE[a](f,c,d||void 0),ova()):(hB(new g.AC("Unable to call logFn for payload",a)),TE(a,b,d,c))}else{if(!g.AB("web_translate_player_logs"))hB(new g.AC("Unable to translate payload to JSPB",
a));else if(!1===kva){var h=!1;e=Ksa("app_received_payload",function(){h=!0});
GD("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c});if(h)return;Jsa(e);Ksa("app_has_initialized",function(){GD("player_pass_json_gel_to_app",{payloadName:a,payload:b,options:c})})}TE(a,b,d,c)}}else pva.push({payloadName:a,
payload:b,options:c});else TE(a,b,d,c)};
ova=function(a){a=void 0===a?!1:a;var b=pva;pva=[];if(b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a?TE(c.payloadName,c.payload,mva,c.options):g.MC(c.payloadName,c.payload,c.options)}};
nva=function(a){if(!g.AB("jspb_convert_payloads_to_lower_camel")||!g.bb(a))return a;for(var b=Object.keys(a),c=0;c<b.length;c++){var d=qva(b[c]);b[c]!==d&&(a[d]=a[b[c]],delete a[b[c]]);if("object"===typeof a[d]&&!g.ab(a[d]))a[d]=nva(a[d]);else if(g.ab(a[d])){for(var e=a[d],f=[],h=0;h<e.length;h++)f.push(nva(e[h]));a[d]=f}}return a};
qva=function(a){return a.includes("_")?a.toLowerCase().replace(/([_][a-z])/g,function(b){return b.toUpperCase().replace("_","")}):a};
VE=function(a,b,c,d){d=void 0===d?{}:d;var e=Math.round(d.timestamp||(0,g.$C)());Gk(b,1,e<Number.MAX_SAFE_INTEGER?e:0);e=new $oa;if(d.lact)Gk(e,1,isFinite(d.lact)?d.lact:-1);else if(d.timestamp)Gk(e,1,-1);else{var f=tE();Gk(e,1,isFinite(f)?f:-1)}if(d.sequenceGroup&&!g.AB("web_gel_sequence_info_killswitch")){f=d.sequenceGroup;var h=gva(f),l=new Zoa;Gk(l,2,h);Q(l,1,f);rk(e,Zoa,3,l);d.endOfSequence&&delete rva[d.sequenceGroup]}rk(b,$oa,33,e);(d.sendIsolatedPayload?Aua:Bua)(a,{endpoint:"log_event",payload:b,
cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},c)};
WE=function(a,b,c){c=void 0===c?{}:c;var d=!1;g.cB("ytLoggingEventsDefaultDisabled",!1)&&(d=!0);VE(a,b,d?null:g.bE,c)};
sva=function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,IA,72,XE,a);c?VE("visualElementShown",d,c,b):WE("visualElementShown",d,b)};
tva=function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,HA,73,XE,a);c?VE("visualElementHidden",d,c,b):WE("visualElementHidden",d,b)};
uva=function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,GA,78,XE,a);c?VE("visualElementGestured",d,c,b):WE("visualElementGestured",d,b)};
vva=function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,JA,208,XE,a);c?VE("visualElementStateChanged",d,c,b):WE("visualElementStateChanged",d,b)};
wva=function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,EA,156,XE,a);c?VE("screenCreated",d,c,b):WE("screenCreated",d,b)};
xva=function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,CA,202,XE,a);c?VE("playbackAssociated",d,c,b):WE("playbackAssociated",d,b)};
yva=function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,FA,215,XE,a);c?VE("visualElementAttached",d,c,b):WE("visualElementAttached",d,b)};
YE=function(a){this.j=a};
g.ZE=function(a){return new YE({trackingParams:a})};
Ava=function(a){var b=zva++;return new YE({veType:a,veCounter:b,elementIndex:void 0,dataElement:void 0,youtubeData:void 0,jspbYoutubeData:void 0,loggingDirectives:void 0})};
Bva=function(a){return g.cB("client-screen-nonce-store",{})[void 0===a?0:a]};
Cva=function(a,b){b=void 0===b?0:b;var c=g.cB("client-screen-nonce-store");c||(c={},bB("client-screen-nonce-store",c));c[b]=a};
Dva=function(a){a=void 0===a?0:a;return 0===a?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
Eva=function(a){return g.cB(Dva(void 0===a?0:a))};
g.$E=function(a){return(a=Eva(void 0===a?0:a))?new YE({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
Fva=function(){var a=g.cB("csn-to-ctt-auth-info");a||(a={},bB("csn-to-ctt-auth-info",a));return a};
Gva=function(){return Object.values(g.cB("client-screen-nonce-store",{})).filter(function(a){return void 0!==a})};
g.aF=function(a){a=Bva(void 0===a?0:a);if(!a&&!g.cB("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
Iva=function(a){for(var b=g.u(Object.values(Hva)),c=b.next();!c.done;c=b.next())if(g.aF(c.value)===a)return!0;return!1};
Jva=function(a,b,c){var d=Fva();(c=g.aF(c))&&delete d[c];b&&(d[a]=b)};
bF=function(a){return Fva()[a]};
Lva=function(a,b,c,d){c=void 0===c?0:c;if(a!==Bva(c)||b!==g.cB(Dva(c)))if(Jva(a,d,c),Cva(a,c),bB(Dva(c),b),b=function(){setTimeout(function(){if(a)if(g.AB("web_time_via_jspb")){var e=new zoa;Q(e,1,Kva);Q(e,2,a);var f=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(f,zoa,111,XE,e);WE("foregroundHeartbeatScreenAssociated",f)}else g.MC("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:Kva,clientScreenNonce:a})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
Nva=function(a,b){var c=void 0===c?!0:c;var d=g.cB("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=g.hn(window.location.href);e&&d.push(e);e=g.hn(a);if(g.Fb(d,e)||!e&&dc(a,"/"))if(d=document.createElement("a"),g.Ke(d,a),a=d.href)if(a=Hn(a),a=Ifa(a))if(c&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:g.aF()},b)),f){var f=parseInt(f,10);isFinite(f)&&0<f&&Mva(a,b,f)}else Mva(a,b)};
Mva=function(a,b,c){a=Ova(a);b=b?g.Ln(b):"";c=c||5;Zpa()&&g.LB(a,b,c)};
Ova=function(a){for(var b=g.u(Pva),c=b.next();!c.done;c=b.next())a=Pn(a,c.value);return"ST-"+Ze(a).toString(36)};
Qva=function(a){if("JavaException"===a.name)return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
Rva=function(){this.ys=[];this.lr=[]};
Vva=function(){if(!Sva){var a=Sva=new Rva;a.lr.length=0;a.ys.length=0;Tva(a,Uva)}return Sva};
Tva=function(a,b){b.lr&&a.lr.push.apply(a.lr,b.lr);b.ys&&a.ys.push.apply(a.ys,b.ys)};
Xva=function(a){function b(){return a.charCodeAt(d++)}
var c=a.length,d=0;do{var e=Wva(b);if(Infinity===e)break;var f=e>>3;switch(e&7){case 0:e=Wva(b);if(2===f)return e;break;case 1:if(2===f)return;d+=8;break;case 2:e=Wva(b);if(2===f)return a.substr(d,e);d+=e;break;case 5:if(2===f)return;d+=4;break;default:return}}while(d<c)};
Wva=function(a){var b=a(),c=b&127;if(128>b)return c;b=a();c|=(b&127)<<7;if(128>b)return c;b=a();c|=(b&127)<<14;if(128>b)return c;b=a();return 128>b?c|(b&127)<<21:Infinity};
Zva=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=Yva(d,a[d],b,c),500<e));d++);d=e}else if("object"===typeof a)for(e in a){if(a[e]){var f=e;var h=a[e],l=b,m=c;f="string"!==typeof h||"clickTrackingParams"!==f&&"trackingParams"!==f?0:(h=Xva(atob(h.replace(/-/g,"+").replace(/_/g,"/"))))?Yva(f+".ve",h,l,m):0;d+=f;d+=Yva(e,a[e],b,c);if(500<d)break}}else c[b]=cF(a),d+=c[b].length;else c[b]=cF(a),d+=c[b].length;return d};
Yva=function(a,b,c,d){c+="."+a;a=cF(b);d[c]=a;return c.length+a.length};
cF=function(a){try{return("string"===typeof a?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}};
cra=function(a){g.dF(a)};
g.eF=function(a){g.dF(a,"WARNING")};
g.dF=function(a,b){var c=void 0===c?{}:c;c.name=g.cB("INNERTUBE_CONTEXT_CLIENT_NAME",1);c.version=g.cB("INNERTUBE_CONTEXT_CLIENT_VERSION");var d=void 0===b?"ERROR":b,e=!1;d=void 0===d?"ERROR":d;e=void 0===e?!1:e;if(a){a.hasOwnProperty("level")&&a.level&&(d=a.level);if(g.AB("console_log_js_exceptions")){var f=[];f.push("Name: "+a.name);f.push("Message: "+a.message);a.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(a.params));a.hasOwnProperty("args")&&f.push("Error args: "+JSON.stringify(a.args));
f.push("File name: "+a.fileName);f.push("Stacktrace: "+a.stack);window.console.log(f.join("\n"),a)}if(!(5<=$va)){var h=awa,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",v=p,w=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var A=0;A<a.args.length&&!(w=Zva(a.args[A],"params."+A,c,w),500<=w);A++);else if(a.hasOwnProperty("params")&&
a.params){var C=a.params;if("object"===typeof a.params)for(var F in C){if(C[F]){var G="params."+F,L=cF(C[F]);c[G]=L;w+=G.length+L.length;if(500<w)break}}else c.params=cF(C)}if(h.length)for(var M=0;M<h.length&&!(w=Zva(h[M],"params.context."+M,c,w),500<=w);M++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);var R={message:m,name:n,lineNumber:r,fileName:t,stack:v,params:c,sampleWeight:1},ea=Number(a.columnNumber);isNaN(ea)||(R.lineNumber=R.lineNumber+":"+ea);if("IGNORED"===
a.level)var ma=0;else a:{for(var oa=Vva(),ia=g.u(oa.lr),va=ia.next();!va.done;va=ia.next()){var aa=va.value;if(R.message&&R.message.match(aa.yA)){ma=aa.weight;break a}}for(var U=g.u(oa.ys),La=U.next();!La.done;La=U.next()){var x=La.value;if(x.callback(R)){ma=x.weight;break a}}ma=1}R.sampleWeight=ma;for(var ba=g.u(bwa),Ja=ba.next();!Ja.done;Ja=ba.next()){var cb=Ja.value;if(cb.sK[R.name])for(var ob=g.u(cb.sK[R.name]),Qa=ob.next();!Qa.done;Qa=ob.next()){var Ua=Qa.value,ib=R.message.match(Ua.Aj);if(ib){R.params["params.error.original"]=
ib[0];for(var qb=Ua.groups,rb={},B=0;B<qb.length;B++)rb[qb[B]]=ib[B+1],R.params["params.error."+qb[B]]=ib[B+1];R.message=cb.WP(rb);break}}}R.params||(R.params={});var D=Vva();R.params["params.errorServiceSignature"]="msg="+D.lr.length+"&cb="+D.ys.length;R.params["params.serviceWorker"]="false";g.Ta.document&&g.Ta.document.querySelectorAll&&(R.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));Rd("sample").constructor!==Pd&&(R.params["params.fconst"]="true");
window.yterr&&"function"===typeof window.yterr&&window.yterr(R);if(0!==R.sampleWeight&&!cwa.has(R.message)){if(e&&g.AB("web_enable_error_204"))dwa(void 0===d?"ERROR":d,R);else{var E=d;E=void 0===E?"ERROR":E;if("ERROR"===E){fF.publish("handleError",R);if(g.AB("record_app_crashed_web")&&0===ewa&&1===R.sampleWeight)if(ewa++,g.AB("errors_via_jspb")){var J=new pna;var K=S(J,1,1);if(!g.AB("report_client_error_with_app_crash_ks")){var ca=new Xz,sa=new Oz,ka=new Nz,N=new Mz;var Z=Q(N,1,R.message);var ya=
rk(ka,Mz,3,Z);var xa=rk(sa,Nz,5,ya);var Za=rk(ca,Oz,9,xa);rk(K,Xz,4,Za)}var Wa=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(Wa,pna,20,XE,K);WE("appCrashed",Wa)}else{var Bb={appCrashType:"APP_CRASH_TYPE_BREAKPAD"};g.AB("report_client_error_with_app_crash_ks")||(Bb.systemHealth={crashData:{clientError:{logMessage:{message:R.message}}}});g.MC("appCrashed",Bb)}fwa++}else"WARNING"===E&&fF.publish("handleWarning",R);if(g.AB("kevlar_gel_error_routing"))a:{var Qb=E;if(g.AB("errors_via_jspb")){if(gwa())var eb=
void 0;else{var Rb=new Fz;Q(Rb,1,R.stack);R.fileName&&Q(Rb,4,R.fileName);var hc=R.lineNumber&&R.lineNumber.split?R.lineNumber.split(":"):[];0!==hc.length&&(1!==hc.length||isNaN(Number(hc[0]))?2!==hc.length||isNaN(Number(hc[0]))||isNaN(Number(hc[1]))||(Ek(Rb,2,Number(hc[0])),Ek(Rb,3,Number(hc[1]))):Ek(Rb,2,Number(hc[0])));var Bc=new Mz;Q(Bc,1,R.message);Q(Bc,3,R.name);Ek(Bc,6,R.sampleWeight);"ERROR"===Qb?S(Bc,2,2):"WARNING"===Qb?S(Bc,2,1):S(Bc,2,0);var ac=new Lz;Dk(ac,1,!0);sk(ac,Fz,3,gF,Rb);var uc=
new Dz;Q(uc,3,window.location.href);for(var Wc=g.cB("FEXP_EXPERIMENTS",[]),Nc=0;Nc<Wc.length;Nc++)uc.B(Wc[Nc]);var Oc=g.cB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!dB("web_disable_gel_stp_ecatcher_killswitch")&&Oc)for(var Pc=g.u(Object.keys(Oc)),Vb=Pc.next();!Vb.done;Vb=Pc.next()){var ud=Vb.value,kd=new oz;Q(kd,1,ud);Q(kd,2,String(Oc[ud]));uc.j(kd)}var fc=R.params;if(fc)for(var Yb=g.u(Object.keys(fc)),Qc=Yb.next();!Qc.done;Qc=Yb.next()){var Ib=Qc.value,Zc=new oz;Q(Zc,1,"client."+Ib);Q(Zc,2,
String(fc[Ib]));uc.j(Zc)}var vd=g.cB("SERVER_NAME"),Ob=g.cB("SERVER_VERSION");if(vd&&Ob){var oe=new oz;Q(oe,1,"server.name");Q(oe,2,vd);uc.j(oe);var Md=new oz;Q(Md,1,"server.version");Q(Md,2,Ob);uc.j(Md)}var Nd=new Nz;rk(Nd,Dz,1,uc);rk(Nd,Lz,2,ac);rk(Nd,Mz,3,Bc);eb=Nd}var Oe=eb;if(!Oe)break a;var xe=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(xe,Nz,163,XE,Oe);WE("clientError",xe)}else{var Hd=void 0;Hd=void 0===Hd?{}:Hd;if(gwa())var Cf=void 0;else{var Ve={stackTrace:R.stack};R.fileName&&
(Ve.filename=R.fileName);var $d=R.lineNumber&&R.lineNumber.split?R.lineNumber.split(":"):[];0!==$d.length&&(1!==$d.length||isNaN(Number($d[0]))?2!==$d.length||isNaN(Number($d[0]))||isNaN(Number($d[1]))||(Ve.lineNumber=Number($d[0]),Ve.columnNumber=Number($d[1])):Ve.lineNumber=Number($d[0]));var Df={level:"ERROR_LEVEL_UNKNOWN",message:R.message,errorClassName:R.name,sampleWeight:R.sampleWeight};"ERROR"===Qb?Df.level="ERROR_LEVEL_ERROR":"WARNING"===Qb&&(Df.level="ERROR_LEVEL_WARNNING");var ae={isObfuscated:!0,
browserStackInfo:Ve};Hd.pageUrl=window.location.href;Hd.kvPairs=[];g.cB("FEXP_EXPERIMENTS")&&(Hd.experimentIds=g.cB("FEXP_EXPERIMENTS"));var pe=g.cB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!dB("web_disable_gel_stp_ecatcher_killswitch")&&pe)for(var Id=g.u(Object.keys(pe)),wd=Id.next();!wd.done;wd=Id.next()){var $c=wd.value;Hd.kvPairs.push({key:$c,value:String(pe[$c])})}var Od=R.params;if(Od)for(var We=g.u(Object.keys(Od)),Uf=We.next();!Uf.done;Uf=We.next()){var lg=Uf.value;Hd.kvPairs.push({key:"client."+
lg,value:String(Od[lg])})}var qe=g.cB("SERVER_NAME"),qc=g.cB("SERVER_VERSION");qe&&qc&&(Hd.kvPairs.push({key:"server.name",value:qe}),Hd.kvPairs.push({key:"server.version",value:qc}));Cf={errorMetadata:Hd,stackTrace:ae,logMessage:Df}}var Xe=Cf;if(!Xe)break a;g.MC("clientError",Xe)}if("ERROR"===Qb||g.AB("errors_flush_gel_always_killswitch"))b:{if(g.AB("web_fp_via_jspb")&&(ova(!0),hva(!0),!g.AB("web_fp_via_jspb_and_json")))break b;hva()}}g.AB("suppress_error_204_logging")||dwa(E,R)}try{cwa.add(R.message)}catch(Vh){}$va++}}}};
gwa=function(){for(var a=g.u(hwa),b=a.next();!b.done;b=a.next())if(g.NB(b.value.toLowerCase()))return!0;return!1};
dwa=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.cB("PAGE_NAME",window.location.href),file:b.fileName},method:"POST"};c.version&&(a["client.version"]=c.version);if(a.postParams){b.stack&&(a.postParams.stack=b.stack);b=g.u(Object.keys(c));for(var d=b.next();!d.done;d=b.next())d=d.value,a.postParams["client."+d]=c[d];if(c=g.cB("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(b=
g.u(Object.keys(c)),d=b.next();!d.done;d=b.next())d=d.value,a.postParams[d]=c[d];c=g.cB("SERVER_NAME");b=g.cB("SERVER_VERSION");c&&b&&(a.postParams["server.name"]=c,a.postParams["server.version"]=b)}g.CB(g.cB("ECATCHER_REPORT_HOST","")+"/error_204",a)};
iwa=function(a){var b=g.Ia.apply(1,arguments);a.args||(a.args=[]);a.args.push.apply(a.args,g.qa(b))};
nwa=function(a){var b=g.V(a,hF);if(b)return b;if((b=g.V(a,jwa))&&b.commands)return kwa(b.commands);if((b=g.V(a,lwa))&&b.commands)return kwa(b.commands);if((a=g.V(a,mwa))&&a.identifier&&a.command&&(iF||(iF=[]),!iF.includes(a.identifier)))return iF.push(a.identifier),g.V(a.command,hF)};
kwa=function(a){if(0!==a.length){var b=[];a=g.u(a);for(var c=a.next();!c.done;c=a.next())(c=nwa(c.value))&&b.push(c);return{commandExecutorCommand:{commands:b}}}};
g.jF=function(a,b,c){void 0===c?delete a[b.name]:a[b.name]=c};
owa=function(a){a=void 0===a||a?pE(16):Vta(16);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
pwa=function(a){for(var b=0,c=0;c<a.length;c++)b=31*b+a.charCodeAt(c),c<a.length-1&&(b%=Math.pow(2,47));return b%1E5};
qwa=function(a){ED.call(this,1,arguments);this.csn=a};
wwa=function(a,b,c,d,e,f,h,l){function m(){g.eF(new g.AC("newScreen() parent element does not have a VE - rootVe",b))}
var n=rwa(),p=new YE({veType:b,youtubeData:f,jspbYoutubeData:void 0});f=kF({},n);e&&(f.cttAuthInfo=e);if(g.AB("il_via_jspb")){e=Joa((new EA).j(n),p.getAsJspb());c&&c.visualElement?(p=new Hoa,c.clientScreenNonce&&Q(p,2,c.clientScreenNonce),Ioa(p,c.visualElement.getAsJspb()),h&&S(p,4,swa[h]),rk(e,Hoa,5,p)):c&&m();d&&Q(e,3,d);if(g.AB("expectation_logging")&&l&&l.screenCreatedLoggingExpectations){c=new ty;l=g.u(l.screenCreatedLoggingExpectations.expectedParentScreens||[]);for(d=l.next();!d.done;d=l.next())d=
d.value,d.screenVeType&&(d=rma(new ry,d.screenVeType),c.j(d));rk(e,ty,7,c)}wva(e,f,a)}else e={csn:n,pageVe:p.getAsJson()},g.AB("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?TE("screenCreated",e,a,f):g.MC("screenCreated",e,f);GD(twa,new qwa(n));
lF.clear();uwa.clear();vwa.clear();return n};
g.mF=function(a,b,c,d,e){g.xwa(a,b,c,[d],void 0===e?!1:e)};
g.xwa=function(a,b,c,d,e){e=void 0===e?!1:e;for(var f=kF({cttAuthInfo:bF(b)||void 0},b),h=g.u(d),l=h.next();!l.done;l=h.next()){l=l.value;var m=l.getAsJson();(g.id(m)||!m.trackingParams&&!m.veType)&&g.eF(Error("Child VE logged with no data"));if(g.AB("no_client_ve_attach_unless_shown")){var n=nF(l,b);if(m.veType&&!uwa.has(n)&&!vwa.has(n)&&!e){if(!g.AB("il_attach_cache_limit")||1E3>lF.size){lF.set(n,[a,b,c,l]);return}g.AB("il_attach_cache_limit")&&1E3<lF.size&&g.eF(new g.AC("IL Attach cache exceeded limit"))}l=
nF(c,b);lF.has(l)?ywa(c,b):vwa.set(l,!0)}}d=d.filter(function(q){q.csn!==b?(q.csn=b,q=!0):q=!1;return q});
if(g.AB("il_via_jspb")){var p=Koa((new FA).j(b),c.getAsJspb());g.Rr(d,function(q){q=q.getAsJspb();uk(p,3,eA,q)});
"UNDEFINED_CSN"===b?oF("visualElementAttached",f,void 0,p):yva(p,f,a)}else c={csn:b,parentVe:c.getAsJson(),childVes:g.Rr(d,function(q){return q.getAsJson()})},"UNDEFINED_CSN"===b?oF("visualElementAttached",f,c):a?TE("visualElementAttached",c,a,f):g.MC("visualElementAttached",c,f)};
Awa=function(a,b,c,d,e,f){zwa(c,b);d=kF({cttAuthInfo:bF(b)||void 0},b);g.AB("il_via_jspb")?(e=(new IA).j(b),c=c.getAsJspb(),c=rk(e,eA,2,c),c=S(c,4,1),f&&rk(c,DA,3,f),"UNDEFINED_CSN"===b?oF("visualElementShown",d,void 0,c):sva(c,d,a)):(f={csn:b,ve:c.getAsJson(),eventType:1},e&&(f.clientData=e),"UNDEFINED_CSN"===b?oF("visualElementShown",d,f):a?TE("visualElementShown",f,a,d):g.MC("visualElementShown",f,d))};
Bwa=function(a,b,c,d){var e=(d=void 0===d?!1:d)?16:8,f=kF({cttAuthInfo:bF(b)||void 0,endOfSequence:d},b);g.AB("il_via_jspb")?(e=(new HA).j(b),c=c.getAsJspb(),c=rk(e,eA,2,c),S(c,4,d?16:8),"UNDEFINED_CSN"===b?oF("visualElementHidden",f,void 0,c):tva(c,f,a)):(d={csn:b,ve:c.getAsJson(),eventType:e},"UNDEFINED_CSN"===b?oF("visualElementHidden",f,d):a?TE("visualElementHidden",d,a,f):g.MC("visualElementHidden",d,f))};
Dwa=function(a,b,c,d,e){Cwa(a,b,c,d,e)};
Cwa=function(a,b,c,d,e){var f=void 0;zwa(c,b);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var h=kF({cttAuthInfo:bF(b)||void 0},b);g.AB("il_via_jspb")?(d=(new GA).j(b),c=c.getAsJspb(),c=rk(d,eA,2,c),S(c,4,swa[f]),e&&rk(c,DA,3,e),"UNDEFINED_CSN"===b?oF("visualElementGestured",h,void 0,c):uva(c,h,a)):(e={csn:b,ve:c.getAsJson(),gestureType:f},d&&(e.clientData=d),"UNDEFINED_CSN"===b?oF("visualElementGestured",h,e):a?TE("visualElementGestured",e,a,h):g.MC("visualElementGestured",e,h))};
Ewa=function(){var a;g.AB("enable_web_96_bit_csn")?a=owa():g.AB("enable_web_96_bit_csn_no_crypto")?a=owa(!1):a=g.Gg(g.Fg(Math.random()+""),3);return a};
oF=function(a,b,c,d){pF.push({payloadName:a,payload:c,Ft:d,options:b});Fwa||(Fwa=Ksa(twa,Gwa))};
Gwa=function(a){if(pF){for(var b=g.u(pF),c=b.next();!c.done;c=b.next())if(c=c.value,g.AB("il_via_jspb")&&c.Ft)switch(c.Ft.j(a.csn),c.payloadName){case "screenCreated":wva(c.Ft,c.options);break;case "visualElementAttached":yva(c.Ft,c.options);break;case "visualElementShown":sva(c.Ft,c.options);break;case "visualElementHidden":tva(c.Ft,c.options);break;case "visualElementGestured":uva(c.Ft,c.options);break;case "visualElementStateChanged":vva(c.Ft,c.options);break;default:g.eF(new g.AC("flushQueue unable to map payloadName to JSPB setter"))}else c.payload&&
(c.payload.csn=a.csn,g.MC(c.payloadName,c.payload,c.options));pF.length=0}Fwa=0};
nF=function(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b};
zwa=function(a,b){if(g.AB("no_client_ve_attach_unless_shown")){var c=nF(a,b);uwa.set(c,!0);ywa(a,b)}};
ywa=function(a,b){a=nF(a,b);lF.has(a)&&(b=lF.get(a)||[],g.mF(b[0],b[1],b[2],b[3],!0),lF.delete(a))};
kF=function(a,b){g.AB("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a};
g.qF=function(a,b,c,d){g.gB(Awa)(void 0,a,b,c,d,void 0)};
g.rF=function(a,b){g.gB(function(){g.$b(b,function(c){zwa(c,a);var d=kF({cttAuthInfo:bF(a)||void 0},a);if(g.AB("il_via_jspb")){var e=(new IA).j(a);c=c.getAsJspb();e=rk(e,eA,2,c);e=S(e,4,4);"UNDEFINED_CSN"===a?oF("visualElementShown",d,void 0,e):sva(e,d)}else e={csn:a,ve:c.getAsJson(),eventType:4},"UNDEFINED_CSN"===a?oF("visualElementShown",d,e):g.MC("visualElementShown",e,d)})})()};
g.sF=function(a,b){g.gB(function(){g.$b(b,function(c){Bwa(void 0,a,c)})})()};
g.tF=function(a,b,c){g.gB(Dwa)(void 0,a,b,c,void 0)};
vF=function(a,b,c,d,e,f){c=void 0===c?{}:c;this.componentType=a;this.renderer=void 0===b?null:b;this.macros=c;this.layoutId=d;this.interactionLoggingClientData=e;this.j=f;this.id=uF(a)};
uF=function(a){var b=":"+(aw.getInstance().j++).toString(36);return a+b};
g.wF=function(a){a=void 0===a?!1:a;g.I.call(this);this.pj=new g.Nv(a);g.O(this,this.pj)};
g.xF=function(a,b,c){for(var d in b)a.subscribe(d,b[d],c)};
yF=function(a,b,c){for(var d in b)a.unsubscribe(d,b[d],c)};
zF=function(){var a="ytp-id-"+Hwa.toString();Hwa++;return a};
g.AF=function(a){g.I.call(this);this.Hb={};this.ke={};this.element=this.createElement(a)};
BF=function(a,b,c,d){if("{{"===d.substr(0,2))a.ke[d]=[b,c];else return d};
Iwa=function(a,b){var c=[];if(!b)return c;b=g.u(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,null!=d){var e=d.nodeType;1===e||3===e?c.push(d):d&&"string"===typeof d.I?c.push(a.createElement(d)):d.element?c.push(d.element):"string"===typeof d&&-1!==d.indexOf("\n")?d.split("\n").forEach(function(f,h){0<h&&c.push(g.yf("BR"));c.push(g.zf(f))}):c.push(g.zf(d))}return c};
CF=function(a,b,c,d){if("child"===c){g.Bf(b);var e;void 0===d?e=void 0:e=!Array.isArray(d)||d&&"string"===typeof d.I?[d]:d;c=Iwa(a,e);c=g.u(c);for(a=c.next();!a.done;a=c.next())b.appendChild(a.value)}else"style"===c?g.zs(b,"cssText",d?d:""):null===d||void 0===d?b.removeAttribute(c):(a=d.toString(),"href"===c&&(a=g.be(g.ie(a))),b.setAttribute(c,a))};
g.W=function(a){g.AF.call(this,a);this.Eb=!0;this.Z=!1;this.listeners=[]};
g.DF=function(a,b){b?a.show():a.hide()};
g.EF=function(a){g.W.call(this,a);this.Ra=new g.wF;g.O(this,this.Ra)};
FF=function(a,b,c,d,e,f,h){h=void 0===h?null:h;g.EF.call(this,b);this.api=a;this.macros={};this.componentType=c;this.K=this.N=null;this.zb=h;this.layoutId=d;this.interactionLoggingClientData=e;this.ib=f;this.Za=null;this.MR=new nE(this.element);g.O(this,this.MR);this.rb=this.T(this.element,"click",this.onClick);this.Ga=[];this.Ba=new Tta(this.onClick,this);g.O(this,this.Ba);this.Gb=!1;this.La=this.qa=null};
GF=function(a,b){a=void 0===a?null:a;b=void 0===b?null:b;if(null==a)return g.eF(Error("Got null or undefined adText object")),"";var c=g.Ye(a.text);if(!a.isTemplated)return c;if(null==b)return g.eF(Error("Missing required parameters for a templated message")),c;a=g.u(Object.entries(b));for(b=a.next();!b.done;b=a.next()){var d=g.u(b.value);b=d.next().value;d=d.next().value;c=c.replace("{"+b+"}",d)}return c};
Jwa=function(a){a=void 0===a?null:a;return null!=a&&(a=a.thumbnail,null!=a&&null!=a.thumbnails&&0!=a.thumbnails.length&&null!=a.thumbnails[0].url)?g.Ye(a.thumbnails[0].url):""};
Kwa=function(a){a=void 0===a?null:a;return null!=a&&(a=a.thumbnail,null!=a&&null!=a.thumbnails&&0!=a.thumbnails.length&&null!=a.thumbnails[0].width&&null!=a.thumbnails[0].height)?new g.Ie(a.thumbnails[0].width||0,a.thumbnails[0].height||0):new g.Ie(0,0)};
g.HF=function(a){if(a.simpleText)return a.simpleText;if(a.runs){var b=[];a=g.u(a.runs);for(var c=a.next();!c.done;c=a.next())c=c.value,c.text&&b.push(c.text);return b.join("")}return""};
g.IF=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=xf("B",null,h||l));d.italics&&(h=xf("I",null,h||l));d.strikethrough&&(h=xf("STRIKE",null,h||l));d.navigationEndpoint&&d.navigationEndpoint.urlEndpoint&&(d=d.navigationEndpoint.urlEndpoint,h=xf("A",null,h||l),g.Ke(h,d.url),"TARGET_NEW_WINDOW"==d.target&&(h.target="_blank"));l=h||xf("SPAN",null,
l);f.call(e,l)}}return 1==b.length?b[0]:xf("SPAN",null,b)};
g.Lwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,X:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
Mwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",X:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}};
g.JF=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{I:"path",X:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.KF=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},V:[{I:"path",X:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
Nwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",X:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{I:"path",X:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
Owa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Cc:!0,X:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
Pwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Cc:!0,X:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.LF=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
Qwa=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",X:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}};
Rwa=function(){return{I:"svg",X:{viewBox:"0 0 24 24"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}};
Swa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]}};
Twa=function(){return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z",
fill:"white","fill-rule":"evenodd"}}]}};
Uwa=function(){return{I:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{I:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",X:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}};
Vwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"m 17,23 h 2 V 17 H 17 Z M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 Z m 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}};
Wwa=function(){return{I:"svg",X:{viewBox:"0 0 24 24"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}};
MF=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",X:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
Xwa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{I:"path",Cc:!0,X:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}};
Ywa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.Zwa=function(){return{I:"svg",X:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",X:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
$wa=function(){return{I:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{I:"path",X:{d:"M0 0h48v48H0z",fill:"none"}},{I:"path",X:{d:"M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L15.51 29.66l2.83 2.83L38 12.83V20h4V6H28z"}}]}};
axa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
bxa=function(){return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",S:"ytp-svg-fill",X:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}};
cxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,X:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}};
dxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
exa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
g.fxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}};
g.gxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,X:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
g.NF=function(){return{I:"svg",X:{height:"100%",viewBox:"0 0 16 16",width:"100%"},V:[{I:"path",X:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}};
hxa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
ixa=function(){return{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
OF=function(a){if(!a)return null;switch(a.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return $wa();case "CHECK_BOX":return{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z",fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},
V:[{I:"path",X:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.LF();case "INFO_OUTLINE":return Uwa();case "REMOVE_CIRCLE":return{I:"svg",X:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M0 0h24v24H0z",fill:"none"}},{I:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};
case "SKIP_NEXT":return Ywa();case "SKIP_NEXT_NEW":return{I:"svg",X:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},V:[{I:"path",X:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return Wwa();case "DISLIKE":return Rwa();default:return g.eF(new g.AC("Unexpected icon:",a)),null}};
PF=function(a,b,c,d,e,f,h,l){e=void 0===e?[]:e;h=void 0===h?!1:h;e={I:"button",Ka:["ytp-ad-button"].concat(e)};null!=l&&(e.X={tabindex:l});FF.call(this,a,e,void 0===f?"button":f,b,c,d);this.j=this.B=this.C=null;this.D=h;this.hide()};
jxa=function(a){var b=null;null!=a.j&&(b=[a.j.serviceEndpoint,a.j.navigationEndpoint].filter(function(c){return null!=c}),a.j.command&&(b=b.concat(a.j.command)));
return b||[]};
QF=function(){g.I.call(this);var a=this;this.j=new Map;this.B=Eqa(function(b){if(b.target&&(b=a.j.get(b.target))&&b)for(var c=0;c<b.length;c++)g.UD(b[c])})};
kxa=function(){null==RF&&(RF=new QF);return RF};
SF=function(a,b){if(a.simpleText){a:{a=a.simpleText;if(b&&(b=lxa(a))){b=xf("SPAN",null,b);break a}b=g.zf(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(mxa(e,b))}return 1==c.length?c[0]:xf("SPAN",null,c)};
mxa=function(a,b){var c=null,d=a.text;b&&(d=lxa(d)||d);a.bold&&(c=xf("B",null,c||d));a.italics&&(c=xf("I",null,c||d));a.strikethrough&&(c=xf("STRIKE",null,c||d));a.navigationEndpoint&&g.V(a.navigationEndpoint,g.TF)&&(b=g.V(a.navigationEndpoint,g.TF),c=xf("A",null,c||d),g.Ke(c,b.url),"TARGET_NEW_WINDOW"==b.target&&(c.target="_blank"),a=a.navigationEndpoint.loggingUrls)&&(a=a.map(function(e){return e.baseUrl}),kxa().register(c,a),g.uv(c,"ytp-ad-has-logging-urls"));
return c||xf("SPAN",null,d)};
lxa=function(a){a=a.split(/(?:\r\n|\r|\n)/g);if(1<a.length){for(var b=[a[0]],c=1;c<a.length;c++)b.push(xf("BR")),b.push(a[c]);return b}return null};
UF=function(a,b,c,d,e,f,h,l){f=void 0===f?!1:f;h=void 0===h?[]:h;FF.call(this,a,{I:"span",Ka:["ytp-ad-hover-text-button"].concat(h)},void 0===l?"ad-hover-text-button":l,b,c,d);this.button=this.B=null;this.G=f;this.D=e;this.hide()};
VF=function(a){return a&&a.thumbnails&&0!=(a.thumbnails||null).length&&a.thumbnails[0].url?g.Ye(a.thumbnails[0].url):""};
WF=function(a,b,c,d,e,f){f=void 0===f?!1:f;FF.call(this,a,{I:"img",S:"ytp-ad-image"},"ad-image",b,c,d,void 0===e?null:e);this.j=f;this.hide()};
XF=function(a,b,c,d,e,f){e=void 0===e?[]:e;FF.call(this,a,{I:"div",Ka:["ytp-ad-confirm-dialog-background"],V:[{I:"div",S:"ytp-ad-confirm-dialog-container",V:[{I:"div",Ka:["ytp-ad-confirm-dialog"].concat(e),X:{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",Ka:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],V:[{I:"span",S:"ytp-ad-button-icon",V:[g.LF()]}]}]},void 0===f?"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.ra=this.Fa("ytp-ad-confirm-dialog-messages");this.C=null;this.j=new nC;g.O(this,this.j);this.B=null;this.hide()};
nxa=function(a,b){if(b.title){var c=g.HF(b.title);a.updateValue("title",c)}if(b.dialogMessages){c=g.u(b.dialogMessages);for(var d=c.next();!d.done;d=c.next())d=SF(d.value),a.ra.appendChild(d)}b.cancelLabel&&(c=g.HF(b.cancelLabel),a.updateValue("cancelLabel",c),a.j.T(a.D,"click",function(e){return a.nM(e)}));
b.confirmLabel&&(b=g.HF(b.confirmLabel),a.updateValue("confirmLabel",b),a.j.T(a.G,"click",function(e){return a.sQ(e)}));
a.j.T(a.Y,"click",function(e){return a.rQ(e)})};
YF=function(a,b,c,d,e,f){e=void 0===e?[]:e;f=void 0===f?"toggle-button":f;var h=uF("ytp-ad-toggle-button-input"),l={role:"button","aria-label":"{{tooltipText}}"};a.U().experiments.jb("fix_h5_toggle_button_a11y")&&(l.tabindex="0");a.U().experiments.jb("fix_toggle_button_role_for_ad_components")&&(l.role="checkbox");FF.call(this,a,{I:"div",Ka:["ytp-ad-toggle-button"].concat(e),V:[{I:"label",S:"ytp-ad-toggle-button-label",X:{"for":h},V:[{I:"span",S:"ytp-ad-toggle-button-icon",X:l,V:[{I:"span",S:"ytp-ad-toggle-button-untoggled-icon",
xa:"{{untoggledIconTemplateSpec}}"},{I:"span",S:"ytp-ad-toggle-button-toggled-icon",xa:"{{toggledIconTemplateSpec}}"}]},{I:"input",S:"ytp-ad-toggle-button-input",X:{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.Da=this.Fa("ytp-ad-toggle-button-text");this.C=null;this.ra=!1;this.hide()};
oxa=function(a){a.ra&&(a.isToggled()?(g.Ms(a.Y,!1),g.Ms(a.G,!0),a.api.U().experiments.jb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!0)):(g.Ms(a.Y,!0),g.Ms(a.G,!1),a.api.U().experiments.jb("fix_toggle_button_role_for_ad_components")&&a.B.setAttribute("aria-checked",!1)))};
pxa=function(a,b){var c=null;a.C&&(c=(b?[a.C.defaultServiceEndpoint,a.C.defaultNavigationEndpoint]:[a.C.toggledServiceEndpoint]).filter(function(d){return null!=d}));
return c||[]};
qxa=function(a,b,c){this.actionType=b;this.id=c;this.content=a};
ZF=function(a){nC.call(this);this.j=a;this.T(this.j,"onAdUxUpdate",this.K)};
rxa=function(a,b,c,d){FF.call(this,a,{I:"div",S:"ytp-ad-feedback-dialog-background",V:[{I:"div",S:"ytp-ad-feedback-dialog-container",V:[{I:"div",S:"ytp-ad-feedback-dialog-form",X:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-feedback-dialog-title",V:[{I:"span",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.ra=this.Fa("ytp-ad-info-dialog-feedback-options");this.Da=this.Fa("ytp-ad-feedback-dialog-title");this.C=this.B=null;this.hide()};
vxa=function(a,b){var c=b.cancelRenderer&&b.cancelRenderer.buttonRenderer||null;c&&(a.j=new PF(a.api,a.layoutId,a.interactionLoggingClientData,a.ib,["ytp-ad-feedback-dialog-close-button"],"button"),g.O(a,a.j),a.j.init(uF("button"),c,a.macros),a.j.listen("click",a.BZ,a),a.j.Ja(a.element));b.title&&(c=g.HF(b.title),a.updateValue("title",c));b.reasonsTitle&&(c=g.HF(b.reasonsTitle),a.updateValue("reasonsTitle",c));b.reasons&&sxa(a,b.reasons);b.cancelLabel&&(c=g.HF(b.cancelLabel),a.updateValue("cancelLabel",
c),g.jC(a.G,"click",function(){return a.BZ()}));
b.confirmLabel&&(c=g.HF(b.confirmLabel),a.updateValue("confirmLabel",c),g.jC(a.Y,"click",function(){return txa(a)}));
b.undoRenderer&&uxa(a,b.undoRenderer)};
sxa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;c=d.reason;if(null==c)g.eF(Error("AdFeedbackReason.reason was not set."));else if(d=d.endpoint,null==d)g.eF(Error("AdFeedbackReason.endpoint was not set."));else{c=new $F(c,d);g.O(a,c);d=a.ra;var e=c.Ib();d.appendChild(e);a.D.push(c)}}};
uxa=function(a,b){if(b=b&&b.buttonRenderer||null)b.serviceEndpoint?(a.B=new PF(a.api,a.layoutId,a.interactionLoggingClientData,a.ib,["ytp-ad-feedback-dialog-undo-mute-button"],"ad-feedback-undo-mute-button"),g.O(a,a.B),a.B.init(uF("ad-feedback-undo-mute-button"),b,a.macros),a.B.listen("click",a.tba,a),a.B.Ja(a.Da)):g.eF(Error("AdFeedbackRenderer.undoRenderer.undoButtonRenderer was specified but did not contain a service endpoint."))};
txa=function(a){var b=a.D.filter(function(c){return c.isChecked()});
0!==b.length&&(b=b[0].getCommand(),a.layoutId?a.ib.executeCommand(b,a.layoutId):g.dF(Error("Missing layoutId for ad feedback dialog.")),a.api.onAdUxClicked("ad-feedback-dialog-confirm-button",a.layoutId),a.publish("a"),a.hide())};
$F=function(a,b){this.B=b;this.j=new g.EF({I:"label",S:"ytp-ad-feedback-dialog-reason-label",V:[{I:"input",S:"ytp-ad-feedback-dialog-reason-input",X:{type:"radio",name:"feedback-reason-group"}},{I:"span",S:"ytp-ad-feedback-dialog-reason-text",xa:g.HF(a)}]});this.C=this.j.Fa("ytp-ad-feedback-dialog-reason-input")};
aG=function(a,b,c,d){XF.call(this,a,b,c,d,[],"ad-mute-confirm-dialog")};
wxa=function(a,b,c,d,e){FF.call(this,a,{I:"div",S:"ytp-ad-info-dialog-background",V:[{I:"div",S:"ytp-ad-info-dialog-container",V:[{I:"div",S:"ytp-ad-info-dialog-form",X:{role:"dialog",tabindex:"-1"},V:[{I:"div",S:"ytp-ad-info-dialog-title",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.bb=this.Fa("ytp-ad-info-dialog-mute-container");this.Wa=this.Fa("ytp-ad-info-dialog-message");this.Na=this.Fa("ytp-ad-info-dialog-ad-reasons");this.D=this.C=null;this.Da=e;this.G=null;this.Va=!1;this.ra=null;this.hide()};
xxa=function(a,b){if(b=b.content&&b.content.adFeedbackRenderer||null)a.B=new rxa(a.api,a.layoutId,a.interactionLoggingClientData,a.ib),g.O(a,a.B),a.B.init(uF("ad-feedback-dialog"),b,a.macros),a.B.Ja(a.Da),a.B.subscribe("a",function(){return a.publish("c")})};
yxa=function(a,b){if(b=b.content&&b.content.confirmDialogRenderer||null)a.D=new aG(a.api,a.layoutId,a.interactionLoggingClientData,a.ib),g.O(a,a.D),a.D.init(uF("ad-mute-confirm-dialog"),b,a.macros),a.D.Ja(a.Da),a.D.subscribe("b",function(){return a.publish("c")})};
zxa=function(a){a.j&&a.j.listen("click",a.sU,a);g.jC(a.Y,"click",function(){return a.sU()})};
bG=function(a,b,c,d,e,f){UF.call(this,a,b,c,d,void 0===f?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button");this.j=null;this.C=e;this.hide()};
Bxa=function(a,b,c){b=b.dialog&&g.V(b.dialog,Axa)||null;null==b?g.dF(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(a.j=new wxa(a.api,a.layoutId,a.interactionLoggingClientData,a.ib,a.C),g.O(a,a.j),a.j.init(uF("ad-info-dialog"),b,c),a.j.Ja(a.C),a.j.subscribe("d",function(){return a.publish("f")}),a.j.subscribe("c",function(){return a.publish("e")}))};
Exa=function(a,b,c){null==a.button?g.dF(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(a.B&&g.uv(a.B.element,"ytp-ad-info-hover-text-short"),(b=b&&b.serviceEndpoint&&g.V(b.serviceEndpoint,Cxa)||null)?(Bxa(a,b,c),a.button.listen("click",function(){a.j&&!a.j.Eb&&(a.j.show(),Dxa(a))})):a.button.listen("click",function(){return Dxa(a)}))};
Dxa=function(a){a.api.onAdUxClicked("ad-info-icon-button",a.layoutId)};
cG=function(a,b,c,d,e,f){FF.call(this,a,{I:"div",S:"ytp-ad-text"},void 0===f?"ad-text":f,b,c,d,void 0===e?null:e);this.j=null;this.hide()};
Fxa=function(a,b){b&&g.Of(a.element,GF(a.j,b))};
dG=function(a,b,c,d,e,f,h){FF.call(this,a,b,c,d,e,f);this.j=h;g.O(this,this.j);this.Va=this.Y=-1};
eG=function(a){a.j&&-1===a.Y&&(a.Y=a.j.subscribe("h",a.oo,a),a.Va=a.j.subscribe("g",a.Vp,a),a.oo())};
fG=function(a){null!=a.j&&-1!==a.Y&&(a.j.Jh(a.Y),a.j.Jh(a.Va),a.Va=-1,a.Y=-1)};
g.gG=function(a,b,c,d,e,f){g.I.call(this);this.element=a;this.state=null;c||a.hide();this.B=b;this.C=void 0===d?b:d;this.j=f;this.onHidden=e;this.delay=new g.lv(this.eH,0,this);g.O(this,this.delay)};
hG=function(a,b){a=a.element.element;b?a.setAttribute("aria-hidden","true"):a.removeAttribute("aria-hidden")};
iG=function(a,b,c,d,e,f){dG.call(this,a,{I:"div",S:"ytp-ad-preview-slot"},"ad-preview",b,c,d,e);var h=this;this.bb=-1;this.D=this.api.U().experiments.jb("enable_modern_skip_button_on_web");this.B=new g.EF({I:"span",S:"ytp-ad-preview-container"});this.D&&this.B.element.classList.add("ytp-ad-preview-container-detached");g.O(this,this.B);this.C=this.D?new cG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,"ytp-ad-preview-text-modern"):new cG(this.api,this.layoutId,this.interactionLoggingClientData,
this.ib,"ytp-ad-preview-text");g.O(this,this.C);this.C.Ja(this.B.element);this.ra=this.D?new g.EF({I:"span",S:"ytp-ad-preview-image-modern"}):new g.EF({I:"span",S:"ytp-ad-preview-image"});g.O(this,this.ra);this.G=new WF(this.api,this.layoutId,this.interactionLoggingClientData,this.ib);g.O(this,this.G);this.G.Ja(this.ra.element);this.ra.Ja(this.B.element);this.B.Ja(this.element);this.Da=new g.gG(this.B,400,!1,100,function(){return h.hide()});
g.O(this,this.Da);this.Na=0;this.Wa=!1;this.fb=f;this.hide()};
Gxa=function(a){a.Da.show(100);a.show()};
Hxa=function(a,b,c,d,e,f){dG.call(this,a,{I:"div",Ka:["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 WF(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,"ytp-flyout-cta-icon");
g.O(this,this.C);this.C.Ja(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 cG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,"ytp-flyout-cta-headline");g.O(this,this.G);this.G.Ja(this.Fa("ytp-flyout-cta-headline-container"));this.D=new cG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,"ytp-flyout-cta-description");g.O(this,this.D);this.D.Ja(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 PF(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,a);g.O(this,this.B);this.B.Ja(this.Fa("ytp-flyout-cta-action-button-container"));this.B.element.setAttribute("tabIndex","-1");av(this.B.element);this.ra=null;this.Da=0;this.Na=f;this.hide()};
Ixa=function(a,b,c,d,e){FF.call(this,a,{I:"div",S:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",b,c,d,void 0===e?null:e);var f=this;this.j=null;this.C=new YF(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,["ytp-ad-instream-user-sentiment-like-button"]);g.O(this,this.C);this.C.Ja(this.element);this.B=new YF(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,["ytp-ad-instream-user-sentiment-dislike-button"]);g.O(this,this.B);this.B.Ja(this.element);
this.D=new g.gG(this,400,!1,500,function(){return f.hide()});
g.O(this,this.D);this.hide()};
jG=function(a,b,c,d,e,f){e=void 0===e?0:e;f=void 0===f?!1:f;g.I.call(this);this.B=a;this.C=!1;this.Y=d;this.qa=f;this.K=!1;this.j=null;0<b&&(this.j=new g.lv(this.EV,b,this),g.O(this,this.j));this.G=new g.lv(this.EV,c,this);g.O(this,this.G);this.Z=$ka(this.B,e,1,d);g.O(this,this.Z);this.N=$ka(this.B,0,d,1);g.O(this,this.N);this.D=new nC;g.O(this,this.D)};
Jxa=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Le(a,"unknown result type")}};
Kxa=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:Le(a,"Unknown method type")}};
Mxa=function(a,b){var c=1,d=[];try{var e=document.querySelector(".ytp-ad-skip-button-slot");e?"none"===getComputedStyle(e).display?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_INVISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_VISIBLE"):d.push("BISCOTTI_BASED_DETECTION_STATE_IS_BUTTON_NOT_FOUND")}catch(f){d.push("BISCOTTI_BASED_DETECTION_STATE_IS_FINDING_BUTTON_FAILURE")}!0===a.isTrusted?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED"):!1===a.isTrusted?d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED"):
d.push("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_TRUSTED_UNDEFINED");d.includes("BISCOTTI_BASED_DETECTION_STATE_IS_CLICK_EVENT_NOT_TRUSTED")&&(c=0);bB("ISDSTAT",c);Lxa(c,"i.s_",{xda:"sk",metadata:b,states:d});return c};
Nxa=function(a,b){var c=[];b?!0===b.isTrusted?c.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):!1===b.isTrusted?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");Lxa(0,"a.s_",{metadata:a,states:c},!1);bB("ASDSTAT",0)};
Lxa=function(a,b,c,d){d=void 0===d?!0:d;var e,f,h={detected:0===a,source:""+b+(null!=(e=c.xda)?e:"")+(null!=(f=c.J5)?f:""),detectionStates:c.states,durationMs:c.I5};c.metadata&&(h.contentCpn=c.metadata.contentCpn,h.adCpn=c.metadata.adCpn);g.MC("biscottiBasedDetection",h);d&&(a=Jxa(a),b=Kxa(b),bB("CATSTAT",Number(g.cB("CATSTAT",0))&~(3<<b)|a<<b))};
Oxa=function(a){.1>Math.random()&&g.eF(Error(a))};
kG=function(a,b,c,d,e){d=void 0===d?{}:d;if(!e||5E-4>Math.random()){b=b||null;c=c||null;a=a instanceof Error?a:new g.AC(a);if(a.args)for(var f=g.u(a.args),h=f.next();!h.done;h=f.next())h=h.value,h instanceof Object&&(d=Object.assign({},h,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.slotType:"");c&&(d.layout=c?"layout:  "+c.layoutType:"");e&&(d.known_error_aggressively_sampled=!0);a.args=[d];g.eF(a)}};
g.lG=function(a,b){this.state=a;this.HA=b};
nG=function(a,b){return g.mG(a.state,b)&&!g.mG(a.HA,b)?1:!g.mG(a.state,b)&&g.mG(a.HA,b)?-1:0};
g.oG=function(a,b){return 0<nG(a,b)};
pG=function(a,b,c,d,e,f){dG.call(this,a,{I:"div",S:"ytp-ad-skip-button-slot"},"skip-button",b,c,d,e);var h=this;this.ra=null;this.Da=!1;this.Wa=f;this.G=this.api.U().experiments.jb("enable_modern_skip_button_on_web");this.bb=!1;this.D=new g.EF({I:"span",Ka:["ytp-ad-skip-button-container"]});this.G&&this.D.element.classList.add("ytp-ad-skip-button-container-detached");g.O(this,this.D);this.D.Ja(this.element);this.B=this.C=null;this.fb=new g.gG(this.D,500,!1,100,function(){return h.hide()});
g.O(this,this.fb);this.Na=new jG(this.D.element,15E3,5E3,.5,.5,this.G);g.O(this,this.Na);this.hide()};
Qxa=function(a){a=a.ra&&a.ra.adRendererCommands;return(a&&a.clickCommand&&g.V(a.clickCommand,g.qG)&&g.V(a.clickCommand,g.qG).commands||[]).some(function(b){return b.adLifecycleCommand?Pxa(b.adLifecycleCommand):!1})};
Pxa=function(a){return"END_LINEAR_AD"===a.action||"END_LINEAR_AD_PLACEMENT"===a.action};
rG=function(a,b,c,d,e,f){dG.call(this,a,{I:"div",S:"ytp-ad-skip-ad-slot"},"skip-ad",b,c,d,e);this.ra=f;this.D=!1;this.G=0;this.C=this.B=null;this.hide()};
Rxa=function(a,b){a.D||(a.D=!0,a.B&&(b?a.B.Da.hide():a.B.hide()),b?(a=a.C,a.fb.show(),a.show()):a.C.show())};
Sxa=function(a,b,c,d){PF.call(this,a,b,c,d,["ytp-ad-visit-advertiser-button"],"visit-advertiser")};
yG=function(a,b,c,d,e,f){FF.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()};
zG=function(a,b,c,d,e){e=void 0===e?!1:e;vF.call(this,"player-overlay",a,{},b,d);this.videoAdDurationSeconds=c;this.interactionLoggingClientData=d;this.dL=e};
AG=function(a,b){g.wF.call(this);this.api=a;this.durationMs=b;this.j=null;this.Fd=new nC(this);g.O(this,this.Fd);this.B=Txa;this.Fd.T(this.api,"presentingplayerstatechange",this.A4);this.j=this.Fd.T(this.api,"onAdPlaybackProgress",this.Nc)};
BG=function(a){g.wF.call(this);this.j=!1;this.Zi=0;this.Fd=new nC(this);g.O(this,this.Fd);this.durationMs=a;this.kf=new g.Ag(100);g.O(this,this.kf);this.Fd.T(this.kf,"tick",this.Nc);this.B={seekableStart:0,seekableEnd:a/1E3,current:0};this.start()};
g.CG=function(a,b){var c=Math.abs(Math.floor(a)),d=Math.floor(c/86400),e=Math.floor(c%86400/3600),f=Math.floor(c%3600/60);c=Math.floor(c%60);if(b){b="";0<d&&(b+=" "+d+" G\u00fcn");if(0<d||0<e)b+=" "+e+" Saat";b+=" "+f+" Dakika";b+=" "+c+" Saniye";d=b.trim()}else{b="";0<d&&(b+=d+":",10>e&&(b+="0"));if(0<d||0<e)b+=e+":",10>f&&(b+="0");b+=f+":";10>c&&(b+="0");d=b+c}return 0<=a?d:"-"+d};
g.DG=function(a){return(!("button"in a)||"number"!==typeof a.button||0===a.button)&&!("shiftKey"in a&&a.shiftKey)&&!("altKey"in a&&a.altKey)&&!("metaKey"in a&&a.metaKey)&&!("ctrlKey"in a&&a.ctrlKey)};
EG=function(a,b,c,d,e,f){dG.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()};
Uxa=function(a,b,c,d){cG.call(this,a,b,c,d,"ytp-video-ad-top-bar-title","ad-title")};
FG=function(a,b){this.B=a;this.j=b};
GG=function(a,b,c){if(!a.getLength())return null!=c?c:Infinity;a=(b-a.B)/a.getLength();return g.ye(a,0,1)};
HG=function(a,b){g.EF.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.O(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()};
IG=function(a,b,c,d,e,f){FF.call(this,a,{I:"div",S:"ytp-ad-player-overlay",V:[{I:"div",S:"ytp-ad-player-overlay-flyout-cta"},{I:"div",S:"ytp-ad-player-overlay-instream-info"},{I:"div",S:"ytp-ad-player-overlay-skip-or-preview"},{I:"div",S:"ytp-ad-player-overlay-progress-bar"},{I:"div",S:"ytp-ad-player-overlay-instream-user-sentiment"}]},"player-overlay",b,c,d);this.Y=f;this.C=this.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;Vxa(this)&&(a=xf("div"),g.uv(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 Uxa(this.api,this.layoutId,this.interactionLoggingClientData,this.ib),c.Ja(a),c.init(uF("ad-title"),{text:b.title},this.macros),g.O(this,c)),this.D=a);this.G=this.Fa("ytp-ad-player-overlay-skip-or-preview");this.Da=this.Fa("ytp-ad-player-overlay-progress-bar");
this.ra=this.Fa("ytp-ad-player-overlay-instream-user-sentiment");this.B=e;g.O(this,this.B);this.hide()};
Vxa=function(a){a=a.api.U();return g.JG(a)&&a.B};
Wxa=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.Mn("/sharing_services",a);g.UD(d)};
g.KG=function(a){a&=16777215;var b=[(a&16711680)>>16,(a&65280)>>8,a&255];a=b[0];var c=b[1];b=b[2];a=Number(a);c=Number(c);b=Number(b);if(a!=(a&255)||c!=(c&255)||b!=(b&255))throw Error('"('+a+","+c+","+b+'") is not a valid RGB color');c=a<<16|c<<8|b;return 16>a?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)};
LG=function(a){this.j=new Qv(a)};
Xxa=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return("WEB"===g.cB("INNERTUBE_CLIENT_NAME")||"WEB_CREATOR"===g.cB("INNERTUBE_CLIENT_NAME"))&&a};
MG=function(a){if(g.cB("LOGGED_IN",!0)&&Xxa()){var b=g.cB("VALID_SESSION_TEMPDATA_DOMAINS",[]);var c=g.hn(window.location.href);c&&b.push(c);c=g.hn(a);g.Fb(b,c)||!c&&dc(a,"/")?(b=Hn(a),(b=Ifa(b))?(b=Ova(b),b=(b=g.MB(b)||null)?kB(b):{}):b=null):b=null;null==b&&(b={});c=b;var d=void 0;Xxa()?(d||(d=g.cB("LOGIN_INFO")),d?(c.session_logininfo=d,c=!0):c=!1):c=!1;c&&Nva(a,b)}};
g.Yxa=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;a=g.Mn(a,b);MG(a);c=g.ie(a+c);d=d.location;c=je(c);void 0!==c&&(d.href=c)};
g.Zxa=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.cB("EVENT_ID");d&&(b.ei||(b.ei=d));b&&Nva(a,b);c||(MG(a),g.Yxa(a))};
g.NG=function(a,b,c,d,e,f){f=void 0===f?!1:f;c&&Nva(a,c);c=g.ie(a);var h=g.be(c);a!=h&&hB(Error("Unsafe window.open URL: "+a));a=h;b=b||Ze(a).toString(36);try{var l=kB(a);if(g.AB("replace_client_url_parsing_with_server_signal")){if(f){$xa(a,b);return}}else if("2"===(null==l?void 0:l.ase)){$xa(a,b);return}}catch(n){g.fB(n)}if(d){hB(Error("Unexpected OT1 traffic for the Chrome API."));a=xta(a);try{var m=encodeURIComponent(d);MG(a);g.Me(a,b,"attributionsrc="+m);return}catch(n){g.fB(n)}}MG(a);g.Me(c,
b,e)};
$xa=function(a,b){a=xta(a);MG(a);g.Me(a,b,"attributionsrc")};
bya=function(a){aya=a&&a.data};
dya=function(a){cya=a&&a.data};
fya=function(a){eya=a&&a.data};
hya=function(){gya=eya=cya=aya=null};
jya=function(){var a=void 0===a?window.location.href:a;if(g.AB("kevlar_disable_theme_param"))return null;en(g.gn(5,a));try{var b=g.lB(a).theme;return iya.get(b)||null}catch(c){}return null};
OG=function(){this.j={};if(this.B=Lpa()){var a=g.MB("CONSISTENCY");a&&kya(this,{encryptedTokenJarContents:a})}};
kya=function(a,b){if(b.encryptedTokenJarContents&&(a.j[b.encryptedTokenJarContents]=b,"string"===typeof b.expirationSeconds)){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.j[b.encryptedTokenJarContents]},1E3*c);
a.B&&g.LB("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};
PG=function(){var a=g.cB("LOCATION_PLAYABILITY_TOKEN");"TVHTML5"===g.cB("INNERTUBE_CLIENT_NAME")&&(this.localStorage=lya(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.j=void 0)};
lya=function(a){return void 0===a.localStorage?new KC("yt-client-location"):a.localStorage};
g.QG=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=g.cB("INNERTUBE_CONTEXT");if(!d)return g.dF(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};d=g.nd(d);g.AB("web_no_tracking_params_in_shell_killswitch")||delete d.clickTracking;d.client||(d.client={});var e=d.client;"MWEB"===e.clientName&&"AUTOMOTIVE_FORM_FACTOR"!==e.clientFormFactor&&(e.clientFormFactor=g.cB("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");e.screenWidthPoints=window.innerWidth;e.screenHeightPoints=
window.innerHeight;e.screenPixelDensity=Math.round(window.devicePixelRatio||1);e.screenDensityFloat=window.devicePixelRatio||1;e.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var f=void 0===f?!1:f;g.xC();var h="USER_INTERFACE_THEME_LIGHT";g.yC(0,165)?h="USER_INTERFACE_THEME_DARK":g.yC(0,174)?h="USER_INTERFACE_THEME_LIGHT":!g.AB("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:jya()||h;e.userInterfaceTheme=f;if(!b){if(f=Wqa())e.connectionType=f;g.AB("web_log_effective_connection_type")&&(f=Yqa())&&(d.client.effectiveConnectionType=f)}var l;if(g.AB("web_log_memory_total_kbytes")&&(null==(l=g.Ta.navigator)?0:l.deviceMemory)){var m;l=null==(m=g.Ta.navigator)?void 0:m.deviceMemory;d.client.memoryTotalKbytes=""+1E6*l}g.AB("web_gcf_hashes_innertube")&&(f=tsa())&&(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.lB(g.Ta.location.href);!g.AB("web_populate_internal_geo_killswitch")&&m.internalcountrycode&&(e.internalGeo=m.internalcountrycode);"MWEB"===e.clientName||"WEB"===e.clientName?(e.mainAppWebInfo={graftUrl:g.Ta.location.href},g.AB("kevlar_woffle")&&Kqa.instance&&(m=Kqa.instance,e.mainAppWebInfo.pwaInstallabilityStatus=!m.j&&m.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":
"PWA_INSTALLABILITY_STATUS_UNKNOWN"),e.mainAppWebInfo.webDisplayMode=Lqa(),e.mainAppWebInfo.isWebNativeShareAvailable=navigator&&void 0!==navigator.share):"TVHTML5"===e.clientName&&(!g.AB("web_lr_app_quality_killswitch")&&(m=g.cB("LIVING_ROOM_APP_QUALITY"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{appQuality:m})),m=g.cB("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(e.tvAppInfo=Object.assign(e.tvAppInfo||{},{certificationScope:m}));if(!g.AB("web_populate_time_zone_itc_killswitch")){a:{if("undefined"!==
typeof Intl)try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(G){}n=void 0}n&&(e.timeZone=n)}(n=rpa())?e.experimentsToken=n:delete e.experimentsToken;n=spa();OG.instance||(OG.instance=new OG);d.request=Object.assign({},d.request,{internalExperimentFlags:n,consistencyTokenJars:g.cd(OG.instance.j)});!g.AB("web_prequest_context_killswitch")&&(n=g.cB("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(d.request.externalPrequestContext=n);e=g.xC();n=g.yC(0,58);e=e.get("gsml","");d.user=
Object.assign({},d.user);n&&(d.user.enableSafetyMode=n);e&&(d.user.lockedSafetyMode=!0);g.AB("warm_op_csn_cleanup")?c&&(b=g.aF())&&(d.clientScreenNonce=b):!b&&(b=g.aF())&&(d.clientScreenNonce=b);a&&(d.clickTracking={clickTrackingParams:a});if(a=g.Xa("yt.mdx.remote.remoteClient_"))d.remoteClient=a;PG.getInstance().setLocationOnInnerTubeContext(d);try{var p=tB(),q=p.bid;delete p.bid;d.adSignalsInfo={params:[],bid:q};for(var r=g.u(Object.entries(p)),t=r.next();!t.done;t=r.next()){var v=g.u(t.value),
w=v.next().value,A=v.next().value;p=w;q=A;a=void 0;null==(a=d.adSignalsInfo.params)||a.push({key:p,value:""+q})}var C;if(g.AB("add_ifa_to_tvh5_requests")&&"TVHTML5"===(null==(C=d.client)?void 0:C.clientName)){var F=g.cB("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.dF(G)}return d};
oya=function(a,b){if(!a)return!1;var c,d=null==(c=g.V(a,mya))?void 0:c.signal;if(d&&b.Ax)return!!b.Ax[d];var e;if((c=null==(e=g.V(a,nya))?void 0:e.request)&&b.FN)return!!b.FN[c];for(var f in a)if(b.AN[f])return!0;return!1};
pya=function(a){var b={"Content-Type":"application/json"};g.cB("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.cB("EOM_VISITOR_DATA"):g.cB("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.cB("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.cB("LOGGED_IN",!1);g.cB("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=g.cB("DEBUG_SETTINGS_METADATA"));"cors"!==a&&((a=g.cB("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=g.cB("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=
a),(a=g.cB("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=g.cB("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a));return b};
qya=function(){this.j={}};
RG=function(){this.mappings=new qya};
SG=function(a){return function(){return new a}};
sya=function(a){var b=void 0===b?"UNKNOWN_INTERFACE":b;if(1===a.length)return a[0];var c=rya[b];if(c){c=new RegExp(c);for(var d=g.u(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var f=[];Object.entries(rya).forEach(function(h){var l=g.u(h);h=l.next().value;l=l.next().value;b!==h&&f.push(l)});
c=new RegExp(f.join("|"));a.sort(function(h,l){return h.length-l.length});
d=g.u(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]};
g.TG=function(a){return"/youtubei/v1/"+sya(a)};
tya=function(){};
UG=function(){};
VG=function(){};
WG=function(a){return g.Xa("ytcsi."+(a||"")+"data_")||uya(a)};
vya=function(){var a=WG();a.info||(a.info={});return a.info};
XG=function(a){a=WG(a);a.metadata||(a.metadata={});return a.metadata};
YG=function(a){a=WG(a);a.tick||(a.tick={});return a.tick};
ZG=function(a){a=WG(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
wya=function(a){a=ZG(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
$G=function(a){var b=WG(a).nonce;b||(b=g.qE(16),WG(a).nonce=b);return b};
uya=function(a){var b={tick:{},info:{}};g.Va("ytcsi."+(a||"")+"data_",b);return b};
xya=function(){var a=g.Xa("ytcsi.debug");a||(a=[],g.Va("ytcsi.debug",a),g.Va("ytcsi.reference",{}));return a};
aH=function(a){a=a||"";var b=yya();if(b[a])return b[a];var c=xya(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
zya=function(a){a=a||"";var b=yya();b[a]&&delete b[a];var c=xya(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
yya=function(){var a=g.Xa("ytcsi.reference");if(a)return a;xya();return g.Xa("ytcsi.reference")};
bH=function(a){return Aya[a]||"LATENCY_ACTION_UNKNOWN"};
Bya=function(a,b){ED.call(this,1,arguments);this.kf=b};
cH=function(){this.j=0};
dH=function(){cH.instance||(cH.instance=new cH);return cH.instance};
fH=function(a,b){eH[b]=eH[b]||{count:0};var c=eH[b];c.count++;c.time=(0,g.$C)();a.j||(a.j=g.FC(0,function(){var d=(0,g.$C)(),e;for(e in eH)eH[e]&&6E4<d-eH[e].time&&delete eH[e];a&&(a.j=0)},5E3));
return 5<c.count?(6===c.count&&1>1E5*Math.random()&&(c=new g.AC("CSI data exceeded logging limit with key",b.split("_")),0<=b.indexOf("plev")||g.eF(c)),!0):!1};
Cya=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
Dya=function(){var a;if(g.AB("csi_use_performance_navigation_timing")||g.AB("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=null==gH?void 0:null==(a=gH.getEntriesByType)?void 0:null==(b=a.call(gH,"navigation"))?void 0:null==(c=b[0])?void 0:null==(d=c.toJSON)?void 0:d.call(c);e?(e.requestStart=hH(e.requestStart),e.responseEnd=hH(e.responseEnd),e.redirectStart=hH(e.redirectStart),e.redirectEnd=hH(e.redirectEnd),e.domainLookupEnd=hH(e.domainLookupEnd),e.connectStart=hH(e.connectStart),
e.connectEnd=hH(e.connectEnd),e.responseStart=hH(e.responseStart),e.secureConnectionStart=hH(e.secureConnectionStart),e.domainLookupStart=hH(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=gH.timing}else a=g.AB("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(gH.timing)):gH.timing;return a};
hH=function(a){return Math.round(iH()+a)};
iH=function(){return(g.AB("csi_use_time_origin")||g.AB("csi_use_time_origin_tvhtml5"))&&gH.timeOrigin?Math.floor(gH.timeOrigin):gH.timing.navigationStart};
kH=function(a,b){jH("_start",a,b)};
wH=function(a,b,c){c=void 0===c?!1:c;if(!g.AB("web_csi_action_sampling_enabled")||!WG(b).actionDisabled)if(g.AB("web_csi_via_jspb")&&!c){c=new OA;var d=Object.keys(a);a=Object.values(a);for(var e=0;e<d.length;e++){var f=d[e];try{switch(f){case "actionType":S(c,1,X[a[e]]);break;case "clientActionNonce":Q(c,2,a[e]);break;case "clientScreenNonce":Q(c,4,a[e]);break;case "loadType":Q(c,3,a[e]);break;case "isPrewarmedLaunch":Dk(c,92,a[e]);break;case "isFirstInstall":Dk(c,55,a[e]);break;case "networkType":S(c,
5,lH[a[e]]);break;case "connectionType":S(c,26,mH[a[e]]);break;case "detailedConnectionType":S(c,27,nH[a[e]]);break;case "isVisible":Dk(c,6,a[e]);break;case "playerType":S(c,7,oH[a[e]]);break;case "clientPlaybackNonce":Q(c,8,a[e]);break;case "adClientPlaybackNonce":Q(c,28,a[e]);break;case "previousCpn":Q(c,77,a[e]);break;case "targetCpn":Q(c,76,a[e]);break;case "isMonetized":Dk(c,9,a[e]);break;case "isPrerollAllowed":Dk(c,16,a[e]);break;case "isPrerollShown":Dk(c,17,a[e]);break;case "adType":Q(c,
12,a[e]);break;case "adTypesAllowed":Q(c,36,a[e]);break;case "adNetworks":Q(c,37,a[e]);break;case "previousAction":S(c,13,X[a[e]]);break;case "isRedSubscriber":Dk(c,14,a[e]);break;case "serverTimeMs":Ek(c,15,a[e]);break;case "videoId":c.setVideoId(a[e]);break;case "adVideoId":Q(c,20,a[e]);break;case "targetVideoId":Q(c,78,a[e]);break;case "adBreakType":S(c,21,pH[a[e]]);break;case "isNavigation":Dk(c,25,a[e]);break;case "viewportHeight":Ek(c,29,a[e]);break;case "viewportWidth":Ek(c,30,a[e]);break;
case "screenHeight":Ek(c,84,a[e]);break;case "screenWidth":Ek(c,85,a[e]);break;case "browseId":Q(c,31,a[e]);break;case "isCacheHit":Dk(c,32,a[e]);break;case "isSsdai":Dk(c,125,a[e]);break;case "httpProtocol":Q(c,33,a[e]);break;case "transportProtocol":Q(c,34,a[e]);break;case "searchQuery":Q(c,41,a[e]);break;case "isContinuation":Dk(c,42,a[e]);break;case "availableProcessors":Ek(c,43,a[e]);break;case "sdk":Q(c,44,a[e]);break;case "isLocalStream":Dk(c,45,a[e]);break;case "navigationRequestedSameUrl":Dk(c,
64,a[e]);break;case "shellStartupDurationMs":Ek(c,70,a[e]);break;case "appInstallDataAgeMs":Ek(c,73,a[e]);break;case "latencyActionError":S(c,71,qH[a[e]]);break;case "actionStep":Ek(c,79,a[e]);break;case "jsHeapSizeLimit":Gk(c,80,a[e]);break;case "totalJsHeapSize":Gk(c,81,a[e]);break;case "usedJsHeapSize":Gk(c,82,a[e]);break;case "sourceVideoDurationMs":Gk(c,90,a[e]);break;case "videoOutputFrames":Gk(c,93,a[e]);break;case "isResume":Dk(c,104,a[e]);break;case "debugTicksExcluded":Dk(c,105,a[e]);break;
case "abandonedPing":Dk(c,113,a[e]);break;case "retries":Ek(c,123,a[e]);break;case "adPrebufferedTimeSecs":Ek(c,39,a[e]);break;case "isLivestream":Dk(c,47,a[e]);break;case "liveStreamMode":S(c,91,rH[a[e]]);break;case "adCpn2":Q(c,48,a[e]);break;case "adDaiDriftMillis":Gk(c,49,a[e]);break;case "videoStreamType":S(c,53,sH[a[e]]);break;case "playbackRequiresTap":Dk(c,56,a[e]);break;case "performanceNavigationTiming":Dk(c,67,a[e]);break;case "transactionType":S(c,74,tH[a[e]]);break;case "playerRotationType":S(c,
101,uH[a[e]]);break;case "allowedPreroll":Dk(c,10,a[e]);break;case "shownPreroll":Dk(c,11,a[e]);break;case "getHomeRequestId":Q(c,57,a[e]);break;case "getSearchRequestId":Q(c,60,a[e]);break;case "getPlayerRequestId":Q(c,61,a[e]);break;case "getWatchNextRequestId":Q(c,62,a[e]);break;case "getBrowseRequestId":Q(c,63,a[e]);break;case "getLibraryRequestId":Q(c,66,a[e]);break;case "isTransformerEnabledForFeature":Dk(c,106,a[e]);break;case "sourceVideoFrameCount":Gk(c,109,a[e]);break;default:Eya.includes(f)&&
g.fB(new g.AC("Codegen laipb translator asked to translate message field",""+f))}}catch(h){g.fB(Error("Codegen laipb translator failed to set "+f))}}vH(c,b)}else c=aH(b||""),lE(c.info,a),a.loadType&&(c=a.loadType,XG(b).loadType=c),lE(wya(b),a),c=$G(b),b=WG(b).cttAuthInfo,dH().info(a,c,b)};
vH=function(a,b){if(!g.AB("web_csi_action_sampling_enabled")||!WG(b).actionDisabled){var c=Bk(a,3);c&&(XG(b).loadType=c);aH(b||"").jspbInfo.push(a);c=$G(b);b=WG(b).cttAuthInfo;dH().jspbInfo(a,c,b)}};
Fya=function(){var a,b,c,d;return(null!=(d=null==yE().resolve(new vE(AD))?void 0:null==(a=BD())?void 0:null==(b=a.loggingHotConfig)?void 0:null==(c=b.csiConfig)?void 0:c.debugTicks)?d:[]).map(function(e){return Object.values(e)[0]})};
jH=function(a,b,c){if(!g.AB("web_csi_action_sampling_enabled")||!WG(c).actionDisabled){var d=$G(c),e;if(e=g.AB("web_csi_debug_sample_enabled")&&d){(null==yE().resolve(new vE(AD))?0:BD())&&!Gya&&(Gya=!0,jH("gcfl",(0,g.$C)(),c));var f,h,l;e=(null==yE().resolve(new vE(AD))?void 0:null==(f=BD())?void 0:null==(h=f.loggingHotConfig)?void 0:null==(l=h.csiConfig)?void 0:l.debugSampleWeight)||0;if(f=0!==e)b:{f=Fya();if(0<f.length)for(h=0;h<f.length;h++)if(a===f[h]){f=!0;break b}f=!1}f?(e=0!==pwa(d)%e,WG(c).debugTicksExcludedLogged||
(g.AB("web_csi_via_jspb")?(f=new OA,f=Dk(f,105,e),vH(f,c)):(f={},f.debugTicksExcluded=e,wH(f,c))),WG(c).debugTicksExcludedLogged=!0):e=!1}if(!e){b||"_"===a[0]||(e=a,gH.mark&&(e.startsWith("mark_")||(e="mark_"+e),c&&(e+=" ("+c+")"),gH.mark(e)));e=aH(c||"");e.tick[a]=b||(0,g.$C)();if(e.callback&&e.callback[a])for(e=g.u(e.callback[a]),f=e.next();!f.done;f=e.next())f=f.value,f();e=ZG(c);e.gelTicks&&(e.gelTicks[a]=!0);f=YG(c);e=b||(0,g.$C)();g.AB("log_repeated_ytcsi_ticks")?a in f||(f[a]=e):f[a]=e;f=WG(c).cttAuthInfo;
"_start"===a?(a=dH(),fH(a,"baseline_"+d)||(b={timestamp:b,cttAuthInfo:f},g.AB("web_csi_via_jspb")?(a=new Loa,Q(a,1,d),d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA,sk(d,Loa,6,XE,a),WE("latencyActionBaselined",d,b)):g.MC("latencyActionBaselined",{clientActionNonce:d},b))):dH().tick(a,d,b,f);Hya(c);return e}}};
Iya=function(){var a,b=null==(a=gH.getEntriesByType)?void 0:a.call(gH,"mark");b&&b.forEach(function(c){if(c.name.startsWith("mark_")){var d;null==(d=gH.clearMarks)||d.call(gH,c.name)}})};
Jya=function(){switch(uqa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
Mya=function(a){var b=Dya(),c=iH(),d=g.cB("CSI_START_TIMESTAMP_MILLIS",0);0<d&&!g.AB("embeds_web_enable_csi_start_override_killswitch")&&(c=d);c&&(jH("srt",b.responseStart),1!==a.prerender&&kH(c));a=Kya();0<a&&jH("fpt",a);a=Dya();a.isPerformanceNavigationTiming&&wH({performanceNavigationTiming:!0},void 0);jH("nreqs",a.requestStart,void 0);jH("nress",a.responseStart,void 0);jH("nrese",a.responseEnd,void 0);0<a.redirectEnd-a.redirectStart&&(jH("nrs",a.redirectStart,void 0),jH("nre",a.redirectEnd,void 0));
0<a.domainLookupEnd-a.domainLookupStart&&(jH("ndnss",a.domainLookupStart,void 0),jH("ndnse",a.domainLookupEnd,void 0));0<a.connectEnd-a.connectStart&&(jH("ntcps",a.connectStart,void 0),jH("ntcpe",a.connectEnd,void 0));a.secureConnectionStart>=iH()&&0<a.connectEnd-a.secureConnectionStart&&(jH("nstcps",a.secureConnectionStart,void 0),jH("ntcpe",a.connectEnd,void 0));gH&&"getEntriesByType"in gH&&Lya()};
Nya=function(a){function b(f,h,l){h=h.match("_rid")?h.split("_rid")[0]:h;"number"===typeof l&&(l=JSON.stringify(l));f.requestIds?f.requestIds.push({endpoint:h,id:l}):f.requestIds=[{endpoint:h,id:l}]}
var c={};a=g.u(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":b(c,d,e);break;case "GetGuide_rid":b(c,d,e);break;case "GetHome_rid":b(c,d,e);break;case "GetPlayer_rid":b(c,d,e);break;case "GetSearch_rid":b(c,d,e);break;case "GetSettings_rid":b(c,d,e);break;case "GetTrending_rid":b(c,d,e);break;case "GetWatchNext_rid":b(c,d,e);break;case "yt_red":c.isRedSubscriber=!!e;break;case "yt_ad":c.isMonetized=!!e}}return c};
Oya=function(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;"SCRIPT"===d?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):"LINK"===d&&(c=a.href);Ne(window)&&a.setAttribute("nonce",Ne(window));return c?(a=gH.getEntriesByName(c))&&a[0]&&(a=a[0],c=iH(),jH("rsf_"+b,c+Math.round(a.fetchStart)),jH("rse_"+b,c+Math.round(a.responseEnd)),void 0!==a.transferSize&&0===a.transferSize)?!0:!1:!1};
Qya=function(){var a=[];if(document.querySelector&&gH&&gH.getEntriesByName)for(var b in Pya)if(Pya.hasOwnProperty(b)){var c=Pya[b];Oya(b,c)&&a.push(c)}return a};
Lya=function(){var a=window.location.protocol,b=gH.getEntriesByType("resource");b=g.Ht(b,function(c){return 0===c.name.indexOf(a+"//fonts.gstatic.com/s/")});
(b=Tr(b,function(c,d){return d.duration>c.duration?d:c},{duration:0}))&&0<b.startTime&&0<b.responseEnd&&(jH("wffs",hH(b.startTime)),jH("wffe",hH(b.responseEnd)))};
Rya=function(a,b,c){gH&&gH.measure&&(a.startsWith("measure_")||(a="measure_"+a),c?gH.measure(a,b,c):b?gH.measure(a,b):gH.measure(a))};
Sya=function(a){var b=xH("aft",a);if(b)return b;b=g.cB((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=xH(b[d],a);if(e)return e}return NaN};
Tya=function(a,b){g.Va("ytglobal.timing"+(b||"")+"ready_",a)};
xH=function(a,b){if(a=YG(b)[a])return"number"===typeof a?a:a[a.length-1]};
Hya=function(a){var b=xH("_start",a),c=Sya(a);b&&c&&!Uya&&(GD(Vya,new Bya(Math.round(c-b),a)),Uya=!0)};
Kya=function(){if(gH.getEntriesByType){var a=gH.getEntriesByType("paint");if(a=g.Db(a,function(b){return"first-paint"===b.name}))return hH(a.startTime)}a=gH.timing;
return a.G9?Math.max(0,a.G9):0};
yH=function(a){uya(a);Wya();Iya();a||(g.cB("TIMING_ACTION")&&bB("PREVIOUS_ACTION",g.cB("TIMING_ACTION")),bB("TIMING_ACTION",""))};
Xya=function(){var a=["pbs","pbu"];g.gB(function(){aH("").info.actionType="watch";a&&bB("TIMING_AFT_KEYS",a);bB("TIMING_ACTION","watch");if(g.AB("web_csi_via_jspb")){var b=g.cB("TIMING_INFO",{}),c=new OA;b=g.u(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":PA(c,MA(LA(d),String(e)));break;case "GetGuide_rid":PA(c,MA(LA(d),String(e)));break;case "GetHome_rid":PA(c,MA(LA(d),String(e)));break;case "GetPlayer_rid":PA(c,
MA(LA(d),String(e)));break;case "GetSearch_rid":PA(c,MA(LA(d),String(e)));break;case "GetSettings_rid":PA(c,MA(LA(d),String(e)));break;case "GetTrending_rid":PA(c,MA(LA(d),String(e)));break;case "GetWatchNext_rid":PA(c,MA(LA(d),String(e)));break;case "yt_red":Dk(c,14,!!e);break;case "yt_ad":Dk(c,9,!!e)}}vH(c);c=new OA;c=Dk(c,25,!0);c=S(c,1,X[bH(g.cB("TIMING_ACTION"))]);(b=g.cB("PREVIOUS_ACTION"))&&S(c,13,X[bH(b)]);(b=g.cB("CLIENT_PROTOCOL"))&&Q(c,33,b);(b=g.cB("CLIENT_TRANSPORT"))&&Q(c,34,b);(b=g.aF())&&
"UNDEFINED_CSN"!==b&&Q(c,4,b);b=Jya();1!==b&&-1!==b||Dk(c,6,!0);b=vya();(d="cold"===XG().loadType)||(d="cold"===b.yt_lt);if(d&&(Q(c,3,"cold"),Mya(b),b=Qya(),0<b.length))for(b=g.u(b),d=b.next();!d.done;d=b.next())d=d.value,e=new Moa,Q(e,1,d),uk(c,83,Moa,e);vH(c)}else{c=Nya(g.cB("TIMING_INFO",{}));0<Object.keys(c).length&&wH(c);c={isNavigation:!0,actionType:bH(g.cB("TIMING_ACTION"))};if(b=g.cB("PREVIOUS_ACTION"))c.previousAction=bH(b);if(b=g.cB("CLIENT_PROTOCOL"))c.httpProtocol=b;if(b=g.cB("CLIENT_TRANSPORT"))c.transportProtocol=
b;(b=g.aF())&&"UNDEFINED_CSN"!==b&&(c.clientScreenNonce=b);b=Jya();if(1===b||-1===b)c.isVisible=!0;b="cold"===XG().loadType;d=vya();b||(b="cold"===d.yt_lt);if(b&&(c.loadType="cold",Mya(vya()),b=Qya(),0<b.length))for(c.resourceInfo=[],b=g.u(b),d=b.next();!d.done;d=b.next())c.resourceInfo.push({resourceCache:d.value});wH(c)}c=ZG();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);b=c.preLoggedGelInfos;c=wya();d=void 0;for(e=0;e<b.length;e++){var f=b[e];if(f.loadType){d=f.loadType;break}}if("cold"===XG().loadType&&
("cold"===c.loadType||"cold"===d)){d=YG();e=ZG();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var h in d)if(!(h in e))if("number"===typeof d[h])jH(h,xH(h));else if(g.AB("log_repeated_ytcsi_ticks")){f=g.u(d[h]);for(var l=f.next();!l.done;l=f.next())jH(h.slice(1),l.value)}h={};d=!1;b=g.u(b);for(e=b.next();!e.done;e=b.next())d=e.value,lE(c,d),lE(h,d),d=!0;d&&wH(h)}Tya(!0);h=g.cB("TIMING_ACTION");g.Xa("ytglobal.timingready_")&&h&&zH("_start")&&Sya()&&Hya()})()};
Zya=function(){var a=void 0===a?{}:a;g.gB(function(){Yya();zya();yH();Tya(!1);a.cttAuthInfo&&(WG().cttAuthInfo=a.cttAuthInfo);bB("TIMING_AFT_KEYS",[]);a.Kob?g.AH({loadType:"hot"}):g.AH({loadType:"warm"});bB("TIMING_ACTION","");delete g.cB("TIMING_INFO",{}).yt_lt;g.gB(kH)(a.startTime,void 0)})()};
BH=function(a,b){b=void 0===b?{}:b;g.gB(function(){$ya(a);var c=b.sampleRate;if(!g.AB("web_csi_action_sampling_enabled")||void 0===c||1>=c)c=!1;else{var d=$G(a);c=0!==pwa(d)%c}c&&(WG(a).actionDisabled=!0);aH(a||"").info.actionType=a;b.cttAuthInfo&&(WG(a).cttAuthInfo=b.cttAuthInfo);bB(a+"TIMING_ACTION",a);g.gB(kH)(b.startTime,a);c={actionType:bH(a)};b.Sob&&(c.previousAction=bH(g.cB("TIMING_ACTION")));(d=g.aF())&&"UNDEFINED_CSN"!==d&&(c.clientScreenNonce=d);g.AH(c,a);Tya(!0,a)})()};
$ya=function(a){g.gB(function(){Yya(a);zya(a);yH(a)})()};
g.AH=function(a,b,c){g.gB(wH)(a,b,void 0===c?!1:c)};
CH=function(a,b,c){return g.gB(jH)(a,b,c)};
aza=function(a){g.gB(Rya)("above_the_fold",a,void 0)};
zH=function(a,b){return g.gB(function(){var c=YG(b);return a in c})()};
cza=function(a){if(!g.AB("universal_csi_network_ticks"))return"";a=en(g.gn(5,a))||"";for(var b=Object.keys(bza),c=0;c<b.length;c++){var d=b[c];if(a.includes(d))return d}return""};
fza=function(a){if(!g.AB("universal_csi_network_ticks"))return function(){};
var b=bza[a];return b?(dza(b),function(){var c=g.AB("universal_csi_network_ticks")?(c=eza[a])?dza(c):!1:!1;return c}):function(){}};
dza=function(a,b){return g.gB(function(){if(zH(a,b))return!1;CH(a,void 0,b);return!0})()};
DH=function(a,b,c){g.gB(function(){if(!zH("_start",c)||zH(a,c))return!1;CH(a,b,c);return!0})()};
gza=function(){g.gB(function(){var a=$G();requestAnimationFrame(function(){setTimeout(function(){a===$G()&&CH("ftl",void 0,void 0)},0)})})()};
Yya=function(a){zH("_start",a)&&CH("aa",void 0,a)};
EH=function(a,b,c,d){this.XN=a;this.fh=b;this.j=c;this.D=d;this.C=void 0;this.B=new Map;a.Ax||(a.Ax={});a.Ax=Object.assign({},hza,a.Ax)};
iza=function(a,b,c,d){if(void 0!==EH.instance){if(d=EH.instance,a=[a!==d.XN,b!==d.fh,c!==d.j,!1,!1,!1,void 0!==d.C],a.some(function(e){return e}))throw new g.AC("InnerTubeTransportService is already initialized",a);
}else EH.instance=new EH(a,b,c,d)};
FH=function(a,b,c){var d=void 0===d?DD:d;var e=jza(a,b);return e?new g.hg(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.AC("Error: Failed to build request for command.",b));r.Ia(0);break}MG(m.input);p="cors"===(null==(n=m.au)?void 0:n.mode)?"cors":void 0;if(a.j.I0){q=kza(a,m.config,p);r.Ia(4);break}return g.z(r,lza(a,m.config,p),5);case 5:q=r.B;case 4:f(mza(a,m,q)),g.Aa(r)}})}):kg(new g.AC("Error: No request builder found for command.",
b))};
g.GH=function(a,b,c,d,e){function f(){}
e=void 0===e?{hv:{identity:DD}}:e;var h=void 0===h?!0:h;f=fza(cza(c));b.context||(b.context=g.QG(d,h));return new g.hg(function(l){var m,n,p,q,r;return g.H(function(t){if(1==t.j)return m=Mpa(c),n=oB(m)?"same-origin":"cors",a.j.I0?(p=kza(a,e,n),t.Ia(2)):g.z(t,lza(a,e,n),3);2!=t.j&&(p=t.B);var v=p;q=Npa(Mpa(c),v);r={input:q,au:Opa(q),Bp:b,config:e};l(mza(a,r,p,f));g.Aa(t)})})};
oza=function(a,b,c){var d;if(b&&!(null==b?0:null==(d=b.sequenceMetaData)?0:d.skipProcessing)&&a.D){d=g.u(nza);for(var e=d.next();!e.done;e=d.next())e=e.value,a.D[e]&&a.D[e].handleResponse(b,c)}};
mza=function(a,b,c,d){d=void 0===d?function(){}:d;
var e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,G,L,M,R,ea,ma,oa,ia,va,aa,U,La,x,ba;return g.H(function(Ja){switch(Ja.j){case 1:Ja.Ia(2);break;case 3:if((e=Ja.B)&&!e.isExpired())return Ja.return(Promise.resolve(e.j()));case 2:if(!(null==(f=b)?0:null==(h=f.Bp)?0:h.context)){Ja.Ia(4);break}l=b.Bp.context;Ja.Ia(5);break;case 5:m=g.u([]),n=m.next();case 7:if(n.done){Ja.Ia(4);break}p=n.value;return g.z(Ja,p.zpb(l),8);case 8:n=m.next();Ja.Ia(7);break;case 4:if(null==(q=a.C)||!q.Spb(b.input,b.Bp)){Ja.Ia(11);break}return g.z(Ja,
a.C.Qob(b.input,b.Bp),12);case 12:return r=Ja.B,g.AB("kevlar_process_local_innertube_responses_killswitch")||oza(a,r,b),Ja.return(r);case 11:return(w=null==(v=b.config)?void 0:v.Xi)&&a.B.has(w)?t=a.B.get(w):(A=JSON.stringify(b.Bp),G=null!=(F=null==(C=b.au)?void 0:C.headers)?F:{},b.au=Object.assign({},b.au,{headers:Object.assign({},G,c)}),L=Object.assign({},b.au),"POST"===b.au.method&&(L=Object.assign({},L,{body:A})),(null==(M=b.config)?0:M.pca)&&CH(b.config.pca),R=function(){return a.fh.fetch(b.input,
L,b.config)},t=R(),w&&a.B.set(w,t)),g.z(Ja,t,13);
case 13:if((ea=Ja.B)&&"error"in ea&&(null==(ma=ea)?0:null==(oa=ma.error)?0:oa.details))for(ia=ea.error.details,va=g.u(ia),aa=va.next();!aa.done;aa=va.next())U=aa.value,(La=U["@type"])&&-1<pza.indexOf(La)&&(delete U["@type"],ea=U);w&&a.B.has(w)&&a.B.delete(w);(null==(x=b.config)?0:x.tca)&&CH(b.config.tca);if(ea||null==(ba=a.C)||!ba.cnb(b.input,b.Bp)){Ja.Ia(14);break}return g.z(Ja,a.C.Pob(b.input,b.Bp),15);case 15:ea=Ja.B;case 14:return oza(a,ea,b),d(),Ja.return(ea||void 0)}})};
jza=function(a,b){a:{a=a.XN;var c,d=null==(c=g.V(b,mya))?void 0:c.signal;if(d&&a.Ax&&(c=a.Ax[d])){var e=c();break a}var f;if((c=null==(f=g.V(b,nya))?void 0:f.request)&&a.FN&&(f=a.FN[c])){e=f();break a}for(e in b)if(a.AN[e]&&(b=a.AN[e])){e=b();break a}e=void 0}if(void 0!==e)return Promise.resolve(e)};
lza=function(a,b,c){var d,e,f,h,l,m,n;return g.H(function(p){if(1==p.j){f=(null==(d=b)?void 0:null==(e=d.hv)?void 0:e.identity)||DD;m=null==(h=b)?void 0:null==(l=h.hv)?void 0:l.sessionIndex;var q=jg(a.j.DD(f,{sessionIndex:m}));return g.z(p,q,2)}n=p.B;return p.return(Promise.resolve(Object.assign({},pya(c),n)))})};
kza=function(a,b,c){var d,e=(null==b?void 0:null==(d=b.hv)?void 0:d.identity)||DD,f;b=null==b?void 0:null==(f=b.hv)?void 0:f.sessionIndex;a=a.j.DD(e,{sessionIndex:b});return Object.assign({},pya(c),a)};
HH=function(){};
IH=function(){};
JH=function(){};
KH=function(){};
LH=function(){};
MH=function(){};
g.NH=function(a,b){var c=g.Ia.apply(2,arguments);a=void 0===a?0:a;g.AC.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)};
OH=function(a){this.j=a};
qza=function(a,b,c){if(a.j){var d=en(g.gn(5,Pn(b,"key")))||"/UNKNOWN_PATH";a.j.start(d)}a=c;g.AB("wug_networking_gzip_request")&&(a=bta(c));return new window.Request(b,a)};
g.PH=function(a,b){if(!rza){var c=yE();$ta(c,{BF:sza,F1:OH});var d={AN:{feedbackEndpoint:SG(JH),modifyChannelNotificationPreferenceEndpoint:SG(KH),playlistEditEndpoint:SG(LH),subscribeEndpoint:SG(HH),unsubscribeEndpoint:SG(IH),webPlayerShareEntityServiceEndpoint:SG(MH)}},e=PG.getInstance(),f={};e&&(f.client_location=e);void 0===a&&(a=Mqa());void 0===b&&(b=c.resolve(sza));iza(d,b,a,f);$ta(c,{BF:tza,VS:EH.instance});rza=c.resolve(tza)}return rza};
wza=function(){if(!g.AB("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.AB("disable_biscotti_fetch_entirely_for_all_web_clients")&&Zpa()){var a=g.cB("PLAYER_VARS",{});if("1"!=g.jd(a,"privembed",!1)&&!eqa(a)){var b=function(){uza=!0;"google_ad_status"in window?bB("DCLKSTAT",1):bB("DCLKSTAT",2)};
try{g.Mta("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}vza.push(g.Zu.Mi(function(){if(!(uza||"google_ad_status"in window)){try{if(b){var c=""+g.fb(b),d=Ota[c];d&&g.iE(d)}}catch(e){}uza=!0;bB("DCLKSTAT",3)}},5E3))}}};
QH=function(){var a=Number(g.cB("DCLKSTAT",0));return isNaN(a)?0:a};
SH=function(a,b){this.network=a;this.j=null;b&&(this.j=RH(this,0))};
RH=function(a,b,c){c=void 0===c?0:c;var d,e,f,h,l,m,n,p,q,r,t,v;return g.H(function(w){switch(w.j){case 1:return g.z(w,new Promise(function(A){EC(A,0,b)}),2);
case 2:d={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};if(e=po().j)d.interpreterHash=e;g.Ba(w,3);return g.z(w,a.network.Gnb(d),5);case 5:f=w.B;if(!f)throw Error("Fetching Attestation challenge returned falsy");if(!f.challenge)throw Error("Missing Attestation challenge");h=f.challenge;l=xza(h);if("c1a"in l&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.Ca(w,4);break;case 3:m=g.Da(w);g.eF(m);c++;if(5<=c)return g.eF(Error("Failed to fetch attestation challenge after "+
(c+" attempts; not retrying for 24h."))),yza(a,864E5),w.return({challenge:"",zq:{},kq:void 0,bgChallenge:void 0});n=1E3*Math.pow(2,c-1)+1E3*Math.random();return w.return(RH(a,n,c));case 4:p=Number(l.t)||7200;yza(a,1E3*p);q=void 0;if(!("c1a"in l&&f.bgChallenge)){w.Ia(6);break}r=zza(f.bgChallenge);g.Ba(w,7);return g.z(w,nga(r),9);case 9:g.Ca(w,8);break;case 7:return t=g.Da(w),g.eF(t),w.return({challenge:h,zq:l,kq:q,bgChallenge:r});case 8:return g.Ba(w,10),q=new no({challenge:r,I_:!0,iZ:"aGIf"}),g.z(w,
q.gS,12);case 12:g.Ca(w,6);break;case 10:v=g.Da(w),g.eF(v),q=void 0;case 6:return w.return({challenge:h,zq:l,kq:q,bgChallenge:r})}})};
xza=function(a){var b={};a=a.split("&");a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value.split("="),2===c.length&&(b[c[0]]=c[1]);return b};
zza=function(a){var b=new lo;if(a.interpreterJavascript){var c=bma(a.interpreterJavascript);c=ve(c).toString();var d=new jo;Q(d,6,c);rk(b,jo,1,d)}else a.interpreterUrl&&(c=Lw(a.interpreterUrl),c=g.Xd(c).toString(),d=new ko,Q(d,4,c),rk(b,ko,2,d));a.interpreterHash&&Jk(b,3,a.interpreterHash);a.program&&Jk(b,4,a.program);a.globalName&&Jk(b,5,a.globalName);return b};
yza=function(a,b){RH(a,b).then(function(c){Promise.race([a.j,null]).then(function(d){var e;null==d||null==(e=d.kq)||e.dispose()}).finally(function(){a.j=Promise.resolve(c)})})};
Aza=function(a,b){return new Promise(function(c){g.FC(0,function(){c(b())},a)})};
g.Bza=function(a){var b;return g.H(function(c){var d=g.Xa("yt.aba.att");return(b=d?d:void 0!==SH.instance?SH.instance.B.bind(SH.instance):null)?c.return(b("ENGAGEMENT_TYPE_PLAYBACK",a,1500)):c.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
g.Cza=function(){var a;return(a=(a=g.Xa("yt.aba.att2"))?a:void 0!==SH.instance?SH.instance.C.bind(SH.instance):null)?a():Promise.resolve(!1)};
Eza=function(a,b){var c=g.Xa("ytDebugData.callbacks");c||(c={},g.Va("ytDebugData.callbacks",c));if(g.AB("web_dd_iu")||Dza.includes(a))c[a]=b};
Gza=function(a){for(var b="",c=0;c<a.length;c++){var d=a[c];if(0===c)d="M "+d.x.toFixed(1)+","+d.y.toFixed(1);else{var e=Fza(a[c-1],a[c-2],d),f=Fza(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};
Fza=function(a,b,c,d){d=void 0===d?!1:d;b=new Hza(b||a,c||a);return{x:a.x+.2*((void 0===d?0:d)?-1*b.j:b.j),y:a.y+.2*((void 0===d?0:d)?-1*b.B:b.B)}};
Hza=function(a,b){this.B=this.j=0;this.j=b.x-a.x;this.B=b.y-a.y};
Iza=function(a,b,c){if(!b)return 1<=a.length?a[a.length-1]:null;for(var d=g.u(a),e=d.next();!e.done;e=d.next())if(e=e.value,e.width&&e.height&&(c&&e.width>=b||!c&&e.height>=b))return e;for(b=a.length-1;0<=b;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]};
Jza=function(){this.state=1;this.kq=null};
Lza=function(a,b,c,d,e,f){var h=void 0===h?"trayride":h;c?(a.Bc(2),g.Mta(c,function(){if(window[h])Kza(a,d,h,e);else{a.Bc(3);var l=Nta(c),m=document.getElementById(l);m&&(Kta(l),m.parentNode.removeChild(m));g.eF(new g.AC("Unable to load Botguard","from "+c))}},f)):b?(f=g.yf("SCRIPT"),b instanceof ue?(f.textContent=ve(b),Pe(f)):f.textContent=b,f.nonce=Ne(window),document.head.appendChild(f),document.head.removeChild(f),window[h]?Kza(a,d,h,e):(a.Bc(4),g.eF(new g.AC("Unable to load Botguard from JS")))):
g.eF(new g.AC("Unable to load VM; no url or JS provided"))};
Kza=function(a,b,c,d){a.Bc(5);try{var e=new no({program:b,globalName:c,I_:g.AB("att_web_record_metrics"),iZ:"aGIf"});e.gS.then(function(){a.Bc(6);d&&d(b)});
a.eS(e)}catch(f){a.Bc(7),f instanceof Error&&g.eF(f)}};
Mza=function(){var a=g.Xa("yt.abuse.playerAttLoader");return a&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in a})?a:null};
TH=function(){Jza.apply(this,arguments)};
Nza=function(){};
Oza=function(a,b,c){for(var d=!1,e=g.u(a.Yi.entries()),f=e.next();!f.done;f=e.next())f=g.u(f.value).next().value,"SLOT_TYPE_PLAYER_BYTES"===f.slotType&&"core"===f.Ya&&(d=!0);if(d){a:if(!c){a=g.u(a.Yi.entries());for(c=a.next();!c.done;c=a.next())if(d=g.u(c.value),c=d.next().value,d=d.next().value,"SLOT_TYPE_IN_PLAYER"===c.slotType&&"core"===c.Ya){c=d.layoutId;break a}c=void 0}c?b.WO(c):kG("No triggering layout ID available when attempting to mute.")}};
Pza=function(a,b){this.Tk=a;this.Un=b};
Qza=function(){};
Rza=function(){};
Tza=function(a){g.I.call(this);var b=this;this.qd=a;this.j=new Map;UH(this,"commandExecutorCommand",function(c,d,e){Sza(b,c.commands,d,e)});
UH(this,"clickTrackingParams",function(){})};
Uza=function(a,b){UH(a,b.Kq(),function(c,d,e){b.Zs(c,d,e)})};
UH=function(a,b,c){a.Ma();a.j.get(b)&&g.dF(Error("Extension name "+b+" already registered"));a.j.set(b,c)};
Sza=function(a,b,c,d){b=void 0===b?[]:b;a.Ma();var e=[],f=[];b=g.u(b);for(var h=b.next();!h.done;h=b.next())h=h.value,g.V(h,Vza)||g.V(h,Wza)?e.push(h):f.push(h);e=g.u(e);for(b=e.next();!b.done;b=e.next())VH(a,b.value,c,d);f=g.u(f);for(e=f.next();!e.done;e=f.next())VH(a,e.value,c,d)};
VH=function(a,b,c,d){a.Ma();b.loggingUrls&&Xza(a,"loggingUrls",b.loggingUrls,c,d);b=g.u(Object.entries(b));for(var e=b.next();!e.done;e=b.next()){var f=g.u(e.value);e=f.next().value;f=f.next().value;"openPopupAction"===e?a.qd.get().Yt("innertubeCommand",{openPopupAction:f}):"confirmDialogEndpoint"===e?a.qd.get().Yt("innertubeCommand",{confirmDialogEndpoint:f}):Yza.hasOwnProperty(e)||Xza(a,e,f,c,d)}};
Xza=function(a,b,c,d,e){if((a=a.j.get(b))&&"function"===typeof a)try{a(c,d,e)}catch(f){g.dF(f)}else b=new g.AC("Unhandled field",b),g.eF(b)};
Zza=function(a,b,c){this.Nf=a;this.j=b;this.Oa=c};
WH=function(a){this.value=a};
XH=function(a){this.value=a};
YH=function(a){this.value=a};
$za=function(a){this.value=a};
aAa=function(a){this.value=a};
ZH=function(a){this.value=a};
$H=function(a){this.value=a};
bAa=function(){WH.apply(this,arguments)};
cAa=function(a){this.value=a};
dAa=function(a){this.value=a};
eAa=function(a){this.value=a};
fAa=function(a){this.value=a};
gAa=function(a){this.value=a};
aI=function(a){this.value=a};
bI=function(a){this.value=a};
cI=function(a){this.value=a};
dI=function(a){this.value=a};
eI=function(a){this.value=a};
fI=function(){WH.apply(this,arguments)};
gI=function(a){this.value=a};
hI=function(a){this.value=a};
iI=function(a){this.value=a};
jI=function(a){this.value=a};
kI=function(a){this.value=a};
hAa=function(a){this.value=a};
iAa=function(a){this.value=a};
lI=function(a){this.value=a};
jAa=function(a){this.value=a};
kAa=function(a){this.value=a};
lAa=function(a){this.value=a};
mAa=function(a){this.value=a};
mI=function(a){this.value=a};
nI=function(a){this.value=a};
oI=function(a){this.value=a};
pI=function(a){this.value=a};
nAa=function(a){this.value=a};
qI=function(a){this.value=a};
rI=function(a){this.value=a};
sI=function(a){this.value=a};
oAa=function(a){this.value=a};
tI=function(a){this.value=a};
uI=function(a){this.value=a};
vI=function(a){this.value=a};
wI=function(a){this.value=a};
xI=function(a){this.value=a};
yI=function(a){this.value=a};
zI=function(a){this.value=a};
AI=function(a){this.value=a};
BI=function(a){this.value=a};
pAa=function(a){this.value=a};
CI=function(a){this.value=a};
DI=function(a){this.value=a};
EI=function(a){this.value=a};
qAa=function(a){this.value=a};
FI=function(a){this.value=a};
GI=function(a){this.value=a};
HI=function(a){this.value=a};
II=function(){WH.apply(this,arguments)};
rAa=function(a){this.value=a};
JI=function(){WH.apply(this,arguments)};
KI=function(){WH.apply(this,arguments)};
sAa=function(){WH.apply(this,arguments)};
LI=function(){WH.apply(this,arguments)};
tAa=function(){WH.apply(this,arguments)};
uAa=function(a){this.value=a};
MI=function(a){this.value=a};
vAa=function(a){this.value=a};
OI=function(a,b,c){if(c&&!c.includes(a.layoutType))return!1;b=g.u(b);for(c=b.next();!c.done;c=b.next())if(!NI(a.Aa,c.value))return!1;return!0};
PI=function(){return""};
wAa=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}};
QI=function(a,b,c,d){d=void 0===d?!1:d;xb.call(this,a);this.Gk=c;this.fv=d;this.args=[];b&&this.args.push(b)};
RI=function(a,b,c,d){d=void 0===d?!1:d;xb.call(this,a);this.Gk=c;this.fv=d;this.args=[];b&&this.args.push(b)};
SI=function(a){var b=new Map;a.forEach(function(c){b.set(c.getType(),c)});
this.j=b};
NI=function(a,b){return a.j.has(b)};
TI=function(a,b){a=a.j.get(b);if(void 0!==a)return a.get()};
UI=function(a){return Array.from(a.j.keys())};
VI=function(a,b,c){if(c&&c!==a.slotType)return!1;b=g.u(b);for(c=b.next();!c.done;c=b.next())if(!NI(a.Aa,c.value))return!1;return!0};
yAa=function(a){var b;return(null==(b=xAa.get(a))?void 0:b.Fx)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
AAa=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:zAa.get(b.Ya)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);1!==b.slotPhysicalPosition&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=WI(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=g.u(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(WI(d.value));
b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=g.u(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(WI(a.value))}return c};
BAa=function(a,b){var c={type:b.layoutType,controlFlowManagerLayer:zAa.get(b.Ya)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(c.debugData={layoutId:b.layoutId});return c};
WI=function(a,b){var c={type:a.triggerType};null!=b&&(c.category=b);null!=a.triggeringSlotId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.triggeringSlotId);null!=a.triggeringLayoutId&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return c};
CAa=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=g.Rr(d||[],function(e){return AAa(a,e)}),b.debugData=Object.assign({},c&&0<c.length?{associatedSlotId:c}:{},0<d.length?{slots:d}:{}));
return b};
XI=function(a,b){return function(c){return DAa(EAa(a),b.slotId,b.slotType,b.slotPhysicalPosition,b.Ya,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,c.layoutId,c.layoutType,c.Ya)}};
DAa=function(a,b,c,d,e,f,h,l,m,n,p){return{adClientDataEntry:{slotData:AAa(a,{slotId:b,slotType:c,slotPhysicalPosition:d,Ya:e,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:l,Aa:new SI([])}),layoutData:BAa(a,{layoutId:m,layoutType:n,Ya:p,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Bb:new Map,Aa:new SI([]),ac:{}})}}};
ZI=function(a){this.Ca=a;a=Math.random();var b=this.Ca.get();b=g.YI(b.J.U().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&0<=b&&1>=b?b:0;this.j=a<b};
EAa=function(a){return a.j||a.Ca.get().J.U().L("html5_force_debug_data_for_client_tmp_logs")};
FAa=function(a,b,c,d){g.I.call(this);this.B=b;this.Ob=c;this.Ca=d;this.j=a(this,this,this,this,this);g.O(this,this.j);a=g.u(b);for(b=a.next();!b.done;b=a.next())g.O(this,b.value)};
$I=function(a,b){a.B.add(b)};
aJ=function(a,b){a.B.delete(b)};
GAa=function(a,b,c,d){kG(c,b,void 0,void 0,c.fv);c.Gk?a.Ob.Rl(d,c.Gk,b):kG("adsClientErrorMessage is missing.",b);bJ(a,b,!0)};
JAa=function(a,b,c){if(cJ(a.j,b))if(dJ(a.j,b).D=c?"filled":"not_filled",null===c){a.Ob.Lh("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",b);c=g.u(a.B);for(var d=c.next();!d.done;d=c.next())d.value.Dh(b);bJ(a,b,!1)}else{a.Ob.Lh("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",b,c);a.Ob.Lh("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c);var e,f=null!=(e=c.Ex)?e:TI(c.Aa,"metadata_type_sub_layouts");if(f)for(e=g.u(f),f=e.next();!f.done;f=e.next())a.Ob.Lh("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,f.value);
e=g.u(a.B);for(f=e.next();!f.done;f=e.next())f.value.Eh(b);if(cJ(a.j,b))if(dJ(a.j,b).G)bJ(a,b,!1);else{a.Ob.Lh("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",b,c);try{d=a.j;if(!dJ(d,b))throw new QI("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!d.ih.It.get(b.slotType))throw new QI("No LayoutRenderingAdapterFactory registered for slot of type: "+b.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY");if(0==c.layoutExitNormalTriggers.length&&
0==c.layoutExitSkipTriggers.length&&0==c.layoutExitMuteTriggers.length&&0==c.layoutExitUserInputSubmittedTriggers.length&&0==c.Tc.length)throw new QI("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");eJ(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);eJ(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);eJ(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);eJ(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",
c.layoutExitUserInputSubmittedTriggers);eJ(d,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Tc)}catch(n){n instanceof QI?a.nf(b,c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.nf(b,c,new QI("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");bJ(a,b,!0);return}dJ(a.j,b).K=!0;try{var h=a.j,l=dJ(h,b),m=h.ih.It.get(b.slotType).get().build(h.D,h.B,b,c);m.init();l.layout=c;if(l.C)throw new QI("Already had LayoutRenderingAdapter registered for slot",
void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");l.C=m;fJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",c.layoutExitNormalTriggers);fJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",c.layoutExitSkipTriggers);fJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",c.layoutExitMuteTriggers);fJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",c.layoutExitUserInputSubmittedTriggers);fJ(h,l,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",c.Tc)}catch(n){HAa(a,b);n instanceof QI?a.nf(b,
c,n,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):a.nf(b,c,new QI("Unexpected error: "+n,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");bJ(a,b,!0);return}a.Ob.Lh("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);d=g.u(a.B);for(h=d.next();!h.done;h=d.next())h.value.gh(b,c);HAa(a,b);IAa(a,b)}else a=a.Ca.get(),g.gJ(a.J.U())||hJ(a.J.U())||g.iJ(a.J.U())?a=!0:(kG("Composite VOD on legacy path."),a=!1),a&&kG("slot is unscheduled after been fulfilled.",b,
c)}};
KAa=function(a,b,c){"core"!==b.Ya&&a.Ob.Lh("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",b,c,void 0)};
LAa=function(a,b,c){a.Ob.Lh("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c,void 0);a=g.u(a.B);for(var d=a.next();!d.done;d=a.next())d.value.gh(b,c)};
MAa=function(a,b,c){a=g.u(a.B);for(var d=a.next();!d.done;d=a.next())d.value.jg(b,c)};
NAa=function(a,b,c){a.Ob.Lh("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c,void 0);a=g.u(a.B);for(var d=a.next();!d.done;d=a.next())d.value.vc(b,c)};
OAa=function(a,b,c,d){a.Ob.Lh(yAa(d),b,c,void 0);a=g.u(a.B);for(var e=a.next();!e.done;e=a.next())e.value.Oc(b,c,d)};
HAa=function(a,b){if(cJ(a.j,b)){dJ(a.j,b).K=!1;var c=jJ;b=dJ(a.j,b);var d=[].concat(g.qa(b.Z));taa(b.Z);c(a,d)}};
jJ=function(a,b){b.sort(function(f,h){function l(m){kG("TriggerCategoryOrder enum does not contain trigger category: "+m)}
return f.category===h.category?f.trigger.triggerId.localeCompare(h.trigger.triggerId):wAa(f.category,l)-wAa(h.category,l)});
var c=new Map;b=g.u(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,cJ(a.j,d.slot))if(dJ(a.j,d.slot).K)dJ(a.j,d.slot).Z.push(d);else{a.Ob.pM("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.u(PAa);for(d=b.next();!d.done;d=b.next())e=g.u(d.value),d=e.next().value,e=e.next().value,(d=c.get(d))&&QAa(a,d,e);(b=c.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&RAa(a,b);(b=c.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&SAa(a,
b);(c=c.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&TAa(a,c)};
QAa=function(a,b,c){b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.layout&&UAa(a.j,d.slot)&&VAa(a,d.slot,d.layout,c)};
RAa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())bJ(a,c.value.slot,!1)};
SAa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a:switch(dJ(a.j,c.slot).D){case "not_filled":var d=!0;break a;default:d=!1}d&&(a.Ob.Ij("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",c.slot),a.j.vD(c.slot))}};
TAa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;a.Ob.Ij("ADS_CLIENT_EVENT_TYPE_ENTER_SLOT_REQUESTED",c.slot);for(var d=g.u(a.B),e=d.next();!e.done;e=d.next())e.value.Ch(c.slot);try{var f=a.j,h=c.slot,l=dJ(f,h);if(!l)throw new RI("Got enter request for unknown slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!l.B)throw new RI("Tried to enter slot with no assigned slotAdapter",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");if("scheduled"!==l.j)throw new RI("Tried to enter a slot from stage: "+
l.j,void 0,"ADS_CLIENT_ERROR_MESSAGE_ILLEGAL_SLOT_STATE");if(kJ(l))throw new RI("Got enter request for already active slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_COLLISION");for(var m=g.u(lJ(f,h.slotType+"_"+h.slotPhysicalPosition).values()),n=m.next();!n.done;n=m.next()){var p=n.value;if(l!==p&&kJ(p))throw new RI("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 RI&&q.Gk?(a.Ob.Rl("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED",
q.Gk,c.slot),kG(q,c.slot,mJ(a.j,c.slot),void 0,q.fv)):(a.Ob.Rl("ADS_CLIENT_ERROR_TYPE_ENTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c.slot),kG(q,c.slot));bJ(a,c.slot,!0);continue}c=dJ(a.j,c.slot);"scheduled"!==c.j&&nJ(c.slot,c.j,"enterSlot");c.j="enter_requested";c.B.fI()}};
IAa=function(a,b){if(cJ(a.j,b)&&kJ(dJ(a.j,b))&&mJ(a.j,b)&&!UAa(a.j,b)){var c;a.Ob.Lh("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",b,null!=(c=mJ(a.j,b))?c:void 0);a=dJ(a.j,b);"entered"!==a.j&&nJ(a.slot,a.j,"enterLayoutForSlot");a.j="rendering";a.C.startRendering(a.layout)}};
VAa=function(a,b,c,d){if(cJ(a.j,b)){var e=a.Ob,f=e.Lh,h;var l=(null==(h=xAa.get(d))?void 0:h.tx)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";f.call(e,l,b,c);a=dJ(a.j,b);"rendering"!==a.j&&nJ(a.slot,a.j,"exitLayout");a.j="rendering_stop_requested";a.C.Qe(c,d)}};
bJ=function(a,b,c){if(cJ(a.j,b)){a:switch(dJ(a.j,b).j){case "exit_requested":var d=!0;break a;default:d=!1}if(!d)a:switch(dJ(a.j,b).j){case "rendering_stop_requested":d=!0;break a;default:d=!1}if(d&&(dJ(a.j,b).G=!0,!c))return;if(kJ(dJ(a.j,b)))dJ(a.j,b).G=!0,WAa(a,b,c);else{a:switch(dJ(a.j,b).D){case "fill_requested":c=!0;break a;default:c=!1}if(c)dJ(a.j,b).G=!0,cJ(a.j,b)&&(a.Ob.Ij("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=dJ(a.j,b),b.D="fill_cancel_requested",b.N.oN());else{c=
mJ(a.j,b);(d=a.Ca.get().J.U().experiments.jb("h5_enable_layout_unscheduling_events"))&&(c?a.jg(b,c):kG(Error("Layout is null for LayoutUnscheduled event."),b,c,void 0,!1));a.Ob.Ij("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=dJ(a.j,b),f=b.slotEntryTrigger,h=e.Ba.get(f.triggerId);h&&(h.Al(f),e.Ba.delete(f.triggerId));f=g.u(b.slotFulfillmentTriggers);for(h=f.next();!h.done;h=f.next()){h=h.value;var l=e.qa.get(h.triggerId);l&&(l.Al(h),e.qa.delete(h.triggerId))}f=g.u(b.slotExpirationTriggers);
for(h=f.next();!h.done;h=f.next())if(h=h.value,l=e.Y.get(h.triggerId))l.Al(h),e.Y.delete(h.triggerId);null!=e.layout&&(f=e.layout,oJ(e,f.layoutExitNormalTriggers),oJ(e,f.layoutExitSkipTriggers),oJ(e,f.layoutExitMuteTriggers),oJ(e,f.layoutExitUserInputSubmittedTriggers),oJ(e,f.Tc));e.N=void 0;null!=e.B&&(e.B.release(),e.B=void 0);null!=e.C&&(e.C.release(),e.C=void 0);e=a.j;dJ(e,b)&&(e=lJ(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);a.Ob.Ij("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",
b);a=g.u(a.B);for(e=a.next();!e.done;e=a.next())e=e.value,e.Fh(b),c&&!d&&e.jg(b,c)}}}};
WAa=function(a,b,c){if(cJ(a.j,b)&&kJ(dJ(a.j,b))){var d=mJ(a.j,b);if(d&&UAa(a.j,b))VAa(a,b,d,c?"error":"abandoned");else{a.Ob.Ij("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",b);try{var e=dJ(a.j,b);if(!e)throw new RI("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");"enter_requested"!==e.j&&"entered"!==e.j&&"rendering"!==e.j&&nJ(e.slot,e.j,"exitSlot");e.j="exit_requested";if(void 0===e.B)throw e.j="scheduled",new RI("Cannot exit slot because adapter is not defined",
void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");e.B.iI()}catch(f){f instanceof RI&&f.Gk?(a.Ob.Rl("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",f.Gk,b),kG(f,b,void 0,void 0,f.fv)):(a.Ob.Rl("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),kG(f,b))}}}};
XAa=function(a){this.slot=a;this.Ba=new Map;this.qa=new Map;this.Y=new Map;this.ra=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"};
kJ=function(a){return"enter_requested"===a.j||a.isActive()};
YAa=function(a,b,c,d,e,f){g.I.call(this);this.ih=a;this.C=b;this.G=c;this.D=d;this.B=e;this.Ca=f;this.j=new Map};
lJ=function(a,b){return(a=a.j.get(b))?a:new Map};
dJ=function(a,b){return lJ(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)};
ZAa=function(a){var b=[];a.j.forEach(function(c){c=g.u(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
cJ=function(a,b){return null!=dJ(a,b)};
UAa=function(a,b){a=dJ(a,b);if(b=null!=a.layout)a:switch(a.j){case "rendering":case "rendering_stop_requested":b=!0;break a;default:b=!1}return b};
mJ=function(a,b){(a=dJ(a,b))?null!=a.layout&&!a.layout&&kG("Unexpected empty layout",b):kG("Unexpected undefined slotState",b);return(null==a?void 0:a.layout)||null};
bBa=function(a,b,c){if(0==c.length)throw new RI("No "+$Aa.get(b)+" triggers found for slot.",void 0,aBa(b));c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.ih.Mm.get(d.triggerType))throw new RI("No trigger adapter registered for "+b+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
aBa=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"}};
eJ=function(a,b,c){c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,!a.ih.Mm.get(d.triggerType))throw new QI("No trigger adapter registered for "+$Aa.get(b)+" trigger of type: "+d.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");};
fJ=function(a,b,c,d){d=g.u(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=a.ih.Mm.get(e.triggerType);f.bl(c,e,b.slot,b.layout?b.layout:null);b.ra.set(e.triggerId,f)}};
oJ=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.ra.get(c.triggerId);d&&(d.Al(c),a.ra.delete(c.triggerId))}};
nJ=function(a,b,c){kG("Slot stage was "+b+" when calling method "+c,a)};
cBa=function(a){return pJ(a.RA).concat(pJ(a.Mm)).concat(pJ(a.Qs)).concat(pJ(a.ou)).concat(pJ(a.It))};
pJ=function(a){var b=[];a=g.u(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.eh&&b.push(c);return b};
dBa=function(a){g.I.call(this);var b=this;this.I8=a;this.instance=null;this.addOnDisposeCallback(function(){g.vb(b.instance);b.instance=null})};
qJ=function(a){return new dBa(a)};
fBa=function(a){g.I.call(this);this.Wg=a;this.j=eBa(this)};
eBa=function(a){var b=new FAa(function(c,d,e,f){return new YAa(a.Wg.ih,c,d,e,f,a.Wg.Ca)},new Set(cBa(a.Wg.ih).concat(a.Wg.listeners)),a.Wg.Ob,a.Wg.Ca);
g.O(a,b);return b};
rJ=function(a){this.j=a};
sJ=function(a,b,c){Sza(a.j(),b,c)};
tJ=function(a,b,c,d){(a=a.j())||kG("Could not initiate a command router instance.");VH(a,b,c,d)};
uJ=function(){this.listeners=new Set};
vJ=function(){};
hBa=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/"+Ue(e)+".js":"";e=b.document;var l={};d&&(l._scs_=d);l._bgu_=h;l._bgp_=f;l._li_="v_h.3.0.0.0";c&&(l._upb_=c);(c=b.GoogleTyFxhY)&&"function"==typeof c.push||(c=b.GoogleTyFxhY=[]);c.push(l);c=jf(e).createElement("SCRIPT");c.type="text/javascript";c.async=!0;a=Iba(gBa,Ue(a)+".js");g.Re(c,a);(a=(b.GoogleTyFxhYEET||{})[c.src])?a():e.getElementsByTagName("head")[0].appendChild(c)}};
iBa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.B=c;this.Se=d;this.Ca=e;this.j=null};
kBa=function(a,b,c,d){a.j&&kG("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.FB?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",h=a.B.get(),l=a.slot.slotId,m=XI(a.Se.get(),{slotId:a.slot.slotId,slotType:a.slot.slotType,slotPhysicalPosition:a.slot.slotPhysicalPosition,Ya:a.slot.Ya,slotEntryTrigger:a.slot.slotEntryTrigger,slotFulfillmentTriggers:a.slot.slotFulfillmentTriggers,slotExpirationTriggers:a.slot.slotExpirationTriggers}),
n=wJ(h.B.get(),f,l),p={layoutId:n,layoutType:f,Ya:"core"};e={layoutId:n,layoutType:f,Bb:new Map,layoutExitNormalTriggers:[new jBa(h.j,l)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"core",Aa:new SI([new qAa(e)]),ac:m(p)};JAa(a.callback,a.slot,e)},function(e){a.j=null;
c&&c();e instanceof og||GAa(a.callback,a.slot,new RI(e,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})};
lBa=function(a){if(null==a.j)a.callback.dK(a.slot);else try{a.j.cancel(),a.j=null,a.callback.dK(a.slot)}catch(b){a.j=null,GAa(a.callback,a.slot,new RI(b,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}};
xJ=function(a,b,c,d){!a&&(void 0===c?0:c)&&g.eF(Error("Player URL validator detects invalid url. "+(void 0===d?"":d)+": "+b));return a};
yJ=function(a,b,c){return b&&b.test(a)||mBa&&c&&c.test(a)?!0:!1};
oBa=function(a){return(a=nBa&&nBa.exec(a))?a[0]:""};
zJ=function(a){var b=void 0===b?!1:b;return xJ(yJ(a,pBa,null),a,b,"Trusted Stream URL")};
g.AJ=function(a){var b=void 0===b?!1:b;return xJ(yJ(a,qBa,null),a,b,"Trusted Image URL")};
sBa=function(a){var b=void 0===b?!1:b;return xJ(yJ(a,rBa,null),a,b,"Trusted Promoted Video Domain URL")};
uBa=function(a){var b=void 0===b?!1:b;return xJ(yJ(a,tBa,null),a,b,"Drm Licensor URL")};
wBa=function(a,b){b=void 0===b?!1:b;return xJ(yJ(a,vBa,null),a,b,"Captions URL")};
xBa=function(a){a=new g.xp(a);g.yp(a,document.location.protocol);g.zp(a,document.location.hostname);document.location.port&&g.Ap(a,document.location.port);return a.toString()};
BJ=function(a){a=new g.xp(a);g.yp(a,document.location.protocol);return a.toString()};
g.DJ=function(a,b,c){c=void 0===c?{}:c;this.start=a;this.end=b;this.active=!0;this.color="";this.Wk=0;this.B=yBa++;this.id=c.id||"";this.priority=c.priority||9;this.visible=c.visible||!1;this.style=c.style||CJ.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.Sr(d.thumbnails,function(e){return g.AJ(e.url)})}):null;
this.visible=this.visible;this.style=this.style;this.start=this.start};
zBa=function(a){return-0x8000000000000===a?"BEFORE_MEDIA_START":0===a?"MEDIA_START":0x7ffffffffffff===a?"MEDIA_END":0x8000000000000===a?"AFTER_MEDIA_END":a.toString()};
ABa=function(a,b){switch(a.style){case CJ.CHAPTER_MARKER:return b?8:5;case CJ.AD_MARKER:return 6;case CJ.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}};
g.BBa=function(a,b){return a.start-b.start||a.priority-b.priority||a.B-b.B};
g.EJ=function(a){return"crn_"+a};
g.FJ=function(a){return"crx_"+a};
CBa=function(a,b,c,d,e,f,h,l,m){this.slot=b;this.B=c;this.Oa=h;this.Ha=l;this.Uc=m;this.j=new iBa(a,b,d,e,f)};
DBa=function(a){var b;null==(b=a.Uc)||b.get().Ut(TI(a.slot.Aa,"metadata_type_cue_point").identifier)};
EBa=function(a,b,c,d,e,f){this.slot=b;this.B=c;this.j=new iBa(a,b,d,e,f)};
FBa=function(a,b){this.callback=a;this.slot=b};
GBa=function(a,b){return VI(a,b.Kd,b.slotType)?!0:!1};
HBa=function(){};
GJ=function(a,b,c,d,e,f,h){this.j=a;this.B=b;this.Se=c;this.Ca=d;this.Oa=e;this.Ha=f;this.Uc=h};
HJ=function(){};
IBa=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};
KBa=function(a){if(TI(a.slot.Aa,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var b=JBa(a,a.slot);IJ(a.C.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[b]})}};
JBa=function(a,b){var c=JJ(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=null!=h.triggeringSlotId&&h.triggeringSlotId===f?h.clone(c):h}else f=void 0;return e.call(d,{},a,{slotId:c,slotEntryTrigger:f,slotFulfillmentTriggers:LBa(b.slotId,c,b.slotFulfillmentTriggers),slotExpirationTriggers:LBa(b.slotId,c,b.slotExpirationTriggers)})};
LBa=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next()){var f=d,h=f.push;var l=a;var m=b;e=e.value;l=null!=e.triggeringSlotId&&e.triggeringSlotId===l?e.clone(m):e;h.call(f,l)}return d};
g.KJ=function(a,b){for(var c=g.u(Object.keys(b)),d=c.next(),e={};!d.done;e={placeholder:void 0},d=c.next())d=d.value,e.placeholder=b[d],a=a.replace(new RegExp("\\$"+d,"gi"),function(f){return function(){return f.placeholder}}(e));
return a};
MBa=function(a,b,c){this.j=a;this.slot=b;this.layout=c};
NBa=function(a,b,c){b.layoutId!==a.layout.layoutId?a.j.nf(a.slot,b,new QI("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()};
LJ=function(a,b,c,d){g.wF.call(this);this.callback=a;this.C=d;this.j=[];this.B=new MBa(a,b,c)};
NJ=function(a,b,c,d,e,f,h){e=TI(c.Aa,e);a=MJ(a);var l=Ld(function(){d.vc(b,c)});
h.push(f(e,a,c.layoutId,{adsClientData:c.ac},function(){l()}))};
OJ=function(a,b,c,d,e,f,h,l,m){if(b===a)if(m){if(m===l.layoutId){a:{a=g.u(c.keys());for(b=a.next();!b.done;b=a.next())if(b=b.value,"SLOT_TYPE_PLAYER_BYTES"===b.slotType&&f===c.get(b).layoutId){c=!0;break a}c=!1}c?d.J.sendVideoStatsEngageEvent(1,void 0,2):e?e():kG("Tried to call engagePingCallback but it is null",h,l)}}else kG("Companion AdUxClick received without a layoutId",h,l)};
PJ=function(a){var b,c,d,e,f;return!(null==(b=a.get("active_view_viewable"))||!b.length)||!(null==(c=a.get("active_view_measurable"))||!c.length)||!(null==(d=a.get("active_view_fully_viewable_audible_half_duration"))||!d.length)||!(null==(e=a.get("audio_audible"))||!e.length)||!(null==(f=a.get("audio_measurable"))||!f.length)};
QJ=function(a){var b,c;return null!=(c=null==a?void 0:null==(b=a.activeViewTracking)?void 0:b.trafficType)?c:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};
RJ=function(a){var b,c;return new Map([["impression",a.impressionPings||[]],["error",a.errorPings||[]],["mute",a.mutePings||[]],["unmute",a.unmutePings||[]],["pause",a.pausePings||[]],["rewind",a.rewindPings||[]],["resume",a.resumePings||[]],["skip",a.skipPings||[]],["swipe",a.swipePings||[]],["close",a.closePings||[]],["progress",a.progressPings||[]],["clickthrough",a.clickthroughPings||[]],["fullscreen",a.fullscreenPings||[]],["active_view_viewable",a.activeViewViewablePings||[]],["active_view_measurable",
a.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",a.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",(null==(b=a.activeViewTracking)?void 0:b.activeViewAudioAudiblePings)||[]],["audio_measurable",(null==(c=a.activeViewTracking)?void 0:c.activeViewAudioMeasurablePings)||[]],["end_fullscreen",a.endFullscreenPings||[]],["channel_clickthrough",a.channelClickthroughPings||[]],["abandon",a.abandonPings||[]],["start",a.startPings||[]],["first_quartile",
a.firstQuartilePings||[]],["midpoint",a.secondQuartilePings||[]],["third_quartile",a.thirdQuartilePings||[]],["complete",a.completePings||[]],["unmuted_impression",a.unmutedImpressionPings||[]],["unmuted_error",a.unmutedErrorPings||[]],["unmuted_mute",a.unmutedMutePings||[]],["unmuted_unmute",a.unmutedUnmutePings||[]],["unmuted_pause",a.unmutedPausePings||[]],["unmuted_resume",a.unmutedResumePings||[]],["unmuted_close",a.unmutedClosePings||[]],["unmuted_progress",a.unmutedProgressPings||[]],["unmuted_clickthrough",
a.unmutedClickthroughPings||[]],["unmuted_fullscreen",a.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",a.unmutedEndFullscreenPings||[]],["unmuted_abandon",a.unmutedAbandonPings||[]],["unmuted_start",a.unmutedStartPings||[]],["unmuted_first_quartile",a.unmutedFirstQuartilePings||[]],["unmuted_midpoint",a.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",a.unmutedThirdQuartilePings||[]],["unmuted_complete",a.unmutedCompletePings||[]],["unmuted_skip",a.unmutedSkipPings||[]]])};
OBa=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}};
SJ=function(a,b,c,d,e){e=void 0===e?null:e;this.C=a;this.Oa=b;this.layoutId=d;this.D=0;this.K=null;this.G=void 0;this.j=new Set;this.B=Array.from(this.C.get("progress")||[]);this.B.sort(function(f,h){return(f.offsetMilliseconds||0)-(h.offsetMilliseconds||0)});
this.N={adPlacementConfig:c,dZ:e}};
TJ=function(){return["metadata_type_ad_placement_config"]};
MJ=function(a){var b=a.Oa.get();return UJ(b,a.N)};
VJ=function(a,b,c){for(c=void 0===c?!1:c;a.D<a.B.length;){var d=a.B[a.D];if(d.offsetMilliseconds<=b||c)PBa(a,"progress",[d]),a.D++;else break}};
WJ=function(a,b){return a.j.has(b)};
XJ=function(a){return a.B.every(function(b){return b.hasOwnProperty("offsetMilliseconds")})};
QBa=function(a,b,c){a.K=b;a.G=c};
PBa=function(a,b,c){var d;RBa(a.Oa.get(),a.layoutId,b,c,null!=(d=a.K)?d:void 0,a.G)};
SBa=function(a,b,c,d,e){vF.call(this,"banner-image",a,b,c,d,e)};
TBa=function(a,b,c,d,e,f,h,l){LJ.call(this,a,b,c,d);this.Oa=e;this.Ec=f;this.K=l;this.eh=!0;this.D=null;this.G=TI(c.Aa,"metadata_type_linked_player_bytes_layout_id");$I(this.Ec(),this);this.adPlacementConfig=TI(c.Aa,"metadata_type_ad_placement_config");this.Xa=new SJ(c.Bb,this.Oa,this.adPlacementConfig,c.layoutId)};
UBa=function(){var a=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];TJ().forEach(function(b){a.push(b)});
return{Kd:a,Fe:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
VBa=function(a,b,c,d,e){vF.call(this,"action-companion",a,b,c,d,e)};
WBa=function(a,b,c,d,e,f,h,l){LJ.call(this,a,b,c,d);this.Oa=e;this.Ec=f;this.K=l;this.eh=!0;this.D=null;this.G=TI(c.Aa,"metadata_type_linked_player_bytes_layout_id");$I(this.Ec(),this);a=TI(c.Aa,"metadata_type_ad_placement_config");this.Xa=new SJ(c.Bb,this.Oa,a,c.layoutId)};
XBa=function(){var a=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];TJ().forEach(function(b){a.push(b)});
return{Kd:a,Fe:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
YBa=function(a,b,c,d,e){vF.call(this,"image-companion",a,b,c,d,e)};
ZBa=function(a,b,c,d,e,f,h,l){LJ.call(this,a,b,c,d);this.Oa=e;this.Ec=f;this.K=l;this.eh=!0;this.D=null;this.G=TI(c.Aa,"metadata_type_linked_player_bytes_layout_id");$I(this.Ec(),this);a=TI(c.Aa,"metadata_type_ad_placement_config");this.Xa=new SJ(c.Bb,this.Oa,a,c.layoutId)};
$Ba=function(){var a=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];TJ().forEach(function(b){a.push(b)});
return{Kd:a,Fe:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}};
aCa=function(a,b,c,d,e){vF.call(this,"shopping-companion",a,b,c,d,e)};
bCa=function(a,b,c,d,e,f,h,l){LJ.call(this,a,b,c,d);this.Oa=e;this.Ec=f;this.K=l;this.eh=!0;this.D=null;this.G=TI(c.Aa,"metadata_type_linked_player_bytes_layout_id");$I(this.Ec(),this);a=TI(c.Aa,"metadata_type_ad_placement_config");this.Xa=new SJ(c.Bb,this.Oa,a,c.layoutId)};
cCa=function(){var a=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];TJ().forEach(function(b){a.push(b)});
return{Kd:a,Fe:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}};
dCa=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_PERCENT"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.percent)};
eCa=function(a){var b;if("AD_VIDEO_PROGRESS_KIND_MILLISECONDS"!==(null==(b=a.adVideoOffset)?void 0:b.kind))return!1;var c;return null!=(null==(c=a.adVideoOffset)?void 0:c.milliseconds)&&!isNaN(Number(a.adVideoOffset.milliseconds))};
fCa=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.u(b);for(b=a.next();!b.done;b=a.next())switch(b=b.value,c=void 0,null==(c=b.adVideoOffset)?void 0:c.kind){case "AD_VIDEO_PROGRESS_KIND_PERCENT":dCa(b)?this.B.push(b):kG("Invalid AdVideoProgressPercentCommand");break;case "AD_VIDEO_PROGRESS_KIND_MILLISECONDS":eCa(b)?this.j.push(b):kG("Invalid AdVideoProgressMillisecondsCommand");break;default:kG("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)})};
gCa=function(a,b,c,d,e,f){LJ.call(this,a,b,c,d);this.Oa=e;this.Ec=f;this.eh=!0;$I(this.Ec(),this);a=TI(c.Aa,"metadata_type_ad_placement_config");this.Xa=new SJ(c.Bb,this.Oa,a,c.layoutId)};
hCa=function(){var a=["metadata_type_action_companion_ad_renderer"];TJ().forEach(function(b){a.push(b)});
return{Kd:a,Fe:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
iCa=function(a,b,c,d,e,f,h){this.callback=a;this.slot=b;this.layout=c;this.Ha=d;this.Oa=e;this.Ca=f;this.xb=h;this.j=!1;a=TI(c.Aa,"metadata_type_ad_placement_config");this.Xa=new SJ(c.Bb,this.Oa,a,c.layoutId)};
jCa=function(a,b,c,d,e,f){LJ.call(this,a,b,c,d);this.Ha=e;this.G=f;this.D=!1};
kCa=function(a,b,c,d,e){vF.call(this,"top-banner-image-text-icon-buttoned",a,b,c,d,e)};
lCa=function(a,b,c,d,e,f){LJ.call(this,a,b,c,d);this.Oa=e;this.Ec=f;this.eh=!0;$I(this.Ec(),this);a=TI(c.Aa,"metadata_type_ad_placement_config");this.Xa=new SJ(c.Bb,this.Oa,a,c.layoutId)};
mCa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];TJ().forEach(function(b){a.push(b)});
return{Kd:a,Fe:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
YJ=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;vF.call(this,"ad-action-interstitial",a,b,c,d);this.interactionLoggingClientData=d;this.nS=e;this.dL=f};
ZJ=function(a,b,c,d,e){LJ.call(this,a,b,c,d);a=TI(c.Aa,"metadata_type_ad_placement_config");this.Xa=new SJ(c.Bb,e,a,c.layoutId)};
nCa=function(){var a=["metadata_type_ad_action_interstitial_renderer"];TJ().forEach(function(b){a.push(b)});
return{Kd:a,Fe:["LAYOUT_TYPE_ENDCAP"]}};
$J=function(a,b){return OI(a,b.Kd,b.Fe)?!0:!1};
aK=function(a,b,c){this.B=a;this.C=b;this.j=c};
oCa=function(a,b,c,d,e){vF.call(this,"ads-engagement-panel",a,b,c,d,e)};
pCa=function(a,b,c,d,e,f,h,l){LJ.call(this,a,b,c,d);this.Oa=e;this.Ec=f;this.K=l;this.eh=!0;this.D=null;this.G=TI(c.Aa,"metadata_type_linked_player_bytes_layout_id");$I(this.Ec(),this);a=TI(c.Aa,"metadata_type_ad_placement_config");this.Xa=new SJ(c.Bb,this.Oa,a,c.layoutId)};
qCa=function(){var a=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];TJ().forEach(function(b){a.push(b)});
return{Kd:a,Fe:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
rCa=function(a,b,c,d,e){vF.call(this,"panel-text-icon-image-tiles-button",a,b,c,d,e)};
sCa=function(a,b,c,d,e,f,h,l){LJ.call(this,a,b,c,d);this.Oa=e;this.Ec=f;this.K=l;this.eh=!0;this.D=null;this.G=TI(c.Aa,"metadata_type_linked_player_bytes_layout_id");$I(this.Ec(),this);a=TI(c.Aa,"metadata_type_ad_placement_config");this.Xa=new SJ(c.Bb,this.Oa,a,c.layoutId)};
tCa=function(){var a=["metadata_type_panel_text_icon_image_tiles_button_layout_view_model","metadata_type_linked_player_bytes_layout_id"];TJ().forEach(function(b){a.push(b)});
return{Kd:a,Fe:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}};
uCa=function(a,b,c,d,e,f,h,l){LJ.call(this,a,b,c,d);this.Oa=e;this.Ec=f;this.K=l;this.eh=!0;this.D=null;this.G=TI(c.Aa,"metadata_type_linked_player_bytes_layout_id");$I(this.Ec(),this);this.adPlacementConfig=TI(c.Aa,"metadata_type_ad_placement_config");this.Xa=new SJ(c.Bb,this.Oa,this.adPlacementConfig,c.layoutId)};
vCa=function(){var a=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];TJ().forEach(function(b){a.push(b)});
return{Kd:a,Fe:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}};
wCa=function(a,b,c,d,e){this.yc=a;this.Oa=b;this.Ec=c;this.j=d;this.xb=e};
xCa=function(a,b,c){vF.call(this,"player-underlay",a,{},b,c);this.interactionLoggingClientData=c};
bK=function(a,b,c,d){LJ.call(this,a,b,c,d)};
yCa=function(a){this.yc=a};
zCa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.gk=e;a=TI(this.layout.Aa,"metadata_type_ad_placement_config");this.Xa=new SJ(c.Bb,this.Oa,a,c.layoutId)};
ACa=function(){var a=["metadata_type_client_forecasting_ad_renderer"];TJ().forEach(function(b){a.push(b)});
return{Kd:a,Fe:["LAYOUT_TYPE_FORECASTING"]}};
BCa=function(a,b,c,d,e){this.callback=a;this.slot=b;this.layout=c;this.Oa=d;this.gk=e;a=TI(this.layout.Aa,"metadata_type_ad_placement_config");this.Xa=new SJ(c.Bb,this.Oa,a,c.layoutId)};
cK=function(a,b,c,d){this.Ca=a;this.Oa=b;this.gk=c;this.xb=d};
CCa=function(a,b){return NI(a.Aa,"metadata_type_ad_info_ad_metadata")?TI(a.Aa,"metadata_type_ad_info_ad_metadata"):b?{channelId:b.Bl,channelThumbnailUrl:b.profilePicture,channelTitle:b.author,videoTitle:b.title}:(kG("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})};
DCa=function(a,b){return NI(a.Aa,"metadata_ad_video_is_listed")?TI(a.Aa,"metadata_ad_video_is_listed"):b?b.isListed:(kG("No layout metadata nor AdPlayback specified for ad video isListed"),!1)};
ECa=function(a,b,c,d){vF.call(this,"player-overlay-layout",a,{},c,d);this.videoAdDurationSeconds=b;this.interactionLoggingClientData=d};
FCa=function(a,b,c,d,e,f,h,l){LJ.call(this,a,b,c,d);this.Ha=e;this.Oa=f;this.K=h;this.G=l;this.D=!1;this.N=TI(this.layout.Aa,"metadata_type_linked_player_bytes_layout_id")};
GCa=function(a){if(a.layout.renderingContent){var b;return null==(b=TI(a.layout.Aa,"metadata_type_player_bytes_callback_ref"))?void 0:b.current}return TI(a.layout.Aa,"metadata_type_player_bytes_callback")};
dK=function(a,b,c,d,e,f,h,l){LJ.call(this,a,b,c,d);this.Ha=e;this.Oa=f;this.K=h;this.G=l;this.D=!1;this.N=TI(this.layout.Aa,"metadata_type_linked_player_bytes_layout_id")};
HCa=function(){return{Kd:["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"],Fe:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]}};
ICa=function(a){if(a.layout.renderingContent){var b;return null==(b=TI(a.layout.Aa,"metadata_type_player_bytes_callback_ref"))?void 0:b.current}return TI(a.layout.Aa,"metadata_type_player_bytes_callback")};
JCa=function(a,b,c){vF.call(this,"ad-message",a,void 0,b,c)};
eK=function(a,b,c,d,e,f){LJ.call(this,c,a,b,d);this.Ha=e;this.Ca=f};
KCa=function(){return{Kd:["metadata_type_valid_ad_message_renderer"],Fe:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}};
hK=function(a,b,c,d,e,f,h,l,m){return $J(c,HCa())||"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===c.layoutType&&void 0!==g.V(c.renderingContent,fK)?new dK(a,b,c,d,e,f,h,l):$J(c,{Kd:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Fe:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===c.layoutType&&void 0!==g.V(c.renderingContent,LCa)?
new FCa(a,b,c,d,e,f,h,l):$J(c,nCa())||"LAYOUT_TYPE_ENDCAP"===c.layoutType&&void 0!==g.V(c.renderingContent,gK)?new ZJ(a,b,c,d,f):$J(c,KCa())?new eK(b,c,a,d,e,m):$J(c,{Kd:["metadata_type_instream_ad_player_overlay_renderer"],Fe:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new jCa(a,b,c,d,e,l):null};
MCa=function(a,b,c,d,e,f){this.yc=a;this.Ha=b;this.Oa=c;this.B=d;this.j=e;this.Ca=f};
NCa=function(a){return!a.HA.isPlaying()&&a.state.isPlaying()};
iK=function(a,b,c){return a<b?!1:null!=c?c<=b:a<=b+1};
OCa=function(a,b,c,d,e,f,h){this.callback=a;this.slot=b;this.layout=c;this.Ha=d;this.Oa=e;this.Ca=f;this.xb=h;this.j=!1;a=TI(c.Aa,"metadata_type_ad_placement_config");this.Xa=new SJ(c.Bb,this.Oa,a,c.layoutId)};
PCa=function(a,b){a.j||(a.Xa.Vb(b),a.j=!0)};
QCa=function(a,b,c,d){this.Ha=a;this.Oa=b;this.Ca=c;this.xb=d};
RCa=function(a,b){var c=new Map;a=g.u(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if("LAYOUT_TYPE_MEDIA"===d.layoutType)var e="v";else"LAYOUT_TYPE_MEDIA_BREAK"===d.layoutType?(e=TI(d.Aa,"metadata_type_linked_in_player_layout_type"),e="LAYOUT_TYPE_ENDCAP"===e||"LAYOUT_TYPE_VIDEO_INTERSTITIAL"===e?"e":"LAYOUT_TYPE_SURVEY"===e?"s":"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"===e?"si":"u"):e="u";c.set(d.layoutId,e);"u"===e&&(e={},jK(b,"uct",(e.c=d.layoutId,e)))}a=b.uh();kK={contentCpn:a,As:c};
d={};jK(b,"acc",(d.ct=c.size,d.c=a,d))};
SCa=function(){kK={contentCpn:"",As:new Map}};
lK=function(a){var b;return null!=(b=kK.As.get(a))?b:"u"};
mK=function(a,b,c){jK(a,b,c);TCa(a)};
UCa=function(a){var b=a.cpn,c=a.Nf;a=a.Ep;var d=c.uh(),e={};mK(c,"ce",(e.ec=b,e.ia=b!==d,e.r=kK.As.has(b),e.is=a,e.ctp=lK(b),e))};
TCa=function(a){if(a.uh()!==kK.contentCpn){var b={};jK(a,"ccm",(b.c=kK.contentCpn,b))}};
VCa=function(a){var b=a.cpn,c=a.Nf;a=a.Ep;var d=c.uh(),e={};mK(c,"cx",(e.xc=b,e.ia=b!==d,e.r=kK.As.has(b),e.is=a,e.ctp=lK(b),e))};
WCa=function(a){this.Nf=a};
nK=function(a){var b=[];if(a){a=g.u(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;void 0!==d&&(d="boolean"===typeof d?""+ +d:(""+d).replace(/[:,=]/g,"_"),b.push(c+"."+d))}}return b.join(";")};
oK=function(a,b,c){b=void 0===b?{}:b;this.errorCode=a;this.details=b;this.severity=void 0===c?0:c};
pK=function(a){return 1===a||2===a};
qK=function(a,b){b=void 0===b?0:b;if(a instanceof oK)return a;a=a&&a instanceof Error?a:Error(""+a);pK(b)?g.dF(a):g.eF(a);return new oK(1===b?"player.fatalexception":"player.exception",{name:""+a.name,message:""+a.message},b)};
g.YCa=function(a){return(a=XCa[a.toString()])?a:"LICENSE"};
ZCa=function(a,b){function c(){var d=g.Ia.apply(0,arguments);a.removeEventListener("playing",c);b.apply(null,g.qa(d))}
a.addEventListener("playing",c)};
rK=function(){var a=g.Xa("yt.player.utils.videoElement_");a||(a=g.yf("VIDEO"),g.Va("yt.player.utils.videoElement_",a));return a};
sK=function(a){var b=rK();return!!(b&&b.canPlayType&&b.canPlayType(a))};
uK=function(a){if(/opus/.test(a)&&g.tK&&!Mv("38")&&!g.PB())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)&&!Tpa())return!1;'audio/mp4; codecs="mp4a.40.2"'===a&&(a='video/mp4; codecs="avc1.4d401f"');return!!sK(a)};
$Ca=function(a){try{var b=uK('video/mp4; codecs="avc1.42001E"')||uK('video/webm; codecs="vp9"');return(uK('audio/mp4; codecs="mp4a.40.2"')||uK('audio/webm; codecs="opus"'))&&(b||!a)||sK('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(c){return"html5.missingapi"}};
aDa=function(){var a=rK();return!(!a.webkitSupportsPresentationMode||"function"!==typeof a.webkitSetPresentationMode)};
bDa=function(){var a=rK();try{var b=a.muted;a.muted=!b;return a.muted!==b}catch(c){}return!1};
g.vK=function(){nC.apply(this,arguments)};
wK=function(a,b,c,d,e,f){this.sampleRate=void 0===a?0:a;this.numChannels=void 0===b?0:b;this.spatialAudioType=void 0===c?"SPATIAL_AUDIO_TYPE_NONE":c;this.j=void 0===d?!1:d;this.C=void 0===e?0:e;this.B=void 0===f?0:f};
yK=function(a,b,c,d,e,f,h,l,m){this.width=a;this.height=b;this.quality=f||cDa(a,b);this.j=g.xK[this.quality];this.fps=c||0;this.stereoLayout=!e||null!=d&&"UNKNOWN"!==d&&"RECTANGULAR"!==d?0:e;this.projectionType=d?"EQUIRECTANGULAR"===d&&2===e?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":d:"UNKNOWN";(a=h)||(a=g.xK[this.quality],0===a?a="Otomatik":(b=this.fps,c=this.projectionType,a=a.toString()+("EQUIRECTANGULAR"===c||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===c||"MESH"===c?"s":"p")+(55<b?"60":49<b?"50":39<b?"48":
"")));this.qualityLabel=a;this.B=l||"";this.primaries=m||""};
cDa=function(a,b){var c=Math.max(a,b);a=Math.min(a,b);b=zK[0];for(var d=0;d<zK.length;d++){var e=zK[d],f=g.xK[e];if(c>=1.3*Math.floor(16*f/9)||a>=1.3*f)return b;b=e}return"tiny"};
CK=function(a,b,c){c=void 0===c?{}:c;this.id=a;this.mimeType=b;0<c.sb||(c.sb=16E3);Object.assign(this,c);a=g.u(this.id.split(";"));this.itag=a.next().value;this.j=a.next().value;this.containerType=AK(b);this.qb=BK[this.itag]||""};
DK=function(a){return"9"===a.qb||"("===a.qb||"9h"===a.qb||"(h"===a.qb};
dDa=function(a){return"H"===a.qb||"h"===a.qb};
eDa=function(a){return"9h"===a.qb||"(h"===a.qb};
EK=function(a){return"1"===a.qb||"1h"===a.qb};
fDa=function(a){return"mac3"===a.qb||"meac3"===a.qb||"m"===a.qb};
FK=function(a){return"MAC3"===a.qb||"MEAC3"===a.qb||"M"===a.qb};
g.GK=function(a){return 1===a.containerType};
gDa=function(a){return"("===a.qb||"(h"===a.qb||"H"===a.qb};
HK=function(a){return"application/x-mpegURL"===a.mimeType};
IK=function(a,b){return{itag:+a.itag,lmt:b?0:a.lastModified,xtags:a.j||""}};
JK=function(a,b){a=IK(a,b);return a.itag+";"+(a.lmt||0)+";"+a.xtags};
hDa=function(a){var b=navigator.mediaCapabilities;if(null==b||!b.decodingInfo||"f"===a.qb)return Promise.resolve();var c={type:a.audio&&a.video?"file":"media-source"};a.video&&(c.video={contentType:a.mimeType,width:a.video.width||640,height:a.video.height||360,bitrate:8*a.sb||1E6,framerate:a.video.fps||30});a.audio&&(c.audio={contentType:a.mimeType,channels:""+(a.audio.numChannels||2),bitrate:8*a.sb||128E3,samplerate:a.audio.sampleRate||44100});return b.decodingInfo(c).then(function(d){a.B=d})};
iDa=function(a){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(a)};
jDa=function(a){return/(vp9|vp09|vp8|avc1|av01)/.test(a)};
KK=function(a){return a.includes("vtt")||a.includes("text/mp4")};
AK=function(a){return 0<=a.indexOf("/mp4")?1:0<=a.indexOf("/webm")?2:0<=a.indexOf("/x-flv")?3:0<=a.indexOf("/vtt")?4:0};
LK=function(a,b,c,d,e,f){var h=new wK;b in g.xK||(b="small");"light"===b&&(b="tiny");d&&e?(e=Number(e),d=Number(d)):(e=g.xK[b],d=Math.round(16*e/9));f=new yK(d,e,0,null,void 0,b,f);a=unescape(a.replace(/&quot;/g,'"'));return new CK(c,a,{audio:h,video:f})};
MK=function(a){var b="id="+a.id;a.video&&(b+=", res="+a.video.qualityLabel);var c,d;return b+", byterate=("+(null==(c=a.ov)?void 0:c.toFixed(0))+", "+(null==(d=a.sb)?void 0:d.toFixed(0))+")"};
NK=function(a,b){return{start:function(c){return a[c]},
end:function(c){return b[c]},
length:a.length}};
OK=function(a,b,c){b=void 0===b?",":b;c=void 0===c?a?a.length:0:c;var d=[];if(a)for(c=Math.max(a.length-c,0);c<a.length;c++)d.push(a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3));return d.join(b)};
PK=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};
QK=function(a,b){return 0<=PK(a,b)};
kDa=function(a,b){if(!a)return NaN;b=PK(a,b);return 0<=b?a.start(b):NaN};
RK=function(a,b){if(!a)return NaN;b=PK(a,b);return 0<=b?a.end(b):NaN};
SK=function(a){return a&&a.length?a.end(a.length-1):NaN};
TK=function(a,b){a=RK(a,b);return 0<=a?a-b:0};
UK=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 NK(d,e)};
VK=function(a,b,c,d){g.wF.call(this);var e=this;this.Sd=a;this.start=b;this.end=c;this.isActive=d;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.KX={error:function(){!e.Ma()&&e.isActive&&e.publish("error",e)},
updateend:function(){!e.Ma()&&e.isActive&&e.publish("updateend",e)}};
g.xF(this.Sd,this.KX);this.bT=this.isActive};
WK=function(a,b,c,d,e,f){g.wF.call(this);var h=this;this.Sb=a;this.qg=b;this.id=c;this.containerType=d;this.qb=e;this.yg=f;this.JP=this.AE=this.Lf=null;this.IH=!1;this.appendWindowStart=this.timestampOffset=0;this.lN=NK([],[]);this.ZC=!1;this.zE=[];this.nB=lDa?[]:void 0;this.Fd=function(m){return h.publish(m.type,h)};
var l;if(null==(l=this.Sb)?0:l.addEventListener)this.Sb.addEventListener("updateend",this.Fd),this.Sb.addEventListener("error",this.Fd)};
XK=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1};
YK=function(a,b){this.resource=a;this.j=void 0===b?!1:b;this.B=!1};
ZK=function(a,b,c){c=void 0===c?!1:c;g.I.call(this);this.mediaElement=a;this.Qa=b;this.isView=c;this.N=0;this.G=!1;this.K=!0;this.ra=0;this.callback=null;this.qa=!1;this.Qa||(this.qg=this.mediaElement.Ib());this.events=new g.vK(this);g.O(this,this.events);this.C=new YK(this.Qa?window.URL.createObjectURL(this.Qa):this.qg.webkitMediaSourceURL,!0);a=this.Qa||this.qg;oC(this.events,a,["sourceopen","webkitsourceopen"],this.bba);oC(this.events,a,["sourceclose","webkitsourceclose"],this.aba);this.D={updateend:this.B4}};
mDa=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)};
nDa=function(a,b){$K(a)?g.fg(function(){b(a)}):a.callback=b};
oDa=function(a,b,c){if(aL){var d;bL(a.mediaElement,{l:"mswssb",sr:null==(d=a.mediaElement.oa)?void 0:cL(d)},!1);g.xF(b,a.D,a);g.xF(c,a.D,a)}a.j=b;a.B=c;g.O(a,b);g.O(a,c)};
pDa=function(a,b,c,d){d=b.mimeType+(void 0===d?"":d);var e=c.mimeType;b=b.qb;c=c.qb;var f;a.Z=null==(f=a.Qa)?void 0:f.addSourceBuffer(e);var h;a.Y="fakesb"===d.split(";")[0]?void 0:null==(h=a.Qa)?void 0:h.addSourceBuffer(d);a.qg&&(a.qg.webkitSourceAddId("0",e),a.qg.webkitSourceAddId("1",d));f=new WK(a.Z,a.qg,"0",AK(e),c,!1);d=new WK(a.Y,a.qg,"1",AK(d),b,!0);oDa(a,f,d)};
dL=function(a){return!!a.j||!!a.B};
$K=function(a){try{return"open"===eL(a)}catch(b){return!1}};
eL=function(a){if(a.Qa)return a.Qa.readyState;switch(a.qg.webkitSourceState){case a.qg.SOURCE_OPEN:return"open";case a.qg.SOURCE_ENDED:return"ended";default:return"closed"}};
qDa=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource};
rDa=function(a){$K(a)&&(a.Qa?a.Qa.endOfStream():a.qg.webkitSourceEndOfStream(a.qg.EOS_NO_ERROR))};
sDa=function(a,b,c,d){if(!a.j||!a.B)return null;var e=a.j.isView()?a.j.Sd:a.j,f=a.B.isView()?a.B.Sd:a.B,h=new ZK(a.mediaElement,a.Qa,!0);h.C=a.C;oDa(h,new VK(e,b,c,d),new VK(f,b,c,d));$K(a)||a.j.aq(a.j.Lc());return h};
tDa=function(a){var b;null==(b=a.j)||b.Ty();var c;null==(c=a.B)||c.Ty();a.K=!1};
fL=function(){var a=this;this.wR=this.JR=qaa;this.promise=new g.hg(function(b,c){a.JR=b;a.wR=c})};
gL=function(){g.I.call(this);this.bJ=!1;this.resource=null;this.N=this.K=!1;this.D=new g.Dd;this.oa=null;g.O(this,this.D)};
uDa=function(a){a=a.VD();return 1>a.length?NaN:a.end(a.length-1)};
vDa=function(a){!a.B&&mDa()&&(a.C?a.C.then(function(){return vDa(a)}):a.Gf()||(a.B=a.Nq()))};
wDa=function(a){a.B&&(a.B.dispose(),a.B=void 0)};
bL=function(a,b,c){var d;(null==(d=a.oa)?0:d.uc())&&a.oa.ma("rms",b,void 0===c?!1:c)};
xDa=function(a,b,c){a.isPaused()||a.getCurrentTime()>b||10<c||(a.play(),g.wB(function(){xDa(a,a.getCurrentTime(),c+1)},500))};
yDa=function(a,b){a.resource&&null!==b&&b.resource===a.resource.resource||(a.resource&&a.resource.dispose(),a.resource=b)};
hL=function(a){return TK(a.Rh(),a.getCurrentTime())};
zDa=function(a,b){if(0===a.Fk()||a.hasError())return!1;var c=0<a.getCurrentTime();return 0<=b&&(a=a.VD(),a.length||!c)?QK(a,b):c};
BDa=function(a){a.Gf()&&(ADa&&a.oa&&a.oa.yu("rs_s"),pD&&0<a.getCurrentTime()&&a.seekTo(0),a.LK(),a.load(),yDa(a,null));delete a.C};
CDa=function(a){switch(a.Xg()){case 2:return"progressive.net.retryexhausted";case 3:var b;return(null==(b=a.wf())?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.iL=function(a,b,c){this.Ig=void 0===b?null:b;this.seekSource=void 0===c?null:c;this.state=a||64};
jL=function(a,b){return DDa(a,b.getCurrentTime(),(0,g.$C)(),hL(b))};
kL=function(a,b,c,d){if(!(b===a.state&&c===a.Ig&&d===a.seekSource||void 0!==b&&(b&128&&!c||b&2&&b&16))){var e;if(e=b)e=b||a.state,e=!!(e&16||e&32);a=new g.iL(b,c,e?d?d:a.seekSource:null)}return a};
lL=function(a,b,c){return kL(a,a.state|b,null,void 0===c?null:c)};
mL=function(a,b){return kL(a,a.state&~b,null,null)};
nL=function(a,b,c,d){return kL(a,(a.state|b)&~c,null,void 0===d?null:d)};
g.mG=function(a,b){return!!(a.state&b)};
g.EDa=function(a,b){return b.state===a.state&&b.Ig===a.Ig};
g.oL=function(a){return g.mG(a,8)&&!g.mG(a,2)&&!g.mG(a,1024)};
FDa=function(a){return a.isPlaying()&&!g.mG(a,16)&&!g.mG(a,32)};
g.pL=function(a){return g.mG(a,1)&&!g.mG(a,2)};
qL=function(a){return g.mG(a,128)?-1:g.mG(a,2)?0:g.mG(a,2048)?3:g.mG(a,64)?-1:g.mG(a,1)&&!g.mG(a,32)?3:g.mG(a,8)?1:g.mG(a,4)?2:-1};
tL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){g.I.call(this);var w=this;this.HB=a;this.slot=b;this.layout=c;this.Oa=d;this.xb=e;this.Ta=f;this.Ha=h;this.Ic=l;this.Mb=m;this.DF=n;this.position=q;this.U0=r;this.Ca=t;this.ww=v;this.eh=!0;this.X_=!1;this.Mc="not_rendering";this.vE=!1;a=TI(this.layout.Aa,"metadata_type_ad_placement_config");this.Xa=new SJ(c.Bb,this.Oa,a,c.layoutId);var A;a=(null==(A=rL(this))?void 0:A.progressCommands)||[];this.Yba=new fCa(m,a,c.layoutId,function(){return w.zz()});
this.CN=Ld(function(){var C=sL(w),F=C.layoutId,G=C.Ep;if(C.qw){var L={};mK(C.Nf,"slso",(L.ec=F,L.is=G,L.ctp=lK(F),L))}w.HB.vc(w.slot,w.layout)});
this.NH=Ld(function(){var C=sL(w),F=C.layoutId,G=C.Ep,L=C.Nf;C.qw&&(C={},mK(L,"sleo",(C.xc=F,C.is=G,C.ctp=lK(F),C)),TCa(L));"rendering_stop_requested"!==w.Mc&&p(w);w.layoutExitReason?w.HB.Oc(w.slot,w.layout,w.layoutExitReason):kG("Received layout exit signal when not in layout exit flow.",w.slot,w.layout)})};
sL=function(a){return{layoutId:a.Mv(),Ep:a.ww,Nf:a.Ta.get(),qw:a.rd()}};
rL=function(a){return TI(a.layout.Aa,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")};
GDa=function(a){0===a.position&&(a.Ic.get(),a=TI(a.layout.Aa,"metadata_type_ad_placement_config").kind,a={adBreakType:uL(a)},CH("ad_bl"),g.AH(a))};
IDa=function(a){var b;return-1!==((null==(b=rL(a))?void 0:b.progressCommands)||[]).findIndex(function(c){return!!g.V(null==c?void 0:c.command,HDa)})};
vL=function(a,b,c){zH(a,c)||DH(a,b,c);zH(a,"video_to_ad")||DH(a,b,"video_to_ad");zH(a,"ad_to_video")||DH(a,b,"ad_to_video");zH(a,"ad_to_ad")||DH(a,b,"ad_to_ad")};
JDa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w){tL.call(this,a,b,c,d,e,f,h,l,n,p,q,r,t,v,w);var A=this;this.qd=m;this.iJ=!0;this.LP=this.Zi=0;this.kf=new g.Ag(200);this.kf.listen("tick",function(){A.Nc()});
g.O(this,this.kf)};
KDa=function(){for(var a=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],b=g.u(TJ()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Kd:a,Fe:["LAYOUT_TYPE_MEDIA_BREAK"]}};
MDa=function(a){a.LP=Date.now();LDa(a,a.Zi);a.kf.start()};
LDa=function(a,b){b={current:b/1E3,duration:a.zz()/1E3};a.qd.get().Yt("onAdPlaybackProgress",b)};
yL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,G,L){tL.call(this,a,b,c,d,e,l,m,p,r,v,w,A,C,F,G);var M=this;this.tf=f;this.Md=h;this.Qc=n;this.qd=q;this.hg=t;this.context=L;this.adCpn="";this.vV=0;this.PX=!1;this.rd()||(this.GJ=new g.lv(function(){M.DA("load_timeout",new QI("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4),a=wL(this.Ca.get()),F=xL(F.get()),a&&F&&(this.wA=new g.lv(function(){var R=TI(c.Aa,"metadata_type_preload_player_vars");
R&&M.Md.get().J.preloadVideoByPlayerVars(R,2,300)})))};
NDa=function(){for(var a=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"],b=g.u(TJ()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Kd:a,Fe:["LAYOUT_TYPE_MEDIA"]}};
ODa=function(a){if($J(a.vg,KDa()))return new JDa(a.callback,a.slot,a.vg,a.Oa,a.xb,a.Ta,a.Ha,a.Ic,a.qd,a.Mb,function(){},a.iE,a.wu,a.FG,a.Ca,a.ww);
if($J(a.vg,NDa()))return NI(a.vg.Aa,"metadata_type_ad_intro")?new yL(a.callback,a.slot,a.vg,a.Oa,a.xb,a.tf,a.Md,a.Ta,a.Ha,a.Qc,a.Ic,a.qd,a.Mb,a.hg,function(b){a.qd.get().Yt("onAdIntroStateChange",b)},a.iE,a.wu,a.FG,a.Ca,a.ww,a.context):new yL(a.callback,a.slot,a.vg,a.Oa,a.xb,a.tf,a.Md,a.Ta,a.Ha,a.Qc,a.Ic,a.qd,a.Mb,a.hg,function(b){a.qd.get().CF(b)},a.iE,a.wu,a.FG,a.Ca,a.ww,a.context)};
QDa=function(a){var b=TI(a.Aa,"metadata_type_ad_placement_config").kind,c=TI(a.Aa,"metadata_type_linked_in_player_layout_type");return{cpn:a.layoutId,adType:PDa(c),adBreakType:uL(b)}};
uL=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"}};
PDa=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"}};
SDa=function(){var a=g.Ia.apply(0,arguments);try{return new (Function.prototype.bind.apply(RDa,[null].concat(g.qa(a))))}catch(b){}};
RDa=function(a,b,c,d,e,f,h,l,m,n,p){g.I.call(this);this.callback=a;this.slot=b;this.layout=c;this.Ze=d;this.xf=e;this.Ta=f;this.Uc=h;this.Md=l;this.Ec=m;this.Ha=n;this.eh=!0;this.j=void 0;this.B=!1;a=ODa(p);if(!a)throw Error("Invalid params for sublayout");this.Hd=a};
TDa=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.Uc=c;this.Md=d;this.Ha=e;this.Ic=f;this.wG=h;this.slot=l;this.layout=m;this.Ze=n;this.gk=p;this.Ec=q;this.Ca=r;this.eh=!0;this.dw=!1;this.ud=[];this.kd=-1;this.sP=this.aP=!1};
UDa=function(a){var b;return null!=(b=a.layout.Ex)?b:TI(a.layout.Aa,"metadata_type_sub_layouts")};
zL=function(a){return{Nf:a.Ta.get(),Ep:!1,qw:a.rd()}};
XDa=function(a,b,c){var d=a.ud[a.kd];a.kd===a.ud.length-1&&kG("Unexpected skip with target requested during the last sublayout",d.Zb(),d.ob(),{requestingSlot:b,requestingLayout:c});if(void 0===c.renderingContent&&c.layoutId!==AL(d,b,c))kG("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",d.Zb(),d.ob(),{requestingSlot:b,requestingLayout:c});else{var e=TI(d.ob().Aa,"metadata_type_ad_pod_skip_target");if(e&&0<e&&e<a.ud.length){a:{for(var f=e;f<a.ud.length;){if(e===
TI(a.ud[f].ob().Aa,"metadata_type_ad_pod_skip_index")){e=f;break a}f++}e=void 0}void 0===e?kG("Skip-to-index was requested but target index was not found",d.Zb(),d.ob(),{requestingSlot:b,requestingLayout:c}):a.rd()?VDa(a,d.ob(),e,"skipped"):WDa(a,d.Zb(),d.ob(),e)}else kG("Invalid ad pod skip target index",d.Zb(),d.ob(),{requestingSlot:b,requestingLayout:c})}};
AL=function(a,b,c){var d=TI(a.ob().Aa,"metadata_type_linked_in_player_layout_id");return d?d:(kG("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",a.Zb(),a.ob(),{requestingSlot:b,requestingLayout:c}),null)};
YDa=function(a,b,c){BL(a,a.slot,b,c,function(){var d=a.ZV;d?(a.ZV=void 0,d(b)):kG("Expected further action after sublayout exit is confirmed",a.slot,a.layout)})};
$Da=function(a,b,c,d){a.rd()?VDa(a,c,a.kd+1,d):BL(a,b,c,d,function(){ZDa(a,a.kd+1)})};
VDa=function(a,b,c,d){BL(a,a.slot,b,d,function(){if(c>=a.ud.length+1||0>c)kG("Unexpected target sublayout index",a.slot,a.layout,{targetSubLayoutIndex:c});else{a.kd=c;if(c===a.ud.length){var e=a.Ta.get().Me(1).clientPlaybackNonce;CL(a.gk,a.layout)}else e=a.ud[c].ob().layoutId;a.Uc.get().finishSegmentByCpn(b.layoutId,e)}})};
WDa=function(a,b,c,d){BL(a,b,c,"skipped",function(){ZDa(a,d)})};
BL=function(a,b,c,d,e){if(!a.sP){var f=a.ud[a.kd];if(f){f.ob().layoutId!==c.layoutId&&kG("SubLayout mismatch in exitSubLayout",b,c,{exitingSubLayout:c.layoutId,activeSubLayout:f.ob().layoutId});a.sP=!0;f.Qe(f.ob(),d);f=Object.assign({},zL(a),{layoutId:c.layoutId,layoutExitReason:d});var h=f.layoutId,l=f.layoutExitReason;if(f.qw){var m={};mK(f.Nf,"wrsx",(m.xc=h,m.ler=l,m.ctp=lK(h),m))}OAa(a.wG,b,c,d);a.sP=!1;a.aP=!1;a.jP?(a.jP(),a.rd()||aEa(a.Ic.get())):e()}else kG("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.",
b,c)}};
ZDa=function(a,b){a.kd===a.ud.length-1?(a.kd++,CL(a.gk,a.layout),a.rd()||aEa(a.Ic.get())):bEa(a,b)};
bEa=function(a,b){if(-1===a.kd&&(a.callback.vc(a.slot,a.layout),0<b)){kG("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",a.slot,a.layout,{indexToPlay:b,layoutId:a.layout.layoutId});return}a.kd=b;a.aP=!0;b=a.ud[a.kd];if(0<a.kd&&!a.rd()){a=a.Ic.get();a.B=!1;var c={};a.j&&a.videoId&&(c.cttAuthInfo={token:a.j,videoId:a.videoId});BH("ad_to_ad",c)}b.startRendering(b.ob())};
cEa=function(a,b,c,d,e,f,h){g.I.call(this);this.callback=a;this.Md=b;this.Ha=c;this.Ic=d;this.Hd=e;this.Ec=f;this.Ca=h;this.eh=!0;this.dw=!1};
eEa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,G,L){l={Oa:l,xb:m,tf:n,Md:p,Ta:q,Ha:r,Qc:t,Ic:v,qd:w,Mb:A,hg:C,Ca:F,context:L};if($J(d,{Kd:["metadata_type_sub_layouts"],Fe:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})||void 0!==d.Ex&&"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"===d.layoutType){var M,R=null!=(M=d.Ex)?M:TI(d.Aa,"metadata_type_sub_layouts");a=new TDa(a,q,G,p,r,v,b,c,d,f,h,e,F);e=[];for(p={Yv:0};p.Yv<R.length;p={Yv:p.Yv},p.Yv++){r=ODa(Object.assign({},l,{callback:{vc:a.eba.bind(a),Oc:a.hba.bind(a),
TF:a.TF.bind(a),nf:a.fba.bind(a)},slot:c,vg:R[p.Yv],iE:function(ea){return function(ma){ma.Qe(R[ea.Yv],"normal")}}(p),
wu:p.Yv,FG:R.length,ww:!1}));if(!r)return;e.push(r)}a.ud=e;return a}if(dEa(c,F.get())&&$J(d,{Kd:[],Fe:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return v=Object.assign({},l,{callback:{vc:function(){},
Oc:function(){},
TF:function(){return void CL(h,d)},
nf:function(){}},
slot:c,vg:d,iE:function(){},
wu:0,FG:1,ww:!0}),SDa(a,c,d,f,h,q,G,p,e,r,v);if($J(d,{Kd:[],Fe:["LAYOUT_TYPE_MEDIA","LAYOUT_TYPE_MEDIA_BREAK"]}))return(c=ODa(Object.assign({},l,{callback:{vc:a.vc.bind(a),Oc:a.Oc.bind(a),TF:function(){},
nf:a.nf.bind(a)},slot:c,vg:d,iE:function(){CL(h,d)},
wu:0,FG:1,ww:!0})))?new cEa(a,p,r,v,c,e,F):c};
dEa=function(a,b){var c=TI(a.Aa,"metadata_type_eligible_for_ssap");return void 0===c?(kG("Expected SSAP eligibility in PlayerBytes factory",a),!1):b.rd(c)};
DL=function(a,b,c,d,e,f,h,l,m,n){this.callback=a;this.slot=b;this.layout=c;this.Ta=d;this.Uc=e;this.Df=f;this.Ha=h;this.Xa=l;this.Oa=m;this.D=n;this.driftRecoveryMs=TI(this.layout.Aa,"metadata_type_drift_recovery_ms")||null};
gEa=function(a){var b=TI(a.layout.Aa,"metadata_type_layout_enter_ms"),c=TI(a.layout.Aa,"metadata_type_layout_exit_ms");a=a.Df.get();b=fEa(a.C,b,c);return Math.min(c,null!==b?b:Infinity)};
hEa=function(a,b){var c;EL(a.Oa.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:null==(c=a.Ta.get().Dv)?void 0:c.clientPlaybackNonce,adClientData:a.layout.ac.adClientDataEntry},b)})};
iEa=function(a,b,c,d,e,f,h,l,m,n,p){DL.call(this,a,b,c,d,e,f,h,l,m,n);this.C=p;this.B=this.j=null;a=g.u(this.C);for(b=a.next();!b.done;b=a.next())b=b.value,NI(b.ob().Aa,"metadata_type_survey_overlay")&&(this.B=b.ob().layoutId)};
kEa=function(a,b){var c=jEa(a,b);a.j={Ul:c};c?c.startRendering(c.ob()):b===a.B&&kG("Failed to find rendering adapter for survey media layout",a.slot,a.layout,{surveyMediaLayoutId:b})};
jEa=function(a,b){return null==b?null:a.C.find(function(c){return c.ob().layoutId===b})||null};
lEa=function(a,b,c,d,e,f,h,l,m,n){var p=e-d,q=NI(b.Aa,"metadata_type_survey_overlay"),r,t=(null==(r=TI(a.Aa,"metadata_type_fulfilled_layout"))?void 0:TI(r.Aa,"metadata_type_ssdai_ads_config"))||"";if(!p)return h.jE(c,t,2,f,d,e,a.slotId),FL(n,"ads_iraot","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id),null;p=h.QC(c,t,2,f,d,e,a.slotId);FL(n,"ads_atct","sid."+a.slotId+";enterMs."+d+";exitMs."+e+";hso."+q+";vid."+c.video_id);if(!p)return kG("Unexpected failure to add to playback timeline",
a,b,m()),null;a=a.slotId;b=b.layoutId;p?(l.j.has(p)&&kG("Unexpected remap of timeline playback"),l.j.set(p,{slotId:a,layoutId:b})):kG("Invalid timeline playback ID");d+f>e&&h.IG(p,e-d);return p};
mEa=function(a,b){var c=TI(b.Aa,"metadata_type_sodar_extension_data");if(c)try{hBa(0,c)}catch(d){kG("Unexpected error when loading Sodar",a,b,{error:d})}};
oEa=function(a,b,c,d,e,f){nEa(a,b,new g.lG(c,new g.iL),d,e,!1,f)};
nEa=function(a,b,c,d,e,f,h){f=void 0===f?!0:f;NCa(c)&&iK(e,0,null)&&(!WJ(a,"impression")&&h&&h(),a.Vb("impression"));WJ(a,"impression")&&(g.oG(c,4)&&!g.oG(c,2)&&a.Hh("pause"),0>nG(c,4)&&!(0>nG(c,2))&&a.Hh("resume"),g.oG(c,16)&&.5<=e&&a.Hh("seek"),f&&g.oG(c,2)&&pEa(a,c.state,b,d,e))};
pEa=function(a,b,c,d,e,f,h){if(WJ(a,"impression")){var l=1>=Math.abs(d-e);qEa(a,b,l?d:e,c,d,f,h&&l);l&&a.Vb("complete")}};
qEa=function(a,b,c,d,e,f,h){VJ(a,1E3*c,h);0>=e||0>=c||(null==b?0:g.mG(b,16))||(null==b?0:g.mG(b,32))||(iK(c,.25*e,d)&&(f&&!WJ(a,"first_quartile")&&f("first"),a.Vb("first_quartile")),iK(c,.5*e,d)&&(f&&!WJ(a,"midpoint")&&f("second"),a.Vb("midpoint")),iK(c,.75*e,d)&&(f&&!WJ(a,"third_quartile")&&f("third"),a.Vb("third_quartile")))};
rEa=function(a,b){WJ(a,"impression")&&a.Hh(b?"fullscreen":"end_fullscreen")};
sEa=function(a){WJ(a,"impression")&&a.Hh("clickthrough")};
tEa=function(a){a.Hh("active_view_measurable")};
uEa=function(a){WJ(a,"impression")&&!WJ(a,"seek")&&a.Hh("active_view_fully_viewable_audible_half_duration")};
vEa=function(a){WJ(a,"impression")&&!WJ(a,"seek")&&a.Hh("active_view_viewable")};
wEa=function(a){WJ(a,"impression")&&!WJ(a,"seek")&&a.Hh("audio_audible")};
xEa=function(a){WJ(a,"impression")&&!WJ(a,"seek")&&a.Hh("audio_measurable")};
yEa=function(a,b,c,d,e,f,h,l,m,n,p,q){this.callback=a;this.slot=b;this.layout=c;this.Uc=d;this.Xa=e;this.Ha=f;this.Nr=h;this.xb=l;this.tf=m;this.Ca=n;this.Oa=p;this.Ta=q;this.iJ=!0;this.bd=this.Mc=null;this.adCpn=void 0};
zEa=function(a,b,c){var d;FL(a.Oa.get(),"ads_qua","cpn."+TI(a.layout.Aa,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ta.get().Me(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
AEa=function(a,b){var c,d;FL(a.Oa.get(),"ads_imp","cpn."+TI(a.layout.Aa,"metadata_type_content_cpn")+";acpn."+(null==(c=a.Ta.get().Me(2))?void 0:c.clientPlaybackNonce)+";clr."+b+";skp."+!!g.V(null==(d=TI(a.layout.Aa,"metadata_type_instream_ad_player_overlay_renderer"))?void 0:d.skipOrPreviewRenderer,GL))};
BEa=function(a){return{enterMs:TI(a.Aa,"metadata_type_layout_enter_ms"),exitMs:TI(a.Aa,"metadata_type_layout_exit_ms")}};
CEa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){DL.call(this,a,b,c,d,e,h,l,m,n,q);this.Nr=f;this.tf=p;this.xb=r;this.Ca=t;this.bd=this.Mc=null};
DEa=function(a,b){var c;FL(a.Oa.get(),"ads_imp","acpn."+(null==(c=a.Ta.get().Me(2))?void 0:c.clientPlaybackNonce)+";clr."+b)};
EEa=function(a,b,c){var d;FL(a.Oa.get(),"ads_qua","cpn."+TI(a.layout.Aa,"metadata_type_content_cpn")+";acpn."+(null==(d=a.Ta.get().Me(2))?void 0:d.clientPlaybackNonce)+";qt."+b+";clr."+c)};
FEa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,G){this.Ec=a;this.Ze=b;this.gk=c;this.Ta=d;this.Uc=e;this.Ha=f;this.Oa=h;this.Nr=l;this.Df=m;this.xb=n;this.tf=p;this.Md=q;this.Qc=r;this.Ic=t;this.qd=v;this.Mb=w;this.hg=A;this.Ca=C;this.j=F;this.context=G};
HL=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A){this.Ec=a;this.Ze=b;this.gk=c;this.Oa=d;this.xb=e;this.tf=f;this.Md=h;this.Ta=l;this.Ha=m;this.Qc=n;this.Ic=p;this.qd=q;this.Mb=r;this.hg=t;this.Ca=v;this.Uc=w;this.context=A};
GEa=function(a,b,c,d){vF.call(this,"survey-interstitial",a,b,c,d)};
IL=function(a,b,c,d,e){LJ.call(this,c,a,b,d);this.Oa=e;a=TI(b.Aa,"metadata_type_ad_placement_config");this.Xa=new SJ(b.Bb,e,a,b.layoutId)};
JL=function(a){return Math.round(a.width)+"x"+Math.round(a.height)};
IEa=function(a,b,c){c=void 0===c?HEa:c;c.width<HEa.width&&(c=HEa);if(a.width<c.width||a.height<c.height)return{GL:3,LG:501,errorMessage:"ad("+JL(c)+") larger than container("+JL(a)+")."};if(c.width*c.height>a.width*a.height*.2)return{GL:3,LG:501,errorMessage:"ad("+JL(c)+") to container("+JL(a)+") ratio exceeds limit."};if(c.height>a.height/3-b)return{GL:3,LG:501,errorMessage:"ad("+JL(c)+") covers container("+JL(a)+") center."}};
JEa=function(a,b){var c=TI(a.Aa,"metadata_type_ad_placement_config");return new SJ(a.Bb,b,c,a.layoutId)};
KL=function(a){return TI(a.Aa,"metadata_type_invideo_overlay_ad_renderer")};
KEa=function(a,b,c,d){vF.call(this,"invideo-overlay",a,b,c,d);this.interactionLoggingClientData=d};
LL=function(a,b,c,d,e,f,h,l,m,n,p,q){LJ.call(this,f,a,b,e);this.Oa=c;this.D=h;this.Ha=l;this.Mb=m;this.Ca=n;this.K=p;this.G=q;this.Xa=JEa(b,c)};
LEa=function(){var a=["metadata_type_invideo_overlay_ad_renderer"];TJ().forEach(function(b){a.push(b)});
return{Kd:a,Fe:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}};
ML=function(a,b,c,d,e,f,h,l,m,n,p,q,r){LJ.call(this,f,a,b,e);this.Oa=c;this.D=h;this.N=l;this.Ha=m;this.Mb=n;this.Ca=p;this.K=q;this.G=r;this.Xa=JEa(b,c)};
MEa=function(){for(var a=["metadata_type_invideo_overlay_ad_renderer"],b=g.u(TJ()),c=b.next();!c.done;c=b.next())a.push(c.value);return{Kd:a,Fe:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}};
NL=function(a){this.Ha=a;this.j=!1};
NEa=function(a,b,c){vF.call(this,"survey",a,{},b,c)};
OEa=function(a,b,c,d,e,f,h){LJ.call(this,c,a,b,d);this.D=e;this.Ha=f;this.Ca=h};
PEa=function(a,b,c,d,e,f,h,l,m,n){this.yc=a;this.Ha=b;this.Oa=c;this.D=d;this.xb=e;this.B=f;this.C=h;this.Mb=l;this.Ca=m;this.j=n};
QEa=function(a,b,c,d,e,f,h,l,m,n){this.yc=a;this.Ha=b;this.Oa=c;this.D=d;this.xb=e;this.B=f;this.C=h;this.Mb=l;this.Ca=m;this.j=n};
OL=function(a,b,c,d,e,f,h,l,m,n){dK.call(this,a,b,c,d,e,f,h,m);this.Xm=l;this.Ta=n};
REa=function(){var a=HCa();a.Kd.push("metadata_type_ad_info_ad_metadata");return a};
SEa=function(a,b,c,d,e,f,h){this.yc=a;this.Ha=b;this.Oa=c;this.B=d;this.Xm=e;this.j=f;this.Ta=h};
TEa=function(a,b,c,d,e,f,h,l){this.yc=a;this.Ha=b;this.Oa=c;this.B=d;this.Xm=e;this.j=f;this.Ca=h;this.Ta=l};
PL=function(a,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=a(this.triggerType)};
QL=function(a,b){this.j=a;this.B=b.length;this.adBreakLengthSeconds=b.reduce(function(d,e){return d+e},0);
var c=0;for(a+=1;a<b.length;a++)c+=b[a];this.adBreakRemainingLengthSeconds=c};
RL=function(a,b,c){this.Cu=b;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=c||a(this.triggerType)};
SL=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=c||a(this.triggerType)};
TL=function(a,b,c,d){this.Cu=b;this.visible=c;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=d||a(this.triggerType)};
UEa=function(a){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=a(this.triggerType)};
UL=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)};
VL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
WL=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)};
VEa=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 RI("Invalid layout exit reason: "+
a)}};
XL=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
WEa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=a(this.triggerType)};
XEa=function(a){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=a(this.triggerType)};
YEa=function(a){this.triggerId=a;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"};
ZEa=function(a,b,c,d,e){this.Cu=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)};
YL=function(a,b,c,d,e){this.Cu=b;this.j=c;this.visible=d;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=e||a(this.triggerType)};
$Ea=function(a,b,c){this.Cu=b;this.j=c;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=a(this.triggerType)};
ZL=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)};
aFa=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)};
$L=function(a,b,c){this.layoutId=b;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=c||a(this.triggerType)};
aM=function(a,b,c){this.j=b;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=c||a(this.triggerType)};
jBa=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)};
bFa=function(a,b){this.ping=a;this.index=b};
cFa=function(a){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=a(this.triggerType)};
dFa=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)};
eFa=function(a,b){this.layoutId=b;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=a(this.triggerType)};
fFa=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)};
bM=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=c||a(this.triggerType)};
cM=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=c||a(this.triggerType)};
dM=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=c||a(this.triggerType)};
eM=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=a(this.triggerType)};
fM=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=a(this.triggerType)};
gM=function(a,b,c){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=c||a(this.triggerType)};
hM=function(a,b){this.triggeringSlotId=b;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=a(this.triggerType)};
iM=function(a,b,c){this.triggeringLayoutId=b;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=c||a(this.triggerType)};
jM=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)};
kM=function(a,b,c,d){this.category=a;this.trigger=b;this.slot=c;this.layout=d};
lM=function(a){return null!=(null==a?void 0:a.layoutId)&&null!=(null==a?void 0:a.layoutType)};
gFa=function(a){return null!=(null==a?void 0:a.durationMs)&&0<(null==a?void 0:a.durationMs)};
hFa=function(a){return!!(a.N8&&a.slot&&a.layout)};
iFa=function(a){var b,c=null==(b=a.config)?void 0:b.adPlacementConfig;a=a.renderer;return!(!c||null==c.kind||!a)};
jFa=function(a){if(!lM(a.adLayoutMetadata))return!1;a=a.renderingContent;return g.V(a,gK)||g.V(a,fK)||g.V(a,LCa)?!0:!1};
mM=function(a){return void 0!==a.playerVars&&void 0!==a.pings&&void 0!==a.externalVideoId};
rM=function(a){if(!lM(a.adLayoutMetadata))return!1;a=a.renderingContent;var b=g.V(a,kFa);return b?lFa(b):(b=g.V(a,nM))?mM(b):(b=g.V(a,oM))?void 0!==b.playerVars:(b=g.V(a,gK))?void 0!==b.durationMilliseconds:g.V(a,pM)||g.V(a,qM)?!0:!1};
lFa=function(a){a=(a.sequentialLayouts||[]).map(function(b){return g.V(b,mFa)});
return 0<a.length&&a.every(rM)};
qFa=function(a){if(!lM(a.adLayoutMetadata))return!1;if(g.V(a.renderingContent,nFa))return!0;a=g.V(a.renderingContent,sM);return g.V(null==a?void 0:a.sidePanel,oFa)||g.V(null==a?void 0:a.sidePanel,pFa)?!0:!1};
AFa=function(a){var b=a.adSlotMetadata;if(void 0===(null==b?void 0:b.slotId)||void 0===(null==b?void 0:b.slotType)||!(rFa(a)||a.slotEntryTrigger&&a.slotFulfillmentTriggers&&a.slotExpirationTriggers))return!1;var c;a=null==(c=a.fulfillmentContent)?void 0:c.fulfilledLayout;return(c=g.V(a,mFa))?rM(c):(c=g.V(a,tM))?qFa(c):(c=g.V(a,sFa))?jFa(c):(c=g.V(a,tFa))?(lM(c.adLayoutMetadata)?(a=c.renderingContent,a=g.V(a,uFa)||g.V(a,vFa)||g.V(a,wFa)||g.V(a,xFa)||g.V(a,yFa)?!0:!1):a=!1,a):(a=g.V(a,zFa))?lM(a.adLayoutMetadata)?
g.V(a.renderingContent,uFa)?!0:!1:!1:!1};
rFa=function(a){var b;a=g.V(null==(b=a.fulfillmentContent)?void 0:b.fulfilledLayout,tM);var c;return a&&"LAYOUT_TYPE_PANEL_QR_CODE"===(null==(c=a.adLayoutMetadata)?void 0:c.layoutType)};
CFa=function(a,b){var c;if(null==(c=a.questions)||!c.length||!a.playbackCommands||(void 0===b||!b)&&1!==a.questions.length)return!1;a=g.u(a.questions);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=c=void 0,e=(null==(c=g.V(b,uM))?void 0:c.surveyAdQuestionCommon)||(null==(d=g.V(b,vM))?void 0:d.surveyAdQuestionCommon);if(!BFa(e))return!1}return!0};
DFa=function(a){a=((null==a?void 0:a.playerOverlay)||{}).instreamSurveyAdRenderer;var b;if(a)if(a.playbackCommands&&a.questions&&1===a.questions.length){var c,d=(null==(b=g.V(a.questions[0],uM))?void 0:b.surveyAdQuestionCommon)||(null==(c=g.V(a.questions[0],vM))?void 0:c.surveyAdQuestionCommon);b=BFa(d)}else b=!1;else b=!1;return b};
BFa=function(a){if(!a)return!1;a=g.V(a.instreamAdPlayerOverlay,EFa);var b=g.V(null==a?void 0:a.skipOrPreviewRenderer,GL),c=g.V(null==a?void 0:a.adInfoRenderer,wM);return(g.V(null==a?void 0:a.skipOrPreviewRenderer,xM)||b)&&c?!0:!1};
FFa=function(a){return null!=a.linearAds&&lM(a.adLayoutMetadata)};
GFa=function(a){return null!=a.linearAd&&null!=a.adVideoStart};
HFa=function(a){if(isNaN(Number(a.timeoutSeconds))||!a.text||!a.ctaButton||!g.V(a.ctaButton,g.yM)||!a.brandImage)return!1;var b;return a.backgroundImage&&g.V(a.backgroundImage,zM)&&(null==(b=g.V(a.backgroundImage,zM))?0:b.landscape)?!0:!1};
AM=function(a,b,c,d,e,f,h){g.I.call(this);this.Ca=a;this.j=b;this.C=d;this.Ta=e;this.D=f;this.B=h};
KFa=function(a,b,c){var d,e=(null!=(d=c.adSlots)?d:[]).map(function(f){return g.V(f,BM)});
c.FB?TI(b.Aa,"metadata_type_allow_pause_ad_break_request_slot_reschedule")?IJ(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId):(a.Ca.get().J.U().L("h5_check_forecasting_renderer_for_throttled_midroll")?(d=c.Zu.filter(function(f){var h;
return null!=(null==(h=f.renderer)?void 0:h.clientForecastingAdRenderer)}),0!==d.length?IFa(a.B,d,e,b.slotId,c.ssdaiAdsConfig):IJ(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)):IJ(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId),JFa(a.D,b)):IFa(a.B,c.Zu,e,b.slotId,c.ssdaiAdsConfig)};
MFa=function(a,b,c,d,e,f){var h=a.Ta.get().Me(1);IJ(a.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return LFa(a.C.get(),c,d,e,h.clientPlaybackNonce,h.Es,h.daiEnabled,h,f)},b)};
PFa=function(a,b,c,d,e,f,h){b=NFa(b,f,Number(d.prefetchMilliseconds)||0,h);a=b instanceof RI?b:OFa(a,d,e,b,c);return a instanceof RI?a:[a]};
QFa=function(a,b,c,d,e){var f=JJ(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");d=[new EI({getAdBreakUrl:d.getAdBreakUrl,uR:0,tR:0}),new vAa(!0)];a=b.pauseDurationMs?b.lactThresholdMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new gM(a.j,f),slotFulfillmentTriggers:[new UEa(a.j)],slotExpirationTriggers:[new aM(a.j,e),new dM(a.j,f)],Ya:"core",Aa:new SI(d),adSlotLoggingData:c}:new RI("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new RI("AdPlacementConfig for Pause Ads is missing pause_duration_ms");
return a instanceof RI?a:[a]};
RFa=function(a){var b,c;return void 0!==(null==(b=a.renderer)?void 0:null==(c=b.adBreakServiceRenderer)?void 0:c.getAdBreakUrl)};
CM=function(a,b,c){if(a.beforeContentVideoIdStartedTrigger)a=a.beforeContentVideoIdStartedTrigger?new RL(PI,b,a.id):new RI("Not able to create BeforeContentVideoIdStartedTrigger");else{if(a.layoutIdExitedTrigger){var d;b=null!=(d=a.layoutIdExitedTrigger)&&d.triggeringLayoutId?new XL(PI,a.layoutIdExitedTrigger.triggeringLayoutId,a.id):new RI("Not able to create LayoutIdExitedTrigger")}else{if(a.layoutExitedForReasonTrigger){var e,f;(null==(e=a.layoutExitedForReasonTrigger)?0:e.triggeringLayoutId)&&
(null==(f=a.layoutExitedForReasonTrigger)?0:f.layoutExitReason)?(b=VEa(a.layoutExitedForReasonTrigger.layoutExitReason),a=b instanceof RI?b:new WL(PI,a.layoutExitedForReasonTrigger.triggeringLayoutId,[b],a.id)):a=new RI("Not able to create LayoutIdExitedForReasonTrigger")}else{if(a.onLayoutSelfExitRequestedTrigger){var h;b=null!=(h=a.onLayoutSelfExitRequestedTrigger)&&h.triggeringLayoutId?new $L(PI,a.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,a.id):new RI("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(a.onNewPlaybackAfterContentVideoIdTrigger)a=
a.onNewPlaybackAfterContentVideoIdTrigger?new aM(PI,b,a.id):new RI("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(a.skipRequestedTrigger){var l;b=null!=(l=a.skipRequestedTrigger)&&l.triggeringLayoutId?new bM(PI,a.skipRequestedTrigger.triggeringLayoutId,a.id):new RI("Not able to create SkipRequestedTrigger")}else if(a.slotIdEnteredTrigger){var m;b=null!=(m=a.slotIdEnteredTrigger)&&m.triggeringSlotId?new cM(PI,a.slotIdEnteredTrigger.triggeringSlotId,a.id):new RI("Not able to create SlotIdEnteredTrigger")}else if(a.slotIdExitedTrigger){var n;
b=null!=(n=a.slotIdExitedTrigger)&&n.triggeringSlotId?new dM(PI,a.slotIdExitedTrigger.triggeringSlotId,a.id):new RI("Not able to create SkipRequestedTrigger")}else if(a.surveySubmittedTrigger){var p;b=null!=(p=a.surveySubmittedTrigger)&&p.triggeringLayoutId?new iM(PI,a.surveySubmittedTrigger.triggeringLayoutId,a.id):new RI("Not able to create SurveySubmittedTrigger")}else{if(a.mediaResumedTrigger)a=a.mediaResumedTrigger&&a.id?new YEa(a.id):new RI("Not able to create MediaResumedTrigger");else{if(a.closeRequestedTrigger){var q;
b=null!=(q=a.closeRequestedTrigger)&&q.triggeringLayoutId?new SL(PI,a.closeRequestedTrigger.triggeringLayoutId,a.id):new RI("Not able to create CloseRequestedTrigger")}else if(a.slotIdScheduledTrigger){var r;b=null!=(r=a.slotIdScheduledTrigger)&&r.triggeringSlotId?new gM(PI,a.slotIdScheduledTrigger.triggeringSlotId,a.id):new RI("Not able to create SlotIdScheduledTrigger")}else{if(a.mediaTimeRangeTrigger){var t;d=Number(null==(t=a.mediaTimeRangeTrigger)?void 0:t.offsetStartMilliseconds);var v;h=Number(null==
(v=a.mediaTimeRangeTrigger)?void 0:v.offsetEndMilliseconds);isFinite(d)&&isFinite(h)?(v=h,-1===v&&(v=c),c=d>v?new RI("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:d,offsetEndMs:v},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",v===c&&d-500<=v):new Kv(d,v),a=c instanceof RI?c:new YL(PI,b,c,!1,a.id)):a=new RI("Not able to create MediaTimeRangeTrigger")}else if(a.contentVideoIdEndedTrigger)a=a.contentVideoIdEndedTrigger?new TL(PI,b,!1,a.id):new RI("Not able to create ContentVideoIdEndedTrigger");
else{if(a.layoutIdEnteredTrigger){var w;b=null!=(w=a.layoutIdEnteredTrigger)&&w.triggeringLayoutId?new VL(PI,a.layoutIdEnteredTrigger.triggeringLayoutId,a.id):new RI("Not able to create LayoutIdEnteredTrigger")}else if(a.timeRelativeToLayoutEnterTrigger){var A;b=null!=(A=a.timeRelativeToLayoutEnterTrigger)&&A.triggeringLayoutId?new jM(PI,Number(a.timeRelativeToLayoutEnterTrigger.durationMs),a.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,a.id):new RI("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(a.onDifferentLayoutIdEnteredTrigger){var C;
b=null!=(C=a.onDifferentLayoutIdEnteredTrigger)&&C.triggeringLayoutId&&a.onDifferentLayoutIdEnteredTrigger.slotType&&a.onDifferentLayoutIdEnteredTrigger.layoutType?new ZL(PI,a.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,a.onDifferentLayoutIdEnteredTrigger.slotType,a.onDifferentLayoutIdEnteredTrigger.layoutType,a.id):new RI("Not able to create CloseRequestedTrigger")}else b=new RI("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};
TFa=function(a,b,c,d,e,f,h,l){return null===b?new RI("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:d}):[SFa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new SI([new XH(d),new aI(e)]);n=wJ(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ya:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Bb:new Map,
layoutExitNormalTriggers:[new aM(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"core",Aa:q,ac:m(r),adLayoutLoggingData:p}})]};
UFa=function(a,b,c,d,e,f,h,l){return null===b?new RI("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:b,TopBannerImageTextIconButtonedLayoutViewModel:d}):[SFa(a,b,h,f,function(m){var n=m.slotId;m=l(m);var p=d.adLayoutLoggingData,q=new SI([new YH(d),new aI(e)]);n=wJ(c.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",n);var r={layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Ya:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
Bb:new Map,layoutExitNormalTriggers:[new aM(c.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"core",Aa:q,ac:m(r),adLayoutLoggingData:p}})]};
YFa=function(a,b,c,d,e,f){if(!f)for(b=g.u(b),f=b.next();!f.done;f=b.next())f=f.value,DM(a,f.renderer,f.config.adPlacementConfig.kind);a=Array.from(a.values()).filter(function(p){return VFa(p)});
b=[];f=g.u(a);for(var h=f.next(),l={};!h.done;l={wv:void 0},h=f.next()){l.wv=h.value;h=g.u(l.wv.UM);for(var m=h.next(),n={};!m.done;n={Ym:void 0},m=h.next())n.Ym=m.value,m=function(p,q){return function(r){return p.Ym.JN(r,q.wv.instreamVideoAdRenderer.elementId,p.Ym.TM)}}(n,l),n.Ym.isContentVideoCompanion?b.push(WFa(c,d,e,l.wv.instreamVideoAdRenderer.elementId,n.Ym.associatedCompositePlayerBytesLayoutId,n.Ym.adSlotLoggingData,m)):1<a.length?b.push(XFa(c,d,e,l.wv.instreamVideoAdRenderer.elementId,n.Ym.adSlotLoggingData,
function(p,q){return function(r){return p.Ym.JN(r,q.wv.instreamVideoAdRenderer.elementId,p.Ym.TM,p.Ym.associatedCompositePlayerBytesLayoutId)}}(n,l))):b.push(XFa(c,d,e,l.wv.instreamVideoAdRenderer.elementId,n.Ym.adSlotLoggingData,m))}return b};
DM=function(a,b,c){if(b=ZFa(b)){b=g.u(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.externalVideoId){var e=$Fa(a,d.externalVideoId);e.instreamVideoAdRenderer||(e.instreamVideoAdRenderer=d,e.lE=c)}else kG("InstreamVideoAdRenderer without externalVideoId")}};
ZFa=function(a){var b=[],c=a.sandwichedLinearAdRenderer&&a.sandwichedLinearAdRenderer.linearAd&&g.V(a.sandwichedLinearAdRenderer.linearAd,nM);if(c)return b.push(c),b;if(a.instreamVideoAdRenderer)return b.push(a.instreamVideoAdRenderer),b;if(a.linearAdSequenceRenderer&&a.linearAdSequenceRenderer.linearAds){a=g.u(a.linearAdSequenceRenderer.linearAds);for(c=a.next();!c.done;c=a.next())c=c.value,g.V(c,nM)&&b.push(g.V(c,nM));return b}return null};
VFa=function(a){if(void 0===a.instreamVideoAdRenderer)return kG("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.u(a.UM),c=b.next();!c.done;c=b.next()){c=c.value;if(void 0===c.JN)return!1;if(void 0===c.TM)return kG("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(void 0===a.lE||void 0===c.mH||a.lE!==c.mH&&"AD_PLACEMENT_KIND_SELF_START"!==c.mH)return!1;if(void 0===a.instreamVideoAdRenderer.elementId)return kG("InstreamVideoAdRenderer has no elementId",
void 0,void 0,{kind:a.lE,"matching APSR kind":c.mH}),!1}return!0};
$Fa=function(a,b){a.has(b)||a.set(b,{instreamVideoAdRenderer:void 0,lE:void 0,adVideoId:b,UM:[]});return a.get(b)};
EM=function(a,b,c,d,e,f,h,l,m){e?$Fa(a,e).UM.push({Pmb:b,mH:c,isContentVideoCompanion:d,TM:h,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:l,JN:m}):kG("Companion AdPlacementSupportedRenderer without adVideoId")};
aGa=function(a){var b,c=null==(b=TI(a.Aa,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=TI(a.Aa,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=TI(a.Aa,"metadata_type_content_cpn"),f=TI(a.Aa,"metadata_type_instream_ad_player_overlay_renderer"),h=TI(a.Aa,"metadata_type_player_underlay_renderer"),l=TI(a.Aa,"metadata_type_ad_placement_config"),m=TI(a.Aa,"metadata_type_video_length_seconds");var n=NI(a.Aa,"metadata_type_layout_enter_ms")&&NI(a.Aa,
"metadata_type_layout_exit_ms")?(TI(a.Aa,"metadata_type_layout_exit_ms")-TI(a.Aa,"metadata_type_layout_enter_ms"))/1E3:void 0;return{fq:d,contentCpn:e,jR:c,VM:b,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:l,videoLengthSeconds:m,FJ:n,inPlayerLayoutId:TI(a.Aa,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:TI(a.Aa,"metadata_type_linked_in_player_slot_id")}};
dGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){d=JJ(d,"SLOT_TYPE_PLAYER_BYTES");a=bGa(e,a,h,c,d,m,n);if(a instanceof RI)return a;var w;n=null==(w=TI(a.Aa,"metadata_type_fulfilled_layout"))?void 0:w.layoutId;if(!n)return new RI("Invalid adNotify layout");b=cGa(n,e,f,c,l,b,m,p,q,r,t,v,h);return b instanceof RI?b:[a].concat(g.qa(b))};
cGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=eGa(b,c,d,f,h,l,m,n,p,q,r);if(c instanceof RI)return c;a=fGa(b,a,h,e,c);return a instanceof RI?a:[].concat(g.qa(a.og),[a.gx])};
hGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=eGa(a,b,c,e,f,l,m,n,p,q,r,t);if(b instanceof RI)return b;a=gGa(a,c,f,h,d,l.dc,b);return a instanceof RI?a:a.og.concat(a.gx)};
eGa=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=FM(d,c,n);return r instanceof QI?new RI(r):n.J.U().experiments.jb("html5_refactor_in_player_slot_generation")?function(t){var v=new QL(0,[r.Uo]);t=iGa(b,r.layoutId,r.Do,c,GM(r.playerVars,r.gB,f,m,v),r.Uo,e,v,h(t),l.get(r.Do.externalVideoId),q);v=[];if(r.Do.playerOverlay.instreamAdPlayerOverlayRenderer){var w=aGa(t);if(!w)return kG("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,og:[]};
v=[jGa(a,w.contentCpn,w.fq,function(C){return HM(b,C.slotId,"core",w,XI(p,C))},w.inPlayerSlotId)].concat(g.qa(v));
if(w.instreamAdPlayerUnderlayRenderer&&kGa(n)){var A=w.instreamAdPlayerUnderlayRenderer;v=[lGa(a,w.contentCpn,w.fq,function(C){return mGa(b,C.slotId,A,w.adPlacementConfig,w.fq,XI(p,C))})].concat(g.qa(v))}}return{layout:t,
og:v}}:function(t){var v=new QL(0,[r.Uo]);
return{layout:iGa(b,r.layoutId,r.Do,c,GM(r.playerVars,r.gB,f,m,v),r.Uo,e,v,h(t),l.get(r.Do.externalVideoId),q),og:[]}}};
FM=function(a,b,c){if(!a.playerVars)return new QI("No playerVars available in InstreamVideoAdRenderer.");var d,e;if(null==a.elementId||null==a.playerVars||null==a.playerOverlay||null==(null==(d=a.playerOverlay)?void 0:d.instreamAdPlayerOverlayRenderer)&&null==(null==(e=a.playerOverlay)?void 0:e.playerOverlayLayoutRenderer)||null==a.pings||null==a.externalVideoId)return new QI("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:a});d=kB(a.playerVars);e=Number(d.length_seconds);
isNaN(e)&&(e=0,kG("Expected valid length seconds in player vars but got NaN"));if(c.rd("AD_PLACEMENT_KIND_START"===b.kind)){if(void 0===a.layoutId)return new QI("Expected server generated layout ID in instreamVideoAdRenderer");b=a.layoutId}else b=a.elementId;return{layoutId:b,Do:a,playerVars:d,gB:a.playerVars,Uo:e}};
GM=function(a,b,c,d,e){a.iv_load_policy=d;b=kB(b);if(b.cta_conversion_urls)try{a.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(f){kG(f)}c.Wi&&(a.ctrl=c.Wi);c.Bj&&(a.ytr=c.Bj);c.zv&&(a.ytrcc=c.zv);c.isMdxPlayback&&(a.mdx="1");a.vvt&&(a.vss_credentials_token=a.vvt,c.Nm&&(a.vss_credentials_token_type=c.Nm),c.mdxEnvironment&&(a.mdx_environment=c.mdxEnvironment));2<=e.B&&(a.slot_pos=e.j);a.autoplay="1";return a};
nGa=function(a){var b=new Map;a=g.u(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.renderer.remoteSlotsRenderer)&&c.hostElementId&&b.set(c.hostElementId,c);return b};
qGa=function(a,b,c,d,e,f,h,l,m,n,p){for(var q=[],r=g.u(a),t=r.next();!t.done;t=r.next()){t=t.value;var v;if(v=!rFa(t)){var w=void 0;v="SLOT_TYPE_IN_PLAYER"!==(null==t?void 0:null==(w=t.adSlotMetadata)?void 0:w.slotType)}if(v){w="SLOT_TYPE_PLAYER_BYTES"===t.adSlotMetadata.slotType&&!!t.slotEntryTrigger.beforeContentVideoIdStartedTrigger;var A=m.rd(w),C=oGa(t,n,d,c.Es,A);if(C instanceof RI)return C;var F=[];c.dc&&F.push(new KI({}));var G=void 0;v={slotId:t.adSlotMetadata.slotId,slotType:t.adSlotMetadata.slotType,
slotPhysicalPosition:null!=(G=t.adSlotMetadata.slotPhysicalPosition)?G:1,Ya:"core",slotEntryTrigger:C.slotEntryTrigger,slotFulfillmentTriggers:C.slotFulfillmentTriggers,slotExpirationTriggers:C.slotExpirationTriggers};if(C=g.V(t.fulfillmentContent.fulfilledLayout,mFa)){if(!rM(C))return new RI("Invalid PlayerBytesAdLayoutRenderer");A=pGa(v,t.adSlotMetadata.triggerEvent,C,b,c,d,e,f,h,l,m,n,a,p,A);if(A instanceof RI)return A;F.push(new MI(w));t=Object.assign({},v,{Aa:new SI(F),fulfilledLayout:A.layout,
adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push.apply(q,g.qa(A.og));q.push(t)}else if(w=g.V(t.fulfillmentContent.fulfilledLayout,tM),A=F=void 0,"LAYOUT_TYPE_PANEL_QR_CODE"!==(null==(F=w)?void 0:null==(A=F.adLayoutMetadata)?void 0:A.layoutType))if(w){if(!qFa(w))return new RI("Invalid PlayerUnderlayAdLayoutRenderer");F=w;C=d;var L=c.Es;G=f;A=v;w=t.adSlotMetadata.triggerEvent;if("LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE"===F.adLayoutMetadata.layoutType){var M=g.V(F.renderingContent,
sM);if(M)if(M=g.V(M.sidePanel,pFa)){var R={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,Ya:"core"};C=IM(F,C,L);w=C instanceof RI?C:Object.assign({},R,{renderingContent:F.renderingContent,Bb:new Map([["impression",M.impressionPings||[]],["resume",M.resumePings||[]]])},C,{ac:XI(G,A)(R),Aa:new SI([new aI(JM(w))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})}else w=new RI("DismissablePanelTextPortraitImageRenderer is missing");else w=new RI("SqueezebackPlayerSidePanelRenderer is missing")}else"LAYOUT_TYPE_DISPLAY_TRACKING"===
F.adLayoutMetadata.layoutType?g.V(F.renderingContent,nFa)?(M={layoutId:F.adLayoutMetadata.layoutId,layoutType:F.adLayoutMetadata.layoutType,Ya:"core"},C=IM(F,C,L),w=C instanceof RI?C:Object.assign({},M,{renderingContent:F.renderingContent,Bb:new Map},C,{ac:XI(G,A)(M),Aa:new SI([new aI(JM(w))]),adLayoutLoggingData:F.adLayoutMetadata.adLayoutLoggingData})):w=new RI("CounterfactualRenderer is missing"):w=new RI("LayoutType ["+F.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");if(w instanceof
RI)return w;t=Object.assign({},v,{Aa:new SI([]),fulfilledLayout:w,adSlotLoggingData:t.adSlotMetadata.adSlotLoggingData});q.push(t)}else return new RI("Unable to retrieve a client slot ["+v.slotType+"] from a given AdSlotRenderer")}}return q};
pGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v){var w=IM(c,f,e.Es);if(w instanceof RI)return w;if(g.V(c.renderingContent,nM)){m=rGa([c],e,m);if(m instanceof RI)return m;if(1!==m.length)return new RI("Only expected one media layout.");a=sGa(a,b,c,w,m[0],void 0,"core",d,f,h,l,n,r,t,v,e.Es,q);return a instanceof RI?a:{layout:a.layout,og:a.qf?[a.qf]:[]}}var A=g.V(c.renderingContent,kFa);if(A){if(!lM(c.adLayoutMetadata))return new RI("Invalid ad layout metadata");if(!lFa(A))return new RI("Invalid sequential layout");
A=A.sequentialLayouts.map(function(C){return C.playerBytesAdLayoutRenderer});
a=tGa(a,b,c.adLayoutMetadata,w,A,d,f,e,m,h,l,n,p,q,v,r,t);return a instanceof RI?a:{layout:a.r6,og:a.og}}return new RI("Not able to convert a sequential layout")};
tGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A){var C=new eI({current:null}),F=rGa(e,l,m);if(F instanceof RI)return F;m=[];for(var G=[],L=void 0,M=0;M<e.length;M++){var R=e[M];if(g.V(R.renderingContent,nM)){L=sGa(a,b,R,uGa,F[M],wL(r)&&xL(r)?F[M+1]:void 0,"adapter",f,h,n,p,q,w,A,v,l.Es,t,C);if(L instanceof RI)return L;m.push(L.layout);L.qf&&G.push(L.qf);L=F[M]}else if(g.V(R.renderingContent,oM)){var ea=a,ma=p;if(rM(R)){var oa=g.V(R.renderingContent,oM);if(oa&&void 0!==oa.playerVars){var ia={layoutId:R.adLayoutMetadata.layoutId,
layoutType:R.adLayoutMetadata.layoutType,Ya:"adapter"};oa=kB(oa.playerVars);oa.autoplay="1";R=Object.assign({},ia,uGa,{renderingContent:R.renderingContent,Aa:new SI([new BI({}),new aI({kind:"AD_PLACEMENT_KIND_START"}),new qI({current:null}),new uI(oa)]),Bb:new Map,ac:XI(ma,ea)(ia),adLayoutLoggingData:R.adLayoutMetadata.adLayoutLoggingData})}else R=new RI("Invalid ad intro renderer")}else R=new RI("Invalid PlayerBytesAdLayoutRenderer");if(R instanceof RI)return R;m.push(R)}else if(g.V(R.renderingContent,
gK))if(A){R=vGa(a,R,p,JM(b),L);if(R instanceof RI)return R;m.push(R);R=wGa(w,R,h,l.Es,p,t,v,C);if(R instanceof RI)return R;if(R)G.push(R);else return new RI("Not able to retrieve InPlayer slot for endcap")}else{a:{ea=R.adLayoutMetadata.layoutId;ma=g.u(f);for(ia=ma.next();!ia.done;ia=ma.next()){ia=ia.value;var va=oa=void 0,aa=(null==(oa=ia.renderer)?void 0:null==(va=oa.linearAdSequenceRenderer)?void 0:va.linearAds)||[];oa=g.u(aa);for(va=oa.next();!va.done;va=oa.next())if((va=g.V(va.value,gK))&&void 0!==
va.inPlayerSlotId&&void 0!==va.inPlayerLayoutId&&void 0!==va.associatedPlayerBytesLayoutId&&va.associatedPlayerBytesLayoutId===ea){ea={dI:va,adPlacementConfig:ia.config.adPlacementConfig};break a}}ea=new RI("Not able to find associated InPlayer slot for endcap")}if(ea instanceof RI)return ea;R=vGa(a,R,p,ea.adPlacementConfig,L);if(R instanceof RI)return R;m.push(R);R=xGa(R.layoutId,t,h,ea,C,p);if(R instanceof RI)return R;G.push(R)}}b={layoutId:c.layoutId,layoutType:c.layoutType,Ya:"core"};return{r6:Object.assign({},
b,d,{Ex:m,Bb:new Map,Aa:new SI([C]),ac:XI(p,a)(b)}),og:G}};
sGa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C){if(!rM(c))return new RI("Invalid PlayerBytesAdLayoutRenderer");var F=g.V(c.renderingContent,nM);(null==F?0:F.pings)?F=RJ(F.pings):(F=g.V(c.renderingContent,gK),F=(null==F?0:F.skipPings)?new Map([["skip",F.skipPings]]):new Map);if(F instanceof RI)return F;h={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,Ya:h};a:{var G=c.adLayoutMetadata.layoutId,L=g.V(c.renderingContent,nM);if(L&&mM(L)){var M=[];if(t)M.push(new aI(JM(b)));
else{b:{l=g.u(l);for(b=l.next();!b.done;b=l.next()){b=b.value;var R=ZFa(b.renderer)||[],ea=g.u(R);for(R=ea.next();!R.done;R=ea.next())if(R=R.value,R.associatedPlayerBytesLayoutId===G){R.associatedPlayerBytesLayoutId?(l=R.playerOverlay,ea=void 0!==l&&void 0!==l.playerOverlayLayoutRenderer&&void 0!==l.playerOverlayLayoutRenderer.inPlayerSlotId&&void 0!==l.playerOverlayLayoutRenderer.inPlayerLayoutId,l=void 0!==l&&void 0!==l.instreamAdPlayerOverlayRenderer&&void 0!==l.instreamAdPlayerOverlayRenderer.inPlayerSlotId&&
void 0!==l.instreamAdPlayerOverlayRenderer.inPlayerLayoutId||ea):l=!1;b=l?{instreamVideoAdRenderer:R,adPlacementConfig:b.config.adPlacementConfig}:new RI("Invalid InPlayer shim");break b}}b=new RI("Not able to find associated InPlayer slot")}if(b instanceof RI){f=b;break a}l=b.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;R=b.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var ma;ea=null!=(ma=null==l?void 0:l.inPlayerSlotId)?ma:null==R?void 0:R.inPlayerSlotId;
var oa;ma=null!=(oa=null==l?void 0:l.inPlayerLayoutId)?oa:null==R?void 0:R.inPlayerLayoutId;if(void 0===ea){f=new RI("InPlayer shim slot id is undefined");break a}if(void 0===ma){f=new RI("InPlayer shim layout id is undefined");break a}M.push(new nI(ma),new pI(ea),new zI(e.bv.j),new aI(b.adPlacementConfig));l&&M.push(new hI(l));R&&M.push(new iI(R))}M.push(new bI(e.bv),new fI(L.externalVideoId),new gI(m),new JI({impressionCommands:L.impressionCommands,abandonCommands:L.onAbandonCommands,completeCommands:L.completeCommands,
progressCommands:L.adVideoProgressCommands}),new uI(e.TC),new qI({current:null}),new tI(e.Lba.Uo),new LI(QJ(L.pings)),new cI(e.bv.j));(e=yGa(G,r))&&M.push(new kI(e));f&&M.push(new vI(f.TC));L.adNextParams&&M.push(new ZH(L.adNextParams));L.clickthroughEndpoint&&M.push(new $H(L.clickthroughEndpoint));L.legacyInfoCardVastExtension&&M.push(new II(L.legacyInfoCardVastExtension));L.sodarExtensionData&&M.push(new wI(L.sodarExtensionData));C&&L.adPodSkipTarget&&0<L.adPodSkipTarget&&(M.push(C),M.push(new dI(L.adPodSkipTarget)));
(f=n.get(L.externalVideoId))&&M.push(new FI(f));f=M}else f=new RI("Invalid vod media renderer")}if(f instanceof RI)return f;a=Object.assign({},h,d,{Bb:F,renderingContent:c.renderingContent,Aa:new SI(f),ac:XI(p,a)(h),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData});c=g.V(c.renderingContent,nM);if(!c||!mM(c))return new RI("Invalid meida renderer");q=$Fa(q,c.externalVideoId);q.instreamVideoAdRenderer=c;q.lE="AD_PLACEMENT_KIND_START";return t?(m=wGa(r,a,m,w,p,A,v,C),m instanceof RI?m:yGa(a.layoutId,
r)&&m?{layout:Object.assign({},a,{Aa:new SI(f.concat(new hAa(m)))})}:{layout:a,qf:m}):{layout:a}};
vGa=function(a,b,c,d,e){if(!rM(b))return new RI("Invalid PlayerBytesAdLayoutRenderer");var f=g.V(b.renderingContent,gK);if(!f||void 0===f.durationMilliseconds)return new RI("Invalid endcap renderer");var h={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,Ya:"adapter"};d=[new HI(f.durationMilliseconds),new JI({impressionCommands:void 0,abandonCommands:f.abandonCommands?[{commandExecutorCommand:f.abandonCommands}]:void 0,completeCommands:f.completionCommands}),new aI(d),
new oI("LAYOUT_TYPE_ENDCAP")];if(e){d.push(new cI(e.bv.j-1));d.push(new zI(e.bv.j));var l;d.push(new dI(null!=(l=e.adPodSkipTarget)?l:-1))}return Object.assign({},h,uGa,{renderingContent:b.renderingContent,Aa:new SI(d),Bb:f.skipPings?new Map([["skip",f.skipPings]]):new Map,ac:XI(c,a)(h),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData})};
wGa=function(a,b,c,d,e,f,h,l){a=a.filter(function(n){return"SLOT_TYPE_IN_PLAYER"===n.adSlotMetadata.slotType&&n.adSlotMetadata.triggeringSourceLayoutId===b.layoutId});
if(0!==a.length){if(1!==a.length)return new RI("Invalid InPlayer slot association for the given PlayerBytes layout");a=a[0];h=oGa(a,f,c,d,h);if(h instanceof RI)return h;var m;f={slotId:a.adSlotMetadata.slotId,slotType:a.adSlotMetadata.slotType,slotPhysicalPosition:null!=(m=a.adSlotMetadata.slotPhysicalPosition)?m:1,Ya:"core",slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers};m=g.V(a.fulfillmentContent.fulfilledLayout,
sFa);if(!m||!jFa(m))return new RI("Invalid InPlayerAdLayoutRenderer");h={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,Ya:"core"};c=IM(m,c,d);if(c instanceof RI)return c;d=[];if("LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===m.adLayoutMetadata.layoutType)d.push.apply(d,g.qa(zGa(a.adSlotMetadata.triggerEvent,b)));else if("LAYOUT_TYPE_ENDCAP"===m.adLayoutMetadata.layoutType)d.push(new aI(JM(a.adSlotMetadata.triggerEvent))),l&&d.push(l);else return new RI("Not able to parse an SDF InPlayer layout");
e=Object.assign({},h,c,{renderingContent:m.renderingContent,Bb:new Map,ac:XI(e,f)(h),Aa:new SI(d),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},f,{fulfilledLayout:e,Aa:new SI([])})}};
zGa=function(a,b){var c=[];c.push(new aI(JM(a)));c.push(new mI(b.layoutId));(a=TI(b.Aa,"metadata_type_player_bytes_callback_ref"))&&c.push(new qI(a));(a=TI(b.Aa,"metadata_type_ad_pod_skip_target_callback_ref"))&&c.push(new eI(a));(a=TI(b.Aa,"metadata_type_remote_slots_data"))&&c.push(new FI(a));(a=TI(b.Aa,"metadata_type_ad_next_params"))&&c.push(new ZH(a));(a=TI(b.Aa,"metadata_type_ad_video_clickthrough_endpoint"))&&c.push(new $H(a));(a=TI(b.Aa,"metadata_type_ad_pod_info"))&&c.push(new bI(a));(b=
TI(b.Aa,"metadata_type_ad_video_id"))&&c.push(new fI(b));return c};
xGa=function(a,b,c,d,e,f){function h(n){return KM(b,n)}
var l=d.dI.inPlayerSlotId,m={layoutId:d.dI.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",Ya:"core"};c={slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:new VL(h,a),slotFulfillmentTriggers:[new cM(h,l)],slotExpirationTriggers:[new dM(h,l),new aM(h,c)]};a=Object.assign({},m,{layoutExitNormalTriggers:[new XL(h,a)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Bb:new Map,Aa:new SI([new lI(d.dI),new aI(d.adPlacementConfig),
e]),ac:XI(f,c)(m),adLayoutLoggingData:d.dI.adLayoutLoggingData});return Object.assign({},c,{Aa:new SI([new DI(a)])})};
yGa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,"SLOT_TYPE_PLAYER_UNDERLAY"===c.adSlotMetadata.slotType){var d=g.V(c.fulfillmentContent.fulfilledLayout,tM);if(d&&(d=g.V(d.renderingContent,sM))&&d.associatedPlayerBytesLayoutId===a)return c}};
oGa=function(a,b,c,d,e){var f=AGa(CM(a.slotEntryTrigger,c,d),e,a,b);if(f instanceof RI)return f;for(var h=[],l=g.u(a.slotFulfillmentTriggers),m=l.next();!m.done;m=l.next()){m=CM(m.value,c,d);if(m instanceof RI)return m;h.push(m)}h=BGa(h,e,a,b);b=[];a=g.u(a.slotExpirationTriggers);for(e=a.next();!e.done;e=a.next()){e=CM(e.value,c,d);if(e instanceof RI)return e;b.push(e)}return{slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b}};
AGa=function(a,b,c,d){return b&&"SLOT_TYPE_PLAYER_BYTES"===c.adSlotMetadata.slotType&&a instanceof RL?new PL(function(e){return KM(d,e)},c.adSlotMetadata.slotId):a};
BGa=function(a,b,c,d){return b&&"SLOT_TYPE_PLAYER_BYTES"===c.adSlotMetadata.slotType?a.map(function(e){return e instanceof cM?new gM(function(f){return KM(d,f)},c.adSlotMetadata.slotId):e}):a};
IM=function(a,b,c){for(var d=[],e=g.u(a.layoutExitNormalTriggers||[]),f=e.next();!f.done;f=e.next()){f=CM(f.value,b,c);if(f instanceof RI)return f;d.push(f)}e=[];f=g.u(a.layoutExitSkipTriggers||[]);for(var h=f.next();!h.done;h=f.next()){h=CM(h.value,b,c);if(h instanceof RI)return h;e.push(h)}f=[];h=g.u(a.layoutExitMuteTriggers||[]);for(var l=h.next();!l.done;l=h.next()){l=CM(l.value,b,c);if(l instanceof RI)return l;f.push(l)}h=[];a=g.u(a.layoutExitUserInputSubmittedTriggers||[]);for(l=a.next();!l.done;l=
a.next()){l=CM(l.value,b,c);if(l instanceof RI)return l;h.push(l)}return{layoutExitNormalTriggers:d,layoutExitSkipTriggers:e,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:h,Tc:[]}};
rGa=function(a,b,c){for(var d=[],e=g.u(a),f=e.next();!f.done;f=e.next())if(f=g.V(f.value.renderingContent,nM)){if(!mM(f))return new RI("Invalid vod media renderer");d.push(CGa(f))}e=d.map(function(q){return q.Uo});
f=[];for(var h=0,l=0;l<a.length;l++){var m=g.V(a[l].renderingContent,nM);if(m){var n=new QL(h,e),p=GM(d[h].playerVars,d[h].gB,b,c,n);f[l]={bv:n,adPodSkipTarget:m.adPodSkipTarget,Lba:d[h],TC:p};h++}}return f};
CGa=function(a){var b=kB(a.playerVars),c=Number(b.length_seconds);isNaN(c)&&(c=0,kG("Expected valid length seconds in player vars but got NaN"));return{playerVars:b,gB:a.playerVars,Uo:c}};
JM=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"}}};
DGa=function(a){var b=0;a=g.u(a.questions);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c=g.V(c,uM)||g.V(c,vM)){var d=void 0;b+=(null==(d=c.surveyAdQuestionCommon)?void 0:d.durationMilliseconds)||0}return b};
EGa=function(a){var b,c,d,e,f=(null==(c=g.V(null==(b=a.questions)?void 0:b[0],uM))?void 0:c.surveyAdQuestionCommon)||(null==(e=g.V(null==(d=a.questions)?void 0:d[0],vM))?void 0:e.surveyAdQuestionCommon),h;b=[].concat(g.qa((null==(h=a.playbackCommands)?void 0:h.instreamAdCompleteCommands)||[]),g.qa((null==f?void 0:f.timeoutCommands)||[]));var l,m,n,p,q,r,t,v,w,A,C,F,G,L,M,R,ea,ma,oa,ia;return{impressionCommands:null==(l=a.playbackCommands)?void 0:l.impressionCommands,errorCommands:null==(m=a.playbackCommands)?
void 0:m.errorCommands,muteCommands:null==(n=a.playbackCommands)?void 0:n.muteCommands,unmuteCommands:null==(p=a.playbackCommands)?void 0:p.unmuteCommands,pauseCommands:null==(q=a.playbackCommands)?void 0:q.pauseCommands,rewindCommands:null==(r=a.playbackCommands)?void 0:r.rewindCommands,resumeCommands:null==(t=a.playbackCommands)?void 0:t.resumeCommands,skipCommands:null==(v=a.playbackCommands)?void 0:v.skipCommands,progressCommands:null==(w=a.playbackCommands)?void 0:w.progressCommands,fnb:null==
(A=a.playbackCommands)?void 0:A.clickthroughCommands,fullscreenCommands:null==(C=a.playbackCommands)?void 0:C.fullscreenCommands,activeViewViewableCommands:null==(F=a.playbackCommands)?void 0:F.activeViewViewableCommands,activeViewMeasurableCommands:null==(G=a.playbackCommands)?void 0:G.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:null==(L=a.playbackCommands)?void 0:L.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:null==(M=a.playbackCommands)?
void 0:null==(R=M.activeViewTracking)?void 0:R.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:null==(ea=a.playbackCommands)?void 0:null==(ma=ea.activeViewTracking)?void 0:ma.activeViewAudioMeasurableCommands,endFullscreenCommands:null==(oa=a.playbackCommands)?void 0:oa.endFullscreenCommands,abandonCommands:null==(ia=a.playbackCommands)?void 0:ia.abandonCommands,completeCommands:b}};
HGa=function(a,b,c,d,e,f,h){return function(l,m){return FGa(a,m.slotId,l,f,function(n,p){var q=m.layoutId;n=h(n);return GGa(b,q,p,e,n,"LAYOUT_TYPE_SURVEY",[new lAa(c),d],c.adLayoutLoggingData)})}};
KGa=function(a,b,c,d,e,f,h){if(!IGa(a))return new RI("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:a});var l=a.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[JGa(f,b,c,d,function(m){var n=m.slotId;m=h(m);n=wJ(e.B.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Ya:"core"},q=new XL(e.j,d);return{layoutId:n,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Bb:new Map,layoutExitNormalTriggers:[q],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"core",Aa:new SI([new mAa(l)]),ac:m(p)}})]};
IGa=function(a){a=g.V(null==a?void 0:a.additionalPlayerOverlay,LGa);if(!a)return!1;var b=a.slidingMessages;return a.title&&b&&0!==b.length?!0:!1};
NGa=function(a,b,c,d,e){var f;if(null==(f=a.playerOverlay)||!f.instreamSurveyAdRenderer)return function(){return[]};
if(!DFa(a))return function(){return new RI("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:a})};
var h=a.playerOverlay.instreamSurveyAdRenderer,l=DGa(h);return 0>=l?function(){return new RI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h})}:function(m,n){var p=MGa(m,c,d,function(q){var r=q.slotId;
q=n(q);var t=EGa(h);r=wJ(e.B.get(),"LAYOUT_TYPE_SURVEY",r);var v={layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Ya:"core"},w=new XL(e.j,d),A=new bM(e.j,r),C=new iM(e.j,r),F=new cFa(e.j);return{layoutId:r,layoutType:"LAYOUT_TYPE_SURVEY",Bb:new Map,layoutExitNormalTriggers:[w,F],layoutExitSkipTriggers:[A],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[C],Tc:[],Ya:"core",Aa:new SI([new kAa(h),new aI(b),new GI(l/1E3),new JI(t)]),ac:q(v),adLayoutLoggingData:h.adLayoutLoggingData}});
m=KGa(a,c,p.slotId,d,e,m,n);return m instanceof RI?m:[p].concat(g.qa(m))}};
VGa=function(a,b,c,d,e,f,h){h=void 0===h?!1:h;var l=[];try{var m=[];if(c.renderer.linearAdSequenceRenderer)var n=function(w){w=OGa(w.slotId,c,b,e(w),d,f,h);m=w.jda;return w.F6};
else if(c.renderer.instreamVideoAdRenderer)n=function(w){var A=w.slotId;w=e(w);var C=h,F=c.config.adPlacementConfig,G=PGa(F),L=G.GW,M=G.KW;G=c.renderer.instreamVideoAdRenderer;var R;if(null==G?0:null==(R=G.playerOverlay)?0:R.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var ea=QGa(G,C);R=Math.min(L+1E3*ea.videoLengthSeconds,M);C=new QL(0,[ea.videoLengthSeconds]);M=ea.videoLengthSeconds;var ma=ea.playerVars,oa=ea.instreamAdPlayerOverlayRenderer,ia=
ea.adVideoId,va=RGa(c),aa=ea.Bb;ea=ea.sV;var U=null==G?void 0:G.adLayoutLoggingData;G=null==G?void 0:G.sodarExtensionData;A=wJ(b.B.get(),"LAYOUT_TYPE_MEDIA",A);var La={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"core"};return{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA",Bb:aa,layoutExitNormalTriggers:[new WEa(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"core",Aa:new SI([new gI(d),new tI(M),new uI(ma),new xI(L),new yI(R),oa&&new hI(oa),
new aI(F),new fI(ia),new bI(C),new CI(va),G&&new wI(G),new qI({current:null}),new AI({}),new LI(ea)].filter(SGa)),ac:w(La),adLayoutLoggingData:U}};
else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var p=TGa(a,d,c.adSlotLoggingData,n);l.push(p);for(var q=g.u(m),r=q.next();!r.done;r=q.next()){var t=r.value,v=t(a,e);if(v instanceof RI)return v;l.push.apply(l,g.qa(v))}}catch(w){return new RI(w,{errorMessage:w.message,AdPlacementRenderer:c,numberOfSurveyRenderers:UGa(c)})}return l};
UGa=function(a){a=(a.renderer.linearAdSequenceRenderer||{}).linearAds;return null!=a&&a.length?a.filter(function(b){var c,d;return null!=(null==(c=g.V(b,nM))?void 0:null==(d=c.playerOverlay)?void 0:d.instreamSurveyAdRenderer)}).length:0};
OGa=function(a,b,c,d,e,f,h){var l=b.config.adPlacementConfig,m=PGa(l),n=m.GW,p=m.KW;m=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(null==m||!m.length)throw new TypeError("Expected linear ads");var q=[],r={G0:n,wu:0,gda:q};m=m.map(function(v){return WGa(a,v,r,c,d,l,e,p,h)}).map(function(v,w){w=new QL(w,q);
return v(w)});
var t=m.map(function(v){return v.G6});
return{F6:XGa(c,a,n,t,l,RGa(b),d,p,f),jda:m.map(function(v){return v.ida})}};
WGa=function(a,b,c,d,e,f,h,l,m){var n=QGa(g.V(b,nM),m),p=c.G0,q=c.wu,r=Math.min(p+1E3*n.videoLengthSeconds,l);c.G0=r;c.wu++;c.gda.push(n.videoLengthSeconds);var t,v,w=null==(t=g.V(b,nM))?void 0:null==(v=t.playerOverlay)?void 0:v.instreamSurveyAdRenderer;if("nPpU29QrbiU"===n.adVideoId&&null==w)throw new TypeError("Survey slate media has no survey overlay");return function(A){var C=n.playerVars;2<=A.B&&(C.slot_pos=A.j);C.autoplay="1";var F,G;C=n.videoLengthSeconds;var L=n.playerVars,M=n.Bb,R=n.sV,ea=
n.instreamAdPlayerOverlayRenderer,ma=n.adVideoId,oa=null==(F=g.V(b,nM))?void 0:F.adLayoutLoggingData;F=null==(G=g.V(b,nM))?void 0:G.sodarExtensionData;G=wJ(d.B.get(),"LAYOUT_TYPE_MEDIA",a);var ia={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"adapter"};A={layoutId:G,layoutType:"LAYOUT_TYPE_MEDIA",Bb:M,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"adapter",Aa:new SI([new gI(h),new tI(C),new uI(L),new xI(p),new yI(r),
new zI(q),new qI({current:null}),ea&&new hI(ea),new aI(f),new fI(ma),new bI(A),F&&new wI(F),w&&new sAa(w),new AI({}),new LI(R)].filter(SGa)),ac:e(ia),adLayoutLoggingData:oa};C=NGa(g.V(b,nM),f,h,A.layoutId,d);return{G6:A,ida:C}}};
QGa=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=kB(a.playerVars),d=Number(c.length_seconds);if(isNaN(d))throw new TypeError("Expected valid length seconds in player vars");var e=Number(a.trimmedMaxNonSkippableAdDurationMs);d=isNaN(e)?d:Math.min(d,e/1E3);e=a.playerOverlay||{};e=void 0===e.instreamAdPlayerOverlayRenderer?null:e.instreamAdPlayerOverlayRenderer;var f=c.video_id;
f||(f=(f=a.externalVideoId)?f:void 0);if(!f)throw new TypeError("Expected valid video id in IVAR");if(b&&0===d){var h;b=null!=(h=YGa[f])?h:d}else b=d;return{playerVars:c,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:e,adVideoId:f,Bb:a.pings?RJ(a.pings):new Map,sV:QJ(a.pings)}};
RGa=function(a){a=Number(a.driftRecoveryMs);return isNaN(a)||0>=a?null:a};
PGa=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{GW:b,KW:a}};
$Ga=function(a,b,c,d,e,f,h,l,m){var n=c.pings;return n?[ZGa(a,f,l,e,function(p){var q=p.slotId;p=m(p);var r=c.adLayoutLoggingData;q=wJ(b.B.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",q);var t={layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Ya:"core"},v=RJ(n),w=[new aM(b.j,f)],A;var C=null==n?void 0:null==(A=n.activeViewTracking)?void 0:A.identifier;return{layoutId:q,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",Bb:v,layoutExitNormalTriggers:w,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],
layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"core",Aa:new SI([new aI(d),new LI(QJ(n)),new tAa(C),new tI(h/1E3)]),ac:p(t),adLayoutLoggingData:r}})]:new RI("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:c})};
bHa=function(a,b,c,d,e,f,h,l){a=aHa(a,c,f,h,d,function(m){var n=m.slotId;m=l(m);n=wJ(b.B.get(),"LAYOUT_TYPE_FORECASTING",n);var p={layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Ya:"core"},q=new Map,r=e.impressionUrls;r&&q.set("impression",r);return{layoutId:n,layoutType:"LAYOUT_TYPE_FORECASTING",Bb:q,layoutExitNormalTriggers:[new $L(b.j,n)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"core",Aa:new SI([new pAa(e),new aI(c)]),ac:m(p)}});
return a instanceof RI?a:[a]};
dHa=function(a,b,c,d,e,f,h){return[cHa(a,f,d,function(l){var m=l.slotId;l=h(l);m=wJ(b.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",m);var n={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ya:"core"};return{layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Bb:new Map,layoutExitNormalTriggers:[new aM(b.j,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"core",Aa:new SI([new hI(e),new aI(c)]),ac:l(n),adLayoutLoggingData:e.adLayoutLoggingData}})]};
hHa=function(a,b,c,d,e,f,h,l){a=eHa(a,c,f,h,d,function(m,n){var p=m.slotId;m=l(m);var q=e.contentSupportedRenderer;q?q.textOverlayAdContentRenderer?(q=wJ(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",p),n=fHa(b,q,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e,c,m,gHa(b,n,p))):q.enhancedTextOverlayAdContentRenderer?(q=wJ(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",p),n=fHa(b,q,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e,c,m,gHa(b,n,p))):q.imageOverlayAdContentRenderer?(q=wJ(b.B.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",
p),n=gHa(b,n,p),n.push(new jM(b.j,45E3,q)),n=fHa(b,q,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",e,c,m,n)):n=new QI("InvideoOverlayAdRenderer without appropriate sub renderer"):n=new QI("InvideoOverlayAdRenderer without contentSupportedRenderer");return n});
return a instanceof RI?a:[a]};
kHa=function(a,b,c,d,e,f,h,l,m){var n=Number(d.durationMilliseconds);return isNaN(n)?new RI("Expected valid duration for AdActionInterstitialRenderer."):function(p){return iHa(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 jHa(a,q,e,function(r,t){var v=r.slotId;r=h(r);v=wJ(b.B.get(),"LAYOUT_TYPE_ENDCAP",
v);return GGa(b,v,t,c,r,"LAYOUT_TYPE_ENDCAP",[new lI(d),l],d.adLayoutLoggingData)})},m,f-1,d.adLayoutLoggingData,f)}};
lHa=function(a,b,c,d){if(!c.playerVars)return new RI("No playerVars available in AdIntroRenderer.");var e=kB(c.playerVars);e.autoplay="1";return function(f){var h=f.slotId;f=d(f);h=wJ(a.B.get(),"LAYOUT_TYPE_MEDIA",h);var l={layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Ya:"adapter"};return{vg:{layoutId:h,layoutType:"LAYOUT_TYPE_MEDIA",Bb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"adapter",Aa:new SI([new BI({}),
new aI(b),new qI({current:null}),new uI(e)]),ac:f(l)},Yl:[new WL(a.j,h,["error"])],Nj:[],bz:[],Zy:[]}}};
nHa=function(a,b,c,d,e,f,h,l,m,n){n=void 0===n?!1:n;var p=DGa(e);if(!CFa(e,n))return new RI("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:e});if(0>=p)return new RI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:e});var q=HGa(a,b,e,f,c,d,h);return q instanceof RI?q:function(r){return mHa(b,r.slotId,c,p,e,EGa(e),h(r),q,l,m)}};
pHa=function(a,b,c,d,e,f,h,l){function m(q){return jHa(a,q,d,n)}
function n(q,r){var t=q.slotId;q=h(q);t=wJ(b.B.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",t);return GGa(b,t,r,c,q,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new jAa(e),f],e.adLayoutLoggingData)}
if(!HFa(e))return new RI("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:e});var p=1E3*e.timeoutSeconds;return function(q){var r=q.slotId,t={impressionCommands:e.impressionCommands,completeCommands:e.timeoutCommands,skipCommands:e.dismissCommands};q=h(q);r=oHa(b,r,c,p,t,new Map,q,m,void 0,LM(b,c,e.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));t=new nI(r.nK);q=new cI(l);return{vg:{layoutId:r.layoutId,layoutType:r.layoutType,Bb:r.Bb,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:r.Ya,Aa:new SI([].concat(g.qa(r.Wy),[t,q])),ac:r.ac,adLayoutLoggingData:r.adLayoutLoggingData},Yl:[],Nj:r.layoutExitMuteTriggers,bz:r.layoutExitUserInputSubmittedTriggers,Zy:r.Tc,qf:r.qf}}};
rHa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w){a=JJ(a,"SLOT_TYPE_PLAYER_BYTES");d=bGa(b,h,d,e,a,n,p);if(d instanceof RI)return d;var A;h=null==(A=TI(d.Aa,"metadata_type_fulfilled_layout"))?void 0:A.layoutId;if(!h)return new RI("Invalid adNotify layout");b=qHa(h,b,c,e,f,m,l,n,q,r,t,v,w);return b instanceof RI?b:[d].concat(g.qa(b))};
qHa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){c=sHa(b,c,d,f,h,l,m,n,p,q,r);tHa(f)?(d=uHa(b,a),a=JJ(b.B.get(),"SLOT_TYPE_IN_PLAYER"),f=wJ(b.B.get(),"LAYOUT_TYPE_SURVEY",a),l=vHa(b,d,l),b=[].concat(g.qa(l.slotExpirationTriggers),[new SL(b.j,f)]),a=c({slotId:l.slotId,slotType:l.slotType,slotPhysicalPosition:l.slotPhysicalPosition,slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers,slotExpirationTriggers:b,Ya:l.Ya},{slotId:a,layoutId:f}),e=a instanceof RI?a:{gx:Object.assign({},
l,{slotExpirationTriggers:b,Aa:new SI([new DI(a.layout)]),adSlotLoggingData:e}),og:a.og}):e=fGa(b,a,l,e,c);return e instanceof RI?e:[].concat(g.qa(e.og),[e.gx])};
zHa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){b=sHa(a,b,c,e,f,h,m,n,p,q,r,t);tHa(e)?(e=wHa(a,c,h,l),e instanceof RI?a=e:(l=JJ(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=wJ(a.B.get(),"LAYOUT_TYPE_SURVEY",l),h=[].concat(g.qa(e.slotExpirationTriggers),[new SL(a.j,m)]),l=b({slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,Ya:e.Ya,slotEntryTrigger:e.slotEntryTrigger,slotFulfillmentTriggers:e.slotFulfillmentTriggers,slotExpirationTriggers:h},{slotId:l,layoutId:m}),a=l instanceof RI?l:
{gx:{slotId:e.slotId,slotType:e.slotType,slotPhysicalPosition:e.slotPhysicalPosition,slotEntryTrigger:xHa(a,c,e.slotId,e.slotEntryTrigger),slotFulfillmentTriggers:yHa(a,c,e.slotId,e.slotFulfillmentTriggers),slotExpirationTriggers:h,Ya:e.Ya,Aa:new SI([new MI(MM(c)),new DI(l.layout)]),adSlotLoggingData:d},og:l.og})):a=gGa(a,c,h,l,d,m.dc,b);return a instanceof RI?a:a.og.concat(a.gx)};
tHa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(g.V(b.value,pM))return!0;return!1};
sHa=function(a,b,c,d,e,f,h,l,m,n,p,q){return function(r,t){if(wL(p)&&xL(p))a:{var v=AHa(d,c,p);if(v instanceof RI)t=v;else{for(var w=0,A=[],C=[],F=[],G=[],L=[],M=[],R=new rI({current:null}),ea=new eI({current:null}),ma=!1,oa=[],ia=0,va=[],aa=0;aa<d.length;aa++){var U=d[aa],La=g.V(U,nM);if(La){La=FM(La,c,p);if(La instanceof QI){t=new RI(La);break a}var x=new QL(ia,v),ba=GM(La.playerVars,La.gB,h,n,x);ia++;va[aa]={renderer:U,data:La,bv:x,TC:ba}}}ia=-1;for(v=0;v<d.length;v++)if(aa=d[v],U=g.V(aa,oM)){aa=
lHa(b,c,U,l);if(aa instanceof RI){t=aa;break a}aa=aa(r);A.push(aa.vg);C=[].concat(g.qa(aa.Yl),g.qa(C));F=[].concat(g.qa(aa.Nj),g.qa(F));aa.qf&&(oa=[aa.qf].concat(g.qa(oa)))}else if(g.V(aa,nM))U=va[v],ia=U.data,aa=U.bv,U=U.TC,La=va[v+1],x=void 0,La&&(x=La.TC),aa=BHa(b,ia.layoutId,ia.Do,c,U,ia.Uo,f,aa,l(r),ea,m.get(ia.Do.externalVideoId),x,q),w++,A.push(aa.vg),C=[].concat(g.qa(aa.Yl),g.qa(C)),F=[].concat(g.qa(aa.Nj),g.qa(F)),ma||(M.push(ea),ma=!0),ia=(ia=ia.Do.adPodSkipTarget)&&0<ia?ia:-1;else if(U=
g.V(aa,gK)){aa=kHa(a,b,c,U,f,w,l,ea,ia);if(aa instanceof RI){t=aa;break a}aa=aa(r);A.push(aa.vg);C=[].concat(g.qa(aa.Yl),g.qa(C));F=[].concat(g.qa(aa.Nj),g.qa(F));aa.qf&&(oa=[aa.qf].concat(g.qa(oa)))}else if(U=g.V(aa,pM)){if(void 0===t){t=new RI("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:U});break a}aa=nHa(a,b,c,f,U,R,l,t,w,NM(p,"supports_multi_step_on_desktop"));if(aa instanceof RI){t=aa;break a}aa=aa(r);A.push(aa.vg);aa.qf&&oa.push(aa.qf);
C=[].concat(g.qa(aa.Yl),g.qa(C));F=[].concat(g.qa(aa.Nj),g.qa(F));G=[].concat(g.qa(aa.bz),g.qa(G));L=[].concat(g.qa(aa.Zy),g.qa(L));M=[R].concat(g.qa(M))}else if(aa=g.V(aa,qM)){aa=pHa(a,b,c,f,aa,R,l,w);if(aa instanceof RI){t=aa;break a}aa=aa(r);A.push(aa.vg);aa.qf&&oa.push(aa.qf);F=[].concat(g.qa(aa.Nj),g.qa(F))}else{t=new RI("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Ex:A,layoutExitSkipTriggers:C,layoutExitUserInputSubmittedTriggers:G,Tc:L,layoutExitMuteTriggers:F,Wy:M,
og:oa}}}else a:if(w=AHa(d,c,p),w instanceof RI)t=w;else{A=0;C=[];F=[];G=[];L=[];M=[];R=[];ea=new rI({current:null});ma=new eI({current:null});oa=!1;va=[];ia=-1;v=g.u(d);for(aa=v.next();!aa.done;aa=v.next())if(aa=aa.value,g.V(aa,oM)){aa=lHa(b,c,g.V(aa,oM),l);if(aa instanceof RI){t=aa;break a}aa=aa(r);C.push(aa.vg);F=[].concat(g.qa(aa.Yl),g.qa(F));G=[].concat(g.qa(aa.Nj),g.qa(G));aa.qf&&(va=[aa.qf].concat(g.qa(va)))}else if(g.V(aa,nM)){ia=FM(g.V(aa,nM),c,p);if(ia instanceof QI){t=new RI(ia);break a}aa=
new QL(A,w);aa=BHa(b,ia.layoutId,ia.Do,c,GM(ia.playerVars,ia.gB,h,n,aa),ia.Uo,f,aa,l(r),ma,m.get(ia.Do.externalVideoId),void 0,q);A++;C.push(aa.vg);F=[].concat(g.qa(aa.Yl),g.qa(F));G=[].concat(g.qa(aa.Nj),g.qa(G));oa||(R.push(ma),oa=!0);ia=(ia=ia.Do.adPodSkipTarget)&&0<ia?ia:-1}else if(g.V(aa,gK)){aa=kHa(a,b,c,g.V(aa,gK),f,A,l,ma,ia);if(aa instanceof RI){t=aa;break a}aa=aa(r);C.push(aa.vg);F=[].concat(g.qa(aa.Yl),g.qa(F));G=[].concat(g.qa(aa.Nj),g.qa(G));aa.qf&&(va=[aa.qf].concat(g.qa(va)))}else if(g.V(aa,
pM)){if(void 0===t){t=new RI("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.V(aa,pM)});break a}aa=nHa(a,b,c,f,g.V(aa,pM),ea,l,t,A,NM(p,"supports_multi_step_on_desktop"));if(aa instanceof RI){t=aa;break a}aa=aa(r);C.push(aa.vg);aa.qf&&va.push(aa.qf);F=[].concat(g.qa(aa.Yl),g.qa(F));G=[].concat(g.qa(aa.Nj),g.qa(G));L=[].concat(g.qa(aa.bz),g.qa(L));M=[].concat(g.qa(aa.Zy),g.qa(M));R=[ea].concat(g.qa(R))}else if(g.V(aa,qM)){aa=pHa(a,b,c,f,g.V(aa,
qM),ea,l,A);if(aa instanceof RI){t=aa;break a}aa=aa(r);C.push(aa.vg);aa.qf&&va.push(aa.qf);G=[].concat(g.qa(aa.Nj),g.qa(G))}else{t=new RI("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={Ex:C,layoutExitSkipTriggers:F,layoutExitUserInputSubmittedTriggers:L,Tc:M,layoutExitMuteTriggers:G,Wy:R,og:va}}t instanceof RI?r=t:(M=r.slotId,w=t.Ex,A=t.layoutExitSkipTriggers,C=t.layoutExitMuteTriggers,F=t.layoutExitUserInputSubmittedTriggers,G=t.Wy,r=l(r),L=e?e.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",
M=e?e.layoutId:wJ(b.B.get(),L,M),R={layoutId:M,layoutType:L,Ya:"core"},r={layout:{layoutId:M,layoutType:L,Bb:new Map,layoutExitNormalTriggers:[new $L(b.j,M)],layoutExitSkipTriggers:A,layoutExitMuteTriggers:C,layoutExitUserInputSubmittedTriggers:F,Tc:[],Ya:"core",Aa:new SI([new sI(w)].concat(g.qa(G))),ac:r(R)},og:t.og});return r}};
AHa=function(a,b,c){var d=[];a=g.u(a);for(var e=a.next();!e.done;e=a.next())if(e=e.value,g.V(e,nM)){e=FM(g.V(e,nM),b,c);if(e instanceof QI)return new RI(e);d.push(e.Uo)}return d};
DHa=function(a,b,c,d,e,f,h,l){if(!CFa(c,void 0===l?!1:l))return new RI("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:c});var m=DGa(c);if(0>=m)return new RI("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c});var n=new rI({current:null}),p=HGa(a,b,c,n,d,f,h);return CHa(a,d,f,m,e,function(q,r){var t=q.slotId,v=EGa(c);q=h(q);var w,A=null!=(w=LM(b,d,c.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))?
w:wJ(b.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ya:"core"};w=p(A,r);var C=TI(w.Aa,"metadata_type_fulfilled_layout");C||kG("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");v=[new aI(d),new HI(m),new JI(v),n];C&&v.push(new oI(C.layoutType));return{w9:{layoutId:A,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Bb:new Map,layoutExitNormalTriggers:[new $L(b.j,A)],layoutExitSkipTriggers:[new bM(b.j,r.layoutId)],
layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new iM(b.j,r.layoutId)],Tc:[],Ya:"core",Aa:new SI(v),ac:q(t)},G8:w}})};
EHa=function(a){if(!GFa(a))return!1;var b=g.V(a.adVideoStart,OM);return b?g.V(a.linearAd,nM)&&hFa(b)?!0:(kG("Invalid Sandwich with notify"),!1):!1};
FHa=function(a){if(null==a.linearAds)return!1;a=g.V(a.adStart,OM);return a?hFa(a)?!0:(kG("Invalid LASR with notify"),!1):!1};
GHa=function(a){if(!FFa(a))return!1;a=g.V(a.adStart,OM);return a?hFa(a)?!0:(kG("Invalid LASR with notify"),!1):!1};
PM=function(a,b,c,d,e,f,h,l){this.D=a;this.B=b;this.j=c;this.Ca=d;this.Se=e;this.C=f;this.Qj=h;this.loadPolicy=void 0===l?1:l};
LFa=function(a,b,c,d,e,f,h,l,m){var n=[];if(0===b.length&&0===d.length&&0===c.length)return n;b=b.filter(iFa);var p=c.filter(AFa),q=d.filter(iFa),r=new Map,t=nGa(b),v=c.some(function(aa){var U;return"SLOT_TYPE_PLAYER_BYTES"===(null==aa?void 0:null==(U=aa.adSlotMetadata)?void 0:U.slotType)}),w=c.some(function(aa){var U;
return"SLOT_TYPE_PLAYER_UNDERLAY"===(null==aa?void 0:null==(U=aa.adSlotMetadata)?void 0:U.slotType)});
c=c.some(function(aa){var U;return"SLOT_TYPE_IN_PLAYER"===(null==aa?void 0:null==(U=aa.adSlotMetadata)?void 0:U.slotType)});
if(v||w||c)c=qGa(p,b,l,e,t,a.Se.get(),a.loadPolicy,r,a.Ca.get(),a.D.get(),c),c instanceof RI?kG(c,void 0,void 0,{contentCpn:e}):n.push.apply(n,g.qa(c));c=g.u(b);for(w=c.next();!w.done;w=c.next()){w=w.value;var A=HHa(a,r,w,e,f,h,v,l,t,m,p);A instanceof RI?kG(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.qa(A))}IHa(a.Ca.get())||(f=JHa(a,q,e,l,t,r),n.push.apply(n,g.qa(f)));if(null===a.C||h&&!l.qW){var C,
F,G;a=l.dc&&1===b.length&&"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===(null==(C=b[0].config)?void 0:null==(F=C.adPlacementConfig)?void 0:F.kind)&&(null==(G=b[0].renderer)?void 0:G.adBreakServiceRenderer);if(!n.length&&!a){var L,M,R,ea;kG("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,"first APR kind":null==(L=b[0])?void 0:null==(M=L.config)?void 0:null==(R=M.adPlacementConfig)?void 0:R.kind,renderer:null==(ea=b[0])?void 0:ea.renderer})}return n}C=
d.filter(iFa);n.push.apply(n,g.qa(YFa(r,C,a.B.get(),a.C,e,v)));if(!n.length){var ma,oa,ia,va;kG("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:e,daiEnabled:h.toString(),"first APR kind":null==(ma=b[0])?void 0:null==(oa=ma.config)?void 0:null==(ia=oa.adPlacementConfig)?void 0:ia.kind,renderer:null==(va=b[0])?void 0:va.renderer})}return n};
JHa=function(a,b,c,d,e,f){function h(r){return XI(a.Se.get(),r)}
var l=[];b=g.u(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=m.renderer,p=n.sandwichedLinearAdRenderer,q=n.linearAdSequenceRenderer;p&&EHa(p)?(kG("Found AdNotify with SandwichedLinearAdRenderer"),q=g.V(p.adVideoStart,OM),p=g.V(p.linearAd,nM),DM(f,n,m.config.adPlacementConfig.kind),n=void 0,q=cGa(null==(n=q)?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,p,c,d,h,e,a.loadPolicy,a.Ca.get(),a.Se.get()),q instanceof RI?kG(q):l.push.apply(l,g.qa(q))):
q&&(!q.adLayoutMetadata&&FHa(q)||q.adLayoutMetadata&&GHa(q))&&(kG("Found AdNotify with LinearAdSequenceRenderer"),DM(f,n,m.config.adPlacementConfig.kind),n=void 0,p=qHa(null==(n=g.V(q.adStart,OM))?void 0:n.layout.layoutId,a.B.get(),a.j.get(),m.config.adPlacementConfig,m.adSlotLoggingData,q.linearAds,lM(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,c,d,h,e,a.loadPolicy,a.Ca.get()),p instanceof RI?kG(p):l.push.apply(l,g.qa(p)))}return l};
HHa=function(a,b,c,d,e,f,h,l,m,n,p){function q(C){return XI(a.Se.get(),C)}
var r=c.renderer,t=c.config.adPlacementConfig,v=t.kind,w=c.adSlotLoggingData,A=l.qW&&"AD_PLACEMENT_KIND_START"===v;A=f&&!A;if(null!=r.adsEngagementPanelRenderer)return EM(b,c.elementId,v,r.adsEngagementPanelRenderer.isContentVideoEngagementPanel,r.adsEngagementPanelRenderer.adVideoId,r.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,G,L){var M=a.j.get(),R=C.slotId,ea=r.adsEngagementPanelRenderer;C=XI(a.Se.get(),C);return QM(M,R,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",
new $za(ea),F,G,ea.impressionPings,C,r.adsEngagementPanelRenderer.adLayoutLoggingData,L)}),[];
if(r.panelTextIconImageTilesButtonLayoutViewModel)return EM(b,c.elementId,v,r.panelTextIconImageTilesButtonLayoutViewModel.isContentVideoEngagementPanel,r.panelTextIconImageTilesButtonLayoutViewModel.adVideoId,r.panelTextIconImageTilesButtonLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,G,L){var M=a.j.get(),R=C.slotId,ea=r.panelTextIconImageTilesButtonLayoutViewModel;C=XI(a.Se.get(),C);return KHa(M,R,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON",new aAa(ea),F,G,C,r.panelTextIconImageTilesButtonLayoutViewModel.adLayoutLoggingData,
L)}),[];
if(null!=r.actionCompanionAdRenderer){if(r.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return TFa(a.B.get(),a.C,a.j.get(),r.actionCompanionAdRenderer,t,w,d,q);EM(b,c.elementId,v,r.actionCompanionAdRenderer.isContentVideoCompanion,r.actionCompanionAdRenderer.adVideoId,r.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,G,L){var M=a.j.get(),R=C.slotId,ea=r.actionCompanionAdRenderer;C=XI(a.Se.get(),C);return QM(M,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",
new XH(ea),F,G,ea.impressionPings,C,r.actionCompanionAdRenderer.adLayoutLoggingData,L)})}else if(void 0!==r.topBannerImageTextIconButtonedLayoutViewModel){if(r.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return UFa(a.B.get(),a.C,a.j.get(),r.topBannerImageTextIconButtonedLayoutViewModel,t,w,d,q);
EM(b,c.elementId,v,r.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,r.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,r.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,G,L){var M=a.j.get(),R=C.slotId,ea=r.topBannerImageTextIconButtonedLayoutViewModel;C=XI(a.Se.get(),C);return KHa(M,R,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new YH(ea),F,G,C,r.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,L)})}else if(r.imageCompanionAdRenderer)EM(b,
c.elementId,v,r.imageCompanionAdRenderer.isContentVideoCompanion,r.imageCompanionAdRenderer.adVideoId,r.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,G,L){var M=a.j.get(),R=C.slotId,ea=r.imageCompanionAdRenderer;
C=XI(a.Se.get(),C);return QM(M,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new cAa(ea),F,G,ea.impressionPings,C,r.imageCompanionAdRenderer.adLayoutLoggingData,L)});
else if(r.bannerImageLayoutViewModel)EM(b,c.elementId,v,r.bannerImageLayoutViewModel.isContentVideoCompanion,r.bannerImageLayoutViewModel.adVideoId,r.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,G,L){var M=a.j.get(),R=C.slotId,ea=r.bannerImageLayoutViewModel;C=XI(a.Se.get(),C);return KHa(M,R,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new dAa(ea),F,G,C,r.bannerImageLayoutViewModel.adLayoutLoggingData,L)});
else if(r.shoppingCompanionCarouselRenderer)EM(b,c.elementId,v,r.shoppingCompanionCarouselRenderer.isContentVideoCompanion,r.shoppingCompanionCarouselRenderer.adVideoId,r.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,w,function(C,F,G,L){var M=a.j.get(),R=C.slotId,ea=r.shoppingCompanionCarouselRenderer;C=XI(a.Se.get(),C);return QM(M,R,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new eAa(ea),F,G,ea.impressionPings,C,r.shoppingCompanionCarouselRenderer.adLayoutLoggingData,L)});
else if(r.adBreakServiceRenderer){if(!RFa(c))return[];if("AD_PLACEMENT_KIND_PAUSE"===v)return QFa(a.B.get(),t,w,c.renderer.adBreakServiceRenderer,d);if("AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"!==v)return PFa(a.B.get(),t,w,c.renderer.adBreakServiceRenderer,d,e,f);if(!a.Qj)return new RI("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface");l.dc||kG("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:v,adPlacementConfig:t,
daiEnabledForContentVideo:String(f),isServedFromLiveInfra:String(l.dc),clientPlaybackNonce:l.clientPlaybackNonce});LHa(a.Qj,{adPlacementRenderer:c,contentCpn:d,Es:e})}else{if(r.clientForecastingAdRenderer)return bHa(a.B.get(),a.j.get(),t,w,r.clientForecastingAdRenderer,d,e,q);if(r.invideoOverlayAdRenderer)return hHa(a.B.get(),a.j.get(),t,w,r.invideoOverlayAdRenderer,d,e,q);if(r.instreamAdPlayerOverlayRenderer)return dHa(a.B.get(),a.j.get(),t,w,r.instreamAdPlayerOverlayRenderer,d,q);if((r.linearAdSequenceRenderer||
r.instreamVideoAdRenderer)&&A)return VGa(a.B.get(),a.j.get(),c,d,q,n,!a.Ca.get().J.U().L("html5_override_ad_video_length_killswitch"));if(r.linearAdSequenceRenderer&&!A){if(h)return[];DM(b,r,v);if(r.linearAdSequenceRenderer.adLayoutMetadata){if(!FFa(r.linearAdSequenceRenderer))return new RI("Received invalid LinearAdSequenceRenderer.")}else if(null==r.linearAdSequenceRenderer.linearAds)return new RI("Received invalid LinearAdSequenceRenderer.");if(g.V(r.linearAdSequenceRenderer.adStart,OM)){kG("Found AdNotify in LinearAdSequenceRenderer");
b=g.V(r.linearAdSequenceRenderer.adStart,OM);if(!gFa(b))return new RI("Invalid AdMessageRenderer.");c=r.linearAdSequenceRenderer.linearAds;return rHa(a.D.get(),a.B.get(),a.j.get(),a.Se.get(),t,w,b,lM(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,c,d,e,l,q,m,a.loadPolicy,a.Ca.get())}return zHa(a.B.get(),a.j.get(),t,w,r.linearAdSequenceRenderer.linearAds,lM(r.linearAdSequenceRenderer.adLayoutMetadata)?r.linearAdSequenceRenderer.adLayoutMetadata:void 0,
d,e,l,q,m,a.loadPolicy,a.Ca.get(),p)}if(!r.remoteSlotsRenderer||f){if(r.instreamVideoAdRenderer&&!A){if(h)return[];DM(b,r,v);return hGa(a.B.get(),a.j.get(),t,w,r.instreamVideoAdRenderer,d,e,l,q,m,a.loadPolicy,a.Ca.get(),a.Se.get(),p)}if(r.instreamSurveyAdRenderer)return DHa(a.B.get(),a.j.get(),r.instreamSurveyAdRenderer,t,w,d,q,NM(a.Ca.get(),"supports_multi_step_on_desktop"));if(null!=r.sandwichedLinearAdRenderer)return GFa(r.sandwichedLinearAdRenderer)?g.V(r.sandwichedLinearAdRenderer.adVideoStart,
OM)?(kG("Found AdNotify in SandwichedLinearAdRenderer"),b=g.V(r.sandwichedLinearAdRenderer.adVideoStart,OM),gFa(b)?(c=g.V(r.sandwichedLinearAdRenderer.linearAd,nM))?dGa(b,c,t,a.D.get(),a.B.get(),a.j.get(),a.Se.get(),w,d,e,l,q,m,a.loadPolicy,a.Ca.get()):new RI("Missing IVAR from Sandwich"):new RI("Invalid AdMessageRenderer.")):zHa(a.B.get(),a.j.get(),t,w,[r.sandwichedLinearAdRenderer.adVideoStart,r.sandwichedLinearAdRenderer.linearAd],void 0,d,e,l,q,m,a.loadPolicy,a.Ca.get()):new RI("Received invalid SandwichedLinearAdRenderer.");
if(null!=r.videoAdTrackingRenderer)return l=NM(a.Ca.get(),"enable_h5_shorts_ad_terminal_events")&&l.Rk,$Ga(a.B.get(),a.j.get(),r.videoAdTrackingRenderer,t,w,d,e,l,q)}}return[]};
RM=function(a,b,c,d,e,f,h,l){g.I.call(this);var m=this;this.B=a;this.C=b;this.Df=d;this.Ha=e;this.Ca=f;this.Oa=h;this.Uc=l;this.j=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Ma()||c.get().removeListener(m)});
d.get().addListener(this);this.addOnDisposeCallback(function(){d.Ma()||d.get().removeListener(m)})};
LHa=function(a,b){if(a.j)kG("Unexpected multiple fetch instructions for the current content");else{a.j=b;b=g.u(a.Df.get().sL);for(var c=b.next();!c.done;c=b.next())MHa(a,a.j,c.value)}};
MHa=function(a,b,c){var d=a.Ha.get().getCurrentTimeSec(1,!1);a.Ca.get().J.U().uc()&&FL(a.Oa.get(),"sdai","onopp.1;evt."+c.event+";start."+c.startSecs.toFixed(3)+";d."+c.rh.toFixed(3));IJ(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=SM(a.Ca.get()),n=a.Oa;if(e.Ca.get().J.U().experiments.jb("enable_smearing_expansion_dai")){var p=g.YI(e.Ca.get().J.U().experiments,
"max_prefetch_window_sec_for_livestream_optimization");var q=g.YI(e.Ca.get().J.U().experiments,"min_prefetch_offset_sec_for_livestream_optimization");m={po:NHa(c),HF:!1,cueProcessedMs:1E3*d};var r=c.startSecs+c.rh;if(0===d)m.mp=new Kv(0,1E3*r);else{q=c.startSecs-q;var t=q-d;m.mp=0>=t?new Kv(1E3*q,1E3*r):new Kv(1E3*Math.floor(d+Math.random()*Math.min(t,p)),1E3*r)}p=m}else p={po:NHa(c),HF:!1},r=c.startSecs+c.rh,c.startSecs<=d?m=new Kv(1E3*(c.startSecs-4),1E3*r):(q=Math.max(0,c.startSecs-d-10),m=new Kv(1E3*
Math.floor(d+Math.random()*(m?0===d?0:Math.min(q,5):q)),1E3*r)),p.mp=m;f=OFa(e,f,h,p,l,[new oAa(c)]);e.Ca.get().J.U().experiments.jb("html5_add_dai_smearing_to_qoe")?(h=n.get(),e=p.mp.start/1E3-d,n=c.startSecs-d,null!=(h=h.J.Xc())&&(h=h.lc(),h.qoe&&(h=h.qoe,h.provider.W.L("html5_add_dai_smearing_to_qoe")&&(l=1E3*g.TM(h.provider),p=h.j.daism||[],p.push("t."+l.toFixed(0)+";smw."+(1E3*e).toFixed(0)+";smo."+(1E3*n).toFixed(0)),h.j.daism=p)))):FL(n.get(),"daism","ct."+Date.now()+";cmt."+d+";smw."+(p.mp.start/
1E3-d)+";tw."+(c.startSecs-d)+";cid."+c.identifier.replaceAll(":","_")+";sid."+f.slotId);return[f]})};
OHa=function(a){var b,c=null==(b=TI(a.Aa,"metadata_type_player_bytes_callback_ref"))?void 0:b.current;if(!c)return null;b=TI(a.Aa,"metadata_type_ad_pod_skip_target_callback_ref");var d=a.layoutId,e=TI(a.Aa,"metadata_type_content_cpn"),f=TI(a.Aa,"metadata_type_instream_ad_player_overlay_renderer"),h=TI(a.Aa,"metadata_type_player_overlay_layout_renderer"),l=TI(a.Aa,"metadata_type_player_underlay_renderer"),m=TI(a.Aa,"metadata_type_ad_placement_config"),n=TI(a.Aa,"metadata_type_video_length_seconds");
var p=NI(a.Aa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?TI(a.Aa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):NI(a.Aa,"metadata_type_layout_enter_ms")&&NI(a.Aa,"metadata_type_layout_exit_ms")?(TI(a.Aa,"metadata_type_layout_exit_ms")-TI(a.Aa,"metadata_type_layout_enter_ms"))/1E3:void 0;return{fq:d,contentCpn:e,jR:c,VM:b,instreamAdPlayerOverlayRenderer:f,playerOverlayLayoutRenderer:h,instreamAdPlayerUnderlayRenderer:l,adPlacementConfig:m,videoLengthSeconds:n,FJ:p,inPlayerLayoutId:TI(a.Aa,"metadata_type_linked_in_player_layout_id"),
inPlayerSlotId:TI(a.Aa,"metadata_type_linked_in_player_slot_id")}};
QHa=function(a,b){return PHa(a,b)};
RHa=function(a,b){b=PHa(a,b);if(!b)return null;var c;b.FJ=null==(c=TI(a.Aa,"metadata_type_ad_pod_info"))?void 0:c.adBreakRemainingLengthSeconds;return b};
PHa=function(a,b){var c,d=null==(c=TI(a.Aa,"metadata_type_player_bytes_callback_ref"))?void 0:c.current;if(!d)return null;c=DCa(a,b);return{H5:CCa(a,b),adPlacementConfig:TI(a.Aa,"metadata_type_ad_placement_config"),K5:c,contentCpn:TI(a.Aa,"metadata_type_content_cpn"),inPlayerLayoutId:TI(a.Aa,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:TI(a.Aa,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:TI(a.Aa,"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,
instreamAdPlayerUnderlayRenderer:void 0,FJ:void 0,jR:d,fq:a.layoutId,videoLengthSeconds:TI(a.Aa,"metadata_type_video_length_seconds")}};
UM=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.Se=h;this.Ca=l;this.Ta=m;this.eh=!0};
SHa=function(a,b,c){return lGa(a.j.get(),b.contentCpn,b.fq,function(d){return mGa(a.B.get(),d.slotId,c,b.adPlacementConfig,b.fq,XI(a.Se.get(),d))})};
VM=function(a,b,c,d,e,f,h,l){g.I.call(this);this.B=a;this.j=b;this.C=c;this.Ca=d;this.D=e;this.Ta=f;this.Ha=h;this.Ic=l};
WM=function(a){g.I.call(this);this.j=a};
IJ=function(a,b,c,d){a.j().Lg(b,d);c=c();a=a.j();a.Ob.iH("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,d,c);b=g.u(c);for(c=b.next();!c.done;c=b.next())a:{d=a;c=c.value;d.Ob.Ij("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",c);d.Ob.Ij("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",c);try{var e=d.j;if(g.ec(c.slotId))throw new RI("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(dJ(e,c))throw new RI("Duplicate registration for slot.",{slotId:c.slotId,slotEntryTriggerType:c.slotEntryTrigger.triggerType},
"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!e.ih.Qs.has(c.slotType))throw new RI("No fulfillment adapter factory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!e.ih.ou.has(c.slotType))throw new RI("No SlotAdapterFactory registered for slot of type: "+c.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");bBa(e,"TRIGGER_CATEGORY_SLOT_ENTRY",c.slotEntryTrigger?[c.slotEntryTrigger]:[]);bBa(e,"TRIGGER_CATEGORY_SLOT_FULFILLMENT",
c.slotFulfillmentTriggers);bBa(e,"TRIGGER_CATEGORY_SLOT_EXPIRATION",c.slotExpirationTriggers);var f=d.j,h=c.slotType+"_"+c.slotPhysicalPosition,l=lJ(f,h);if(dJ(f,c))throw new RI("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");l.set(c.slotId,new XAa(c));f.j.set(h,l)}catch(ma){ma instanceof RI&&ma.Gk?(d.Ob.Rl("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",ma.Gk,c),kG(ma,c,void 0,void 0,ma.fv)):(d.Ob.Rl("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",
c),kG(ma,c));break a}dJ(d.j,c).K=!0;try{var m=d.j,n=dJ(m,c),p=c.slotEntryTrigger,q=m.ih.Mm.get(p.triggerType);q&&(q.bl("TRIGGER_CATEGORY_SLOT_ENTRY",p,c,null),n.Ba.set(p.triggerId,q));for(var r=g.u(c.slotFulfillmentTriggers),t=r.next();!t.done;t=r.next()){var v=t.value,w=m.ih.Mm.get(v.triggerType);w&&(w.bl("TRIGGER_CATEGORY_SLOT_FULFILLMENT",v,c,null),n.qa.set(v.triggerId,w))}for(var A=g.u(c.slotExpirationTriggers),C=A.next();!C.done;C=A.next()){var F=C.value,G=m.ih.Mm.get(F.triggerType);G&&(G.bl("TRIGGER_CATEGORY_SLOT_EXPIRATION",
F,c,null),n.Y.set(F.triggerId,G))}var L=m.ih.Qs.get(c.slotType).get().build(m.C,c);n.N=L;var M=m.ih.ou.get(c.slotType).get().build(m.G,c);M.init();n.B=M}catch(ma){ma instanceof RI&&ma.Gk?(d.Ob.Rl("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",ma.Gk,c),kG(ma,c,void 0,void 0,ma.fv)):(d.Ob.Rl("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),kG(ma,c));bJ(d,c,!0);break a}d.Ob.Ij("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);d.j.Mg(c);for(var R=g.u(d.B),ea=R.next();!ea.done;ea=
R.next())ea.value.Mg(c);HAa(d,c)}};
XM=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.Ma()||d.get().removeListener(f)})};
JFa=function(a,b){var c=0x8000000000000;var d=0;for(var e=g.u(b.slotFulfillmentTriggers),f=e.next();!f.done;f=e.next())f=f.value,f instanceof YL?(c=Math.min(c,f.j.start),d=Math.max(d,f.j.end)):kG("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:f});d=new Kv(c,d);c="throttledadcuerange:"+b.slotId;a.j.set(c,b);a.Qc.get().addCueRange(c,d.start,d.end,!1,a);YM(a.context.Ca.get())&&(b=d.start,d=d.end,e={},a.context.Aq.Am("tcrr",(e.cid=c,e.sm=b,e.em=d,e)))};
ZM=function(){g.I.apply(this,arguments);this.eh=!0;this.Yi=new Map;this.j=new Map};
THa=function(a,b){a=g.u(a.Yi.values());for(var c=a.next();!c.done;c=a.next())if(c.value.layoutId===b)return!0;return!1};
UHa=function(a,b){a=g.u(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.layoutId===b)return d}kG("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.ec(b)),layoutId:b})};
VHa=function(a,b){this.callback=a;this.slot=b};
$M=function(){};
WHa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
XHa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c;this.B=!1;this.j=0};
YHa=function(a,b,c){this.callback=a;this.slot=b;this.Ha=c};
aN=function(a){this.Ha=a};
bN=function(a){g.I.call(this);this.oM=a;this.Wb=new Map};
ZHa=function(a,b){for(var c=[],d=g.u(a.Wb.values()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.trigger;f instanceof iM&&f.triggeringLayoutId===b&&c.push(e)}c.length?jJ(a.oM(),c):kG("Survey is submitted but no registered triggers can be activated.")};
cN=function(a,b,c){bN.call(this,a);var d=this;this.Ca=c;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ma()||b.get().removeListener(d)})};
dN=function(a){g.I.call(this);this.j=a;this.eh=!0;this.Wb=new Map;this.G=new Set;this.C=new Set;this.D=new Set;this.K=new Set;this.B=new Set};
eN=function(a){g.I.call(this);this.j=a;this.Wb=new Map};
fN=function(a,b){for(var c=[],d=g.u(a.Wb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger.j===b.layoutId&&c.push(e);c.length&&jJ(a.j(),c)};
gN=function(a,b){g.I.call(this);var c=this;this.j=a;this.Wb=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.Ma()||b.get().removeListener(c)})};
$Ha=function(a,b,c,d){var e=[];a=g.u(a.values());for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.trigger instanceof aM){var h=f.trigger.j===b;h===c?e.push(f):d&&h&&(kG("Firing OnNewPlaybackAfterContentVideoIdTrigger from presumed cached playback CPN match.",void 0,void 0,{cpn:b}),e.push(f))}return e};
hN=function(a,b,c,d,e){g.I.call(this);var f=this;this.B=a;this.Qc=b;this.Ha=c;this.Ta=d;this.context=e;this.eh=!0;this.Wb=new Map;this.j=new Set;c.get().addListener(this);this.addOnDisposeCallback(function(){c.Ma()||c.get().removeListener(f)})};
aIa=function(a,b,c,d,e,f,h,l,m,n){if(a.Ta.get().Me(1).clientPlaybackNonce!==m)throw new RI("Cannot register CueRange-based trigger for different content CPN",{trigger:c});a.Wb.set(c.triggerId,{XC:new kM(b,c,d,e),SH:f});a.Qc.get().addCueRange(f,h,l,n,a);YM(a.context.Ca.get())&&(m={},a.context.Aq.Am("crr",(m.ca=b,m.tt=c.triggerType,m.st=d.slotType,m.lt=null==e?void 0:e.layoutType,m.cid=f,m.sm=h,m.em=l,m)))};
bIa=function(a,b){a=g.u(a.Wb.entries());for(var c=a.next();!c.done;c=a.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;if(b===d.SH)return c}return""};
iN=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.Ma()||b.get().removeListener(c)});
var d;this.j=(null==(d=b.get().Dv)?void 0:d.slotId)||null};
cIa=function(a,b){var c=[];a=g.u(a.values());for(var d=a.next();!d.done;d=a.next())d=d.value,d.slot.slotId===b&&c.push(d);return c};
jN=function(a){g.I.call(this);this.j=a;this.eh=!0;this.Wb=new Map};
CL=function(a,b){b=b.layoutId;for(var c=[],d=g.u(a.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof $L){var f;if(f=e.trigger.layoutId===b)f=(f=PAa.get(e.category))?"normal"===f:!1;f&&c.push(e)}c.length&&jJ(a.j(),c)};
kN=function(a){g.I.call(this);this.j=a;this.eh=!0;this.Wb=new Map};
lN=function(a){g.I.call(this);this.C=a;this.eh=!0;this.Wb=new Map;this.j=new Map;this.B=new Map};
dIa=function(a,b){var c=[];if(b=a.j.get(b.layoutId)){b=g.u(b);for(var d=b.next();!d.done;d=b.next())(d=a.B.get(d.value.triggerId))&&c.push(d)}return c};
mN=function(a){g.I.call(this);this.j=a;this.Wb=new Map};
eIa=function(a,b){for(var c=[],d=g.u(a.Wb.values()),e=d.next();!e.done;e=d.next())e=e.value,e.trigger instanceof PL&&e.trigger.slotId===b&&c.push(e);1<=c.length&&jJ(a.j(),c)};
fIa=function(a,b){var c={slotId:JJ(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],Ya:"surface",Aa:new SI([])},d=Object,e=d.assign;b=wJ(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Bb:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"surface",Aa:new SI([]),
ac:DAa(!1,c.slotId,c.slotType,c.slotPhysicalPosition,c.Ya,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return e.call(d,{},a,{N8:!0,slot:c,layout:b})};
NFa=function(a,b,c,d){var e=a.kind;d=d?!1:!a.hideCueRangeMarker;switch(e){case "AD_PLACEMENT_KIND_START":return d={po:new Kv(-0x8000000000000,-0x8000000000000),HF:d},null!=c&&(d.mp=new Kv(-0x8000000000000,-0x8000000000000)),d;case "AD_PLACEMENT_KIND_END":return d={po:new Kv(0x7ffffffffffff,0x8000000000000),HF:d},null!=c&&(d.mp=new Kv(Math.max(0,b-c),0x8000000000000)),d;case "AD_PLACEMENT_KIND_MILLISECONDS":e=a.adTimeOffset;e.offsetStartMilliseconds||kG("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds.");
e.offsetEndMilliseconds||kG("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");a=Number(e.offsetStartMilliseconds);e=Number(e.offsetEndMilliseconds);-1===e&&(e=b);if(Number.isNaN(a)||Number.isNaN(e)||a>e)return new RI("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:a,offsetEndMs:e},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",e===b&&a-500<=e);d={po:new Kv(a,e),HF:d};if(null!=c){a=Math.max(0,a-c);if(a===e)return d;d.mp=new Kv(a,e)}return d;
default:return new RI("AdPlacementKind not supported in convertToRange.",{kind:e,adPlacementConfig:a})}};
NHa=function(a){var b=1E3*a.startSecs;return new Kv(b,b+1E3*a.rh)};
gIa=function(a){if(!a||!a.adPlacements&&!a.adSlots)return!1;for(var b=g.u(a.adPlacements||[]),c=b.next();!c.done;c=b.next())if(c=c.value)if(c=c.adPlacementRenderer,null!=c&&"AD_PLACEMENT_KIND_START"===(c.config&&c.config.adPlacementConfig&&c.config.adPlacementConfig.kind))return!0;a=g.u(a.adSlots||[]);for(b=a.next();!b.done;b=a.next()){var d=c=void 0;if("SLOT_TRIGGER_EVENT_BEFORE_CONTENT"===(null==(c=g.V(b.value,BM))?void 0:null==(d=c.adSlotMetadata)?void 0:d.triggerEvent))return!0}return!1};
nN=function(){this.B=new Map;this.j=new Map;this.C=new Map};
JJ=function(a,b){if(g.cB("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.B.get(b)||0;c++;a.B.set(b,c);return b+"_"+c}return g.qE(16)};
wJ=function(a,b,c){if(g.cB("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var d=a.j.get(b)||0;d++;a.j.set(b,d);return c+"_"+b+"_"+d}return g.qE(16)};
KM=function(a,b){if(g.cB("GENERATE_DETERMINSTIC_ADS_CONTROL_FLOW_IDS")){var c=a.C.get(b)||0;c++;a.C.set(b,c);return b+"_"+c}return g.qE(16)};
hIa=function(a){var b=[new mI(a.fq),new nAa(a.jR),new aI(a.adPlacementConfig),new tI(a.videoLengthSeconds),new GI(a.FJ)];a.instreamAdPlayerOverlayRenderer&&b.push(new hI(a.instreamAdPlayerOverlayRenderer));a.playerOverlayLayoutRenderer&&b.push(new iI(a.playerOverlayLayoutRenderer));a.VM&&b.push(new eI(a.VM));return b};
iIa=function(a,b,c,d,e,f){a=c.inPlayerLayoutId?c.inPlayerLayoutId:wJ(f,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var h,l,m=c.instreamAdPlayerOverlayRenderer?null==(h=c.instreamAdPlayerOverlayRenderer)?void 0:h.adLayoutLoggingData:null==(l=c.playerOverlayLayoutRenderer)?void 0:l.adLayoutLoggingData;h={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Ya:b};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Bb:new Map,layoutExitNormalTriggers:[new XL(function(n){return KM(f,
n)},c.fq)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:b,Aa:d,ac:e(h),adLayoutLoggingData:m}};
oN=function(a,b){var c=this;this.B=a;this.Ca=b;this.j=function(d){return KM(c.B.get(),d)}};
mGa=function(a,b,c,d,e,f){c=new SI([new jI(c),new aI(d)]);b=wJ(a.B.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);d={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Ya:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",Bb:new Map,layoutExitNormalTriggers:[new XL(function(h){return KM(a.B.get(),h)},e)],
layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"core",Aa:c,ac:f(d),adLayoutLoggingData:void 0}};
HM=function(a,b,c,d,e){var f=hIa(d);return iIa(b,c,d,new SI(f),e,a.B.get())};
jIa=function(a,b,c,d,e){var f=hIa(d);f.push(new fAa(d.H5));f.push(new gAa(d.K5));return iIa(b,c,d,new SI(f),e,a.B.get())};
QM=function(a,b,c,d,e,f,h,l,m,n){b=wJ(a.B.get(),c,b);var p={layoutId:b,layoutType:c,Ya:"core"},q=new Map;h&&q.set("impression",h);h=[new ZL(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];n&&h.push(new WL(a.j,n,["normal"]));return{layoutId:b,layoutType:c,Bb:q,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"core",Aa:new SI([d,new aI(f),new mI(e)]),ac:l(p),adLayoutLoggingData:m}};
KHa=function(a,b,c,d,e,f,h,l,m){b=wJ(a.B.get(),c,b);var n={layoutId:b,layoutType:c,Ya:"core"},p=[new ZL(a.j,e,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];m&&p.push(new WL(a.j,m,["normal"]));return{layoutId:b,layoutType:c,Bb:new Map,layoutExitNormalTriggers:p,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"core",Aa:new SI([d,new aI(f),new mI(e)]),ac:h(n),adLayoutLoggingData:l}};
gHa=function(a,b,c){var d=[];d.push(new aFa(a.j,c));b&&d.push(b);return d};
fHa=function(a,b,c,d,e,f,h){var l={layoutId:b,layoutType:c,Ya:"core"};return{layoutId:b,layoutType:c,Bb:new Map,layoutExitNormalTriggers:h,layoutExitSkipTriggers:[new SL(a.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"core",Aa:new SI([new bAa(d),new aI(e)]),ac:f(l),adLayoutLoggingData:d.adLayoutLoggingData}};
GGa=function(a,b,c,d,e,f,h,l){var m={layoutId:b,layoutType:f,Ya:"core"};return{layoutId:b,layoutType:f,Bb:new Map,layoutExitNormalTriggers:[new XL(a.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"core",Aa:new SI([new aI(d)].concat(g.qa(h))),ac:e(m),adLayoutLoggingData:l}};
LM=function(a,b,c,d){if(a.Ca.get().rd("AD_PLACEMENT_KIND_START"===b.kind))if(void 0===c)kG("Expected SSAP layout ID in renderer",void 0,void 0,{caller:d});else return c};
iHa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){a=oHa(a,b,c,e,f,h,l,m,q,LM(a,c,d.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),r);b=a.Wy;c=new nI(a.nK);d=a.layoutExitSkipTriggers;0<n&&(b.push(c),b.push(new dI(n)),d=[]);b.push(new cI(p));return{vg:{layoutId:a.layoutId,layoutType:a.layoutType,Bb:a.Bb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:a.Ya,Aa:new SI(b),ac:a.ac,adLayoutLoggingData:a.adLayoutLoggingData},
Yl:d,Nj:a.layoutExitMuteTriggers,bz:a.layoutExitUserInputSubmittedTriggers,Zy:a.Tc,qf:a.qf}};
mHa=function(a,b,c,d,e,f,h,l,m,n){b=oHa(a,b,c,d,f,new Map,h,function(p){return l(p,m)},void 0,LM(a,c,e.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey"));
a=new iM(a.j,b.nK);c=new nI(b.nK);n=new cI(n);return{vg:{layoutId:b.layoutId,layoutType:b.layoutType,Bb:b.Bb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:b.Ya,Aa:new SI([].concat(g.qa(b.Wy),[c,n])),ac:b.ac,adLayoutLoggingData:b.adLayoutLoggingData},Yl:b.layoutExitSkipTriggers,Nj:b.layoutExitMuteTriggers,bz:[].concat(g.qa(b.layoutExitUserInputSubmittedTriggers),[a]),Zy:b.Tc,qf:b.qf}};
oHa=function(a,b,c,d,e,f,h,l,m,n,p){b=null!=n?n:wJ(a.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);n={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Ya:"adapter"};l=l(b);var q=TI(l.Aa,"metadata_type_fulfilled_layout");q||kG("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var r=q?q.layoutId:"";c=[new aI(c),new HI(d),new JI(e)];q&&c.push(new oI(q.layoutType));p&&c.push(new zI(p));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",Bb:f,layoutExitNormalTriggers:[],
layoutExitSkipTriggers:[new bM(a.j,r)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"adapter",Wy:c,ac:h(n),adLayoutLoggingData:m,qf:l,nK:r}};
iGa=function(a,b,c,d,e,f,h,l,m,n,p){a=kIa(a,b,"core",c,d,e,f,h,l,m,n,void 0,p);return{layoutId:a.layoutId,layoutType:a.layoutType,Bb:a.Bb,layoutExitNormalTriggers:a.layoutExitNormalTriggers,layoutExitSkipTriggers:a.layoutExitSkipTriggers,layoutExitMuteTriggers:a.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:a.layoutExitUserInputSubmittedTriggers,Tc:a.Tc,Ya:a.Ya,Aa:new SI(a.dW),ac:a.ac,adLayoutLoggingData:a.adLayoutLoggingData}};
BHa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){b=kIa(a,b,"adapter",c,d,e,f,h,l,m,p,q,r);d=b.layoutExitSkipTriggers;e=b.dW;c.adPodSkipTarget&&0<c.adPodSkipTarget&&(e.push(n),e.push(new dI(c.adPodSkipTarget)),d=[]);e.push(new cI(l.j));c.isCritical&&(d=[new WL(a.j,b.layoutId,["error"])].concat(g.qa(d)));return{vg:{layoutId:b.layoutId,layoutType:b.layoutType,Bb:b.Bb,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:b.Ya,Aa:new SI(e),
ac:b.ac,adLayoutLoggingData:b.adLayoutLoggingData},Yl:d,Nj:b.layoutExitMuteTriggers,bz:b.layoutExitUserInputSubmittedTriggers,Zy:b.Tc}};
kIa=function(a,b,c,d,e,f,h,l,m,n,p,q,r){var t={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Ya:c};e=[new aI(e),new bI(m),new fI(d.externalVideoId),new gI(l),new JI({impressionCommands:d.impressionCommands,abandonCommands:d.onAbandonCommands,completeCommands:d.completeCommands,progressCommands:d.adVideoProgressCommands}),new uI(f),new qI({current:null}),new tI(h)];(f=d.playerOverlay.instreamAdPlayerOverlayRenderer)&&e.push(new hI(f));(h=d.playerOverlay.playerOverlayLayoutRenderer)&&e.push(new iI(h));
q&&e.push(new vI(q));(q=d.playerUnderlay)&&e.push(new jI(q));l=JJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");q=(q=f?f.elementId:null==h?void 0:h.layoutId)?q:wJ(a.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",l);e.push(new nI(q));e.push(new pI(l));e.push(new zI(m.j));d.adNextParams&&e.push(new ZH(d.adNextParams));d.shrunkenPlayerBytesConfig&&e.push(new iAa(d.shrunkenPlayerBytesConfig));d.clickthroughEndpoint&&e.push(new $H(d.clickthroughEndpoint));d.legacyInfoCardVastExtension&&e.push(new II(d.legacyInfoCardVastExtension));
d.sodarExtensionData&&e.push(new wI(d.sodarExtensionData));p&&e.push(new FI(p));e.push(new LI(QJ(d.pings)));m=RJ(d.pings);if(r){a:{r=g.u(r);for(p=r.next();!p.done;p=r.next())if(p=p.value,"SLOT_TYPE_PLAYER_UNDERLAY"===p.adSlotMetadata.slotType&&(f=g.V(p.fulfillmentContent.fulfilledLayout,tM))&&(f=g.V(f.renderingContent,sM))&&f.associatedPlayerBytesLayoutId===b){r=p;break a}r=void 0}r&&e.push(new kI(r))}return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",Bb:m,layoutExitNormalTriggers:[new $L(a.j,b)],layoutExitSkipTriggers:d.skipOffsetMilliseconds?
[new bM(a.j,q)]:[],layoutExitMuteTriggers:[new bM(a.j,q)],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:c,dW:e,ac:n(t),adLayoutLoggingData:d.adLayoutLoggingData}};
XGa=function(a,b,c,d,e,f,h,l,m){d.every(function(p){return OI(p,[],["LAYOUT_TYPE_MEDIA"])})||kG("Unexpect subLayout type for DAI composite layout");
b=wJ(a.B.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var n={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Ya:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",Bb:new Map,layoutExitNormalTriggers:[new WEa(a.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Tc:[],Ya:"core",Aa:new SI([new xI(c),new yI(l),new sI(d),new aI(e),new CI(f),new AI({}),new uAa(m)]),ac:h(n)}};
SGa=function(a){return null!=a};
pN=function(a,b,c){var d=this;this.B=a;this.C=b;this.Ca=c;this.j=function(e){return KM(d.B.get(),e)}};
OFa=function(a,b,c,d,e,f){f=void 0===f?[]:f;var h=JJ(a.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),l=[];d.mp&&d.mp.start!==d.po.start&&l.push(new YL(a.j,c,new Kv(d.mp.start,d.po.start),!1));l.push(new YL(a.j,c,new Kv(d.po.start,d.po.end),d.HF));d={getAdBreakUrl:b.getAdBreakUrl,uR:d.po.start,tR:d.po.end,cueProcessedMs:d.cueProcessedMs};b=new fM(a.j,h);f=[new EI(d)].concat(g.qa(f));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:[new aM(a.j,
c),new dM(a.j,h),new eM(a.j,h)],Ya:"core",Aa:new SI(f),adSlotLoggingData:e}};
mIa=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())d.push(lIa(a,b,e.value));return d};
lIa=function(a,b,c){return null!=c.triggeringSlotId&&c.triggeringSlotId===a?c.clone(b):c};
FGa=function(a,b,c,d,e){return nIa(a,b,c,d,e)};
jHa=function(a,b,c,d){var e=JJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");return nIa(a,e,b,c,d)};
nIa=function(a,b,c,d,e){var f=new VL(a.j,c),h=[new cM(a.j,b)];a=[new dM(a.j,b),new aM(a.j,d)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Aa:new SI([new DI(e({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a},c))]),adSlotLoggingData:void 0}};
CHa=function(a,b,c,d,e,f){var h=JJ(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),l=JJ(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=wJ(a.B.get(),"LAYOUT_TYPE_SURVEY",l);d=qN(a,b,c,d);var n=[new cM(a.j,h)];c=[new dM(a.j,h),new aM(a.j,c),new SL(a.j,m)];if(d instanceof RI)return d;l=f({slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:n,slotExpirationTriggers:c},{slotId:l,layoutId:m});f=l.w9;l=l.G8;return[{slotId:h,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:xHa(a,b,h,d),slotFulfillmentTriggers:yHa(a,b,h,n),slotExpirationTriggers:c,Ya:"core",Aa:new SI([new DI(f),new MI(MM(b))]),adSlotLoggingData:e},l]};
MM=function(a){return"AD_PLACEMENT_KIND_START"===a.kind};
jGa=function(a,b,c,d,e){e=e?e:JJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new VL(a.j,c);var f=[new cM(a.j,e)];a=[new aM(a.j,b),new dM(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Ya:"core",Aa:new SI([new DI(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
lGa=function(a,b,c,d){var e=JJ(a.B.get(),"SLOT_TYPE_PLAYER_UNDERLAY");c=new VL(a.j,c);var f=[new cM(a.j,e)];a=[new aM(a.j,b),new dM(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a,Ya:"core",Aa:new SI([new DI(d({slotId:e,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:a}))])}};
bGa=function(a,b,c,d,e,f,h){var l=JJ(a.B.get(),"SLOT_TYPE_IN_PLAYER"),m=wJ(a.B.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",l);d=oIa(a,d,f,h,m);if(d instanceof RI)return d;h=[new cM(a.j,l)];e=[new aM(a.j,f),new cM(a.j,e),new hM(a.j,e)];c=XI(c,{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e});a=a.C.get();f={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",Ya:"core"};b={layoutId:m,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",
Bb:new Map,layoutExitNormalTriggers:[new dFa(a.j,m,b.durationMs)],layoutExitSkipTriggers:[new fFa(a.j,m,b.durationMs)],Tc:[new eFa(a.j,m)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],Ya:"core",Aa:new SI([new rAa(b)]),ac:c(f)};return{slotId:l,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:h,slotExpirationTriggers:e,Aa:new SI([new DI(b)])}};
eHa=function(a,b,c,d,e,f){b=qN(a,b,c,d);if(b instanceof RI)return b;var h=b instanceof YL?new $Ea(a.j,c,b.j):null;d=JJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");var l=[new cM(a.j,d)];a=[new aM(a.j,c),new dM(a.j,d)];f=f({slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a},h);return f instanceof QI?new RI(f):{slotId:d,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:l,slotExpirationTriggers:a,
Ya:"core",Aa:new SI([new DI(f)]),adSlotLoggingData:e}};
cHa=function(a,b,c,d){var e=JJ(a.B.get(),"SLOT_TYPE_IN_PLAYER"),f=new RL(a.j,b),h=[new gM(a.j,e)];a=[new aM(a.j,b),new dM(a.j,e)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Aa:new SI([new DI(d({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:c}};
MGa=function(a,b,c,d){var e=JJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new VL(a.j,c);var f=[new cM(a.j,e)],h=[new dM(a.j,e),new aM(a.j,b)];f={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:f,slotExpirationTriggers:h};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:[new cM(a.j,e)],slotExpirationTriggers:[new aM(a.j,b),new dM(a.j,e)],Ya:"core",Aa:new SI([new DI(d(f))])}};
JGa=function(a,b,c,d,e){var f=JJ(a.B.get(),"SLOT_TYPE_IN_PLAYER");c=new UL(a.j,d,c);d=[new cM(a.j,f)];a=[new aM(a.j,b)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Ya:"core",Aa:new SI([new DI(e({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))])}};
XFa=function(a,b,c,d,e,f){var h=JJ(a.B.get(),b);return pIa(a,h,b,new VL(a.j,d),[new aM(a.j,c),new dM(a.j,h),new WL(a.j,d,["error"])],e,f)};
WFa=function(a,b,c,d,e,f,h){var l=JJ(a.B.get(),b);return pIa(a,l,b,new WL(a.j,e,["normal"]),[new aM(a.j,c),new dM(a.j,l),new WL(a.j,d,["error"])],f,h)};
SFa=function(a,b,c,d,e){var f=JJ(a.B.get(),b);return pIa(a,f,b,new RL(a.j,c),[new aM(a.j,c),new dM(a.j,f)],d,e)};
ZGa=function(a,b,c,d,e){c=c?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var f=JJ(a.B.get(),c);b=new RL(a.j,b);var h=[new cM(a.j,f)];a=[new dM(a.j,f)];return{slotId:f,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a,Ya:"core",Aa:new SI([new DI(e({slotId:f,slotType:c,slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:h,slotExpirationTriggers:a}))]),adSlotLoggingData:d}};
TGa=function(a,b,c,d){var e=JJ(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),f=new XEa(a.j),h=[new gM(a.j,e)];b=[new aM(a.j,b)];var l={slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b};a=a.Ca.get();return!g.iJ(a.J.U())&&a.J.U().experiments.jb("enable_pacf_slot_asde_player_byte_h5")||g.iJ(a.J.U())&&a.J.U().experiments.jb("enable_pacf_slot_asde_player_byte_h5_TV")?{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,
slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Ya:"core",Aa:new SI([new DI(d(l)),new AI({})]),adSlotLoggingData:c}:{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:h,slotExpirationTriggers:b,Ya:"core",Aa:new SI([new DI(d(l)),new AI({})])}};
uHa=function(a,b){return IHa(a.Ca.get())?new WL(a.j,b,["normal","error","skipped"]):new WL(a.j,b,["normal"])};
fGa=function(a,b,c,d,e){b=uHa(a,b);a=vHa(a,b,c);e=e({slotId:a.slotId,slotType:a.slotType,slotPhysicalPosition:a.slotPhysicalPosition,slotEntryTrigger:a.slotEntryTrigger,slotFulfillmentTriggers:a.slotFulfillmentTriggers,slotExpirationTriggers:a.slotExpirationTriggers,Ya:a.Ya});return e instanceof RI?e:{gx:Object.assign({},a,{Aa:new SI([new DI(e.layout)]),adSlotLoggingData:d}),og:e.og}};
gGa=function(a,b,c,d,e,f,h){c=wHa(a,b,c,d);if(c instanceof RI)return c;h=h({slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers,Ya:c.Ya});if(h instanceof RI)return h;d=[new MI(MM(b)),new DI(h.layout)];f&&d.push(new KI({}));return{gx:{slotId:c.slotId,slotType:c.slotType,slotPhysicalPosition:c.slotPhysicalPosition,slotEntryTrigger:xHa(a,b,
c.slotId,c.slotEntryTrigger),slotFulfillmentTriggers:yHa(a,b,c.slotId,c.slotFulfillmentTriggers),slotExpirationTriggers:c.slotExpirationTriggers,Ya:c.Ya,Aa:new SI(d),adSlotLoggingData:e},og:h.og}};
xHa=function(a,b,c,d){return a.Ca.get().rd(MM(b))?new PL(a.j,c):d};
yHa=function(a,b,c,d){return a.Ca.get().rd(MM(b))?[new gM(a.j,c)]:d};
vHa=function(a,b,c){var d=JJ(a.B.get(),"SLOT_TYPE_PLAYER_BYTES"),e=[new cM(a.j,d)];a=[new dM(a.j,d),new aM(a.j,c)];return{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:a,Ya:"core"}};
wHa=function(a,b,c,d){b=qN(a,b,c,d);return b instanceof RI?b:vHa(a,b,c)};
aHa=function(a,b,c,d,e,f){var h=JJ(a.B.get(),"SLOT_TYPE_FORECASTING");b=qN(a,b,c,d);if(b instanceof RI)return b;d=[new cM(a.j,h)];a=[new dM(a.j,h),new aM(a.j,c)];return{slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a,Ya:"core",Aa:new SI([new DI(f({slotId:h,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:b,slotFulfillmentTriggers:d,slotExpirationTriggers:a}))]),adSlotLoggingData:e}};
qIa=function(a,b,c,d,e){var f=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new RL(a.j,c);case "AD_PLACEMENT_KIND_MILLISECONDS":return a=NFa(b,d),a instanceof RI?a:e(a.po,f);case "AD_PLACEMENT_KIND_END":return new TL(a.j,c,f);default:return new RI("Cannot construct entry trigger",{kind:b.kind})}};
oIa=function(a,b,c,d,e){return qIa(a,b,c,d,function(f,h){return new ZEa(a.j,c,f,h,e)})};
qN=function(a,b,c,d){return qIa(a,b,c,d,function(e,f){return new YL(a.j,c,e,f)})};
pIa=function(a,b,c,d,e,f,h){a=[new gM(a.j,b)];return{slotId:b,slotType:c,slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e,Ya:"core",Aa:new SI([new DI(h({slotId:b,slotType:c,slotPhysicalPosition:1,Ya:"core",slotEntryTrigger:d,slotFulfillmentTriggers:a,slotExpirationTriggers:e}))]),adSlotLoggingData:f}};
rN=function(a,b){g.I.call(this);this.Ca=a;this.j=b;this.eventCount=0};
rIa=function(a,b,c,d){rN.call(this,a,b);this.Ca=a;this.Ta=c;this.context=d};
sN=function(){this.j=new Map};
tN=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
zN=function(a){g.I.call(this);this.counter=[0,0,0,0];this.B=new Uint8Array(16);this.j=16;if(!sIa){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;256>b;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);uN=new Uint8Array(256);vN=tN(256);wN=tN(256);xN=tN(256);yN=tN(256);for(var f=0;256>f;f++){e=f?d[255^c[f]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;uN[f]=e;b=e<<1^(e>>7&&283);var h=b^e;vN[f]=b<<24|e<<16|e<<8|h;wN[f]=h<<24|vN[f]>>>8;xN[f]=e<<24|wN[f]>>>8;yN[f]=e<<24|xN[f]>>>8}sIa=!0}e=tN(44);for(c=
0;4>c;c++)e[c]=a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;44>c;c++)a=e[c-1],c%4||(a=(uN[a>>16&255]^d)<<24|uN[a>>8&255]<<16|uN[a&255]<<8|uN[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
tIa=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],f=a.counter[3]^b[3],h=3;0<=h&&!(a.counter[h]=-~a.counter[h]);h--);for(var l,m,n=4;40>n;)h=vN[c>>>24]^wN[d>>16&255]^xN[e>>8&255]^yN[f&255]^b[n++],l=vN[d>>>24]^wN[e>>16&255]^xN[f>>8&255]^yN[c&255]^b[n++],m=vN[e>>>24]^wN[f>>16&255]^xN[c>>8&255]^yN[d&255]^b[n++],f=vN[f>>>24]^wN[c>>16&255]^xN[d>>8&255]^yN[e&255]^b[n++],c=h,d=l,e=m;a=a.B;h=b[40];a[0]=uN[c>>>24]^h>>>24;a[1]=uN[d>>16&255]^h>>16&255;a[2]=uN[e>>8&255]^
h>>8&255;a[3]=uN[f&255]^h&255;h=b[41];a[4]=uN[d>>>24]^h>>>24;a[5]=uN[e>>16&255]^h>>16&255;a[6]=uN[f>>8&255]^h>>8&255;a[7]=uN[c&255]^h&255;h=b[42];a[8]=uN[e>>>24]^h>>>24;a[9]=uN[f>>16&255]^h>>16&255;a[10]=uN[c>>8&255]^h>>8&255;a[11]=uN[d&255]^h&255;h=b[43];a[12]=uN[f>>>24]^h>>>24;a[13]=uN[c>>16&255]^h>>16&255;a[14]=uN[d>>8&255]^h>>8&255;a[15]=uN[e&255]^h&255};
BN=function(){if(!uIa&&!g.qD){if(AN)return AN;var a;AN=null==(a=window.crypto)?void 0:a.subtle;var b,c,d;if((null==(b=AN)?0:b.importKey)&&(null==(c=AN)?0:c.sign)&&(null==(d=AN)?0:d.encrypt))return AN;AN=void 0}};
vIa=function(){this.B=this.Qy=0;this.j=Array.from({length:CN.length}).fill(0)};
wIa=function(){};
xIa=function(a){this.name=a;this.startTimeMs=(0,g.$C)();this.j=!1};
yIa=function(){this.j=new wIa};
zIa=function(a,b,c,d){d=void 0===d?1:d;0<=c&&(b in a.j||(a.j[b]=new vIa),a.j[b].rg(c,d))};
AIa=function(a,b,c,d,e){var f=(0,g.$C)(),h=e?e(b):void 0,l;e=null!=(l=null==h?void 0:h.Qy)?l:1;var m;l=null!=(m=null==h?void 0:h.profile)?m:c;zIa(a,l,f-d,e);return b};
BIa=function(a,b,c,d,e){return b&&"object"===typeof b&&"then"in b&&"function"===typeof b.then?b.then(function(f){return AIa(a,f,c,d,e)},void 0):AIa(a,b,c,d,e)};
CIa=function(){};
DN=function(a,b){this.Id=a;this.cipher=this.Id.exports.AES128CTRCipher_create(b.byteOffset)};
g.EN=function(a){this.D=a};
g.FN=function(a){g.I.call(this);this.B=a};
GN=function(a,b){this.j=new DN(a,b)};
DIa=function(a){this.G=new Uint8Array(64);this.C=new Uint8Array(64);this.D=0;this.K=new Uint8Array(64);this.B=0;this.G.set(a);this.C.set(a);for(a=0;64>a;a++)this.G[a]^=92,this.C[a]^=54;this.reset()};
EIa=function(a,b,c){for(var d=a.N,e=a.j[0],f=a.j[1],h=a.j[2],l=a.j[3],m=a.j[4],n=a.j[5],p=a.j[6],q=a.j[7],r,t,v,w=0;64>w;)16>w?(d[w]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],v=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]=v),r=q+HN[w]+v+((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&n^~m&p),t=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&f^e&h^f&h),q=r+t,l+=r,w++,16>w?(d[w]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=
d[w-2],t=d[w-15],v=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]=v),r=p+HN[w]+v+((l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7))+(l&m^~l&n),t=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&e^q&f^e&f),p=r+t,h+=r,w++,16>w?(d[w]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],v=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]=v),r=n+HN[w]+v+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&l^
~h&m),t=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&q^p&e^q&e),n=r+t,f+=r,w++,16>w?(d[w]=v=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4):(r=d[w-2],t=d[w-15],v=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]=v),r=m+HN[w]+v+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&l),t=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&p^n&q^p&q),v=q,q=l,l=v,v=p,p=h,h=v,v=n,n=f,f=v,m=e+r,e=r+t,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};
GIa=function(a){var b=new Uint8Array(32),c=64-a.B;55<a.B&&(c+=64);var d=new Uint8Array(c);d[0]=128;for(var e=8*a.D,f=1;9>f;f++){var h=e%256;d[c-f]=h;e=(e-h)/256}a.update(d);for(c=0;8>c;c++)b[4*c]=a.j[c]>>>24,b[4*c+1]=a.j[c]>>>16&255,b[4*c+2]=a.j[c]>>>8&255,b[4*c+3]=a.j[c]&255;FIa(a);return b};
FIa=function(a){a.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];a.N=[];a.N.length=64;a.D=0;a.B=0};
HIa=function(a){this.j=a};
IIa=function(a,b,c){a=new DIa(a.j);a.update(b);a.update(c);b=GIa(a);a.update(a.G);a.update(b);b=GIa(a);a.reset();return b};
JIa=function(a){this.B=a};
KIa=function(a,b,c,d){var e,f,h;return g.H(function(l){switch(l.j){case 1:if(a.j){l.Ia(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))}})};
LIa=function(a,b,c){a.C||(a.C=new HIa(a.B));return IIa(a.C,b,c)};
MIa=function(a,b,c){var d,e;return g.H(function(f){if(1==f.j){d=BN();if(!d)return f.return(LIa(a,b,c));g.Ba(f,3);return g.z(f,KIa(a,b,c,d),5)}if(3!=f.j)return f.return(f.B);e=g.Da(f);g.eF(e);uIa=!0;return f.return(LIa(a,b,c))})};
IN=function(){var a=NIa;var b=void 0===b?[]:b;var c=void 0===c?[]:c;b=Wla.apply(null,[Xla.apply(null,g.qa(b))].concat(g.qa(c)));this.store=Zla(a,void 0,b)};
g.OIa=function(a,b,c){for(var d=Object.assign({},a),e=g.u(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=f.value;var h=a[f],l=b[f];if(void 0===l)delete d[f];else if(void 0===h)d[f]=l;else if(Array.isArray(l)&&Array.isArray(h))d[f]=c?[].concat(g.qa(h),g.qa(l)):l;else if(!Array.isArray(l)&&g.bb(l)&&!Array.isArray(h)&&g.bb(h))d[f]=g.OIa(h,l,c);else if(typeof l===typeof h)d[f]=l;else return b=new g.AC("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,hpb:h,updateValue:l}),
g.dF(b),a}return d};
JN=function(a){var b=this;a=void 0===a?[]:a;this.j=[];this.C=this.B=0;this.D=void 0;this.totalLength=0;a.forEach(function(c){b.append(c)})};
PIa=function(a,b){return 0===a.j.length?!1:(a=a.j[a.j.length-1])&&a.buffer===b.buffer&&a.byteOffset+a.length===b.byteOffset};
KN=function(a,b){b=g.u(b.j);for(var c=b.next();!c.done;c=b.next())a.append(c.value)};
LN=function(a,b,c){return a.split(b).Km.split(c).YI};
QIa=function(a){a.D=void 0;a.B=0;a.C=0};
RIa=function(a,b,c){a.isFocused(b);return b-a.C+c<=a.j[a.B].length};
SIa=function(a){if(!a.D){var b=a.j[a.B];a.D=new DataView(b.buffer,b.byteOffset,b.length)}return a.D};
TIa=function(a,b,c){b=void 0===b?0:b;c=void 0===c?-1:c;if(!a.totalLength||!c)return new DataView(new ArrayBuffer(0));0>c&&(c=a.totalLength-b);a.focus(b);if(!RIa(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);QIa(a);a.focus(b)}d=a.j[a.B];return new DataView(d.buffer,d.byteOffset+b-a.C,c)};
MN=function(a,b,c){a=TIa(a,void 0===b?0:b,void 0===c?-1:c);return new Uint8Array(a.buffer,a.byteOffset,a.byteLength)};
UN=function(a,b,c){a=MN(a,void 0===b?0:b,void 0===c?-1:c);b=new Uint8Array(a.length);try{b.set(a)}catch(d){for(c=0;c<a.length;c++)b[c]=a[c]}return b};
VN=function(a,b){a.focus(b);return a.j[a.B][b-a.C]};
UIa=function(a,b){a.focus(b);return RIa(a,b,4)?SIa(a).getUint32(b-a.C):256*(256*(256*VN(a,b)+VN(a,b+1))+VN(a,b+2))+VN(a,b+3)};
VIa=function(a){for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
WN=function(a){return String.fromCharCode.apply(null,a)};
YN=function(a){return a.length?XN?XN.decode(a):WN(a):""};
g.$N=function(a){if(!a.length)return"";try{if(XN)return XN.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(h){}for(var b=0,c=[],d=a.length;b<d;){for(var e=0;1024>e&&b<d;){var f=a[b++];if(128>f)ZN[e++]=f;else{if(224>f)f=(f&31)<<6|a[b++]&63;else if(240>f)f=(f&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(1024===e+1){--b;break}f=(f&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;f-=65536;ZN[e++]=55296|f>>10;f=56320|f&1023}ZN[e++]=f}}f=String.fromCharCode.apply(String,ZN);
1024>e&&(f=f.substr(0,e));c.push(f)}return c.join("")};
bO=function(a,b){var c;if(null==(c=aO)?0:c.encodeInto)return b=aO.encodeInto(a,b),b.read<a.length?4*a.length:b.written;for(var d=c=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296===(e&64512)&&d+1<a.length&&56320===(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c};
WIa=function(a){if(aO)return aO.encode(a);var b=new Uint8Array(Math.ceil(1.2*a.length)),c=bO(a,b);b.length<c&&(b=new Uint8Array(c),c=bO(a,b));b.length>c&&(b=b.subarray(0,c));return b};
cO=function(a){this.j=a;this.pos=0;this.B=-1};
dO=function(a){var b=VN(a.j,a.pos);++a.pos;if(128>b)return b;for(var c=b&127,d=1;128<=b;)b=VN(a.j,a.pos),++a.pos,d*=128,c+=(b&127)*d;return c};
eO=function(a,b){var c=a.B;for(a.B=-1;a.pos+1<=a.j.totalLength;){0>c&&(c=dO(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:dO(a);break;case 1:a.pos+=8;break;case 2:d=dO(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};
fO=function(a,b){if(eO(a,b))return dO(a)};
gO=function(a,b){if(eO(a,b))return!!dO(a)};
hO=function(a,b){if(eO(a,b)){b=dO(a);var c=MN(a.j,a.pos,b);a.pos+=b;return c}};
iO=function(a,b){if(a=hO(a,b))return g.$N(a)};
jO=function(a,b,c){if(a=hO(a,b))return c(new cO(new JN([a])))};
kO=function(a,b){for(var c=[];eO(a,b);)c.push(dO(a));return c.length?c:void 0};
lO=function(a,b,c){for(var d=[],e;e=hO(a,b);)d.push(c(new cO(new JN([e]))));return d.length?d:void 0};
mO=function(a,b){a=a instanceof Uint8Array?new JN([a]):a;return b(new cO(a))};
XIa=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};
YIa=function(a,b){this.Id=b;this.pos=0;this.B=[];this.j=XIa(void 0===a?4096:a,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)};
nO=function(a,b){b=a.pos+b;if(!(a.j.length>=b)){for(var c=2*a.j.length;c<b;)c*=2;a.j=XIa(c,a.Id,a.j.subarray(0,a.pos));a.view=new DataView(a.j.buffer,a.j.byteOffset,a.j.byteLength)}};
oO=function(a,b){if(268435455<b){nO(a,4);for(var c=b&1073741823,d=0;4>d;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(nO(a,4);127<b;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1};
pO=function(a,b,c){void 0!==c&&(oO(a,8*b),oO(a,c))};
qO=function(a,b,c){void 0!==c&&pO(a,b,c?1:0)};
rO=function(a,b,c){void 0!==c&&(oO(a,8*b+2),b=c.length,oO(a,b),nO(a,b),a.j.set(c,a.pos),a.pos+=b)};
sO=function(a,b,c){void 0!==c&&(ZIa(a,b,Math.ceil(Math.log2(4*c.length+2)/7)),nO(a,1.2*c.length),b=bO(c,a.j.subarray(a.pos)),a.pos+b>a.j.length&&(nO(a,b),b=bO(c,a.j.subarray(a.pos))),a.pos+=b,$Ia(a))};
ZIa=function(a,b,c){c=void 0===c?2:c;oO(a,8*b+2);a.B.push(a.pos);a.B.push(c);a.pos+=c};
$Ia=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}};
tO=function(a,b,c,d,e){c&&(ZIa(a,b,void 0===e?3:e),d(a,c),$Ia(a))};
g.uO=function(a,b,c){c=new YIa(4096,c);b(c,a);return new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos)};
g.vO=function(a){var b=new cO(new JN([Ig(decodeURIComponent(a))]));a=iO(b,2);b=fO(b,4);var c=aJa[b];if("undefined"===typeof c)throw a=new g.AC("Failed to recognize field number",{name:"EntityKeyHelperError",Anb:b}),g.dF(a),a;return{b7:b,entityType:c,entityId:a}};
g.wO=function(a,b){var c=new YIa;rO(c,2,WIa(a));a=bJa[b];if("undefined"===typeof a)throw b=new g.AC("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.dF(b),b;pO(c,4,a);pO(c,5,1);b=new Uint8Array(c.j.buffer,c.j.byteOffset,c.pos);return encodeURIComponent(g.Gg(b))};
xO=function(a,b,c,d){if(void 0===d)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
cJa=function(a,b,c,d,e){var f=a[b];if(null==f||!f[c])return a;d=g.OIa(f[c],d,"REPEATED_FIELDS_MERGE_OPTION_APPEND"===e);e={};f={};return Object.assign({},a,(f[b]=Object.assign({},a[b],(e[c]=d,e)),f))};
dJa=function(a,b){a=void 0===a?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var f,h=null==(f=e.options)?void 0:f.persistenceOption;if(h&&"ENTITY_PERSISTENCE_OPTION_UNKNOWN"!==h&&"ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"!==h)return d;if(!e.entityKey)return g.dF(Error("Missing entity key")),d;if("ENTITY_MUTATION_TYPE_REPLACE"===e.type){if(!e.payload)return g.dF(new g.AC("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey})),d;var l=g.bd(e.payload);
return xO(d,l,e.entityKey,e.payload[l])}if("ENTITY_MUTATION_TYPE_DELETE"===e.type){e=e.entityKey;try{var m=g.vO(e).entityType;l=xO(d,m,e)}catch(q){if(q instanceof Error)g.dF(new g.AC("Failed to deserialize entity key",{entityKey:e,YQ:q.message})),l=d;else throw q;}return l}if("ENTITY_MUTATION_TYPE_UPDATE"===e.type){if(!e.payload)return g.dF(new g.AC("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey})),d;l=g.bd(e.payload);var n,p;return cJa(d,l,e.entityKey,e.payload[l],null==(n=
e.fieldMask)?void 0:null==(p=n.mergeOptions)?void 0:p.repeatedFieldsMergeOption)}return d},a);
case "REPLACE_ENTITY":var c=b.payload;return xO(a,c.entityType,c.key,c.a7);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 xO(h,e,l,f[l])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,cJa(a,c.entityType,c.key,c.a7,c.Wob);default:return a}};
yO=function(a,b,c){return a[b]?a[b][c]||null:null};
fJa=function(a){var b=a.hours||0;var c=a.minutes||0,d=a.seconds||0;b=d+60*c+3600*b+86400*(a.days||0)+604800*(a.weeks||0)+2629800*(a.months||0)+31557600*(a.years||0);0>=b?b={hours:0,minutes:0,seconds:0}:(a=b,b=Math.floor(a/3600),a%=3600,c=Math.floor(a/60),d=Math.floor(a%60),b={hours:b,minutes:c,seconds:d});var e=void 0===b.hours?0:b.hours;c=void 0===b.minutes?0:b.minutes;a=void 0===b.seconds?0:b.seconds;d=0<e;b=[];if(d){e=(new Intl.NumberFormat("en-u-nu-latn")).format(e);var f=["fr"],h="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");
e="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(zO)?e.replace(",","\u00a0"):f.includes(zO)?e.replace(",","\u202f"):h.includes(zO)?e.replace(",","."):e;b.push(e)}d=void 0===d?!1:d;c=(["af","be","lt"].includes(zO)||d)&&10>c?eJa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);b.push(c);c=eJa().format(a);b.push(c);c=":";"da fi id si sl sr sr-Latn".split(" ").includes(zO)&&(c=".");return b.join(c)};
eJa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
gJa=function(a,b){var c,d;a=(null==(c=a.watchEndpointSupportedAuthorizationTokenConfig)?void 0:null==(d=c.videoAuthorizationToken)?void 0:d.credentialTransferTokens)||[];for(c=0;c<a.length;++c)if(a[c].scope===b)return a[c].token||void 0};
hJa=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};
AO=function(a){return a?function(){try{return a.apply(this,arguments)}catch(b){g.dF(b)}}:a};
BO=function(a,b,c){if(!g.AB("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)};
CO=function(a,b,c){if(!g.AB("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.AB("jspb_translator_log_errors")&&g.fB(a)};
jJa=function(a){var b=new Uma,c=0;try{var d=a.eventType;void 0!==d&&(S(b,1,iJa[d]),c++);var e=a.storedEventsCount;void 0!==e&&(Ek(b,2,e),c++);var f=a.expiredEventsCount;void 0!==f&&(Ek(b,3,f),c++);var h=a.averageTimeBetweenDispatchesMs;void 0!==h&&(Ek(b,4,h),c++);var l=a.oldestStoredEventAgeMs;void 0!==l&&(Ek(b,5,l),c++);var m=a.metricIntervalMs;void 0!==m&&(Ek(b,6,m),c++);var n=a.dispatchedEventCount;void 0!==n&&(Ek(b,7,n),c++);var p=a.dispatchAttemptCount;void 0!==p&&(Ek(b,8,p),c++);var q=a.withDiskSpaceMs;
void 0!==q&&(Gk(b,9,q),c++);var r=a.withNetworkMs;void 0!==r&&(Gk(b,10,r),c++);var t=a.foregroundMs;void 0!==t&&(Gk(b,11,t),c++);var v=a.activeMs;void 0!==v&&(Gk(b,12,v),c++);var w=a.condensedPageBcSlackCount;void 0!==w&&(Ek(b,13,w),c++);var A=a.persistedDeleteUsedCount;void 0!==A&&(Ek(b,14,A),c++);var C=a.persistedDeleteCount;void 0!==C&&(Ek(b,15,C),c++);var F=a.eventDisabledCount;void 0!==F&&(Ek(b,16,F),c++);var G=a.identityResolutionErrorCount;void 0!==G&&(Ek(b,17,G),c++);var L=a.exceededMaxRetryCount;
void 0!==L&&(Ek(b,18,L),c++);var M=a.condensedPageBcPersistFailCount;void 0!==M&&(Ek(b,19,M),c++);var R=a.couldNotUnloadPageCount;void 0!==R&&(Ek(b,20,R),c++);var ea=a.pageWasCorruptedCount;void 0!==ea&&(Ek(b,24,ea),c++);var ma=a.badEventIndexCount;void 0!==ma&&(Ek(b,27,ma),c++);var oa=a.serializeErrorCount;void 0!==oa&&(Ek(b,25,oa),c++);var ia=a.payloadInfoNotSetCount;void 0!==ia&&(Ek(b,21,ia),c++);var va=a.requestEmptyErrorCount;void 0!==va&&(Ek(b,22,va),c++);var aa=a.clientEventNotSetCount;void 0!==
aa&&(Ek(b,23,aa),c++);var U=a.differentIdCount;void 0!==U&&(Ek(b,26,U),c++);var La=a.failedWriteCount;void 0!==La&&(Ek(b,28,La),c++);var x=a.failedReadCount;void 0!==x&&(Ek(b,29,x),c++);var ba=a.failedDispatchCount;void 0!==ba&&(Ek(b,30,ba),c++);var Ja=a.failedFetchCount;void 0!==Ja&&(Ek(b,31,Ja),c++);var cb=a.loggingliteLogsMoved;void 0!==cb&&(Ek(b,32,cb),c++);var ob=a.loggingliteLogsDropped;void 0!==ob&&(Ek(b,33,ob),c++);return[c===Object.keys(a).length,b]}catch(Qa){return Y(Qa),[!1,void 0]}};
DO=function(a){var b=new eA,c=0;try{var d=a.trackingParams;void 0!==d&&(b.setTrackingParams(d),c++);var e=a.veType;void 0!==e&&(Ek(b,2,e),c++);var f=a.elementIndex;void 0!==f&&(Ek(b,3,f),c++);var h=a.veCounter;void 0!==h&&(Ek(b,6,h),c++);var l=a.dataElement;if(l){var m=DO(l);m[0]&&(rk(b,eA,7,m[1]),c++)}var n=a.isCounterfactual;void 0!==n&&(Dk(b,5,n),c++);var p=a.youtubeData;if(p){var q=new vy,r=0;try{var t=p.channelData;if(t){var v=new zx,w=0;try{var A=t.externalId;void 0!==A&&(Kk(v,1,A),w++);var C=
[w===Object.keys(t).length,v]}catch(Na){Y(Na),C=[!1,void 0]}var F=C;F[0]&&(rk(q,zx,2,F[1]),r++)}var G=p.channelItem;if(G){var L=new Ax,M=0;try{var R=G.externalId;void 0!==R&&(Kk(L,1,R),M++);var ea=[M===Object.keys(G).length,L]}catch(Na){Y(Na),ea=[!1,void 0]}var ma=ea;ma[0]&&(rk(q,Ax,5,ma[1]),r++)}var oa=p.playlistItem;if(oa){var ia=new fma,va=0;try{var aa=oa.externalPlaylistId;void 0!==aa&&(Kk(ia,5,aa),va++);var U=[va===Object.keys(oa).length,ia]}catch(Na){Y(Na),U=[!1,void 0]}var La=U;La[0]&&(rk(q,
fma,6,La[1]),r++)}var x=p.analyticsData;if(x){var ba=new xx,Ja=0;try{var cb=x.tabName;void 0!==cb&&(S(ba,1,kJa[cb]),Ja++);var ob=x.analysisVariant;if(ob){var Qa=new kx,Ua=0;try{var ib=ob.analysisSummary;if(ib){var qb=new Uw,rb=0;try{var B=ib.type;void 0!==B&&(S(qb,1,lJa[B]),rb++);var D=ib.eligibility;void 0!==D&&(S(qb,2,mJa[D]),rb++);var E=ib.sentiment;void 0!==E&&(S(qb,3,nJa[E]),rb++);var J=[rb===Object.keys(ib).length,qb]}catch(Na){Y(Na),J=[!1,void 0]}var K=J;K[0]&&(rk(Qa,Uw,1,K[1]),Ua++)}var ca=
ob.videoPerformanceVariant;if(ca){var sa=oJa(ca);sa[0]&&(sk(Qa,hx,2,EO,sa[1]),Ua++)}var ka=ob.videoOverviewVariant;if(ka){var N=new ix,Z=0;try{var ya=ka.timePeriod;void 0!==ya&&(S(N,1,FO[ya]),Z++);var xa=ka.videoPerformanceVariant;if(xa){var Za=oJa(xa);Za[0]&&(rk(N,hx,2,Za[1]),Z++)}var Wa=ka.durationTimePeriod;void 0!==Wa&&(S(N,3,pJa[Wa]),Z++);var Bb=[Z===Object.keys(ka).length,N]}catch(Na){Y(Na),Bb=[!1,void 0]}var Qb=Bb;Qb[0]&&(sk(Qa,ix,3,EO,Qb[1]),Ua++)}var eb=ob.channelFluctuationVariant;if(eb){var Rb=
new Xw,hc=0;try{var Bc=eb.views;void 0!==Bc&&(S(Rb,1,GO[Bc]),hc++);var ac=eb.driver;void 0!==ac&&(S(Rb,2,qJa[ac]),hc++);var uc=eb.ctr;void 0!==uc&&(S(Rb,3,GO[uc]),hc++);var Wc=eb.impressions;void 0!==Wc&&(S(Rb,4,GO[Wc]),hc++);var Nc=eb.viewsPerVideo;void 0!==Nc&&(S(Rb,5,GO[Nc]),hc++);var Oc=[hc===Object.keys(eb).length,Rb]}catch(Na){Y(Na),Oc=[!1,void 0]}var Pc=Oc;Pc[0]&&(sk(Qa,Xw,4,EO,Pc[1]),Ua++)}var Vb=ob.artistOverviewVariant;if(Vb){var ud=new Vw,kd=0;try{var fc=Vb.timePeriod;void 0!==fc&&(S(ud,
1,FO[fc]),kd++);var Yb=Vb.variantType;void 0!==Yb&&(S(ud,2,rJa[Yb]),kd++);var Qc=[kd===Object.keys(Vb).length,ud]}catch(Na){Y(Na),Qc=[!1,void 0]}var Ib=Qc;Ib[0]&&(sk(Qa,Vw,5,EO,Ib[1]),Ua++)}var Zc=ob.monthlySubsVariant;if(Zc){var vd=sJa(Zc);vd[0]&&(sk(Qa,bx,6,EO,vd[1]),Ua++)}var Ob=ob.monthlyRevenueVariant;if(Ob){var oe=tJa(Ob);oe[0]&&(sk(Qa,ax,7,EO,oe[1]),Ua++)}var Md=ob.holisticMonthlyOverviewVariant;if(Md){var Nd=new cx,Oe=0;try{var xe=Md.viewsPerformance;if(xe){var Hd=uJa(xe);Hd[0]&&(rk(Nd,$w,
1,Hd[1]),Oe++)}var Cf=Md.subsPerformance;if(Cf){var Ve=sJa(Cf);Ve[0]&&(rk(Nd,bx,2,Ve[1]),Oe++)}var $d=Md.revenuePerformance;if($d){var Df=tJa($d);Df[0]&&(rk(Nd,ax,3,Df[1]),Oe++)}var ae=[Oe===Object.keys(Md).length,Nd]}catch(Na){Y(Na),ae=[!1,void 0]}var pe=ae;pe[0]&&(sk(Qa,cx,8,EO,pe[1]),Ua++)}var Id=ob.personalizedChannelOverviewVariant;if(Id){var wd=new gx,$c=0;try{var Od=Id.timePeriod;void 0!==Od&&(S(wd,1,FO[Od]),$c++);var We=Id.viewsPerformance;if(We){var Uf=uJa(We);Uf[0]&&(rk(wd,$w,2,Uf[1]),$c++)}var lg=
[$c===Object.keys(Id).length,wd]}catch(Na){Y(Na),lg=[!1,void 0]}var qe=lg;qe[0]&&(sk(Qa,gx,9,EO,qe[1]),Ua++)}var qc=ob.channelNewReturningVariant;if(qc){var Xe=new Yw,Vh=0;try{var fe=qc.uniqueViewers;void 0!==fe&&(S(Xe,1,GO[fe]),Vh++);var ai=qc.newViewers;void 0!==ai&&(S(Xe,2,GO[ai]),Vh++);var Ei=qc.returningViewers;void 0!==Ei&&(S(Xe,3,GO[Ei]),Vh++);var Hf=[Vh===Object.keys(qc).length,Xe]}catch(Na){Y(Na),Hf=[!1,void 0]}var cf=Hf;cf[0]&&(sk(Qa,Yw,10,EO,cf[1]),Ua++)}var ze=ob.lowReturningViewersDataStoryVariant;
if(ze){var bi=new dx,sc=0;try{var vc=ze.videoListType;void 0!==vc&&(S(bi,1,vJa[vc]),sc++);var Hc=[sc===Object.keys(ze).length,bi]}catch(Na){Y(Na),Hc=[!1,void 0]}var oj=Hc;oj[0]&&(sk(Qa,dx,11,EO,oj[1]),Ua++)}var If=ob.weeklyDataStoryVariant;if(If){var Qg=new jx,pg=0;try{var Fi=If.dateId;void 0!==Fi&&(Fk(Qg,1,Fi),pg++);var pj=[pg===Object.keys(If).length,Qg]}catch(Na){Y(Na),pj=[!1,void 0]}var Gi=pj;Gi[0]&&(sk(Qa,jx,12,EO,Gi[1]),Ua++)}var of=ob.monthlyDataStoryVariant;if(of){var fd=new ex,Jf=0;try{var Hi=
of.dateId;void 0!==Hi&&(Fk(fd,1,Hi),Jf++);var df=of.highlightType;void 0!==df&&(S(fd,2,wJa[df]),Jf++);var qg=of.adviceType;void 0!==qg&&(S(fd,3,xJa[qg]),Jf++);var Yf=of.revenueInsightType;void 0!==Yf&&(S(fd,4,yJa[Yf]),Jf++);var Ii=[Jf===Object.keys(of).length,fd]}catch(Na){Y(Na),Ii=[!1,void 0]}var Zf=Ii;Zf[0]&&(sk(Qa,ex,13,EO,Zf[1]),Ua++)}var rg=ob.otherFormatsDataStoryVariant;if(rg){var rh=new fx,sh=0;try{var sg=rg.overlapShorts;void 0!==sg&&(Fk(rh,1,sg),sh++);var Ae=rg.overlapChannels;void 0!==
Ae&&(Fk(rh,2,Ae),sh++);var ef=[sh===Object.keys(rg).length,rh]}catch(Na){Y(Na),ef=[!1,void 0]}var ge=ef;ge[0]&&(sk(Qa,fx,14,EO,ge[1]),Ua++)}var th=ob.audienceWatchesLongformDataStoryVariant;if(th){var ff=new Ww,pf=0;try{var Kf=th.hasOverlapVideo;void 0!==Kf&&(Dk(ff,1,Kf),pf++);var tg=th.hasOverlapLivestream;void 0!==tg&&(Dk(ff,2,tg),pf++);var Rg=th.overlapChannels;void 0!==Rg&&(Fk(ff,3,Rg),pf++);var se=[pf===Object.keys(th).length,ff]}catch(Na){Y(Na),se=[!1,void 0]}var ug=se;ug[0]&&(sk(Qa,Ww,15,EO,
ug[1]),Ua++)}var Lf=ob.contentInspirationDataStoryVariant;if(Lf){var Ji=new Zw,uh=0;try{var Vl=Lf.hasVideoOverlapData;void 0!==Vl&&(Dk(Ji,1,Vl),uh++);var Wl=Lf.hasChannelOverlapData;void 0!==Wl&&(Dk(Ji,2,Wl),uh++);var Sk=Lf.hasSearchTermsData;void 0!==Sk&&(Dk(Ji,3,Sk),uh++);var Xl=[uh===Object.keys(Lf).length,Ji]}catch(Na){Y(Na),Xl=[!1,void 0]}var Wj=Xl;Wj[0]&&(sk(Qa,Zw,16,EO,Wj[1]),Ua++)}var gf=[Ua===Object.keys(ob).length,Qa]}catch(Na){Y(Na),gf=[!1,void 0]}var Be=gf;Be[0]&&(rk(ba,kx,12,Be[1]),Ja++)}var Td=
x.cardConfig;if(Td){var Sg=new ox,Ki=0;try{var Yl=Td.cardType;void 0!==Yl&&(S(Sg,3,zJa[Yl]),Ki++);var Tk=Td.legacyMobileCardType;void 0!==Tk&&(S(Sg,5,AJa[Tk]),Ki++);var Xj=Td.entityType;void 0!==Xj&&(S(Sg,4,BJa[Xj]),Ki++);var vh=Td.tableCardConfig;if(vh){var Tg=new nx,qf=0;try{var ci=vh.dimension;void 0!==ci&&(S(Tg,1,HO[ci]),qf++);var Uk=vh.metrics;void 0!==Uk&&(CO(Tg.j.bind(Tg),Uk,HO),qf++);var Zl=[qf===Object.keys(vh).length,Tg]}catch(Na){Y(Na),Zl=[!1,void 0]}var di=Zl;di[0]&&(sk(Sg,nx,1,CJa,di[1]),
Ki++)}var Li=Td.keyMetricCardConfig;if(Li){var ei=new mx,vg=0;try{var fi=Li.metricTabConfigs;fi&&(BO(ei.j.bind(ei),fi,DJa),vg++);var Mi=[vg===Object.keys(Li).length,ei]}catch(Na){Y(Na),Mi=[!1,void 0]}var Yj=Mi;Yj[0]&&(sk(Sg,mx,2,CJa,Yj[1]),Ki++)}var $l=[Ki===Object.keys(Td).length,Sg]}catch(Na){Y(Na),$l=[!1,void 0]}var Zj=$l;Zj[0]&&(rk(ba,ox,13,Zj[1]),Ja++)}var Vk=x.externalVideoId;void 0!==Vk&&(Q(ba,15,Vk),Ja++);var am=x.videoSid;void 0!==am&&(Gk(ba,16,am),Ja++);var rf=x.exploreConfig;if(rf){var $f=
new wx,Mf=0;try{var ag=rf.metrics;void 0!==ag&&(CO($f.j.bind($f),ag,HO),Mf++);var bm=rf.dimension;void 0!==bm&&(S($f,2,HO[bm]),Mf++);var cm=rf.timePeriodType;void 0!==cm&&(S($f,3,FO[cm]),Mf++);var nc=[Mf===Object.keys(rf).length,$f]}catch(Na){Y(Na),nc=[!1,void 0]}var Lo=nc;Lo[0]&&(rk(ba,wx,18,Lo[1]),Ja++)}var qj=x.contentInspirationEntity;if(qj){var Wk=new Tw,rj=0;try{var Mo=qj.video;if(Mo){var sj=new Sw,Xk=0;try{var dm=Mo.externalVideoId;void 0!==dm&&(Q(sj,1,dm),Xk++);var No=[Xk===Object.keys(Mo).length,
sj]}catch(Na){Y(Na),No=[!1,void 0]}var em=No;em[0]&&(sk(Wk,Sw,1,IO,em[1]),rj++)}var Yk=qj.kgTopic;if(Yk){var tq=new Rw,jn=0;try{var kn=Yk.kgTopicMid;void 0!==kn&&(Q(tq,1,kn),jn++);var Oo=[jn===Object.keys(Yk).length,tq]}catch(Na){Y(Na),Oo=[!1,void 0]}var Po=Oo;Po[0]&&(sk(Wk,Rw,2,IO,Po[1]),rj++)}var tj=qj.freeformTopic;if(tj){var gi=new Pw,Ug=0;try{var Zk=tj.freeformTopic;void 0!==Zk&&(Q(gi,1,Zk),Ug++);var uq=tj.languageCode;void 0!==uq&&(Q(gi,4,uq),Ug++);var Qo=tj.isContentGap;void 0!==Qo&&(Dk(gi,
2,Qo),Ug++);var vq=tj.isShortsContentGap;void 0!==vq&&(Dk(gi,3,vq),Ug++);var Ro=tj.isInVideoIdeaShelf;void 0!==Ro&&(Dk(gi,5,Ro),Ug++);var wq=[Ug===Object.keys(tj).length,gi]}catch(Na){Y(Na),wq=[!1,void 0]}var xq=wq;xq[0]&&(sk(Wk,Pw,3,IO,xq[1]),rj++)}var Vg=qj.generatedOutline;if(Vg){var Ni=new Qw,Oi=0;try{var yq=Vg.feedbackToken;void 0!==yq&&(Q(Ni,1,yq),Oi++);var Wg=[Oi===Object.keys(Vg).length,Ni]}catch(Na){Y(Na),Wg=[!1,void 0]}var Ud=Wg;Ud[0]&&(sk(Wk,Qw,4,IO,Ud[1]),rj++)}var Qe=[rj===Object.keys(qj).length,
Wk]}catch(Na){Y(Na),Qe=[!1,void 0]}var ln=Qe;ln[0]&&(rk(ba,Tw,19,ln[1]),Ja++)}var So=[Ja===Object.keys(x).length,ba]}catch(Na){Y(Na),So=[!1,void 0]}var zq=So;zq[0]&&(rk(q,xx,20,zq[1]),r++)}var mn=p.promotionData;if(mn){var nn=new gma,fm=0;try{var Aq=mn.promotionId;void 0!==Aq&&(Q(nn,1,Aq),fm++);var Pi=mn.placementType;void 0!==Pi&&(S(nn,9,EJa[Pi]),fm++);var uj=[fm===Object.keys(mn).length,nn]}catch(Na){Y(Na),uj=[!1,void 0]}var ak=uj;ak[0]&&(rk(q,gma,21,ak[1]),r++)}var $k=p.backstageItem;if($k){var al=
new yx,gm=0;try{var Bq=$k.stanzaId;void 0!==Bq&&(Q(al,1,Bq),gm++);var Cq=$k.likeCount;void 0!==Cq&&(Gk(al,7,Cq),gm++);var To=$k.backstageId;void 0!==To&&(Q(al,9,To),gm++);var on=$k.wasPostScheduled;void 0!==on&&(Dk(al,14,on),gm++);var Uo=[gm===Object.keys($k).length,al]}catch(Na){Y(Na),Uo=[!1,void 0]}var Vo=Uo;Vo[0]&&(rk(q,yx,32,Vo[1]),r++)}var Xg=p.adminSelfieData;if(Xg){var hi=new tx,oc=0;try{var wh=Xg.componentId;void 0!==wh&&(Q(hi,1,wh),oc++);var Wo=Xg.componentType;void 0!==Wo&&(Q(hi,2,Wo),oc++);
var hm=Xg.payload;if(hm){var im=new sx,jm=0;try{var Xo=hm.include;if(Xo){var Yo=new px,Dq=0;try{var vj=Xo.fragmentName;void 0!==vj&&(Q(Yo,1,vj),Dq++);var wj=[Dq===Object.keys(Xo).length,Yo]}catch(Na){Y(Na),wj=[!1,void 0]}var bl=wj;bl[0]&&(sk(im,px,1,FJa,bl[1]),jm++)}var km=hm.toolboxPage;if(km){var pn=new rx,Zo=0;try{var bk=km.fragmentName;void 0!==bk&&(Q(pn,1,bk),Zo++);var ck=[Zo===Object.keys(km).length,pn]}catch(Na){Y(Na),ck=[!1,void 0]}var cl=ck;cl[0]&&(sk(im,rx,2,FJa,cl[1]),jm++)}var qn=hm.reviewQueuePage;
if(qn){var Eq=new qx,$o=0;try{var dl=qn.queueId;void 0!==dl&&(Ek(Eq,1,dl),$o++);var lm=[$o===Object.keys(qn).length,Eq]}catch(Na){Y(Na),lm=[!1,void 0]}var Qi=lm;Qi[0]&&(sk(im,qx,3,FJa,Qi[1]),jm++)}var Fq=[jm===Object.keys(hm).length,im]}catch(Na){Y(Na),Fq=[!1,void 0]}var Gq=Fq;Gq[0]&&(rk(hi,sx,3,Gq[1]),oc++)}var Hq=[oc===Object.keys(Xg).length,hi]}catch(Na){Y(Na),Hq=[!1,void 0]}var rn=Hq;rn[0]&&(rk(q,tx,41,rn[1]),r++)}var sn=p.notificationState;if(sn){var dk=new qma,el=0;try{var tn=sn.inboxInteractionData;
if(tn){var mm=new qy,ap=0;try{var Iq=tn.notifications;Iq&&(BO(mm.j.bind(mm),Iq,GJa),ap++);var Jq=[ap===Object.keys(tn).length,mm]}catch(Na){Y(Na),Jq=[!1,void 0]}var nm=Jq;nm[0]&&(rk(dk,qy,9,nm[1]),el++)}var om=[el===Object.keys(sn).length,dk]}catch(Na){Y(Na),om=[!1,void 0]}var wg=om;wg[0]&&(rk(q,qma,59,wg[1]),r++)}var xh=p.delegationContext;if(xh){var ii=new my,hf=0;try{var Kq=xh.externalChannelId;void 0!==Kq&&(Q(ii,1,Kq),hf++);var bp=xh.externalOwnerId;void 0!==bp&&(Q(ii,3,bp),hf++);var cp=xh.artistId;
void 0!==cp&&(Q(ii,4,cp),hf++);var fl=xh.roleType;if(fl){var xg=new ly,yg=0;try{var gl=fl.channelRoleType;void 0!==gl&&(Lk(xg,1,HJa,IJa[gl]),yg++);var dp=fl.artistRoleType;void 0!==dp&&(Lk(xg,2,HJa,JJa[dp]),yg++);var ek=fl.contentOwnerRoleType;void 0!==ek&&(Lk(xg,3,HJa,KJa[ek]),yg++);var fk=[yg===Object.keys(fl).length,xg]}catch(Na){Y(Na),fk=[!1,void 0]}var hl=fk;hl[0]&&(rk(ii,ly,5,hl[1]),hf++)}var pm=xh.oacChannelId;void 0!==pm&&(Q(ii,6,pm),hf++);var ep=xh.isInternalUser;void 0!==ep&&(Dk(ii,8,ep),
hf++);var fp=xh.user;void 0!==fp&&(Dk(ii,10,fp),hf++);var Lq=xh.delegationContextSerialized;void 0!==Lq&&(Kk(ii,9,Lq),hf++);var un=[hf===Object.keys(xh).length,ii]}catch(Na){Y(Na),un=[!1,void 0]}var vn=un;vn[0]&&(rk(q,my,63,vn[1]),r++)}var il=p.campaignData;if(il){var gp=new oma,jl=0;try{var wn=il.campaignName;void 0!==wn&&(Q(gp,1,wn),jl++);var xn=il.campaignVersion;void 0!==xn&&(Q(gp,2,xn),jl++);var Mq=[jl===Object.keys(il).length,gp]}catch(Na){Y(Na),Mq=[!1,void 0]}var at=Mq;at[0]&&(rk(q,oma,64,
at[1]),r++)}var qm=p.scoringEventInfo;if(qm){var hp=new hma,ip=0;try{var Nq=qm.scoringTrackingParams;void 0!==Nq&&(Kk(hp,1,Nq),ip++);var jp=[ip===Object.keys(qm).length,hp]}catch(Na){Y(Na),jp=[!1,void 0]}var rm=jp;rm[0]&&(rk(q,hma,77,rm[1]),r++)}var sm=p.servletData;if(sm){var yn=new ima,zn=0;try{var kp=sm.serializedServletEventId;void 0!==kp&&(Q(yn,1,kp),zn++);var lp=[zn===Object.keys(sm).length,yn]}catch(Na){Y(Na),lp=[!1,void 0]}var Oq=lp;Oq[0]&&(rk(q,ima,83,Oq[1]),r++)}var mp=p.yoodleData;if(mp){var Pq=
new nma,Qq=0;try{var he=mp.promoId;void 0!==he&&(Q(Pq,1,he),Qq++);var Ce=[Qq===Object.keys(mp).length,Pq]}catch(Na){Y(Na),Ce=[!1,void 0]}var De=Ce;De[0]&&(rk(q,nma,85,De[1]),r++)}var An=p.videoRestrictionData;if(An){var Bn=new py,np=0;try{var Rq=An.restrictions;Rq&&(BO(Bn.j.bind(Bn),Rq,LJa),np++);var Sq=An.prechecksPending;void 0!==Sq&&(Dk(Bn,2,Sq),np++);var Tq=[np===Object.keys(An).length,Bn]}catch(Na){Y(Na),Tq=[!1,void 0]}var op=Tq;op[0]&&(rk(q,py,92,op[1]),r++)}var Ri=p.creatorMusicData;if(Ri){var yh=
new fy,ji=0;try{var Uq=Ri.entity;if(Uq){var Vq=MJa(Uq);Vq[0]&&(rk(yh,dy,1,Vq[1]),ji++)}var tm=Ri.entities;tm&&(BO(yh.j.bind(yh),tm,MJa),ji++);var um=Ri.track;if(um){var vm=NJa(um);vm[0]&&(sk(yh,cy,3,JO,vm[1]),ji++)}var pp=Ri.artist;if(pp){var gk=new Vx,wm=0;try{var Si=pp.details;if(Si){var Cn=new Ux,Dn=0;try{var qp=Si.kgMid;void 0!==qp&&(Q(Cn,1,qp),Dn++);var Wq=Si.name;void 0!==Wq&&(Q(Cn,2,Wq),Dn++);var hk=[Dn===Object.keys(Si).length,Cn]}catch(Na){Y(Na),hk=[!1,void 0]}var kl=hk;kl[0]&&(rk(gk,Ux,
1,kl[1]),wm++)}var ik=[wm===Object.keys(pp).length,gk]}catch(Na){Y(Na),ik=[!1,void 0]}var Xq=ik;Xq[0]&&(sk(yh,Vx,5,JO,Xq[1]),ji++)}var En=Ri.licensePurchase;if(En){var rp=new ey,sp=0;try{var Yq=En.assetId;void 0!==Yq&&(Q(rp,1,Yq),sp++);var Zq=En.artTrackId;void 0!==Zq&&(Q(rp,2,Zq),sp++);var $q=[sp===Object.keys(En).length,rp]}catch(Na){Y(Na),$q=[!1,void 0]}var ll=$q;ll[0]&&(sk(yh,ey,6,JO,ll[1]),ji++)}var ml=Ri.claim;if(ml){var xm=new Wx,ar=0;try{var Yg=ml.assetId;void 0!==Yg&&(Q(xm,1,Yg),ar++);var bg=
[ar===Object.keys(ml).length,xm]}catch(Na){Y(Na),bg=[!1,void 0]}var cg=bg;cg[0]&&(sk(yh,Wx,7,JO,cg[1]),ji++)}var br=Ri.collection;if(br){var nl=OJa(br);nl[0]&&(sk(yh,ay,4,JO,nl[1]),ji++)}var xj=[ji===Object.keys(Ri).length,yh]}catch(Na){Y(Na),xj=[!1,void 0]}var zh=xj;zh[0]&&(rk(q,fy,96,zh[1]),r++)}var dg=p.creatorData;if(dg){var zg=new Tx,ki=0;try{var bt=dg.ttWizardTargetFeature;void 0!==bt&&(Lk(zg,1,PJa,QJa[bt]),ki++);var Zg=dg.ttWizardTargetLevel;void 0!==Zg&&(Lk(zg,2,PJa,RJa[Zg]),ki++);var cr=
dg.simpleWizardDetails;if(cr){var dr=new Sx;try{var ol=[0===Object.keys(cr).length,dr]}catch(Na){Y(Na),ol=[!1,void 0]}var er=ol;er[0]&&(sk(zg,Sx,3,SJa,er[1]),ki++)}var Ah=dg.advancedWizardDetails;if(Ah){var Fn=new Qx,tp=0;try{var ct=Ah.isDoubleHop;void 0!==ct&&(Dk(Fn,1,ct),tp++);var fr=[tp===Object.keys(Ah).length,Fn]}catch(Na){Y(Na),fr=[!1,void 0]}var gr=fr;gr[0]&&(sk(zg,Qx,4,SJa,gr[1]),ki++)}var hr=dg.blockedWizardDetails;if(hr){var ir=new Rx,ym=0;try{var Bh=hr.loggableBlockedReason;void 0!==Bh&&
(S(ir,1,TJa[Bh]),ym++);var jk=[ym===Object.keys(hr).length,ir]}catch(Na){Y(Na),jk=[!1,void 0]}var kk=jk;kk[0]&&(sk(zg,Rx,5,SJa,kk[1]),ki++)}var pl=[ki===Object.keys(dg).length,zg]}catch(Na){Y(Na),pl=[!1,void 0]}var up=pl;up[0]&&(rk(q,Tx,98,up[1]),r++)}var zm=p.adstubeData;if(zm){var dt=new vx,et=0;try{var lk=zm.countryTargetingPrefill;if(lk){var Ti=new ux,Ch=0;try{var mk=lk.prefilledCodes;mk&&(BO(Ti.B.bind(Ti),mk),Ch++);var nk=lk.finalCodes;nk&&(BO(Ti.j.bind(Ti),nk),Ch++);var ok=lk.source;void 0!==
ok&&(Q(Ti,3,ok),Ch++);var ft=[Ch===Object.keys(lk).length,Ti]}catch(Na){Y(Na),ft=[!1,void 0]}var gt=ft;gt[0]&&(rk(dt,ux,1,gt[1]),et++)}var ht=[et===Object.keys(zm).length,dt]}catch(Na){Y(Na),ht=[!1,void 0]}var jr=ht;jr[0]&&(rk(q,vx,104,jr[1]),r++)}var ql=p.loggingExpectations;if(ql){var Ui=UJa(ql);Ui[0]&&(rk(q,uy,106,Ui[1]),r++)}var Vi=p.channelPageVeData;if(Vi){var Am=new Bx,kr=0;try{var vp=Vi.isForYouShelf;void 0!==vp&&(Dk(Am,2,vp),kr++);var lr=[kr===Object.keys(Vi).length,Am]}catch(Na){Y(Na),lr=
[!1,void 0]}var mr=lr;mr[0]&&(rk(q,Bx,107,mr[1]),r++)}var wp=p.shoppingAffiliateData;if(wp){var nr=new jma,or=0;try{var rl=wp.affiliateDeepLinkSource;void 0!==rl&&(S(nr,1,VJa[rl]),or++);var sf=[or===Object.keys(wp).length,nr]}catch(Na){Y(Na),sf=[!1,void 0]}var li=sf;li[0]&&(rk(q,jma,109,li[1]),r++)}var Wi=p.hashtagSuggestionData;if(Wi){var Gn=new ny,bv=0;try{var Cx=Wi.hashtagId;void 0!==Cx&&(Q(Gn,1,Cx),bv++);var Dx=Wi.suggestionSources;void 0!==Dx&&(CO(Gn.j.bind(Gn),Dx,WJa),bv++);var Ex=[bv===Object.keys(Wi).length,
Gn]}catch(Na){Y(Na),Ex=[!1,void 0]}var Fx=Ex;Fx[0]&&(rk(q,ny,111,Fx[1]),r++)}var cv=p.componentData;if(cv){var Gx=new Px,pr=0;try{var it=cv.standardComponentType;void 0!==it&&(S(Gx,1,XJa[it]),pr++);var jt=[pr===Object.keys(cv).length,Gx]}catch(Na){Y(Na),jt=[!1,void 0]}var Hx=jt;Hx[0]&&(rk(q,Px,121,Hx[1]),r++)}var kt=p.creatorShoppingTaggingData;if(kt){var qr=new ky,dv=0;try{var Ix=kt.products;Ix&&(BO(qr.j.bind(qr),Ix,YJa),dv++);var ev=kt.taggedVideos;ev&&(BO(qr.B.bind(qr),ev,ZJa),dv++);var Jx=[dv===
Object.keys(kt).length,qr]}catch(Na){Y(Na),Jx=[!1,void 0]}var Kx=Jx;Kx[0]&&(rk(q,ky,122,Kx[1]),r++)}var Lx=[r===Object.keys(p).length,q]}catch(Na){Y(Na),Lx=[!1,void 0]}var Mx=Lx;Mx[0]&&(rk(b,vy,8,Mx[1]),c++)}var Nx=a.loggingExpectations;if(Nx){var Ox=UJa(Nx);Ox[0]&&(rk(b,uy,9,Ox[1]),c++)}return[c===Object.keys(a).length,b]}catch(Na){return Y(Na),[!1,void 0]}};
oJa=function(a){var b=new hx,c=0;try{var d=a.views;void 0!==d&&(S(b,1,GO[d]),c++);var e=a.driver;void 0!==e&&(S(b,2,$Ja[e]),c++);var f=a.ctr;void 0!==f&&(S(b,3,GO[f]),c++);var h=a.avd;void 0!==h&&(S(b,4,GO[h]),c++);var l=a.impressions;void 0!==l&&(S(b,5,GO[l]),c++);var m=a.videoLength;void 0!==m&&(S(b,6,GO[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
sJa=function(a){var b=new bx,c=0;try{var d=a.subsGrowth;void 0!==d&&(S(b,1,GO[d]),c++);var e=a.nonSubViews;void 0!==e&&(S(b,2,GO[e]),c++);var f=a.subsAddedPerNonSubViews;void 0!==f&&(S(b,3,GO[f]),c++);var h=a.accountsClosed;void 0!==h&&(S(b,4,GO[h]),c++);var l=a.subsRemovedToAddedRatio;void 0!==l&&(S(b,5,GO[l]),c++);var m=a.videosPublished;void 0!==m&&(S(b,6,GO[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
tJa=function(a){var b=new ax,c=0;try{var d=a.revenue;void 0!==d&&(S(b,1,GO[d]),c++);var e=a.revenueSource;void 0!==e&&(S(b,2,aKa[e]),c++);var f=a.revenueDrivingMetrics;void 0!==f&&(CO(b.j.bind(b),f,bKa),c++);var h=a.revenueChangeReason;void 0!==h&&(S(b,4,cKa[h]),c++);var l=a.revenueChangeFact;void 0!==l&&(S(b,5,dKa[l]),c++);var m=a.driverCountryCode;void 0!==m&&(Q(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
uJa=function(a){var b=new $w,c=0;try{var d=a.views;void 0!==d&&(S(b,1,GO[d]),c++);var e=a.drivers;void 0!==e&&(CO(b.j.bind(b),e,eKa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
DJa=function(a){var b=new lx,c=0;try{var d=a.metric;void 0!==d&&(S(b,1,HO[d]),c++);var e=a.comparisonMetric;void 0!==e&&(S(b,2,HO[e]),c++);var f=a.includeCumulative;void 0!==f&&(Dk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
GJa=function(a){var b=new pma,c=0;try{var d=a.attributionTag;void 0!==d&&(Q(b,2,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
LJa=function(a){var b=new mma,c=0;try{var d=a.limitedAds;if(d){var e=new lma,f=0;try{var h=d.imposer;void 0!==h&&(S(e,1,fKa[h]),f++);var l=[f===Object.keys(d).length,e]}catch(C){Y(C),l=[!1,void 0]}d=l;d[0]&&(sk(b,lma,1,gKa,d[1]),c++)}var m=a.copyright;if(m){var n=new kma;d=0;try{var p=m.policyType;void 0!==p&&(S(n,1,hKa[p]),d++);var q=m.productTagsBlocked;void 0!==q&&(Dk(n,2,q),d++);var r=[d===Object.keys(m).length,n]}catch(C){Y(C),r=[!1,void 0]}m=r;m[0]&&(sk(b,kma,2,gKa,m[1]),c++)}var t=a.communityGuidelines;
if(t){var v=new oy;m=0;try{var w=t.policyVerticals;void 0!==w&&(CO(v.j.bind(v),w,iKa),m++);var A=[m===Object.keys(t).length,v]}catch(C){Y(C),A=[!1,void 0]}t=A;t[0]&&(sk(b,oy,3,gKa,t[1]),c++)}return[c===Object.keys(a).length,b]}catch(C){return Y(C),[!1,void 0]}};
MJa=function(a){var b=new dy,c=0;try{var d=a.featuredCollection;if(d){var e=jKa(d);e[0]&&(sk(b,Xx,1,KO,e[1]),c++)}var f=a.mood;if(f){var h=kKa(f);h[0]&&(sk(b,Zx,2,KO,h[1]),c++)}var l=a.genre;if(l){var m=lKa(l);m[0]&&(sk(b,Yx,3,KO,m[1]),c++)}var n=a.track;if(n){var p=NJa(n);p[0]&&(sk(b,cy,4,KO,p[1]),c++)}return[c===Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
jKa=function(a){var b=new Xx,c=0;try{var d=a.id;void 0!==d&&(Q(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
kKa=function(a){var b=new Zx,c=0;try{var d=a.type;void 0!==d&&(S(b,1,mKa[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
lKa=function(a){var b=new Yx,c=0;try{var d=a.type;void 0!==d&&(S(b,1,nKa[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
NJa=function(a){var b=new cy,c=0;try{var d=a.artTrackId;void 0!==d&&(Q(b,1,d),c++);var e=a.assetId;void 0!==e&&(Q(b,2,e),c++);var f=a.details;if(f){var h=new by;try{var l=[0===Object.keys(f).length,h]}catch(p){Y(p),l=[!1,void 0]}d=l;d[0]&&(rk(b,by,3,d[1]),c++)}var m=a.parent;if(m){var n=OJa(m);n[0]&&(rk(b,ay,4,n[1]),c++)}return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}};
OJa=function(a){var b=new ay,c=0;try{var d=a.featuredCollection;if(d){var e=jKa(d);e[0]&&(sk(b,Xx,1,LO,e[1]),c++)}var f=a.mood;if(f){var h=kKa(f);h[0]&&(sk(b,Zx,2,LO,h[1]),c++)}var l=a.genre;if(l){var m=lKa(l);m[0]&&(sk(b,Yx,3,LO,m[1]),c++)}var n=a.section;if(n){var p=new $x;d=0;try{var q=n.type;void 0!==q&&(S(p,1,oKa[q]),d++);var r=[d===Object.keys(n).length,p]}catch(v){Y(v),r=[!1,void 0]}n=r;n[0]&&(sk(b,$x,4,LO,n[1]),c++)}var t=a.dimension;void 0!==t&&(S(b,5,pKa[t]),c++);return[c===Object.keys(a).length,
b]}catch(v){return Y(v),[!1,void 0]}};
UJa=function(a){var b=new uy,c=0;try{var d=a.attachLoggingExpectations;if(d){var e=new sy,f=0;try{var h=d.attachScreenExpectations;h&&(BO(e.j.bind(e),h,qKa),f++);var l=[f===Object.keys(d).length,e]}catch(r){Y(r),l=[!1,void 0]}d=l;d[0]&&(rk(b,sy,1,d[1]),c++)}var m=a.screenCreatedLoggingExpectations;if(m){var n=new ty;d=0;try{var p=m.expectedParentScreens;p&&(BO(n.j.bind(n),p,qKa),d++);var q=[d===Object.keys(m).length,n]}catch(r){Y(r),q=[!1,void 0]}m=q;m[0]&&(rk(b,ty,2,m[1]),c++)}return[c===Object.keys(a).length,
b]}catch(r){return Y(r),[!1,void 0]}};
qKa=function(a){var b=new ry,c=0;try{var d=a.screenVeType;void 0!==d&&(rma(b,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
YJa=function(a){var b=new iy,c=0;try{var d=a.taggingSource;void 0!==d&&(S(b,1,rKa[d]),c++);var e=a.id;if(e){var f=new gy;d=0;try{var h=e.docid;void 0!==h&&(Hk(f,1,h),d++);var l=[d===Object.keys(e).length,f]}catch(A){Y(A),l=[!1,void 0]}e=l;e[0]&&(rk(b,gy,2,e[1]),c++)}var m=a.skuId;if(m){var n=new hy;e=0;try{var p=m.merchantId;void 0!==p&&(Tj(n,1,sKa,Bi(p)),e++);var q=m.youtubeGroupId;void 0!==q&&(Tj(n,2,sKa,Zi(q)),e++);var r=m.rawMerchantOfferId;void 0!==r&&(Q(n,3,r),e++);var t=[e===Object.keys(m).length,
n]}catch(A){Y(A),t=[!1,void 0]}m=t;m[0]&&(rk(b,hy,3,m[1]),c++)}var v=a.userInputUrl;void 0!==v&&(Q(b,4,v),c++);var w=a.userSearchQuery;void 0!==w&&(Q(b,5,w),c++);return[c===Object.keys(a).length,b]}catch(A){return Y(A),[!1,void 0]}};
ZJa=function(a){var b=new jy,c=0;try{var d=a.externalVideoId;void 0!==d&&(Q(b,1,d),c++);var e=a.products;e&&(BO(b.j.bind(b),e,YJa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
vKa=function(a){var b=new wz,c=0;try{var d=a.segments;d&&(BO(b.j.bind(b),d,tKa),c++);var e=a.transitions;e&&(BO(b.B.bind(b),e,uKa),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
tKa=function(a){var b=new uz,c=0;try{var d=a.type;void 0!==d&&(S(b,1,wKa[d]),c++);var e=a.effects;e&&(BO(b.P5.bind(b),e,xKa),c++);var f=a.videoInfo;if(f){var h=yKa(f);h[0]&&(rk(b,tz,3,h[1]),c++)}var l=a.audioInfo;if(l){var m=new bna;d=0;try{var n=l.sourceOffsetMs;void 0!==n&&(Gk(m,1,n),d++);var p=l.sampleRateHz;void 0!==p&&(Ek(m,2,p),d++);var q=l.channelCount;void 0!==q&&(Ek(m,3,q),d++);var r=l.isRemote;void 0!==r&&(Dk(m,4,r),d++);var t=[d===Object.keys(l).length,m]}catch(F){Y(F),t=[!1,void 0]}l=
t;l[0]&&(rk(b,bna,4,l[1]),c++)}var v=a.startTimeMs;void 0!==v&&(Gk(b,5,v),c++);var w=a.durationMs;void 0!==w&&(Hk(b,6,w),c++);var A=a.playbackRate;void 0!==A&&(b.setPlaybackRate(A),c++);var C=a.enabled;void 0!==C&&(b.setEnabled(C),c++);return[c===Object.keys(a).length,b]}catch(F){return Y(F),[!1,void 0]}};
xKa=function(a){var b=new cna,c=0;try{var d=a.effectBaseName;void 0!==d&&(Q(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
yKa=function(a){var b=new tz,c=0;try{var d=a.resolutionWidth;void 0!==d&&(Ek(b,1,d),c++);var e=a.resolutionHeight;void 0!==e&&(Ek(b,2,e),c++);var f=a.frameRate;void 0!==f&&(Ik(b,3,f),c++);var h=a.durationMs;void 0!==h&&(Hk(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
uKa=function(a){var b=new vz,c=0;try{var d=a.incomingSegment;if(d){var e=tKa(d);e[0]&&(rk(b,uz,1,e[1]),c++)}var f=a.outgoingSegment;if(f){var h=tKa(f);h[0]&&(rk(b,uz,2,h[1]),c++)}var l=a.durationMs;void 0!==l&&(Hk(b,3,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}};
zKa=function(a){var b=new $ma,c=0;try{var d=a.previewWidth;void 0!==d&&(Ek(b,1,d),c++);var e=a.previewHeight;void 0!==e&&(Ek(b,2,e),c++);var f=a.fps;void 0!==f&&(Ek(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
BLa=function(a){var b=new mA,c=0;try{var d=a.encryptedVideoId;void 0!==d&&(Q(b,1,d),c++);var e=a.cotn;void 0!==e&&(Q(b,20,e),c++);var f=a.cpn;void 0!==f&&(Q(b,30,f),c++);var h=a.transferStatusType;void 0!==h&&(S(b,38,AKa[h]),c++);var l=a.statusType;void 0!==l&&(S(b,2,BKa[l]),c++);var m=a.failureReason;void 0!==m&&(S(b,3,CKa[m]),c++);var n=a.transferFailureReason;void 0!==n&&(S(b,41,DKa[n]),c++);var p=a.failureExceptionType;void 0!==p&&(Q(b,37,p),c++);var q=a.totalFetchedKbytes;void 0!==q&&(Gk(b,4,
q),c++);var r=a.diskAvailableKbytes;void 0!==r&&(Gk(b,5,r),c++);var t=a.totalContentKbytes;void 0!==t&&(Gk(b,21,t),c++);var v=a.alreadyDownloadedKbytes;void 0!==v&&(Gk(b,22,v),c++);var w=a.fetchedFromCacheKbytes;void 0!==w&&(Gk(b,23,w),c++);var A=a.systemHealth;if(A){var C=new Xz,F=0;try{var G=A.tag;void 0!==G&&(S(C,1,EKa[G]),F++);var L=A.staticContext;if(L){var M=new lna,R=0;try{var ea=L.displayDensityDpi;void 0!==ea&&(Ek(M,1,ea),R++);var ma=L.heightPixels;void 0!==ma&&(Ek(M,2,ma),R++);var oa=L.widthPixels;
void 0!==oa&&(Ek(M,3,oa),R++);var ia=L.memoryTotalKbytes;void 0!==ia&&(Gk(M,4,ia),R++);var va=L.osSdkVersion;void 0!==va&&(Ek(M,5,va),R++);var aa=L.osIncrementalVersion;void 0!==aa&&(Q(M,6,aa),R++);var U=L.hardwareArchitecture;void 0!==U&&(Q(M,7,U),R++);var La=L.appVersionCode;void 0!==La&&(Ek(M,8,La),R++);var x=L.devicePixelRatio;void 0!==x&&(Ik(M,9,x),R++);var ba=L.buildFingerprint;void 0!==ba&&(Q(M,10,ba),R++);var Ja=L.socManufacturer;void 0!==Ja&&(Q(M,11,Ja),R++);var cb=L.socModel;void 0!==cb&&
(Q(M,12,cb),R++);var ob=L.availableProcessors;void 0!==ob&&(Ek(M,13,ob),R++);var Qa=L.cpuCores;void 0!==Qa&&(Ek(M,14,Qa),R++);var Ua=L.heightPoints;void 0!==Ua&&(Ek(M,15,Ua),R++);var ib=L.widthPoints;void 0!==ib&&(Ek(M,16,ib),R++);var qb=L.androidMediaPerformanceClass;void 0!==qb&&(Ek(M,17,qb),R++);var rb=[R===Object.keys(L).length,M]}catch(nb){Y(nb),rb=[!1,void 0]}var B=rb;B[0]&&(rk(C,lna,2,B[1]),F++)}var D=A.dynamicContext;if(D){var E=new Rz,J=0;try{var K=D.screenOn;void 0!==K&&(Dk(E,1,K),J++);
var ca=D.deviceRotation;void 0!==ca&&(Ek(E,2,ca),J++);var sa=D.networkType;void 0!==sa&&(Ek(E,3,sa),J++);var ka=D.networkCoarseState;void 0!==ka&&(Ek(E,4,ka),J++);var N=D.chargingStatus;void 0!==N&&(S(E,5,FKa[N]),J++);var Z=D.isInForeground;void 0!==Z&&(Dk(E,6,Z),J++);var ya=D.viewportHeightPixels;void 0!==ya&&(Ek(E,7,ya),J++);var xa=D.viewportWidthPixels;void 0!==xa&&(Ek(E,8,xa),J++);var Za=D.hasCoarsePointer;void 0!==Za&&(Dk(E,9,Za),J++);var Wa=D.hasFinePointer;void 0!==Wa&&(Dk(E,10,Wa),J++);var Bb=
D.hasHoverSupport;void 0!==Bb&&(Dk(E,11,Bb),J++);var Qb=D.deviceFreeStorageMbytes;void 0!==Qb&&(Gk(E,12,Qb),J++);var eb=D.deviceStorageQuotaMbytes;void 0!==eb&&(Gk(E,13,eb),J++);var Rb=D.deviceStorageUsageMbytes;void 0!==Rb&&(Gk(E,14,Rb),J++);var hc=D.processUptimeMs;void 0!==hc&&(Gk(E,15,hc),J++);var Bc=D.hasAppShell;void 0!==Bc&&(Dk(E,16,Bc),J++);var ac=D.glVersion;void 0!==ac&&(Q(E,17,ac),J++);var uc=D.glRenderer;void 0!==uc&&(Q(E,18,uc),J++);var Wc=D.srsDatapushBuildIds;Wc&&(BO(E.B.bind(E),Wc,
GKa),J++);var Nc=D.playerDatapushBuildIds;Nc&&(BO(E.j.bind(E),Nc,HKa),J++);var Oc=D.creationContext;if(Oc){var Pc=new Qz,Vb=0;try{var ud=Oc.activeFrontendUploadId;void 0!==ud&&(Q(Pc,1,ud),Vb++);var kd=Oc.inShortsCreation;void 0!==kd&&(Dk(Pc,2,kd),Vb++);var fc=Oc.activeEffectLoggingIds;fc&&(BO(Pc.j.bind(Pc),fc,IKa),Vb++);var Yb=Oc.activePages;void 0!==Yb&&(CO(Pc.B.bind(Pc),Yb,JKa),Vb++);var Qc=[Vb===Object.keys(Oc).length,Pc]}catch(nb){Y(nb),Qc=[!1,void 0]}var Ib=Qc;Ib[0]&&(rk(E,Qz,21,Ib[1]),J++)}var Zc=
D.kimonoContext;if(Zc){var vd=new jna,Ob=0;try{var oe=Zc.cobaltUserAgent;void 0!==oe&&(Q(vd,1,oe),Ob++);var Md=Zc.webAppVersion;void 0!==Md&&(Q(vd,2,Md),Ob++);var Nd=Zc.cobaltVersion;void 0!==Nd&&(Q(vd,3,Nd),Ob++);var Oe=Zc.webAppInterface;void 0!==Oe&&(S(vd,4,KKa[Oe]),Ob++);var xe=Zc.clientDocumentNonce;void 0!==xe&&(Q(vd,5,xe),Ob++);var Hd=Zc.applicationState;void 0!==Hd&&(S(vd,6,LKa[Hd]),Ob++);var Cf=[Ob===Object.keys(Zc).length,vd]}catch(nb){Y(nb),Cf=[!1,void 0]}var Ve=Cf;Ve[0]&&(rk(E,jna,22,
Ve[1]),J++)}var $d=[J===Object.keys(D).length,E]}catch(nb){Y(nb),$d=[!1,void 0]}var Df=$d;Df[0]&&(rk(C,Rz,3,Df[1]),F++)}var ae=A.serializedPrimesMetric;void 0!==ae&&(Kk(C,4,ae),F++);var pe=A.serializedIosPrimesMetric;void 0!==pe&&(Kk(C,6,pe),F++);var Id=A.webMetric;if(Id){var wd=new nna,$c=0;try{var Od=Id.currentHeapKbytes;void 0!==Od&&(Ek(wd,1,Od),$c++);var We=Id.navigationCount;void 0!==We&&(Ek(wd,2,We),$c++);var Uf=[$c===Object.keys(Id).length,wd]}catch(nb){Y(nb),Uf=[!1,void 0]}var lg=Uf;lg[0]&&
(rk(C,nna,7,lg[1]),F++)}var qe=A.crashData;if(qe){var qc=new Oz,Xe=0;try{var Vh=qe.stackTrace;void 0!==Vh&&(Q(qc,1,Vh),Xe++);var fe=qe.screenVeType;void 0!==fe&&(Ek(qc,2,fe),Xe++);var ai=qe.compactStackTrace;if(ai){var Ei=MO(ai);Ei[0]&&(rk(qc,jz,3,Ei[1]),Xe++)}var Hf=qe.crashTimeMs;void 0!==Hf&&(Gk(qc,4,Hf),Xe++);var cf=qe.clientError;if(cf){var ze=new Nz,bi=0;try{var sc=cf.errorMetadata;if(sc){var vc=new Dz,Hc=0;try{var oj=sc.exceptionCategory;void 0!==oj&&(S(vc,1,MKa[oj]),Hc++);var If=sc.serviceTrackingData;
if(If){var Qg=new Yma,pg=0;try{var Fi=If.innertubeBuildChangelist;void 0!==Fi&&(Gk(Qg,1,Fi),pg++);var pj=If.innertubeBuildExperimentsSourceVersion;void 0!==pj&&(Gk(Qg,2,pj),pg++);var Gi=If.innertubeBuildLabel;void 0!==Gi&&(Q(Qg,3,Gi),pg++);var of=If.innertubeBuildTimestampSec;void 0!==of&&(Gk(Qg,4,of),pg++);var fd=If.innertubeBuildVariantsChecksum;void 0!==fd&&(Q(Qg,5,fd),pg++);var Jf=If.innertubeJobName;void 0!==Jf&&(Q(Qg,6,Jf),pg++);var Hi=[pg===Object.keys(If).length,Qg]}catch(nb){Y(nb),Hi=[!1,
void 0]}var df=Hi;df[0]&&(rk(vc,Yma,2,df[1]),Hc++)}var qg=sc.pageUrl;void 0!==qg&&(Q(vc,3,qg),Hc++);var Yf=sc.kvPairs;Yf&&(BO(vc.j.bind(vc),Yf,NKa),Hc++);var Ii=sc.experimentIds;Ii&&(BO(vc.B.bind(vc),Ii),Hc++);var Zf=sc.playerMetadata;if(Zf){var rg=new Bz,rh=0;try{var sh=Zf.error;void 0!==sh&&(CO(rg.j.bind(rg),sh,OKa),rh++);var sg=Zf.stackTrace;void 0!==sg&&(Q(rg,2,sg),rh++);var Ae=[rh===Object.keys(Zf).length,rg]}catch(nb){Y(nb),Ae=[!1,void 0]}var ef=Ae;ef[0]&&(rk(vc,Bz,6,ef[1]),Hc++)}var ge=sc.exceptionType;
void 0!==ge&&(S(vc,7,PKa[ge]),Hc++);var th=sc.clientScreenNonce;void 0!==th&&(Q(vc,8,th),Hc++);var ff=sc.blocksMethodExecutionInfo;if(ff){var pf=new Xma,Kf=0;try{var tg=ff.methodId;void 0!==tg&&(Fk(pf,1,tg),Kf++);var Rg=ff.blockTypeId;void 0!==Rg&&(Fk(pf,2,Rg),Kf++);var se=ff.methodType;void 0!==se&&(S(pf,3,QKa[se]),Kf++);var ug=ff.requestSize;void 0!==ug&&(Fk(pf,4,ug),Kf++);var Lf=ff.responseSize;void 0!==Lf&&(Fk(pf,5,Lf),Kf++);var Ji=ff.statusCode;void 0!==Ji&&(Fk(pf,6,Ji),Kf++);var uh=ff.containerId;
void 0!==uh&&(Fk(pf,7,uh),Kf++);var Vl=ff.moduleIdentifier;void 0!==Vl&&(Q(pf,8,Vl),Kf++);var Wl=ff.datapushBuildId;void 0!==Wl&&(Hk(pf,9,Wl),Kf++);var Sk=ff.attribution;void 0!==Sk&&(S(pf,10,RKa[Sk]),Kf++);var Xl=[Kf===Object.keys(ff).length,pf]}catch(nb){Y(nb),Xl=[!1,void 0]}var Wj=Xl;Wj[0]&&(rk(vc,Xma,9,Wj[1]),Hc++)}var gf=sc.mediaEngineMetadata;if(gf){var Be=new g.zz,Td=0;try{var Sg=gf.client;void 0!==Sg&&(Be.vx(SKa[Sg]),Td++);var Ki=gf.mdeErrorType;void 0!==Ki&&(S(Be,2,TKa[Ki]),Td++);var Yl=
gf.uploadId;void 0!==Yl&&(Q(Be,3,Yl),Td++);var Tk=gf.composition;Tk&&(BO(Be.M5.bind(Be),Tk,vKa),Td++);var Xj=gf.player;if(Xj){var vh=new xz,Tg=0;try{var qf=Xj.state;void 0!==qf&&(vh.Bc(UKa[qf]),Tg++);var ci=Xj.playbackPositionTimeMs;void 0!==ci&&(Gk(vh,2,ci),Tg++);var Uk=[Tg===Object.keys(Xj).length,vh]}catch(nb){Y(nb),Uk=[!1,void 0]}var Zl=Uk;Zl[0]&&(rk(Be,xz,5,Zl[1]),Td++)}var di=gf.exporter;if(di){var Li=new sz,ei=0;try{var vg=di.settings;if(vg){var fi=new rz,Mi=0;try{var Yj=vg.audioChannelCount;
void 0!==Yj&&(Ek(fi,1,Yj),Mi++);var $l=vg.resolutionWidth;void 0!==$l&&(Ek(fi,2,$l),Mi++);var Zj=vg.resolutionHeight;void 0!==Zj&&(Ek(fi,3,Zj),Mi++);var Vk=[Mi===Object.keys(vg).length,fi]}catch(nb){Y(nb),Vk=[!1,void 0]}var am=Vk;am[0]&&(Li.kh(am[1]),ei++)}var rf=di.state;void 0!==rf&&(Li.Bc(VKa[rf]),ei++);var $f=di.durationMs;void 0!==$f&&(Hk(Li,3,$f),ei++);var Mf=di.progressMs;void 0!==Mf&&(Hk(Li,4,Mf),ei++);var ag=[ei===Object.keys(di).length,Li]}catch(nb){Y(nb),ag=[!1,void 0]}var bm=ag;bm[0]&&
(rk(Be,sz,6,bm[1]),Td++)}var cm=gf.projectId;void 0!==cm&&(Q(Be,7,cm),Td++);var nc=gf.deviceInfo;if(nc){var Lo=new qz,qj=0;try{var Wk=nc.audioOutputLatencyMs;void 0!==Wk&&(Ek(Lo,1,Wk),qj++);var rj=[qj===Object.keys(nc).length,Lo]}catch(nb){Y(nb),rj=[!1,void 0]}var Mo=rj;Mo[0]&&(rk(Be,qz,8,Mo[1]),Td++)}var sj=gf.preprocessor;if(sj){var Xk=new g.yz,dm=0;try{var No=sj.originalVideo;if(No){var em=yKa(No);em[0]&&(rk(Xk,tz,1,em[1]),dm++)}var Yk=sj.processedVideo;if(Yk){var tq=yKa(Yk);tq[0]&&(rk(Xk,tz,2,
tq[1]),dm++)}var jn=[dm===Object.keys(sj).length,Xk]}catch(nb){Y(nb),jn=[!1,void 0]}var kn=jn;kn[0]&&(rk(Be,g.yz,9,kn[1]),Td++)}var Oo=gf.clientSurface;void 0!==Oo&&(S(Be,10,WKa[Oo]),Td++);var Po=[Td===Object.keys(gf).length,Be]}catch(nb){Y(nb),Po=[!1,void 0]}var tj=Po;tj[0]&&(rk(vc,g.zz,10,tj[1]),Hc++)}var gi=sc.cameraMetadata;if(gi){var Ug=new pz,Zk=0;try{var uq=gi.uploadFrontendId;void 0!==uq&&(Q(Ug,1,uq),Zk++);var Qo=gi.cameraApiClient;void 0!==Qo&&(S(Ug,2,XKa[Qo]),Zk++);var vq=gi.cameraConfigs;
vq&&(BO(Ug.j.bind(Ug),vq,zKa),Zk++);var Ro=gi.canFindCamera;void 0!==Ro&&(Dk(Ug,4,Ro),Zk++);var wq=[Zk===Object.keys(gi).length,Ug]}catch(nb){Y(nb),wq=[!1,void 0]}var xq=wq;xq[0]&&(rk(vc,pz,11,xq[1]),Hc++)}var Vg=sc.miniAppMetadata;if(Vg){var Ni=new Az,Oi=0;try{var yq=Vg.externalPostId;void 0!==yq&&(Q(Ni,1,yq),Oi++);var Wg=Vg.postPlayNonce;void 0!==Wg&&(Q(Ni,2,Wg),Oi++);var Ud=Vg.localReleaseId;void 0!==Ud&&(Ek(Ni,3,Ud),Oi++);var Qe=Vg.source;void 0!==Qe&&(S(Ni,4,YKa[Qe]),Oi++);var ln=Vg.sdkErrorType;
void 0!==ln&&(S(Ni,5,ZKa[ln]),Oi++);var So=Vg.sdkApi;void 0!==So&&(S(Ni,6,$Ka[So]),Oi++);var zq=Vg.sdkVersion;void 0!==zq&&(Q(Ni,7,zq),Oi++);var mn=Vg.rpcErrorCode;void 0!==mn&&(Ek(Ni,8,mn),Oi++);var nn=[Oi===Object.keys(Vg).length,Ni]}catch(nb){Y(nb),nn=[!1,void 0]}var fm=nn;fm[0]&&(rk(vc,Az,12,fm[1]),Hc++)}var Aq=sc.appVersionCode;void 0!==Aq&&(Ek(vc,13,Aq),Hc++);var Pi=sc.hatsMetadata;if(Pi){var uj=new Zma,ak=0;try{var $k=Pi.hatsSessionId;void 0!==$k&&(Q(uj,1,$k),ak++);var al=Pi.csn;void 0!==al&&
(Q(uj,2,al),ak++);var gm=Pi.hatsTriggerId;void 0!==gm&&(Q(uj,3,gm),ak++);var Bq=Pi.hatsStatus;void 0!==Bq&&(S(uj,4,aLa[Bq]),ak++);var Cq=[ak===Object.keys(Pi).length,uj]}catch(nb){Y(nb),Cq=[!1,void 0]}var To=Cq;To[0]&&(rk(vc,Zma,14,To[1]),Hc++)}var on=sc.reelPlaybackError;if(on){var Uo=new dna,Vo=0;try{var Xg=on.reelPlaybackContext;if(Xg){var hi=new Cz,oc=0;try{var wh=Xg.videoId;void 0!==wh&&(hi.setVideoId(wh),oc++);var Wo=Xg.playlistId;void 0!==Wo&&(Q(hi,2,Wo),oc++);var hm=Xg.playlistIndex;void 0!==
hm&&(Fk(hi,3,hm),oc++);var im=Xg.cpn;void 0!==im&&(Q(hi,4,im),oc++);var jm=Xg.playerType;void 0!==jm&&(S(hi,5,bLa[jm]),oc++);var Xo=Xg.audioFmt;void 0!==Xo&&(Ek(hi,6,Xo),oc++);var Yo=Xg.videoFmt;void 0!==Yo&&(Ek(hi,7,Yo),oc++);var Dq=[oc===Object.keys(Xg).length,hi]}catch(nb){Y(nb),Dq=[!1,void 0]}var vj=Dq;vj[0]&&(rk(Uo,Cz,1,vj[1]),Vo++)}var wj=on.errorType;void 0!==wj&&(S(Uo,2,cLa[wj]),Vo++);var bl=[Vo===Object.keys(on).length,Uo]}catch(nb){Y(nb),bl=[!1,void 0]}var km=bl;km[0]&&(rk(vc,dna,15,km[1]),
Hc++)}var pn=[Hc===Object.keys(sc).length,vc]}catch(nb){Y(nb),pn=[!1,void 0]}var Zo=pn;Zo[0]&&(rk(ze,Dz,1,Zo[1]),bi++)}var bk=cf.stackTrace;if(bk){var ck=new Lz,cl=0;try{var qn=bk.isObfuscated;void 0!==qn&&(Dk(ck,1,qn),cl++);var Eq=bk.androidStackInfo;if(Eq){var $o=dLa(Eq);$o[0]&&(sk(ck,Ez,2,gF,$o[1]),cl++)}var dl=bk.browserStackInfo;if(dl){var lm=new Fz,Qi=0;try{var Fq=dl.stackTrace;void 0!==Fq&&(Q(lm,1,Fq),Qi++);var Gq=dl.lineNumber;void 0!==Gq&&(Ek(lm,2,Gq),Qi++);var Hq=dl.columnNumber;void 0!==
Hq&&(Ek(lm,3,Hq),Qi++);var rn=dl.filename;void 0!==rn&&(Q(lm,4,rn),Qi++);var sn=[Qi===Object.keys(dl).length,lm]}catch(nb){Y(nb),sn=[!1,void 0]}var dk=sn;dk[0]&&(sk(ck,Fz,3,gF,dk[1]),cl++)}var el=bk.iosStackInfo;if(el){var tn=new ena,mm=0;try{var ap=el.stackTrace;void 0!==ap&&(Q(tn,1,ap),mm++);var Iq=el.compactStackTrace;if(Iq){var Jq=MO(Iq);Jq[0]&&(rk(tn,jz,2,Jq[1]),mm++)}var nm=[mm===Object.keys(el).length,tn]}catch(nb){Y(nb),nm=[!1,void 0]}var om=nm;om[0]&&(sk(ck,ena,4,gF,om[1]),cl++)}var wg=bk.multiLanguageStackInfo;
if(wg){var xh=new Kz,ii=0;try{var hf=wg.languageStackTraces;hf&&(BO(xh.j.bind(xh),hf,eLa),ii++);var Kq=[ii===Object.keys(wg).length,xh]}catch(nb){Y(nb),Kq=[!1,void 0]}var bp=Kq;bp[0]&&(sk(ck,Kz,5,gF,bp[1]),cl++)}var cp=[cl===Object.keys(bk).length,ck]}catch(nb){Y(nb),cp=[!1,void 0]}var fl=cp;fl[0]&&(rk(ze,Lz,2,fl[1]),bi++)}var xg=cf.logMessage;if(xg){var yg=new Mz,gl=0;try{var dp=xg.message;void 0!==dp&&(Q(yg,1,dp),gl++);var ek=xg.level;void 0!==ek&&(S(yg,2,fLa[ek]),gl++);var fk=xg.errorClassName;
void 0!==fk&&(Q(yg,3,fk),gl++);var hl=xg.sourceMethodName;void 0!==hl&&(Q(yg,4,hl),gl++);var pm=xg.sampleWeight;void 0!==pm&&(Ek(yg,6,pm),gl++);var ep=[gl===Object.keys(xg).length,yg]}catch(nb){Y(nb),ep=[!1,void 0]}var fp=ep;fp[0]&&(rk(ze,Mz,3,fp[1]),bi++)}var Lq=[bi===Object.keys(cf).length,ze]}catch(nb){Y(nb),Lq=[!1,void 0]}var un=Lq;un[0]&&(rk(qc,Nz,5,un[1]),Xe++)}var vn=[Xe===Object.keys(qe).length,qc]}catch(nb){Y(nb),vn=[!1,void 0]}var il=vn;il[0]&&(rk(C,Oz,9,il[1]),F++)}var gp=A.delayedEventMetrics;
gp&&(BO(C.j.bind(C),gp,jJa),F++);var jl=A.iosBatteryMetric;if(jl){var wn=new Vma,xn=0;try{var Mq=jl.sampleDurationMs;void 0!==Mq&&(Gk(wn,1,Mq),xn++);var at=jl.startSample;if(at){var qm=gLa(at);qm[0]&&(rk(wn,kz,2,qm[1]),xn++)}var hp=jl.endSample;if(hp){var ip=gLa(hp);ip[0]&&(rk(wn,kz,3,ip[1]),xn++)}var Nq=[xn===Object.keys(jl).length,wn]}catch(nb){Y(nb),Nq=[!1,void 0]}var jp=Nq;jp[0]&&(rk(C,Vma,11,jp[1]),F++)}var rm=A.androidBatteryMetric;if(rm){var sm=new Qma,yn=0;try{var zn=rm.sampleDurationMs;void 0!==
zn&&(Gk(sm,1,zn),yn++);var kp=rm.startSample;if(kp){var lp=hLa(kp);lp[0]&&(rk(sm,fz,2,lp[1]),yn++)}var Oq=rm.endSample;if(Oq){var mp=hLa(Oq);mp[0]&&(rk(sm,fz,3,mp[1]),yn++)}var Pq=[yn===Object.keys(rm).length,sm]}catch(nb){Y(nb),Pq=[!1,void 0]}var Qq=Pq;Qq[0]&&(rk(C,Qma,12,Qq[1]),F++)}var he=A.webApiSupport;if(he){var Ce=new mna,De=0;try{var An=he.intersectionObserverPresent;void 0!==An&&(Dk(Ce,1,An),De++);var Bn=he.indexedDbPresent;void 0!==Bn&&(Dk(Ce,2,Bn),De++);var np=he.serviceWorkerPresent;void 0!==
np&&(Dk(Ce,3,np),De++);var Rq=he.webSharePresent;void 0!==Rq&&(Dk(Ce,4,Rq),De++);var Sq=he.fullScreenApiPresent;void 0!==Sq&&(Dk(Ce,5,Sq),De++);var Tq=he.cacheStoragePresent;void 0!==Tq&&(Dk(Ce,6,Tq),De++);var op=he.storageEstimatePresent;void 0!==op&&(Dk(Ce,7,op),De++);var Ri=he.storagePersistPresent;void 0!==Ri&&(Dk(Ce,8,Ri),De++);var yh=he.webkitTemporaryStoragePresent;void 0!==yh&&(Dk(Ce,9,yh),De++);var ji=he.idb2Present;void 0!==ji&&(Dk(Ce,10,ji),De++);var Uq=he.promiseRejectionEventPresent;
void 0!==Uq&&(Dk(Ce,11,Uq),De++);var Vq=he.subtleCryptoPresent;void 0!==Vq&&(Dk(Ce,12,Vq),De++);var tm=he.broadcastChannelPresent;void 0!==tm&&(Dk(Ce,13,tm),De++);var um=he.webLocksApiPresent;void 0!==um&&(Dk(Ce,14,um),De++);var vm=he.supportsP3Color;void 0!==vm&&(Dk(Ce,15,vm),De++);var pp=he.supportsRec2020Color;void 0!==pp&&(Dk(Ce,16,pp),De++);var gk=[De===Object.keys(he).length,Ce]}catch(nb){Y(nb),gk=[!1,void 0]}var wm=gk;wm[0]&&(rk(C,mna,13,wm[1]),F++)}var Si=A.cpuProfiling;if(Si){var Cn=new nz,
Dn=0;try{var qp=Si.profilingSamples;if(qp){var Wq=MO(qp);Wq[0]&&(rk(Cn,jz,1,Wq[1]),Dn++)}var hk=Si.config;if(hk){var kl=new Wma,ik=0;try{var Xq=hk.profilingIntervalSec;void 0!==Xq&&(Ik(kl,1,Xq),ik++);var En=hk.profilingDurationSec;void 0!==En&&(Ik(kl,2,En),ik++);var rp=hk.timerType;void 0!==rp&&(S(kl,3,iLa[rp]),ik++);var sp=hk.profilingStartTimeSec;void 0!==sp&&(Ik(kl,4,sp),ik++);var Yq=hk.fractionOfRunsToSample;void 0!==Yq&&(Ik(kl,5,Yq),ik++);var Zq=[ik===Object.keys(hk).length,kl]}catch(nb){Y(nb),
Zq=[!1,void 0]}var $q=Zq;$q[0]&&(Cn.setConfig($q[1]),Dn++)}var ll=[Dn===Object.keys(Si).length,Cn]}catch(nb){Y(nb),ll=[!1,void 0]}var ml=ll;ml[0]&&(rk(C,nz,14,ml[1]),F++)}var xm=A.stallStackTrace;if(xm){var ar=MO(xm);ar[0]&&(rk(C,jz,15,ar[1]),F++)}var Yg=A.memoryUsage;if(Yg){var bg=new Tz,cg=0;try{var br=Yg.totalMemoryUsageBytes;void 0!==br&&(Gk(bg,1,br),cg++);var nl=Yg.classMemoryUsage;nl&&(BO(bg.j.bind(bg),nl,jLa),cg++);var xj=Yg.config;if(xj){var zh=new kna,dg=0;try{var zg=xj.maxStartTimeSec;void 0!==
zg&&(Gk(zh,1,zg),dg++);var ki=xj.durationTimeSec;void 0!==ki&&(Gk(zh,2,ki),dg++);var bt=xj.intervalSec;void 0!==bt&&(Gk(zh,3,bt),dg++);var Zg=xj.maxLogCount;void 0!==Zg&&(Gk(zh,4,Zg),dg++);var cr=xj.fractionOfRunsToSample;void 0!==cr&&(Ik(zh,5,cr),dg++);var dr=[dg===Object.keys(xj).length,zh]}catch(nb){Y(nb),dr=[!1,void 0]}var ol=dr;ol[0]&&(bg.setConfig(ol[1]),cg++)}var er=Yg.processUptimeMs;void 0!==er&&(Gk(bg,4,er),cg++);var Ah=Yg.foregroundUptimeMs;void 0!==Ah&&(Gk(bg,8,Ah),cg++);var Fn=Yg.viewAllocation;
Fn&&(BO(bg.C.bind(bg),Fn,jLa),cg++);var tp=Yg.entityStoreCount;void 0!==tp&&(Ek(bg,6,tp),cg++);var ct=Yg.entityStoreBytes;void 0!==ct&&(Gk(bg,7,ct),cg++);var fr=Yg.emlTemplateStoreBytes;void 0!==fr&&(Gk(bg,10,fr),cg++);var gr=Yg.jsVmStatistics;gr&&(BO(bg.B.bind(bg),gr,kLa),cg++);var hr=[cg===Object.keys(Yg).length,bg]}catch(nb){Y(nb),hr=[!1,void 0]}var ir=hr;ir[0]&&(rk(C,Tz,16,ir[1]),F++)}var ym=A.networkEvents;ym&&(BO(C.B.bind(C),ym,lLa),F++);var Bh=A.threadUtilization;if(Bh){var jk=new Wz,kk=0;
try{var pl=Bh.userJourney;void 0!==pl&&(Q(jk,1,pl),kk++);var up=Bh.type;void 0!==up&&(S(jk,2,mLa[up]),kk++);var zm=Bh.threadPoolStats;zm&&(BO(jk.j.bind(jk),zm,nLa),kk++);var dt=Bh.totalThreadCount;void 0!==dt&&(Ek(jk,4,dt),kk++);var et=Bh.statsGenerateDurationMs;void 0!==et&&(Gk(jk,5,et),kk++);var lk=[kk===Object.keys(Bh).length,jk]}catch(nb){Y(nb),lk=[!1,void 0]}var Ti=lk;Ti[0]&&(rk(C,Wz,18,Ti[1]),F++)}var Ch=A.androidBackgroundTask;if(Ch){var mk=new lz,nk=0;try{var ok=Ch.tag;void 0!==ok&&(Q(mk,
1,ok),nk++);var ft=Ch.isKnownTask;void 0!==ft&&(Dk(mk,2,ft),nk++);var gt=Ch.result;void 0!==gt&&(S(mk,3,oLa[gt]),nk++);var ht=Ch.durationMs;void 0!==ht&&(Gk(mk,4,ht),nk++);var jr=[nk===Object.keys(Ch).length,mk]}catch(nb){Y(nb),jr=[!1,void 0]}var ql=jr;ql[0]&&(rk(C,lz,19,ql[1]),F++)}var Ui=A.distributiveProfilingSpan;if(Ui){var Vi=new Pz,Am=0;try{var kr=Ui.spanId;void 0!==kr&&(S(Vi,1,pLa[kr]),Am++);var vp=Ui.sampleRate;void 0!==vp&&(Ik(Vi,2,vp),Am++);var lr=Ui.spanDurationMs;void 0!==lr&&(Gk(Vi,3,
lr),Am++);var mr=Ui.sampleFailureCount;void 0!==mr&&(Ek(Vi,4,mr),Am++);var wp=Ui.sample;wp&&(BO(Vi.Lj.bind(Vi),wp,qLa),Am++);var nr=[Am===Object.keys(Ui).length,Vi]}catch(nb){Y(nb),nr=[!1,void 0]}var or=nr;or[0]&&(rk(C,Pz,20,or[1]),F++)}var rl=A.appExitInfo;if(rl){var sf=new mz,li=0;try{var Wi=rl.reason;void 0!==Wi&&(S(sf,1,rLa[Wi]),li++);var Gn=rl.status;void 0!==Gn&&(Ek(sf,2,Gn),li++);var bv=rl.importance;void 0!==bv&&(Ek(sf,3,bv),li++);var Cx=rl.description;void 0!==Cx&&(Q(sf,4,Cx),li++);var Dx=
[li===Object.keys(rl).length,sf]}catch(nb){Y(nb),Dx=[!1,void 0]}var Ex=Dx;Ex[0]&&(rk(C,mz,21,Ex[1]),F++)}var Fx=[F===Object.keys(A).length,C]}catch(nb){Y(nb),Fx=[!1,void 0]}var cv=Fx;cv[0]&&(rk(b,Xz,6,cv[1]),c++)}var Gx=a.detailedNetworkType;void 0!==Gx&&(S(b,7,NO[Gx]),c++);var pr=a.isAd;void 0!==pr&&(Dk(b,8,pr),c++);var it=a.offlineModeType;void 0!==it&&(S(b,9,sLa[it]),c++);var jt=a.storageFormat;void 0!==jt&&(S(b,24,tLa[jt]),c++);var Hx=a.offlineSourceVeType;void 0!==Hx&&(Ek(b,32,Hx),c++);var kt=
a.listId;void 0!==kt&&(Q(b,10,kt),c++);var qr=a.offlineabilityFormatType;void 0!==qr&&(S(b,11,uLa[qr]),c++);var dv=a.offlineAudioQuality;void 0!==dv&&(S(b,29,vLa[dv]),c++);var Ix=a.softErrorCount;void 0!==Ix&&(Ek(b,12,Ix),c++);var ev=a.pendingStateFlags;void 0!==ev&&(Fk(b,13,ev),c++);var Jx=a.unusedOfflineVideoPendingState;void 0!==Jx&&(S(b,14,wLa[Jx]),c++);var Kx=a.isRefresh;void 0!==Kx&&(Dk(b,15,Kx),c++);var Lx=a.isNewPlayerResponse;void 0!==Lx&&(Dk(b,16,Lx),c++);var Mx=a.isOfflineShareable;void 0!==
Mx&&(Dk(b,17,Mx),c++);var Nx=a.hasContentVerificationSignature;void 0!==Nx&&(Dk(b,18,Nx),c++);var Ox=a.isOfflineInterleaving;void 0!==Ox&&(Dk(b,19,Ox),c++);var Na=a.blockSizeBytes;void 0!==Na&&(Ek(b,25,Na),c++);var NN=a.streamVerificationStrategy;void 0!==NN&&(S(b,26,OO[NN]),c++);var ON=a.streamVerificationFailedBlocks;ON&&(BO(b.j.bind(b),ON,xLa),c++);var rB=a.spacecastInfo;if(rB){var sG=new Vna,tG=0;try{var sB=rB.applianceId;void 0!==sB&&(Q(sG,1,sB),tG++);var uG=rB.transferredFromCache;void 0!==
uG&&(S(sG,2,yLa[uG]),tG++);var vG=[tG===Object.keys(rB).length,sG]}catch(nb){Y(nb),vG=[!1,void 0]}var PN=vG;PN[0]&&(rk(b,Vna,28,PN[1]),c++)}var wG=a.transferType;void 0!==wG&&(S(b,33,zLa[wG]),c++);var QN=a.onlyDownloadOnWifi;void 0!==QN&&(Dk(b,34,QN),c++);var RN=a.appLifecycleStatus;void 0!==RN&&(S(b,35,ALa[RN]),c++);var xG=a.isDefaultDownloadToSdCard;void 0!==xG&&(Dk(b,36,xG),c++);var SN=a.serializedLoggingParams;void 0!==SN&&(Kk(b,39,SN),c++);var TN=a.transferServiceStartedFromBackground;void 0!==
TN&&(Dk(b,40,TN),c++);var fv=a.transferFirstStarted;void 0!==fv&&(Dk(b,42,fv),c++);return[c===Object.keys(a).length,b]}catch(nb){return Y(nb),[!1,void 0]}};
GKa=function(a){var b=new tma,c=0;try{var d=a.datapushBuild;if(d){var e=CLa(d);e[0]&&(rk(b,yy,1,e[1]),c++)}return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
CLa=function(a){var b=new yy,c=0;try{var d=a.buildId;void 0!==d&&(Gk(b,1,d),c++);var e=a.clientExperimentId;void 0!==e&&(Ek(b,2,e),c++);var f=a.accessType;void 0!==f&&(S(b,3,DLa[f]),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
HKa=function(a){var b=new sma,c=0;try{var d=a.datapushBuild;if(d){var e=CLa(d);e[0]&&(rk(b,yy,1,e[1]),c++)}return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
IKa=function(a){var b=new hna,c=0;try{var d=a.assetLoggingId;void 0!==d&&(Q(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
MO=function(a){var b=new jz,c=0;try{var d=a.stackTraces;d&&(BO(b.B.bind(b),d,ELa),c++);var e=a.allModules;e&&(BO(b.j.bind(b),e,FLa),c++);var f=a.appVersionCode;void 0!==f&&(Ek(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
ELa=function(a){var b=new iz,c=0;try{var d=a.mainThread;if(d){var e=GLa(d);e[0]&&(rk(b,hz,1,e[1]),c++)}var f=a.backgroundThreads;f&&(BO(b.j.bind(b),f,GLa),c++);var h=a.metaData;h&&(BO(b.B.bind(b),h,HLa),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
GLa=function(a){var b=new hz,c=0;try{var d=a.stackFrames;d&&(BO(b.j.bind(b),d,ILa),c++);var e=a.androidStack;void 0!==e&&(Q(b,6,e),c++);var f=a.threadName;void 0!==f&&(Q(b,2,f),c++);var h=a.cpuUsage;void 0!==h&&(Ik(b,3,h),c++);var l=a.cpuTimeSec;void 0!==l&&(Gk(b,4,l),c++);var m=a.iosThreadInfo;if(m){var n=new gz;d=0;try{var p=m.state;void 0!==p&&(n.Bc(JLa[p]),d++);var q=m.flag;void 0!==q&&(S(n,2,KLa[q]),d++);var r=m.currentPriority;void 0!==r&&(Ek(n,3,r),d++);var t=m.priority;void 0!==t&&(Ek(n,4,
t),d++);var v=m.maxPriority;void 0!==v&&(Ek(n,5,v),d++);var w=m.isCrashedThread;void 0!==w&&(Dk(n,6,w),d++);var A=[d===Object.keys(m).length,n]}catch(C){Y(C),A=[!1,void 0]}m=A;m[0]&&(rk(b,gz,5,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(C){return Y(C),[!1,void 0]}};
ILa=function(a){var b=new Tma,c=0;try{var d=a.instructionOffset;void 0!==d&&(Gk(b,1,d),c++);var e=a.moduleIndex;void 0!==e&&(Ek(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
HLa=function(a){var b=new Sma,c=0;try{var d=a.clientTimestampMs;void 0!==d&&(Gk(b,1,d),c++);var e=a.sampleTimeCostMs;void 0!==e&&(Ik(b,2,e),c++);var f=a.numberOfBustedFrames;void 0!==f&&(Ek(b,3,f),c++);var h=a.droppedFrameDurationMs;void 0!==h&&(Ek(b,4,h),c++);var l=a.deviceOrientation;void 0!==l&&(S(b,5,LLa[l]),c++);var m=a.processUptimeMs;void 0!==m&&(Gk(b,6,m),c++);var n=a.memoryUsageKbytes;void 0!==n&&(Gk(b,7,n),c++);var p=a.batteryPercentage;void 0!==p&&(Ik(b,8,p),c++);var q=a.exceptionName;
void 0!==q&&(Q(b,9,q),c++);var r=a.exceptionReason;void 0!==r&&(Q(b,10,r),c++);var t=a.signalNumber;void 0!==t&&(Ek(b,11,t),c++);var v=a.signalCode;void 0!==v&&(Ek(b,12,v),c++);return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
FLa=function(a){var b=new Rma,c=0;try{var d=a.moduleUuid;void 0!==d&&(Kk(b,1,d),c++);var e=a.moduleName;void 0!==e&&(Q(b,2,e),c++);var f=a.loadAddress;void 0!==f&&(Gk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
NKa=function(a){var b=new oz,c=0;try{var d=a.key;void 0!==d&&(Q(b,1,d),c++);var e=a.value;void 0!==e&&(Q(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
dLa=function(a){var b=new Ez,c=0;try{var d=a.serializedThrowable;void 0!==d&&(Kk(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
eLa=function(a){var b=new fna,c=0;try{var d=a.jsStack;if(d){var e=new Jz,f=0;try{var h=d.stackTrace;h&&(BO(e.j.bind(e),h,MLa),f++);var l=d.moduleSetVersion;void 0!==l&&(Hk(e,4,l),f++);var m=[f===Object.keys(d).length,e]}catch(w){Y(w),m=[!1,void 0]}d=m;d[0]&&(sk(b,Jz,1,NLa,d[1]),c++)}var n=a.javaStack;if(n){var p=dLa(n);p[0]&&(sk(b,Ez,2,NLa,p[1]),c++)}var q=a.ccStack;if(q){var r=new Hz;n=0;try{var t=q.stackTrace;t&&(BO(r.j.bind(r),t,OLa),n++);var v=[n===Object.keys(q).length,r]}catch(w){Y(w),v=[!1,
void 0]}q=v;q[0]&&(sk(b,Hz,3,NLa,q[1]),c++)}return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
MLa=function(a){var b=new Iz,c=0;try{var d=a.functionName;void 0!==d&&(Q(b,1,d),c++);var e=a.source;void 0!==e&&(Q(b,2,e),c++);var f=a.lineNumber;void 0!==f&&(Ek(b,3,f),c++);var h=a.columnNumber;void 0!==h&&(Ek(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
OLa=function(a){var b=new Gz,c=0;try{var d=a.functionName;void 0!==d&&(Q(b,1,d),c++);var e=a.source;void 0!==e&&(Q(b,2,e),c++);var f=a.lineNumber;void 0!==f&&(Ek(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
gLa=function(a){var b=new kz,c=0;try{var d=a.batteryLevelMicros;void 0!==d&&(Ek(b,1,d),c++);var e=a.networkType;void 0!==e&&(S(b,2,NO[e]),c++);var f=a.screenBrightness;void 0!==f&&(Ik(b,3,f),c++);var h=a.isLowPowerMode;void 0!==h&&(Dk(b,4,h),c++);var l=a.isBackground;void 0!==l&&(Dk(b,5,l),c++);var m=a.isStateTransition;void 0!==m&&(Dk(b,6,m),c++);var n=a.observedBackgroundFetchMethodCallback;void 0!==n&&(Dk(b,7,n),c++);var p=a.observedBackgroundTaskDidExpire;void 0!==p&&(Dk(b,8,p),c++);return[c===
Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
hLa=function(a){var b=new fz,c=0;try{var d=a.batteryLevelMicros;void 0!==d&&(Ek(b,1,d),c++);var e=a.networkType;void 0!==e&&(S(b,2,NO[e]),c++);var f=a.screenBrightness;void 0!==f&&(Ek(b,3,f),c++);var h=a.screenBrightnessMode;void 0!==h&&(S(b,4,PLa[h]),c++);var l=a.lowPowerMode;void 0!==l&&(S(b,5,QLa[l]),c++);var m=a.batteryHealth;void 0!==m&&(S(b,6,RLa[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
jLa=function(a){var b=new Sz,c=0;try{var d=a.className;void 0!==d&&(Q(b,1,d),c++);var e=a.instanceNum;void 0!==e&&(Gk(b,2,e),c++);var f=a.instanceSizeBytes;void 0!==f&&(Gk(b,3,f),c++);var h=a.allocationNum;void 0!==h&&(Gk(b,4,h),c++);var l=a.deallocationNum;void 0!==l&&(Gk(b,5,l),c++);return[c===Object.keys(a).length,b]}catch(m){return Y(m),[!1,void 0]}};
kLa=function(a){var b=new xma,c=0;try{var d=a.v8Stats;if(d){var e=new wma,f=0;try{var h=d.totalHeapSize;void 0!==h&&(Hk(e,1,h),f++);var l=d.totalHeapSizeExecutable;void 0!==l&&(Hk(e,2,l),f++);var m=d.totalPhysicalSize;void 0!==m&&(Hk(e,3,m),f++);var n=d.totalAvailableSize;void 0!==n&&(Hk(e,4,n),f++);var p=d.totalGlobalHandlesSize;void 0!==p&&(Hk(e,5,p),f++);var q=d.usedGlobalHandlesSize;void 0!==q&&(Hk(e,6,q),f++);var r=d.usedHeapSize;void 0!==r&&(Hk(e,7,r),f++);var t=d.heapSizeLimit;void 0!==t&&
(Hk(e,8,t),f++);var v=d.mallocedMemory;void 0!==v&&(Hk(e,9,v),f++);var w=d.externalMemory;void 0!==w&&(Hk(e,10,w),f++);var A=d.peakMallocedMemory;void 0!==A&&(Hk(e,11,A),f++);var C=d.numberOfNativeContexts;void 0!==C&&(Hk(e,12,C),f++);var F=d.numberOfDetachedContexts;void 0!==F&&(Hk(e,13,F),f++);var G=[f===Object.keys(d).length,e]}catch(aa){Y(aa),G=[!1,void 0]}d=G;d[0]&&(sk(b,wma,1,SLa,d[1]),c++)}var L=a.quickjsStats;if(L){var M=new vma;d=0;try{var R=L.mallocSize;void 0!==R&&(Hk(M,1,R),d++);var ea=
L.mallocLimit;void 0!==ea&&(Hk(M,2,ea),d++);var ma=L.memoryUsedSize;void 0!==ma&&(Hk(M,3,ma),d++);var oa=L.mallocCount;void 0!==oa&&(Hk(M,4,oa),d++);var ia=L.memoryUsedCount;void 0!==ia&&(Hk(M,5,ia),d++);var va=[d===Object.keys(L).length,M]}catch(aa){Y(aa),va=[!1,void 0]}L=va;L[0]&&(sk(b,vma,2,SLa,L[1]),c++)}return[c===Object.keys(a).length,b]}catch(aa){return Y(aa),[!1,void 0]}};
lLa=function(a){var b=new Vz,c=0;try{var d=a.index;void 0!==d&&(Gk(b,1,d),c++);var e=a.networkEventType;void 0!==e&&(S(b,2,TLa[e]),c++);var f=a.path;void 0!==f&&(Q(b,3,f),c++);var h=a.failureReason;void 0!==h&&(S(b,4,ULa[h]),c++);var l=a.startTimeMs;void 0!==l&&(Gk(b,5,l),c++);var m=a.totalDurationMs;void 0!==m&&(Gk(b,6,m),c++);var n=a.requestSize;void 0!==n&&(Gk(b,7,n),c++);var p=a.responseSize;void 0!==p&&(Gk(b,8,p),c++);var q=a.networkRequestAttempt;q&&(BO(b.j.bind(b),q,VLa),c++);var r=a.httpMethod;
void 0!==r&&(S(b,10,WLa[r]),c++);return[c===Object.keys(a).length,b]}catch(t){return Y(t),[!1,void 0]}};
VLa=function(a){var b=new Uz,c=0;try{var d=a.failureReason;void 0!==d&&(S(b,1,ULa[d]),c++);var e=a.startTimeMs;void 0!==e&&(Gk(b,5,e),c++);var f=a.durationMs;void 0!==f&&(Gk(b,2,f),c++);var h=a.networkAvailable;void 0!==h&&(S(b,3,XLa[h]),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
nLa=function(a){var b=new ona,c=0;try{var d=a.threadPoolName;void 0!==d&&(Q(b,1,d),c++);var e=a.threadCount;void 0!==e&&(Ek(b,2,e),c++);var f=a.startedTaskCount;void 0!==f&&(Ek(b,3,f),c++);var h=a.finishedTaskCount;void 0!==h&&(Ek(b,4,h),c++);var l=a.runningTimeMs;void 0!==l&&(Gk(b,5,l),c++);var m=a.waitingTimeMs;void 0!==m&&(Gk(b,6,m),c++);var n=a.runCount;void 0!==n&&(Gk(b,7,n),c++);var p=a.runningPercent;void 0!==p&&(Ek(b,8,p),c++);return[c===Object.keys(a).length,b]}catch(q){return Y(q),[!1,void 0]}};
qLa=function(a){var b=new gna,c=0;try{var d=a.curveTimestampMs;void 0!==d&&(Gk(b,1,d),c++);var e=a.curveWeight;void 0!==e&&(Ik(b,2,e),c++);var f=a.realTimestampMs;void 0!==f&&(Gk(b,3,f),c++);var h=a.sampleCostUsec;void 0!==h&&(Gk(b,4,h),c++);var l=a.compactStackTraceSample;if(l){var m=MO(l);m[0]&&(rk(b,jz,5,m[1]),c++)}return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
xLa=function(a){var b=new Wna,c=0;try{var d=a.itag;void 0!==d&&(Ek(b,1,d),c++);var e=a.startingByte;void 0!==e&&(Gk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
dMa=function(a){var b=new WA,c=0;try{var d=a.id;void 0!==d&&(Q(b,1,d),c++);var e=a.videoState;void 0!==e&&(S(b,2,YLa[e]),c++);var f=a.pendingStateFlags;void 0!==f&&(Fk(b,3,f),c++);var h=a.totalBytes;void 0!==h&&(Gk(b,21,h),c++);var l=a.downloadedBytes;void 0!==l&&(Gk(b,4,l),c++);var m=a.selectedVideoQuality;void 0!==m&&(S(b,5,uLa[m]),c++);var n=a.selectedOfflineMode;void 0!==n&&(S(b,6,sLa[n]),c++);var p=a.playerResponseSavedTimeMs;void 0!==p&&(Gk(b,7,p),c++);var q=a.offlineStateUpdateTimeMs;void 0!==
q&&(Gk(b,8,q),c++);var r=a.offlineStateExpiresInS;void 0!==r&&(Gk(b,9,r),c++);var t=a.durationInS;void 0!==t&&(Gk(b,10,t),c++);var v=a.isInPlaylist;void 0!==v&&(Dk(b,11,v),c++);var w=a.addedNetworkType;void 0!==w&&(S(b,12,NO[w]),c++);var A=a.downloadCompletedNetworkType;void 0!==A&&(S(b,13,NO[A]),c++);var C=a.captions;C&&(BO(b.j.bind(b),C,ZLa),c++);var F=a.unusedOfflineVideoPendingState;void 0!==F&&(S(b,15,wLa[F]),c++);var G=a.lastPlaybackTimestampMs;void 0!==G&&(Gk(b,16,G),c++);var L=a.offlineSuspendedStates;
L&&(BO(b.B.bind(b),L,$La),c++);var M=a.streamInLocalStorage;void 0!==M&&(Dk(b,18,M),c++);var R=a.streamInInternalStorage;void 0!==R&&(Dk(b,19,R),c++);var ea=a.storageIdStates;if(ea){var ma=new Xoa;d=0;try{var oa=ea.storageId;void 0!==oa&&(Fk(ma,1,oa),d++);var ia=ea.storageIdSourceType;void 0!==ia&&(S(ma,2,aMa[ia]),d++);var va=[d===Object.keys(ea).length,ma]}catch(ya){Y(ya),va=[!1,void 0]}ea=va;ea[0]&&(rk(b,Xoa,20,ea[1]),c++)}var aa=a.cotn;void 0!==aa&&(Q(b,22,aa),c++);var U=a.additionalVideoClientState;
if(U){var La=new Uoa;aa=0;try{var x=U.musicAppAdditionalVideoClientState;if(x){var ba=new Toa;ea=0;try{var Ja=x.episodePublishedTimeMs;void 0!==Ja&&(Gk(ba,1,Ja),ea++);var cb=[ea===Object.keys(x).length,ba]}catch(ya){Y(ya),cb=[!1,void 0]}x=cb;x[0]&&(rk(La,Toa,1,x[1]),aa++)}var ob=[aa===Object.keys(U).length,La]}catch(ya){Y(ya),ob=[!1,void 0]}U=ob;U[0]&&(rk(b,Uoa,23,U[1]),c++)}var Qa=a.offlineVideoEntityMigrationState;if(Qa){var Ua=new VA;U=0;try{var ib=Qa.isInOfflineStore;void 0!==ib&&(Dk(Ua,1,ib),
U++);var qb=Qa.isPlaybackDataEntityPresent;void 0!==qb&&(Dk(Ua,2,qb),U++);var rb=Qa.wasPlaybackDataEntityUsedToFillVideoState;void 0!==rb&&(Dk(Ua,3,rb),U++);var B=Qa.isTransferEntityPresent;void 0!==B&&(Dk(Ua,4,B),U++);var D=Qa.wasTransferEntityUsedToFillVideoState;void 0!==D&&(Dk(Ua,5,D),U++);var E=Qa.offlineStoreCaptionTrackCount;void 0!==E&&(Ek(Ua,6,E),U++);var J=Qa.entityStoreCaptionTrackCount;void 0!==J&&(Ek(Ua,7,J),U++);var K=Qa.isMetadataEntityPresent;void 0!==K&&(Dk(Ua,8,K),U++);var ca=Qa.transferDiffFields;
void 0!==ca&&(CO(Ua.j.bind(Ua),ca,bMa),U++);var sa=[U===Object.keys(Qa).length,Ua]}catch(ya){Y(ya),sa=[!1,void 0]}Qa=sa;Qa[0]&&(rk(b,VA,24,Qa[1]),c++)}var ka=a.lastProgressTimeMs;void 0!==ka&&(Gk(b,25,ka),c++);var N=a.initialProgressTimeMs;void 0!==N&&(Gk(b,26,N),c++);var Z=a.offlinePlaybackDisabledReason;void 0!==Z&&(S(b,27,cMa[Z]),c++);return[c===Object.keys(a).length,b]}catch(ya){return Y(ya),[!1,void 0]}};
ZLa=function(a){var b=new Voa,c=0;try{var d=a.format;void 0!==d&&(Ek(b,1,d),c++);var e=a.isDownloaded;void 0!==e&&(Dk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
$La=function(a){var b=new Woa,c=0;try{var d=a.totalDownloadedBytes;void 0!==d&&(Gk(b,1,d),c++);var e=a.totalSegmentCount;void 0!==e&&(Gk(b,2,e),c++);var f=a.backgroundTransitionCount;void 0!==f&&(Gk(b,3,f),c++);var h=a.totalDurationMs;void 0!==h&&(Gk(b,4,h),c++);var l=a.downloadErrorCount;void 0!==l&&(Ek(b,5,l),c++);var m=a.totalDownloadedSizePercent;void 0!==m&&(Fk(b,6,m),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}};
fMa=function(a){var b=new UA,c=0;try{var d=a.id;void 0!==d&&(Q(b,1,d),c++);var e=a.videoIds;e&&(BO(b.j.bind(b),e),c++);var f=a.videoCount;void 0!==f&&(Ek(b,3,f),c++);var h=a.successCount;void 0!==h&&(Ek(b,4,h),c++);var l=a.failCount;void 0!==l&&(Ek(b,5,l),c++);var m=a.pendingCount;void 0!==m&&(Ek(b,6,m),c++);var n=a.disabledCount;void 0!==n&&(Ek(b,7,n),c++);var p=a.deletedCount;void 0!==p&&(Ek(b,8,p),c++);var q=a.selectedVideoQuality;void 0!==q&&(S(b,9,uLa[q]),c++);var r=a.isPlaylistOwner;void 0!==
r&&(Dk(b,10,r),c++);var t=a.lastSyncTimeMs;void 0!==t&&(Gk(b,11,t),c++);var v=a.requestSource;void 0!==v&&(S(b,12,eMa[v]),c++);var w=a.additionalPlaylistClientState;if(w){var A=new Soa;d=0;try{var C=w.musicAppAdditionalPlaylistClientState;if(C){var F=new Roa;e=0;try{var G=C.isPodcastShow;void 0!==G&&(Dk(F,1,G),e++);var L=[e===Object.keys(C).length,F]}catch(R){Y(R),L=[!1,void 0]}C=L;C[0]&&(rk(A,Roa,1,C[1]),d++)}var M=[d===Object.keys(w).length,A]}catch(R){Y(R),M=[!1,void 0]}w=M;w[0]&&(rk(b,Soa,13,
w[1]),c++)}return[c===Object.keys(a).length,b]}catch(R){return Y(R),[!1,void 0]}};
iMa=function(a){var b=new QA,c=0;try{var d=a.videoId;void 0!==d&&(b.setVideoId(d),c++);var e=a.itag;void 0!==e&&(Fk(b,6,e),c++);var f=a.failureReason;void 0!==f&&(S(b,2,gMa[f]),c++);var h=a.isCachedExternally;void 0!==h&&(Dk(b,3,h),c++);var l=a.previousFailureReason;void 0!==l&&(S(b,4,gMa[l]),c++);var m=a.previousFailureReasonTimestampMs;void 0!==m&&(Hk(b,5,m),c++);var n=a.streamVerificationStrategy;void 0!==n&&(S(b,7,OO[n]),c++);var p=a.blockSizeBytes;void 0!==p&&(Ek(b,8,p),c++);var q=a.streamVerificationFailedBlocks;
q&&(BO(b.j.bind(b),q,hMa),c++);var r=a.primaryVerificationStrategy;void 0!==r&&(S(b,10,OO[r]),c++);var t=a.secondaryVerificationStrategy;void 0!==t&&(S(b,11,OO[t]),c++);var v=a.secondaryFailureReason;void 0!==v&&(S(b,12,gMa[v]),c++);return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
hMa=function(a){var b=new Ooa,c=0;try{var d=a.itag;void 0!==d&&(Ek(b,1,d),c++);var e=a.startingByte;void 0!==e&&(Gk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
jMa=function(a){var b=new SA,c=0;try{var d=a.videoId;void 0!==d&&(b.setVideoId(d),c++);var e=a.surrogateVideoId;void 0!==e&&(Gk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
kMa=function(a){var b=new Poa,c=0;try{var d=a.externalVideoId;void 0!==d&&(Q(b,1,d),c++);var e=a.videoSid;void 0!==e&&(Gk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
sMa=function(a){var b=new Ty,c=0;try{var d=a.opportunityData;if(d){var e=new Hma,f=0;try{var h=d.debugData;if(h){var l=new Py,m=0;try{var n=h.slots;n&&(BO(l.j.bind(l),n,lMa),m++);var p=h.associatedSlotId;void 0!==p&&(Q(l,2,p),m++);var q=[m===Object.keys(h).length,l]}catch(Vb){Y(Vb),q=[!1,void 0]}h=q;h[0]&&(rk(e,Py,2,h[1]),f++)}var r=d.opportunityType;void 0!==r&&(S(e,3,mMa[r]),f++);var t=[f===Object.keys(d).length,e]}catch(Vb){Y(Vb),t=[!1,void 0]}d=t;d[0]&&(rk(b,Hma,1,d[1]),c++)}var v=a.slotData;
if(v){var w=lMa(v);w[0]&&(rk(b,Oy,2,w[1]),c++)}var A=a.layoutData;if(A){var C=new My;v=0;try{var F=A.type;void 0!==F&&(S(C,2,nMa[F]),v++);var G=A.debugData;if(G){var L=new Ly;F=0;try{var M=G.layoutId;void 0!==M&&(Q(L,1,M),F++);var R=G.exitNormalTriggerData;R&&(BO(L.U5.bind(L),R,PO),F++);var ea=G.exitSkipTriggerData;ea&&(BO(L.V5.bind(L),ea,PO),F++);var ma=G.exitMuteTriggerData;ma&&(BO(L.T5.bind(L),ma,PO),F++);var oa=G.exitUserInputSubmittedTriggerData;oa&&(BO(L.X5.bind(L),oa,PO),F++);var ia=G.exitUserCancelledTriggerData;
ia&&(BO(L.W5.bind(L),ia,PO),F++);var va=[F===Object.keys(G).length,L]}catch(Vb){Y(Vb),va=[!1,void 0]}G=va;G[0]&&(rk(C,Ly,3,G[1]),v++)}var aa=A.controlFlowManagerLayer;void 0!==aa&&(S(C,4,oMa[aa]),v++);var U=A.pingTriggerTypes;void 0!==U&&(CO(C.j.bind(C),U,QO),v++);var La=[v===Object.keys(A).length,C]}catch(Vb){Y(Vb),La=[!1,void 0]}A=La;A[0]&&(rk(b,My,3,A[1]),c++)}var x=a.triggerData;if(x){var ba=PO(x);ba[0]&&(rk(b,Ky,4,ba[1]),c++)}var Ja=a.pingData;if(Ja){var cb=new Sy;x=0;try{var ob=Ja.sourceTriggerType;
void 0!==ob&&(S(cb,1,QO[ob]),x++);var Qa=Ja.debugData;Qa&&(BO(cb.j.bind(cb),Qa,pMa),x++);var Ua=Ja.pingCount;void 0!==Ua&&(Ek(cb,3,Ua),x++);var ib=Ja.pingDispatchStatus;void 0!==ib&&(S(cb,4,qMa[ib]),x++);var qb=Ja.serializedAdPingMetadata;void 0!==qb&&(Kk(cb,5,qb),x++);var rb=Ja.pingDebugData;if(rb){var B=new Ry;ob=0;try{var D=rb.substitutedMacros;void 0!==D&&(CO(B.j.bind(B),D,rMa),ob++);var E=rb.unsubstitutedMacros;void 0!==E&&(CO(B.B.bind(B),E,rMa),ob++);var J=[ob===Object.keys(rb).length,B]}catch(Vb){Y(Vb),
J=[!1,void 0]}rb=J;rb[0]&&(rk(cb,Ry,6,rb[1]),x++)}var K=Ja.pingIndex;void 0!==K&&(Ek(cb,8,K),x++);var ca=[x===Object.keys(Ja).length,cb]}catch(Vb){Y(Vb),ca=[!1,void 0]}Ja=ca;Ja[0]&&(rk(b,Sy,6,Ja[1]),c++)}var sa=a.externalContext;if(sa){var ka=new Ema;Ja=0;try{var N=sa.organicPlaybackContext;if(N){var Z=new Jy;ca=0;try{var ya=N.contentCpn;void 0!==ya&&(Q(Z,1,ya),ca++);var xa=N.isLivePlayback;void 0!==xa&&(Dk(Z,2,xa),ca++);var Za=N.isOfflinePlayback;void 0!==Za&&(Dk(Z,3,Za),ca++);var Wa=N.isMdxPlayback;
void 0!==Wa&&(Dk(Z,4,Wa),ca++);var Bb=N.isDaiContent;void 0!==Bb&&(Dk(Z,5,Bb),ca++);var Qb=N.isPrefetchedPlayback;void 0!==Qb&&(Dk(Z,6,Qb),ca++);var eb=[ca===Object.keys(N).length,Z]}catch(Vb){Y(Vb),eb=[!1,void 0]}N=eb;N[0]&&(rk(ka,Jy,1,N[1]),Ja++)}var Rb=sa.html5ExperimentContext;if(Rb){var hc=new Dma;N=0;try{var Bc=Rb.ytExperimentId;void 0!==Bc&&(Ek(hc,1,Bc),N++);var ac=[N===Object.keys(Rb).length,hc]}catch(Vb){Y(Vb),ac=[!1,void 0]}Rb=ac;Rb[0]&&(rk(ka,Dma,2,Rb[1]),Ja++)}var uc=sa.adVideoPlaybackContext;
if(uc){var Wc=new Cma;Rb=0;try{var Nc=uc.adVideoCpn;void 0!==Nc&&(Q(Wc,1,Nc),Rb++);var Oc=[Rb===Object.keys(uc).length,Wc]}catch(Vb){Y(Vb),Oc=[!1,void 0]}uc=Oc;uc[0]&&(rk(ka,Cma,3,uc[1]),Ja++)}var Pc=[Ja===Object.keys(sa).length,ka]}catch(Vb){Y(Vb),Pc=[!1,void 0]}sa=Pc;sa[0]&&(rk(b,Ema,5,sa[1]),c++)}return[c===Object.keys(a).length,b]}catch(Vb){return Y(Vb),[!1,void 0]}};
lMa=function(a){var b=new Oy,c=0;try{var d=a.type;void 0!==d&&(S(b,2,tMa[d]),c++);var e=a.entryTriggerType;void 0!==e&&(S(b,6,QO[e]),c++);var f=a.slotPhysicalPosition;void 0!==f&&(Ek(b,8,f),c++);var h=a.debugData;if(h){var l=new Ny;d=0;try{var m=h.slotId;void 0!==m&&(Q(l,1,m),d++);var n=h.entryTriggerTypes;void 0!==n&&(CO(l.B.bind(l),n,QO),d++);var p=h.unscheduledDueToError;void 0!==p&&(Dk(l,3,p),d++);var q=h.entryTriggerData;q&&(BO(l.j.bind(l),q,PO),d++);var r=h.slotEntryTriggerData;if(r){var t=
PO(r);t[0]&&(rk(l,Ky,7,t[1]),d++)}var v=h.fulfillmentTriggerData;v&&(BO(l.D.bind(l),v,PO),d++);var w=h.expirationTriggerData;w&&(BO(l.C.bind(l),w,PO),d++);var A=[d===Object.keys(h).length,l]}catch(G){Y(G),A=[!1,void 0]}h=A;h[0]&&(rk(b,Ny,3,h[1]),c++)}var C=a.externallyManaged;void 0!==C&&(Dk(b,4,C),c++);var F=a.controlFlowManagerLayer;void 0!==F&&(S(b,5,oMa[F]),c++);return[c===Object.keys(a).length,b]}catch(G){return Y(G),[!1,void 0]}};
PO=function(a){var b=new Ky,c=0;try{var d=a.type;void 0!==d&&(S(b,1,QO[d]),c++);var e=a.category;void 0!==e&&(S(b,2,uMa[e]),c++);var f=a.layoutIdEnteredTriggerData;if(f){var h=new Fma;d=0;try{var l=f.enteredLayoutId;void 0!==l&&(Q(h,1,l),d++);var m=[d===Object.keys(f).length,h]}catch(w){Y(w),m=[!1,void 0]}f=m;f[0]&&(sk(b,Fma,3,vMa,f[1]),c++)}var n=a.triggerSourceData;if(n){var p=new Gma;f=0;try{var q=n.associatedSlotId;void 0!==q&&(Tj(p,1,wMa,Zi(q)),f++);var r=n.associatedLayoutId;void 0!==r&&(Tj(p,
2,wMa,Zi(r)),f++);var t=[f===Object.keys(n).length,p]}catch(w){Y(w),t=[!1,void 0]}n=t;n[0]&&(sk(b,Gma,4,vMa,n[1]),c++)}var v=a.shouldOnlyTriggerOnce;void 0!==v&&(Dk(b,5,v),c++);return[c===Object.keys(a).length,b]}catch(w){return Y(w),[!1,void 0]}};
pMa=function(a){var b=new Qy,c=0;try{var d=a.macros;void 0!==d&&(CO(b.j.bind(b),d,rMa),c++);var e=a.success;void 0!==e&&(Dk(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
yMa=function(a){var b=new zma,c=0;try{var d=a.cui;if(d){var e=new yma;try{var f=[0===Object.keys(d).length,e]}catch(l){Y(l),f=[!1,void 0]}d=f;d[0]&&(rk(b,yma,1,d[1]),c++)}var h=a.step;void 0!==h&&(S(b,2,xMa[h]),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
zMa=function(a){var b=new dz,c=0;try{var d=a.startMs;void 0!==d&&(Ik(b,1,d),c++);var e=a.endMs;void 0!==e&&(Ik(b,2,e),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
AMa=function(a){var b=new Ima,c=0;try{var d=a.externalVideoId;void 0!==d&&(Q(b,1,d),c++);var e=a.originalMediaDurationMs;void 0!==e&&(Gk(b,2,e),c++);var f=a.trimmedMediaDurationMs;void 0!==f&&(Gk(b,3,f),c++);return[c===Object.keys(a).length,b]}catch(h){return Y(h),[!1,void 0]}};
BMa=function(a){var b=new kA,c=0;try{var d=a.orchestrationActionId;void 0!==d&&(Q(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
CMa=function(a){var b=new sA,c=0;try{var d=a.answerId;void 0!==d&&(Ek(b,1,d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}};
FMa=function(a){var b=new oA,c=0;try{var d=a.ypcCallerPage;void 0!==d&&(S(b,1,DMa[d]),c++);var e=a.useCase;void 0!==e&&(S(b,2,EMa[e]),c++);return[c===Object.keys(a).length,b]}catch(f){return Y(f),[!1,void 0]}};
KMa=function(a){var b=new xA,c=0;try{var d=a.itemId;if(d){var e=new Hy,f=0;try{var h=d.type;void 0!==h&&(S(e,1,RO[h]),f++);var l=d.externalId;void 0!==l&&(Q(e,2,l),f++);var m=[f===Object.keys(d).length,e]}catch(C){Y(C),m=[!1,void 0]}d=m;d[0]&&(rk(b,Hy,1,d[1]),c++)}var n=a.productType;void 0!==n&&(S(b,2,SO[n]),c++);var p=a.originatingDeviceInterface;void 0!==p&&(S(b,4,KKa[p]),c++);var q=a.alcLoggingParams;if(q){var r=new poa;n=0;try{var t=q.purchaseOriginEntityType;void 0!==t&&(S(r,1,GMa[t]),n++);
var v=q.purchaseOriginPageType;void 0!==v&&(S(r,2,HMa[v]),n++);var w=q.purchaseOriginComponent;void 0!==w&&(S(r,3,IMa[w]),n++);var A=[n===Object.keys(q).length,r]}catch(C){Y(C),A=[!1,void 0]}q=A;q[0]&&(sk(b,poa,3,JMa,q[1]),c++)}return[c===Object.keys(a).length,b]}catch(C){return Y(C),[!1,void 0]}};
nNa=function(a){var b=new aA,c=0;try{var d=a.dimensions;if(d){var e=new xna,f=0;try{var h=d.csn;void 0!==h&&(Q(e,1,h),f++);var l=d.userExperienceId;void 0!==l&&(Ek(e,2,l),f++);var m=d.studio;if(m){var n=new Zz,p=0;try{var q=m.route;void 0!==q&&(Q(n,1,q),p++);var r=m.feature;void 0!==r&&(S(n,2,LMa[r]),p++);var t=m.topEntityType;void 0!==t&&(S(n,3,MMa[t]),p++);var v=m.availability;void 0!==v&&(S(n,4,NMa[v]),p++);var w=m.isChannelDelegation;void 0!==w&&(Dk(n,5,w),p++);var A=m.isArtistDelegation;void 0!==
A&&(Dk(n,6,A),p++);var C=m.environment;void 0!==C&&(S(n,7,OMa[C]),p++);var F=m.networkConnectionStatus;void 0!==F&&(S(n,8,PMa[F]),p++);var G=[p===Object.keys(m).length,n]}catch(qc){Y(qc),G=[!1,void 0]}var L=G;L[0]&&(rk(e,Zz,3,L[1]),f++)}var M=d.mweb;if(M){var R=new una,ea=0;try{var ma=M.pageType;void 0!==ma&&(S(R,1,QMa[ma]),ea++);var oa=M.navType;void 0!==oa&&(S(R,2,RMa[oa]),ea++);var ia=[ea===Object.keys(M).length,R]}catch(qc){Y(qc),ia=[!1,void 0]}var va=ia;va[0]&&(rk(e,una,4,va[1]),f++)}var aa=
d.mainAppWeb;if(aa){var U=new tna,La=0;try{var x=aa.pageType;void 0!==x&&(S(U,1,SMa[x]),La++);var ba=aa.requestType;void 0!==ba&&(S(U,2,TMa[ba]),La++);var Ja=aa.isShellLoad;void 0!==Ja&&(Dk(U,3,Ja),La++);var cb=[La===Object.keys(aa).length,U]}catch(qc){Y(qc),cb=[!1,void 0]}var ob=cb;ob[0]&&(rk(e,tna,5,ob[1]),f++)}var Qa=d.survivalSli;if(Qa){var Ua=new rna,ib=0;try{var qb=Qa.partitionMinute;void 0!==qb&&(Ek(Ua,1,qb),ib++);var rb=Qa.survivalStatus;void 0!==rb&&(S(Ua,2,UMa[rb]),ib++);var B=Qa.survivalSessionType;
void 0!==B&&(S(Ua,3,VMa[B]),ib++);var D=[ib===Object.keys(Qa).length,Ua]}catch(qc){Y(qc),D=[!1,void 0]}var E=D;E[0]&&(rk(e,rna,6,E[1]),f++)}var J=d.tvhtml5;if(J){var K=new vna,ca=0;try{var sa=J.authRefreshTokenFailureType;void 0!==sa&&(S(K,1,WMa[sa]),ca++);var ka=J.networkErrorEndpoint;void 0!==ka&&(S(K,2,XMa[ka]),ca++);var N=J.networkErrorResponseCode;void 0!==N&&(Ek(K,3,N),ca++);var Z=J.sessionSurvivalLengthMin;void 0!==Z&&(Ek(K,4,Z),ca++);var ya=J.accountChangeType;void 0!==ya&&(S(K,5,YMa[ya]),
ca++);var xa=J.accountChangeTrigger;void 0!==xa&&(S(K,6,ZMa[xa]),ca++);var Za=J.cpn;void 0!==Za&&(Q(K,7,Za),ca++);var Wa=J.sessionSurvivalDidUserAgentChange;void 0!==Wa&&(Dk(K,8,Wa),ca++);var Bb=J.adShownToPremiumUserCondition;void 0!==Bb&&(S(K,9,$Ma[Bb]),ca++);var Qb=J.identityType;void 0!==Qb&&(S(K,10,aNa[Qb]),ca++);var eb=J.identityDelegationType;void 0!==eb&&(S(K,11,bNa[eb]),ca++);var Rb=J.botguardServerEnvironment;void 0!==Rb&&(S(K,12,cNa[Rb]),ca++);var hc=J.accountEventTrigger;void 0!==hc&&
(S(K,13,dNa[hc]),ca++);var Bc=J.signInMethodType;void 0!==Bc&&(S(K,14,eNa[Bc]),ca++);var ac=J.accountEventErrorType;void 0!==ac&&(S(K,15,fNa[ac]),ca++);var uc=J.hadRemoteDeviceConnected;void 0!==uc&&(Dk(K,16,uc),ca++);var Wc=J.hadVoiceInitiatedPlayback;void 0!==Wc&&(Dk(K,17,Wc),ca++);var Nc=J.restartLengthMin;void 0!==Nc&&(Ek(K,18,Nc),ca++);var Oc=J.restartReason;void 0!==Oc&&(S(K,19,gNa[Oc]),ca++);var Pc=J.numberOfPersonaAccountsDelta;void 0!==Pc&&(Ek(K,20,Pc),ca++);var Vb=J.accountEventCancellationType;
void 0!==Vb&&(S(K,21,hNa[Vb]),ca++);var ud=J.maxJsMemoryPerAppLifecycleBytes;void 0!==ud&&(Ek(K,22,ud),ca++);var kd=J.appLifecycleLengthMin;void 0!==kd&&(Ek(K,23,kd),ca++);var fc=[ca===Object.keys(J).length,K]}catch(qc){Y(qc),fc=[!1,void 0]}var Yb=fc;Yb[0]&&(rk(e,vna,7,Yb[1]),f++)}var Qc=d.unpluggedWeb;if(Qc){var Ib=new wna,Zc=0;try{var vd=Qc.unpluggedWebEntitlementType;void 0!==vd&&(S(Ib,1,iNa[vd]),Zc++);var Ob=Qc.unpluggedWebPurchaseType;void 0!==Ob&&(S(Ib,2,jNa[Ob]),Zc++);var oe=[Zc===Object.keys(Qc).length,
Ib]}catch(qc){Y(qc),oe=[!1,void 0]}var Md=oe;Md[0]&&(rk(e,wna,8,Md[1]),f++)}var Nd=d.logEventStatus;void 0!==Nd&&(Ek(e,9,Nd),f++);var Oe=d.kids;if(Oe){var xe=new sna,Hd=0;try{var Cf=Oe.userType;void 0!==Cf&&(S(xe,1,kNa[Cf]),Hd++);var Ve=[Hd===Object.keys(Oe).length,xe]}catch(qc){Y(qc),Ve=[!1,void 0]}var $d=Ve;$d[0]&&(rk(e,sna,10,$d[1]),f++)}var Df=d.screen;void 0!==Df&&(Ek(e,11,Df),f++);var ae=d.navigation;if(ae){var pe=new qna,Id=0;try{var wd=ae.destinationScreen;void 0!==wd&&(Ek(pe,1,wd),Id++);
var $c=ae.navType;void 0!==$c&&(S(pe,2,lNa[$c]),Id++);var Od=[Id===Object.keys(ae).length,pe]}catch(qc){Y(qc),Od=[!1,void 0]}var We=Od;We[0]&&(rk(e,qna,12,We[1]),f++)}var Uf=[f===Object.keys(d).length,e]}catch(qc){Y(qc),Uf=[!1,void 0]}var lg=Uf;lg[0]&&(rk(b,xna,1,lg[1]),c++)}var qe=a.records;qe&&(BO(b.j.bind(b),qe,mNa),c++);return[c===Object.keys(a).length,b]}catch(qc){return Y(qc),[!1,void 0]}};
mNa=function(a){var b=new $z,c=0;try{var d=a.name;void 0!==d&&(S(b,1,oNa[d]),c++);var e=a.status;void 0!==e&&(S(b,2,pNa[e]),c++);var f=a.state;void 0!==f&&(b.Bc(qNa[f]),c++);var h=a.sliId;void 0!==h&&(Q(b,4,h),c++);return[c===Object.keys(a).length,b]}catch(l){return Y(l),[!1,void 0]}};
TO=function(){this.C=new Set;this.B=new Set;this.D=new Map;this.client=void 0;this.csn=null};
UO=function(){TO.instance||(TO.instance=new TO);return TO.instance};
VO=function(){};
WO=function(){this.N=[];this.Z=[];this.j=[];this.ra=[];this.G=[];this.Y=[];this.C=new Map;this.K=new Map;this.B=new Set;this.Ba=new Map};
XO=function(){WO.instance||(WO.instance=new WO);return WO.instance};
YO=function(a,b,c,d){d=void 0===d?{}:d;g.gB(function(){rNa.includes(b)||(g.eF(new g.AC("createClientScreen() called with a non-page VE",b)),b=83769);d.isHistoryNavigation||(a.ra=[],a.j.push({rootVe:b,key:d.key||""}));a.N=[];a.Z=[];d.rW?sNa(a,b,c,d):tNa(a,b,c,d)})()};
uNa=function(a,b,c){c=void 0===c?0:c;g.gB(function(){b.then(function(d){a.B.has(c)&&a.D&&a.D();var e=g.aF(c),f=g.$E(c);if(e&&f){var h;(null==d?0:null==(h=d.response)?0:h.trackingParams)&&g.mF(a.client,e,f,g.ZE(d.response.trackingParams));var l;(null==d?0:null==(l=d.playerResponse)?0:l.trackingParams)&&g.mF(a.client,e,f,g.ZE(d.playerResponse.trackingParams))}})})()};
$O=function(a){var b=XO();g.gB(function(){var c=g.ZE(a);ZO(b,c);return c})()};
ZO=function(a,b,c,d){d=void 0===d?0:d;g.gB(function(){if(a.B.has(d))return a.N.push([b,c]),!0;var e=g.aF(d),f=c||g.$E(d);if(e&&f){if(g.AB("combine_ve_grafts")){var h=a.C.get(f.toString());h?h.push(b):(a.K.set(f.toString(),f),a.C.set(f.toString(),[b]));a.qa||(a.qa=g.FC(0,function(){vNa(a,e)},1200))}else g.mF(a.client,e,f,b);
return!0}return!1})()};
wNa=function(a,b,c,d){d=void 0===d?0:d;var e=g.aF(d);d=b||g.$E(d);e&&d&&(a=a.client,b=kF({cttAuthInfo:bF(e)||void 0},e),g.AB("il_via_jspb")?(c=new JA,c.j(e),d=d.getAsJspb(),rk(c,eA,2,d),"UNDEFINED_CSN"===e?oF("visualElementStateChanged",b,void 0,c):vva(c,b,a)):(c={csn:e,ve:d.getAsJson(),clientData:c},"UNDEFINED_CSN"===e?oF("visualElementStateChanged",b,c):a?TE("visualElementStateChanged",c,a,b):g.MC("visualElementStateChanged",c,b)))};
sNa=function(a,b,c,d){d=void 0===d?{}:d;a.B.add(d.layer||0);a.D=function(){tNa(a,b,c,d);var h=g.$E(d.layer);if(h){for(var l=g.u(a.N),m=l.next();!m.done;m=l.next())m=m.value,ZO(a,m[0],m[1]||h,d.layer);h=g.u(a.Z);for(l=h.next();!l.done;l=h.next())l=l.value,wNa(a,l[0],l[1])}};
c||g.aF(d.layer)||a.D();if(d.rW)for(var e=g.u(d.rW),f=e.next();!f.done;f=e.next())uNa(a,f.value,d.layer);else g.dF(Error("Delayed screen needs a data promise."))};
tNa=function(a,b,c,d){d=void 0===d?{}:d;var e=void 0;d.layer||(d.layer=0);e=void 0!==d.parentLayer?d.parentLayer:d.layer;var f=g.aF(e);e=g.$E(e);var h=c||e,l;h&&(void 0!==d.parentCsn?l={clientScreenNonce:d.parentCsn,visualElement:h}:f&&"UNDEFINED_CSN"!==f&&(l={clientScreenNonce:f,visualElement:h}));var m,n=g.cB("EVENT_ID");"UNDEFINED_CSN"===f&&n&&(m={servletData:{serializedServletEventId:n}});g.AB("combine_ve_grafts")&&f&&vNa(a,f);g.AB("no_client_ve_attach_unless_shown")&&h&&f&&ywa(h,f);try{var p=
wwa(a.client,b,l,d.nW,d.cttAuthInfo,m,d.implicitGestureType,d.loggingExpectations)}catch(t){iwa(t,{YF:b,rootVe:e,kpb:c,knb:f,jpb:l,nW:d.nW});g.dF(t);return}Lva(p,b,d.layer,d.cttAuthInfo);f&&"UNDEFINED_CSN"!==f&&e&&!Iva(f)&&Bwa(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.AH({clientScreenNonce:p});VO.instance||(VO.instance=new VO);g.gB(UO().j).bind(UO())();var q=g.$E(d.layer);f&&"UNDEFINED_CSN"!==f&&q&&(g.AB("web_mark_root_visible")||g.AB("music_web_mark_root_visible"))&&
g.qF(p,q);a.B.delete(d.layer||0);a.D=void 0;var r;null==(r=a.Ba.get(d.layer))||r.forEach(function(t,v){t?ZO(a,v,t,d.layer):q&&ZO(a,v,q,d.layer)});
xNa(a)};
xNa=function(a){for(var b=0;b<a.G.length;b++){var c=a.G[b];try{c()}catch(d){g.dF(d)}}for(b=a.G.length=0;b<a.Y.length;b++){c=a.Y[b];try{c()}catch(d){g.dF(d)}}};
vNa=function(a,b){if(void 0===b)for(var c=Gva(),d=0;d<c.length;d++)void 0!==c[d]&&vNa(a,c[d]);else a.C.forEach(function(e,f){(f=a.K.get(f))&&g.xwa(a.client,b,f,e)}),a.C.clear(),a.K.clear(),a.qa=void 0};
aP=function(){};
yNa=function(){aP.instance||(aP.instance=new aP);return aP.instance};
zNa=function(a,b,c){var d=new XMLHttpRequest;if(null==c?0:c.LA)d.onreadystatechange=function(f){c.LA(d,f)};
var e;d.open(null!=(e=b.method)?e:"GET",a,!0);d.responseType="text";d.withCredentials=!0;if(b.headers)for(a=g.u(Object.entries(b.headers)),b=a.next();!b.done;b=a.next())e=g.u(b.value),b=e.next().value,e=e.next().value,d.setRequestHeader(b,e);return d};
bP=function(){};
ANa=function(){var a=navigator;return new Promise(function(b,c){var d;null!=(d=a.webkitTemporaryStorage)&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,f){b({usage:e,quota:f})},function(e){c(e)}):c(Error("webkitTemporaryStorage is not supported."))})};
bra=function(a,b){var c=this;this.handleError=a;this.j=b;this.B=!1;void 0===self.document||self.addEventListener("beforeunload",function(){c.B=!0});
this.C=Math.random()<=g.BB("ytidb_transaction_ended_event_rate_limit_session",.2)};
CNa=function(a,b){bP.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:void 0===self.document,isIframe:self!==self.top,deviceStorageUsageMbytes:BNa(null==c?void 0:c.usage),deviceStorageQuotaMbytes:BNa(null==c?void 0:c.quota)});a.j("idbQuotaExceeded",c)})};
BNa=function(a){return"undefined"===typeof a?"-1":String(Math.ceil(a/1048576))};
ENa=function(){g.xC();return g.yC(0,192)?g.yC(0,190):!(g.AB("web_watch_cinematics_disabled_by_default")||g.AB("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&DNa())};
GNa=function(a){return!FNa||(0,g.$C)()-FNa>a};
INa=function(a,b){HNa(a.program,b.fca)&&(DH("bg_i",void 0,"player_att"),g.cP.initialize(a,function(){DH("bg_l",void 0,"player_att");FNa=(0,g.$C)()},b.cspNonce))};
JNa=function(a){a=void 0===a?{}:a;return g.cP.invoke(a)};
HNa=function(a,b){return a?g.cP.isLoading()?!1:GNa(b):!1};
KNa=function(a){a=a.split("");dP.zd(a,54);dP.je(a,2);dP.Kz(a,14);dP.je(a,2);dP.zd(a,24);dP.zd(a,36);dP.Kz(a,20);dP.je(a,2);return a.join("")};
g.LNa=function(a,b){return a.Ga+"timedtext_video?ref=player&v="+b.videoId};
g.eP=function(a,b){a.feature=b;return a};
g.MNa=function(a){var b=this;this.videoData=a;a={};this.j=(a.c1a=function(){var c=[];if(g.cP.isInitialized()){var d="";b.videoData&&b.videoData.xq&&(d=b.videoData.xq+("&r1b="+b.videoData.clientPlaybackNonce));var e={};d=(e.atr_challenge=d,e);DH("bg_v",void 0,"player_att");(d=JNa(d))?(DH("bg_s",void 0,"player_att"),c.push("r1a="+d)):(DH("bg_e",void 0,"player_att"),c.push("r1c=2"))}else DH("bg_e",void 0,"player_att"),window.trayride||window.botguard?c.push("r1c=1"):c.push("r1c=4");c.push("r1d="+g.cP.getState());
return c.join("&")},a.c6a=function(c){return"r6a="+(Number(c.c)^QH())},a.c6b=function(c){return"r6b="+(Number(c.c)^Number(g.cB("CATSTAT",0)))},a);
this.videoData&&this.videoData.xq?this.zq=kB(this.videoData.xq):this.zq={}};
g.NNa=function(a){if(a.videoData&&a.videoData.xq){for(var b=[a.videoData.xq],c=g.u(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,a.zq[d]&&a.j[d]&&(d=a.j[d](a.zq))&&b.push(d);return b.join("&")}return null};
g.ONa=function(a,b){INa(a,{fca:g.YI(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})};
PNa=function(){var a=XMLHttpRequest.prototype.fetch;return!!a&&3===a.length};
fP=function(a){a=void 0===a?2592E3:a;if(0<a&&!(Jqa()>(0,g.$C)()-1E3*a))return 0;a=g.tC("yt-player-quality");if("string"===typeof a){if(a=g.xK[a],0<a)return a}else if(a instanceof Object)return a.quality;return 0};
QNa=function(){var a=g.tC("yt-player-proxima-pref");return null==a?null:a};
RNa=function(){var a=g.tC("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};
SNa=function(){var a={values:{},Rq:{}};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};
TNa=function(a,b,c){c=void 0===c?!1:c;var d=gP();0<+d[a]&&(b=Math.min(+d[a],b));d[a]!==b&&(d[a]=b,g.sC("yt-player-performance-cap",d,c?2592E3:604800))};
UNa=function(a,b){b=void 0===b?!0:b;var c=gP();return b?+c[a]||8192:c[a]};
gP=function(){return g.tC("yt-player-performance-cap")||{}};
VNa=function(){var a;return null!=(a=g.tC("yt-player-performance-cap-active-set"))?a:[]};
WNa=function(a){(void 0===a?0:a)?(a=VNa().filter(function(b){return b.startsWith("1")}),g.sC("yt-player-performance-cap-active-set",a,2592E3)):g.sC("yt-player-performance-cap-active-set",[],2592E3)};
XNa=function(a){g.sC("yt-player-watch-later-pending",a)};
YNa=function(){return!!g.tC("yt-player-headers-readable")};
ZNa=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(a){return 0}};
g.$Na=function(){var a=g.tC("yt-player-caption-language-preferences");return a?a:[]};
aOa=function(a,b){pO(a,1,b.elapsedTimeMs);sO(a,3,b.videoDecoderName)};
cOa=function(a,b){sO(a,1,b.cpn);pO(a,2,b.sequenceNumber);sO(a,3,b.serializedWatchEndpointLoggingContext);var c;if(b.decoderInfo)for(c=0;c<b.decoderInfo.length;c++)tO(a,6,b.decoderInfo[c],aOa,3);sO(a,9,b.playerResponseCpn);pO(a,10,b.transitionStitchType);pO(a,12,b.timestampOffsetMsecs);pO(a,15,b.remoteControlMode);if(b.remoteConnectedDevices)for(c=0;c<b.remoteConnectedDevices.length;c++)tO(a,16,b.remoteConnectedDevices[c],bOa,3)};
bOa=function(a,b){pO(a,1,b.deviceInterface);sO(a,2,b.deviceVersion);qO(a,3,b.isSleeping)};
dOa=function(a){var b=[];a=g.u(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("-"),3>d.length||b.push({z0:d[0],platform:d[1],deviceVersion:d[2],dY:c}))}return b};
gOa=function(a){return dOa(a).map(function(b){return{deviceInterface:eOa[fOa[b.z0]]||0,deviceVersion:b.deviceVersion||"",isSleeping:b.dY}})};
g.hP=function(a,b){this.id=a;this.kc=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.kc.id.split(".");1<a.length&&(this.G="2"===a[1])};
iP=function(a,b,c,d,e){this.B=a;this.j=b;this.C=c;this.reason=d;this.sb=void 0===e?0:e};
hOa=function(a,b){return a.B===b.B&&a.j===b.j&&a.C===b.C&&a.reason===b.reason&&(!jP||a.sb===b.sb)};
g.kP=function(a,b,c,d){return new iP(g.xK[a]||0,g.xK[b]||0,c,d)};
lP=function(a){if(jP&&a.sb)return!1;var b=g.xK.auto;return a.B===b&&a.j===b};
nP=function(a){return mP[a.j||a.B]||"auto"};
iOa=function(a,b){b=g.xK[b];return a.B<=b&&(!a.j||a.j>=b)};
oP=function(a){return"["+a.B+"-"+a.j+", override: "+(a.C+", reason: "+a.reason+"]")};
pP=function(a,b,c){this.videoInfos=a;this.j=b;this.audioTracks=[];if(this.j){a=new Set;null==c||c({ainfolen:this.j.length});b=g.u(this.j);for(var d=b.next();!d.done;d=b.next())if(d=d.value,!d.kc||a.has(d.kc.id)){var e=void 0,f=void 0,h=void 0;null==(h=c)||h({atkerr:!!d.kc,itag:d.itag,xtag:d.j,lang:(null==(e=d.kc)?void 0:e.name)||"",langid:(null==(f=d.kc)?void 0:f.id)||""})}else e=new g.hP(d.id,d.kc),a.add(d.kc.id),this.audioTracks.push(e);null==c||c({atklen:this.audioTracks.length})}};
jOa=function(){g.I.apply(this,arguments);this.j=null};
nOa=function(a,b,c,d,e,f,h){if(a.j)return a.j;var l={},m=new Set,n={};if(qP(d)){for(var p in d.j)d.j.hasOwnProperty(p)&&(a=d.j[p],n[a.info.qb]=[a.info]);return n}p=kOa(b,d,l);f&&e({aftsrt:rP(p)});for(var q={},r=g.u(Object.keys(p)),t=r.next();!t.done;t=r.next()){t=t.value;for(var v=g.u(p[t]),w=v.next();!w.done;w=v.next()){w=w.value;var A=w.itag,C=void 0,F=t+"_"+((null==(C=w.video)?void 0:C.fps)||0);q.hasOwnProperty(F)?!0===q[F]?n[t].push(w):l[A]=q[F]:(C=sP(b,w,c,d.isLive,m),!0!==C?(h.add(t),l[A]=C,
"disablevp9hfr"===C&&(q[F]="disablevp9hfr")):(n[t]=n[t]||[],n[t].push(w),q[F]=!0))}}f&&e({bfflt:rP(n)});for(var G in n)n.hasOwnProperty(G)&&(d=G,n[d]&&n[d][0].yg()&&(n[d]=n[d],n[d]=lOa(b,n[d],l),n[d]=mOa(n[d],l)));f&&e(l);b=g.u(m.values());for(d=b.next();!d.done;d=b.next())(d=c.C.get(d.value))&&--d.R_;f&&e({aftflt:rP(n)});a.j=g.Xc(n,function(L){return!!L.length});
return a.j};
pOa=function(a,b,c,d,e,f,h,l){l=void 0===l?!1:l;if(b.Sc&&h&&1<h.length&&!(0<b.gj||b.Y)){for(var m=b.B||!!e,n=m&&b.Pb?f:void 0,p=kOa(b,d),q=[],r=[],t={},v=0;v<h.length;v++){var w=h[v],A=d.N.get(w);if(A&&A.info){var C=A.info;A=C.qb;if(sP(b,C,c,d.isLive)){w=C.yg()?q:r;C=g.u(p[A]);for(var F=C.next();!F.done;F=C.next()){F=F.value;var G=void 0,L=A+"_"+((null==(G=F.video)?void 0:G.fps)||0);t.hasOwnProperty(L)?!0===t[L]&&w.push(F):sP(b,F,c,d.isLive)&&(w.push(F),t[L]=!0)}}else m&&f({opfu:w})}}if(q.length&&
r.length)return m&&f({opfm:q[0].itag+","+r[0].itag}),IB(new pP(q,r,n))}return oOa(a,b,c,d,e,f,l)};
oOa=function(a,b,c,d,e,f,h){function l(C){return!!q[C]}
var m=b.B||!!e,n=m&&b.Pb?f:void 0,p=new Set,q=nOa(a,b,c,d,f,m,p);tP(d)&&(q=qOa(c,q,e,m,f,b),m&&f({enflt:rP(q)}));b.rb=rOa(q);if(qP(d))return f=g.Db(Object.values(q),function(C){return!!C.length&&!!C[0].audio}),a=g.Db(Object.values(q),function(C){return!!C.length&&!!C[0].video}),f&&a||HB(),IB(new pP(a,f,n));
e=sOa(b);m&&f({audioPrefOrder:e.join("_")});a=[];if(b.Ud){e=g.Ht(e,l);for(var r=new Set,t=g.u(e),v=t.next();!v.done;v=t.next()){v=g.u(q[v.value]);for(var w=v.next();!w.done;w=v.next())w=w.value,w.kc&&!r.has(w.kc.id)&&(r.add(w.kc.id),a.push(w))}if(0===a.length){if(0===e.length)return m&&f({noaudio:1}),HB();a=q[e[0]]}}else{a=g.Db(e,l);if(!a)return m&&f({noaudio:1}),HB();a=q[a]}q["9"]&&q.h&&d.dc&&!b.Va&&(m&&f({dltvp9:1}),delete q["9"]);if(h){m&&f({bfsflt:rP(q),bfsflta:uP(c)});tOa(c,p);m&&f({bfsfltb:uP(c)});
for(var A in q)if(q.hasOwnProperty(A)&&(h=A,!("f"===h||0===b.Sf&&uOa.has(h))))for(p=g.u(q[h]),e=p.next();!e.done;e=p.next())e=e.value,b.Jd?vOa(c,h,e):wOa(c,h,e);m&&f({aftsflt:uP(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.ke&&e)A=e,p=[h],f({forceAv1:h});else if(b.Y&&!b.jo)for(p=xOa(d)?q["1h"]||q["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],m&&f({newhybpref:p.join(".")}),
e=g.u(p),r=e.next();!r.done;r=e.next())A=A.concat(q[r.value]).filter(function(C){return C});
else 0<b.gj&&r&&e&&(p=[h,c],A=e.concat(r).filter(function(C){return C}));
if(A.length&&!b.jo){vP(A,p);if(m){m=[];b=g.u(A);for(d=b.next();!d.done;d=b.next())m.push(d.value.itag);f({hbdfmt:m.join(".")})}return IB(new pP(A,a,n))}A=yOa(b);A=g.Db(A,l);if(!A){if(q[h])return f=q[h],vP(f),IB(new pP(f,a,n));m&&f({novideo:1});return HB()}b.Dc&&("1"===A||"1h"===A)&&q[c]&&(h=wP(q[A]),p=wP(q[c]),p>h?A=c:b.wd&&p===h&&zOa(q[c])&&(A=c));"9"===A&&q.h&&wP(q.h)>wP(q["9"])&&(A="h");b.Hb&&d.isLive&&"("===A&&q.H&&1440>wP(q["("])&&(A="H");m&&f({vfmly:AOa(A)});b=q[A];if(!b.length)return m&&f({novfmly:AOa(A)}),
HB();vP(b);return IB(new pP(b,a,n))};
rOa=function(a){var b=!(!a.mac3&&!a.MAC3),c=!(!a.meac3&&!a.MEAC3);return!(!a.m&&!a.M)||b||c};
zOa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.itag&&BOa.has(b.itag))return!0;return!1};
AOa=function(a){switch(a){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return a}};
rP=function(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)){var d=c;b.push(AOa(d));d=g.u(a[d]);for(var e=d.next();!e.done;e=d.next())b.push(e.value.itag)}return b.join(".")};
qOa=function(a,b,c,d,e,f){var h={},l={};g.Vc(b,function(m,n){m=m.filter(function(p){var q=p.itag;if(!p.le)return l[q]="noenc",!1;if(f.Gb&&"(h"===p.qb&&f.zb)return l[q]="lichdr",!1;if("("===p.qb||"(h"===p.qb){if(a.D&&c&&"widevine"===c.flavor){var r=p.mimeType+"; experimental=allowed";(r=!!p.le[c.flavor]&&!!c.j[r])||(l[q]=p.le[c.flavor]?"unspt":"noflv");return r}if(!xP(a,yP.CRYPTOBLOCKFORMAT)&&!a.Ba||a.qa)return l[q]=a.qa?"disvp":"vpsub",!1}return c&&p.le[c.flavor]&&c.j[p.mimeType]?!0:(l[q]=c?p.le[c.flavor]?
"unspt":"noflv":"nosys",!1)});
m.length&&(h[n]=m)});
d&&Object.entries(l).length&&e(l);return h};
mOa=function(a,b){var c=Tr(a,function(d,e){return 32<e.video.fps?Math.min(d,e.video.width):d},Infinity);
Infinity>c&&(a=a.filter(function(d){if(32<d.video.fps||d.video.width<c)return!0;b[d.itag]="hfrfirst";return!1}));
Spa()&&(a=a.filter(function(d){if("299"!==d.itag)return!0;b[d.itag]="ps3hfr1080";return!1}));
return a};
lOa=function(a,b,c){return b=b.filter(function(d){if(d.video.j<=a.Xb)return!0;c[d.itag]="maxquality";return!1})};
kOa=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.qb;d[h]=d[h]||[];d[h].push(f)}}a=g.u(Object.keys(d));for(b=a.next();!b.done;b=a.next())vP(d[b.value]);return d};
wP=function(a){return Tr(a,function(b,c){return Math.max(b,c.video.j)},0)};
sP=function(a,b,c,d,e){e=void 0===e?new Set:e;if(""===b.qb)return"unkn";if(("304"===b.itag||"266"===b.itag)&&a.Ga)return"blk2khfr";if(a.K&&b.video&&b.video.j>a.K)return"max"+a.K;if(a.fb&&"h"===b.qb&&b.video&&1080<b.video.j)return"blkhigh264";if("(h"===b.qb&&!c.K)return"enchdr";if((void 0===d?0:d)&&FK(b)&&!a.Ra)return"blk51live";if(("MAC3"===b.qb||"mac3"===b.qb)&&!a.D)return"blkac3";if(("MEAC3"===b.qb||"meac3"===b.qb)&&!a.G)return"blkeac3";if(("M"===b.qb||"m"===b.qb)&&!a.ra)return"blkaac51";if(("so"===
b.qb||"sa"===b.qb)&&!a.Ba)return"blkamb";if(!a.Gb&&b.le&&b.le.fairplay&&("("===b.qb||"(h"===b.qb||"A"===b.qb||"MEAC3"===b.qb))return"cbc";if("i"===b.qb&&!a.Jb)return"blkiamf";var f,h;if(a.Za&&("1"===b.qb||"1h"===b.qb)&&(null==(f=b.video)?0:f.j)&&(null==(h=b.video)?void 0:h.j)>a.Za)return"av1cap";if((d=c.C.get(b.qb))&&0<d.R_)return e.add(b.qb),"byerr";var l;if(null==(l=b.video)?0:32<l.fps){if(!c.ra&&!xP(c,yP.FRAMERATE))return"capHfr";if(a.bb&&4320<=b.video.j)return"blk8khfr";if(DK(b)&&a.hd&&b.le&&
1440<=b.video.j)return"disablevp9hfr"}if(a.sb&&b.sb>a.sb)return"ratecap";a=COa(c,b);return!0!==a?a:!0};
vP=function(a,b){b=void 0===b?[]:b;g.Wb(a,function(c,d){var e=d.sb-c.sb;if(!c.yg()||!d.yg())return e;var f=d.video.height*d.video.width-c.video.height*c.video.width;!f&&b&&0<b.length&&(c=b.indexOf(c.qb)+1,d=b.indexOf(d.qb)+1,f=0===c||0===d?d||-1:c-d);f||(f=e);return f})};
g.zP=function(a,b){this.B=a;this.D=void 0===b?!1:b;this.C=this.path=this.scheme="";this.j={};this.url=""};
BP=function(a){AP(a);return a.C};
CP=function(a){return a.B?a.B.startsWith("local"):"local"===a.scheme};
DOa=function(a){AP(a);return g.ad(a.j,function(b){return null!==b})};
EOa=function(a){AP(a);var b=decodeURIComponent(a.get("mn")||"").split(",");return"/videoplayback"===a.path&&1<b.length&&!!b[1]};
DP=function(a,b){b=void 0===b?!1:b;AP(a);if("/videoplayback"!==a.path){var c=a.clone();c.set("playerfallback","1");return c}var d=a.Oe();c=new g.xp(d);var e=a.get("fvip"),f=decodeURIComponent(a.get("mn")||"").split(",");if(e&&f&&1<f.length&&f[1])return d=c.j,a=d.replace(/^[^.]*/,""),g.zp(c,(0===d.indexOf("rr")?"rr":"r")+e+"---"+f[1]+a),c=new g.zP(c.toString()),c.set("fallback_count","1"),c;if(b)return c=a.clone(),c.set("fallback_count","1"),c;e=c.j.match("\\.a1\\.googlevideo\\.com$");c.j.match("\\.googlevideo\\.com$")?
(g.zp(c,"redirector.googlevideo.com"),d=c.toString()):c.j.match("rr?[1-9].*\\.c\\.youtube\\.com$")?(g.zp(c,"www.youtube.com"),d=c.toString()):(c=xBa(d),zJ(c)&&(d=c));c=new g.zP(d);c.set("cmo=pf","1");e&&c.set("cmo=td","a1.googlevideo.com");return c};
AP=function(a){if(a.B){if(!zJ(a.B)&&!a.B.startsWith("local"))throw new g.AC("Untrusted URL",a.B);var b=g.Gp(a.B);a.scheme=b.G;a.C=b.j+(null!=b.D?":"+b.D:"");var c=b.C;if(c.startsWith("/videoplayback"))a.path="/videoplayback",c=c.substr(14);else if(c.startsWith("/initplayback"))a.path="/initplayback",c=c.substr(13);else if(c.startsWith("/api/manifest")){var d=c.indexOf("/",12),e=c.indexOf("/",d+1);0<d&&0<e?(a.path=c.substr(0,e),c=c.substr(e+1)):(a.path=c,c="")}else a.path=c,c="";d=a.j;a.j=FOa(c);Object.assign(a.j,
GOa(b.B.toString()));Object.assign(a.j,d);"index.m3u8"===a.j.file&&(delete a.j.file,a.path+="/file/index.m3u8");a.B="";a.url="";a.D&&(b=a.get("n"))&&(b=HOa[0](b),a.set("n",b),HOa.length||ema(""))}};
IOa=function(a){AP(a);var b=a.scheme+(a.scheme?"://":"//")+a.C+a.path;if(DOa(a)){var c=[];g.Vc(a.j,function(d,e){null!==d&&c.push(e+"="+d)});
b+="?"+c.join("&")}return b};
FOa=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&JOa(c,a[b],a[b+1]);return c};
GOa=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?JOa(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
JOa=function(a,b,c){if("cmo"===b){var d;0<=(d=c.indexOf("="))?(b="cmo="+c.substr(0,d),c=c.substr(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.substr(0,d),c=c.substr(d+3))}a[b]=c};
EP=function(a){var b=g.V(a,KOa)||a.signatureCipher;a={MX:!1,aD:"",sG:"",s:""};if(!b)return a;b=kB(b);a.MX=!0;a.aD=b.url;a.sG=b.sp;a.s=b.s;return a};
FP=function(a,b,c,d,e,f,h,l,m){this.Pa=a;this.startTime=b;this.duration=c;this.ingestionTime=d;this.sourceURL=e;this.Ug=m;this.endTime=b+c;this.j=h||0;this.range=f||null;this.pending=l||!1;this.Ug=m||null};
g.GP=function(){this.segments=[];this.j=null;this.B=!0};
LOa=function(a,b){if(b>a.Ed())a.segments=[];else{var c=Cb(a.segments,function(d){return d.Pa>=b},a);
0<c&&a.segments.splice(0,c)}};
MOa=function(a,b,c,d,e){e=void 0===e?!1:e;this.data=a;this.offset=b;this.size=c;this.type=d;this.j=(this.B=e)?0:8;this.dataOffset=this.offset+this.j};
HP=function(a){var b=a.data.getUint8(a.offset+a.j);a.j+=1;return b};
IP=function(a){var b=a.data.getUint16(a.offset+a.j);a.j+=2;return b};
JP=function(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b};
KP=function(a){var b=a.data.getUint32(a.offset+a.j);a.j+=4;return b};
LP=function(a){var b=a.data;var c=a.offset+a.j;b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.j+=8;return b};
NOa=function(a,b){b=void 0===b?NaN:b;if(isNaN(b))var c=a.size;else for(c=a.j;c<a.size&&a.data.getUint8(a.offset+c)!==b;)++c;b=new Uint8Array(a.data.buffer,a.offset+a.j+a.data.byteOffset,c-a.j);a.j=Math.min(c+1,a.size);return YN(b)};
OOa=function(a){return new Uint8Array(a.data.buffer,a.offset+a.data.byteOffset,a.size)};
POa=function(a){this.offset=0;this.data=new DataView(new ArrayBuffer(a))};
MP=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};
NP=function(a,b,c,d,e,f){this.startSecs=a;this.rh=b;this.context=c;this.identifier=d;this.event=e;this.j=f};
PP=function(a,b){this.data=a;this.uri=b||"http://youtube.com/streaming/metadata/segment/102015";this.il=OP(this,"Sequence-Number");this.G=OP(this,"Segment-Count");this.K=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=OP(this,"Ingestion-Walltime-Us")/1E6;this.j=(OP(this,"First-Frame-Time-Us")+OP(this,"First-Frame-Uncertainty-Us"))/1E6;this.Ej=OP(this,"Target-Duration-Us")/1E6;this.C="T"===this.data["Stream-Finished"];this.D="T"===this.data.Streamable;this.cryptoPeriodIndex=OP(this,"Crypto-Period-Index");
this.B=OP(this,"Crypto-Period-Seconds")};
ROa=function(a){return a.data["Cuepoint-Type"]?new NP(-(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0),Number(a.data["Cuepoint-Total-Duration-Sec"])||0,a.data["Cuepoint-Context"],a.data["Cuepoint-Identifier"]||"",QOa[a.data["Cuepoint-Event"]||""]||"unknown",1E3*(Number(a.data["Cuepoint-Playhead-Time-Sec"])||0)):null};
SOa=function(a){return Number(a.data["Start-Media-Time-Us"])/1E6||0};
OP=function(a,b){return Number(a.data[b])||0};
TOa=function(a){return a.data["Stitched-Video-Cpn"]?a.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]};
g.UOa=function(a){return a.data["Serialized-State"]?a.data["Serialized-State"]:""};
g.VOa=function(a){switch(a.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}};
WOa=function(a,b){this.j=a;this.duration=b};
XOa=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)};
QP=function(a){var b={};a=a.split("\r\n");for(var c=0;c<a.length;c++){if(0===a[c].length)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);null!=d&&(b[d[1]]=d[2])}return null};
YOa=function(a,b){var c=g.RP(a,0,1952868452);a=g.RP(a,0,1953658222);if(c&&a){c.skip(1);var d=HP(c)<<16|IP(c);c.skip(4);d&1&&c.skip(8);d&2&&c.skip(4);if(d&8){d=c.j;var e=KP(c);c.data.setUint32(c.offset+d,1<b?Math.ceil(e*b):Math.floor(e*b))}a.skip(1);c=HP(a)<<16|IP(a);if(c&256){d=c&1;e=c&4;var f=c&512,h=c&1024,l=c&2048;c=KP(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=KP(a),a.data.setUint32(a.offset+f,1<b?Math.ceil(h*b):Math.floor(h*b)),a.skip(d)}}};
TP=function(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);return(a=g.RP(a,0,1836476516))?g.SP(a):NaN};
ZOa=function(a){var b=g.RP(a,0,1937011556);if(!b)return null;b=UP(a,b.dataOffset+8,1635148593)||UP(a,b.dataOffset+8,1635135537);if(!b)return null;var c=UP(a,b.dataOffset+78,1936995172),d=UP(a,b.dataOffset+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),HP(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=UP(a,d.dataOffset,1886547818)){var h=UP(a,d.dataOffset,1886546020),l=UP(a,d.dataOffset,2037673328);if(!l&&(l=UP(a,d.dataOffset,1836279920),
!l))return null;h&&(h.skip(4),c=JP(h)/65536,f=JP(h)/65536,e=JP(h)/65536);a=OOa(l);a=new DataView(a.buffer,a.byteOffset+8,a.byteLength-8);return new XOa(b,c,f,e,a)}return null};
UP=function(a,b,c){for(;VP(a,b);){var d=WP(a,b);if(d.type===c)return d;b+=d.size}return null};
g.RP=function(a,b,c){for(;VP(a,b);){var d=WP(a,b);if(d.type===c)return d;b=XP(d.type)?b+8:b+d.size}return null};
g.$Oa=function(a){if(a.data.getUint8(a.dataOffset)){var b=a.data;a=a.dataOffset+4;b=4294967296*b.getUint32(a)+b.getUint32(a+4)}else b=a.data.getUint32(a.dataOffset+4);return b};
WP=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new MOa(a,b,c,d)};
g.SP=function(a){var b=a.data.getUint8(a.dataOffset)?20:12;return a.data.getUint32(a.dataOffset+b)};
aPa=function(a){a=new MOa(a.data,a.offset,a.size,a.type,a.B);var b=HP(a);a.skip(7);var c=KP(a);if(0===b){b=KP(a);var d=KP(a)}else b=LP(a),d=LP(a);a.skip(2);for(var e=IP(a),f=[],h=[],l=0;l<e;l++){var m=KP(a);f.push(m);h.push(KP(a));a.skip(4)}return{Or:c,Q6:b,i7:d,dca:f,xS:h}};
VP=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(48>d||122<d)return!1}return!0};
XP=function(a){return 1701082227===a||1836019558===a||1836019574===a||1835297121===a||1835626086===a||1937007212===a||1953653094===a||1953653099===a||1836475768===a};
bPa=function(a){a.skip(4);return{Cca:NOa(a,0),value:NOa(a,0),Or:KP(a),tpb:KP(a),qnb:KP(a),id:KP(a),gZ:NOa(a),offset:a.offset}};
g.cPa=function(a){var b=UP(a,0,1701671783);if(!b)return null;var c=bPa(b),d=c.Cca;c=QP(c.gZ);if(a=UP(a,b.offset+b.size,1701671783))if(a=bPa(a),a=QP(a.gZ),c&&a){b=g.u(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,c[e]=a[e]}return c?new PP(c,d):null};
dPa=function(a,b){for(var c=UP(a,0,b);c;){var d=c;d.type=1936419184;d.data.setUint32(d.offset+4,1936419184);c=UP(a,c.offset+c.size,b)}};
g.YP=function(a,b){for(var c=0,d=[];VP(a,c);){var e=WP(a,c);e.type===b&&d.push(e);c=XP(e.type)?c+8:c+e.size}return d};
ePa=function(a,b){var c=g.RP(a,0,1937011556),d=g.RP(a,0,1953654136);if(!c||!d||2<=a.getUint32(c.offset+12))return null;var e=new DataView(b.buffer,b.byteOffset,b.length),f=g.RP(e,0,1937011556);if(!f)return null;b=e.getUint32(f.dataOffset+8);d=e.getUint32(f.dataOffset+12);if(1701733217!==d&&1701733238!==d)return null;d=new POa(a.byteLength+b);MP(d,a,0,c.offset+12);d.data.setInt32(d.offset,2);d.offset+=4;MP(d,a,c.offset+16,c.size-16);MP(d,e,e.byteOffset+f.dataOffset+8,b);MP(d,a,c.offset+c.size,a.byteLength-
(c.offset+c.size));c=g.u([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(e=c.next();!e.done;e=c.next())e=g.RP(a,0,e.value),d.data.setUint32(e.offset,e.size+b);a=g.RP(d.data,0,1953654136);d.data.setUint32(a.offset+16,2);return d.data};
fPa=function(a){var b=g.RP(a,0,1937011556);if(!b)return null;var c=a.getUint32(b.dataOffset+12);if(1701733217!==c&&1701733238!==c)return null;b=UP(a,b.offset+24+(1701733217===c?28:78),1936289382);if(!b)return null;c=UP(a,b.offset+8,1935894637);if(!c||1667392371!==a.getUint32(c.offset+12))return null;b=UP(a,b.offset+8,1935894633);if(!b)return null;b=UP(a,b.offset+8,1952804451);if(!b)return null;c=new Uint8Array(16);for(var d=0;16>d;d++)c[d]=a.getInt8(b.offset+16+d);return c};
ZP=function(a,b){this.j=a;this.pos=0;this.start=b||0};
$P=function(a){return a.pos>=a.j.byteLength};
eQ=function(a,b,c){var d=new ZP(c);if(!aQ(d,a))return!1;d=bQ(d);if(!cQ(d,b))return!1;for(a=0;b;)b>>>=8,a++;b=d.start+d.pos;var e=dQ(d,!0);d=a+(d.start+d.pos-b)+e;d=9<d?gPa(d-9,8):gPa(d-2,1);a=b-a;c.setUint8(a++,236);for(b=0;b<d.length;b++)c.setUint8(a++,d[b]);return!0};
iPa=function(a){var b=new ZP(a);b.Nn();if(aQ(b,[408125543,374648427,174,224]))b=bQ(b);else return null;for(var c=a=null;!$P(b);){var d=dQ(b,!1);if(21432===d)switch(fQ(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320===d?c=bQ(b):gQ(b)}if(!c)return null;for(var e,f=d=b=null;!$P(c);)switch(dQ(c,!1)){case 30321:if(3!==fQ(c))return null;break;case 30324:b=hQ(c);break;case 30323:f=hQ(c);break;case 30325:d=hQ(c);break;case 30322:e=dQ(c,!0);e=hPa(c,e);e=new DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:gQ(c)}return e?new XOa(a,b,f,d,e):null};
bQ=function(a){var b=dQ(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 ZP(c,a.start+a.pos);a.pos+=b;return c};
fQ=function(a){for(var b=dQ(a,!0),c=iQ(a),d=1;d<b;d++)c=256*c+iQ(a);return c};
hQ=function(a){var b=dQ(a,!0),c=0;4===b?c=a.j.getFloat32(a.pos):8===b&&(c=a.j.getFloat64(a.pos));a.pos+=b;return c};
jPa=function(a){var b=dQ(a,!0);return YN(hPa(a,b))};
iQ=function(a){return a.j.getUint8(a.pos++)};
dQ=function(a,b){var c=iQ(a);if(1===c){for(b=c=0;7>b;b++)c=256*c+iQ(a);return c}for(var d=128,e=0;6>e&&d>c;e++)c=256*c+iQ(a),d*=128;return b?c-d:c};
gQ=function(a){var b=dQ(a,!0);a.pos+=b};
kPa=function(a){if(!cQ(a,440786851,!0))return null;var b=a.pos;dQ(a,!1);var c=dQ(a,!0)+a.pos-b;a.pos=b+c;if(!cQ(a,408125543,!1))return null;dQ(a,!0);if(!cQ(a,357149030,!0))return null;var d=a.pos;dQ(a,!1);var e=dQ(a,!0)+a.pos-d;a.pos=d+e;if(!cQ(a,374648427,!0))return null;var f=a.pos;dQ(a,!1);var h=dQ(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};
jQ=function(a){var b=a.pos;a.pos=0;var c=1E6;aQ(a,[408125543,357149030,2807729])&&(c=fQ(a));a.pos=b;return c};
lPa=function(a,b){var c=a.pos;a.pos=0;if(160!==a.j.getUint8(a.pos)&&!kQ(a)||!cQ(a,160))return a.pos=c,NaN;dQ(a,!0);var d=a.pos;if(!cQ(a,161))return a.pos=c,NaN;dQ(a,!0);iQ(a);var e=iQ(a)<<8|iQ(a);a.pos=d;if(!cQ(a,155))return a.pos=c,NaN;d=fQ(a);a.pos=c;return(e+d)*b/1E9};
kQ=function(a){if(!mPa(a)||!cQ(a,524531317))return!1;dQ(a,!0);return!0};
mPa=function(a){if(a.Nn()){if(!cQ(a,408125543))return!1;dQ(a,!0)}return!0};
aQ=function(a,b){for(var c=0;c<b.length;c++){if(!cQ(a,b[c]))return!1;c!==b.length-1&&dQ(a,!0)}return!0};
cQ=function(a,b,c){c=void 0===c?!1:c;if($P(a))return!1;for(var d=a.pos;dQ(a,!1)!==b;)if(gQ(a),d=a.pos,$P(a))return!1;c&&(a.pos=d);return!0};
gPa=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};
hPa=function(a,b){var c=new Uint8Array(a.j.buffer,a.j.byteOffset+a.pos,b);a.pos+=b;return c};
lQ=function(a){this.base=a;this.j={};this.url=""};
nPa=function(a,b){var c=b.indexOf("?");if(0<c){var d=GOa(b.substr(c+1));g.Vc(d,function(e,f){this.set(f,e)},a);
b=b.substr(0,c)}b=FOa(b);g.Vc(b,function(e,f){this.set(f,e)},a)};
oPa=function(a){var b=a.base.Oe(),c=[];g.Vc(a.j,function(e,f){c.push(f+"="+e)});
if(!c.length)return b;var d=c.join("&");a=DOa(a.base)?"&":"?";return b+a+d};
pPa=function(a,b){var c=new g.zP(b);(b=c.get("req_id"))&&a.set("req_id",b);g.Vc(a.j,function(d,e){c.set(e,null)});
return c};
mQ=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
nQ=function(a){a=a.split("-");var b=Number(a[0]),c=Number(a[1]);if(!isNaN(b)&&!isNaN(c)&&2===a.length&&(a=new mQ(b,c),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length))return a};
oQ=function(a,b){return new mQ(a,a+b-1)};
qPa=function(a){return null==a.end?{start:String(a.start)}:{start:String(a.start),end:String(a.end)}};
pQ=function(a){if(!a)return new mQ(0,0);var b=Number(a.start);a=Number(a.end);if(!isNaN(b)&&!isNaN(a)&&(b=new mQ(b,a),0<b.length))return b};
qQ=function(a,b,c,d,e,f,h,l,m,n,p,q){d=void 0===d?"":d;this.type=a;this.j=b;this.range=c;this.source=d;this.Dj=p;this.clipId=void 0===q?"":q;this.N=[];this.G="";this.Pa=-1;this.G=d;this.Pa=0<=e?e:-1;this.startTime=f||0;this.duration=h||0;this.Rb=l||0;this.B=0<=m?m:this.range?this.range.length:NaN;this.hf=this.range?this.Rb+this.B===this.range.length:void 0===n?!!this.B:n;this.range?(this.C=this.startTime+this.duration*this.Rb/this.range.length,this.K=this.duration*this.B/this.range.length,this.D=
this.C+this.K):rPa(this)};
rPa=function(a){a.C=a.startTime;a.K=a.duration;a.D=a.C+a.K};
rQ=function(a){return a.hf&&a.j.index.BP(a.Pa)};
sPa=function(a,b,c){var d=!(!b||b.j!==a.j||b.type!==a.type||b.Pa!==a.Pa);return c?d&&!!b&&(a.range&&b.range?b.range.end===a.range.end:b.range===a.range)&&b.Rb+b.B===a.Rb+a.B:d};
sQ=function(a){return 1===a.type||2===a.type};
tQ=function(a){return 3===a.type||7===a.type};
uQ=function(a,b){return a.j===b.j?a.range&&b.range?a.range.start+a.Rb+a.B===b.range.start+b.Rb:a.Pa===b.Pa?a.Rb+a.B===b.Rb:a.Pa+1===b.Pa&&0===b.Rb&&a.hf:!1};
tPa=function(a,b){return uQ(a,b)||1E-6>=Math.abs(a.D-b.C)||a.Pa+1===b.Pa&&0===b.Rb&&a.hf?!0:!1};
uPa=function(a){return a.Pa+(a.hf?1:0)};
vPa=function(a){1===a.length||g.Sr(a,function(c){return!!c.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new mQ(a[0].range.start+a[0].Rb,b.range.start+b.Rb+b.B-1)};
wPa=function(a){for(var b=1;b<a.length;b++)if(!uQ(a[b-1],a[b]))return!1;return!0};
xPa=function(a){var b=0;a=g.u(a);for(var c=a.next();!c.done;c=a.next())b+=c.value.range.length;return b};
vQ=function(a){var b={};b.itag=a.j.info.itag;b.type=""+a.type;b.src=""+a.source;b.segsrc=a.G;b.seg=String(a.Pa);a.range&&(b.range=a.range.start+a.Rb+"-"+(a.range.start+a.Rb+a.B-1));b.time=a.C.toFixed(1)+"-"+(a.C+a.K).toFixed(1);b.off=String(a.Rb);b.len=String(a.B);a.hf&&(b.end="1");rQ(a)&&(b.eos="1");a.clipId&&(b.cid=a.clipId);return b};
yPa=function(a){return new qQ(a.type,a.j,a.range,"getEmptyStubBefore"+a.G,a.Pa,a.startTime,0,a.Rb,0)};
zPa=function(a){return new qQ(a.type,a.j,a.range,"getEmptyStubAfter"+a.G,a.Pa,a.startTime+a.duration,0,a.Rb+a.B,0)};
APa=function(a,b,c,d){return new qQ(a.type,a.j,a.range,"reslice"+a.G,a.Pa,a.startTime,a.duration,b,c,d,a.Dj,a.clipId)};
BPa=function(a,b){return a.j!==b.j?!1:a.range&&b.range?a.range.start+a.Rb>=b.range.start+b.Rb&&a.range.start+a.Rb+a.B<=b.range.start+b.Rb+b.B:a.Pa===b.Pa&&a.Rb>=b.Rb&&(a.Rb+a.B<=b.Rb+b.B||b.hf)};
CPa=function(a,b){return a.j!==b.j?!1:4===a.type&&3===b.type&&a.j.gg()?(a=a.j.lB(a),Ps(a,function(c){return CPa(c,b)})):a.Pa===b.Pa&&!!b.B&&b.Rb+b.B>a.Rb&&b.Rb+b.B<=a.Rb+a.B};
DPa=function(a,b){var c=b.Pa;a.G="updateWithSegmentInfo";a.Pa=c;if(a.startTime!==b.startTime||a.duration!==b.duration)a.startTime=b.startTime,a.duration=b.duration,rPa(a)};
wQ=function(a,b){var c=this;this.eb=a;this.D=this.j=null;this.G=this.Zg=NaN;this.K=this.requestId=null;this.pd={rob:function(){return c.range}};
this.resource=a[0].j.resource;this.B=b||"";this.eb[0].range&&0<this.eb[0].B&&(wPa(a)?(this.range=vPa(a),this.C=this.range.length):(this.range=this.eb[this.eb.length-1].range,this.C=xPa(a)))};
EPa=function(a){return!sQ(a.eb[a.eb.length-1])};
xQ=function(a){return 4===a.eb[a.eb.length-1].type};
g.GPa=function(a,b,c){c=null===a.K?yQ(a.resource,b,c,a.eb[0].type):a.K;if(a.j){b=c?DP(a.j,b.Gl):a.j;var d=new lQ(b);d.get("alr")||d.set("alr","yes");a.B&&nPa(d,a.B)}else/http[s]?:\/\//.test(a.B)?d=new lQ(new g.zP(a.B)):(d=FPa(a.resource,c,b),a.B&&nPa(d,a.B));6===a.eb[0].type&&(b=d.base.clone(),AP(b),"/videogoodput"!==b.path&&(b.path="/videogoodput",b.url=""),d=new lQ(b));(b=a.range)?d.set("range",b.toString()):a.eb[0].j.mw()&&1===a.eb.length&&a.eb[0].Rb&&d.set("range",a.eb[0].Rb+"-");a.requestId&&
d.set("req_id",a.requestId);isNaN(a.Zg)||d.set("headm",a.Zg.toString());isNaN(a.G)||d.set("mffa",a.G+"ms");a.urlParams&&g.Vc(a.urlParams,function(e,f){d.set(f,e)});
return d};
HPa=function(a){if(a.range)return a.C;a=a.eb[0];return Math.round(a.K*a.j.info.sb)};
IPa=function(a,b){return Math.max(0,a.eb[0].C-b)};
JPa=function(){this.D=this.C=this.j=this.timedOut=this.started=this.G=this.B=0};
KPa=function(a){a.G=(0,g.$C)();a.started=0;a.timedOut=0;a.j=0};
LPa=function(a,b){var c=a.started+4*a.j;b&&(c+=a.C);c=Math.max(0,c-3);return Math.pow(1.6,c)};
zQ=function(a,b){a[b]||(a[b]=new JPa);return a[b]};
AQ=function(a){this.Z=this.K=this.G=this.B=0;this.N=!1;this.j=a;this.C=a.clone()};
yQ=function(a,b,c,d){if(CP(a.j))return!1;if(6===(void 0===d?3:d))return a.N=!a.N,a.N;d=zQ(c,BP(a.j));if(1>d.timedOut&&1>d.j)return!1;d=d.timedOut+d.j;a=MPa(a,b);c=zQ(c,BP(a));return c.timedOut+c.j+0<d};
FPa=function(a,b,c){a=b?MPa(a,c):a.j;return new lQ(a)};
MPa=function(a,b){b=b?b.Gl:!1;a.D||(a.D=DP(a.C,b));return a.D};
NPa=function(a,b,c){return BP(b?MPa(a,c):a.j)};
OPa=function(a,b,c){c=zQ(c,NPa(a,yQ(a,b,c),b));b=Math.max(a.G,c.timedOut)+b.FC*(a.B-a.G)+.25*a.K;b=3<b?1E3*Math.pow(1.6,b-3):0;return 0===b?!0:a.Z+b<(0,g.$C)()};
PPa=function(a,b,c){a.j.set(b,c);a.C.set(b,c);a.D&&a.D.set(b,c)};
BQ=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 AQ(a)};
CQ=function(a,b,c,d,e,f){f=void 0===f?0:f;BQ.call(this,a,b,d,void 0);this.G=c;this.Ej=f;this.index=e||new g.GP};
QPa=function(a,b,c,d,e){this.Pa=a;this.startSecs=b;this.rh=c;this.j=d||NaN;this.B=e||NaN};
DQ=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""};
EQ=function(a,b){for(;a;a=a.parentNode){var c=a.getElementsByTagName(b);if(0<c.length)return c[0]}return null};
RPa=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(Number(b[2])|0)+60*(Number(b[4])|0)+(Number(b[6])|0):Number(a)|0};
SPa=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?a+"Z":a};
FQ=function(){this.j=[];this.B=null;this.K=0;this.C=[];this.G=!1;this.N="";this.D=-1};
TPa=function(a){var b=a.C;a.C=[];return b};
UPa=function(){this.D=[];this.j=null;this.B={};this.C={}};
YPa=function(a,b){var c=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.u(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.parentNode.parentNode,f=null;"Period"===e.nodeName?f=VPa(a):"AdaptationSet"===e.nodeName?(e=e.getAttribute("id")||e.getAttribute("mimetype")||"",f=WPa(a,e)):"Representation"===e.nodeName&&(e=e.getAttribute("id")||"",f=XPa(a,e));if(null==f)return;f.update(d);g.Mb(c,TPa(f))}g.Mb(a.D,c);xaa(a.D,function(h){return 1E3*h.startSecs+h.j})};
ZPa=function(a){a.j&&(a.j.j=[]);g.Vc(a.B,function(b){b.j=[]});
g.Vc(a.C,function(b){b.j=[]})};
VPa=function(a){a.j||(a.j=new FQ);return a.j};
WPa=function(a,b){a.B[b]||(a.B[b]=new FQ);return a.B[b]};
XPa=function(a,b){a.C[b]||(a.C[b]=new FQ);return a.C[b]};
$Pa=function(a){var b=void 0===a?{}:a;a=void 0===b.Ej?0:b.Ej;var c=void 0===b.cn?!1:b.cn,d=void 0===b.Bq?0:b.Bq,e=void 0===b.jf?0:b.jf,f=void 0===b.Ci?Infinity:b.Ci,h=void 0===b.tA?0:b.tA;b=void 0===b.Zd?!1:b.Zd;g.GP.call(this);this.Uq=this.zp=-1;this.Fj=a;this.Bq=d;this.cn=c;this.jf=e;this.Ci=f;this.tA=h;this.Zd=b};
GQ=function(a,b){return Ub(a.segments,function(c){return b-c.Pa})};
HQ=function(a,b,c){c=void 0===c?{}:c;CQ.call(this,a,b,"",void 0,void 0,c.Ej||0);this.index=new $Pa(c)};
IQ=function(a,b,c){BQ.call(this,a,b);this.G=c;this.index=new g.GP;this.index.B=!1};
aQa=function(a,b,c){var d=a.index.HI(b),e=a.index.getStartTime(b),f=a.index.getDuration(b);c?f=c=0:c=a.info.sb*f;return new wQ([new qQ(3,a,void 0,"otfCreateRequestInfoForSegment",b,e,f,0,c)],d)};
bQa=function(a,b){if(!a.index.isLoaded()){var c=[],d=b.G;b=b.K.split(",").filter(function(p){return 0<p.length});
for(var e=0,f=0,h=0,l=/^(\d+)/,m=/r=(\d+)/,n=0;n<d;n++){if(0>=h)if(h=b.shift(),f=(f=l.exec(h))?+f[1]/1E3:0)h=(h=m.exec(h))?+h[1]:0,h+=1;else return;c.push(new FP(n,e,f,NaN,"sq/"+(n+1)));e+=f;h--}a.index.append(c)}};
JQ=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.dA()&&!this.info.Rb};
KQ=function(a){return TIa(a.j)};
cQa=function(a,b){a.j.getLength();b=Math.min(b,a.info.B);var c=a.j.split(b),d=c.Km;c=new JQ(new qQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Rb,b,!1,a.info.Dj,a.info.clipId),c.YI);c.D=a.D;c.C=a.C;b=new JQ(new qQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Rb+b,a.info.B-b,a.info.hf,a.info.Dj,a.info.clipId),d);b.D=a.D;b.C=a.C;return[c,b]};
LQ=function(a,b,c){var d;if(!(d=!uQ(a.info,b.info)||a.info.hf)){if(c=void 0===c?!1:c)c=a.j,d=b.j,c=!(d.j.length?PIa(c,d.j[0]):1);d=c}if(d)return null;c=new qQ(a.info.type,a.info.j,a.info.range,a.info.G,a.info.Pa,a.info.startTime,a.info.duration,a.info.Rb,a.info.B,a.info.hf,a.info.Dj,a.info.clipId);d=b.info;c.B+=d.B;c.range&&(c.K+=d.K);c.D=d.D;c.hf=d.hf;d=new JN;KN(d,a.j);KN(d,b.j);c=new JQ(c,d);c.B=b.B||a.B;c.C=-1!==a.C?a.C:b.C;c.D=-1!==a.D?a.D:b.D;return c};
dQa=function(a){g.GK(a.info.j.info)||a.info.j.info.Pe();if(-1!==a.C)return a.C;if(a.B&&SOa(a.B))return a.C=SOa(a.B),a.C;if(g.GK(a.info.j.info)){var b=KQ(a);for(var c=a.info.j.j,d=NaN,e=NaN,f=0;VP(b,f);){var h=WP(b,f);1936286840===h.type?e=h.data.getUint32(h.dataOffset+8):1836476516===h.type?e=g.SP(h):1952867444===h.type&&isNaN(d)&&(d=g.$Oa(h));f=XP(h.type)?f+8:f+h.size}!e&&c&&(e=TP(c));b=d/e}else b=new ZP(KQ(a)),c=a.G?b:new ZP(new DataView(a.info.j.j.buffer)),d=jQ(c),c=b.pos,b.pos=0,kQ(b)?cQ(b,231)?
(d=fQ(b)*d/1E9,b.pos=c,b=d):(b.pos=c,b=NaN):(b.pos=c,b=NaN);a.C=b||a.info.C;return a.C};
fQa=function(a,b){0<a.timestampOffset&&(b-=a.timestampOffset);var c=dQa(a)+b;eQa(a,c);a.timestampOffset=b};
eQa=function(a,b){g.GK(a.info.j.info)||a.info.j.info.Pe();a.C=b;if(g.GK(a.info.j.info)){var c=KQ(a);a=a.info.j.j;for(var d=NaN,e=NaN,f=0;VP(c,f);){var h=WP(c,f);isNaN(d)&&(1936286840===h.type?d=h.data.getUint32(h.dataOffset+8):1836476516===h.type&&(d=g.SP(h)));if(1952867444===h.type){!d&&a&&(d=TP(a));var l=g.$Oa(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=XP(h.type)?f+8:f+h.size}return!0}c=new ZP(KQ(a));a=a.G?c:new ZP(new DataView(a.info.j.j.buffer));d=jQ(a);a=c.pos;c.pos=0;if(kQ(c)&&cQ(c,231))if(e=dQ(c,!0),b=Math.floor(1E9*b/d),Math.ceil(Math.log(b)/Math.log(2)/8)>e)b=!1;else{for(d=e-1;0<=d;d--)c.j.setUint8(c.pos+d,b&255),b>>>=8;c.pos=a;b=!0}else b=!1;return b};
MQ=function(a,b){b=void 0===b?!1:b;var c=gQa(a);a=b?0:a.info.K;return c||a};
gQa=function(a){g.GK(a.info.j.info)||a.info.j.info.Pe();if(a.B&&7===a.info.type)return a.B.Ej;if(g.GK(a.info.j.info)){var b=KQ(a);var c=0;b=g.YP(b,1936286840);b=g.u(b);for(var d=b.next();!d.done;d=b.next())d=aPa(d.value),c+=d.xS[0]/d.Or;c=c||NaN;if(!(0<=c))a:{c=KQ(a);b=a.info.j.j;for(var e=d=0,f=0;VP(c,d);){var h=WP(c,d);if(1836476516===h.type)e=g.SP(h);else if(1836019558===h.type){!e&&b&&(e=TP(b));if(!e){c=NaN;break a}var l=UP(h.data,h.dataOffset,1953653094),m=l;l=e;var n=UP(m.data,m.dataOffset,
1952868452);m=UP(m.data,m.dataOffset,1953658222);var p=JP(n);JP(n);p&2&&JP(n);n=p&8?JP(n):0;var q=JP(m),r=q&1;p=q&4;var t=q&256,v=q&512,w=q&1024;q&=2048;var A=KP(m);r&&JP(m);p&&JP(m);for(var C=r=0;C<A;C++){var F=t?JP(m):n;v&&JP(m);p&&0===C||!w||JP(m);q&&JP(m);r+=F}f+=r/l}d=XP(h.type)?d+8:d+h.size}c=f||NaN}c||g.eF(new g.AC("Missing duration while parsing bmff",a.info.Dd()))}else c=new ZP(KQ(a)),a=a.G?c:new ZP(new DataView(a.info.j.j.buffer)),c=lPa(c,jQ(a));return c};
hQa=function(a){var b=KQ(a);var c=(c=g.RP(b,0,1936286840))?c.data.getUint32(c.dataOffset+8):NaN;isNaN(c)&&(a=a.info.j.j,c=(b=g.RP(b,0,1836476516))?g.SP(b):a?TP(a):NaN);return c};
iQa=function(a){return a.info.j.info.Pe()&&160===VN(a.j,0)};
jQa=function(a){if(!a.B){g.GK(a.info.j.info)||a.info.j.info.Pe();if(g.GK(a.info.j.info))var b=g.cPa(KQ(a));else{b=new ZP(KQ(a));var c=b.pos;b.pos=0;var d=null,e=null;if(aQ(b,[408125543,307544935]))for(var f=b.pos+dQ(b,!0);b.pos<f;)if(29555!==dQ(b,!1))gQ(b);else for(var h=b.pos+dQ(b,!0);b.pos<h;)if(26568!==dQ(b,!1))gQ(b);else for(var l=b.pos+dQ(b,!0);b.pos<l;){var m=dQ(b,!1);if(17543===m){if(m=jPa(b),m=QP(m))if(e)for(var n=g.u(Object.keys(m)),p=n.next();!p.done;p=n.next())p=p.value,e[p]=m[p];else e=
m}else 17827===m?(m=jPa(b),d||(d=m)):gQ(b)}b.pos=c;b=e?new PP(e,d):null}a.B=b}};
kQa=function(a){if(g.GK(a.info.j.info))dPa(KQ(a),1836019574),dPa(KQ(a),1718909296);else{var b=new ZP(KQ(a));mPa(b);cQ(b,524531317,!0);a.j=a.j.split(b.start+b.pos).Km}a.G=!1};
lQa=function(a){if(!a.K){if(g.GK(a.info.j.info)){var b=KQ(a);var c=UP(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=kPa(new ZP(KQ(a)));b&&(a.info.j.j=b,a.K=!0)}};
g.mQa=function(){this.count=0;this.j=1;this.B=!1;this.offsets=new Float64Array(128);this.Ng=new Float64Array(128)};
nQa=function(a,b){return b+1<a.count||a.B?a.offsets[b+1]-a.offsets[b]:-1};
oQa=function(a){a.offsets.length<a.count+1&&a.resize(2*a.offsets.length)};
NQ=function(a,b,c,d){BQ.call(this,a,b,c,d);var e=this;this.G=null;this.pd={UD:function(f,h,l,m){return e.UD(f,h,l,m)}};
this.index=new g.mQa};
pQa=function(a,b,c,d,e,f){this.displayName=a;this.vssId=b;this.languageCode=c;this.kind=void 0===d?"":d;this.xtags=void 0===e?"":e;this.id=void 0===f?"":f};
rQa=function(a){if(a=a.colorInfo)if(a=a.transferCharacteristics)return qQa[a];return null};
g.OQ=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
tQa=function(a){return sQa(function(b,c){return g.FB(b,c,4,1E3)},a,{format:"RAW",
method:"GET",withCredentials:!0})};
g.uQa=function(a){var b;a.responseType&&"text"!==a.responseType?"arraybuffer"===a.responseType&&(b=YN(new Uint8Array(a.response))):b=a.responseText;return!b||2048<b.length?"":0===b.indexOf("https://")?b:""};
sQa=function(a,b,c){b.match(vQa);return a(b,c).then(function(d){var e=g.uQa(d.xhr);return e?sQa(a,e,c):d.xhr})};
QQ=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.wF.call(this);var d=this;this.sourceUrl=a;this.isLivePlayback=c;this.Wa=this.duration=0;this.isPremiere=this.Zd=this.C=this.isLiveHeadPlayable=this.isLive=this.B=!1;this.Ci=this.jf=0;this.isOtf=this.dc=!1;this.La=(0,g.$C)();this.Y=Infinity;this.j={};this.N=new Map;this.state=this.zg=0;this.timeline=null;this.isManifestless=!1;this.qa=[];this.G=null;this.ra=0;this.D="";this.Ba=NaN;this.pc=this.bb=this.Pb=this.timestampOffset=
this.K=0;this.Ra=this.Va=this.Z=!1;this.Ga=[];this.Da={};this.pd={Qmb:function(f){PQ(d,f)}};
var e;this.Za=null==(e=b)?void 0:e.jb("html5_use_network_error_code_enums");wQa=!!b&&b.jb("html5_modern_vp9_mime_type")};
xQa=function(a){return g.ad(a.j,function(b){return!!b.info.video&&2160<=b.info.video.j})};
xOa=function(a){return g.ad(a.j,function(b){return!!b.info.video&&b.info.video.isHdr()})};
tP=function(a){return g.ad(a.j,function(b){return!!b.info.le})};
yQa=function(a){return g.ad(a.j,function(b){return KK(b.info.mimeType)})};
zQa=function(a){return g.ad(a.j,function(b){return b.info.video?"EQUIRECTANGULAR"===b.info.video.projectionType:!1})};
AQa=function(a){return g.ad(a.j,function(b){return b.info.video?"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.info.video.projectionType:!1})};
BQa=function(a){return g.ad(a.j,function(b){return b.info.video?"MESH"===b.info.video.projectionType:!1})};
CQa=function(a){return g.ad(a.j,function(b){return b.info.video?1===b.info.video.stereoLayout:!1})};
DQa=function(a){return bba(a.j,function(b){return b.info.video?b.gR():!0})};
qP=function(a){return g.ad(a.j,function(b){return CP(b.resource.j)})};
PQ=function(a,b){a.j[b.info.id]=b;a.N.set(JK(b.info,a.dc),b)};
EQa=function(a,b){return(b.itag||"")+";"+((a.dc?0:b.lmt||0)||0)+";"+(b.xtags||"")};
RQ=function(a,b,c){c=void 0===c?0:c;var d=a.mimeType||"",e=a.itag;var f=a.xtags;e=e?e.toString():"";f&&(e+=";"+f);f=e;if(jDa(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=FQa[a.stereoLayout]);var r=rQa(a)||void 0;if(null==n?0:n.primaries)var t=GQa[n.primaries]||void 0;h=new yK(h,e,l,p,q,void 0,m,r,t);d=HQa(d,h,BK[a.itag||""])}var v;if(iDa(d)){var w=a.audioSampleRate;q=a.audioTrack;w=new wK(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&&(v=new g.OQ(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 pQa(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.u(m);for(n=m.next();!n.done;n=m.next())(n=IQa[n.value])&&(C[n]=b[n])}return new CK(f,
d,{audio:w,video:h,kc:v,le:C,sb:q,ov:c,contentLength:t,lastModified:e,captionTrack:A,streamType:l,approxDurationMs:a})};
JQa=function(a,b,c){c=void 0===c?0:c;var d=a.type;var e=a.itag;var f=a.xtags;f&&(e=a.itag+";"+f);if(jDa(d)){var h=(a.size||"640x360").split("x");h=new yK(+h[0],+h[1],+a.fps,a.projection_type,+a.stereo_layout,void 0,a.quality_label,a.eotf,a.primaries);d=HQa(d,h,BK[a.itag])}var l;if(iDa(d)){var m=new wK(+a.audio_sample_rate||void 0,+a.audio_channels||0,a.spatial_audio_type,!!a.drc);a.name&&(l=new g.OQ(a.name,a.audio_track_id,"1"===a.isDefault))}var n;a.caption_display_name&&a.caption_vss_id&&a.caption_language_code&&
(n=new pQa(a.caption_display_name,a.caption_vss_id,a.caption_language_code,a.caption_kind,a.xtags,a.caption_id));f=Number(a.bitrate)/8;var p=Number(a.clen),q=Number(a.lmt);c=c&&p?p/c:0;if(b&&a.drm_families){var r={};for(var t=g.u(a.drm_families.split(",")),v=t.next();!v.done;v=t.next())v=v.value,r[v]=b[v]}return new CK(e,d,{audio:m,video:h,kc:l,le:r,sb:f,ov:c,contentLength:p,lastModified:q,captionTrack:n,streamType:a.stream_type,approxDurationMs:Number(a.approx_duration_ms)})};
KQa=function(a){return Ps(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
LQa=function(a){return Ps(a,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"};
MQa=function(a,b){return a.timeline?Nb(a.timeline.D,b):a.qa.length?Nb(a.qa,b):[]};
SQ=function(a,b,c){b=void 0===b?"":b;c=void 0===c?"":c;a=new g.zP(a,!0);a.set("alr","yes");c&&(c=KNa(decodeURIComponent(c)),a.set(b,encodeURIComponent(c)));return a};
QQa=function(a,b){var c=DQ(b,"id");c=c.replace(":",";");var d=DQ(b,"mimeType"),e=DQ(b,"codecs");d=e?d+'; codecs="'+e+'"':d;e=Number(DQ(b,"bandwidth"))/8;var f=Number(EQ(b,"BaseURL").getAttribute(a.D+":contentLength")),h=a.duration&&f?f/a.duration:0;if(jDa(d)){var l=Number(DQ(b,"width"));var m=Number(DQ(b,"height")),n=Number(DQ(b,"frameRate")),p=NQa(DQ(b,a.D+":projectionType"));a:switch(DQ(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 yK(l,m,n,p,q)}if(iDa(d)){var r=Number(DQ(b,"audioSamplingRate"));var t=Number(DQ(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));m=OQa(DQ(b,a.D+":spatialAudioType"));r=new wK(r,t,m);a:{t=DQ(b,"lang")||"und";if(m=EQ(b,"Role"))if(p=DQ(m,"value")||"",g.ed(PQa,p)){m=t+"."+PQa[p];n="main"===p;a=DQ(b,a.D+":langName")||t+" - "+p;t=new g.OQ(a,m,n);break a}t=void 0}}if(b=EQ(b,"ContentProtection"))if("http://youtube.com/drm/2012/10/10"===b.getAttribute("schemeIdUri")){var v={};for(b=
b.firstChild;null!=b;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(a=b.getAttribute("type"),m=b.textContent,a&&m&&(v[a]=m.trim()))}else v=void 0;return new CK(c,d,{audio:r,video:l,kc:t,le:v,sb:e,ov:h,contentLength:f})};
NQa=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"}};
OQa=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"}};
SQa=function(a,b){b=void 0===b?"":b;a.state=1;a.La=(0,g.$C)();return tQa(b||a.sourceUrl).then(function(c){if(!a.Ma()){a.zg=c.status;c=c.responseText;var d=new DOMParser;c=Nba(d,dma(c)).getElementsByTagName("MPD")[0];a.Y=1E3*RPa(DQ(c,"minimumUpdatePeriod"))||Infinity;b:{if(c.attributes){d=g.u(c.attributes);for(var e=d.next();!e.done;e=d.next())if(e=e.value,"http://youtube.com/yt/2012/10/10"===e.value){d=e.name.split(":")[1];break b}}d=""}a.D=d;a.isLive=Infinity>a.Y&&a.isLivePlayback;a.Wa=Number(DQ(c,
a.D+":earliestMediaSequence"))||0;if(d=Date.parse(SPa(DQ(c,a.D+":mpdResponseTime"))))a.ra=((0,g.$C)()-d)/1E3;a.isLive&&0>=c.getElementsByTagName("SegmentTimeline").length||g.Sr(c.getElementsByTagName("Period"),a.Cba,a);a.state=2;a.publish("loaded");RQa(a)}return a}).wl(function(c){if(c instanceof DB){var d=c.xhr;
a.zg=d.status}a.state=3;a.publish("loaderror");return kg(d)})};
TQa=function(a,b,c){return SQa(new QQ(a,b,c),a)};
UQa=function(a){return a.isLive&&(0,g.$C)()-a.La>=a.Y};
VQa=function(a){a.G&&a.G.stop()};
RQa=function(a){var b=a.Y;isFinite(b)&&(UQa(a)?a.refresh():(b=Math.max(0,a.La+b-(0,g.$C)()),a.G||(a.G=new g.lv(a.refresh,b,a),g.O(a,a.G)),a.G.start(b)))};
WQa=function(a){a=a.j;for(var b in a){var c=a[b].index;if(c.isLoaded())return c.Ed()+1}return 0};
UQ=function(a){return a.Pb?a.Pb-(a.K||a.timestampOffset):0};
VQ=function(a){return a.bb?a.bb-(a.K||a.timestampOffset):0};
WQ=function(a){if(!isNaN(a.Ba))return a.Ba;var b=a.j,c;for(c in b){var d=b[c].index;if(d.isLoaded()&&!KK(b[c].info.mimeType)){b=0;for(c=d.zn();c<=d.Ed();c++)b+=d.getDuration(c);b/=d.Cz();b=.5*Math.round(b/.5);10<d.Cz()&&(a.Ba=b);return b}if(a.isLive&&(d=b[c],d.Ej))return d.Ej}return NaN};
XQa=function(a,b){a=dba(a.j,function(d){return d.index.isLoaded()});
if(!a)return NaN;a=a.index;var c=a.Bi(b);return a.getStartTime(c)===b?b:c<a.Ed()?a.getStartTime(c+1):NaN};
YQa=function(a,b){if(!a.j["0"]){var c=new CK("0","fakesb",{video:new yK(0,0,0,void 0,void 0,"auto")});a.j["0"]=b?new CQ(new g.zP("http://www.youtube.com/videoplayback"),c,"fake"):new NQ(new g.zP("http://www.youtube.com/videoplayback"),c,new mQ(0,0),new mQ(0,0))}};
XQ=function(a,b,c){for(var d in a.j){var e=KK(a.j[d].info.mimeType)||a.j[d].info.yg();if(c===e){e=a.j[d].index;var f=GQ(e,b);0<=f&&e.segments.splice(f,1)}}};
ZQa=function(a){for(var b in a.j)KK(a.j[b].info.mimeType)||LOa(a.j[b].index,Infinity)};
$Qa=function(a,b,c){for(var d in a.j){var e=a.j[d].index,f=b,h=c;e.cn&&(f&&(e.zp=Math.max(e.zp,f)),h&&(e.Uq=Math.max(e.Uq||0,h)))}};
aRa=function(a){a.bb=0;a.Pb=0;a.pc=0};
YQ=function(a){return a.Va&&a.isManifestless?a.isLiveHeadPlayable:a.isLive};
HQa=function(a,b,c){null===ZQ&&(ZQ=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(wQa&&window.MediaSource&&void 0!==MediaSource.isTypeSupported)return ZQ||"9"!==c&&"("!==c?ZQ||"9h"!==c&&"(h"!==c||(a='video/webm; codecs="vp9.2"'):a='video/webm; codecs="vp9"',a;if(!ZQ&&!bRa||'video/webm; codecs="vp9"'!==a&&'video/webm; codecs="vp9.2"'!==
a)return a;c="00";var d="08",e="01",f="01",h="01";'video/webm; codecs="vp9.2"'===a&&(c="02",d="10","bt2020"===b.primaries&&(h=e="09"),"smpte2084"===b.B&&(f="16"),"arib-std-b67"===b.B&&(f="18"));return'video/webm; codecs="'+["vp09",c,"51",d,"01",e,f,h,"00"].join(".")+'"'};
aR=function(a,b,c,d){b=""+b+(49<c?"p60":32<c?"p48":"");if(!a.L("html5_gradual_perf_cap"))return UNa(b);a=UNa(b,!1);if(null!=a)return a;a=$Q.get(b);if(null!=a)return a;d=null==d?void 0:d.get(b);return null!=d?d:8192};
cRa=function(a){this.Ea=a;this.pc=this.jo=this.Na=this.G=this.D=this.ra=this.La=this.Wa=this.Ba=!1;this.N=this.K=0;this.fb=!1;this.Ga=!0;this.bb=!1;this.gj=0;this.Da=!1;this.Xb=Infinity;this.ZM=!1;this.Dc=!0;this.Va=this.Ra=!1;this.j={};this.B=this.Y=!1;this.Pb=this.Ea.uc();this.Hb=!1;this.Gb=this.Ea.experiments.jb("html5_enable_vp9_fairplay");this.ke=this.Ea.L("html5_force_av1_for_testing");this.Za=g.YI(this.Ea.experiments,"html5_av1_ordinal_cap");this.hd=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.wd=this.Ea.L("html5_prefer_hbr_vp9_over_av1");this.Sf=0;this.disableAv1=this.zb=this.rb=!1;this.sb=g.YI(this.Ea.experiments,"html5_max_byterate");this.Z=this.Ea.L("html5_prefer_high_aac_by_default");this.Ud=this.Ea.L("html5_prefer_language_over_codec");this.Jb=this.Ea.L("html5_enable_iamf_audio");this.Jd=this.Ea.experiments.jb("html5_allow_capability_merge")};
yOa=function(a){if(a.Wa)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");a.Da&&(b.unshift("1"),b.unshift("1h"));a.jo&&b.unshift("h");a.qa&&(b=(dRa[a.qa]||[a.qa]).concat(b));return b};
sOa=function(a){var b=["o","a","A"];a.Z&&b.unshift("ah");1===a.Sf&&(a.ra&&(b=["m","M"].concat(b)),a.D&&(b=["mac3","MAC3"].concat(b)),a.G&&(b=["meac3","MEAC3"].concat(b)));a.Ba&&(b=["so","sa"].concat(b));!a.pc||a.Na||a.C||b.unshift("a");!a.Z&&a.La&&b.unshift("ah");a.C&&(b=(dRa[a.C]||[a.C]).concat(b));a.Jb&&b.unshift("i");return b};
eRa=function(a,b,c,d){b=void 0===b?{}:b;if(void 0===d?0:d)return b.disabled=1,0;if(xP(a.G,yP.AV1_CODECS)&&xP(a.G,yP.HEIGHT)&&xP(a.G,yP.BITRATE))return b.isCapabilityUsable=1,8192;try{var e=ZNa();if(e)return b.localPref=e}catch(l){}d=1080;2>=navigator.hardwareConcurrency&&(d=480);b.coreCount=navigator.hardwareConcurrency;Rpa()&&(b.isArm=1,d=240);if(c){var f,h;if(e=null==(f=c.videoInfos.find(function(l){return EK(l)}))?void 0:null==(h=f.B)?void 0:h.powerEfficient)d=8192,b.isEfficient=1;
c=c.videoInfos[0].video;a=Math.min(aR(a,"1",c.fps),aR(a,"1",30));b.perfCap=a;d=Math.min(d,a);c.isHdr()&&!e&&(b.hdr=1,d*=.75)}else c=aR(a,"1",30),b.perfCap30=c,d=Math.min(d,c),c=aR(a,"1",60),b.perfCap60=c,d=Math.min(d,c);return b.av1Threshold=d};
bR=function(a,b,c,d){this.flavor=a;this.keySystem=b;this.B=c;this.experiments=d;this.j={};this.Wa=this.keySystemAccess=null;this.oy=this.qy=-1;this.Ml=null;this.C=!!d&&d.jb("edge_nonprefixed_eme")};
dR=function(a){return a.C?!1:!a.keySystemAccess&&!!cR()&&"com.microsoft.playready"===a.keySystem};
eR=function(a){return"com.microsoft.playready"===a.keySystem};
fR=function(a){return!a.keySystemAccess&&!!cR()&&"com.apple.fps.1_0"===a.keySystem};
gR=function(a){return"com.youtube.fairplay"===a.keySystem};
hR=function(a){return"com.youtube.fairplay.sbdl"===a.keySystem};
g.iR=function(a){return"fairplay"===a.flavor};
cR=function(){var a=window,b=a.MSMediaKeys;RB()&&!b&&(b=a.WebKitMediaKeys);return b&&b.isTypeSupported?b:null};
fRa=function(a){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.tK&&!g.PB())return Mv("45");if(g.qD||g.Bs)return a.jb("edge_nonprefixed_eme");if(g.jR)return Mv("47");if(g.VC){if(a.jb("html5_enable_safari_fairplay"))return!1;if(a=g.YI(a,"html5_safari_desktop_eme_min_version"))return Mv(a)}return!0};
hRa=function(a,b,c,d){var e=QB(),f=(c=e||c&&RB())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&f.unshift("com.youtube.widevine.l3");e&&d&&f.unshift("com.youtube.fairplay.sbdl");return c?f:a?[].concat(g.qa(f),g.qa(gRa.playready)):[].concat(g.qa(gRa.playready),g.qa(f))};
kR=function(a,b,c,d,e){d=void 0===d?!1:d;g.I.call(this);this.Ea=b;this.useCobaltWidevine=d;this.ma=e;this.B=[];this.C={};this.j={};this.callback=null;this.G=!1;this.D=[];this.initialize(a,!c)};
kRa=function(a,b){a.callback=b;a.D=[];fRa(a.Ea.experiments)?iRa(a):jRa(a)};
iRa=function(a){if(!a.Ma())if(0===a.B.length)a.callback(a.D);else{var b=a.B[0],c=a.C[b],d=lRa(a,c);if(lR&&lR.keySystem===b&&lR.qca===JSON.stringify(d))a.ma("remksa",{re:!0}),mRa(a,c,lR.keySystemAccess);else{var e,f;a.ma("remksa",{re:!1,ok:null!=(f=null==(e=lR)?void 0:e.keySystem)?f:""});lR=void 0;(mR.isActive()?mR.al("emereq",function(){return navigator.requestMediaKeySystemAccess(b,d)}):navigator.requestMediaKeySystemAccess(b,d)).then(AO(function(h){mRa(a,c,h,d)}),AO(function(){a.G=!a.G&&"widevine"===
a.C[a.B[0]].flavor;
a.G||a.B.shift();iRa(a)}))}}};
mRa=function(a,b,c,d){if(!a.Ma()){d&&(lR={keySystem:b.keySystem,keySystemAccess:c,qca:JSON.stringify(d)});b.keySystemAccess=c;if(eR(b)){c=rK();d=g.u(Object.keys(a.j[b.flavor]));for(var e=d.next();!e.done;e=d.next())e=e.value,b.j[e]=!!c.canPlayType(e)}else{c=b.keySystemAccess.getConfiguration();if(c.audioCapabilities)for(d=g.u(c.audioCapabilities),e=d.next();!e.done;e=d.next())nRa(a,b,e.value);if(c.videoCapabilities)for(c=g.u(c.videoCapabilities),d=c.next();!d.done;d=c.next())nRa(a,b,d.value)}a.D.push(b);
a.useCobaltWidevine||a.L("html5_enable_vp9_fairplay")&&hR(b)?(a.B.shift(),iRa(a)):a.callback(a.D)}};
nRa=function(a,b,c){a.L("log_robustness_for_drm")?b.j[c.contentType]=c.robustness||!0:b.j[c.contentType]=!0};
lRa=function(a,b){var c={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(a.L("html5_enable_vp9_fairplay")&&gR(b))return c.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),c.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[c];eR(b)&&(c.initDataTypes=["keyids","cenc"]);for(var d=g.u(Object.keys(a.j[b.flavor])),e=d.next();!e.done;e=d.next()){e=e.value;var f=0===e.indexOf("audio/"),h=f?c.audioCapabilities:c.videoCapabilities;"widevine"!==
b.flavor||a.G?h.push({contentType:e}):f?h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(g.tK&&g.NB("windows nt")&&!a.L("html5_drm_enable_moho")||h.push({contentType:e,robustness:"HW_SECURE_ALL"}),f=e,a.L("html5_enable_cobalt_experimental_vp9_decoder")&&e.includes("vp09")&&(f=e+"; experimental=allowed"),h.push({contentType:f,robustness:"SW_SECURE_DECODE"}),"MWEB"===g.nR(a.Ea)&&(VB()||OB())&&(a.ma("swcrypto",{}),h.push({contentType:e,robustness:"SW_SECURE_CRYPTO"})))}return[c]};
jRa=function(a){if(cR()&&g.VC)a.D.push(new bR("fairplay","com.apple.fps.1_0","",a.Ea.experiments));else{var b=oRa(),c=g.Db(a.B,function(d){var e=a.C[d],f=!1,h=!1,l;for(l in a.j[e.flavor])b(l,d)&&(e.j[l]=!0,f=f||0===l.indexOf("audio/"),h=h||0===l.indexOf("video/"));return f&&h});
c&&a.D.push(a.C[c]);a.B=[]}a.callback(a.D)};
oRa=function(){var a=cR();if(a){var b=a.isTypeSupported;return function(d,e){return b(e,d)}}var c=rK();
return c&&(c.addKey||c.webkitAddKey)?function(d,e){return!!c.canPlayType(d,e)}:function(){return!1}};
pRa=function(a){this.experiments=a;this.B=0;this.D=(this.C=this.experiments.jb("html5_consider_end_stall"))&&oR;this.j=this.experiments.jb("html5_measure_max_progress_handling")};
qRa=function(a,b){this.j=void 0;this.experimentIds=a?a.split(","):[];this.flags=iB(b||"","&");a={};b=g.u(this.experimentIds);for(var c=b.next();!c.done;c=b.next())a[c.value]=!0;this.experiments=a};
g.YI=function(a,b){return Number(a.flags[b])||0};
pR=function(a,b){return(a=a.flags[b])?a.toString():""};
rRa=function(a){if(a=a.flags.html5_web_po_experiment_ids)if(a=a.replace(/\[ *(.*?) *\]/,"$1"))return a.split(",").map(Number);return[]};
sRa=function(a){if(a.j)return a.j;if(1>=a.experimentIds.length)return a.j=a.experimentIds,a.j;var b=[].concat(g.qa(a.experimentIds)).map(function(d){return Number(d)});
b.sort();for(var c=b.length-1;0<c;--c)b[c]-=b[c-1];a.j=b.map(function(d){return d.toString()});
a.j.unshift("v1");return a.j};
uRa=function(a){return tRa.then(a)};
vRa=function(a,b,c){this.experiments=a;this.ra=b;this.Ba=void 0===c?!1:c;this.Z=!!g.Xa("cast.receiver.platform.canDisplayType");this.N={};this.Y=!1;this.C=new Map;this.K=!0;this.B=this.D=!1;this.qa=this.experiments.jb("html5_disable_vp9_encrypted");this.j=new Map;a=g.Xa("cast.receiver.platform.getValue");this.G=!this.Z&&a&&a("max-video-resolution-vpx")||null};
COa=function(a,b,c){c=void 0===c?1:c;var d=b.itag;if("0"===d)return!0;var e=b.mimeType;if(b.Pe()&&QB()&&a.experiments.jb("html5_appletv_disable_vp9"))return"dwebm";if(EK(b)&&a.Y)return"dav1";if(b.video&&(b.video.isHdr()||"bt2020"===b.video.primaries)&&!(xP(a,yP.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||24<window.screen.pixelDepth&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if("338"===d&&!(g.tK?Mv(53):g.jR&&Mv(64)))return"dopus";
var f=c;f=void 0===f?1:f;c={};b.video&&(b.video.width&&(c[yP.WIDTH.name]=b.video.width),b.video.height&&(c[yP.HEIGHT.name]=b.video.height),b.video.fps&&(c[yP.FRAMERATE.name]=b.video.fps*f),b.video.B&&(c[yP.EOTF.name]=b.video.B),b.sb&&(c[yP.BITRATE.name]=8*b.sb*f),"("===b.qb&&(c[yP.CRYPTOBLOCKFORMAT.name]="subsample"),"EQUIRECTANGULAR"===b.video.projectionType||"EQUIRECTANGULAR_THREED_TOP_BOTTOM"===b.video.projectionType||"MESH"===b.video.projectionType)&&(c[yP.DECODETOTEXTURE.name]="true");b.audio&&
b.audio.numChannels&&(c[yP.CHANNELS.name]=b.audio.numChannels);a.D&&DK(b)&&(c[yP.EXPERIMENTAL.name]="allowed");f=g.u(Object.keys(yP));for(var h=f.next();!h.done;h=f.next())if(h=yP[h.value],c[h.name]&&!(h===yP.EOTF&&0<b.mimeType.indexOf("vp09.02")||a.experiments.jb("html5_ignore_h264_framerate_cap")&&h===yP.FRAMERATE&&dDa(b)))if(xP(a,h))if(a.G){if(a.G[h.name]<c[h.name])return h.name}else e=e+"; "+h.name+"="+c[h.name];else if(eDa(b)&&h===yP.EOTF)return"dvp92";a.Z&&b.video&&1080<b.video.j&&b.le&&(e+=
"; hdcp=2.2");return"227"===d?"hqcenc":"585"!==d&&"588"!==d&&"583"!==d&&"586"!==d&&"584"!==d&&"587"!==d&&"591"!==d&&"592"!==d||a.experiments.jb("html5_enable_new_hvc_enc")?a.isTypeSupported(e)?!0:"tpus":"newhvc"};
qR=function(){var a=OB()&&!Mv(29),b=g.NB("google tv")&&g.NB("chrome")&&!Mv(30);return a||b?!1:mDa()};
wRa=function(a,b,c){var d=480;b=g.u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=e.video.j;1080>=f&&f>d&&!0===COa(a,e,c)&&(d=f)}return d};
g.xRa=function(a,b){b=void 0===b?!1:b;return qR()&&a.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&a.canPlayType(rK(),"application/x-mpegURL")?!0:!1};
zRa=function(a){yRa(function(){for(var b=g.u(Object.keys(yP)),c=b.next();!c.done;c=b.next())xP(a,yP[c.value])})};
xP=function(a,b){b.name in a.N||(a.N[b.name]=ARa(a,b));return a.N[b.name]};
ARa=function(a,b){if(a.G)return!!a.G[b.name];if(b===yP.BITRATE&&a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!a.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===yP.AV1_CODECS)return a.isTypeSupported("video/mp4; codecs="+b.valid)&&!a.isTypeSupported("video/mp4; codecs="+b.Kn);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.Kn)};
BRa=function(a){a.D||(a.D=!0,a.B=!0)};
CRa=function(a,b){var c=0;a.C.has(b)&&(c=a.C.get(b).g7);a.C.set(b,{g7:c+1,R_:Math.pow(2,c+1)});a.B=!0};
uP=function(a){for(var b=[],c=g.u(a.j.keys()),d=c.next();!d.done;d=c.next()){d=d.value;var e=a.j.get(d);b.push(d+"_"+e.maxWidth+"_"+e.maxHeight)}return b.join(".")};
tOa=function(a,b){for(var c=new Map,d=g.u(a.j.keys()),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.split("_")[0];b.has(f)||c.set(e,a.j.get(e))}a.j=c};
vOa=function(a,b,c){var d,e=(null==(d=c.video)?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h={itag:c.itag,qb:b,yh:f};if(f)h.numChannels=c.audio.numChannels;else{var l=c.video;h.maxWidth=null==l?void 0:l.width;h.maxHeight=null==l?void 0:l.height;h.maxFramerate=e;xP(a,yP.BITRATE)&&(h.maxBitrateBps=8*c.sb);h.oE=null==l?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,qb:b,yh:f,maxWidth:Math.max(l.maxWidth||0,h.maxWidth||
0),maxHeight:Math.max(l.maxHeight||0,h.maxHeight||0),maxFramerate:e,oE:c.oE},xP(a,yP.BITRATE)&&(b.maxBitrateBps=c.maxBitrateBps),a.j.set(d,b)):a.j.set(d,h)};
wOa=function(a,b,c){var d,e=(null==(d=c.video)?void 0:d.fps)||0;d=b+"_"+e;var f=!!c.audio,h=a.j.get(d);a:{var l=a.j.get(d),m=!!c.audio;if(l){if(m){var n=!1;break a}var p;if(!m&&(null==(n=c.video)?0:n.height)&&l.maxHeight&&l.maxHeight>=(null==(p=c.video)?void 0:p.height)){n=!1;break a}}n=!0}n&&(n=c.itag,b=h?h:{itag:n,qb:b,yh:f},f?b.numChannels=c.audio.numChannels:(f=c.video,b.maxWidth=null==f?void 0:f.width,b.maxHeight=null==f?void 0:f.height,b.maxFramerate=e,xP(a,yP.BITRATE)&&(b.maxBitrateBps=8*c.sb),
b.oE=null==f?void 0:f.isHdr()),a.j.set(d,b))};
rR=function(){g.wF.call(this);this.items={}};
sR=function(){g.EN.apply(this,arguments)};
tR=function(){g.FN.apply(this,arguments)};
uR=function(a,b){var c=DRa(a,b);GN.call(this,a,c||b);this.Id=a;c&&this.Id.exports.free(c.byteOffset)};
ERa=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)};
FRa=function(a){a.B||(a.B=new sR(a.j));return a.B};
vR=function(a){try{return Ig(a)}catch(b){return null}};
GRa=function(a,b){if(!b&&a)try{b=JSON.parse(a)}catch(e){}if(b){a=b.clientKey?vR(b.clientKey):null;var c=b.encryptedClientKey?vR(b.encryptedClientKey):null,d=b.keyExpiresInSeconds?1E3*Number(b.keyExpiresInSeconds)+(0,g.$C)():null;a&&c&&d&&(this.j=new ERa(a,c,d));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=vR(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}};
wR=function(a){this.j=this.B=0;this.alpha=Math.exp(Math.log(.5)/a)};
xR=function(a,b,c,d){c=void 0===c?.5:c;d=void 0===d?0:d;this.resolution=b;this.B=0;this.C=!1;this.Zl=!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=HRa(this);this.D=c;this.K=d};
HRa=function(a){for(var b=Array(a.j),c=0;c<a.j;c++)b[c]=c;return b};
yR=function(a,b){if(!a.C&&0===a.B)return 0;a.Zl&&(g.Wb(a.G,function(c,d){return a.values[c]-a.values[d]}),a.Zl=!1);
return a.values[a.G[Math.round(b*((a.C?a.j:a.B)-1))]]||0};
IRa=function(a,b,c){g.I.call(this);this.policy=a;this.Na=b;this.Bd=c;this.Y=this.La=0;this.Z=-1;this.qa=this.C=0;this.Ga=!1;this.interruptions=[];this.j=[{stamp:0,net:0,max:0}];this.Ba=this.D=(0,g.$C)();this.N=new xR(4,1,.6,.4);this.G=new xR(20,1,.5,.4);this.B=a.D?new wR(a.j):new xR(a.j,20,.5,.4);this.ra=new xR(5,1,.25);this.K=new xR(30,1,.5);a=g.tC("yt-player-bandwidth")||{};b=this.policy.B;0<a.byterate&&(b=a.byterate,this.Ga=!0);this.B.Lj(this.policy.G,b);0<a.delay&&this.N.Lj(1,Math.min(a.delay,
2));0<a.stall&&this.G.Lj(1,a.stall);0<a.init&&(this.Ba=Math.min(a.init,this.Ba));a.interruptions&&(this.j=this.j.concat(a.interruptions),16<this.j.length&&this.j.pop());this.Z=(0,g.$C)();0<this.policy.K&&(this.Da=new g.lv(this.Ra,this.policy.K,this),g.O(this,this.Da),this.Da.start())};
zR=function(a,b,c,d){a.B.Lj(void 0===d?b:d,c/b);a.D=(0,g.$C)()};
JRa=function(a){a.C||(a.C=(0,g.$C)());a.policy.Z&&(a.D=(0,g.$C)())};
KRa=function(a,b){if(a.C){var c=b-a.C;if(1E3<c){var d=a.interruptions;d.push(Math.ceil(c));d.sort(function(e,f){return f-e});
16<d.length&&d.pop()}a.qa+=c}a.C=b};
AR=function(a,b,c,d,e,f){f=void 0===f?!1:f;a.ra.Lj(b,c/b);a.D=(0,g.$C)();e||a.K.Lj(1,b-d);f||(a.C=0);-1<a.Z&&3E4<(0,g.$C)()-a.Z&&LRa(a)};
BR=function(a,b,c){b=Math.max(b,2048);a.G.Lj(1,c/b)};
CR=function(a){a=a.N.Qi();a=isNaN(a)?.5:a;return a=Math.min(a,5)};
MRa=function(a,b,c){isNaN(c)||(a.Y+=c);isNaN(b)||(a.La+=b)};
NRa=function(a){a=a.B.Qi();return 0<a?a:1};
DR=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?1048576:c;var d=NRa(a);d=1/((a.G.Qi()||0)*a.policy.Y+1/d);var e=a.ra.Qi();d=Math.max(d,0<e?e:1);if(!b)return d;b=1E-9+CR(a);c=d*Math.min(1,c/(d*b));a.policy.C||(a=((yR(a.K,.98)||0)-1)/2,a=Math.max(0,Math.min(1,a)),c*=1-.5*a);return c};
ORa=function(a){var b={delay:CR(a),stall:a.G.Qi()||0,byterate:NRa(a),init:a.Ba},c=a.j[0];c.stamp=36E5*Math.round(a.D/36E5);c.net=Math.ceil(a.qa);c.max=a.interruptions[0]||0;b.interruptions=a.j;return b};
LRa=function(a){g.sC("yt-player-bandwidth",ORa(a),2592E3);a.Z=(0,g.$C)();a.Ga=!0};
ER=function(a){return 4E3<=(0,g.$C)()-a.D};
PRa=function(a,b){b.Qr=a.Y;b.Au=a.La;b.bandwidthEstimate=DR(a);b.j={d:CR(a).toFixed(2),st:(1E9*(a.G.Qi()||0)).toFixed(2),bw:a.B.Qi().toFixed(0),abw:a.ra.Qi().toFixed(0),v50:yR(a.K,.5).toFixed(2),v92:yR(a.K,.92).toFixed(2),v96:yR(a.K,.96).toFixed(2),v98:yR(a.K,.98).toFixed(2)};b.j["int"]=a.interruptions.join(".");b.j.intDur=Math.ceil(a.qa);b.j.intHist=a.j.map(function(c){return c.stamp+"_"+c.net+"_"+c.max}).join(".")};
QRa=function(a){this.experiments=a;this.j=17;this.Y=g.YI(this.experiments,"html5_stall_factor")||1;this.B=13E4;this.G=.5;this.C=this.D=!1;this.K=g.YI(this.experiments,"html5_check_for_idle_network_interval_ms");this.N=this.experiments.jb("html5_trigger_loader_when_idle_network");this.Z=this.experiments.jb("html5_sabr_fetch_on_idle_network_preloaded_players")};
SRa=function(a,b){a=void 0===a?{}:a;b=void 0===b?{}:b;g.I.call(this);var c=this;this.values=a;this.Rq=b;this.B={};this.C=this.j=0;this.D=new g.lv(function(){RRa(c)},1E4);
g.O(this,this.D)};
URa=function(a,b){TRa(a,b);return a.values[b]&&a.Rq[b]?a.values[b]/Math.pow(2,a.j/a.Rq[b]):0};
TRa=function(a,b){a.values[b]||(b=SNa(),a.values=b.values||{},a.Rq=b.halfLives||{},a.B=b.values?Object.assign({},b.values):{})};
RRa=function(a){var b=SNa();if(b.values){b=b.values;for(var c={},d=g.u(Object.keys(a.values)),e=d.next();!e.done;e=d.next())e=e.value,b[e]&&a.B[e]&&(a.values[e]+=b[e]-a.B[e]),c[e]=URa(a,e);a.B=c}b=a.Rq;c={};c.values=a.B;c.halfLives=b;g.sC("yt-player-memory",c,2592E3)};
gSa=function(a,b,c,d,e){g.I.call(this);this.webPlayerContextConfig=b;this.Kl=d;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.qj=this.Ie=this.fb=this.mj=this.userDisplayName=this.userDisplayImage=this.Li="";this.j={};this.Pb={};this.controlsType="0";this.Jd=NaN;this.rb=!1;this.Sf=(0,g.$C)();this.Jb=0;this.Ml=this.Lo=!1;this.Tm=!0;this.preferGapless=this.Hl=this.Rf=this.C=this.Jl=this.Qf=!1;this.oh=[];this.Pm=!0;this.Tf=!1;a=a?g.md(a):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);
b&&b.csiServiceName&&(this.csiServiceName=b.csiServiceName);b&&b.preferGapless&&(this.preferGapless=b.preferGapless);this.experiments=new qRa(b?b.serializedExperimentIds:a.fexp,b?b.serializedExperimentFlags:a.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:ZB("",a.forced_experiments)||void 0;this.cspNonce=(null==b?0:b.cspNonce)?b.cspNonce:ZB("",a.csp_nonce);mBa=this.L("web_player_deprecated_uvr_killswitch");try{var f=document.location.toString()}catch(R){f=""}this.Bf=f;this.ancestorOrigins=
(d=window.location.ancestorOrigins)?Array.from(d):[];this.D=WB(!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=pR(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),"all"===f||"once"===f)d.chipset&&(this.Pb.cchip=d.chipset),d.cobaltAppVersion&&(this.Pb.ccappver=d.cobaltAppVersion),d.firmwareVersion&&(this.Pb.cfrmver=d.firmwareVersion),d.deviceYear&&(this.Pb.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||VRa(this)&&b.loaderUrl?b.loaderUrl||"":this.Bf:this.D||VRa(this)&&a.loaderUrl?ZB("",a.loaderUrl):this.Bf;this.D&&g.Va("yt.embedded_player.embed_url",this.loaderUrl);this.N=yJ(this.loaderUrl,WRa,XRa);d=this.loaderUrl;var h=void 0===h?!1:h;this.ip=xJ(yJ(d,YRa,null),d,h,"Trusted Ad Domain URL");this.Dc=WB(!1,a.privembed);this.protocol=0===this.Bf.indexOf("http:")?"http":"https";this.Ga=oBa((b?b.customBaseYoutubeUrl:
a.BASE_YT_URL)||"")||oBa(this.Bf)||this.protocol+"://www.youtube.com/";h=b?b.eventLabel:a.el;d="detailpage";"adunit"===h?d=this.D?"embedded":"detailpage":"embedded"===h||this.N?d=XB(d,h,ZRa):h&&(d="embedded");this.La=d;Xta();h=null;d=b?b.playerStyle:a.ps;f=g.Fb($Ra,d);!d||f&&!this.N||(h=d);this.playerStyle=h;this.qa=(this.K=g.Fb($Ra,this.playerStyle))&&"play"!==this.playerStyle&&"jamboard"!==this.playerStyle;this.To=!this.qa;this.Ra=WB(!1,a.disableplaybackui);this.disablePaidContentOverlay=WB(!1,
null==b?void 0:b.disablePaidContentOverlay);this.disableSeek=WB(!1,null==b?void 0:b.disableSeek);this.enableSpeedOptions=(null==b?void 0:b.enableSpeedOptions)||(rK().defaultPlaybackRate?FR||g.UB||GR?g.jR&&Mv("20")||g.tK&&Mv("4")||g.HR&&Mv("11")||Vpa():!(g.HR&&!g.NB("chrome")||FR||g.NB("android")||g.NB("silk")):!1);this.Oo=WB(!1,a.enable_faster_speeds);this.B=WB("blazer"===this.playerStyle,a.is_html5_mobile_device||b&&b.isMobileDevice);this.Wa=Xpa()||VB();this.So=this.L("mweb_allow_background_playback")?
!1:this.B&&!this.K;this.Va=bDa();this.Jp=g.aSa;var l;this.Nl=!!(null==b?0:null==(l=b.embedsHostFlags)?0:l.optOutApiDeprecation);var m;this.Il=!!(null==b?0:null==(m=b.embedsHostFlags)?0:m.allowPfpImaIntegration);this.Qo=this.L("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var n;b?void 0!==b.hideInfo&&(n=!b.hideInfo):n=a.showinfo;this.Rm=g.IR(this)&&!this.Nl||WB(!JR(this)&&!KR(this)&&!this.K,n);this.Ol=b?!!b.mobileIphoneSupportsInlinePlayback:WB(!1,a.playsinline);l=this.B&&bSa&&
null!=LR&&0<LR&&2.3>=LR;m=b?b.useNativeControls:a.use_native_controls;this.Z=g.IR(this)&&this.B;n=this.B&&!this.Z;m=g.MR(this)||!l&&WB(n,m)?"3":"1";n=b?b.controlsType:a.controls;this.controlsType="0"!==n&&0!==n?m:"0";this.Fl=this.B;this.color=XB("red",b?b.progressBarColor:a.color,cSa);this.Fp="3"===this.controlsType;this.pc=!this.D;this.Sm=(m=!this.pc&&!KR(this)&&!this.qa&&!this.K&&!JR(this))&&!this.Fp&&"1"===this.controlsType;this.Ud=g.NR(this)&&m&&"0"===this.controlsType&&!this.Sm;this.Sr=this.Gp=
l;this.hd=("3"===this.controlsType||this.B||WB(!1,a.use_media_volume))&&!this.Z;this.Um=SB&&!g.Mc(601)?!1:!0;this.Ro=this.D||!1;this.Sc=KR(this)?"":(this.loaderUrl||a.post_message_origin||"").substring(0,128);this.widgetReferrer=ZB("",b?b.widgetReferrer:a.widget_referrer);var p;b?b.disableCastApi&&(p=!1):p=a.enablecastapi;p=!this.N||WB(!0,p);l=!0;b&&b.disableMdxCast&&(l=!1);this.tj=this.L("enable_cast_for_web_unplugged")&&g.OR(this)&&l||this.L("enable_cast_on_music_web")&&g.JG(this)&&l||p&&l&&"1"===
this.controlsType&&!this.B&&(KR(this)||g.NR(this)||g.PR(this));this.Cr=!!window.document.pictureInPictureEnabled||aDa();p=b?!!b.supportsAutoplayOverride:WB(!1,a.autoplayoverride);this.Mh=!(this.B&&!g.IR(this))&&!g.NB("nintendo wiiu")||p;p=b?!!b.enableMutedAutoplay:WB(!1,a.mutedautoplay);this.Mo=this.L("embeds_enable_muted_autoplay")&&g.IR(this);this.Ki=p&&!1;p=(KR(this)||JR(this))&&"blazer"===this.playerStyle;this.wk=b?!!b.disableFullscreen:!WB(!0,a.fs);l=g.aC(g.QR(this))&&g.IR(this);this.Gb=!this.wk&&
(p||g.eC())&&!l;this.Gl=this.L("uniplayer_block_pip")&&(OB()&&Mv(58)&&!VB()||pD);p=g.IR(this)&&!this.Nl;var q;b?void 0!==b.disableRelatedVideos&&(q=!b.disableRelatedVideos):q=a.rel;this.wd=p||WB(!this.K,q);this.Qm=WB(!1,b?b.enableContentOwnerRelatedVideos:a.co_rel);this.Y=VB()&&0<LR&&4.4>=LR?"_top":"_blank";this.Qg=g.PR(this);this.El=WB("blazer"===this.playerStyle,b?b.enableCsiLogging:a.enablecsi);switch(this.playerStyle){case "blogger":q="bl";break;case "gmail":q="gm";break;case "gac":q="ga";break;
case "books":q="gb";break;case "docs":case "flix":q="gd";break;case "duo":q="gu";break;case "google-live":q="gl";break;case "google-one":q="go";break;case "play":q="gp";break;case "chat":q="hc";break;case "hangouts-meet":q="hm";break;case "photos-edu":case "picasaweb":q="pw";break;default:q="yt"}this.ra=q;this.Ba=ZB("",b?b.authorizedUserIndex:a.authuser);this.Xb=g.IR(this)&&(this.Dc||!Lpa()||this.Wa);var r;b?void 0!==b.disableWatchLater&&(r=!b.disableWatchLater):r=a.showwatchlater;this.ke=((q=!this.Xb)||
!!this.Ba&&q)&&WB(!this.qa,this.N?r:void 0);this.Re=b?b.isMobileDevice||!!b.disableKeyboardControls:WB(!1,a.disablekb);this.loop=WB(!1,a.loop);this.pageId=ZB("",b?b.initialDelegatedSessionId:a.pageid);this.Qp=WB(!0,a.canplaylive);this.zb=WB(!1,a.livemonitor);this.disableSharing=WB(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"),2!==q.length?r=null:(r=Number(q[0]),q=Number(q[1]),r=isNaN(r)||
isNaN(q)||0>=r*q?null:new g.Ie(r,q))):r=null;this.Vm=r;this.mute=b?!!b.startMuted:WB(!1,a.mute);this.storeUserVolume=!this.mute&&WB("0"!==this.controlsType,b?b.storeUserVolume:a.store_user_volume);r=b?b.annotationsLoadPolicy:a.iv_load_policy;this.annotationsLoadPolicy="3"===this.controlsType?3:XB(void 0,r,RR);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":ZB("",a.cc_lang_pref);r=XB(2,b?b.captionsLanguageLoadPolicy:a.cc_load_policy,RR);"3"===this.controlsType&&2===r&&(r=3);this.Hb=
r;this.jj=b?b.hl||"en_US":ZB("en_US",a.hl);this.region=b?b.contentRegion||"US":ZB("US",a.cr);this.hostLanguage=b?b.hostLanguage||"en":ZB("en",a.host_language);this.No=!this.Dc&&Math.random()<g.YI(this.experiments,"web_player_api_logging_fraction");this.bb=!this.Dc;this.enabledEngageTypes=new Set;this.deviceIsAudioOnly=!(null==b||!b.deviceIsAudioOnly);this.Jd=YB(this.Jd,a.ismb);this.To?(r=a.vss_host||"s.youtube.com","s.youtube.com"===r&&(r=SR(this.Ga)||"www.youtube.com")):r="video.google.com";this.Wm=
r;dSa(this,a,!0);this.Na=new rR;g.O(this,this.Na);q=b?b.innertubeApiKey:ZB("",a.innertube_api_key);p=b?b.innertubeApiVersion:ZB("",a.innertube_api_version);r=b?b.innertubeContextClientVersion:ZB("",a.innertube_context_client_version);q=g.cB("INNERTUBE_API_KEY")||q;p=g.cB("INNERTUBE_API_VERSION")||p;l=g.cB("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO");m=g.nR(this);n="number"===typeof this.j.c?Number(this.j.c):Object.keys(KKa).indexOf(this.j.c);this.vl={innertubeApiKey:q,innertubeApiVersion:p,eJ:l,mP:m,jY:n,
innertubeContextClientVersion:g.cB("INNERTUBE_CONTEXT_CLIENT_VERSION")||r,oP:this.hostLanguage,nP:this.region,kY:g.cB("INNERTUBE_HOST_OVERRIDE")||"",lY:!!g.cB("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),pP:!!g.cB("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1)};this.Om=null!=window.WebKitPlaybackTargetAvailabilityEvent;this.G=new vRa(this.experiments,this.L("html5_force_hfr_support")?!0:hJ(this)||Spa()||Tpa()||eSa(this),g.tK&&g.Mc(56)||g.jR&&g.Mc(54)||this.L("html5_force_vp9_subsample_encryption_support")||
eSa(this));r=this.Jd;q=new QRa(this.experiments);g.iJ(this)&&(q.D=!0,q.G=.1);r&&(q.B=r/8);q.C=480<=fP();this.schedule=new IRa(q,new pRa(this.experiments),e);g.O(this,this.schedule);var t;this.enableSafetyMode=null!=(t=null==b?void 0:b.initialEnableSafetyMode)?t:WB(!1,a.enable_safety_mode);e=this.Ra?!1:KR(this)&&"blazer"!==this.playerStyle;var v;b?null!=b.disableAutonav&&(v=!b.disableAutonav):v=a.allow_autonav;this.Ae=WB(e,!this.qa&&v);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:WB(!1,a.send_visitor_id_header);
var w;"docs"===this.playerStyle&&(b?w=b.disableNativeContextMenu:w=a.disable_native_context_menu);this.disableNativeContextMenu=WB(!1,w);this.Po=hJ(this)&&this.L("enable_skip_intro_button");this.embedConfig=ZB("",b?b.serializedEmbedConfig:a.embed_config);this.Da=dqa(a,g.IR(this));this.C="EMBEDDED_PLAYER_MODE_PFL"===this.Da;this.embedsErrorLinks=!(null==b||!b.embedsErrorLinks);this.fl=WB(!1,a.full_window);var A;this.Za=!(null==(A=this.webPlayerContextConfig)?0:A.chromeless);var C;this.livingRoomAppMode=
XB("LIVING_ROOM_APP_MODE_UNSPECIFIED",a.living_room_app_mode||(null==b?void 0:null==(C=b.device)?void 0:C.livingRoomAppMode),fSa);var F;v=YB(NaN,null==b?void 0:null==(F=b.device)?void 0:F.deviceYear);isNaN(v)||(this.deviceYear=v);this.transparentBackground=b?!!b.transparentBackground:WB(!1,a.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:WB(!1,a.show_miniplayer_button);var G;g.IR(this)&&!(null==b?0:null==(G=b.embedsHostFlags)?0:G.allowSetFauxFullscreen)?this.externalFullscreen=
!1:this.externalFullscreen=b?!!b.externalFullscreen:WB(!1,a.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:WB(!1,a.use_miniplayer_ui);this.showInlinePreviewUi=b?!!b.showInlinePreviewUi:!1;var L;this.Tm=null!=(L=a.show_loop_video_toggle)?L:!0;this.yp=1E-4>Math.random();this.yl=a.onesie_hot_config||(null==b?0:b.onesieHotConfig)?new GRa(a.onesie_hot_config,null==b?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!a.isTectonic;this.playerCanaryState=
c;this.playerCanaryStage=null==b?void 0:b.canaryStage;this.Pf=new SRa;g.O(this,this.Pf);this.Jl=WB(!1,a.force_gvi);this.datasyncId=(null==b?void 0:b.datasyncId)||g.cB("DATASYNC_ID");this.Ll=g.cB("LOGGED_IN",!1);this.pj=(null==b?void 0:b.allowWoffleManagement)||!1;this.Dl=this.Cl=Infinity;this.livingRoomPoTokenId=null==b?void 0:b.livingRoomPoTokenId;this.L("html5_high_res_logging_always")?this.Rf=!0:this.Rf=100*Math.random()<g.YI(this.experiments,"html5_high_res_logging_percent");var M;this.Hl=!!(null==
b?0:null==(M=b.embedsHostFlags)?0:M.allowRcat);this.zj=!g.OR(this)&&!TR(this)};
g.QR=function(a){var b,c;if(!(null==(b=a.webPlayerContextConfig)?0:null==(c=b.embedsHostFlags)?0:c.enableLiteUx)||a.Dc||a.K||a.C||"EMBEDDED_PLAYER_MODE_PFP"===a.Da)return"EMBEDDED_PLAYER_LITE_MODE_NONE";a=g.YI(a.experiments,"embeds_web_lite_mode");return void 0===a?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":0<=a&&a<hSa.length?hSa[a]:"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN"};
dSa=function(a,b,c){c=void 0===c?!1:c;a.Ie=ZB(a.Ie,b.video_id);a.fb=ZB(a.fb,b.eventid);a.fb&&(oE=a.fb);for(var d=[],e=g.u(Object.keys(iSa)),f=e.next();!f.done;f=e.next()){f=iSa[f.value];var h=b[f];null!=h&&(h!==a.j[f]&&d.push(f),a.j[f]=h)}!c&&0<d.length&&a.yp&&(d.sort(),g.eF(new g.AC("Player client parameters changed after startup",d)));a.userAge=YB(a.userAge,b.user_age);a.Li=ZB(a.Li,b.user_display_email);a.userDisplayImage=ZB(a.userDisplayImage,b.user_display_image);g.AJ(a.userDisplayImage)||(a.userDisplayImage=
"");a.userDisplayName=ZB(a.userDisplayName,b.user_display_name);a.mj=ZB(a.mj,b.user_gender);a.csiPageType=ZB(a.csiPageType,b.csi_page_type);a.csiServiceName=ZB(a.csiServiceName,b.csi_service_name);a.El=WB(a.El,b.enablecsi);a.pageId=ZB(a.pageId,b.pageid);if(c=b.enabled_engage_types)a.enabledEngageTypes=new Set(c.split(","));b.living_room_session_po_token&&(a.eg=b.living_room_session_po_token.toString())};
jSa=function(a,b){return!a.K&&OB()&&Mv(55)&&"3"===a.controlsType&&!b};
g.UR=function(a){a=SR(a.Ga);return"www.youtube-nocookie.com"===a?"www.youtube.com":a};
VR=function(a,b,c){return a.protocol+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
WR=function(a){return KR(a)&&!g.OR(a)};
g.MR=function(a){return a.L("html5_local_playsinline")?SB&&!g.Mc(602)&&!("playsInline"in rK()):SB&&!a.Ol||g.NB("nintendo wiiu")?!0:!1};
g.nR=function(a){return a.j.c};
g.iJ=function(a){return/^TVHTML5/.test(g.nR(a))};
VRa=function(a){return"TVHTML5_SIMPLY_EMBEDDED_PLAYER"===g.nR(a)};
eSa=function(a){return"CHROMECAST ULTRA/STEAK"===a.j.cmodel||"CHROMECAST/STEAK"===a.j.cmodel};
g.YR=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
hJ=function(a){return/web/i.test(g.nR(a))};
g.ZR=function(a){return"WEB"===g.nR(a).toUpperCase()};
TR=function(a){return"WEB_KIDS"===g.nR(a)};
g.OR=function(a){return"WEB_UNPLUGGED"===g.nR(a)};
$R=function(a){return"TVHTML5_UNPLUGGED"===g.nR(a)};
g.gJ=function(a){return g.OR(a)||"TV_UNPLUGGED_CAST"===g.nR(a)||$R(a)};
g.JG=function(a){return"WEB_REMIX"===g.nR(a)};
g.aS=function(a){return"WEB_EMBEDDED_PLAYER"===g.nR(a)};
g.cS=function(a){return(a.deviceIsAudioOnly||!g.tK||pD||"3"===a.controlsType?!1:g.UB?a.D&&g.Mc(51):!0)||(a.deviceIsAudioOnly||!g.jR||pD||"3"===a.controlsType?!1:g.UB?a.D&&g.Mc(48):g.Mc(38))||(a.deviceIsAudioOnly||!g.HR||pD||"3"===a.controlsType?!1:g.UB?a.D&&g.Mc(37):g.Mc(27))||!a.deviceIsAudioOnly&&g.bS&&!Wpa()&&g.Mc(11)||!a.deviceIsAudioOnly&&g.VC&&g.Mc("604.4")};
kSa=function(a){if(g.NR(a)&&bSa)return!1;if(g.jR){if(!g.Mc(47)||!g.Mc(52)&&g.Mc(51))return!1}else if(g.VC)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1};
dS=function(a){return!a.L("html5_disable_media_element_loop_on_tv")||!g.iJ(a)};
mSa=function(a,b){return a.enabledEngageTypes.has(b.toString())||lSa.includes(b)};
KR=function(a){return"detailpage"===a.La};
g.NR=function(a){return"embedded"===a.La};
eS=function(a){return"leanback"===a.La};
JR=function(a){return"adunit"===a.La||"gvn"===a.playerStyle};
g.PR=function(a){return"profilepage"===a.La};
g.IR=function(a){return a.D&&g.NR(a)&&!JR(a)&&!a.K};
nSa=function(a){if(!a.userDisplayImage)return"";var b=a.userDisplayImage.split("/");if(5===b.length)return a=b[b.length-1].split("="),a[1]="s20-c",b[b.length-1]=a.join("="),b.join("/");if(8===b.length)return b.splice(7,0,"s20-c"),b.join("/");if(9===b.length)return b[7]+="-s20-c",b.join("/");g.eF(new g.AC("Profile image not a FIFE URL.",a.userDisplayImage));return a.userDisplayImage};
g.fS=function(a){var b=g.UR(a);oSa.includes(b)&&(b="www.youtube.com");return a.protocol+"://"+b};
g.gS=function(a,b){b=void 0===b?"":b;if(a.L("enable_tectonic_player_oauth_callback")&&a.Kl){var c=new fL,d,e=a.Kl();e.signedOut?d="":e.token?d=e.token:e.pendingResult.then(function(f){e.signedOut?c.resolve(""):c.resolve(f.token)},function(f){g.eF(new g.AC("b189348328_oauth_callback_failed",{error:f}));
c.resolve(b)});
return void 0!==d?IB(d):new GB(c)}return IB(b)};
SR=function(a){var b=g.hn(a);return(a=Number(g.gn(4,a))||null)?b+":"+a:b};
hS=function(a){this.j=a};
iS=function(a,b,c,d){if(c)return HB();c={};var e=rK();b=g.u(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().Pe())c[h]=f}a=[];c.auto&&a.push(c.auto);d=g.u(zK);for(e=d.next();!e.done;e=d.next())(e=c[e.value])&&a.push(e);return a.length?IB(a):HB()};
pSa=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=""};
qSa=function(a,b){a.C.some(function(c){var d;return(null==(d=c.kc)?void 0:d.getId())===b});
a.j=b};
rSa=function(a,b,c){a.cpn&&(b=g.Mn(b,{cpn:a.cpn}));c&&(b=g.Mn(b,{paired:c}));return b};
sSa=function(a,b){a=a.itag.toString();null!==b&&(a+=b.itag.toString());return a};
tSa=function(a){for(var b=[],c=[],d=g.u(a.B),e=d.next();!e.done;e=d.next())e=e.value,e.bitrate<=a.D?b.push(e):c.push(e);b.sort(function(f,h){return h.bitrate-f.bitrate});
c.sort(function(f,h){return f.bitrate-h.bitrate});
a.B=b.concat(c)};
uSa=function(a){this.itag=a.itag;this.url=a.url;this.codecs=a.codecs;this.width=a.width;this.height=a.height;this.fps=a.fps;this.bitrate=a.bitrate;var b;this.B=(null==(b=a.audioItag)?void 0:b.split(","))||[];this.QB=a.QB;this.le=a.le||"";this.kc=a.kc;this.audioChannels=a.audioChannels;this.j=""};
vSa=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?!0:c;d=void 0===d?{}:d;var e={};a=g.u(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var h=f.type;f.audio_channels&&(h=h+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(h)){d[f.itag]="tpus";continue}}if(c||!f.drm_families||"smpte2084"!==f.eotf&&"arib-std-b67"!==f.eotf){h=void 0;var l={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},m=f.type.match(/codecs="([^"]*)"/);
m=m?m[1]:"";f.audio_track_id&&(h=new g.OQ(f.name,f.audio_track_id,!!f.is_default));var n=f.eotf;f=new uSa({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,QB:n?l[n]:void 0,le:f.drm_families,kc:h,audioChannels:Number(f.audio_channels)});e[f.itag]=e[f.itag]||[];e[f.itag].push(f)}else d[f.itag]="enchdr"}return e};
jS=function(a,b,c){this.j=a;this.B=b;this.expiration=c;this.resource=null};
wSa=function(a,b){if(!(pD||RB()||QB()))return null;a=vSa(b,a.L("html5_filter_fmp4_in_hls"));if(!a)return null;b=[];for(var c={},d=g.u(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.u(a[e.value]);for(var f=e.next();!f.done;f=e.next()){var h=f.value;h.kc&&(f=h.kc.getId(),c[f]||(h=new g.hP(f,h.kc),c[f]=h,b.push(h)))}}return 0<b.length?b:null};
BSa=function(a,b,c,d,e,f,h){if(!(pD||RB()||QB()))return HB();var l={},m=xSa(c),n=vSa(c,a.L("html5_filter_fmp4_in_hls"),a.G.K,l);if(!n)return h({noplst:1}),HB();ySa(n);c={};var p=(c.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",c),q;c=[];var r=[],t=[],v=null,w="";d=d&&d.match(/hls_timedtext_playlist/)?new uSa({itag:"0",url:d,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,kc:new g.OQ("English","en",!1)}):null;for(var A=g.u(Object.keys(n)),C=A.next();!C.done;C=A.next())if(C=C.value,!a.L("html5_disable_drm_hfr_1080")||
"383"!==C&&"373"!==C){C=g.u(n[C]);for(var F=C.next();!F.done;F=C.next())if(F=F.value,F.width){for(var G=g.u(F.B),L=G.next();!L.done;L=G.next())if(L=L.value,n[L]){F.j=L;break}F.j||(F.j=zSa(n,F));if(G=n[F.j])if(c.push(F),"fairplay"===F.le&&(q=p),L="","PQ"===F.QB?L="smpte2084":"HLG"===F.QB&&(L="arib-std-b67"),L&&(w=L),t.push(ASa(G,[F],d,f,F.itag,F.width,F.height,F.fps,m,void 0,void 0,q,L)),!v||F.width*F.height*F.fps>v.width*v.height*v.fps)v=F}else r.push(F)}else l[C]="disdrmhfr";t.reduce(function(M,
R){return R.getInfo().isEncrypted()&&M},!0)&&(q=p);
e=Math.max(e,0);p=v||{};n=void 0===p.fps?0:p.fps;v=void 0===p.width?0:p.width;p=void 0===p.height?0:p.height;A=a.L("html5_native_audio_track_switching");t.push(ASa(r,c,d,f,"93",v,p,n,m,"auto",e,q,w,A));Object.entries(l).length&&h(l);return iS(a.G,t,jSa(a,b),!1)};
ASa=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){for(var v=0,w="",A=g.u(a),C=A.next();!C.done;C=A.next())C=C.value,w||(w=C.itag),C.audioChannels&&C.audioChannels>v&&(v=C.audioChannels,w=C.itag);e=new CK(e,"application/x-mpegURL",{audio:new wK(0,v),video:new yK(f,h,l,null,void 0,n,void 0,r),le:q,mZ:w});a=new pSa(a,b,c?[c]:[],d,!!t);a.D=p?p:1369843;return new jS(e,a,m)};
xSa=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(1>=b.length)))return+b[1].split("/")[0];return NaN};
zSa=function(a,b){for(var c=g.u(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;var e=a[d][0];if(!e.width&&e.le===b.le&&!e.audioChannels)return d}return""};
ySa=function(a){for(var b=new Set,c=g.u(Object.values(a)),d=c.next();!d.done;d=c.next())d=d.value,d.length&&(d=d[0],d.height&&d.codecs.startsWith("vp09")&&b.add(d.height));c=[];if(b.size){d=g.u(Object.keys(a));for(var e=d.next();!e.done;e=d.next())if(e=e.value,a[e].length){var f=a[e][0];f.height&&b.has(f.height)&&!f.codecs.startsWith("vp09")&&c.push(e)}}b=g.u(c);for(c=b.next();!c.done;c=b.next())delete a[c.value]};
kS=function(a,b){this.j=a;this.B=b};
CSa=function(a,b,c,d){var e=[];c=g.u(c);for(var f=c.next();!f.done;f=c.next()){var h=f.value;if(h.url){f=new g.zP(h.url,!0);if(h.s){var l=f,m=h.sp,n=KNa(decodeURIComponent(h.s));l.set(m,encodeURIComponent(n))}l=g.u(Object.keys(d));for(m=l.next();!m.done;m=l.next())m=m.value,f.set(m,d[m]);h=LK(h.type,h.quality,h.itag,h.width,h.height);e.push(new kS(h,f))}}return iS(a.G,e,jSa(a,b),!1)};
lS=function(a,b){this.j=a;this.B=b};
DSa=function(a,b,c){var d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.url){var f=LK(e.type,"medium","0");d.push(new lS(f,e.url))}return iS(a.G,d,jSa(a,b),!1)};
ESa=function(a,b){var c=[],d=LK(b.type,"auto",b.itag);c.push(new lS(d,b.url));return iS(a.G,c,!1,!0)};
GSa=function(a){return a&&FSa[a]?FSa[a]:null};
HSa=function(a){if(a=a.commonConfig)this.url=a.url,this.urlQueryOverride=a.urlQueryOverride,a.ustreamerConfig&&(this.Go=vR(a.ustreamerConfig)||void 0)};
ISa=function(a,b){var c;if(b=null==b?void 0:null==(c=b.watchEndpointSupportedOnesieConfig)?void 0:c.html5PlaybackOnesieConfig)a.d_=new HSa(b)};
g.mS=function(a){a=void 0===a?{}:a;this.languageCode=a.languageCode||"";this.languageName=a.languageName||null;this.kind=a.kind||"";this.name=void 0===a.name?null:a.name;this.displayName=a.displayName||null;this.id=a.id||null;this.j=a.is_servable||!1;this.isTranslateable=a.is_translateable||!1;this.url=a.url||null;this.vssId=a.vss_id||"";this.isDefault=a.is_default||!1;this.translationLanguage=a.translationLanguage||null;this.xtags=a.xtags||"";this.captionId=a.captionId||""};
g.oS=function(a){var b={languageCode:a.languageCode,languageName:a.languageName,displayName:g.nS(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.pS=function(a){return a.translationLanguage?a.translationLanguage.languageCode:a.languageCode};
g.JSa=function(a){var b=a.vssId;a.translationLanguage&&b&&(b="t"+b+"."+g.pS(a));return b};
g.nS=function(a){var b=[];if(a.displayName)b.push(a.displayName);else{var c=a.languageName||"";b.push(c);"asr"===a.kind&&-1===c.indexOf("(")&&b.push(" (Otomatik Altyaz\u0131lar)");a.name&&b.push(" - "+a.name)}a.translationLanguage&&b.push(" >> "+a.translationLanguage.languageName);return b.join("")};
NSa=function(a,b,c,d){a||(a=b&&KSa.hasOwnProperty(b)&&LSa.hasOwnProperty(b)?LSa[b]+"_"+KSa[b]:void 0);b=a;if(!b)return null;a=b.match(MSa);if(!a||5!==a.length)return null;if(a=b.match(MSa)){var e=Number(a[3]),f=[7,8,10,5,6];a=!(1===Number(a[1])&&8===e)&&0<=f.indexOf(e)}else a=!1;return c||d||a?b:null};
qS=function(a,b){for(var c={},d=g.u(Object.keys(OSa)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b?b+e:e;f=a[f+"_webp"]||a[f];g.AJ(f)&&(c[OSa[e]]=f)}return c};
rS=function(a){var b={};if(!a||!a.thumbnails)return b;a=a.thumbnails.filter(function(l){return!!l.url});
a.sort(function(l,m){return l.width-m.width||l.height-m.height});
for(var c=g.u(Object.keys(PSa)),d=c.next();!d.done;d=c.next()){var e=Number(d.value);d=PSa[e];for(var f=g.u(a),h=f.next();!h.done;h=f.next())if(h=h.value,h.width>=e){e=QSa(h.url);g.AJ(e)&&(b[d]=e);break}}(a=a.pop())&&1280<=a.width&&(a=QSa(a.url),g.AJ(a)&&(b["maxresdefault.jpg"]=a));return b};
QSa=function(a){return a.startsWith("//")?"https:"+a:a};
sS=function(a){return a&&a.baseUrl||""};
tS=function(a){a=g.lB(a);for(var b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=c.value;var d=a[c];a[c]=Array.isArray(d)?d[0]:d}return a};
RSa=function(a,b){a.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;null!=b&&(a.xq=b)};
USa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.interstitials.map(function(h){var l=g.V(h,SSa);if(l)return{is_yto_interstitial:!0,raw_player_response:l};if(h=g.V(h,TSa))return Object.assign({is_yto_interstitial:!0},kB(h))});
d=g.u(d);for(var e=d.next();!e.done;e=d.next())switch(e=e.value,c.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":a.interstitials=a.interstitials.concat({time:0,playerVars:e,Eo:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":a.interstitials=a.interstitials.concat({time:0x7ffffffffffff,playerVars:e,Eo: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,
Eo:0===f?5:7})}}};
VSa=function(a,b){if(b=b.find(function(c){return!(!c||!c.tooltipRenderer)}))a.tooltipRenderer=b.tooltipRenderer};
WSa=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)};
XSa=function(a,b){null!=b?(a.jp=b,a.Kf=!0):(a.jp="",a.Kf=!1)};
uS=function(a,b){this.type=a||"";this.id=b||""};
g.YSa=function(a){return new uS(a.substr(0,2),a.substr(2))};
g.vS=function(a,b){this.Ea=a;this.author="";this.pD=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=iB(a,"&");var c;this.j=(null==(c=b.thumbnail_ids)?void 0:c.split(",")[0])||null;this.Z=qS(b,"playlist_");this.videoId=b.video_id||void 0;if(c=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new uS("UU","PLAYER_"+c)).toString();break;default:if(a=
b.playlist_length)this.playlistLength=Number(a)||0;this.playlistId=g.YSa(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.wS=function(a,b){this.Ea=a;this.us=this.author="";this.pD=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Aw=this.lengthText="";this.sessionData=null;this.Z={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.us=b.us||"";if(a=b.endscreen_autoplay_session_data)this.pD=iB(a,"&");this.qD=b.qD;this.isLivePlayback="1"===b.live_playback;this.isUpcoming=!!b.isUpcoming;if(a=b.length_seconds)this.lengthSeconds="string"===typeof a?Number(a):a;this.lengthText=
b.lengthText||"";this.Aw=b.Aw||"";this.publishedTimeText=b.publishedTimeText||void 0;if(a=b.session_data)this.sessionData=iB(a,"&");this.shortViewCount=b.short_view_count_text||void 0;this.Z=qS(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}};
ZSa=function(a){var b,c,d=null==(b=a.getWatchNextResponse())?void 0:null==(c=b.contents)?void 0:c.twoColumnWatchNextResults,e,f,h,l,m;a=null==(e=a.getWatchNextResponse())?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:null==(l=h.endScreen)?void 0:null==(m=l.watchNextEndScreenRenderer)?void 0:m.results;if(!a){var n,p;a=null==d?void 0:null==(n=d.endScreen)?void 0:null==(p=n.endScreen)?void 0:p.results}return a};
g.bTa=function(a){var b,c,d;a=g.V(null==(b=a.getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,$Sa);return g.V(null==a?void 0:a.playerBar,aTa)};
cTa=function(a){this.j=a.playback_progress_0s_url;this.C=a.playback_progress_2s_url;this.B=a.playback_progress_10s_url};
dTa=function(){if(void 0===xS){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var a=!!self.localStorage}catch(b){a=!1}if(a&&(a=g.Xv(g.BC()+"::yt-player"))){xS=new LG(a);break a}xS=void 0}}return xS};
g.yS=function(){var a=dTa();if(!a)return{};try{var b=a.get("yt-player-lv");return JSON.parse(b||"{}")}catch(c){return{}}};
g.eTa=function(a){var b=dTa();b&&(a=JSON.stringify(a),b.set("yt-player-lv",a))};
g.zS=function(a){return g.yS()[a]||0};
g.AS=function(a,b){var c=g.yS();b!==c[a]&&(0!==b?c[a]=b:delete c[a],g.eTa(c))};
g.BS=function(a){return g.H(function(b){return b.return(g.nD(fTa(),a))})};
kTa=function(a,b,c,d,e,f,h,l){var m,n,p,q,r,t;return g.H(function(v){switch(v.j){case 1:return m=g.zS(a),4===m?v.return(4):g.z(v,g.sD(),2);case 2:n=v.B;if(!n)throw g.WC("wiac");if(!l||void 0===h){v.Ia(3);break}return g.z(v,gTa(l,h),4);case 4:h=v.B;case 3:return p=c.lastModified||"0",g.z(v,g.BS(n),5);case 5:return q=v.B,g.Ba(v,6),CS++,g.z(v,g.cD(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Nb:!0},function(w){if(void 0!==f&&void 0!==h){var A=""+a+"|"+b.id+"|"+p+"|"+String(f).padStart(10,
"0");A=g.dD(w.objectStore("media"),h,A)}else A=g.YC.resolve(void 0);var C=hTa(a,b.yg()),F=hTa(a,!b.yg()),G={fmts:iTa(d),format:c||{}};C=g.dD(w.objectStore("index"),G,C);var L=-1===d.downloadedEndTime;G=L?w.objectStore("index").get(F):g.YC.resolve(void 0);var M={fmts:"music",format:{}};w=L&&e&&!b.yg()?g.dD(w.objectStore("index"),M,F):g.YC.resolve(void 0);return g.YC.all([w,G,A,C]).then(function(R){R=g.u(R);R.next();R=R.next().value;CS--;var ea=g.zS(a);if(4!==ea&&L&&e||void 0!==R&&g.jTa(R.fmts))ea=
1,g.AS(a,ea);return ea})}),8);
case 8:return v.return(v.B);case 6:r=g.Da(v);CS--;t=g.zS(a);if(4===t)return v.return(t);g.AS(a,4);throw r;}})};
g.lTa=function(a){var b,c;return g.H(function(d){if(1==d.j)return g.z(d,g.sD(),2);if(3!=d.j){b=d.B;if(!b)throw g.WC("ri");return g.z(d,g.BS(b),3)}c=d.B;return d.return(g.cD(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:{}})})}))})};
nTa=function(a,b,c,d,e){var f,h,l;return g.H(function(m){if(1==m.j)return g.z(m,g.sD(),2);if(3!=m.j){f=m.B;if(!f)throw g.WC("rc");return g.z(m,g.BS(f),3)}h=m.B;l=g.cD(h,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(n){var p=""+a+"|"+b+"|"+c+"|"+String(d).padStart(10,"0");return n.objectStore("media").get(p)});
return e?m.return(l.then(function(n){if(void 0===n)throw Error("No data from indexDb");return mTa(e,n)}).catch(function(n){throw new g.AC("Error while reading chunk: "+n.name+", "+n.message);
})):m.return(l)})};
g.jTa=function(a){return a?"music"===a?!0:a.includes("dlt=-1")||!a.includes("dlt="):!1};
hTa=function(a,b){return""+a+"|"+(b?"v":"a")};
iTa=function(a){var b={};return jB((b.dlt=a.downloadedEndTime.toString(),b.mket=a.maxKnownEndTime.toString(),b.avbr=a.averageByteRate.toString(),b))};
pTa=function(a){var b={},c={};a=g.u(a);for(var d=a.next();!d.done;d=a.next()){var e=d.value,f=e.split("|");e.match(g.oTa)?(d=Number(f.pop()),isNaN(d)?c[e]="?":(f=f.join("|"),(e=b[f])?(f=e[e.length-1],d===f.end+1?f.end=d:e.push({start:d,end:d})):b[f]=[{start:d,end:d}])):c[e]="?"}a=g.u(Object.keys(b));for(d=a.next();!d.done;d=a.next())d=d.value,c[d]=b[d].map(function(h){return h.start+"-"+h.end}).join(",");
return c};
DS=function(a){g.wF.call(this);this.j=null;this.C=new $v;this.j=null;this.K=new Set;this.crossOrigin=a||""};
qTa=function(a,b,c){for(c=ES(a,c);0<=c;){var d=a.levels[c];if(d.isLoaded(FS(d,b))&&(d=g.GS(d,b)))return d;c--}return g.GS(a.levels[0],b)};
sTa=function(a,b,c){c=ES(a,c);for(var d,e;0<=c;c--)if(d=a.levels[c],e=FS(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,{JY:f,lZ:e}))}rTa(a)};
rTa=function(a){if(!a.j&&!a.C.isEmpty()){var b=a.C.remove();a.j=tTa(a,b)}};
tTa=function(a,b){var c=document.createElement("img");a.crossOrigin&&(c.crossOrigin=a.crossOrigin);c.src=a.levels[b.JY].Oe(b.lZ);c.onload=function(){var d=b.JY,e=b.lZ;null!==a.j&&(a.j.onload=null,a.j=null);d=a.levels[d];d.loaded.add(e);rTa(a);var f=d.columns*d.rows;e*=f;d=Math.min(e+f-1,d.tI()-1);e=[e,d];a.publish("l",e[0],e[1])};
return c};
g.HS=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};
FS=function(a,b){return Math.floor(b/(a.columns*a.rows))};
g.GS=function(a,b){b>=a.rM()&&a.ey();var c=FS(a,b),d=a.columns*a.rows,e=b%d;b=e%a.columns;e=Math.floor(e/a.columns);var f=a.ey()+1-d*c;if(f<a.columns){var h=f;d=1}else h=a.columns,d=f<d?Math.ceil(f/a.columns):a.rows;return{url:a.Oe(c),column:b,columns:h,row:e,rows:d,RE:a.width*h,Iw:a.height*d}};
IS=function(a,b,c,d,e){d=void 0===d?!1:d;e=void 0===e?!1:e;DS.call(this,c);this.isLive=d;this.N=!!e;this.levels=this.B(a,b);this.D=new Map;1<this.levels.length&&this.levels[0].isDefault()&&this.levels.splice(0,1)};
uTa=function(a,b,c){return(a=a.levels[b])?a.jH(c):-1};
ES=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};
vTa=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");g.HS.call(this,a,b,c,0);this.B=null;this.G=d?2:0};
JS=function(a,b,c,d){IS.call(this,a,0,void 0,b,!(void 0===d||!d));for(a=0;a<this.levels.length;a++)this.levels[a].zU(c)};
wTa=function(a,b,c){b={cpn:b};-1===a.indexOf("/ibw/")&&(b.ibw=c?String(c):"1369843");return{url:g.Mn(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};
g.LS=function(a,b){g.wF.call(this);this.Ea=a;this.adModule=!1;this.adaptiveFormats="";this.jV=this.Ju=this.adQueryId=this.Iu=null;this.WB={start:NaN,end:NaN};this.ariaLabel="";this.cueRanges=this.le=null;this.QL=new Map;this.compositeLiveStatusToken=this.compositeLiveIngestionOffsetToken=this.Cr=void 0;this.Cl=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Va="";this.ZB=this.Ku=!1;this.gT=null;this.eg=this.zj=this.Fp=this.DE=
!1;this.D=null;this.LV=this.vl=!1;this.Pf=NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec=Infinity;this.jZ=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.Hl=!1;this.CM=this.cycToken=null;this.author="";this.PG=0;this.Qm=!1;this.OG=null;this.IM=[];this.Xo=this.xC=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.Dc=this.Ud="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=
this.endSeconds=this.Gb=0;this.Ml=this.Wa=this.B=null;this.EC="";this.loading=!1;this.Jd=this.Om=0;this.lV=this.pipable=this.Yp=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.isLiveHeadPlayable=this.isLivePlayback=this.zb=this.isPrivate=this.isListed=this.KC=this.Tf=this.mutedAutoplay=this.Xk=!1;this.WE="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.MC=this.Za=this.Zd=!1;this.latencyClass="UNKNOWN";this.sZ=this.S1=this.JC=this.nV=this.zC=this.enablePreroll=
this.enableServerStitchedDai=this.Jf=this.isMdxPlayback=this.isUpcoming=this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Xb=0;this.reloadReason="";this.wE=this.fT=this.Qg=!1;this.keywords={};this.Hb="";this.Wm=0;this.qz=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.Fl=null;this.Jx=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.G_=this.paygated=!1;this.zm=[];this.Pm=!1;this.Da=[];this.gi=null;this.kV=this.racyCheckOk=
!1;this.rT={};this.isProximaLatencyEligible=!1;this.YF=0;this.C=null;this.autonavState=1;this.GV=null;this.shortDescription="";this.Ga=this.oV=!1;this.rj=this.Jb=this.startSeconds=0;this.Iz=this.xX=this.fA=KS;this.Lu=this.suggestions=null;this.Lx=this.Mx=void 0;this.isExternallyHostedPodcast=!1;this.Ll=null;this.BM=!1;this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.Px=void 0;this.Ae=[];this.wk=[];this.hlsFormats=this.Rf="";this.vy=this.Ey=this.fl=this.hd=this.fb=this.Po=
this.uy=null;this.Nm="vvt";this.Mh=!1;this.KM=null;this.NW="";this.Jp=NaN;this.Qp=this.fB=this.yp=this.TA=this.FA=this.Nl=this.ip=this.KB=this.Gp=this.hB="";this.Ol=null;this.iV=!1;this.N={};this.clipStart=0;this.clipEnd=Infinity;this.U_=!1;this.heartbeatToken="";this.L0=this.q0=NaN;this.jj=this.Vm=this.Ki=this.R1=this.f1=!1;this.Il=!0;this.Z={};this.captionTracks=[];this.cC=[];this.YX=0;this.dC=[];this.Nu=[];this.Mu=!1;this.vC={};this.yl=new g.hP("und",new g.OQ("Default","und",!0));this.PE=0;this.K=
null;this.Mo=[];this.DC=!1;this.gA=this.wd="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.Ra=this.LS=this.FC=this.playerResponse=this.yY=this.zy=this.Sm=this.ri=this.CC=this.XB=this.VB=null;this.iy=!1;this.qa=null;this.isInlinePlaybackNoAd=this.Dl=this.yC=this.useCobaltWidevine=this.mV=this.aA=!1;this.BC=!0;this.Bf=this.Li=NaN;this.defraggedFromSubfragments=this.fE=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.sabrContextUpdates=new Map;this.Dy="";this.KY=
!1;this.gatewayExperimentGroup="";this.QG=this.JM=this.tj=!1;this.interstitials=[];this.Kf=this.LC=!1;this.jp="";this.allowPfpUnbranded=this.allowImaMonetization=!1;this.iT="";this.RL=!1;this.oh="";this.cT=[];this.bd="";this.HM=this.Y=this.O1=!1;this.Sf=0;this.To="";this.JL=this.dT=this.IC=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.Ro=!1;this.Kl=this.ke=!0;this.errorDetail=this.userGenderAge="";this.DM=this.FM=this.getSharePanelCommand=
this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.vn=this.errorReason=this.errorCode=null;this.Pu=this.Ou="";this.Rm=!1;this.Sr=[];this.pc=this.bb=this.Pb=this.Ci=this.jf=0;this.fetchType=null;this.JU=!0;this.transitionEndpointAtEndOfStream=void 0;this.bC=this.XV=-1;this.Jl=this.Qf=!1;this.Ie=null;this.Na="";this.Tm=!1;this.watchUrl=null;this.wy=[];this.visibleOnLoadKeys=[];this.hV=[];this.inlineMetricEnabled=this.Gl=
!1;this.embedsRctn=this.embedsRct="";this.GC=NaN;this.qT=(0,g.$C)();this.vA=this.So=0;this.Go=null;this.qj=0;this.fV=this.uW=this.zD=!1;this.zV=0;this.Lo={};this.Qf=this.L("web_new_autonav_countdown");this.Jl=this.L("web_new_big_thumbnail_endscreen");xTa(this,b);this.gy=new jOa;g.O(this,this.gy)};
g.OS=function(a,b,c){b&&b.cpn&&g.eF(new g.AC("CPN provided in VideoData update",{cpb:b.cpn,Vg:a.clientPlaybackNonce,z8:c}));c?($B(b),xTa(a,b),MS(a)&&NS(a)):(b=b||{},yTa(a,b),zTa(a,b),ATa(a,b),a.publish("dataupdated"))};
ATa=function(a,b){a.fflags=ZB(a.fflags,b.fflags);var c=b.iv_invideo_url;c&&(a.Va=BJ(c));a.Ku=WB(a.Ku,b.iv_ads_only);a.ZB=WB(a.ZB,b.iv_allow_in_place_switch);if(c=b.cta_conversion_urls)a.W8=c;a.isPharma=WB(a.isPharma,b.is_pharma);a.author=ZB(a.author,b.author);a.Ud=BTa(b.ttsurl)||a.Ud;a.Qm=WB(a.Qm,b.cc_asr);a.Dc=ZB(a.Dc,b.channel_path);if(c=b.profile_picture)a.profilePicture=ZB(a.profilePicture,c);a.videoCountText=ZB(a.videoCountText,b.video_count_text);a.autonavState=XB(a.autonavState,b.autonav_state,
CTa);if(a.L("html5_enable_ssap_entity_id")){var d;c=!!b.cotn||!(null==(d=a.playerResponse)||!d.cotn);d=g.YI(a.Ea.experiments,"html5_entity_id_simplified_preferred_record_size");a.playerResponse&&!c&&(a.clientPlaybackNonce=DTa(a,a.playerResponse,d)||a.clientPlaybackNonce);a.clientPlaybackNonce||(b.cpn&&a.iB("ssei","uhdc"),a.clientPlaybackNonce=ZB(a.clientPlaybackNonce,b.cpn))}else a.clientPlaybackNonce=ZB(a.clientPlaybackNonce,b.cpn);a.subscribed=WB(a.subscribed,b.subscribed);a.rawViewCount=YB(a.rawViewCount,
b.view_count);a.shortViewCount=ZB(a.shortViewCount,b.short_view_count_text);a.publishedTimeText=ZB(a.publishedTimeText||"",b.publishedTimeText);a.lengthText=ZB(a.lengthText||"",b.lengthText);a.Aw=ZB(a.Aw||"",b.Aw);a.us=ZB(a.us||"",b.us);a.title=ZB(a.title,b.title);a.subtitle=ZB(a.subtitle,b.subtitle);a.expandedTitle=ZB(a.expandedTitle,b.expanded_title);a.expandedSubtitle=ZB(a.expandedSubtitle,b.expanded_subtitle);a.ariaLabel=ZB(a.ariaLabel,b.aria_label);a.ypcPreview=ZB(a.ypcPreview,b.ypc_preview);
a.LM=ZB(a.LM,b.ypc_origin);a.Mh=WB(a.Mh,b.ypc_is_premiere_trailer);a.To=ZB(a.To,b.ypc_clickwrap_message);a.paygated=WB(a.paygated,b.paygated);a.iV=WB(a.iV,b.requires_purchase);a.showShareButton=!WB(!a.showShareButton,b.ss);a.ke=WB(a.ke,b.showwatchlater);a.Kl=WB(a.Kl,b.shownotifybutton);a.Ro=WB(a.Ro,b.copy_share);if(d=b.el)a.eventLabel=d;if(d=b.keywords)a.keywords=ETa(d.split(","));if(d=b.rvs)a.suggestions=ipa(d).map(function(e){return e.playlist||e.list||e.api?new g.vS(a.Ea,e):new g.wS(a.Ea,e)});
a.contentCheckOk=WB(a.contentCheckOk,b.cco);a.racyCheckOk=WB(a.racyCheckOk,b.rco);a.isLivingRoomDeeplink=WB(a.isLivingRoomDeeplink,b.is_living_room_deeplink);a.oauthToken=ZB(a.oauthToken,b.oauth_token);a.Hb=ZB(a.Hb,b.kpt);a.visitorData=ZB(a.visitorData,b.visitor_data);if(d=b.session_data)a.sessionData=iB(d,"&");a.ly=ZB(a.ly,b.endscreen_ad_tracking_data);a.BW=WB(a.BW,b.wait_for_vast_info_cards_xml);a.zM=WB(a.zM,b.suppress_creator_endscreen);a.U1=WB(a.U1,b.is_trueview_action);a.YV=ZB(a.YV,b.tracking_list);
a.Ou=ZB(a.Ou,b.clip);a.Pu=ZB(a.Pu,b.clipt);FTa(a,b)};
xTa=function(a,b){b=b||{};var c=b.errordetail;null!=c&&(a.errorDetail=c);var d=b.errorcode;null!=d?a.errorCode=d:"fail"==b.status&&(a.errorCode="auth");var e=b.reason;null!=e&&(a.errorReason=e);var f=b.subreason;null!=f&&(a.vn=f);a.L("html5_enable_ssap_entity_id")||a.clientPlaybackNonce||(a.clientPlaybackNonce=b.cpn||g.qE(16));a.zb=WB(a.Ea.zb,b.livemonitor);yTa(a,b);var h=b.raw_player_response;if(h)a.LS=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.Xo=WB(a.Xo,m));if(!a.clientPlaybackNonce){var n=b.cpn;n?(a.iB("ssei","shdc"),a.clientPlaybackNonce=n):a.clientPlaybackNonce=g.qE(16)}}h&&(a.playerResponse=h);if(a.playerResponse){var p=a.playerResponse.annotations;if(p)for(var q=g.u(p),r=q.next();!r.done;r=q.next()){var t=r.value.playerAnnotationsUrlsRenderer;if(t){t.adsOnly&&(a.Ku=!0);t.allowInPlaceSwitch&&(a.ZB=!0);var v=t.loadPolicy;v&&(a.annotationsLoadPolicy=GTa[v]);var w=t.invideoUrl;w&&(a.Va=BJ(w));a.DE=!0;break}}var A=
a.playerResponse.attestation;A&&RSa(a,A);var C=a.playerResponse.cotn;C&&(a.cotn=C);var F=a.playerResponse.heartbeatParams;if(F){HTa(a)&&(a.U_=!0);var G=F.heartbeatToken;G&&(a.drmSessionId=F.drmSessionId||"",a.heartbeatToken=G,a.q0=Number(F.intervalMilliseconds),a.L0=Number(F.maxRetries),a.f1=!!F.softFailOnError,a.R1=!!F.useInnertubeHeartbeatsForDrm,a.Fp=!0);a.heartbeatServerData=F.heartbeatServerData;var L;a.Hl=!(null==(L=F.heartbeatAttestationConfig)||!L.requiresAttestation)}var M=a.playerResponse.messages;
M&&VSa(a,M);var R=a.playerResponse.overlay;if(R){var ea=R.playerControlsOverlayRenderer;if(ea)if(XSa(a,ea.controlBgHtml),ea.mutedAutoplay){var ma=g.V(ea.mutedAutoplay,ITa);if(ma&&ma.endScreen){var oa=g.V(ma.endScreen,JTa);oa&&oa.text&&(a.iT=g.HF(oa.text))}}else a.mutedAutoplay=!1}var ia=a.playerResponse.playabilityStatus;if(ia){var va=ia.backgroundability;va&&va.backgroundabilityRenderer.backgroundable&&(a.backgroundable=!0);var aa,U;if(null==(aa=ia.offlineability)?0:null==(U=aa.offlineabilityRenderer)?
0:U.offlineable)a.offlineable=!0;var La=ia.contextParams;La&&(a.contextParams=La);var x=ia.pictureInPicture;x&&x.pictureInPictureRenderer.playableInPip&&(a.pipable=!0);ia.playableInEmbed&&(a.allowEmbed=!0);var ba=ia.ypcClickwrap;if(ba){var Ja=ba.playerLegacyDesktopYpcClickwrapRenderer,cb=ba.ypcRentalActivationRenderer;if(Ja)a.To=Ja.durationMessage||"",a.eg=!0;else if(cb){var ob=cb.durationMessage;a.To=ob?g.HF(ob):"";a.eg=!0}}var Qa=ia.errorScreen;if(Qa){if(Qa.playerLegacyDesktopYpcTrailerRenderer){var Ua=
Qa.playerLegacyDesktopYpcTrailerRenderer;a.Qp=Ua.trailerVideoId||"";var ib=Qa.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var qb=ib&&ib.ypcTrailerRenderer}else if(Qa.playerLegacyDesktopYpcOfferRenderer)Ua=Qa.playerLegacyDesktopYpcOfferRenderer;else if(Qa.ypcTrailerRenderer){qb=Qa.ypcTrailerRenderer;var rb=qb.fullVideoMessage;a.ip=rb?g.HF(rb):"";var B,D;a.Qp=(null==(B=g.V(qb,KTa))?void 0:null==(D=B.videoDetails)?void 0:D.videoId)||""}Ua&&(a.yp=Ua.itemTitle||"",Ua.itemUrl&&(a.fB=Ua.itemUrl),Ua.itemBuyUrl&&
(a.FA=Ua.itemBuyUrl),a.TA=Ua.itemThumbnail||"",a.KB=Ua.offerHeadline||"",a.Gp=Ua.offerDescription||"",a.Nl=Ua.offerId||"",a.hB=Ua.offerButtonText||"",a.KM=Ua.offerButtonFormattedText||null,a.Jp=Ua.overlayDurationMsec||NaN,a.ip=Ua.fullVideoMessage||"",a.zj=!0);if(qb){var E=g.V(qb,KTa);if(E)a.Ol={raw_player_response:E};else{var J=g.V(qb,LTa);a.Ol=J?kB(J):null}a.zj=!0}}}var K=a.playerResponse.playbackTracking;if(K){var ca=b,sa=sS(K.googleRemarketingUrl);sa&&(a.googleRemarketingUrl=sa);var ka=sS(K.youtubeRemarketingUrl);
ka&&(a.youtubeRemarketingUrl=ka);var N=sS(K.ptrackingUrl);if(N){var Z=tS(N),ya=Z.oid;ya&&(a.oT=ya);var xa=Z.pltype;xa&&(a.pT=xa);var Za=Z.ptchn;Za&&(a.jT=Za);var Wa=Z.ptk;Wa&&(a.yy=encodeURIComponent(Wa));var Bb=Z.m;Bb&&(a.jy=Bb)}if(!a.L("html5_remarketing_urls_cleanup")){var Qb=sS(K.ppvRemarketingUrl);Qb&&(a.ppvRemarketingUrl=Qb)}var eb=sS(K.qoeUrl);if(eb){for(var Rb=g.lB(eb),hc=g.u(Object.keys(Rb)),Bc=hc.next();!Bc.done;Bc=hc.next()){var ac=Bc.value,uc=Rb[ac];Rb[ac]=Array.isArray(uc)?uc.join(","):
uc}a.tW=Rb;var Wc=Rb.cat;Wc&&(a.oh=Wc);var Nc=Rb.live;Nc&&(a.WE=Nc);var Oc=Rb.drm_product;Oc&&(a.Cl=Oc)}if(!a.L("html5_remarketing_urls_cleanup")){var Pc=sS(K.remarketingUrl);if(Pc){a.remarketingUrl=Pc;var Vb=tS(Pc);Vb.foc_id&&(a.N.focEnabled=!0);var ud=Vb.data;ud&&(a.N.rmktEnabled=!0,ud.engaged&&(a.N.engaged="1"));a.N.baseUrl=Hfa(Pc)+en(g.gn(5,Pc))}}var kd=sS(K.videostatsPlaybackUrl);if(kd){var fc=tS(kd);a.rb=fc;var Yb=fc.adformat;if(Yb){ca.adformat=Yb;var Qc=a.U(),Ib=NSa(Yb,a.gA,Qc.D,Qc.N);Ib&&
(a.adFormat=Ib)}var Zc=fc.aqi;Zc&&(ca.ad_query_id=Zc);var vd=fc.autoplay;vd&&(a.Xk="1"==vd,a.Yp="1"==vd);var Ob=fc.autonav;Ob&&(a.isAutonav="1"==Ob);var oe=fc.delay;oe&&(a.Gb=$e(oe));var Md=fc.ei;Md&&(a.eventId=Md);"adunit"===fc.el&&(a.Xk=!0);var Nd=fc.feature;Nd&&(a.No=Nd);var Oe=fc.list;Oe&&(a.playlistId=Oe);var xe=fc.of;xe&&(a.eT=xe);var Hd=fc.osid;Hd&&(a.osid=Hd);var Cf=fc.referrer;Cf&&(a.referrer=Cf);var Ve=fc.sdetail;Ve&&(a.Cy=Ve);var $d=fc.sourceid;$d&&(a.kva=$d);var Df=fc.ssrt;Df&&(a.Qo="1"==
Df);var ae=fc.subscribed;ae&&(a.subscribed="1"==ae,a.N.subscribed=ae);var pe=fc.uga;pe&&(a.userGenderAge=pe);var Id=fc.upt;Id&&(a.My=Id);var wd=fc.vm;wd&&(a.videoMetadata=wd)}var $c=sS(K.videostatsWatchtimeUrl);if($c){var Od=tS($c).ald;Od&&(a.Nx=Od)}if(a.L("html5_add_per_destination_base_query_for_video_stats_urls")){var We={};if(kd){var Uf=tS(kd);We.playback=Uf}if($c){var lg=tS($c);We.watchtime=lg}var qe=sS(K.atrUrl);if(qe){var qc=tS(qe);We.atr=qc}var Xe=sS(K.engageUrl);if(Xe){var Vh=tS(Xe);We.engage=
Vh}a.Lo=We}if(K.promotedPlaybackTracking){var fe=K.promotedPlaybackTracking;fe.startUrls&&(a.Ay=fe.startUrls);fe.firstQuartileUrls&&(a.ML=fe.firstQuartileUrls);fe.secondQuartileUrls&&(a.NL=fe.secondQuartileUrls);fe.thirdQuartileUrls&&(a.OL=fe.thirdQuartileUrls);fe.completeUrls&&(a.LL=fe.completeUrls);fe.engagedViewUrls&&(1<fe.engagedViewUrls.length&&g.eF(new g.AC("There are more than one engaged_view_urls.")),a.mj=fe.engagedViewUrls[0])}}var ai=a.playerResponse.playerCueRanges;ai&&0<ai.length&&(a.cueRanges=
ai);var Ei=a.playerResponse.playerCueRangeSet;Ei&&g.MTa(a,Ei);a:{var Hf=a.playerResponse.adPlacements;if(Hf)for(var cf=g.u(Hf),ze=cf.next();!ze.done;ze=cf.next()){var bi=void 0,sc=void 0,vc=null==(bi=ze.value.adPlacementRenderer)?void 0:null==(sc=bi.renderer)?void 0:sc.videoAdTrackingRenderer;if(vc){var Hc=vc;break a}}Hc=null}var oj=Hc;K&&K.promotedPlaybackTracking&&oj&&g.eF(new g.AC("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));oj&&(a.G_=!0);var If=a.playerResponse.playerAds;
if(If)for(var Qg=b,pg=g.u(If),Fi=pg.next();!Fi.done;Fi=pg.next()){var pj=Fi.value;if(pj){var Gi=pj.playerLegacyDesktopWatchAdsRenderer;if(Gi){var of=Gi.playerAdParams;if(of){"1"==of.autoplay&&(a.Xk=!0,a.Yp=!0);a.Ju=of.encodedAdSafetyReason||null;void 0!==of.showContentThumbnail&&(a.Il=!!of.showContentThumbnail);Qg.enabled_engage_types=of.enabledEngageTypes;break}}}}var fd=a.playerResponse.playerConfig;if(fd){var Jf=fd.manifestlessWindowedLiveConfig;if(Jf){var Hi=Number(Jf.minDvrSequence),df=Number(Jf.maxDvrSequence),
qg=Number(Jf.minDvrMediaTimeMs),Yf=Number(Jf.maxDvrMediaTimeMs),Ii=Number(Jf.startWalltimeMs);Hi&&(a.jf=Hi);qg&&(a.bb=qg/1E3);df&&(a.Ci=df);Yf&&(a.Pb=Yf/1E3);Ii&&(a.pc=Ii/1E3);(Hi||qg)&&(df||Yf)&&(a.Za=!0,a.isLivePlayback=!0,a.allowLiveDvr=!0,a.Zd=!1)}var Zf=fd.daiConfig;if(Zf){if(Zf.enableDai){a.Jf=!0;var rg=Zf.enableServerStitchedDai;rg&&(a.enableServerStitchedDai=rg);var rh=Zf.enablePreroll;rh&&(a.enablePreroll=rh)}var sh;if("DAI_TYPE_SS_DISABLED"===Zf.daiType||(null==(sh=Zf.debugInfo)?0:sh.isDisabledUnpluggedChannel))a.JC=
!0}var sg=fd.audioConfig;if(sg){var Ae=sg.loudnessDb;null!=Ae&&(a.Pf=Ae);var ef=sg.trackAbsoluteLoudnessLkfs;null!=ef&&(a.jZ=ef);var ge=sg.loudnessTargetLkfs;null!=ge&&(a.loudnessTargetLkfs=ge);sg.audioMuted&&(a.vl=!0);sg.muteOnStart&&(a.LV=!0);var th=sg.loudnessNormalizationConfig;if(th){th.applyStatefulNormalization&&(a.applyStatefulNormalization=!0);th.preserveStatefulLoudnessTarget&&(a.preserveStatefulLoudnessTarget=!0);var ff=th.minimumLoudnessTargetLkfs;null!=ff&&(a.minimumLoudnessTargetLkfs=
ff);var pf=th.maxStatefulTimeThresholdSec;null!=pf&&(a.maxStatefulTimeThresholdSec=pf)}}var Kf=fd.playbackEndConfig;if(Kf){var tg=Kf.endSeconds,Rg=Kf.limitedPlaybackDurationInSeconds;a.mutedAutoplay&&(tg&&(a.endSeconds=tg),Rg&&(a.limitedPlaybackDurationInSeconds=Rg))}var se=fd.fairPlayConfig;if(se){var ug=se.certificate;ug&&(a.Wa=vR(ug));var Lf=Number(se.keyRotationPeriodMs);0<Lf&&(a.qy=Lf);var Ji=Number(se.keyPrefetchMarginMs);0<Ji&&(a.oy=Ji)}var uh=fd.playbackStartConfig;if(uh){a.JL=Number(uh.startSeconds);
var Vl=uh.liveUtcStartSeconds,Wl=!!a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds;Vl&&!Wl&&(a.liveUtcStartSeconds=Number(Vl));var Sk=uh.startPosition;if(Sk){var Xl=Sk.utcTimeMillis;Xl&&!Wl&&(a.liveUtcStartSeconds=.001*Number(Xl));var Wj=Sk.streamTimeMillis;Wj&&(a.rj=.001*Number(Wj))}a.progressBarStartPosition=uh.progressBarStartPosition;a.progressBarEndPosition=uh.progressBarEndPosition}else{var gf=fd.skippableSegmentsConfig;if(gf){var Be=gf.introSkipDurationMs;Be&&(a.IC=Number(Be)/1E3);var Td=gf.outroSkipDurationMs;
Td&&(a.dT=Number(Td)/1E3)}}var Sg=fd.skippableIntroConfig;if(Sg){var Ki=Number(Sg.startMs),Yl=Number(Sg.endMs);isNaN(Ki)||isNaN(Yl)||(a.Li=Ki,a.Bf=Yl)}var Tk=fd.streamSelectionConfig;Tk&&(a.Jd=Number(Tk.maxBitrate));var Xj=fd.vrConfig;Xj&&(a.aA="1"==Xj.partialSpherical);var vh=fd.webDrmConfig;if(vh){vh.skipWidevine&&(a.mV=!0);var Tg=vh.widevineServiceCert;Tg&&(a.Ml=vR(Tg));vh.useCobaltWidevine&&(a.useCobaltWidevine=!0);vh.startWithNoQualityConstraint&&(a.Dl=!0)}var qf=fd.mediaCommonConfig;if(qf){var ci=
qf.dynamicReadaheadConfig;if(ci){a.maxReadAheadMediaTimeMs=ci.maxReadAheadMediaTimeMs||NaN;a.minReadAheadMediaTimeMs=ci.minReadAheadMediaTimeMs||NaN;a.readAheadGrowthRateMs=ci.readAheadGrowthRateMs||NaN;var Uk,Zl=null==qf?void 0:null==(Uk=qf.mediaUstreamerRequestConfig)?void 0:Uk.videoPlaybackUstreamerConfig;Zl&&(a.gi=vR(Zl));var di=null==qf?void 0:qf.sabrContextUpdates;if(di&&0<di.length)for(var Li=g.u(di),ei=Li.next();!ei.done;ei=Li.next()){var vg=ei.value;if(vg.type&&vg.value){var fi={type:vg.type,
scope:vg.scope,value:vR(vg.value)||void 0,sendByDefault:vg.sendByDefault};a.sabrContextUpdates.set(vg.type,fi)}}}var Mi=qf.serverPlaybackStartConfig;Mi&&(a.serverPlaybackStartConfig=Mi);qf.useServerDrivenAbr&&(a.uW=!0);var Yj=qf.requestPipeliningConfig;Yj&&(a.requestPipeliningConfig=Yj)}var $l=fd.inlinePlaybackConfig;$l&&(a.BC=!!$l.showAudioControls);var Zj=fd.embeddedPlayerConfig;if(Zj){a.embeddedPlayerConfig=Zj;var Vk=Zj.embeddedPlayerMode;if(Vk){var am=a.U();am.Da=Vk;am.C="EMBEDDED_PLAYER_MODE_PFL"===
Vk}var rf=Zj.permissions;rf&&(a.allowImaMonetization=!!rf.allowImaMonetization)}var $f=fd.ssapConfig;$f&&(a.KY=$f.ssapPrerollEnabled||!1);var Mf=fd.webPlayerConfig;Mf&&(Mf.gatewayExperimentGroup&&(a.gatewayExperimentGroup=Mf.gatewayExperimentGroup),Mf.isProximaEligible&&(a.isProximaLatencyEligible=!0))}var ag=a.playerResponse.streamingData;if(ag){var bm=ag.adaptiveFormats;if(bm){var cm=ag.streamingUrlTemplate;if(a.L("enable_streaming_url_template")&&cm)for(var nc=g.u(bm),Lo=nc.next();!Lo.done;Lo=
nc.next()){var qj=Lo.value;!qj.url&&qj.distinctParams&&(qj.url=cm+"&"+qj.distinctParams)}}var Wk=ag.formats;if(Wk){for(var rj=[],Mo=g.u(Wk),sj=Mo.next();!sj.done;sj=Mo.next()){var Xk=sj.value;rj.push(Xk.itag+"/"+Xk.width+"x"+Xk.height)}a.EC=rj.join(",");rj=[];for(var dm=g.u(Wk),No=dm.next();!No.done;No=dm.next()){var em=No.value,Yk={itag:em.itag,type:em.mimeType,quality:em.quality},tq=em.url;tq&&(Yk.url=tq);var jn=EP(em),kn=jn.aD,Oo=jn.sG,Po=jn.s;jn.MX&&(Yk.url=kn,Yk.sp=Oo,Yk.s=Po);rj.push(g.Ln(Yk))}a.Rf=
rj.join(",")}var tj=ag.hlsFormats;if(tj){var gi=fd||null,Ug={};if(gi){var Zk=gi.audioPairingConfig;if(Zk&&Zk.pairs)for(var uq=g.u(Zk.pairs),Qo=uq.next();!Qo.done;Qo=uq.next()){var vq=Qo.value,Ro=vq.videoItag;Ug[Ro]||(Ug[Ro]=[]);Ug[Ro].push(vq.audioItag)}}for(var wq={},xq=g.u(tj),Vg=xq.next();!Vg.done;Vg=xq.next()){var Ni=Vg.value;wq[Ni.itag]=Ni.bitrate}for(var Oi=[],yq=g.u(tj),Wg=yq.next();!Wg.done;Wg=yq.next()){var Ud=Wg.value,Qe={itag:Ud.itag,type:Ud.mimeType,url:Ud.url,bitrate:Ud.bitrate,width:Ud.width,
height:Ud.height,fps:Ud.fps},ln=Ud.audioTrack;if(ln){var So=ln.displayName;So&&(Qe.name=So,Qe.audio_track_id=ln.id,ln.audioIsDefault&&(Qe.is_default="1"))}if(Ud.drmFamilies){for(var zq=[],mn=g.u(Ud.drmFamilies),nn=mn.next();!nn.done;nn=mn.next())zq.push(IQa[nn.value]);Qe.drm_families=zq.join(",")}var fm=Ug[Ud.itag];if(fm&&fm.length){Qe.audio_itag=fm.join(",");var Aq=wq[fm[0]];Aq&&(Qe.bitrate+=Aq)}var Pi=rQa(Ud);Pi&&(Qe.eotf=Pi);Ud.audioChannels&&(Qe.audio_channels=Ud.audioChannels);Oi.push(g.Ln(Qe))}a.hlsFormats=
Oi.join(",")}var uj=ag.licenseInfos;if(uj&&0<uj.length){for(var ak={},$k=g.u(uj),al=$k.next();!al.done;al=$k.next()){var gm=al.value,Bq=gm.drmFamily,Cq=gm.url;Bq&&Cq&&(ak[IQa[Bq]]=Cq)}a.le=ak}var To=ag.drmParams;To&&(a.drmParams=To);var on=ag.dashManifestUrl;on&&(a.Sc=g.Mn(on,{cpn:a.clientPlaybackNonce}));var Uo=ag.hlsManifestUrl;Uo&&(a.hlsvp=Uo);var Vo=ag.probeUrl;Vo&&(a.probeUrl=BJ(g.Mn(Vo,{cpn:a.clientPlaybackNonce})));var Xg=ag.serverAbrStreamingUrl;Xg&&(a.Oo=new g.zP(Xg,!0))}var hi=a.playerResponse.trackingParams;
hi&&(a.ra=hi);var oc=a.playerResponse.videoDetails;if(oc){var wh=b,Wo=oc.videoId;Wo&&(a.videoId=Wo,wh.video_id||(wh.video_id=Wo));var hm=oc.channelId;hm&&(a.N.uid=hm.substr(2));var im=oc.title;im&&(a.title=im,wh.title||(wh.title=im));var jm=oc.lengthSeconds;jm&&(a.lengthSeconds=Number(jm),wh.length_seconds||(wh.length_seconds=jm));var Xo=oc.keywords;Xo&&(a.keywords=ETa(Xo));var Yo=oc.channelId;Yo&&(a.Bl=Yo,wh.ucid||(wh.ucid=Yo));var Dq=oc.viewCount;Dq&&(a.rawViewCount=Number(Dq));var vj=oc.author;
vj&&(a.author=vj,wh.author||(wh.author=vj));var wj=oc.shortDescription;wj&&(a.shortDescription=wj);var bl=oc.isCrawlable;bl&&(a.isListed=bl);var km=oc.musicVideoType;km&&(a.musicVideoType=km);var pn=oc.isLive;null!=pn&&(a.isLivePlayback=pn);if(pn||oc.isUpcoming)a.isPremiere=!oc.isLiveContent;var Zo=oc.thumbnail;Zo&&(a.Z=rS(Zo));var bk=oc.isExternallyHostedPodcast;bk&&(a.isExternallyHostedPodcast=bk);var ck=oc.viewerLivestreamJoinPosition;if(null==ck?0:ck.utcTimeMillis)a.vA=$e(ck.utcTimeMillis);var cl=
fd||null,qn=b;oc.isLiveDefaultBroadcast&&(a.isLiveDefaultBroadcast=!0);oc.isUpcoming&&(a.isUpcoming=!0);if(oc.isPostLiveDvr){a.Zd=!0;var Eq=oc.latencyClass;a.L("html5_parse_post_live_latency_class")&&(Eq&&(a.latencyClass=NTa[Eq]||"UNKNOWN"),oc.isLowLatencyLiveStream&&(a.isLowLatencyLiveStream=!0))}else{var $o=!1;if(a.zb)a.allowLiveDvr=qR()?!0:TB&&5>PS?!1:!0,a.isLivePlayback=!0;else if(oc.isLive){qn.livestream="1";a.allowLiveDvr=oc.isLiveDvrEnabled?qR()?!0:TB&&5>PS?!1:!0:!1;a.La=27;oc.isLowLatencyLiveStream&&
(a.isLowLatencyLiveStream=!0);var dl=oc.latencyClass;dl&&(a.latencyClass=NTa[dl]||"UNKNOWN");var lm=oc.liveChunkReadahead;lm&&(a.liveChunkReadahead=lm);var Qi=cl&&cl.livePlayerConfig;if(Qi){Qi.hasSubfragmentedFmp4&&(a.hasSubfragmentedFmp4=!0);Qi.hasSubfragmentedWebm&&(a.fE=!0);Qi.defraggedFromSubfragments&&(a.defraggedFromSubfragments=!0);var Fq=Qi.liveExperimentalContentId;Fq&&(a.liveExperimentalContentId=Number(Fq));var Gq=Qi.isLiveHeadPlayable;a.L("html5_live_head_playable")&&null!=Gq&&(a.isLiveHeadPlayable=
Gq)}$o=!0}else oc.isUpcoming&&($o=!0);$o&&(a.isLivePlayback=!0,qn.adformat&&"8"!==qn.adformat.split("_")[1]||a.Da.push("heartbeat"),a.Fp=!0)}var Hq=oc.isPrivate;void 0!==Hq&&(a.isPrivate=WB(a.isPrivate,Hq))}if(ia){var rn=oc||null,sn=!1,dk=ia.errorScreen;sn=dk&&(dk.playerLegacyDesktopYpcOfferRenderer||dk.playerLegacyDesktopYpcTrailerRenderer||dk.ypcTrailerRenderer)?!0:rn&&rn.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(ia.status);if(!sn){a.errorCode=GSa(ia.errorCode)||"auth";
var el=dk&&dk.playerErrorMessageRenderer;if(el){a.playerErrorMessageRenderer=el;var tn=el.reason;tn&&(a.errorReason=g.HF(tn));var mm=el.subreason;mm&&(a.vn=g.HF(mm),a.sy=mm)}else a.errorReason=ia.reason||null;var ap=ia.status;if("LOGIN_REQUIRED"===ap)a.errorDetail="1";else if("CONTENT_CHECK_REQUIRED"===ap)a.errorDetail="2";else if("AGE_CHECK_REQUIRED"===ap){var Iq=ia.errorScreen,Jq=Iq&&Iq.playerKavRenderer;a.errorDetail=Jq&&Jq.kavUrl?"4":"3"}else a.errorDetail=ia.isBlockedInRestrictedMode?"5":"0"}}var nm=
a.playerResponse.interstitialPods;nm&&USa(a,nm);a.Va&&a.eventId&&(a.Va=nB(a.Va,{ei:a.eventId}));var om=a.playerResponse.captions;if(om&&om.playerCaptionsTracklistRenderer)a:{var wg=om.playerCaptionsTracklistRenderer;a.captionTracks=[];if(wg.captionTracks)for(var xh=g.u(wg.captionTracks),ii=xh.next();!ii.done;ii=xh.next()){var hf=ii.value,Kq=BTa(hf.baseUrl);if(!Kq)break a;var bp={is_translateable:!!hf.isTranslatable,languageCode:hf.languageCode,languageName:hf.name&&g.HF(hf.name),url:Kq,vss_id:hf.vssId,
kind:hf.kind};bp.name=hf.trackName;bp.displayName=hf.name&&g.HF(hf.name);a.captionTracks.push(new g.mS(bp))}a.cC=wg.audioTracks||[];a.YX=wg.defaultAudioTrackIndex||0;a.Nu=[];if(wg.translationLanguages)for(var cp=g.u(wg.translationLanguages),fl=cp.next();!fl.done;fl=cp.next()){var xg=fl.value,yg={};yg.languageCode=xg.languageCode;yg.languageName=g.HF(xg.languageName);if(xg.translationSourceTrackIndices){yg.translationSourceTrackIndices=[];for(var gl=g.u(xg.translationSourceTrackIndices),dp=gl.next();!dp.done;dp=
gl.next())yg.translationSourceTrackIndices.push(dp.value)}if(xg.excludeAudioTrackIndices){yg.excludeAudioTrackIndices=[];for(var ek=g.u(xg.excludeAudioTrackIndices),fk=ek.next();!fk.done;fk=ek.next())yg.excludeAudioTrackIndices.push(fk.value)}a.Nu.push(yg)}a.dC=[];if(wg.defaultTranslationSourceTrackIndices)for(var hl=g.u(wg.defaultTranslationSourceTrackIndices),pm=hl.next();!pm.done;pm=hl.next())a.dC.push(pm.value);a.Mu=!!wg.contribute&&!!wg.contribute.captionsMetadataRenderer}a.clipConfig=a.playerResponse.clipConfig;
a.clipConfig&&null!=a.clipConfig.startTimeMs&&(a.JL=.001*Number(a.clipConfig.startTimeMs));a.playerResponse&&a.playerResponse.playerConfig&&a.playerResponse.playerConfig.webPlayerConfig&&a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&WSa(a,a.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var ep;a.compositeLiveIngestionOffsetToken=null==(ep=a.playerResponse.playbackTracking)?void 0:ep.compositeLiveIngestionOffsetToken;var fp;a.compositeLiveStatusToken=
null==(fp=a.playerResponse.playbackTracking)?void 0:fp.compositeLiveStatusToken}zTa(a,b);b.queue_info&&(a.queueInfo=b.queue_info);var Lq=b.hlsdvr;null!=Lq&&(a.allowLiveDvr="1"==Lq?qR()?!0:TB&&5>PS?!1:!0:!1);a.adQueryId=b.ad_query_id||null;a.Ju||(a.Ju=b.encoded_ad_safety_reason||null);a.jV=b.agcid||null;a.VB=b.ad_id||null;a.XB=b.ad_sys||null;a.CC=b.encoded_ad_playback_context||null;a.vl=WB(a.vl,b.infringe||b.muted);a.M9=b.authkey;a.U7=b.authuser;a.mutedAutoplay=WB(a.mutedAutoplay,b&&b.playmuted);a.RL=
WB(a.RL,b&&b.mutedautoplay);var un=b.length_seconds;un&&(a.lengthSeconds="string"===typeof un?$e(un):un);if(a.isAd()||a.Pm||!g.aC(g.QR(a.Ea)))a.endSeconds=YB(a.endSeconds,a.dT||b.end||b.endSeconds);else{var vn=a.lengthSeconds;switch(g.QR(a.Ea)){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":30<vn?a.limitedPlaybackDurationInSeconds=30:30>vn&&10<vn&&(a.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":a.limitedPlaybackDurationInSeconds=.2*vn}}a.ra=
ZB(a.ra,b.itct);a.KC=WB(a.KC,b.noiba);a.MC=WB(a.MC,b.is_live_destination);a.isLivePlayback=WB(a.isLivePlayback,b.live_playback);a.enableServerStitchedDai=a.enableServerStitchedDai&&a.dc();b.isUpcoming&&(a.isUpcoming=WB(a.isUpcoming,b.isUpcoming));a.Zd=WB(a.Zd,b.post_live_playback);a.Za&&(a.Zd=!1);a.isMdxPlayback=WB(a.isMdxPlayback,b.mdx);var il=b.mdx_control_mode;il&&(a.mdxControlMode="number"===typeof il?il:$e(il));a.isInlinePlaybackNoAd=WB(a.isInlinePlaybackNoAd,b.is_inline_playback_no_ad);a.Xb=
YB(a.Xb,b.reload_count);a.reloadReason=ZB(a.reloadReason,b.reload_reason);a.Il=WB(a.Il,b.show_content_thumbnail);a.wE=WB(a.wE,b.utpsa);a.BM=WB(a.BM,b.third_party_remapped_ad);a.cycToken=b.cyc||null;a.CM=b.tkn||null;var gp=qS(b);0<Object.keys(gp).length&&(a.Z=gp);a.Ba=ZB(a.Ba,b.vvt);a.mdxEnvironment=ZB(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.Tda=b.osig;a.eventId||(a.eventId=b.eventid);a.osid||(a.osid=b.osid);a.playlistId=ZB(a.playlistId,b.list);b.index&&(a.playlistIndex=void 0===a.playlistIndex?YB(0,b.index):YB(a.playlistIndex,b.index));a.SU=b.pyv_view_beacon_url;a.VU=b.pyv_quartile25_beacon_url;a.WU=b.pyv_quartile50_beacon_url;a.bV=b.pyv_quartile75_beacon_url;a.UU=b.pyv_quartile100_beacon_url;if(!a.L("html5_remarketing_urls_cleanup")){var jl=b.remarketing_url;jl&&(a.remarketingUrl=jl);var wn=b.ppv_remarketing_url;wn&&(a.ppvRemarketingUrl=
wn)}var xn=b.session_data;!a.eV&&xn&&(a.eV=iB(xn,"&").feature);a.isFling=1==YB(a.isFling?1:0,b.is_fling);a.vnd=YB(a.vnd,b.vnd);a.forceAdsUrl=ZB(a.forceAdsUrl,b.force_ads_url);a.Wi=ZB(a.Wi,b.ctrl);a.Bj=ZB(a.Bj,b.ytr);a.zv=b.ytrcc;a.gV=b.ytrexp;a.PL=b.ytrext;a.wd=ZB(a.wd,b.adformat);a.gA=ZB(a.gA,b.attrib);a.slotPosition=YB(a.slotPosition,b.slot_pos);a.breakType=b.break_type;a.Qo=WB(a.Qo,b.ssrt);a.videoId=$B(b)||a.videoId;a.G=ZB(a.G,b.vss_credentials_token);a.Nm=ZB(a.Nm,b.vss_credentials_token_type);
a.tj=WB(a.tj,b.audio_only);a.JM=WB(a.JM,b.aac_high);a.QG=WB(a.QG,b.prefer_low_quality_audio);a.HM=WB(a.HM,b.uncap_inline_quality);a.oh=ZB(a.oh,b.qoe_cat);a.Rm=WB(a.Rm,b.download_media);var Mq=b.prefer_gapless;var at=null!=Mq?WB(a.Y,Mq):a.Y?a.Y:a.Ea.preferGapless&&a.Ea.supportsGaplessShorts();a.Y=at;gIa(a.playerResponse)&&(a.adModule=!0,a.Da.push("ad"));var qm=b.adaptive_fmts;qm&&(a.adaptiveFormats=qm,a.ma("adpfmts",{},!0));var hp=b.allow_embed;hp&&(a.allowEmbed="1"==hp);var ip=b.backgroundable;ip&&
(a.backgroundable="1"==ip);var Nq=b.autonav;Nq&&(a.isAutonav="1"==Nq);var jp=b.autoplay;jp&&(a.Yp="1"==jp,a.Xk="1"==jp);var rm=b.iv_load_policy;rm&&(a.annotationsLoadPolicy=XB(a.annotationsLoadPolicy,rm,RR));var sm=b.cc_lang_pref;sm&&(a.captionsLanguagePreference=ZB(sm,a.captionsLanguagePreference));var yn=b.cc_load_policy;yn&&(a.OG=XB(a.OG,yn,RR));var zn;a.deviceCaptionsOn=null!=(zn=b.device_captions_on)?zn:void 0;var kp;a.xY=null!=(kp=b.device_captions_lang_pref)?kp:"";var lp;a.IM=null!=(lp=b.viewer_selected_caption_langs)?
lp:[];if(!a.L("html5_enable_ssap_entity_id")){var Oq=b.cached_load;Oq&&(a.Xo=WB(a.Xo,Oq))}"0"==b.dash&&(a.xC=!0);var mp=b.dashmpd;mp&&(a.Sc=g.Mn(mp,{cpn:a.clientPlaybackNonce}));var Pq=b.delay;Pq&&(a.Gb=$e(Pq));var Qq=a.dT||b.end;void 0!=Qq&&(a.clipEnd=YB(a.clipEnd,Qq));var he=b.fmt_list;he&&(a.EC=he);b.heartbeat_preroll&&a.Da.push("heartbeat");a.Om=-Math.floor(10*Math.random());a.Jx=-Math.floor(40*Math.random());var Ce=b.is_listed;Ce&&(a.isListed=WB(a.isListed,Ce));var De=b.is_private;De&&(a.isPrivate=
WB(a.isPrivate,De));var An=b.is_dni;An&&(a.Kf=WB(a.Kf,An));var Bn=b.dni_color;Bn&&(a.jp=ZB(a.jp,Bn));var np=b.pipable;np&&(a.pipable=WB(a.pipable,np));a.lV=a.pipable&&a.Ea.Cr;a.oV=a.lV&&!a.Ea.showMiniplayerButton;var Rq=b.paid_content_overlay_duration_ms;Rq&&(a.paidContentOverlayDurationMs=$e(Rq));var Sq=b.paid_content_overlay_text;Sq&&(a.paidContentOverlayText=Sq);var Tq=b.url_encoded_fmt_stream_map;Tq&&(a.Rf=Tq);var op=b.hls_formats;op&&(a.hlsFormats=op);var Ri=b.hlsvp;Ri&&(a.hlsvp=Ri);var yh=b.live_start_walltime;
yh&&(a.EF="number"===typeof yh?yh:$e(yh));var ji=b.live_manifest_duration;ji&&(a.Fl="number"===typeof ji?ji:$e(ji));var Uq=b.player_params;Uq&&(a.playerParams=Uq);var Vq=b.partnerid;Vq&&(a.La=YB(a.La,Vq));var tm=b.probe_url;tm&&(a.probeUrl=BJ(g.Mn(tm,{cpn:a.clientPlaybackNonce})));var um=b.pyv_billable_url;um&&sBa(um)&&(a.mj=um);var vm=b.pyv_conv_url;vm&&sBa(vm)&&(a.TU=vm);FTa(a,b);0<a.startSeconds||(a.startSeconds=YB(a.startSeconds,a.JL||a.IC||b.start||b.startSeconds),a.Jb=a.startSeconds);if(!(a.liveUtcStartSeconds&&
0<a.liveUtcStartSeconds)){var pp=b.live_utc_start;if(null!=pp)a.liveUtcStartSeconds=Number(pp);else{var gk=a.startSeconds;gk&&isFinite(gk)&&1E9<gk&&(a.liveUtcStartSeconds=a.startSeconds)}}if(!(a.liveUtcStartSeconds&&0<a.liveUtcStartSeconds)){var wm=b.utc_start_millis;wm&&(a.liveUtcStartSeconds=.001*Number(wm))}var Si=b.stream_time_start_millis;Si&&(a.rj=.001*Number(Si));var Cn=a.IC||b.start;void 0==Cn||"1"==b.resume||a.isLivePlayback||(a.clipStart=YB(a.clipStart,Cn));var Dn=b.url_encoded_third_party_media;
Dn&&(a.Ll=ipa(Dn));var qp=b.ypc_offer_button_formatted_text;if(qp){var Wq=JSON.parse(qp);a.KM=null!=Wq?Wq:null;a.NW=qp}var hk=b.ypc_offer_button_text;hk&&(a.hB=hk);var kl=b.ypc_offer_description;kl&&(a.Gp=kl);var ik=b.ypc_offer_headline;ik&&(a.KB=ik);var Xq=b.ypc_full_video_message;Xq&&(a.ip=Xq);var En=b.ypc_offer_id;En&&(a.Nl=En);var rp=b.ypc_buy_url;rp&&(a.FA=rp);var sp=b.ypc_item_thumbnail;sp&&(a.TA=sp);var Yq=b.ypc_item_title;Yq&&(a.yp=Yq);var Zq=b.ypc_item_url;Zq&&(a.fB=Zq);var $q=b.ypc_vid;
$q&&(a.Qp=$q);b.ypc_overlay_timeout&&(a.Jp=Number(b.ypc_overlay_timeout));var ll=b.ypc_trailer_player_vars;ll&&(a.Ol=kB(ll));var ml=b.ypc_original_itct;ml&&(a.o2=ml);a.Bl=ZB(a.Bl,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=WB(a.N.focEnabled,b.focEnabled);a.N.rmktEnabled=WB(a.N.rmktEnabled,b.rmktEnabled);a.Ey=
b.storyboard_spec||null;a.vy=b.live_storyboard_spec||null;a.gT=b.iv_endscreen_url||null;a.DE=WB(a.DE,b.iv3_module);a.Fp=WB(a.Fp,b.ypc_license_checker_module);a.zj=WB(a.zj,b.ypc_module);a.eg=WB(a.eg,b.ypc_clickwrap_module);a.zj&&a.Da.push("ypc");a.eg&&a.Da.push("ypc_clickwrap");a.rT={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};ATa(a,b);var xm=b.cotn;xm&&(a.cotn=xm);if(OTa(a))QS(a)&&(a.isLivePlayback&&a.Sc&&(a.Ki=!0),a.Wa&&(a.Vm=!0));else if(PTa(a))a.Ki=!0;else{var ar,Yg,bg=(null==(ar=a.playerResponse)?void 0:null==(Yg=ar.streamingData)?void 0:Yg.adaptiveFormats)||[];if(0<bg.length)var cg=
QTa(a,bg);else{var br=a.adaptiveFormats;if(br&&!QS(a)){RS(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(bRa=!0);var nl=SS(br),xj=a.le,zh=a.lengthSeconds,dg=a.isLivePlayback,zg=a.Zd,ki=a.Ea,bt=KQa(nl);if(dg||zg){var Zg=new QQ("",null==ki?void 0:ki.experiments,!0);Zg.dc=!0;Zg.isManifestless=!0;Zg.B=!zg;Zg.isLive=!zg;Zg.Zd=zg;for(var cr=g.u(nl),dr=cr.next();!dr.done;dr=cr.next()){var ol=dr.value,er=JQa(ol,xj),Ah=SQ(ol.url,ol.sp,ol.s),Fn=Ah.get("id");Fn&&Fn.includes("%7E")&&(Zg.Z=!0);var tp=Number(ol.target_duration_sec)||
5,ct=Number(ol.max_dvr_duration_sec)||14400,fr=Number(Ah.get("mindsq")||Ah.get("min_sq")||"0"),gr=Number(Ah.get("maxdsq")||Ah.get("max_sq")||"0")||Infinity;Zg.jf=Zg.jf||fr;Zg.Ci=Zg.Ci||gr;var hr=!KK(er.mimeType);Ah&&PQ(Zg,new HQ(Ah,er,{Ej:tp,cn:hr,Bq:ct,jf:fr,Ci:gr,tA:300,Zd:zg}))}var ir=Zg}else{if("FORMAT_STREAM_TYPE_OTF"===bt){var ym=zh;ym=void 0===ym?0:ym;var Bh=new QQ("",null==ki?void 0:ki.experiments,!1);Bh.duration=ym||0;for(var jk=g.u(nl),kk=jk.next();!kk.done;kk=jk.next()){var pl=kk.value,
up=JQa(pl,xj,Bh.duration),zm=SQ(pl.url,pl.sp,pl.s);if(zm)if("FORMAT_STREAM_TYPE_OTF"===up.streamType)PQ(Bh,new IQ(zm,up,"sq/0"));else{var dt=nQ(pl.init),et=nQ(pl.index);PQ(Bh,new NQ(zm,up,dt,et))}}Bh.isOtf=!0;var lk=Bh}else{var Ti=zh;Ti=void 0===Ti?0:Ti;var Ch=new QQ("",null==ki?void 0:ki.experiments,!1);Ch.duration=Ti||0;for(var mk=g.u(nl),nk=mk.next();!nk.done;nk=mk.next()){var ok=nk.value,ft=JQa(ok,xj,Ch.duration),gt=nQ(ok.init),ht=nQ(ok.index),jr=SQ(ok.url,ok.sp,ok.s);jr&&PQ(Ch,new NQ(jr,ft,gt,
ht))}lk=Ch}ir=lk}var ql=ir;if(0<nl.length){var Ui=nl[0];if("hangouts-meet"===a.U().playerStyle&&Ui.url){var Vi=g.lB(Ui.url);a.So=a.So||Number(Vi.expire)}}var Am=a.isLivePlayback&&!a.Zd&&!a.Za&&!a.isPremiere;a.L("html5_live_head_playable")&&(!TS(a)&&Am&&a.ma("missingLiveHeadPlayable",{}),"yt"===a.Ea.ra&&(ql.Va=!0));ql.Ra=US(a);cg=ql}else cg=null;a.ma("pafmts",{isManifestFilled:!!cg})}if(cg){RTa(a,cg);var kr=!0}else kr=!1;kr?a.enableServerStitchedDai=a.enableServerStitchedDai&&VS(a):!a.Sc||a.dc()&&
a.L("drm_manifestless_unplugged")&&a.L("html5_deprecate_manifestful_fallback")||(a.Ki=!0)}var vp=b.adpings;vp&&(a.Iu=vp?kB(vp):null);var lr=b.feature;lr&&(a.No=lr);var mr=b.referrer;mr&&(a.referrer=mr);a.clientScreenNonce=ZB(a.clientScreenNonce,b.csn);a.YF=YB(a.YF,b.root_ve_type);a.Wm=YB(a.Wm,b.kids_age_up_mode);void 0!=b.kids_app_info&&(a.kidsAppInfo=b.kids_app_info);a.qz=WB(a.qz,b.upg_content_filter_mode);a.unpluggedFilterModeType=YB(a.unpluggedFilterModeType,b.unplugged_filter_mode_type);var wp=
b.unplugged_location_info;wp&&(a.qa=wp);var nr=b.unplugged_partner_opt_out;nr&&(a.UB=ZB("",nr));a.iy=WB(a.iy,b.disable_watch_next);a.Um=ZB(a.Um,b.internal_ip_override);a.LC=!!b.is_yto_interstitial;(a.interstitials.length||a.LC)&&a.Da.push("yto");var or=b.zm;or&&(a.zm=or);b.hL&&(a.hL=b.hL);var rl;a.Na=null!=(rl=b.csi_timer)?rl:"";a.Tm=!!b.force_gvi;b.watchUrl&&(a.watchUrl=b.watchUrl);var sf=b.watch_endpoint;a.L("html5_attach_watch_endpoint_ustreamer_config")&&sf&&ISa(a,sf);if(null==sf?0:sf.ustreamerConfig)a.Go=
vR(sf.ustreamerConfig);var li,Wi,Gn=null==sf?void 0:null==(li=sf.loggingContext)?void 0:null==(Wi=li.qoeLoggingContext)?void 0:Wi.serializedContextData;Gn&&(a.bea=Gn);g.IR(a.Ea)&&a.Ea.Hl&&(a.embedsRct=ZB(a.embedsRct,b.rct),a.embedsRctn=ZB(a.embedsRctn,b.rctn));a.Gl=a.Gl||!!b.pause_at_start;b.default_active_source_video_id&&(a.defaultActiveSourceVideoId=b.default_active_source_video_id)};
DTa=function(a,b,c){var d,e=null==(d=b.cpnInfo)?void 0:d.cpn;a.playerResponseCpn=null!=e?e:"";var f;return(null==(f=b.cacheMetadata)?0:f.isCacheHit)||a.Xo||!e?"":(STa.has(e)?c="":(b=TTa.push(e),STa.add(e),b>(null!=c?c:50)&&(c=TTa.shift())&&STa.delete(c),c=e),e!==c&&a.iB("ssei","dcpn,"+e+","+c),c)};
zTa=function(a,b){var c=b.raw_watch_next_response;if(!c){var d=b.watch_next_response;d&&(c=JSON.parse(d))}if(c){a.Ra=c;var e=a.Ra.playerCueRangeSet;e&&g.MTa(a,e);var f=a.Ra.playerOverlays;if(f){var h=f.playerOverlayRenderer;if(h){var l=h.autonavToggle;l&&(a.autoplaySwitchButtonRenderer=g.V(l,UTa),a.L("web_player_autonav_use_server_provided_state")&&VTa(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.HF(p.title)),p.subtitle&&(b.subtitle=g.HF(p.subtitle)))}g.NR(a.Ea)&&(a.ke=!!h.addToMenu);WTa(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.A8=g.V(q,XTa));var r,t,v,w=g.V(null==
(r=a.getWatchNextResponse())?void 0:null==(t=r.playerOverlays)?void 0:null==(v=t.playerOverlayRenderer)?void 0:v.infoPanel,YTa);if(w){a.GC=Number(null==w?void 0:w.durationMs)||NaN;if(null==w?0:w.infoPanelOverviewViewModel)a.Re=null==w?void 0:w.infoPanelOverviewViewModel;if(null==w?0:w.infoPanelDetailsViewModel)a.El=null==w?void 0:w.infoPanelDetailsViewModel}a.showSeekingControls=!!h.showSeekingControls}}var A,C,F=null==(A=a.getWatchNextResponse())?void 0:null==(C=A.contents)?void 0:C.twoColumnWatchNextResults;
if(F){var G=F.desktopOverlay&&g.V(F.desktopOverlay,ZTa);G&&(G.suppressShareButton&&(a.showShareButton=!1),G.suppressWatchLaterButton&&(a.ke=!1))}n&&$Ta(a,b,n);var L=YB(0,b.autoplay_count),M=a.getWatchNextResponse(),R,ea=null==(R=M.contents)?void 0:R.twoColumnWatchNextResults,ma,oa,ia,va=null==(ma=M.playerOverlays)?void 0:null==(oa=ma.playerOverlayRenderer)?void 0:null==(ia=oa.autoplay)?void 0:ia.playerOverlayAutoplayRenderer,aa=ZSa(a),U,La=null==(U=M.contents)?void 0:U.singleColumnWatchNextResults;
if(La){var x;if((null==(x=La.autoplay)?0:x.autoplay)&&!La.playlist){var ba=La.autoplay.autoplay.sets,Ja={},cb=new g.wS(a.U()),ob=null,Qa;if(ba){for(var Ua=g.u(ba),ib=Ua.next();!ib.done;ib=Ua.next()){var qb=ib.value.autoplayVideoRenderer;if(qb&&qb.compactVideoRenderer){ob=qb.compactVideoRenderer;break}}if(Qa=ba[0].autoplayVideo){var rb=Qa.clickTrackingParams;rb&&(Ja.itct=rb);Ja.autonav="1";Ja.playnext=String(L)}}else Ja.feature="related-auto";var B=g.V(Qa,g.WS);if(ob){cb.videoId=ob.videoId;var D=ob.shortBylineText;
D&&(cb.author=g.HF(D));var E=ob.title;E&&(cb.title=g.HF(E))}else null!=B&&B.videoId&&(cb.videoId=B.videoId);cb.pD=Ja;a.suggestions=[];a.Lu=cb}}if(aa){for(var J=[],K=g.u(aa),ca=K.next();!ca.done;ca=K.next()){var sa=ca.value,ka=void 0,N=null;if(sa.endScreenVideoRenderer){var Z=sa.endScreenVideoRenderer,ya=Z.title;N=new g.wS(a.U());N.videoId=Z.videoId;N.lengthSeconds=Z.lengthInSeconds||0;var xa=Z.publishedTimeText;xa&&(N.publishedTimeText=g.HF(xa));var Za=Z.shortBylineText;Za&&(N.author=g.HF(Za));var Wa=
Z.shortViewCountText;Wa&&(N.shortViewCount=g.HF(Wa));if(ya){N.title=g.HF(ya);var Bb=ya.accessibility;if(Bb){var Qb=Bb.accessibilityData;Qb&&Qb.label&&(N.ariaLabel=Qb.label)}}var eb=Z.navigationEndpoint;if(eb){ka=eb.clickTrackingParams;var Rb=g.V(eb,g.WS),hc=g.V(eb,g.TF);Rb?N.qD=Rb:null!=hc&&(N.watchUrl=hc.url)}var Bc=Z.thumbnailOverlays;if(Bc)for(var ac=g.u(Bc),uc=ac.next();!uc.done;uc=ac.next()){var Wc=uc.value.thumbnailOverlayTimeStatusRenderer;if(Wc)if("LIVE"===Wc.style){N.isLivePlayback=!0;break}else if("UPCOMING"===
Wc.style){N.isUpcoming=!0;break}}N.Z=rS(Z.thumbnail)}else if(sa.endScreenPlaylistRenderer){var Nc=sa.endScreenPlaylistRenderer,Oc=Nc.navigationEndpoint;if(!Oc)continue;var Pc=g.V(Oc,g.WS);if(!Pc)continue;var Vb=Pc.videoId;N=new g.vS(a.U());N.playlistId=Nc.playlistId;N.playlistLength=Number(Nc.videoCount)||0;N.j=Vb||null;N.videoId=Vb;var ud=Nc.title;ud&&(N.title=g.HF(ud));var kd=Nc.shortBylineText;kd&&(N.author=g.HF(kd));ka=Oc.clickTrackingParams;N.Z=rS(Nc.thumbnail)}N&&(ka&&(N.sessionData={itct:ka}),
J.push(N))}a.suggestions=J}if(va){a.JU=!!va.preferImmediateRedirect;a.Qf=a.Qf||!!va.webShowNewAutonavCountdown;a.Jl=a.Jl||!!va.webShowBigThumbnailEndscreen;if(a.Qf||a.Jl){var fc=ea||null,Yb=new g.wS(a.U());Yb.videoId=va.videoId;var Qc=va.videoTitle;if(Qc){Yb.title=g.HF(Qc);var Ib=Qc.accessibility;if(Ib){var Zc=Ib.accessibilityData;Zc&&Zc.label&&(Yb.ariaLabel=Zc.label)}}var vd=va.byline;vd&&(Yb.author=g.HF(vd));var Ob=va.publishedTimeText;Ob&&(Yb.publishedTimeText=g.HF(Ob));var oe=va.shortViewCountText;
oe&&(Yb.shortViewCount=g.HF(oe));var Md=va.thumbnailOverlays;if(Md)for(var Nd=g.u(Md),Oe=Nd.next();!Oe.done;Oe=Nd.next()){var xe=Oe.value.thumbnailOverlayTimeStatusRenderer;if(xe)if("LIVE"===xe.style){Yb.isLivePlayback=!0;break}else if("UPCOMING"===xe.style){Yb.isUpcoming=!0;break}else if("DEFAULT"===xe.style&&xe.text){Yb.lengthText=g.HF(xe.text);var Hd=xe.text.accessibility;if(Hd){var Cf=Hd.accessibilityData;Cf&&Cf.label&&(Yb.Aw=Cf.label||"")}break}}Yb.Z=rS(va.background);var Ve=va.nextButton;if(Ve){var $d=
Ve.buttonRenderer;if($d){var Df=$d.navigationEndpoint;if(Df){var ae=g.V(Df,g.WS);ae&&(Yb.qD=ae)}}}if(va.topBadges){var pe=va.topBadges[0];if(pe){var Id=g.V(pe,aUa);Id&&"BADGE_STYLE_TYPE_PREMIUM"===Id.style&&(Yb.hL=!0)}}var wd=va.alternativeTitle;wd&&(Yb.us=g.HF(wd));var $c={autonav:"1",playnext:String(L)};Yb.playlistId&&($c.autoplay="1");if(fc){var Od,We,Uf,lg,qe=null==(Od=fc.autoplay)?void 0:null==(We=Od.autoplay)?void 0:null==(Uf=We.sets)?void 0:null==(lg=Uf[0])?void 0:lg.autoplayVideo;if(qe){var qc=
qe.clickTrackingParams;qc&&($c.itct=qc);var Xe=g.V(qe,g.WS);Xe&&(Yb.GV=Xe)}}else if(va){var Vh,fe,ai,Ei=null==(Vh=va.nextButton)?void 0:null==(fe=Vh.buttonRenderer)?void 0:null==(ai=fe.navigationEndpoint)?void 0:ai.clickTrackingParams;Ei&&($c.itct=Ei)}$c.itct||($c.feature="related-auto");Yb.pD=$c;a.suggestions||(a.suggestions=[]);a.Lu=Yb}null!=va.countDownSecs&&(a.XV=1E3*va.countDownSecs);null!=va.countDownSecsForFullscreen&&(a.bC=0<=va.countDownSecsForFullscreen?1E3*va.countDownSecsForFullscreen:
-1);if(a.L("web_player_autonav_next_button_renderer")){var Hf;a.aca=null==(Hf=va.nextButton)?void 0:Hf.buttonRenderer}var cf;a.Gba=null==(cf=va.cancelButton)?void 0:cf.buttonRenderer;a.L("web_autonav_color_transition")&&va.watchToWatchTransitionRenderer&&(a.watchToWatchTransitionRenderer=g.V(va.watchToWatchTransitionRenderer,bUa))}var ze=ZSa(a);if(ze){var bi,sc,vc,Hc=null==ze?void 0:null==(bi=ze[0])?void 0:null==(sc=bi.endScreenVideoRenderer)?void 0:null==(vc=sc.navigationEndpoint)?void 0:vc.clickTrackingParams,
oj=g.XS(a);Hc&&oj&&(oj.sessionData={itct:Hc})}a.Ra.currentVideoThumbnail&&(a.Z=rS(a.Ra.currentVideoThumbnail));var If,Qg,pg,Fi,pj,Gi=null==(If=a.Ra)?void 0:null==(Qg=If.contents)?void 0:null==(pg=Qg.twoColumnWatchNextResults)?void 0:null==(Fi=pg.results)?void 0:null==(pj=Fi.results)?void 0:pj.contents;if(Gi&&Gi[1]){var of,fd,Jf,Hi,df=null==(of=Gi[1].videoSecondaryInfoRenderer)?void 0:null==(fd=of.owner)?void 0:null==(Jf=fd.videoOwnerRenderer)?void 0:null==(Hi=Jf.thumbnail)?void 0:Hi.thumbnails;df&&
df.length&&(a.profilePicture=df[df.length-1].url)}var qg=$B(b),Yf,Ii=null==(Yf=a.getWatchNextResponse())?void 0:Yf.onResponseReceivedEndpoints;if(Ii)for(var Zf=g.u(Ii),rg=Zf.next();!rg.done;rg=Zf.next()){var rh=rg.value;g.V(rh,YS)&&(a.hT=g.V(rh,YS));var sh=g.V(rh,cUa),sg=void 0;if(null==(sg=sh)?0:sg.entityKeys)a.wy=sh.entityKeys||[],sh.visibleOnLoadKeys&&(a.visibleOnLoadKeys=sh.visibleOnLoadKeys)}if(a.L("web_key_moments_markers")){var Ae=g.ZS.getState().entities,ef=g.wO("visibility_override","markersVisibilityOverrideEntity");
var ge=yO(Ae,"markersVisibilityOverrideEntity",ef);a.Ae=(null==ge?void 0:ge.videoId)===(a.videoId||qg)&&(null==ge?0:ge.visibilityOverrideMarkersKey)?ge.visibilityOverrideMarkersKey:a.visibleOnLoadKeys;a.visibleOnLoadKeys=[].concat(g.qa(a.Ae))}}};
VTa=function(a){var b;return void 0!==(null==(b=a.autoplaySwitchButtonRenderer)?void 0:b.enabled)};
dUa=function(a){return!!(a.C&&a.C.videoInfos&&a.C.videoInfos.length)};
bT=function(a){var b=a.Y;a.L("html5_gapless_unlimit_format_selection")&&$S(a)&&(b=!1);var c=!!a.j&&a.j.dc,d=a.Ea,e=a.wP(),f=aT(a),h=a.JM,l=b,m=a.isOtf();b=a.ZM();var n=a.zb,p=a.Sf,q=eUa(a),r=new cRa(d);if(d.uc()||d.L("html5_logging_format_selection"))r.B=!0;r.Wa=f;r.La=h&&d.N;r.Sf=p;g.NB("windows nt 5.1")&&!g.jR&&(r.jo=!0);if(f=e)f=g.cS(d)?kSa(d):!1;f&&(r.Ba=!0);l&&(r.jo=!0,r.pc=!0);m&&!d.L("html5_otf_prefer_vp9")&&(r.jo=!0);"picasaweb"===d.playerStyle&&(m&&(r.jo=!1),r.Ga=!1);n&&(r.jo=!0);xP(d.G,
yP.CHANNELS)&&(d.L("html5_enable_aac51")&&(r.ra=!0),d.L("html5_enable_ac3")&&(r.D=!0),d.L("html5_enable_eac3")&&(r.G=!0),d.L("html5_enable_ac3_gapless")&&(r.Na=!0));d.L("html5_block_8k_hfr")&&(r.bb=!0);r.K=g.YI(d.experiments,"html5_max_selectable_quality_ordinal");r.N=g.YI(d.experiments,"html5_min_selectable_quality_ordinal");GR&&(r.Xb=480);if(c||e)r.Ga=!1;r.fb=!1;r.disableAv1=q;c=eRa(d,r.j,void 0,r.disableAv1);0<c&&2160>c&&(XK()||d.L("html5_format_hybridization"))&&(r.j.supportsChangeType=+XK(),
r.gj=c);2160<=c&&(r.Da=!0);ZNa()&&(r.j.serveVp9OverAv1IfHigherRes=0,r.Dc=!1);r.ZM=b;r.Va=g.qD||Ypa()&&!b?!1:!0;r.Y=d.L("html5_format_hybridization");r.Hb=d.L("html5_disable_encrypted_vp9_live_non_2k_4k");QB()&&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.Mx&&(r.qa=a.Mx),a.Lx&&(r.C=a.Lx));r.Ra=a.isLivePlayback&&a.Ti()&&a.Ea.L("html5_drm_live_audio_51");
r.zb=a.yC;return a.Ie=r};
eUa=function(a){return a.Ea.L("html5_disable_av1")||a.L("html5_gapless_shorts_disable_av1")&&$S(a)?!0:!1};
gUa=function(a){CH("drm_pb_s",void 0,a.Na);a.Wa||a.j&&tP(a.j);var b={};a.j&&(b=nOa(a.gy,bT(a),a.Ea.G,a.j,function(c){return a.publish("ctmp","fmtflt",c)},!0,new Set));
b=new kR(b,a.Ea,a.mV,a.useCobaltWidevine?QB()?fUa(a):!1:!1,function(c,d){a.ma(c,d)});
g.O(a,b);a.Vm=!1;a.loading=!0;kRa(b,function(c){CH("drm_pb_f",void 0,a.Na);for(var d=g.u(c),e=d.next();!e.done;e=d.next())switch(e=e.value,e.flavor){case "fairplay":e.Wa=a.Wa;e.qy=a.qy;e.oy=a.oy;break;case "widevine":e.Ml=a.Ml}a.Mo=c;if(0<a.Mo.length&&(a.K=a.Mo[0],a.Ea.uc())){c={};d=g.u(Object.entries(a.K.j));for(e=d.next();!e.done;e=d.next()){var f=g.u(e.value);e=f.next().value;f=f.next().value;var h="unk";(e=e.match(/(.*)codecs="(.*)"/))&&(h=e[2]);c[h]=f}a.ma("drmProbe",c)}NS(a)})};
QTa=function(a,b){if(0===b.length||QS(a))return null;RS(a,"html5_enable_cobalt_experimental_vp9_decoder")&&(bRa=!0);var c=a.le;var d=a.lengthSeconds,e=a.isLivePlayback,f=a.Zd,h=a.Ea,l=LQa(b);if(e||f){h=new QQ("",h.experiments,!0);h.B=!f;h.dc=!0;h.isManifestless=!0;h.isLive=!f;h.Zd=f;b=g.u(b);for(d=b.next();!d.done;d=b.next()){var m=d.value;d=RQ(m,c);e=EP(m);e=SQ(e.aD||m.url||"",e.sG,e.s);(l=e.get("id"))&&l.includes("%7E")&&(h.Z=!0);l=Number(m.targetDurationSec||5);m=Number(m.maxDvrDurationSec||14400);
var n=Number(e.get("mindsq")||e.get("min_sq")||"0"),p=Number(e.get("maxdsq")||e.get("max_sq")||"0")||Infinity;h.jf=h.jf||n;h.Ci=h.Ci||p;var q=!KK(d.mimeType);e&&PQ(h,new HQ(e,d,{Ej:l,cn:q,Bq:m,jf:n,Ci:p,tA:300,Zd:f}))}c=h}else if("FORMAT_STREAM_TYPE_OTF"===l){d=void 0===d?0:d;f=new QQ("",h.experiments,!1);f.duration=d||0;h=g.u(b);for(b=h.next();!b.done;b=h.next())b=b.value,d=RQ(b,c,f.duration),e=EP(b),(e=SQ(e.aD||b.url||"",e.sG,e.s))&&("FORMAT_STREAM_TYPE_OTF"===d.streamType?PQ(f,new IQ(e,d,"sq/0")):
PQ(f,new NQ(e,d,pQ(b.initRange),pQ(b.indexRange))));f.isOtf=!0;c=f}else{d=void 0===d?0:d;f=new QQ("",h.experiments,!1);f.duration=d||0;h=g.u(b);for(b=h.next();!b.done;b=h.next())l=b.value,b=RQ(l,c,f.duration),d=pQ(l.initRange),e=pQ(l.indexRange),m=EP(l),(l=SQ(m.aD||l.url||"",m.sG,m.s))&&PQ(f,new NQ(l,b,d,e));c=f}f=a.isLivePlayback&&!a.Zd&&!a.Za&&!a.isPremiere;a.L("html5_live_head_playable")&&(!TS(a)&&f&&a.ma("missingLiveHeadPlayable",{}),"yt"===a.Ea.ra&&(c.Va=!0));c.Ra=US(a);return c};
QS=function(a){return QB()?!fUa(a):RB()?!(!a.Wa||!a.L("html5_enable_safari_fairplay")):!1};
fUa=function(a){return a.L("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')};
g.MTa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.cueRangeSetIdentifier){var d=void 0;a.QL.set(c.cueRangeSetIdentifier,null!=(d=c.playerCueRanges)?d:[])}};
VS=function(a){return!(!a.j||!a.j.isManifestless)};
cT=function(a){return a.isLowLatencyLiveStream&&void 0!=a.j&&5<=WQ(a.j)};
OTa=function(a){return QB()&&fUa(a)?!1:QS(a)&&g.gJ(a.Ea)&&!a.isLivePlayback||!qR()||a.xC?!0:!1};
iUa=function(a){a.loading=!0;a.Ki=!1;if(PTa(a))g.lTa(a.videoId).then(function(c){hUa(a,c)}).then(function(){NS(a)});
else{zJ(a.Sc)||g.eF(new g.AC("DASH MPD Origin invalid: ",a.Sc));var b=a.Sc;b=g.Mn(b,{mpd_version:g.YI(a.Ea.experiments,"dash_manifest_version")||4});a.isLowLatencyLiveStream&&"NORMAL"!=a.latencyClass||(b=g.Mn(b,{pacing:0}));TQa(b,a.Ea.experiments,a.isLivePlayback).then(function(c){a.Ma()||(RTa(a,c,!0),CH("mrc",void 0,a.Na),NS(a))},function(c){a.Ma()||(a.loading=!1,a.publish("dataloaderror",new oK("manifest.net.retryexhausted",{backend:"manifest",
rc:c.status},1)))});
CH("mrs",void 0,a.Na)}};
hUa=function(a,b){var c=b.map(function(l){return l.itag}),d;
if(null!=(d=a.playerResponse)&&d.streamingData){d=[];for(var e=g.u(a.playerResponse.streamingData.adaptiveFormats),f=e.next(),h={};!f.done;h={Ms:void 0},f=e.next())h.Ms=f.value,c.includes(h.Ms.itag)&&(h.Ms=Object.assign({},h.Ms),h.Ms.url=b.find(function(l){return function(m){return m.itag===l.Ms.itag}}(h)).url,h.Ms.signatureCipher="",d.push(h.Ms));
b=QTa(a,d);aT(a)&&a.L("music_web_woffle")&&YQa(b,!1);RTa(a,b);a.ma("dlr",{})}else a.ma("offsdm",{cotn:a.LS?a.LS.cotn:"0",cpn:a.clientPlaybackNonce})};
dT=function(a){if(!a.isProximaLatencyEligible)return!1;var b=QNa();return null!=b?1===b:a.L("html5_enable_proxima")};
NS=function(a){a.Ma()||(a.loading=!1,a.publish("dataloaded"))};
RTa=function(a,b,c){c=void 0===c?!1:c;a.j=b;g.O(a,b);b.jf=a.jf;b.Ci=a.Ci;b.bb=a.bb;b.Pb=a.Pb;b.pc=a.pc;a.Oo&&(b.Na=new AQ(a.Oo));(a.wP()||g.eT(a))&&a.Da.push("webgl");a.j.isLive||(a.isLivePlayback=!1);var d=b.sourceUrl.split("/");-1!=d.indexOf("manifest_duration")&&(a.Fl=Number(d[d.indexOf("manifest_duration")+1]));b.B&&(b.subscribe("clienttemp",a.ma,a),c?b.subscribe("refresh",a.FZ,a):b.subscribe("cuepointsadded",a.aW,a));tP(b)?a.Vm=!0:lR=void 0;a.Za&&(b.C=a.Za,b.isLive=!0,a.isLivePlayback=!0);b.isPremiere=
a.isPremiere;b.isLiveHeadPlayable=a.isLiveHeadPlayable};
kUa=function(a,b){var c=b||OTa(a)||a.isExternallyHostedPodcast;if(!a.j||c)return a.ma("skipDash",{dm:!!a.j,air:b,dd:a.xC,mss:qR(),"3pp":a.isExternallyHostedPodcast}),HB();aT(a)&&YQa(a.j,a.isLivePlayback);RS(a,"html5_enable_cobalt_experimental_vp9_decoder")&&BRa(a.Ea.G);return IB().then(function(){return pOa(a.gy,bT(a),a.Ea.G,a.j,a.K,function(d){return a.publish("ctmp","fmtflt",d)},a.cT,US(a)&&a.L("html5_enable_server_format_filter")).then(function(d){jUa(a,d);
a.gy.j=null;/^av/.test(a.clientPlaybackNonce)&&a.Ie&&a.ma("av1",a.Ie.j)})})};
lUa=function(a,b){if(b&&a.hlsvp)return HB();if(a.hlsFormats){b=SS(a.hlsFormats);var c;if((null==(c=a.Ie)?0:c.B)&&b){c=[];for(var d=g.u(b),e=d.next();!e.done;e=d.next())c.push(e.value.itag);a.ma("hlsfmt",{itags:c.join(".")})}a.uy=wSa(a.Ea,b);c=a.clientPlaybackNonce;var f,h,l,m;return BSa(a.Ea,a.isAd(),b,null!=(m=null==(f=a.playerResponse)?void 0:null==(h=f.captions)?void 0:null==(l=h.playerCaptionsRenderer)?void 0:l.baseUrl)?m:null,a.Jd,c,function(n){return a.publish("ctmp","hlsflt",n)}).then(function(n){for(var p=
0,q=[],r=g.u(n),t=r.next();!t.done;t=r.next()){t=t.value;
var v=void 0;q.push(null==(v=t.getInfo())?void 0:v.itag);var w=v=void 0;(null==(v=t.getInfo())?void 0:null==(w=v.audio)?void 0:w.numChannels)>p&&(p=t.getInfo().audio.numChannels)}2<p&&a.ma("hlschl",{mn:p});var A;(null==(A=a.Ie)?0:A.B)&&a.ma("hlsfmtaf",{itags:q.join(".")});var C;if(a.L("html5_enable_vp9_fairplay")&&(null==(C=a.K)?0:hR(C)))for(a.ma("drm",{sbdlfbk:1}),p=g.u(a.Mo),q=p.next();!q.done;q=p.next())if(q=q.value,gR(q)){a.K=q;break}fT(a,n)})}return HB()};
mUa=function(a){if(a.isExternallyHostedPodcast&&a.Rf){var b=SS(a.Rf);if(!b[0])return HB();a.j2=b[0];return ESa(a.Ea,b[0]).then(function(c){fT(a,c)})}return a.Ll&&a.fT?DSa(a.Ea,a.isAd(),a.Ll).then(function(c){fT(a,c)}):HB()};
oUa=function(a){if(a.isExternallyHostedPodcast)return HB();var b=SS(a.Rf,a.EC);if(a.hlsvp){var c=wTa(a.hlsvp,a.clientPlaybackNonce,a.Jd);b.push(c)}return CSa(a.Ea,a.isAd(),b,nUa(a)).then(function(d){fT(a,d)})};
jUa=function(a,b){a.C=b;if(a.C){b=g.u(a.C.videoInfos);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c.containerType;0!==d&&(a.vC[d]=c.id)}}pUa(a);if(a.K&&a.C&&a.C.videoInfos&&!(0>=a.C.videoInfos.length)&&(b=HK(a.C.videoInfos[0]),b!=("fairplay"==a.K.flavor)))for(c=g.u(a.Mo),d=c.next();!d.done;d=c.next())if(d=d.value,b==("fairplay"==d.flavor)){a.K=d;break}};
fT=function(a,b){a.hd=b;jUa(a,new pP(g.Rr(a.hd,function(c){return c.getInfo()})))};
nUa=function(a){var b={cpn:a.clientPlaybackNonce,c:a.Ea.j.c,cver:a.Ea.j.cver};a.yy&&(b.ptk=a.yy,b.oid=a.oT,b.ptchn=a.jT,b.pltype=a.pT,a.jy&&(b.m=a.jy));return b};
g.gT=function(a){return QS(a)&&a.Wa?(a={},a.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",a):a.B&&a.B.le||null};
qUa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.HF(b.text):a.paidContentOverlayText};
rUa=function(a){var b=a.playerResponse&&a.playerResponse.paidContentOverlay&&a.playerResponse.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?$e(b.durationMs):a.paidContentOverlayDurationMs};
hT=function(a){var b="";if(a.WE)return a.WE;a.isLivePlayback&&(b=a.allowLiveDvr?"dvr":a.isPremiere?"lp":a.Za?"window":"live");a.Zd&&(b="post");return b};
g.iT=function(a,b){return"string"!==typeof a.keywords[b]?null:a.keywords[b]};
sUa=function(a){return!!a.mj||!!a.KL||!!a.Ay||!!a.By||a.G_||a.N.focEnabled||a.N.rmktEnabled};
g.jT=function(a){return!!(a.Sc||a.Rf||a.Ll||a.hlsvp||a.Vv())};
MS=function(a){if(a.L("html5_onesie")&&a.errorCode)return!1;var b=g.Fb(a.Da,"ypc");a.ypcPreview&&(b=!1);return a.qe()&&!a.loading&&(g.jT(a)||g.Fb(a.Da,"heartbeat")||b)};
SS=function(a,b){a=ipa(a);var c={};if(b){b=g.u(b.split(","));for(var d=b.next();!d.done;d=b.next())(d=d.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(c[d[1]]={width:d[2],height:d[3]})}b=g.u(a);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=c[d.itag];e&&(d.width=e.width,d.height=e.height)}return a};
pUa=function(a){var b=a.getAvailableAudioTracks();b=b.concat(a.yl);for(var c=0;c<a.cC.length;c++)for(var d=a.cC[c],e=0;e<b.length;e++){var f=b[e],h=f.kc.id==d.audioTrackId;if(f.kc.isDefault&&c==a.YX||h){if(d.captionTrackIndices)for(h=0;h<d.captionTrackIndices.length;h++)f.captionTracks[h]=a.captionTracks[d.captionTrackIndices[h]];void 0!==d.defaultCaptionTrackIndex&&(f.C=a.captionTracks[d.defaultCaptionTrackIndex]);void 0!==d.forcedCaptionTrackIndex&&(f.j=a.captionTracks[d.forcedCaptionTrackIndex]);
f.B=d.visibility||"UNKNOWN";f.captionsInitialState=d.captionsInitialState||"CAPTIONS_INITIAL_STATE_UNKNOWN"}}};
WTa=function(a,b){a.showShareButton=!!b;var c,d,e=(null==(c=g.V(b,g.yM))?void 0:c.navigationEndpoint)||(null==(d=g.V(b,g.yM))?void 0:d.command);e&&(a.Ro=!!g.V(e,tUa))};
yTa=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.ri=c);if(a.ri){a.embeddedPlayerConfig=a.ri.embeddedPlayerConfig||null;if(c=a.ri.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.ri.embedPreview){c=c.thumbnailPreviewRenderer;XSa(a,c.controlBgHtml);if(d=c.defaultThumbnail)a.Z=
rS(d);a.L("embeds_web_enable_search_button")&&c.searchButton&&(d=g.V(c.searchButton,g.yM))&&(a.aea=g.V(d.navigationEndpoint,g.kT));(d=g.V(null==c?void 0:c.videoDetails,uUa))&&$Ta(a,b,d);d=g.V(null==c?void 0:c.videoDetails,vUa);a.ke=!!c.addToWatchLaterButton;WTa(a,c.shareButton);if(null==d?0:d.musicVideoType)a.musicVideoType=d.musicVideoType;var e,f,h,l,m;if(d=g.V(null==(e=a.getEmbeddedPlayerResponse())?void 0:null==(f=e.embedPreview)?void 0:null==(h=f.thumbnailPreviewRenderer)?void 0:null==(l=h.playButton)?
void 0:null==(m=l.buttonRenderer)?void 0:m.navigationEndpoint,g.WS))ISa(a,d),a.videoId=d.videoId||a.videoId;c.videoDurationSeconds&&(a.lengthSeconds=$e(c.videoDurationSeconds));c.webPlayerActionsPorting&&WSa(a,c.webPlayerActionsPorting);if(e=g.V(null==c?void 0:c.playlist,wUa)){a.Pm=!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.HF(c.shortBylineText):"";var n=c.title?g.HF(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.Kf:!1,dni_color:l===h?a.jp:""})}b={index:e.currentIndex,list:e.playlistId,playlist_length:e.totalVideos,video:f};e.titleText&&(b.title=g.HF(e.titleText));e.shortBylineText&&(b.author=g.HF(e.shortBylineText));a.yY=b}var p,q,r;if(b=g.V(null==(p=a.getEmbeddedPlayerResponse())?void 0:null==(q=p.embedPreview)?void 0:null==(r=q.thumbnailPreviewRenderer)?
void 0:r.infoPanel,YTa)){a.GC=Number(null==b?void 0:b.durationMs)||NaN;if(null==b?0:b.infoPanelOverviewViewModel)a.Re=null==b?void 0:b.infoPanelOverviewViewModel;if(null==b?0:b.infoPanelDetailsViewModel)a.El=null==b?void 0:b.infoPanelDetailsViewModel}}if(a.ri.previewPlayabilityStatus){if(a.zy=a.ri.previewPlayabilityStatus,p=a.zy,!["OK","LIVE_STREAM_OFFLINE"].includes(p.status)){a.errorCode=GSa(p.errorCode);q=p.errorScreen;if(r=null==q?void 0:q.playerErrorMessageRenderer){a.AC=r;if(b=r.reason)a.errorReason=
g.HF(b);if(r=r.subreason)a.vn=g.HF(r)}else a.errorReason=p.reason||null;switch(p.status){case "LOGIN_REQUIRED":a.errorDetail="1";break;case "CONTENT_CHECK_REQUIRED":a.errorDetail="2";break;case "AGE_CHECK_REQUIRED":var t;(null==q?0:null==(t=q.playerKavRenderer)?0:t.kavUrl)?a.errorDetail="4":a.errorDetail="3";break;default:a.errorDetail=p.isBlockedInRestrictedMode?"5":"0"}}}else a.ri.playabilityStatus&&(a.Sm=a.ri.playabilityStatus,xUa(a)&&(a.errorDetail="0",a.Sm&&((t=a.Sm.embeddedPlayerErrorMessageRenderer)?
a.AC=g.V(t,yUa):a.errorReason=a.Sm.reason||null)));(t=a.ri.attestation)&&RSa(a,t);(t=a.ri.permissions)&&t.allowImaMonetization&&(a.allowImaMonetization=!0);t&&t.allowPfpUnbranded&&(a.allowPfpUnbranded=!0)}};
$Ta=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(null==(e=g.V(null==c?void 0:c.channelThumbnailEndpoint,zUa))?void 0:e.urlEndpoint,g.TF))b.channel_path=d.url;if(e=c.collapsedRenderer)if(e=g.V(e,AUa)){if(d=e.title)b.title=g.HF(d);if(e=e.subtitle)b.subtitle=g.HF(e)}if(c=c.expandedRenderer)if(c=g.V(c,BUa)){if(e=c.title)b.expanded_title=g.HF(e);if(e=c.subtitle)b.expanded_subtitle=g.HF(e);if(c=c.subscribeButton)a.subscribeButtonRenderer=
g.V(c,g.lT),a.subscribeButtonRenderer&&(b.ucid=a.subscribeButtonRenderer.channelId,b.subscribed=a.subscribeButtonRenderer.subscribed,a.Kl=!!a.subscribeButtonRenderer.notificationPreferenceToggleButton,a.subscribeButtonRenderer.notificationPreferenceToggleButton&&a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(b=a.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,b.isToggled?(a.FM=b.toggledServiceEndpoint||null,a.DM=b.defaultServiceEndpoint||
null):(a.FM=b.defaultServiceEndpoint||null,a.DM=b.toggledServiceEndpoint||null)))}};
g.mT=function(a){return TS(a)&&!a.allowLiveDvr};
nT=function(a){return TS(a)&&a.allowLiveDvr};
TS=function(a){return a.L("html5_live_head_playable")&&VS(a)&&"yt"===a.Ea.ra?a.isLiveHeadPlayable:a.isLivePlayback};
g.oT=function(a){return!!a.j&&zQa(a.j)};
g.pT=function(a){return!!a.j&&AQa(a.j)};
g.qT=function(a){return!!a.j&&BQa(a.j)};
g.eT=function(a){return!!a.j&&CQa(a.j)};
g.CUa=function(a){if(a.zM)return null;var b=a.gT;b||(b=a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenUrlRenderer&&a.playerResponse.endscreen.endscreenUrlRenderer.url);return b||null};
g.DUa=function(a){return a.zM?null:a.playerResponse&&a.playerResponse.endscreen&&a.playerResponse.endscreen.endscreenRenderer||null};
g.rT=function(a){return a.L("enable_wn_infocards")};
g.sT=function(a){var b,c,d,e;return(g.rT(a)?null==(b=a.Ra)?void 0:null==(c=b.cards)?void 0:c.cardCollectionRenderer:null==(d=a.playerResponse)?void 0:null==(e=d.cards)?void 0:e.cardCollectionRenderer)||null};
g.EUa=function(a){if(!a.playerResponse||!a.playerResponse.annotations)return null;a=g.u(a.playerResponse.annotations);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.playerAnnotationsExpandedRenderer&&b.playerAnnotationsExpandedRenderer.featuredChannel)return b.playerAnnotationsExpandedRenderer;return null};
tT=function(a){return a.adFormat&&"1_5"!=a.adFormat?"adunit":a.eventLabel||a.Ea.La};
g.uT=function(a){return"shortspage"===tT(a)};
$S=function(a){return a.Rk()&&a.U().supportsGaplessShorts()};
vT=function(a){if(a.isAd()&&a.videoId!=a.Ea.Ie)return a.Ea.Ie};
wT=function(a){return a.Xk||"detailpage"==tT(a)||"shortspage"==tT(a)||a.mutedAutoplay};
FUa=function(a){var b=a.L("enable_cleanup_masthead_autoplay_hack_fix");return b&&"adunit"==tT(a)?a.Yp:wT(a)?"detailpage"==tT(a)||"shortspage"==tT(a)?a.isAutonav||0<a.Xb:b||"17_8"!==a.adFormat||a.isAutonav||g.aS(a.Ea)||a.Yp?a.Tf?!1:a.Ea.Mh||a.Ea.Ki||!g.IR(a.Ea)?!b&&"adunit"==tT(a)&&a.mj?!1:!0:!1:!1:(a.Tf?0:a.Qg)&&g.IR(a.Ea)?!0:!1};
g.xT=function(a){return a.oauthToken||a.Ea.qj};
GUa=function(a){var b=1,c=g.YI(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=(null==(d=a.D)?void 0:d.audio.B)||a.jZ){var e;d=c-(null!=(e=a.loudnessTargetLkfs)?e:0)}else d=a.Pf;else{var f;d=(null==(f=a.D)?void 0:f.audio.C)||a.Pf}if(a.L("html5_stateful_audio_normalization")){if(!isFinite(c))return b;c=Math.max(c,a.minimumLoudnessTargetLkfs);a.applyStatefulNormalization?(Date.now()-a.Ea.Dl>1E3*a.maxStatefulTimeThresholdSec&&
(a.Ea.Cl=Infinity,a.Ea.Dl=Infinity),e=Math.min(a.loudnessTargetLkfs,a.Ea.Cl)):e=Math.min(a.loudnessTargetLkfs,c);e=Math.min(e-c,0);a.preserveStatefulLoudnessTarget&&(a.Ea.Cl=c+e,a=a.Ea,c=Date.now(),a.Dl=c);return Math.min(1,Math.pow(10,e/20))||b}return Math.min(1,Math.pow(10,-d/20))||b};
aT=function(a){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],c="TVHTML5_SIMPLY"===g.nR(a.Ea)&&"MUSIC"===a.Ea.j.ctheme;a.tj||!g.JG(a.Ea)&&!c||!b.includes(a.musicVideoType)&&!a.isExternallyHostedPodcast||(a.tj=!0);if(b=g.PB())b=/Starboard\/([0-9]+)/.exec(g.pc()),b=10>(b?parseInt(b[1],10):NaN);c=a.Ea;c=("TVHTML5_CAST"===g.nR(c)||"TVHTML5"===g.nR(c)&&(c.j.cver.startsWith("6.20130725")||c.j.cver.startsWith("6.20130726")))&&"MUSIC"===a.Ea.j.ctheme;var d;if(d=!a.tj)c||(c=a.Ea,c=
"TVHTML5"===g.nR(c)&&c.j.cver.startsWith("7")),d=c;d&&!b&&(b="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"===a.musicVideoType,c=(a.L("cast_prefer_audio_only_for_atv_and_uploads")||a.L("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&"MUSIC_VIDEO_TYPE_ATV"===a.musicVideoType,b||c||a.isExternallyHostedPodcast)&&(a.tj=!0);return a.Ea.deviceIsAudioOnly||a.tj&&a.Ea.N};
yT=function(a){var b,c,d;return a.isDaiEnabled()&&!!(null==(b=a.playerResponse)?0:null==(c=b.playerConfig)?0:null==(d=c.daiConfig)?0:d.ssaEnabledPlayback)};
HUa=function(a){return isNaN(a)?0:Math.max((Date.now()-a)/1E3-30,0)};
zT=function(a){return!(!a.Rm||!a.Ea.N)&&a.Vv()};
IUa=function(a){return a.enablePreroll&&a.enableServerStitchedDai};
US=function(a){if(a.sZ||a.cotn||!a.j||a.j.isOtf)return!1;if(a.L("html5_use_sabr_requests_for_debugging"))return!0;if(a.L("html5_enable_sabr_from_watch_server"))return a.uW&&!!a.Oo;var b=!a.j.dc&&!a.Ti(),c=b&&oR&&a.L("html5_enable_sabr_vod_streaming_xhr");b=b&&!oR&&a.L("html5_enable_sabr_vod_non_streaming_xhr");var d=AT(a),e=a.L("html5_enable_sabr_drm_vod_streaming_xhr")&&a.Ti()&&!a.j.dc&&oR&&("1"===a.Cl?!1:!0);(c=c||b||d||e)&&!a.Oo&&a.ma("sabr",{loc:"m"},!0);return c&&!!a.Oo};
AT=function(a){var b;if(!(b=a.dc()&&a.Ti()&&oR&&("1"===a.Cl?!1:!0)&&a.L("html5_sabr_live_drm_streaming_xhr"))){b=a.dc()&&!a.Ti()&&oR;var c=a.dc()&&"ULTRALOW"!==a.latencyClass&&!a.isLowLatencyLiveStream&&a.L("html5_sabr_live_normal_latency_streaming_xhr"),d=a.isLowLatencyLiveStream&&a.L("html5_sabr_live_low_latency_streaming_xhr"),e="ULTRALOW"===a.latencyClass&&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.dc()&&!oR&&a.L("html5_enable_sabr_live_non_streaming_xhr");return b||c||a};
g.BT=function(a){return a.KY&&US(a)};
PTa=function(a){var b;if(b=!!a.cotn)b=a.videoId,b=!!b&&1===g.zS(b);return b&&!a.Rm};
g.CT=function(a){if(!a.j||!a.B||!a.D)return!1;var b=a.j.j,c=!!b[a.B.id]&&CP(b[a.B.id].resource.j);b=!!b[a.D.id]&&CP(b[a.D.id].resource.j);return("0"===a.B.itag||c)&&b};
JUa=function(a){return a.zy?["OK","LIVE_STREAM_OFFLINE"].includes(a.zy.status):!0};
xUa=function(a){return(a=a.Sm)&&a.showError?a.showError:!1};
RS=function(a,b){return a.L(b)?!0:(a.fflags||"").includes(b+"=true")};
HTa=function(a){return a.L("html5_heartbeat_iff_heartbeat_params_filled")};
KUa=function(a){return(a=/html5_log_experiment_id_from_player_response_to_ctmp=([0-9]+)/.exec(a.fflags))?a[1]:null};
FTa=function(a,b){b.inlineMetricEnabled&&(a.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(a.By=new cTa(b));if(b=b.video_masthead_ad_quartile_urls)a.KL=b.quartile_0_url,a.MU=b.quartile_25_url,a.NU=b.quartile_50_url,a.RU=b.quartile_75_url,a.LU=b.quartile_100_url,a.Ay=b.quartile_0_urls,a.ML=b.quartile_25_urls,a.NL=b.quartile_50_urls,a.OL=b.quartile_75_urls,a.LL=b.quartile_100_urls};
ETa=function(a){var b={};a=g.u(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.split("=");2==d.length?b[d[0]]=d[1]:b[c]=!0}return b};
BTa=function(a){if(a){if(wBa(a))return a;a=xBa(a);if(wBa(a,!0))return a}return""};
g.LUa=function(a){return a.captionsLanguagePreference||a.Ea.captionsLanguagePreference||g.iT(a,"yt:cc_default_lang")||a.Ea.jj};
DT=function(a){return!(!a.isLivePlayback||!a.hasProgressBarBoundaries())};
g.XS=function(a){var b;return a.Lu||(null==(b=a.suggestions)?void 0:b[0])||null};
MUa=function(a){var b={isSabr:US(a)},c;if(a=null==(c=a.getHeartbeatResponse())?void 0:c.adBreakHeartbeatParams)b.adBreakHeartbeatParams=a;return b};
g.ET=function(a){return a.L("embeds_web_disable_pfp_unbranded_livestream")&&a.isLivePlayback?!1:a.L("embeds_web_enable_pfp_unbranded_flag")?a.Ea.Il&&a.allowPfpUnbranded:a.Kf&&a.Ea.Il};
g.FT=function(a){var b=a.U(),c=g.NUa(b),d=a.ra;d&&(c.clickTracking={clickTrackingParams:d});d=c.client||{};var e="EMBED",f=tT(a);"leanback"===f?e="WATCH":b.L("gvi_channel_client_screen")&&"profilepage"===f?e="CHANNEL":a.zb?e="LIVE_MONITOR":"detailpage"===f?e="WATCH_FULL_SCREEN":"adunit"===f?e="ADUNIT":"sponsorshipsoffer"===f&&(e="UNKNOWN");d.clientScreen=e;if(b=a.kidsAppInfo)d.kidsAppInfo=JSON.parse(b);(e=a.Wm)&&!b&&(d.kidsAppInfo={contentSettings:{ageUpMode:OUa[e]}});if(b=a.qz)d.unpluggedAppInfo=
{enableFilterMode:!0};(e=a.unpluggedFilterModeType)&&!b&&(d.unpluggedAppInfo={filterModeType:PUa[e]});if(b=a.qa)d.unpluggedLocationInfo=b;c.client=d;d=c.request||{};a.jj&&(d.isPrefetch=!0);if(b=a.mdxEnvironment)d.mdxEnvironment=b;if(b=a.mdxControlMode)d.mdxControlMode=QUa[b];c.request=d;d=c.user||{};if(b=a.Ba)d.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=a.Hb)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.NUa=function(a){var b=g.QG(),c=b.client||{};if(a.forcedExperiments){var d=a.forcedExperiments.split(","),e=[];d=g.u(d);for(var f=d.next();!f.done;f=d.next())e.push(Number(f.value));c.experimentIds=e}if(e=a.homeGroupInfo)c.homeGroupInfo=JSON.parse(e);if(e=a.getPlayerType())c.playerType=e;if(e=a.j.ctheme)c.theme=e;if(e=a.livingRoomAppMode)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomAppMode:e});e=a.deviceYear;a.L("html5_propagate_device_year")&&e&&(c.tvAppInfo=Object.assign({},c.tvAppInfo,
{deviceYear:e}));if(e=a.livingRoomPoTokenId)c.tvAppInfo=Object.assign({},c.tvAppInfo,{livingRoomPoTokenId:e});b.client=c;c=b.user||{};a.enableSafetyMode&&(c=Object.assign({},c,{enableSafetyMode:!0}));a.pageId&&(c=Object.assign({},c,{onBehalfOfUser:a.pageId}));b.user=c;if(a=a.Sc)b.thirdParty={embedUrl:a};return b};
VUa=function(a,b,c){var d=a.videoId,e=g.FT(a),f=a.U(),h={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(tE()),referer:document.location.toString(),signatureTimestamp:19837};g.xC();a.isAutonav&&(h.autonav=!0);g.yC(0,141)&&(h.autonavState=g.yC(0,140)?"STATE_OFF":"STATE_ON");h.autoCaptionsDefaultOn=g.yC(0,66);FUa(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.u(l);for(var p=l.next();!p.done;p=l.next()){p=p.value;var q=p.split("|");3!==q.length||p.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);p={adtype:"video_ad"};q=g.u(q);for(var r=q.next();!r.done;r=q.next()){var t=g.u(r.value.split("="));r=t.next().value;t=eaa(t);p[r]=t.join("=")}q=p.url;r=p.presetad;t=p.viralresponseurl;var v=Number(p.campaignid);if("in_display_ad"===p.adtype)q&&(m.url=q),r&&(m.presetAd=r),t&&(m.viralAdResponseUrl=t),v&&(m.viralCampaignId=
String(v));else if("video_ad"===p.adtype){var w={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(p.offset)||0)}};if(p=RUa[p.breaktype])w.breakType=p;q&&(w.url=q);r&&(w.presetAd=r);t&&(w.viralAdResponseUrl=t);v&&(w.viralCampaignId=String(v));n.push(w)}}h.forceAdParameters={videoAds:n,inDisplayAd:m}}a.isInlinePlaybackNoAd&&(h.isInlinePlaybackNoAd=!0);a.isLivingRoomDeeplink&&(h.isLivingRoomDeeplink=!0);m=a.EF;if(null!=m){m={startWalltime:String(m)};if(n=a.Fl)m.manifestDuration=String(n||14400);
h.liveContext=m}a.mutedAutoplay&&(h.mutedAutoplay=!0);if(a.Tf?0:a.Qg)h.splay=!0;m=a.vnd;5===m&&(h.vnd=m);m={};if(n=a.isMdxPlayback)m.triggeredByMdx=n;if(n=a.zv)m.skippableAdsSupported=n.split(",").includes("ska");if(p=a.Bj){n=a.PL;l=[];p=g.u(dOa(p));for(q=p.next();!q.done;q=p.next()){q=q.value;r=q.platform;q={applicationState:q.dY?"INACTIVE":"ACTIVE",clientFormFactor:SUa[r]||"UNKNOWN_FORM_FACTOR",clientName:fOa[q.z0]||"UNKNOWN_INTERFACE",clientVersion:q.deviceVersion||"",platform:TUa[r]||"UNKNOWN_PLATFORM"};
r={};if(n){t=void 0;try{t=JSON.parse(n)}catch(A){g.eF(A)}t&&(r={params:[{key:"ms",value:t.ms}]},t.advertising_id&&(r.advertisingId=t.advertising_id),void 0!==t.limit_ad_tracking&&null!==t.limit_ad_tracking&&(r.limitAdTracking=t.limit_ad_tracking),q.osName=t.os_name,q.userAgent=t.user_agent,q.windowHeightPoints=t.window_height_points,q.windowWidthPoints=t.window_width_points)}l.push({adSignalsInfo:r,remoteClient:q})}m.remoteContexts=l}n=a.sourceContainerPlaylistId;l=a.serializedMdxMetadata;if(n||l)p=
{},n&&(p.mdxPlaybackContainerInfo={sourceContainerPlaylistId:n}),l&&(p.serializedMdxMetadata=l),m.mdxPlaybackSourceContext=p;h.mdxContext=m;m=b.width;0<m&&(h.playerWidthPixels=Math.round(m));if(b=b.height)h.playerHeightPixels=Math.round(b);0!==c&&(h.vis=c);if(c=f.widgetReferrer)h.widgetReferrer=c.substring(0,128);g.IR(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);UUa&&0<a.startSeconds&&(d.startTimeSecs=a.startSeconds);e=a.U();if(h=e.embedConfig)d.serializedThirdPartyEmbedConfig=h;d.captionParams={};h=g.yC(g.xC(),65);null!=a.deviceCaptionsOn?d.captionParams.deviceCaptionsOn=a.deviceCaptionsOn:g.ZR(e)&&
(d.captionParams.deviceCaptionsOn=null!=h?!h:!1);a.xY&&(d.captionParams.deviceCaptionsLangPref=a.xY);a.IM.length?d.captionParams.viewerSelectedCaptionLangs=a.IM:g.ZR(e)&&(h=g.$Na(),null==h?0:h.length)&&(d.captionParams.viewerSelectedCaptionLangs=h);h="onesie"===a.fetchType&&a.L("html5_onesie_attach_po_token");f="onesie"!==a.fetchType&&a.L("html5_non_onesie_attach_po_token");if(h||f)a=a.U(),a.eg&&(d.serviceIntegrityDimensions={},d.serviceIntegrityDimensions.poToken=a.eg);e.L("fetch_att_independently")&&
(d.attestationRequest={omitBotguardData:!0});e.L("html5_enable_sabr_from_watch_server")&&(d.playbackContext||(d.playbackContext={}),d.playbackContext.devicePlaybackCapabilities={supportXhr:oR});return d};
XUa=function(a,b){var c,d,e;return g.H(function(f){if(1==f.j)return c={context:g.NUa(a.U()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:a.videoId,cpn:a.clientPlaybackNonce}}]},d=g.TG(WUa),g.z(f,g.GH(b,c,d),2);e=f.B;return f.return(e)})};
YUa=function(a,b,c){GNa(g.YI(b.experiments,"bg_vm_reinit_threshold"))&&XUa(a,c).then(function(d){d&&(d=d.botguardData)&&g.ONa(d,b)},function(d){a.Ma()||(d=qK(d),a.ma("attf",d.details))})};
GT=function(a,b){g.I.call(this);this.app=a;this.state=b};
IT=function(a,b,c){a.state.Y[b]=function(){return c.apply(a,g.Ia.apply(0,arguments))};
a.state.B.hasOwnProperty(b)||HT(a,b,c);a.state.Z.add(b)};
JT=function(a,b,c){a.state.qa[b]=function(){return c.apply(a,g.Ia.apply(0,arguments))};
a.state.B.hasOwnProperty(b)||HT(a,b,c);a.state.Z.add(b)};
HT=function(a,b,c){a.state.B[b]=function(){return c.apply(a,g.Ia.apply(0,arguments))}};
g.KT=function(a,b,c){return a.state.B[b].apply(a.state.B,g.qa(c))};
LT=function(){g.Nv.call(this);this.G=new Map};
ZUa=function(){g.I.apply(this,arguments);this.element=null;this.Z=new Set;this.Y={};this.qa={};this.B={};this.K={};this.G=void 0;this.ra=new Set;this.C=new LT;this.j=new LT;this.D=new LT;this.N=new LT};
$Ua=function(a,b,c){"string"===typeof a&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});a:{if((b=a.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}a.videoId=b;return MT(a)};
MT=function(a,b,c){if("string"===typeof a)return{videoId:a,startSeconds:b,suggestedQuality:c};b={};c=g.u(aVa);for(var d=c.next();!d.done;d=c.next())d=d.value,a[d]&&(b[d]=a[d]);return b};
bVa=function(a,b,c,d){if(g.bb(a)&&!Array.isArray(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}b={index:b,startSeconds:c,suggestedQuality:d};"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;return b};
NT=function(a,b,c){GT.call(this,a,b);this.playerType=c};
dVa=function(a){IT(a,"cueVideoById",a.A6);IT(a,"loadVideoById",a.e9);IT(a,"cueVideoByUrl",a.D6);IT(a,"loadVideoByUrl",a.h9);IT(a,"playVideo",a.Iba);IT(a,"pauseVideo",a.pauseVideo);IT(a,"stopVideo",a.dda);IT(a,"clearVideo",a.clearVideo);IT(a,"getVideoBytesLoaded",a.L7);IT(a,"getVideoBytesTotal",a.M7);IT(a,"getVideoLoadedFraction",a.vX);IT(a,"getVideoStartBytes",a.P7);IT(a,"cuePlaylist",a.cuePlaylist);IT(a,"loadPlaylist",a.d9);IT(a,"nextVideo",a.I9);IT(a,"previousVideo",a.Uba);IT(a,"playVideoAt",a.Hba);
IT(a,"setShuffle",a.setShuffle);IT(a,"setLoop",a.setLoop);IT(a,"getPlaylist",a.I7);IT(a,"getPlaylistIndex",a.getPlaylistIndex);IT(a,"getPlaylistId",a.getPlaylistId);IT(a,"loadModule",a.MY);IT(a,"unloadModule",a.n1);IT(a,"setOption",a.aS);IT(a,"getOption",a.D7);IT(a,"getOptions",a.DO);IT(a,"mute",a.H9);IT(a,"unMute",a.Cda);IT(a,"isMuted",a.isMuted);IT(a,"setVolume",a.Sca);IT(a,"getVolume",a.getVolume);IT(a,"seekTo",a.Fca);IT(a,"getPlayerMode",a.getPlayerMode);IT(a,"getPlayerState",a.G7);IT(a,"getAvailablePlaybackRates",
a.getAvailablePlaybackRates);IT(a,"getPlaybackQuality",function(){return a.getPlaybackQuality(1)});
IT(a,"setPlaybackQuality",a.Nca);IT(a,"getAvailableQualityLevels",a.r7);IT(a,"getCurrentTime",a.u7);IT(a,"getDuration",a.y7);IT(a,"addEventListener",a.R5);IT(a,"removeEventListener",a.jca);IT(a,"getDebugText",a.w7);IT(a,"getVideoData",function(){return cVa(a)});
IT(a,"addCueRange",a.N5);IT(a,"removeCueRange",a.removeCueRange);IT(a,"setSize",a.setSize);IT(a,"getApiInterface",a.getApiInterface);IT(a,"destroy",a.destroy);IT(a,"mutedAutoplay",a.mutedAutoplay);var b=a.app.U();b.K||(IT(a,"getVideoEmbedCode",a.getVideoEmbedCode),IT(a,"getVideoUrl",a.R7));IT(a,"getMediaReferenceTime",a.C7);IT(a,"getSize",a.getSize);IT(a,"setFauxFullscreen",a.Kca);b.K||IT(a,"logImaAdEvent",a.logImaAdEvent);IT(a,"preloadVideoById",a.Qba)};
eVa=function(a){var b=g.QR(a.app.U()),c,d=null==(c=a.app.getVideoData())?void 0:c.Pm;a=g.OT(a.app);return g.aC(b)&&!d||a?!1:!0};
cVa=function(a,b){var c={};if(b=g.PT(a.app,void 0===b?1:b)){b=b.getVideoData();if(b.isPrivate)return{};c.video_id=b.videoId;c.author=b.author;c.title=b.title;c.isPlayable=JUa(b);c.errorCode=b.errorCode;if(b.B&&b.B.video){c.video_quality=b.B.video.quality;b=b.B.video;var d=[];32<b.fps&&d.push("hfr");b.isHdr()&&d.push("hdr");"bt2020"===b.primaries&&d.push("wcg");c.video_quality_features=d}}if(a=a.getPlaylistId())c.list=a;return c};
fVa=function(a,b,c){NT.call(this,a,b,c)};
iVa=function(a,b){var c={};if(a.app.U().qa){a=g.u(gVa);for(var d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);b=c.raw_player_response;b||(a=c.player_response)&&(b=JSON.parse(a));delete c.player_response;delete c.raw_player_response;b&&(c.raw_player_response={streamingData:b.streamingData})}else for(a=g.u(hVa),d=a.next();!d.done;d=a.next())d=d.value,b.hasOwnProperty(d)&&(c[d]=b[d]);return c};
g.QT=function(a){return(a=jVa(a.app.yb()))?a.xi():null};
kVa=function(a,b,c){var d=a.app.df(c);if(!d)return 0;a=d-a.app.getCurrentTime(c);return b-a};
mVa=function(a){var b=void 0===b?5:b;return a?lVa[a]||b:b};
g.RT=function(a,b,c,d){NT.call(this,a,b,d);c&&(nVa(this),a.U().N&&(JT(this,"addEventListener",this.S5),JT(this,"removeEventListener",this.kca),JT(this,"cueVideoByPlayerVars",this.C6),JT(this,"loadVideoByPlayerVars",this.g9),JT(this,"preloadVideoByPlayerVars",this.Sba),JT(this,"loadVideoById",this.PY),JT(this,"loadVideoByUrl",this.QY),JT(this,"playVideo",this.hR),JT(this,"loadPlaylist",this.loadPlaylist),JT(this,"nextVideo",this.nextVideo),JT(this,"previousVideo",this.previousVideo),JT(this,"playVideoAt",
this.playVideoAt),JT(this,"getVideoData",this.uX),JT(this,"seekBy",this.Dca),JT(this,"seekTo",this.Gca),JT(this,"showControls",this.showControls),JT(this,"hideControls",this.hideControls),JT(this,"cancelPlayback",this.cancelPlayback),JT(this,"getProgressState",this.getProgressState),JT(this,"isInline",this.isInline),JT(this,"setInline",this.setInline),JT(this,"setLoopVideo",this.setLoopVideo),JT(this,"getLoopVideo",this.getLoopVideo),JT(this,"getVideoContentRect",this.getVideoContentRect),JT(this,
"getVideoStats",this.Q7),JT(this,"getCurrentTime",this.v7),JT(this,"getDuration",this.z7),JT(this,"getPlayerState",this.H7),JT(this,"getVideoLoadedFraction",this.O7),JT(this,"mute",this.OJ),JT(this,"unMute",this.vL),JT(this,"setVolume",this.cL),JT(this,"loadModule",this.loadModule),JT(this,"unloadModule",this.unloadModule),JT(this,"getOption",this.getOption),JT(this,"getOptions",this.getOptions),JT(this,"setOption",this.setOption),JT(this,"addCueRange",this.addCueRange),JT(this,"getDebugText",this.getDebugText),
JT(this,"getStoryboardFormat",this.getStoryboardFormat),JT(this,"toggleFullscreen",this.toggleFullscreen),JT(this,"isFullscreen",this.isFullscreen),JT(this,"getPlayerSize",this.getPlayerSize),JT(this,"toggleSubtitles",this.toggleSubtitles),JT(this,"setCenterCrop",this.setCenterCrop),JT(this,"setFauxFullscreen",this.setFauxFullscreen),JT(this,"setSizeStyle",this.setSizeStyle),JT(this,"handleGlobalKeyDown",this.handleGlobalKeyDown),JT(this,"handleGlobalKeyUp",this.handleGlobalKeyUp),JT(this,"wakeUpControls",
this.wakeUpControls)),dVa(this))};
nVa=function(a){HT(a,"getInternalApiInterface",a.getInternalApiInterface);HT(a,"addEventListener",a.Q5);HT(a,"removeEventListener",a.ica);HT(a,"cueVideoByPlayerVars",a.B6);HT(a,"loadVideoByPlayerVars",a.f9);HT(a,"preloadVideoByPlayerVars",a.Rba);HT(a,"getAdState",a.getAdState);HT(a,"sendAbandonmentPing",a.sendAbandonmentPing);HT(a,"setLoopRange",a.setLoopRange);HT(a,"getLoopRange",a.getLoopRange);HT(a,"setAutonavState",a.setAutonavState);HT(a,"seekTo",a.seekTo);HT(a,"seekBy",a.seekBy);HT(a,"seekToLiveHead",
a.seekToLiveHead);HT(a,"requestSeekToWallTimeSeconds",a.requestSeekToWallTimeSeconds);HT(a,"seekToStreamTime",a.seekToStreamTime);HT(a,"startSeekCsiAction",a.startSeekCsiAction);HT(a,"getStreamTimeOffset",a.getStreamTimeOffset);HT(a,"getVideoData",a.N7);HT(a,"setInlinePreview",a.setInlinePreview);HT(a,"getAppState",a.getAppState);HT(a,"updateLastActiveTime",a.updateLastActiveTime);HT(a,"setBlackout",a.setBlackout);HT(a,"setUserEngagement",a.setUserEngagement);HT(a,"updateSubtitlesUserSettings",a.updateSubtitlesUserSettings);
HT(a,"getPresentingPlayerType",a.FI);HT(a,"canPlayType",a.canPlayType);HT(a,"updatePlaylist",a.updatePlaylist);HT(a,"updateVideoData",a.updateVideoData);HT(a,"updateEnvironmentData",a.updateEnvironmentData);HT(a,"sendVideoStatsEngageEvent",a.Ica);HT(a,"productsInVideoVisibilityUpdated",a.productsInVideoVisibilityUpdated);HT(a,"setSafetyMode",a.setSafetyMode);HT(a,"isAtLiveHead",function(b){return a.isAtLiveHead(void 0,b)});
HT(a,"getVideoAspectRatio",a.getVideoAspectRatio);HT(a,"getPreferredQuality",a.getPreferredQuality);HT(a,"getPlaybackQualityLabel",a.getPlaybackQualityLabel);HT(a,"setPlaybackQualityRange",a.setPlaybackQualityRange);HT(a,"onAdUxClicked",a.onAdUxClicked);HT(a,"getFeedbackProductData",a.getFeedbackProductData);HT(a,"getStoryboardFrame",a.getStoryboardFrame);HT(a,"getStoryboardFrameIndex",a.getStoryboardFrameIndex);HT(a,"getStoryboardLevel",a.getStoryboardLevel);HT(a,"getNumberOfStoryboardLevels",a.getNumberOfStoryboardLevels);
HT(a,"getCaptionWindowContainerId",a.getCaptionWindowContainerId);HT(a,"getAvailableQualityLabels",a.getAvailableQualityLabels);HT(a,"addCueRange",a.addCueRange);HT(a,"addUtcCueRange",a.addUtcCueRange);HT(a,"showAirplayPicker",a.showAirplayPicker);HT(a,"dispatchReduxAction",a.dispatchReduxAction);HT(a,"getPlayerResponse",a.F7);HT(a,"getWatchNextResponse",a.S7);HT(a,"getHeartbeatResponse",a.A7);HT(a,"changeMarkerVisibility",a.changeMarkerVisibility);HT(a,"getCurrentTime",a.getCurrentTime);HT(a,"getDuration",
a.getDuration);HT(a,"getPlayerState",a.getPlayerState);HT(a,"getVideoLoadedFraction",a.getVideoLoadedFraction);HT(a,"getProgressState",a.getProgressState);HT(a,"getVolume",a.getVolume);HT(a,"setVolume",a.cL);HT(a,"isMuted",a.isMuted);HT(a,"mute",a.OJ);HT(a,"unMute",a.vL);HT(a,"loadModule",a.loadModule);HT(a,"unloadModule",a.unloadModule);HT(a,"getOption",a.getOption);HT(a,"getOptions",a.getOptions);HT(a,"setOption",a.setOption);HT(a,"loadVideoById",a.PY);HT(a,"loadVideoByUrl",a.QY);HT(a,"playVideo",
a.hR);HT(a,"loadPlaylist",a.loadPlaylist);HT(a,"nextVideo",a.nextVideo);HT(a,"previousVideo",a.previousVideo);HT(a,"playVideoAt",a.playVideoAt);HT(a,"getDebugText",a.getDebugText);HT(a,"getWebPlayerContextConfig",a.getWebPlayerContextConfig);HT(a,"notifyShortsAdSwipeEvent",a.notifyShortsAdSwipeEvent);HT(a,"getVideoContentRect",a.getVideoContentRect);HT(a,"setSqueezeback",a.setSqueezeback);HT(a,"setAutonav",a.setAutonav);HT(a,"isNotServable",a.isNotServable);HT(a,"channelSubscribed",a.channelSubscribed);
HT(a,"channelUnsubscribed",a.channelUnsubscribed);HT(a,"togglePictureInPicture",a.togglePictureInPicture);HT(a,"supportsGaplessAudio",a.supportsGaplessAudio);HT(a,"supportsGaplessShorts",a.supportsGaplessShorts);HT(a,"enqueueVideoByPlayerVars",function(b){return void a.enqueueVideoByPlayerVars(b)});
HT(a,"clearQueue",a.clearQueue);HT(a,"getAudioTrack",a.n7);HT(a,"setAudioTrack",a.setAudioTrack);HT(a,"getAvailableAudioTracks",a.q7);HT(a,"getMaxPlaybackQuality",a.getMaxPlaybackQuality);HT(a,"getUserPlaybackQualityPreference",a.getUserPlaybackQualityPreference);HT(a,"getSubtitlesUserSettings",a.getSubtitlesUserSettings);HT(a,"resetSubtitlesUserSettings",a.resetSubtitlesUserSettings);HT(a,"setMinimized",a.setMinimized);HT(a,"setOverlayVisibility",a.setOverlayVisibility);HT(a,"confirmYpcRental",a.confirmYpcRental);
HT(a,"toggleSubtitlesOn",a.toggleSubtitlesOn);HT(a,"isSubtitlesOn",a.isSubtitlesOn);HT(a,"queueNextVideo",a.queueNextVideo);HT(a,"handleExternalCall",a.handleExternalCall);HT(a,"logApiCall",a.logApiCall);HT(a,"isExternalMethodAvailable",a.isExternalMethodAvailable);HT(a,"setScreenLayer",a.setScreenLayer);HT(a,"getCurrentPlaylistSequence",a.getCurrentPlaylistSequence);HT(a,"getPlaylistSequenceForTime",a.getPlaylistSequenceForTime);HT(a,"shouldSendVisibilityState",a.shouldSendVisibilityState);HT(a,
"syncVolume",a.syncVolume);HT(a,"highlightSettingsMenuItem",a.highlightSettingsMenuItem);HT(a,"openSettingsMenuItem",a.openSettingsMenuItem);HT(a,"getEmbeddedPlayerResponse",a.getEmbeddedPlayerResponse);HT(a,"getVisibilityState",a.getVisibilityState);HT(a,"isMutedByMutedAutoplay",a.isMutedByMutedAutoplay);HT(a,"setGlobalCrop",a.setGlobalCrop);HT(a,"setInternalSize",a.setInternalSize);HT(a,"setFauxFullscreen",a.setFauxFullscreen)};
pVa=function(a){a.state.G||(a.state.G={addEventListener:function(b,c){oVa(a,b,c)},
removeEventListener:function(b,c){c="string"===typeof c?b+c:b+String(g.fb(c));var d=a.state.K[c];d&&(a.state.j.unsubscribe(b,d),delete a.state.K[c])}});
return a.state.G};
oVa=function(a,b,c){var d="string"===typeof c?b+c:b+String(g.fb(c));if(!a.state.K[d]){var e=function(f){c({target:a.state.G,data:f})};
a.state.K[d]=e;a.state.j.subscribe(b,e)}};
TT=function(a,b,c){a=g.ST(a.Ne(),b);return c?(c.addOnDisposeCallback(a),null):a};
g.UT=function(a,b,c){return a.app.U().Re?b:g.KJ("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:c})};
qVa=function(a){a.Ne().element.setAttribute("aria-live","polite")};
g.VT=function(a,b){g.RT.call(this,a,b,!1)};
g.WT=function(a){a=a.yb();var b=a.Ge.get("endscreen");return b&&b.ju()?!0:a.mG()};
g.XT=function(a,b){3===a.getPresentingPlayerType()?a.publish("mdxautoplaycancel"):a.gb("onAutonavCancelled",b)};
g.$T=function(a){var b=ZT(a.yb());return a.app.wi&&!a.isFullscreen()||3===a.getPresentingPlayerType()&&b&&b.Pk()&&b.xp()||!!a.getPlaylist()};
g.rVa=function(a,b,c){g.KT(a,"addEmbedsConversionTrackingParams",[b]);g.eP(b,c)};
g.bU=function(a){return(a=g.aU(a.yb()))?a.II():{}};
g.sVa=function(a){a=(a=a.getVideoData())&&a.B;return!!a&&!(!a.audio||!a.video)&&"application/x-mpegURL"!==a.mimeType};
g.cU=function(a,b,c){a=a.kb().element;var d=Ub(a.children,function(e){e=Number(e.getAttribute("data-layer"));return c-e||1});
0>d&&(d=-(d+1));Ef(a,b,d);b.setAttribute("data-layer",String(c))};
g.dU=function(a){var b=a.U();if(!b.Ae)return!1;var c=a.getVideoData();if(!c||3===a.getPresentingPlayerType())return!1;var d=(!c.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay"))&&!DT(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.Pk();var f=c.Ra&&c.Ra.playerOverlays||null;f=!!(f&&f.playerOverlayRenderer&&f.playerOverlayRenderer.autoplay);f=c.Kf&&f;return!c.ypcPreview&&(!d||e)&&!g.Fb(c.Da,"ypc")&&
!a&&(!g.IR(b)||f)};
tVa=function(a){a=g.PT(a.app);if(!a)return!1;var b=a.getVideoData();if(!b.B||!b.B.video||1080>b.B.video.j||b.O1)return!1;var c=/^qsa/.test(b.clientPlaybackNonce),d="r";0<=b.B.id.indexOf(";")&&(c=/^[a-p]/.test(b.clientPlaybackNonce),d="x");return c?(a.ma("iqss",{trigger:d},!0),!0):!1};
uVa=function(){wC.apply(this,arguments);this.requestHeaders={}};
eU=function(){vVa||(vVa=new uVa);return vVa};
fU=function(a,b){b?a.requestHeaders.Authorization="Bearer "+b:delete a.requestHeaders.Authorization};
g.gU=function(a,b,c,d){d=void 0===d?!1:d;g.EF.call(this,b);var e=this;this.J=a;this.Ga=d;this.N=new g.vK(this);this.qa=new g.gG(this,c,!0,void 0,void 0,function(){e.SW()});
g.O(this,this.N);g.O(this,this.qa)};
wVa=function(a){a.B&&(document.activeElement&&g.Nf(a.element,document.activeElement)&&a.B.focus(),a.B.setAttribute("aria-expanded","false"),a.B=void 0);g.pC(a.N);a.Y=void 0};
hU=function(a,b,c){a.Wj()?a.Lb():a.od(b,c)};
xVa=function(a,b,c,d){d=new g.W({I:"div",Ka:["ytp-linked-account-popup-button"],xa:d,X:{role:"button",tabindex:"0"}});b=new g.W({I:"div",S:"ytp-linked-account-popup",X:{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.gU.call(this,a,{I:"div",S:"ytp-linked-account-popup-container",V:[b]},100);var e=this;this.dialog=b;g.O(this,this.dialog);
d.listen("click",function(){e.Lb()});
g.O(this,d);g.cU(this.J,this.element,4);this.hide()};
g.iU=function(a,b,c,d){g.EF.call(this,a);this.priority=b;c&&this.zk(c);d&&this.Ld(d)};
g.jU=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");var d=a;"role"in d||(d.role="menuitem");c||(d=a,"tabindex"in d||(d.tabindex="0"));return{I:c?"a":"div",Ka:b,X: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}}"}]}};
kU=function(a){g.iU.call(this,g.jU({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.J=a;this.B=this.j=!1;this.Fb=a.tp();a.createServerVe(this.element,this,!0);this.T(this.J,"settingsMenuVisibilityChanged",function(c){b.Hc(c)});
this.T(this.J,"videodatachange",this.D);this.listen("click",this.onClick);this.D()};
lU=function(a){return a?g.HF(a):""};
mU=function(a){g.I.call(this);this.api=a};
nU=function(a){mU.call(this,a);var b=this;HT(a,"setAccountLinkState",function(c){b.setAccountLinkState(c)});
HT(a,"updateAccountLinkingConfig",function(c){b.updateAccountLinkingConfig(c)});
a.addEventListener("videodatachange",function(c,d){b.onVideoDataChange(d)});
a.addEventListener("settingsMenuInitialized",function(){b.menuItem=new kU(b.api);g.O(b,b.menuItem)})};
yVa=function(a){this.api=a;this.j={}};
oU=function(a,b,c,d){b in a.j||(c=new g.DJ(c,d,{id:b,priority:2,namespace:"appad"}),a.api.lf([c],1),a.j[b]=c)};
zVa=function(a){mU.call(this,a);var b=this;this.events=new g.vK(this);g.O(this,this.events);this.j=new yVa(this.api);this.events.T(this.api,"legacyadtrackingpingreset",function(){b.j.j={}});
this.events.T(this.api,"legacyadtrackingpingchange",function(c){var d=b.j;oU(d,"part2viewed",1,0x8000000000000);oU(d,"engagedview",Math.max(1,1E3*c.Gb),0x8000000000000);c.isLivePlayback||(c=1E3*c.lengthSeconds,oU(d,"videoplaytime25",.25*c,c),oU(d,"videoplaytime50",.5*c,c),oU(d,"videoplaytime75",.75*c,c),oU(d,"videoplaytime100",c,0x8000000000000),oU(d,"conversionview",c,0x8000000000000),oU(d,"videoplaybackstart",1,c),oU(d,"videoplayback2s",2E3,c),oU(d,"videoplayback10s",1E4,c))});
this.events.T(this.api,g.EJ("appad"),this.B);this.events.T(this.api,g.FJ("appad"),this.B)};
DVa=function(a,b,c){if(!(c in b))return!1;b=b[c];Array.isArray(b)||(b=[b]);b=g.u(b);for(c=b.next();!c.done;c=b.next()){c=c.value;var d={CPN:a.api.getVideoData().clientPlaybackNonce};c=g.Wu(c,d);d=void 0;d=void 0===d?!1:d;(d=xJ(yJ(c,AVa,null),c,d,"Active View 3rd Party Integration URL"))||(d=void 0,d=void 0===d?!1:d,d=xJ(yJ(c,BVa,null),c,d,"Google/YouTube Brand Lift URL"));d||(d=void 0,d=void 0===d?!1:d,d=xJ(yJ(c,CVa,null),c,d,"Nielsen OCR URL"));g.UD(c,void 0,d)}return!0};
pU=function(a,b){EVa(a,b).then(function(c){g.UD(b,void 0,void 0,c)})};
qU=function(a,b){b.forEach(function(c){pU(a,c)})};
EVa=function(a,b){return g.iJ(a.api.U())&&qB(b)&&pB(b)?g.gS(a.api.U(),g.xT(a.api.getVideoData())).then(function(c){var d;c&&(d={Authorization:"Bearer "+c});return d},void 0):IB()};
FVa=function(a){mU.call(this,a);this.events=new g.vK(a);g.O(this,this.events);this.events.T(a,"videoready",function(b){if(1===a.getPresentingPlayerType()){var c,d,e={playerDebugData:{pmlSignal:!!(null==(c=b.getPlayerResponse())?0:null==(d=c.adPlacements)?0:d.some(function(f){var h;return null==f?void 0:null==(h=f.adPlacementRenderer)?void 0:h.renderer})),
contentCpn:b.clientPlaybackNonce}};g.MC("adsClientStateChange",e)}})};
HVa=function(a){g.W.call(this,{I:"button",Ka:["ytp-button"],X:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{I:"div",S:"ytp-autonav-toggle-button-container",V:[{I:"div",S:"ytp-autonav-toggle-button",X:{"aria-checked":"true"}}]}]});this.J=a;this.B=[];this.j=!1;this.isChecked=!0;a.createClientVe(this.element,this,113681);this.T(a,"presentingplayerstatechange",this.uC);this.listen("click",this.onClick);this.J.U().L("web_player_autonav_toggle_always_listen")&&
GVa(this);TT(a,this.element,this);this.uC()};
GVa=function(a){a.B.push(a.T(a.J,"videodatachange",a.uC));a.B.push(a.T(a.J,"videoplayerreset",a.uC));a.B.push(a.T(a.J,"onPlaylistUpdate",a.uC));a.B.push(a.T(a.J,"autonavchange",a.AU))};
IVa=function(a){a.isChecked=a.isChecked;a.Fa("ytp-autonav-toggle-button").setAttribute("aria-checked",String(a.isChecked));var b=a.isChecked?"Otomatik oynatma a\u00e7\u0131k":"Otomatik oynatma kapal\u0131";a.updateValue("title",b);a.updateValue("label",b);a.J.Ph()};
JVa=function(a){return a.J.U().L("web_player_autonav_use_server_provided_state")&&VTa(a.Nd())};
KVa=function(a){mU.call(this,a);var b=this;this.events=new g.vK(a);g.O(this,this.events);this.events.T(a,"standardControlsInitialized",function(){var c=new HVa(a);g.O(b,c);a.Jy(c)})};
rU=function(a,b){g.iU.call(this,g.jU({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)};
sU=function(a,b){a.checked=b;a.element.setAttribute("aria-checked",String(a.checked))};
LVa=function(a){var b=!a.U().wk&&3!==a.getPresentingPlayerType();return a.isFullscreen()||b};
g.tU=function(a,b,c,d){var e=a.currentTarget;if((void 0===c||!c)&&g.DG(a))return a.preventDefault(),!0;b.pauseVideo();a=e.getAttribute("href");g.Zxa(a,d,!0);return!1};
g.uU=function(a,b,c){if(WR(b.U())&&2!==b.getPresentingPlayerType()){if(g.DG(c))return b.isFullscreen()&&!b.U().externalFullscreen&&b.toggleFullscreen(),c.preventDefault(),!0}else{var d=g.DG(c);d&&b.pauseVideo();g.Zxa(a,void 0,!0);d&&(g.NG(a),c.preventDefault())}return!1};
NVa=function(){var a=MVa.includes("tr")?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,X:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,X:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};a.S="ytp-subtitles-button-icon";return a};
OVa=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"}]}]}]}};
PVa=function(a){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(a),a=window.getSelection())&&(a.removeAllRanges(),a.addRange(b))}};
wU=function(a){var b=a.L("web_player_use_cinematic_label_2")?"Ambiyans modu":"Sinematik \u0131\u015f\u0131kland\u0131rma";rU.call(this,b,g.vU.s2);var c=this;this.J=a;this.j=!1;this.B=new g.lv(function(){g.wv(c.element,"ytp-menuitem-highlighted")},0);
this.Fb=a.tp();this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.C,this);this.listen(QVa,this.D);g.O(this,this.B)};
SVa=function(a){mU.call(this,a);var b=this;this.j=!1;a.addEventListener("settingsMenuInitialized",function(){RVa(b)});
a.addEventListener("highlightSettingsMenu",function(c){RVa(b);var d=b.menuItem;"menu_item_cinematic_lighting"===c&&(g.uv(d.element,"ytp-menuitem-highlighted"),g.uv(d.element,"ytp-menuitem-highlight-transition-enabled"),d.B.start())});
HT(a,"updateCinematicSettings",function(c){b.updateCinematicSettings(c)})};
RVa=function(a){a.menuItem||(a.menuItem=new wU(a.api),g.O(a,a.menuItem),a.menuItem.Sa(a.j))};
xU=function(a,b,c,d){rU.call(this,"Sabit ses",g.vU.t5);g.uv(this.element,"ytp-drc-menu-item");this.Fb=a.tp();this.C=b;this.j=c;this.hasDrcAudioTrack=d;a.addEventListener("videodatachange",this.onVideoDataChange.bind(this));a=1===this.j()&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",
fill:"white"}}]});this.subscribe("select",this.B,this);sU(this,a);this.Fb.Rc(this)};
yU=function(a){mU.call(this,a);var b=this;this.events=new g.vK(a);g.O(this,this.events);a.L("html5_show_drc_toggle")&&a.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new xU(b.api,b.setDrcUserPreference.bind(b),b.getDrcUserPreference.bind(b),b.B.bind(b)),g.O(b,b.menuItem))});
HT(this.api,"setDrcUserPreference",function(d){b.setDrcUserPreference(d)});
HT(this.api,"getDrcUserPreference",function(){return b.getDrcUserPreference()});
HT(this.api,"hasDrcAudioTrack",function(){return b.B()});
var c;this.j=null!=(c=g.tC("yt-player-drc-pref"))?c:1;this.updateEnvironmentData()};
zU=function(a){mU.call(this,a);var b=this;this.j={};this.events=new g.vK(a);g.O(this,this.events);this.events.T(a,"videodatachange",function(){b.onVideoDataChange()});
this.events.T(a,g.EJ("embargo"),function(c){b.api.qo(!0);var d,e=null!=(d=b.j[c.id])?d:[];d=g.u(e);for(e=d.next();!e.done;e=d.next()){var f=e.value;b.api.hideControls();b.api.cg("auth",2,"This video isn't available in your current playback area",nK({embargoed:1,id:c.id,idx:c.B,start:c.start}));e=void 0;(f=null==(e=f.embargo)?void 0:e.onTrigger)&&b.api.gb("innertubeCommand",f)}})};
TVa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.B)};
UVa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=Number(null==(d=c.playbackPosition)?void 0:d.utcTimeMillis)/1E3,f=void 0;d=e+Number(null==(f=c.duration)?void 0:f.seconds);f="embargo_"+e;a.api.addUtcCueRange(f,e,d,"embargo",!1);c.onEnter&&(a.j[f]=c.onEnter.filter(a.B))}};
VVa=function(a){mU.call(this,a);var b=this;this.j=[];this.events=new g.vK(a);g.O(this,this.events);HT(a,"addEmbedsConversionTrackingParams",function(c){b.api.U().Qo&&b.addEmbedsConversionTrackingParams(c)});
this.events.T(a,"veClickLogged",function(c){b.api.hasVe(c)&&(c=yk(c.visualElement.getAsJspb(),2),b.j.push(c))})};
WVa=function(a){mU.call(this,a);var b=this;this.events=new g.vK(a);g.O(this,this.events);this.events.T(a,"initialvideodatacreated",function(c){YO(XO(),16623);b.j=g.aF();var d=a.U().Mh&&!c.Tf;if(wT(c)&&d){YO(XO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(c.getWatchNextResponse()){var e,f=null==(e=c.getWatchNextResponse())?void 0:e.trackingParams;f&&$O(f)}if(c.getPlayerResponse()){var h;(c=null==(h=c.getPlayerResponse())?void 0:h.trackingParams)&&$O(c)}}else YO(XO(),
32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),c.getEmbeddedPlayerResponse()&&(h=null==(f=c.getEmbeddedPlayerResponse())?void 0:f.trackingParams)&&$O(h)});
this.events.T(a,"loadvideo",function(){YO(XO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
this.events.T(a,"cuevideo",function(){YO(XO(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})});
this.events.T(a,"largeplaybuttonclicked",function(c){YO(XO(),27240,c.visualElement)});
this.events.T(a,"playlistnextbuttonclicked",function(c){YO(XO(),27240,c.visualElement)});
this.events.T(a,"playlistprevbuttonclicked",function(c){YO(XO(),27240,c.visualElement)});
this.events.T(a,"playlistautonextvideo",function(){YO(XO(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})};
XVa=function(a){var b;return(null==(b=((null==a?void 0:a.messageRenderers)||[]).find(function(c){return!!c.timeCounterRenderer}))?void 0:b.timeCounterRenderer)||null};
AU=function(a){g.W.call(this,{I:"div",Ka:["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)};
ZVa=function(a,b){a.j||(a.B=b,a.C=(0,g.$C)(),a.j=new g.jv(function(){YVa(a)},null),YVa(a))};
YVa=function(a){var b=Math,c=b.round,d=Math.min((0,g.$C)()-a.C,a.B);b=c.call(b,(a.B-d)/1E3);a.updateValue("duration",fJa({seconds:b}));0>=b&&a.j?$Va(a):a.j&&a.j.start()};
$Va=function(a){a.j&&(a.j.dispose(),a.j=null)};
aWa=function(a){mU.call(this,a);var b=this;this.events=new g.vK(a);g.O(this,this.events);this.events.T(a,"basechromeinitialized",function(){b.j=new AU(a);g.O(b,b.j);g.cU(a,b.j.element,4);b.j.hide()})};
BU=function(a){g.W.call(this,{I:"button",Ka:["ytp-fullerscreen-edu-button","ytp-button"],V:[{I:"div",Ka:["ytp-fullerscreen-edu-text"],xa:"Ayr\u0131nt\u0131lar i\u00e7in kayd\u0131r\u0131n"},{I:"div",Ka:["ytp-fullerscreen-edu-chevron"],V:[{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],X:{"data-priority":"1"}});this.Ua=a;this.j=new g.gG(this,250,void 0,100);this.C=this.B=!1;a.createClientVe(this.element,
this,61214);g.O(this,this.j);this.T(a,"fullscreentoggled",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);this.listen("click",this.onClick);this.Sa()};
CU=function(a){mU.call(this,a);var b=this;this.events=new g.vK(a);g.O(this,this.events);HT(this.api,"updateFullerscreenEduButtonSubtleModeState",function(d){b.updateFullerscreenEduButtonSubtleModeState(d)});
HT(this.api,"updateFullerscreenEduButtonVisibility",function(d){b.updateFullerscreenEduButtonVisibility(d)});
var c=a.U();a.L("external_fullscreen_with_edu")&&c.externalFullscreen&&WR(c)&&"1"===c.controlsType&&this.events.T(a,"standardControlsInitialized",function(){b.j=new BU(a);g.O(b,b.j);a.Jy(b.j)})};
bWa=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",Ka:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],X:{"aria-label":"Kapat"},V:[g.LF()]},{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.gb("onCloseMiniplayer")});
this.hide()};
dWa=function(a,b){var c=0;c=0;for(var d={};c<b.length;d={vH:void 0},c++){var e=a.j[c],f=void 0,h=null==(f=e)?void 0:f.element;h||(h=new g.W({I:"button",S:"ytp-gated-actions-overlay-button",X:{tabindex:"0"},V:[{I:"div",S:"ytp-gated-actions-overlay-button-title",xa:"{{buttonText}}"}]}),g.O(a,h),h.Ja(a.B),e={element:h});d.vH=g.V(b[c],cWa);var l=f=void 0,m=void 0,n=(null==(f=d.vH)?void 0:f.title)||(null==(l=d.vH)?void 0:null==(m=l.titleFormatted)?void 0:m.content)||"";h.update({buttonText:n});e.listener&&
h.Pc(e.listener);e.listener=h.listen("click",function(p){return function(){var q,r=g.V(null==(q=p.vH)?void 0:q.onTap,hF);r&&a.api.gb("innertubeCommand",r)}}(d));
a.j[c]=e}for(;c<a.j.length;)a.j.pop().element.dispose()};
eWa=function(a){mU.call(this,a);var b=this;this.events=new g.vK(a);g.O(this,this.events);this.j=new bWa(this.api);g.O(this,this.j);this.events.T(a,"videodatachange",function(){var c,d=null==(c=b.api.getVideoData())?void 0:c.A8;c=b.j;if(d){var e,f,h=(null==(e=d.title)?void 0:e.content)||"";e=(null==(f=d.subtitle)?void 0:f.content)||"";c.update({title:h,subtitle:e});h=d.thumbnail;f="none";if(null==h?0:h.sources){e=0;h=g.u(h.sources);for(var l=h.next();!l.done;l=h.next())l=l.value,l.width&&l.url&&l.width>
e&&(e=l.width,f="url("+l.url+")")}c.background.style.backgroundImage=f;dWa(c,d.actionButtons||[]);c.show()}else c.hide()});
g.cU(this.api,this.j.element,4)};
fWa=function(a){mU.call(this,a);var b=a.U();b.zj=!1;b.Za=!1;b.Pm=!1;JT(a,"resetSubtitlesUserSettings",function(){a.resetSubtitlesUserSettings()});
JT(a,"getSubtitlesUserSettings",function(){return a.getSubtitlesUserSettings()});
JT(a,"updateSubtitlesUserSettings",function(c){a.updateSubtitlesUserSettings(c)})};
gWa=function(a){mU.call(this,a);a=a.U();a.oh.push("flix");a.Za=!1;a.zj=!1};
DU=function(a){mU.call(this,a);var b=this;JT(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()});
JT(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.qa(g.Ia.apply(0,arguments)))});
IT(this.api,"getSphericalProperties",function(){return 2===b.api.getPresentingPlayerType()?{}:b.getSphericalProperties()});
IT(this.api,"setSphericalProperties",function(){var c=g.Ia.apply(0,arguments);2!==b.api.getPresentingPlayerType()&&b.setSphericalProperties.apply(b,g.qa(c))})};
hWa=function(a){mU.call(this,a);HT(a,"createClientVe",this.createClientVe.bind(this));HT(a,"createServerVe",this.createServerVe.bind(this));HT(a,"destroyVe",this.destroyVe.bind(this));HT(a,"hasVe",this.hasVe.bind(this));HT(a,"logClick",this.logClick.bind(this));HT(a,"logVisibility",this.logVisibility.bind(this));HT(a,"setTrackingParams",this.setTrackingParams.bind(this))};
EU=function(a){mU.call(this,a);var b=this;this.events=new g.vK(a);g.O(this,this.events);HT(this.api,"seekToChapterWithAnimation",function(c){b.seekToChapterWithAnimation(c)});
HT(this.api,"seekToTimeWithAnimation",function(c,d){b.seekToTimeWithAnimation(c,d)});
HT(this.api,"setMacroMarkers",function(c){b.setMacroMarkers(a,c)})};
iWa=function(a,b,c){var d=1E3*a.api.getCurrentTime()<b?1:-1;a.api.NF(d,c);a.api.seekTo(b/1E3,void 0,void 0,void 0,3)};
lWa=function(a){mU.call(this,a);var b=this;this.events=new g.vK(a);g.O(this,this.events);this.events.T(a,"videodatachange",function(){jWa(b)});
this.events.T(a,"presentingplayerstatechange",function(){kWa(b)})};
FU=function(a,b){navigator.mediaSession.setActionHandler(a,b)};
jWa=function(a){var b=a.api.getVideoData();if(null!=b&&b.qe()){var c=a.api.U(),d=[],e="";if(!c.qa){var f=mWa(a);g.JG(c)&&f?(d=nWa(f.thumbnailDetails),f.album&&(e=hJa(f.album))):d=[{src:b.Yg("mqdefault.jpg")||"",sizes:"320x180",type:"image/jpeg"}]}kWa(a);oWa(a);navigator.mediaSession.metadata=new MediaMetadata({title:b.title,artist:b.author,artwork:d,album:e});c=b=null;g.$T(a.api)&&(b=function(){a.api.nextVideo()},c=function(){a.api.previousVideo()});
FU("nexttrack",b);FU("previoustrack",c)}};
oWa=function(a){FU("play",function(){a.api.playVideo()});
FU("pause",function(){a.api.pauseVideo()});
FU("seekbackward",function(){a.api.seekBy(-5*a.api.getPlaybackRate())});
FU("seekforward",function(){a.api.seekBy(5*a.api.getPlaybackRate())})};
mWa=function(a){var b,c,d,e;return null==(b=a.api.getVideoData().getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:null==(e=d.browserMediaSession)?void 0:e.browserMediaSessionRenderer};
nWa=function(a){var b=[];if(!a||!a.thumbnails)return b;a=g.u(a.thumbnails);for(var c=a.next();!c.done;c=a.next())c=c.value,c.url&&(!c.width||0>=c.width||!c.height||0>=c.height||g.AJ(c.url)&&b.push({src:c.url||"",sizes:c.width+"x"+c.height,type:"image/jpeg"}));return b};
kWa=function(a){a=a.api.Qb();a=a.isCued()||a.isError()?"none":g.oL(a)?"playing":"paused";navigator.mediaSession.playbackState=a};
GU=function(a){mU.call(this,a);var b=this;this.B=new Map;this.C=this.j=void 0;this.compositeVideoState=null;this.events=new g.vK(a);g.O(this,this.events);this.events.T(a,"modulecreated",function(c){var d;a:{var e,f,h,l=null==(e=b.api.getVideoData())?void 0:null==(f=e.getPlayerResponse())?void 0:null==(h=f.overlay)?void 0:h.playerControlsOverlayRenderer;if(l&&(e=g.V(l.compositeVideoOverlay,pWa),null==e?0:null==(d=e.sources)?0:d.length))for(d=g.u(null==e?void 0:e.sources),e=d.next();!e.done;e=d.next())if(e=
e.value,e.isActive){d=e;break a}d=void 0}"captions"===c&&void 0!==(null==d?void 0:d.topLeftCornerX)&&void 0!==(null==d?void 0:d.topLeftCornerY)&&void 0!==(null==d?void 0:d.width)&&void 0!==(null==d?void 0:d.height)&&b.api.xL({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=null==d?void 0:d.QL.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==e?0:e.length)?qWa(b,e.filter(function(f){return rWa(b,f)})):(null==d?0:d.cueRanges)&&qWa(b,d.cueRanges.filter(function(f){return rWa(b,f)}));
"dataupdated"===c&&(null==d?void 0:d.compositeLiveStatusToken)!==b.C&&(b.C=null==d?void 0:d.compositeLiveStatusToken,b.api.Fo())});
this.events.T(a,g.EJ("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)!==c.id&&(b.api.qo(!0),b.B.has(c.id))){var e=b.B.get(c.id);d=b.api.getVideoData();e=g.u(e);for(var f=e.next();!f.done;f=e.next()){var h=void 0;f=null==(h=f.value.compositeEmbargo)?void 0:h.embargoStatusToken;d.Cr!==f&&(d.Cr=f,b.api.Fo());sWa(b,c)}}});
this.events.T(a,g.FJ("compositeembargo"),function(c){var d;if((null==(d=b.j)?void 0:d.id)===c.id&&(b.api.qo(!1),b.B.has(c.id))){if(c=b.api.getVideoData())c.Cr=void 0;b.api.Fo();sWa(b)}});
this.events.T(a,"heartbeatRequest",function(c){null!==b.compositeVideoState&&(c.playbackState||(c.playbackState={}),c.playbackState.compositeVideoState=b.compositeVideoState)});
this.events.T(a,"onPlaybackAudioChange",function(){b.api.Fo()});
HT(a,"setCompositeParam",function(c){b.compositeVideoState=c})};
sWa=function(a,b){var c;(null==(c=a.j)?void 0:c.id)!==(null==b?void 0:b.id)&&(a.j&&(a.B.delete(a.j.id),a.api.xo([a.j],1)),a.j=b)};
qWa=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=void 0;c=Number(null==(e=d.playbackRelativePosition)?void 0:e.utcTimeMs)/1E3;var f=void 0;e=c+Number(null==(f=d.duration)?void 0:f.seconds);f="composite_embargo_"+c;d.onEnter&&(d=d.onEnter.filter(a.D),d.length&&(a.B.set(f,d),a.api.addUtcCueRange(f,c,e,"compositeembargo",!1)))}};
rWa=function(a,b){var c;return null==(c=b.onEnter)?void 0:c.some(a.D)};
tWa=function(a){mU.call(this,a);HT(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));HT(this.api,"updateDownloadState",this.updateDownloadState.bind(this));HT(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));HT(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));HT(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));HT(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this))};
HU=function(a){mU.call(this,a);var b=this;HT(a,"getAvailableQualityData",function(){return b.getAvailableQualityData()});
HT(a,"getAvailableQualityDataAndMessaging",function(){return b.getAvailableQualityDataAndMessaging()})};
uWa=function(a,b,c){var d=[],e=b?156595:151874;a=g.u(a);for(var f=a.next();!f.done;f=a.next()){var h=f.value;f=h.video;h={formatId:h.id,qualityLabel:f.qualityLabel,quality:f.quality,isPlayable:b};if(f=c.get(f.qualityLabel))h.paygatedQualityDetails={paygatedIndicatorText:f.paygatedIndicatorText,endpoint:f.endpoint,veType:e,trackingParams:f.trackingParams};d.push(h)}return d};
vWa=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++}};
wWa=function(a){var b=new Set,c=new Map,d={};a=g.u(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.quality,h=e.isPlayable,l=e.qualityLabel;l&&f&&(h&&c.has(f)&&c.get(f)!==l?b.add(f):h&&c.set(f,l),d[l]||(d[l]=e))}c=[];d=g.u(Object.values(d));for(a=d.next();!a.done;a=d.next())e=a.value,(a=e.quality)&&!b.has(a)&&(e.formatId=void 0),c.push(e);return c};
IU=function(a){g.W.call(this,{I:"button",Ka:["ytp-pip-button","ytp-button"],X:{title:"{{title}}","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},V:[cxa()]});var b=this;this.api=a;this.listen("click",this.onClick);var c=this.api.Fn(),d=c.subscribe("visibilitystatechange",function(){b.Sa(c.xt())});
this.addOnDisposeCallback(function(){c.Jh(d)});
TT(a,this.element,this);this.Sa(c.xt())};
xWa=function(a){mU.call(this,a);var b=this;this.events=new g.vK(a);g.O(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.createButton()})};
yWa=function(a){var b=a.api.getVideoData();g.DF(a.button,b.oV)};
zWa=function(a){mU.call(this,a);var b=this;this.events=new g.vK(a);g.O(this,this.events);HT(this.api,"musicDisableUi",function(){g.uv(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")});
HT(this.api,"musicEnableUi",function(){g.wv(b.api.getRootNode(),"ytp-player-in-bar-disable-ui")})};
LU=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?!1:c;g.W.call(this,{I:"div",S:"ytp-suggested-action"});var d=this;this.J=a;this.zb=this.Y=this.Ba=this.G=this.D=this.qa=this.expanded=this.enabled=this.Va=!1;this.bb=new g.lv(function(){d.badge.element.style.width=""},200,this);
this.Na=new g.lv(function(){JU(d);KU(d)},200,this);
this.dismissButton=new g.W({I:"button",Ka:["ytp-suggested-action-badge-dismiss-button-icon","ytp-button"]});g.O(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.O(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.O(this,this.La);this.badge=new g.W({I:c?"div":
"button",Ka:["ytp-button","ytp-suggested-action-badge","ytp-suggested-action-badge-with-controls"],V:[this.La,this.C]});g.O(this,this.badge);this.badge.Ja(this.element);this.ra=new g.gG(this.badge,250,!1,100);g.O(this,this.ra);this.Za=new g.gG(this.C,250,!1,100);g.O(this,this.Za);this.rb=new g.jv(this.Zca,null,this);g.O(this,this.rb);this.Wa=new g.jv(this.Y6,null,this);g.O(this,this.Wa);g.O(this,this.bb);g.O(this,this.Na);this.J.createServerVe(this.badge.element,this.badge,!0);this.J.createServerVe(this.dismissButton.element,
this.dismissButton,!0);this.T(this.J,"onHideControls",function(){d.VJ(!1)});
this.T(this.J,"onShowControls",function(){d.VJ(!0)});
this.T(this.badge.element,"click",this.YE);this.T(this.dismissButton.element,"click",this.Qt);this.T(this.J,"pageTransition",this.BU);this.T(this.J,"appresize",this.Bk);this.T(this.J,"fullscreentoggled",this.y$);this.T(this.J,"cardstatechange",this.f$);this.T(this.J,"annotationvisibility",this.Ida,this);this.T(this.J,"offlineslatestatechange",this.Jda,this)};
JU=function(a){g.yv(a.badge.element,"ytp-suggested-action-badge-with-controls",a.Ba||!a.qa)};
KU=function(a,b){var c=a.eL();a.expanded!==c&&(a.expanded=c,void 0===b||b?(a.rb.stop(),a.Wa.stop(),a.bb.stop(),a.rb.start()):(g.DF(a.C,a.expanded),g.yv(a.badge.element,"ytp-suggested-action-badge-expanded",a.expanded)),AWa(a))};
AWa=function(a){a.D&&a.J.logVisibility(a.badge.element,a.zx());a.G&&a.J.logVisibility(a.dismissButton.element,a.zx()&&a.eL())};
BWa=function(a){var b=a.text||"",c=g.tf("ytp-suggested-action-badge-title",a.element);c&&g.Of(c,b);a.badge.element.setAttribute("aria-label",b);a.dismissButton.element.setAttribute("aria-label",a.Ra?a.Ra:"")};
MU=function(a,b){b?a.G&&a.J.logClick(a.dismissButton.element):a.D&&a.J.logClick(a.badge.element)};
NU=function(a){LU.call(this,a,!1);this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.qa=!0;this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.EJ("suggested_action_view_model"),this.w$);this.T(this.J,g.FJ("suggested_action_view_model"),this.x$);this.overflowButton=new g.W({I:"button",Ka:["overflow-icon"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.O(this,this.overflowButton);this.thumbnailImage=new g.W({I:"img",S:"ytp-suggested-action-badge-img",X:{src:"{{url}}"}});
this.thumbnailImage.hide();g.O(this,this.thumbnailImage);this.thumbnailIcon=new g.W({I:"div",S:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.O(this,this.thumbnailIcon);this.banner=new g.W({I:"div",S:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{I:"div",S:"ytp-suggested-action-details",V:[{I:"text",S:"ytp-suggested-action-banner-title",xa:"{{title}}"},{I:"text",S:"ytp-suggested-action-banner-subtitle",xa:"{{subtitle}}"}]},this.dismissButton,this.overflowButton]});
g.O(this,this.banner);this.banner.Ja(this.C.element)};
OU=function(){NU.apply(this,arguments)};
CWa=function(a){mU.call(this,a);this.j=new OU(this.api);g.O(this,this.j);g.cU(this.api,this.j.element,4)};
g.QU=function(a,b,c,d,e){b=void 0===b?!1:b;d=void 0===d?!1:d;e=void 0===e?!1:e;g.wF.call(this);this.Y=e;this.N=!1;this.D=new nC(this);this.G=this.K=null;this.C=this.B=!1;g.O(this,this.D);this.target=a;this.j=b;this.Z=c||a;this.N=d;b&&(g.Rc&&this.target.setAttribute("draggable","true"),e||(this.target.style.touchAction="none"));PU(this)};
RU=function(a){g.pC(a.D,!a.j)};
PU=function(a){a.G=null;a.K=null;a.T(SU("over"),a.Jw);a.T("touchstart",a.tM);a.j&&a.T(SU("down"),a.E9)};
DWa=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};
SU=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
EWa=function(a,b,c){g.W.call(this,{I:"div",Ka:["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");c&&(this.updateValue("icon",Swa()),g.uv(this.j,"ytp-speedmaster-has-icon"));this.J.createClientVe(this.j,this,173040,!0);this.Uh()};
UU=function(a){mU.call(this,a);var b=this;this.D=this.C=!1;this.Ra=g.YI(this.api.U().experiments,"speedmaster_touch_activation_ms")||500;this.Ba=g.YI(this.api.U().experiments,"speedmaster_cancellation_movement_dp")||10;this.Na=g.YI(this.api.U().experiments,"speedmaster_playback_rate")||2;this.B=new g.vK(a);g.O(this,this.B);var c=this.L("web_speedmaster_updated_edu");c&&(this.G="2x");this.speedmasterUserEdu=new EWa(a,this.G,c);g.O(this,this.speedmasterUserEdu);g.cU(this.api,this.speedmasterUserEdu.element,
4);this.j=new g.QU(this.api.kb().ez,!0,null,!1,!0);g.O(this,this.j);this.delay=new g.lv(this.Da,this.Ra,this);g.O(this,this.delay);this.B.T(a,"videodatachange",function(d,e){if(c)TU(b);else{var f,h;if(d=null==(f=e.getWatchNextResponse())?void 0:null==(h=f.playerOverlays)?void 0:h.playerOverlayRenderer){var l,m;(f=null==(l=g.V(d.speedmasterUserEdu,FWa))?void 0:null==(m=l.bodyText)?void 0:m.content)&&f!==b.G&&(b.speedmasterUserEdu.j.textContent=f);b.G=f;TU(b)}}},this);
this.B.T(a,"presentingplayerstatechange",function(){TU(b)},this);
this.B.T(a,"autonavvisibility",function(){TU(b)},this);
this.api.Fn().subscribe("visibilitystatechange",function(){TU(b)});
this.B.T(a,"rootnodemousedown",function(d){b.Z=d});
this.L("web_speedmaster_spacebar_control")&&(this.B.T(a,"keyboardserviceglobalkeydown",function(d,e){b.qa=e;GWa(b,d,!0)},this),this.B.T(a,"keyboardserviceglobalkeyup",function(d){GWa(b,d,!1)},this))};
VU=function(a){a.delay.stop();a.j.unsubscribe("dragmove",a.N,a);a.j.unsubscribe("dragend",a.K,a);a.C&&(a.C=!1,a.speedmasterUserEdu.Uh(),a.api.setPlaybackRate(a.Ga),a.api.showControls(),a.La&&a.api.pauseVideo())};
GWa=function(a,b,c){c?32!==b.keyCode||b.repeat||a.C||!a.D||g.mv(a.delay):VU(a)};
TU=function(a){var b,c;var d=!!a.G&&!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.If()&&2!==a.api.getPresentingPlayerType()&&!g.mG(a.api.Qb(),2)&&!(null==(c=g.QT(a.api))?0:c.Kg())&&!a.api.Yc()&&HWa(a.api.Fn());a.D!==d&&(a.D=d,a.D?a.j.subscribe("dragstart",a.ra,a):(a.j.unsubscribe("dragstart",a.ra,a),a.j.unsubscribe("dragmove",a.N,a),a.j.unsubscribe("dragend",a.K,a),VU(a)))};
IWa=function(a){mU.call(this,a);var b=this;this.events=new g.vK(a);g.O(this,this.events);HT(this.api,"addPlayerResponseForAssociation",function(c){b.api.addPlayerResponseForAssociation(c)});
HT(this.api,"finishSegmentByCpn",function(c,d){return b.api.finishSegmentByCpn(c,d)});
this.events.T(a,"modulecreated",function(c){if("ad"===c&&(c=b.api.getVideoData(1))&&(c=c.getPlayerResponse())){var d;c=null!=(d=c.adPlacements)?d:[];d=g.u(c);for(var e=d.next();!e.done;e=d.next()){var f=c=void 0,h=void 0;if(e=null==(c=e.value.adPlacementRenderer)?void 0:null==(f=c.renderer)?void 0:null==(h=f.instreamVideoAdRenderer)?void 0:h.playerVars)c=kB(e),b.api.addPlayerResponseForAssociation({playerVars:c})}}});
this.events.T(a,"videodatachange",function(c,d){b.onVideoDataChange(c,d)})};
WU=function(a,b,c){g.zb.call(this,b,a);this.j=c};
g.XU=function(a){gL.call(this);var b=this;this.j=a;this.G={};this.listener=function(c){b.dispatchEvent(new WU(b,c.type,c))}};
YU=function(a){this.data=window.Float32Array?new Float32Array(a):Array(a);this.B=this.j=a-1};
JWa=function(a){return a.data[a.j]||0};
ZU=function(a){g.I.call(this);this.C=a;this.j=new Map;this.B=new g.lv(this.sample,250,this);g.O(this,this.B);this.start()};
$U=function(a,b){if(null==(a=a.j.get(b)))a=void 0;else{a=a.buffer;for(b=[];a.B!==a.j;)a.B=(a.B+1)%a.data.length,b.push(a.data[a.B]);a=b}return a||[]};
aV=function(a,b){var c;return(null==(c=a.j.get(b))?void 0:JWa(c.buffer))||0};
KWa=function(a){this.j=a;this.hA=NaN;this.buffer=new YU(100)};
NWa=function(a){var b=a.Xc(),c=a.getVideoData(),d=a.Xe(),e=d.Ib(),f=a.U(),h=b.aE(),l=b.vS,m=8*aV(l,"bandwidth")/1024,n=aV(l,"networkactivity")/1024,p=aV(l,"bufferhealth");if(b.Be){var q=b.videoData.useInnertubeDrmService()?"IT/":"";q+=b.Be.j.getInfo()+"/"+nP(b.Nv());q+="/"+b.Be.getInfo()}else q="";var r=q,t=b.getPlayerState().state.toString(16),v=d.getCurrentTime().toFixed(2),w=OK(d.Rh(),",",3);q="";if(c.isDaiEnabled()){c.enableServerStitchedDai&&(q+=c.JC?"DS":"SS");q+="DAI, ";var A=LWa(b);A&&(q+=
A)}var C;(null==(C=a.getVideoData(1))?0:g.BT(C))?(q+="SSAP, ",(C=LWa(b))&&(q+=C)):US(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.Id&&(q=f.Id.Xq?q+"wa, ":q+"w, ");q+="s:"+t+" t:"+v+" b:"+w+" ";d.Uf()&&(q+="S");d.isPaused()&&(q+="P");d.isEnded()&&(q+="E");a.isOrchestrationLeader()&&(q+=" L");(d=b.ND())&&(q+=" l:"+d.toFixed());d=b.getCurrentTime();f=c.WB;d&&d>f.start&&d<f.end&&(q+=" as");d=q;q=g.gB(xH)("_start",
void 0);f=[];t=g.u(["pl_i","vir","or_p","orfb","pbs"]);for(v=t.next();!v.done;v=t.next())v=v.value,(w=g.gB(xH)(v,void 0))&&q&&(w-=q,f.push(v+":"+Math.round(w)));q=f.join(" ");f=g.YR();t=g.bU(a).H8;v=c.C&&!c.C.j?"display:none":"";if((w=c.clientPlaybackNonce)&&16==w.length){w+="AAAA";C=0;A="";for(var F=0;20>F;F++)if(C=(C<<6)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".indexOf(w.charAt(F)),4==F%5){for(var G="",L=0;6>L;L++)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:v,network_activity_style:v,network_activity_bytes:n.toFixed(0)+" KB",shader_info:t,shader_info_style:t?"":"display:none",playback_categories:""};
n=e.clientWidth+"x"+e.clientHeight+(1<f?"*"+f.toFixed(2):"");p="-";h.totalVideoFrames&&(p=(h.droppedVideoFrames||0)+" dropped of "+h.totalVideoFrames);m.dims_and_frames=n+" / "+p;a=a.getVolume();h=GUa(c);var M;n=(null==(M=c.D)?0:M.audio.j)?"DRC":Math.round(a*h)+"%";M=Math.round(a)+"% / "+n;a=c.Pf.toFixed(1);isFinite(Number(a))&&(M+=" (content loudness "+a+"dB)");m.volume=M;m.resolution=e.videoWidth+"x"+e.videoHeight;if(M=c.B)if(e=M.video)a=e.fps,1<a&&(m.resolution+="@"+a),(a=g.bV(b))&&a.video&&(m.resolution+=
" / "+a.video.width+"x"+a.video.height,1<a.video.fps&&(m.resolution+="@"+a.video.fps)),m.codecs=MWa(M),!c.D||M.audio&&M.video?M.mZ&&(m.codecs+=" / "+M.mZ+"A"):m.codecs+=" / "+MWa(c.D),e.B||e.primaries?(M=e.B||"unknown","smpte2084"===M?M+=" (PQ)":"arib-std-b67"===M&&(M+=" (HLG)"),m.color=M+" / "+(e.primaries||"unknown"),m.color_style=""):m.color_style="display:none";e=c.isLivePlayback;M=c.Zd;m.live_mode_style=e||M?"":"display:none";m.live_latency_style=e?"":"display:none";if(M)m.live_mode="Post-Live"+
(VS(c)?" Manifestless":"");else if(e){M=aV(l,"livelatency");m.live_latency_secs=M.toFixed(2)+"s";e=VS(c)?"Manifestless, ":"";c.Za&&(e+="Windowed, ");a="Uncertain";if(0<=M&&120>M)if(c.latencyClass&&"UNKNOWN"!==c.latencyClass)switch(c.latencyClass){case "NORMAL":a="Optimized for Normal Latency";break;case "LOW":a="Optimized for Low Latency";break;case "ULTRALOW":a="Optimized for Ultra Low Latency";break;default:a="Unknown Latency Setting"}else a=c.isLowLatencyLiveStream?"Optimized for Low Latency":
"Optimized for Smooth Streaming";e+=a;(M=b.getPlaylistSequenceForTime(b.getCurrentTime()))&&(e+=", seq "+M.sequence);m.live_mode=e}b.isGapless()&&(m.playback_categories+="Gapless ");m.playback_categories_style=m.playback_categories?"":"display:none";m.bandwidth_samples=$U(l,"bandwidth");m.network_activity_samples=$U(l,"networkactivity");m.live_latency_samples=$U(l,"livelatency");m.buffer_health_samples=$U(l,"bufferhealth");b=g.CT(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";RS(c,"web_player_release_debug")?(m.release_name="youtube.player.web_20240423_01_RC00",m.release_style=""):m.release_style="display:none";m.debug_info&&0<q.length&&60>=m.debug_info.length+q.length?m.debug_info+=" "+q:m.extra_debug_info=q;m.extra_debug_info_style=m.extra_debug_info&&0<m.extra_debug_info.length?"":"display:none";return m};
MWa=function(a){var b=/codecs="([^"]*)"/.exec(a.mimeType);return b&&b[1]?b[1]+" ("+a.itag+")":a.itag};
cV=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"};
dV=function(a,b){if(-1===a.heightPx){var c=null;try{c=g.yf("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.yf("SPAN"),d.style.width=a.j+"px",d.style.left=a.j*c+"px",a.element.appendChild(d)}c=a.element.clientHeight||24;c!==a.heightPx&&(a.heightPx=c,a.B&&(c=1<(window.devicePixelRatio||1)?2:1,a.C.height=a.heightPx*c,a.C.style.height=
a.heightPx+"px",a.B.scale(1,c)));b=g.u(b);for(d=b.next();!d.done;d=b.next()){c=a;var e=a.index,f=d.value;for(d=0;d+2<c.D.length&&c.D[d+1]<f;)d++;f=Math.min(1,(f-c.D[d])/(c.D[d+1]-c.D[d]));if(c.B)c.B.fillStyle=c.G[d],c.B.fillRect(e*c.j,0,c.j,c.heightPx),c.B.fillStyle=c.G[d+1],c.B.fillRect(e*c.j,c.heightPx*(1-f),c.j,c.heightPx);else{e=c.element.children[e];var h=window.devicePixelRatio||1;f=Math.min(c.heightPx,Math.round(c.heightPx*f*h)/h)||0;e.style.height=f+"px";e.style.backgroundColor=c.G[d+1];e.style.borderTop=
"solid "+(c.heightPx-f)+"px "+c.G[d]}a.index=(a.index+1)%a.sampleCount}b=a.index;a.B?a.B.clearRect(b*a.j,0,a.j,a.heightPx):(a=a.element.children[b],a.style.height="0px",a.style.borderTop="")};
eV=function(a){var b=null;b={I:"button",Ka:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],X:{title:"close"},xa:"[X]"};g.W.call(this,{I:"div",Ka:["html5-video-info-panel","ytp-sfn"],V:[b,{I:"div",Ka:["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",X:{style:"{{shader_info_style}}"},V:[{I:"div",xa:"Shader Info"},{I:"span",xa:"{{shader_info}}"}]},{I:"div",X:{style:"{{color_style}}"},V:[{I:"div",xa:"Color"},{I:"span",xa:"{{color}}"}]},{I:"div",X:{style:"{{drm_style}}"},V:[{I:"div",xa:"Protected"},{I:"span",xa:"{{drm}}"}]},{I:"div",X:{style:"{{bandwidth_style}}"},V:[{I:"div",xa:"Connection Speed"},
{I:"span",V:[{I:"span",xa:"{{bandwidth_chart}}"},{I:"span",xa:"{{bandwidth_kbps}}"}]}]},{I:"div",X:{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",X:{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",X:{style:"{{live_mode_style}}"},V:[{I:"div",xa:"Live Mode"},{I:"span",xa:"{{live_mode}}"}]},{I:"div",X:{style:"{{playback_categories_style}}"},V:[{I:"div",xa:"Playback Categories"},{I:"span",xa:"{{playback_categories}}"}]},{I:"div",V:[{I:"div",xa:"Mystery Text"},{I:"span",xa:"{{debug_info}}"}]},{I:"div",X:{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",X:{style:"{{cotn_and_local_media_style}}"},V:[{I:"div",xa:"COTN / Local Media"},{I:"span",xa:"{{cotn_and_local_media}}"}]},{I:"div",X:{style:"{{release_style}}"},V:[{I:"div",xa:"Player Release"},{I:"span",xa:"{{release_name}}"}]}]}]});this.Ua=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 cV(300,1,150,a,b);g.O(this,this.j);this.updateValue("bandwidth_chart",this.j);this.C=new cV(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.O(this,this.C);this.updateValue("live_latency_chart",this.C);this.B=new cV(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.O(this,this.B);this.updateValue("buffer_health_chart",this.B);this.K=new cV(300,1,150,c,b);g.O(this,this.K);this.updateValue("network_activity_chart",
this.K);this.delay=new g.lv(this.Sa,500,this);g.O(this,this.delay);this.D=new g.lv(this.N,2E4,this);g.O(this,this.D)};
QWa=function(a){mU.call(this,a);var b=this;HT(a,"getStatsForNerds",function(){return NWa(b.api)});
IT(a,"showVideoInfo",function(){OWa(b,!0)});
IT(a,"hideVideoInfo",function(){OWa(b,!1)});
IT(a,"isVideoInfoVisible",function(){return PWa(b)})};
OWa=function(a,b){var c=PWa(a);a.j||(a.j=new eV(a.api),g.O(a,a.j),g.cU(a.api,a.j.element,4));g.DF(a.j,b);var d=ZT(a.api.yb());d&&d.loaded&&c!==b&&d.DS();b&&a.api.ma("sfn",{},!0)};
PWa=function(a){var b;return!(null==(b=a.j)||!b.Eb)};
fV=function(){g.I.call(this);this.B=null;this.startTime=this.duration=0;this.delay=new g.jv(this.j,null,this);g.O(this,this.delay)};
RWa=function(a,b){if("path"===b.I)return b.X.d;if(b.V)for(var c=0;c<b.V.length;c++){var d=b.V[c];if(d&&"string"!==typeof d&&(d=RWa(a,d)))return d}};
VWa=function(a,b,c){c=RWa(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=zF();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=SWa(e),m=SWa(c);TWa(a,function(n){d.setAttribute("d",UWa(l,m,n))},200)};
TWa=function(a,b,c){a.B=b;a.startTime=(0,g.$C)();a.duration=c;a.j()};
SWa=function(a){var b=[];a=a.match(WWa);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};
UWa=function(a,b,c){for(var d="",e=0;e<a.length;e++){var f=a[e];d="number"===typeof f?d+(f+(b[e]-f)*c):d+f}return d};
gV=function(a){g.W.call(this,{I:"button",Ka:["ytp-size-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"t","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}"},xa:"{{icon}}"});this.api=a;this.xw=null;this.transition=new fV;g.O(this,this.transition);this.T(a,"sizestylechange",this.Sa);this.T(a,"fullscreentoggled",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);a.createClientVe(this.element,this,139116);this.Sa();this.listen("click",this.onClick);TT(a,this.element,
this)};
XWa=function(a){mU.call(this,a);var b=this;this.events=new g.vK(a);g.O(this,this.events);this.events.T(a,"standardControlsInitialized",function(){b.button=new gV(a);g.O(b,b.button);a.Jy(b.button)})};
YWa=function(a){mU.call(this,a);var b=this;IT(this.api,"getPlaybackRate",function(){return b.api.getPlaybackRate()});
IT(this.api,"setPlaybackRate",function(c){"number"===typeof c&&b.api.setPlaybackRate(c)})};
hV=function(a){function b(e){e="https://jnn-pa.googleapis.com"+e;return c?g.Jp(e,"$httpHeaders",d):e}
var c=void 0===c?!1:c;this.Xi=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")};
$Wa=function(a,b){pO(a,13,b.timeSinceLastManualFormatSelectionMs);var c=b.lastManualDirection;void 0!==c&&(oO(a,112),oO(a,c<<1^c>>31));pO(a,16,b.a9);pO(a,17,b.detailedNetworkType);pO(a,18,b.o6);pO(a,19,b.n6);pO(a,21,b.bda);pO(a,23,b.c6);pO(a,28,b.lR);pO(a,29,b.rda);pO(a,34,b.visibility);c=b.playbackRate;if(void 0!==c){var d=new ArrayBuffer(4);(new Float32Array(d))[0]=c;c=(new Uint32Array(d))[0];if(void 0!==c)for(oO(a,285),nO(a,4),d=0;4>d;)a.view.setUint8(a.pos,c&255),c>>=8,a.pos+=1,d+=1}pO(a,36,b.R6);
tO(a,38,b.mediaCapabilities,ZWa,3);pO(a,39,b.qda);pO(a,40,b.Gv);pO(a,44,b.playerState);qO(a,46,b.O6);pO(a,48,b.Eca);pO(a,50,b.uv);pO(a,51,b.Gx);pO(a,54,b.Wp);qO(a,56,b.B9);pO(a,57,b.t6);qO(a,58,b.jo);pO(a,59,b.gj);pO(a,60,b.Lw);qO(a,61,b.isPrefetch);pO(a,62,b.Xy);rO(a,63,b.sabrLicenseConstraint)};
aXa=function(a){return{b6:kO(a,2),videoId:iO(a,3),XS:fO(a,4)}};
cXa=function(a){return{Xob:lO(a,1,bXa)}};
bXa=function(a){return{conditions:kO(a,1),apb:fO(a,2)}};
dXa=function(a){return{itagDenylist:kO(a,1)}};
ZWa=function(a,b){var c;if(b.videoFormatCapabilities)for(c=0;c<b.videoFormatCapabilities.length;c++)tO(a,1,b.videoFormatCapabilities[c],eXa,1);if(b.audioFormatCapabilities)for(c=0;c<b.audioFormatCapabilities.length;c++)tO(a,2,b.audioFormatCapabilities[c],fXa,1);pO(a,5,b.hdrModeBitmask)};
fXa=function(a,b){pO(a,1,b.audioCodec);pO(a,2,b.numChannels);pO(a,3,b.maxBitrateBps);pO(a,6,b.spatialCapabilityBitmask)};
eXa=function(a,b){pO(a,1,b.videoCodec);pO(a,3,b.maxHeight);pO(a,4,b.maxWidth);pO(a,11,b.maxFramerate);pO(a,12,b.maxBitrateBps);qO(a,15,b.is10BitSupported)};
iXa=function(a){return{Dba:fO(a,1),itag:iO(a,3),p_:jO(a,4,gXa),lmt:fO(a,5),xnb:fO(a,7),xtags:iO(a,15),x9:jO(a,23,hXa),kA:jO(a,34,dXa)}};
gXa=function(a){return{iv:hO(a,5),P8:gO(a,7)}};
hXa=function(a){return{videoId:iO(a,2)}};
lXa=function(a,b){tO(a,2,b.zs,$Wa,3);tO(a,3,b.qP,jXa,3);rO(a,4,b.onesieUstreamerConfig);rO(a,9,b.Go);tO(a,10,b.jL,kXa,3)};
mXa=function(a,b){var c=b.code;void 0!==c&&(oO(a,8),oO(a,c<<1^c>>31));sO(a,2,b.message)};
nXa=function(a,b){rO(a,1,b.ppb);tO(a,2,b.npb,mXa,3)};
oXa=function(a,b){pO(a,1,b.type);rO(a,2,b.value)};
pXa=function(a){return{WI:fO(a,3),XI:fO(a,4),Oba:gO(a,8),Dob:fO(a,10),Yob:fO(a,12),Zob:fO(a,13),Uob:fO(a,14),Vob:fO(a,15)}};
qXa=function(a){return{OR:fO(a,1),PR:fO(a,2),seekSource:fO(a,3)}};
kXa=function(a,b){tO(a,1,b.clientInfo,rXa,3);rO(a,2,b.rR);rO(a,3,b.playbackCookie);rO(a,4,b.Go);var c;if(b.UK)for(c=0;c<b.UK.length;c++)tO(a,5,b.UK[c],oXa,3);if(b.wL)for(c=0;c<b.wL.length;c++)pO(a,6,b.wL[c]);sO(a,7,b.Uca);tO(a,8,b.opb,nXa,3)};
sXa=function(a,b){pO(a,1,b.Ng);pO(a,2,b.oz);pO(a,3,b.Or)};
tXa=function(a){return{Ng:fO(a,1),oz:fO(a,2),Or:fO(a,3)}};
rXa=function(a,b){sO(a,12,b.deviceMake);sO(a,13,b.deviceModel);pO(a,16,b.clientName);sO(a,17,b.clientVersion);sO(a,18,b.osName);sO(a,19,b.osVersion)};
jXa=function(a,b){rO(a,2,b.FW);rO(a,5,b.encryptedClientKey);rO(a,6,b.iv);rO(a,7,b.ZX);qO(a,10,b.e0);qO(a,13,b.DW);qO(a,14,b.VN);rO(a,16,b.Fda);qO(a,17,b.G1)};
uXa=function(a,b){sO(a,1,b.name);sO(a,2,b.value)};
vXa=function(a){return{minBandwidthBytesPerSec:fO(a,1),minReadaheadMs:fO(a,2)}};
wXa=function(a,b){sO(a,1,b.url);var c;if(b.hP)for(c=0;c<b.hP.length;c++)tO(a,2,b.hP[c],uXa,3);rO(a,3,b.postBody);qO(a,4,b.Zba);qO(a,6,b.BB)};
xXa=function(a){return{e_:fO(a,1),bY:fO(a,2),body:hO(a,4)}};
yXa=function(a){return{startMinReadaheadPolicy:lO(a,1,vXa),resumeMinReadaheadPolicy:lO(a,2,vXa)}};
zXa=function(a){return{type:fO(a,1),scope:fO(a,2),value:hO(a,3),sendByDefault:gO(a,4)}};
AXa=function(a,b){var c;if(b.lH)for(c=0;c<b.lH.length;c++)sO(a,1,b.lH[c]);rO(a,2,b.yV);sO(a,3,b.Hs);pO(a,4,b.w0);pO(a,5,b.I1);sO(a,6,b.J1)};
BXa=function(a){return{cq:fO(a,1),gca:fO(a,2)}};
g.CXa=function(a,b){tO(a,1,b.zs,$Wa,3);rO(a,3,b.videoPlaybackUstreamerConfig);tO(a,6,b.Fm,AXa,3)};
iV=function(a){mU.call(this,a);var b=this;this.useLivingRoomPoToken=!1;this.Kb=null;this.D=!1;this.B=null;var c=a.U().getWebPlayerContextConfig();this.events=new g.vK(a);g.O(this,this.events);this.events.T(a,"spsumpstatuschange",function(d){b.cq=d.cq;a.U().uc()&&b.api.ma("sps",{status:b.cq||""});if(b.L("html5_handle_sps_status"))if(1===b.cq)b.api.aL(0);else if(2===b.cq||3===b.cq)if(b.D&&!b.B&&DXa(b),3===b.cq){var e=b.api.LO();e++;var f;d=null!=(f=d.gca)?f:Infinity;if(e<d){b.api.CJ(!0);var h;null==
(h=b.B)||h.then(function(){b.api.CJ(!1)});
b.api.aL(e)}else b.api.cg("ump.spsrejectfailure",1,"HTML5_SPS_UMP_STATUS_REJECTED")}});
this.useLivingRoomPoToken=!(null==c||!c.useLivingRoomPoToken);a.addEventListener("csiinitialized",function(){b.Kb=a.zi();var d=(b.L("html5_generate_session_po_token")||b.L("html5_generate_content_po_token"))&&!b.useLivingRoomPoToken;try{d&&(b.Kb.Gh("pot_isc"),EXa(b),b.L("html5_webpo_idle_priority_job")?g.FC(g.HC(),function(){FXa(b)}):FXa(b))}catch(e){e instanceof Error&&g.eF(e)}});
a.bS(this)};
GXa=function(a,b){var c=a.L("html5_po_token_enable_webpo_experimental")?"UE0a2bupPZ6aUyyLkkEY":"Z1elNkAKLpSR3oPOUMSN";var d=a.L("html5_webpo_critical_experiment")?"6BW35shnjYbBdd0Xn55t":a.L("html5_webpo_critical_control")?"Av5DGcHDtt8bC80Ew9nc":a.L("html5_po_token_enable_webpo_experimental")?"bxNLZUJrsnkb8KzwCOTR":a.L("html5_generate_content_po_token")?"cpYJehUPFA4JYTzKNoEQ":pR(b.experiments,"html5_mock_content_binding_for_session_token")?"Lw8FZiO1SU2A58z2DDu7":"O43z0dpjhgX20SCx4KAo";d=g.iJ(b)?c:
d;a.L("html5_placeholder_po_tokens")&&(d="2ZCPXHYZSpebQXqOYNtj");pR(b.experiments,"html5_cache_request_key")&&(d=pR(b.experiments,"html5_cache_request_key"));return d};
EXa=function(a){function b(l){g.eF(l)}
var c=a.api.U(),d=GXa(a,c);try{var e=a.L("html5_po_token_enable_webpo_experimental")?new hV(d):cha(d),f=rRa(c.experiments),h=a.L("html5_web_po_log_source_migration");c={Xi:d,onError:b,rz:e,Uy:f,DQ:function(){a.api.ma("itr",{})},
Oda:h};a.L("html5_web_po_send_onevent_ticks")&&(c.onEvent=function(l){(l=HXa[l])&&a.Kb.Gh(l)});
a.j=new rq(c);g.O(a,a.j)}catch(l){l instanceof Error&&g.eF(l)}};
FXa=function(a){var b=a.api.U();a.Kb.Gh("pot_ist");var c;null==(c=a.j)||c.start();a.L("html5_generate_content_po_token")||(jV(a),DXa(a),b=g.YI(b.experiments,"html5_session_po_token_interval_time_ms")||0,0<b&&(a.C=g.xB(function(){jV(a)},b)),a.D=!0)};
jV=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.cB("EOM_VISITOR_DATA")||g.cB("VISITOR_DATA");d=b.Ll?b.datasyncId:c;e=pR(b.experiments,"html5_mock_content_binding_for_session_token")||b.livingRoomPoTokenId||d;b.eg=IXa(a,e);g.Aa(f)})};
IXa=function(a,b){if(!a.j)return"";try{var c=a.j.isReady();c?a.Kb.Gh("pot_cms"):a.Kb.Gh("pot_csms");var d="";d=a.L("html5_web_po_token_caching")?jha(a.j,{Av:b,Py:{OV:b,p9:150,a6:!0,eda:!0}}):jha(a.j,{Av:b});if(c){if(a.Kb.Gh("pot_cmf"),a.L("html5_handle_sps_status")){var e;null==(e=a.B)||e.resolve();a.B=null}}else a.Kb.Gh("pot_csmf");return d}catch(f){return g.eF(f),""}};
DXa=function(a){a.j&&(a.L("html5_handle_sps_status")&&(a.B=new fL),a.j.ready().then(function(){a.Kb.Gh("pot_if");jV(a)}))};
JXa=function(a){mU.call(this,a);var b=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.vK(a);g.O(this,this.events);this.events.T(a,"heartbeatRequest",function(c){if(b.freePreviewUsageDetails.length||null!==b.freePreviewWatchedDuration)c.heartbeatRequestParams||(c.heartbeatRequestParams={}),c.heartbeatRequestParams.unpluggedParams||(c.heartbeatRequestParams.unpluggedParams={}),0<b.freePreviewUsageDetails.length?c.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails=
b.freePreviewUsageDetails:c.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}});
HT(a,"setFreePreviewWatchedDuration",function(c){b.freePreviewWatchedDuration=c});
HT(a,"setFreePreviewUsageDetails",function(c){b.freePreviewUsageDetails=c})};
kV=function(a){g.I.call(this);this.features=[];var b=this.j,c=new hWa(a),d=new nU(a),e=new HU(a),f=new iV(a);var h=g.gJ(a.U())?void 0:new zU(a);var l=new GU(a),m=new QWa(a),n=new YWa(a),p=new DU(a);var q=g.gJ(a.U())?new JXa(a):void 0;var r=a.L("html5_enable_ssap")?new IWa(a):void 0;var t=a.L("web_cinematic_watch_settings")&&null!=(t=a.U().getWebPlayerContextConfig())&&t.cinematicSettingsAvailable?new SVa(a):void 0;var v=new CU(a);var w=a.L("enable_courses_player_overlay_purchase")?new eWa(a):void 0;
var A=g.ZR(a.U())?new aWa(a):void 0;var C=new VVa(a);var F=a.U().D?new WVa(a):void 0;var G=a.L("web_player_move_autonav_toggle")&&a.U().Ae?new KVa(a):void 0;var L=g.ZR(a.U())?new EU(a):void 0;var M=a.L("web_enable_speedmaster")&&g.ZR(a.U())?new UU(a):void 0;var R=a.U().fl?void 0:new XWa(a);var ea=a.L("report_pml_debug_signal")?new FVa(a):void 0;var ma=new tWa(a),oa=new xWa(a);var ia=a.L("enable_web_player_player_in_bar_feature")&&g.JG(a.U())?new zWa(a):void 0;var va="flix"===a.U().playerStyle?new gWa(a):
void 0;var aa=navigator.mediaSession&&window.MediaMetadata&&a.U().zj?new lWa(a):void 0;var U=a.L("html5_enable_drc")?new yU(a):void 0;var La=new zVa(a);var x=a.U();var ba=x.K&&"apps-elements"===(null==(ba=x.getWebPlayerContextConfig())?void 0:ba.houseBrandEnvironment)?new fWa(a):void 0;a=g.ZR(a.U())?new CWa(a):void 0;b.call(this,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,G,L,M,R,ea,ma,oa,ia,va,aa,U,La,ba,a)};
lV=function(){this.B=this.j=NaN};
KXa=function(a,b){this.W=a;this.timerName="";this.C=!1;this.B=NaN;this.D=new lV;this.j=b||null;this.C=!1};
LXa=function(a,b,c){var d=g.NR(b.Ea)&&!b.Ea.K;if(b.Ea.El&&(KR(b.Ea)||"shortspage"===b.Ea.La||eS(b.Ea)||d)&&!a.C){a.C=!0;a.K=b.clientPlaybackNonce;g.cB("TIMING_ACTION")||bB("TIMING_ACTION",a.W.csiPageType);a.W.csiServiceName&&bB("CSI_SERVICE_NAME",a.W.csiServiceName);if(a.j){d=a.j.zi();for(var e=g.u(Object.keys(d)),f=e.next();!f.done;f=e.next())f=f.value,CH(f,d[f],a.timerName);d=g.gB(Nya)(a.j.QH);g.AH(d,a.timerName);d=a.j;d.B={};d.QH={}}g.AH({playerInfo:{visibilityState:g.gB(Jya)()},playerType:"LATENCY_PLAYER_HTML5"},
a.timerName);a.G!==b.clientPlaybackNonce||Number.isNaN(a.B)||(zH("_start",a.timerName)?c=g.gB(xH)("_start",a.timerName)+a.B:g.eF(new g.AC("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));c&&!zH("pbs",a.timerName)&&a.tick("pbs",c)}};
MXa=function(a,b,c,d,e,f,h){a=(a===c?"video":"ad")+"_to_"+(b===c?"video":"ad");if("video_to_ad"!==a||null!=h&&h.Ga){h="ad_to_video"===a?h:e;c=null==h?void 0:h.RH;var l={};if(null==e?0:e.G)l.cttAuthInfo={token:e.G,videoId:e.videoId};l.startTime=null!=f?f:d;BH(a,l);var m,n,p;e={targetVideoId:null!=(m=null==e?void 0:e.videoId)?m:"empty_video",targetCpn:b,adVideoId:null!=(n=null==h?void 0:h.videoId)?n:"empty_video",adClientPlaybackNonce:null!=(p=null==c?void 0:c.cpn)?p:null==h?void 0:h.clientPlaybackNonce};
c&&(e.adBreakType=c.adBreakType,e.adType=c.adType);g.AH(e,a);CH("pbs",d,a)}};
mV=function(a){Zya();Xya();a.timerName=""};
NXa=function(a){if(a.j){var b=a.j;b.B={};b.QH={}}a.C=!1;a.G=void 0;a.B=NaN};
OXa=function(a,b){g.wF.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=iB(a,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author=
b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(a=b.api)"string"===typeof a&&16===a.length?b.list="PL"+a:b.playlist=a;if(a=b.list)switch(b.listType){case "user_uploads":this.listId=new uS("UU","PLAYER_"+a);break;default:var c=b.playlist_length;c&&(this.length=Number(c)||0);this.listId=g.YSa(a);if(a=b.video)this.items=a.slice(0),this.loaded=!0}else if(b.playlist){a=b.playlist.toString().split(",");0<this.index&&(this.items=[]);a=g.u(a);for(c=a.next();!c.done;c=a.next())(c=
c.value)&&this.items.push({video_id:c});this.length=this.items.length;if(a=b.video)this.items=a.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(a=b.suggestedQuality)this.quality=a;this.Z=qS(b,"playlist_");this.C=(b=b.thumbnail_ids)?b.split(","):[]};
PXa=function(a){return!!(a.playlist||a.list||a.api)};
QXa=function(a){var b=a.index+1;return b>=a.length?0:b};
RXa=function(a){var b=a.index-1;return 0>b?a.length-1:b};
g.nV=function(a,b,c,d){b=void 0!==b?b:a.index;b=a.items&&b in a.items?a.items[a.order[b]]:null;var e=null;b&&(c&&(b.autoplay="1"),d&&(b.autonav="1"),e=new g.LS(a.Ea,b),g.O(a,e),e.Pm=!0,e.startSeconds=a.startSeconds||e.clipStart||0,a.listId&&(e.playlistId=a.listId.toString()));return e};
SXa=function(a,b){a.index=g.ye(b,0,a.length-1);a.startSeconds=0};
TXa=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.nV(a);a.items=[];for(var d=g.u(b.video),e=d.next();!e.done;e=d.next())if(e=e.value)e.video_id=e.encrypted_id,a.items.push(e);a.length=a.items.length;(b=b.index)?a.index=b:a.findIndex(c);a.setShuffle(!1);a.loaded=!0;a.B++;a.j&&a.j()}};
WXa=function(a,b){var c,d,e,f,h,l,m;return g.H(function(n){if(1==n.j){c=g.PH();var p=a.U(),q={context:g.FT(a),playbackContext:{contentPlaybackContext:{ancestorOrigins:p.ancestorOrigins}}};if(p.L("embeds_web_enable_havs_getembeddedplayer")){var r=p.getWebPlayerContextConfig();if(null==r?0:r.encryptedHostFlags)q.playbackContext.contentPlaybackContext.encryptedHostFlags=r.encryptedHostFlags;if(null==r?0:r.hideInfo)q.playerParams={showinfo:!1}}p=p.embedConfig;r=b.docid||b.video_id||b.videoId||b.id;if(!r){r=
b.raw_embedded_player_response;if(!r){var t=b.embedded_player_response;t&&(r=JSON.parse(t))}if(r){var v,w,A,C,F,G;r=(null==(G=g.V(null==(v=r)?void 0:null==(w=v.embedPreview)?void 0:null==(A=w.thumbnailPreviewRenderer)?void 0:null==(C=A.playButton)?void 0:null==(F=C.buttonRenderer)?void 0:F.navigationEndpoint,g.WS))?void 0:G.videoId)||null}else r=null}v=(v=r)?v:void 0;w=a.playlistId?a.playlistId:b.list;A=b.listType;if(w){var L;"user_uploads"===A?L={username:w}:L={playlistId:w};UXa(p,v,b,L);q.playlistRequest=
L}else b.playlist?(L={templistVideoIds:b.playlist.toString().split(",")},UXa(p,v,b,L),q.playlistRequest=L):v&&(L={videoId:v},p&&(L.serializedThirdPartyEmbedConfig=p),q.singleVideoRequest=L);d=q;e=g.TG(VXa);g.Ba(n,2);return g.z(n,g.GH(c,d,e),4)}if(2!=n.j)return f=n.B,h=a.U(),b.raw_embedded_player_response=f,h.Da=dqa(b,g.IR(h)),h.C="EMBEDDED_PLAYER_MODE_PFL"===h.Da,f&&(l=f,l.trackingParams&&$O(l.trackingParams)),n.return(new g.LS(h,b));m=g.Da(n);m instanceof Error||(m=Error("b259802748"));g.dF(m);return n.return(a)})};
UXa=function(a,b,c,d){c.index&&(d.playlistIndex=String(Number(c.index)+1));d.videoId=b?b:"";a&&(d.serializedThirdPartyEmbedConfig=a)};
g.pV=function(a,b){oV.get(a);oV.set(a,b)};
g.qV=function(a){g.wF.call(this);this.loaded=!1;this.player=a};
XXa=function(){this.B=[];this.j=[]};
g.rV=function(a,b){return b?a.j.concat(a.B):a.j};
g.sV=function(a,b){switch(b.kind){case "asr":YXa(b,a.B);break;default:YXa(b,a.j)}};
YXa=function(a,b){g.Db(b,function(c){return c?a.toString()===c.toString():!1})||b.push(a)};
g.tV=function(a){g.I.call(this);this.W=a;this.B=new XXa;this.D=[];this.N=[]};
g.uV=function(a,b,c){g.tV.call(this,a);this.audioTrack=c;this.j=null;this.C=!1;this.D=b.Nu;this.N=b.dC;this.C=g.uT(b)};
ZXa=function(){this.bj=!1};
$Xa=function(a){a=void 0===a?{}:a;var b=void 0===a.fE?!1:a.fE,c=new ZXa;c.bj=(void 0===a.hasSubfragmentedFmp4?!1:a.hasSubfragmentedFmp4)||b;return c};
g.aYa=function(a){this.Ea=a;this.Z=new ZXa;this.ip=this.To=!1;this.Lo=2;this.ra=20971520;this.Wa=8388608;this.qa=120;this.Dc=62914560;this.Oo=g.YI(this.Ea.experiments,"html5_min_readbehind_secs");this.VB=g.YI(this.Ea.experiments,"html5_min_readbehind_cap_secs");this.fn=this.Ea.L("html5_offline_reset_media_stream_on_unresumable_slices");this.sb=NaN;this.Sr=this.yl=this.Pu=2;this.pj=1024*vV(this,"html5_request_size_min_kb",64);this.La=2097152;this.ly=vV(this,"html5_bypass_contention_secs");this.Cr=
1048576;this.Hl=!1;this.mj=vV(this,"html5_repredict_interval_ms",1800);this.OG=vV(this,"html5_head_miss_secs",5);this.XB=vV(this,"html5_min_upgrade_health_secs",10);this.bb=15;this.Pf=1;this.N=1.15;this.Y=1.05;this.Dl=1;this.WB=vV(this,"html5_min_seconds_between_format_selections",8);this.KB=vV(this,"html5_max_buffer_health_for_downgrade_secs",15);this.Eu=oR;this.Mh=this.Pb=!1;this.Ki=6;this.j=!1;this.Li=g.YI(this.Ea.experiments,"html5_min_startup_buffered_media_duration_secs");this.yp=g.YI(this.Ea.experiments,
"html5_post_interrupt_readahead");this.vy=this.Ea.L("html5_disable_classic_alr");this.Gp=g.YI(this.Ea.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.Nu=100;this.Tf=10;this.aC=6;this.Ku=vV(this,"html5_ssdai_failure_retry_limit",3);this.Gl=this.Ea.experiments.jb("html5_clone_original_for_fallback_location");this.Sf=!1;this.Hb=g.YI(this.Ea.experiments,"html5_subsegment_readahead_target_buffer_health_secs");this.tj=g.YI(this.Ea.experiments,"html5_subsegment_readahead_timeout_secs");this.zD=
g.YI(this.Ea.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.rj=g.YI(this.Ea.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.wE=g.YI(this.Ea.experiments,"html5_subsegment_readahead_min_load_speed");this.Mu=g.YI(this.Ea.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.DE=g.YI(this.Ea.experiments,"html5_subsegment_readahead_seek_latency_fudge");this.Qg=vV(this,"html5_hopeless_secs",15);this.Tm=1;this.Sc=!1;this.IC=this.Ea.L("html5_restrict_streaming_xhr_on_sqless_requests");
this.PG=g.YI(this.Ea.experiments,"html5_max_headm_for_streaming_xhr");this.vC=this.Ea.L("html5_pipeline_manifestless_allow_nonstreaming");this.zC=this.Ea.L("html5_prefer_server_bwe3");this.TA=this.Ea.L("html5_last_slice_transition");this.LC=this.Ea.L("html5_store_xhr_headers_readable");this.Iu=this.Bf=this.Rj=!1;this.Vm=g.YI(this.Ea.experiments,"html5_max_drift_per_track_secs");this.Po=this.Ea.L("html5_no_placeholder_rollbacks");this.MC=this.Ea.L("html5_subsegment_readahead_enable_mffa");this.Ie=
this.Ea.L("html5_allow_video_keyframe_without_audio");this.dC=this.Ea.L("html5_enable_vp9_fairplay");this.Za=!0;this.Ae=this.Ra=this.Jb=!1;this.Nl=!0;this.Jx=!1;this.D="";this.zy=1048576;this.Ud=[];this.Cy=this.Ea.L("html5_woffle_resume");this.vl=this.Ea.L("html5_abs_buffer_health");this.vA=this.Ea.L("html5_interruption_resets_seeked_time");this.QG=g.YI(this.Ea.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800;this.Da=!1;this.Pm=this.Ea.L("html5_explicitly_dispose_xhr");this.Jp=!1;
this.Cl=!this.Ea.L("html5_encourage_array_coalescing");this.Fl=!1;this.GC=this.Ea.L("html5_restart_on_unexpected_detach");this.gj=0;this.fb="";this.Iz=this.Ea.L("html5_filter_non_efficient_formats_for_safari");this.Ea.L("html5_format_hybridization");this.Px=this.Ea.L("html5_abort_before_separate_init");this.JC=Vpa();this.KC=this.Ea.L("html5_serialize_server_stitched_ad_request");this.oy=this.Ea.L("html5_skip_buffer_check_seek_to_head");this.ke=!1;this.jy=this.Ea.L("html5_attach_po_token_to_bandaid");
this.Mo=g.YI(this.Ea.experiments,"html5_max_redirect_response_length")||8192;this.qj=this.Ea.L("html5_rewrite_timestamps_for_webm");this.rb=this.Ea.L("html5_only_media_duration_for_discontinuities");this.FC=g.YI(this.Ea.experiments,"html5_resource_bad_status_delay_scaling")||1;this.Ea.L("html5_onesie_live");this.PE=this.Ea.L("html5_onesie_premieres");this.By=this.Ea.L("html5_drop_onesie_for_live_mode_mismatch");this.bC=g.YI(this.Ea.experiments,"html5_onesie_live_ttl_secs")||8;this.Ro=g.YI(this.Ea.experiments,
"html5_attach_num_random_bytes_to_bandaid");this.cC=g.YI(this.Ea.experiments,"html5_onesie_request_timeout_ms")||3E3;this.B=!1;this.jj=this.Ea.L("html5_pause_ssap_requrest_on_missing_manager");this.gA=this.Ea.L("html5_sabr_ignore_changetype_exception");this.My=this.Ea.L("html5_reinit_source_buffer_on_sabr_format");this.Ml=this.Ea.L("html5_init_source_buffer_after_metadata");this.fA=this.Ea.L("html5_gapless_fallback_on_append_error");this.Ou=!1;this.Ga=this.Ea.L("html5_ssdai_use_post_for_media")&&
this.Ea.L("gab_return_sabr_ssdai_config");this.WE=this.Ea.L("html5_use_post_for_media");this.Gb=this.Ea.L("html5_use_live_ump_heartbeat");this.wk=this.Ea.L("html5_use_sps_ump_part");this.EF=this.Ea.L("html5_sabr_use_sps_ump_part");this.useUmp=this.Ea.L("html5_use_ump");this.Va=this.Ba=!1;this.yC=this.Ea.Tf;this.EC=this.Ea.L("html5_reset_primary_stats_on_redirector_failure");this.BC=this.Ea.L("html5_remap_to_original_host_when_redirected");this.Il=this.Rf=this.C=!1;this.Qf=this.Ea.L("html5_enable_sabr_format_selection");
this.Ol=this.Ea.L("html5_sabr_support_quality_constraints");this.CC=this.Ea.L("html5_sabr_remove_all_quality_constraints");this.qy=this.Ea.L("html5_iterative_seeking_buffered_time");this.fl=this.Ea.L("html5_use_network_error_code_enums");this.wy=this.Ea.L("html5_disable_overlapping_requests");this.G=!1;this.enableServerDrivenRequestCancellation=this.Ea.L("html5_enable_server_driven_request_cancellation");this.qz=this.Ea.L("html5_enable_sabr_request_timing");this.Om=this.Ea.L("html5_enable_server_format_filter");
this.Ay=this.Ea.L("html5_drc_edit_sync_workaround");this.Dy=this.Ea.L("html5_enable_lawnmower");this.Ey=this.Ea.L("html5_enable_lawnmower_messaging");this.uy=this.Ea.uc()?g.YI(this.Ea.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.FA=g.YI(this.Ea.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Qo=g.YI(this.Ea.experiments,"html5_normal_latency_mffa_ms")||NaN;this.ZB=g.YI(this.Ea.experiments,"html5_mffa_ms_proxima_override")||this.Qo;this.hB=this.Ea.L("html5_live_defrag_only_h264_playbacks");
this.fB=this.Ea.L("html5_live_defrag_only_h264_formats");this.AC=this.Ea.L("html5_record_now");this.Re=!1;this.Kl=g.YI(this.Ea.experiments,"html5_drm_byterate_soft_cap");this.Ll=g.YI(this.Ea.experiments,"html5_drm_live_byterate_soft_cap");this.Sm=this.Qp=!1;this.zb=this.Ea.L("html5_sabr_report_request_cancellation_info");this.oh=this.So=this.Lu=!1;this.Ju=this.Ea.L("html5_spoof_4k");this.No=vV(this,"html5_min_media_duration_for_cabr_slice");this.UB=this.Cl?0:vV(this,"html5_min_media_duration_for_append_prop");
this.DC=this.Ea.L("html5_remove_defrag_without_frame_level_streaming");this.pc=!0;this.sy=this.Ea.L("html5_consume_all_buffered_bytes_one_poll");this.yy=this.Ea.L("html5_disable_urgent_adaptation");this.iy=this.Ea.L("html5_apply_constraints_in_client_for_sabr");this.Nx=this.Ea.L("html5_send_video_playback_ustreamer_config");this.Um=vV(this,"html5_max_discontinuity_rewrite_count");this.Wm=vV(this,"html5_max_drift_seconds");this.Rm=vV(this,"html5_fixed_media_duration_for_request");this.Mx=this.Ea.L("html5_sabr_use_init_selected_audio");
this.El=this.Ea.L("html5_use_init_selected_audio");this.Na=!1;this.wd=vV(this,"html5_sabr_request_limit_per_period");this.K=this.Lx=this.zj=!1;this.hd=this.Ea.L("html5_sabr_live_partial_segment");this.Jd=this.Ea.L("html5_sabr_dispose_media_objects");this.Jl=!1;this.gy=this.Ea.L("html5_account_for_underrun_advance_in_sabr");this.Qm=this.Ea.L("html5_fix_underrun_advance_with_buffer_tracking_in_sabr");this.eg=this.Ea.L("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.Xb=this.Ea.L("html5_handles_prepare_buffer_exceptions");
this.Fp=!1};
bYa=function(a,b,c){c=void 0===c?!1:c;1080<b.video.j&&!a.To&&(a.ra=36700160,a.Wa=5242880,a.La=Math.max(4194304,a.La),a.To=!0);2160<b.video.j&&!a.ip&&(a.ra=104857600,a.sb=13107200,a.ip=!0);0!==g.YI(a.Ea.experiments,"html5_samsung_kant_limit_max_bitrate")?b.isEncrypted()&&g.PB()&&g.NB("samsung")&&(g.NB("kant")||g.NB("muse"))&&(a.sb=g.YI(a.Ea.experiments,"html5_samsung_kant_limit_max_bitrate")):b.isEncrypted()&&g.PB()&&g.NB("kant")&&(a.sb=1310720);0!==a.Kl&&b.isEncrypted()&&(a.sb=a.Kl);0!==a.Ll&&b.isEncrypted()&&
c&&(a.sb=a.Ll);b.sb&&(a.Cr=Math.max(a.pj,Math.min(a.La,5*b.sb)))};
wV=function(a){return a.C&&a.Qf};
xV=function(a){return a.C&&a.Rf&&a.playbackStartPolicy};
cYa=function(a,b,c,d){a.Rf&&(a.playbackStartPolicy=b,a.xC=c,a.wC=d)};
vV=function(a,b,c){return g.YI(a.Ea.experiments,b)||(void 0===c?0:c)};
g.dYa=function(a,b){return KK(a.info.mimeType)?b?a.info.itag===b:!0:!1};
g.eYa=function(a,b){if(null!=a.j&&g.gJ(b.U())&&!a.j.isManifestless&&null!=a.j.j.rawcc)return!0;if(!a.dc())return!1;b=!!a.j&&a.j.isManifestless&&Object.values(a.j.j).some(function(c){return g.dYa(c,"386")});
a=!!a.j&&!a.j.isManifestless&&yQa(a.j);return b||a};
g.yV=function(a,b,c,d,e,f){g.tV.call(this,a);this.videoId=c;this.eY=e;this.eventId=f;this.G={};this.j=null;a=d||g.lB(b).hl||"";a=a.split("_").join("-");this.C=mB(b,{hl:a})};
fYa=function(a,b,c){for(var d=null,e={Rz:0};e.Rz<a.length;e={Hv:void 0,Rz:e.Rz},e.Rz++)if(e.Hv=a[e.Rz],e.Hv.condition()){var f=function(h){return function(){try{if(h.Hv.condition()){var l=h.Hv.func();return b?l.then(function(m){if(!b(m))throw Error("verification failed");return m}):l}}catch(m){return Promise.reject(m)}return Promise.reject()}}(e);
d?d=d.then(void 0,f):d=f();d=d.then(void 0,function(h){return function(l){if(l){if(h.Hv.onFailure)h.Hv.onFailure(l);c&&c(h.Rz,h.Hv,l)}throw l;}}(e))}return d};
gYa=function(a,b){return{Ly:a.Ly&&b.Ly,Id:a.Id&&b.Id,sync:a.sync&&b.sync,streaming:a.streaming&&b.streaming}};
zV=function(a,b){var c=hYa;this.path=a;this.C=b;this.D=c;this.capabilities={Ly:!!this.C,Id:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly}};
kYa=function(a){var b=iYa;return b.instantiate(a?gYa(b.capabilities,a):b.capabilities,new jYa)};
lYa=function(a){if(a.B)return a.B;a.B=fetch(a.path).then(function(b){return b.arrayBuffer()}).then(function(b){a.B=Promise.resolve(b);
return b}).then(void 0,function(b){g.eF(Error("wasm module fetch failure",{cause:b}));
a.B=void 0;throw b;});
return a.B};
mYa=function(a,b){if(!b.Id)return Promise.reject(Error("wasm unavailable"));if(a.j)return a.j;a.j=a.compile(b).then(function(c){a.j=Promise.resolve(c);return c},function(c){g.eF(Error("wasm module compile failure",{cause:c}));
a.j=void 0;throw c;});
return a.j};
nYa=function(){};
oYa=function(){};
jYa=function(){this.env=new nYa;this.wasi_snapshot_preview1=new oYa};
hYa=function(a,b){b._initialize();a=Math.floor(256*Math.random());var c=Math.floor(256*Math.random()),d=0;try{d=b.malloc(16);(new Uint8Array(b.memory.buffer,d,16)).fill(a);if(b.sentinel(d,16,c)!==16*c%256)return!1;for(var e=new Uint8Array(b.memory.buffer,d,16),f=0;16>f;f++)if(e[f]!==(a+c)%256)return!1;return!0}finally{0!==d&&b.free(d)}};
pYa=function(a,b){this.instance=a;this.Xq=b;this.exports=this.instance.exports};
qYa=function(a,b,c){iYa||(iYa=new zV(a,b));return kYa(c).then(function(d){return new pYa(d.instance,d.Xq)})};
DRa=function(a,b){if(b.buffer!==a.exports.memory.buffer)return AV.al("copyj2w",function(){var c=a.exports.malloc(b.byteLength);c=new Uint8Array(a.exports.memory.buffer,c,b.byteLength);c.set(b);return c})};
rYa=function(a,b){if(b.buffer===a.exports.memory.buffer)return AV.al("copyw2j",function(){var c=b.slice();a.exports.free(b.byteOffset);return c})};
sYa=function(a,b){g.I.call(this);var c=this;this.J=a;this.j=b;this.QH={};this.B={};this.C=null;this.K=this.J.L("web_player_defer_modules");this.D=new Set;this.G=new g.vK(this);this.pd={wob:function(){return c.j}};
this.Ge=new Map;g.O(this,this.G);this.G.T(a,"videodatachange",this.onVideoDataChange)};
g.BV=function(a){return a.Ge.get("captions")};
yYa=function(a,b){switch(b){case "ad":return tYa(a);case "annotations_module":return a.J.Yc()?a=!1:(b=a.J,a=b.U(),b=b.getVideoData(),a=a.C||b.U1||"3"===a.controlsType?!1:a.Na.isEmpty()&&"annotation-editor"!==a.playerStyle&&"live-dashboard"!==a.playerStyle?!!b.Va||!!g.sT(b)||!!g.EUa(b):!0),a;case "asmjs":return a.J.U().L("html5_allow_asmjs");case "creatorendscreen":return uYa(a);case "embed":return g.IR(a.J.U());case "endscreen":return g.vYa(a);case "heartbeat":return a.iS();case "inline_preview":return a.J.U().showInlinePreviewUi;
case "kids":return TR(a.J.U());case "remote":return a.J.U().tj;case "miniplayer":return a.J.U().showMiniplayerUiWhenMinimized;case "offline":return a.J.U().pj;case "captions":return wYa(a);case "unplugged":return g.OR(a.J.U());case "ux":return a.J.U().Za;case "webgl":return xYa(a);case "ypc":return a.mG();case "ypc_clickwrap":return a=a.J.getVideoData(),a.eg&&!a.LC;case "yto":return!!a.J.getVideoData().Da.includes("yto");default:return g.dF(Error("Module descriptor "+b+" does not match")),!1}};
CV=function(a,b,c,d,e){var f;c=void 0===c?!1:c;d=void 0===d?!1:d;var h=a.Ge.get(b);if(!h||d)if(e||(e=function(){CV(a,b,c,d)}),f||(f=function(){a.J.Cg(b)}),h=h||zYa(a,b,yYa(a,b),e,f))a.Ge.set(b,h),h.create(),a.J.publish("modulecreated",b),c&&a.J.Em("onApiChange")};
BYa=function(a){var b=void 0===b?!1:b;var c,d,e,f,h;return g.H(function(l){if(1==l.j)return(c=a.Ge.get("asmjs"))&&!b?l.return(c):null!=(d=oV.get("asmjs"))?(e=d,l.Ia(2)):g.z(l,new Promise(function(m,n){AYa(a,"asmjs",function(){var p=oV.get("asmjs");p?m(p):n("cannot load module asmjs")},n)}),3);
2!=l.j&&(e=l.B);f=e;if(!f)return l.return(Promise.reject("cannot load module asmjs"));h=new f(a.J);a.Ge.set("asmjs",h);h.create();return l.return(h)})};
EYa=function(a){CYa(a)&&a.IN();DYa(a)&&(CV(a,"captions",!0),CV(a,"endscreen"),a.OH(),CV(a,"creatorendscreen",!0))};
DYa=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};
CYa=function(a){a=a.J.getVideoData();var b;if(b=a.L("web_player_defer_ad")){if(g.Fb(a.Da,"ad")||sUa(a)||a.enableServerStitchedDai)a=!1;else{b=a.playerResponse;a=a.startSeconds;var c=null==b?void 0:b.adPlacements;if(b=c){b=Number.MAX_VALUE;c=g.u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value.adPlacementRenderer){var e=void 0,f=null==(e=d.config)?void 0:e.adPlacementConfig;e=void 0;if("AD_PLACEMENT_KIND_MILLISECONDS"===(null==(e=f)?void 0:e.kind)){var h=e=void 0;f=Number(null==(e=f)?void 0:null==
(h=e.adTimeOffset)?void 0:h.offsetStartMilliseconds)||0;h=e=void 0;d=Number((null==(e=d.renderer)?void 0:null==(h=e.adBreakServiceRenderer)?void 0:h.prefetchMilliseconds)||0);d=f-d;d<b&&(b=d)}}b=b-5E3<=1E3*a}a=b?!1:!0}b=a}return b};
wYa=function(a){var b=a.J.getVideoData();return!!b.Ud||!!b.captionTracks.length||g.eYa(b,a.J)};
g.vYa=function(a){var b=a.J.U();if(b.C||eS(b)||b.K||!b.wd&&!b.Qg)return!1;var c=a.J.getPresentingPlayerType();if(2===c)return!1;if(3===c)return b.L("desktop_enable_autoplay");a=a.J.getVideoData();if(!a)return!1;c=!a.isLiveDefaultBroadcast||b.L("allow_poltergust_autoplay");c=a.isLivePlayback&&(!b.L("allow_live_autoplay")||!c);b=a.isLivePlayback&&b.L("allow_live_autoplay_on_mweb");return!c||b};
g.aU=function(a){return a.Ge.get("webgl")};
xYa=function(a){var b=a.J.getVideoData();a=a.J.U();var c=g.Upa(),d=a.L("enable_spherical_kabuki"),e=g.cS(a);if(g.qT(b))return c||d||e;if(g.oT(b))return e||c||d;if(g.pT(b))return e||c||!1;if(g.eT(b))return e||!1;c=b.B&&b.B.video&&b.B.video.isHdr();return e&&!g.gT(b)&&!c&&a.L("enable_webgl_noop")};
tYa=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.BT(a)?!0:!1};
uYa=function(a){if(a.J.Yc())return!1;a=a.J;var b=a.U();if(b.C||"3"===b.controlsType)return!1;if("creator-endscreen-editor"===b.playerStyle)return!0;a=a.getVideoData();return!!a&&(!!g.CUa(a)||!!g.DUa(a))};
zYa=function(a,b,c,d,e){try{if(c){var f=oV.get(b);if(f)return new f(a.J);AYa(a,b,d,e)}else a.J.Cg(b)}catch(h){a.J.Cg(b),g.dF(h)}return null};
DV=function(a,b,c){if(a.J.U().L("html5_dispose_modules_in_order"))for(var d=g.u(FYa),e=d.next();!e.done;e=d.next()){e=e.value;var f=a.Ge.get(e);f&&(c||f.ll(b))&&(g.vb(f),a.Ge.delete(e))}else for(d=g.u(a.Ge),e=d.next();!e.done;e=d.next())f=g.u(e.value),e=f.next().value,(f=f.next().value)&&(c||f.ll(b))&&(g.vb(f),a.Ge.delete(e))};
EV=function(a){return a.Ge.get("ad")};
GYa=function(a){if(TR(a.J.U()))return a.Ge.get("kids")};
ZT=function(a){if(a.J.U().tj)return a.Ge.get("remote")};
g.FV=function(a){if(g.OR(a.J.U()))return a.Ge.get("unplugged")};
jVa=function(a){if(a.J.U().Za)return a.Ge.get("ux")};
GV=function(a){if(a.J.U().pj)return a.Ge.get("offline")};
g.HV=function(a){return a.Ge.get("annotations_module")};
HYa=function(a){return a.Ge.get("creatorendscreen")};
JYa=function(a,b){var c,d;return g.H(function(e){c=a.j.startsWith("https://")?a.j+"lib.wasm":a.j.split("/").slice(0,4).join("/")+"/wasm/lib.wasm";d=function(f){var h=a.Ge.get("asmjs");return h?Promise.resolve(h.mY(f)):IYa(a).then(function(l){return l.mY(f)})};
return e.return(qYa(c,d,{Ly:void 0===b?!1:b,Id:!0,sync:!0,streaming:!0}))})};
IYa=function(a){var b,c;return g.H(function(d){if(1==d.j)return g.z(d,BYa(a),2);c=b=d.B;return d.return(c)})};
AYa=function(a,b,c,d){if(a.j){var e=KYa[b];LYa(a,a.j+e,function(){a.D.add(e);c.call(a)},d)}};
LYa=function(a,b,c,d){function e(){a.Ma()||d.call(a)}
function f(){a.Ma()||c.call(a)}
for(var h=g.lf("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.yf("SCRIPT"),m.setAttribute("data-original-src",b),l=!0);var q=m.onload;m.onload=function(w){Sf(f);q&&q.apply(window,[w])};
var r=m.onerror;m.onerror=function(w){if(.01>Math.random()){var A=new g.AC("Unable to load player module",b,document.location&&document.location.origin);g.dF(A)}Sf(e);r&&r(w)};
var t=m,v=t.onreadystatechange;t.onreadystatechange=function(w){switch(t.readyState){case "loaded":case "complete":Sf(f)}v&&v(w)};
l&&((h=a.J.U().cspNonce)&&m.setAttribute("nonce",h),g.Re(m,g.Mw(b)),h=g.lf("HEAD")[0]||document.body,h.insertBefore(m,h.firstChild),a.addOnDisposeCallback(function(){m.parentNode&&m.parentNode.removeChild(m)}))};
MYa=function(a,b,c,d,e){g.wF.call(this);var f=this;this.target=a;this.EH=b;this.B=0;this.K=!1;this.D=new g.Ge(NaN,NaN);this.j=new g.vK(this);this.Ba=this.C=this.N=null;g.O(this,this.j);b=d||e?4E3:3E3;this.Y=new g.lv(function(){IV(f,1,!1)},b,this);
g.O(this,this.Y);this.qa=new g.lv(function(){IV(f,2,!1)},b,this);
g.O(this,this.qa);this.ra=new g.lv(function(){IV(f,512,!1)},b,this);
g.O(this,this.ra);this.Ga=3E3;d||(this.C=this.j.T(a,"mouseover",this.Jw),this.j.T(a,"mousemove",this.E4),this.j.T(a,"mouseleave",this.F9));As?this.j.T(a,"keypress",this.Y8):this.j.T(a,"focusin",this.j7);this.G=this.j.T(a,"mousedown",this.EU);this.Z=this.j.T(a,"touchstart",this.FU,void 0,!0);IV(this,640,!0)};
NYa=function(a){IV(a,4,!1);a.N&&(a.j.Pc(a.N),a.N=null,a.C=a.j.T(a.target,"mouseover",a.Jw));a.C&&(a.j.Pc(a.C),a.C=a.j.T(a.target,"mouseover",a.Jw))};
IV=function(a,b,c){a.Ma();var d=!a.B;c?(a.B|=b,b&1&&a.Y.start(),b&2&&a.qa.start()):(a.B&=~b,b&1&&a.Y.stop(),b&2&&a.qa.stop(),b&512&&a.ra.stop());a.B&512&&!(a.B&128)&&g.mv(a.ra,a.Ga);b=!a.B;d!==b&&a.publish("autohideupdate",b)};
g.KV=function(a){g.W.call(this,{I:"button",Ka:["ytp-large-play-button","ytp-button"],X:{"aria-label":"Oynat",title:"Oynat"},V:["{{largePlayButtonChildren}}"]});this.api=a;this.T(a,"videodatachange",this.Sa);this.T(a,"basechromeinitialized",this.Hda);a=this.api.U();a.Z&&JV&&(this.listen("click",this.Y7,this),this.listen("touchstart",this.Tba,this));g.NR(a)&&g.uv(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.Sa()};
g.LV=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",Ka:c,V:[{I:"div",S:"ytp-cued-thumbnail-overlay-image"}]});b=this.Fa("ytp-cued-thumbnail-overlay");c=new g.KV(a);g.O(this,c);c.Ja(b);this.D=new g.vK(this);g.O(this,this.D);this.api=a;this.G=this.Fa("ytp-cued-thumbnail-overlay-image");this.C=c;this.B=new g.gG(this,250);g.O(this,this.B);this.j=new g.lv(this.Sa,
0,this);g.O(this,this.j);this.Sa();this.T(a,"appresize",this.Tb);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"ypcStateChanged",this.Bba);KR(a.U())&&this.T(a,"videoplayerreset",this.onReset)};
OYa=function(a){if(!a.api.L("web_player_show_frame_zero_when_cued"))return!1;var b=a.api.getCurrentTime();a=a.api.Qb();a=g.mG(a,64)&&g.mG(a,1);return 0===b&&a};
g.MV=function(a){g.W.call(this,{I:"div",Ka:["ytp-error"],X:{role:"alert"},V:[{I:"div",S:"ytp-error-content",V:[{I:"div",S:"ytp-error-icon-container",V:[{I:"svg",X:{fill:"#fff",viewBox:"0 0 48 48"},V:[{I:"path",X:{d:"M0 0h48v48H0V0z",fill:"none"}},{I:"path",X:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{I:"div",S:"ytp-error-content-wrap",
V:[{I:"div",S:"ytp-error-content-wrap-reason",xa:"{{content}}"},{I:"div",S:"ytp-error-content-wrap-subreason",xa:"{{subreason}}"}]}]}]});this.api=a;this.keys=[]};
g.NV=function(a){a=a.split(PYa);for(var b=[],c=0;c<a.length;c+=3){var d=a[c++].split("\n");b.push(d[0]);for(var e=1;e<d.length;e++)b.push({I:"br"}),b.push(d[e]);c<a.length&&b.push({I:"a",X:{href:a[c],target:a[c+1]},xa:a[c+2]})}return{I:"span",V:b}};
PV=function(a,b,c,d,e,f,h){d=void 0===d?!1:d;e=void 0===e?!1:e;h=void 0===h?!0:h;e||(e=a.api.U().D);a=a.api.getVideoData();b=g.KJ(g.OV[b]||"",d?{CPN:a.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",X:{href:c,target:e?"_blank":null},xa:b[2]});d.push(b[4]);return{I:"span",V:d}};
QYa=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)}};
RYa=function(a){for(var b=0;b<a.keys.length;b++)a.Pc(a.keys[b]);a.keys=[]};
SYa=function(a){g.W.call(this,{I:"div",S:"ytp-paid-content-overlay",X:{"aria-live":"assertive","aria-atomic":"true"}});this.J=a;this.videoId=null;this.C=!1;this.Ee=this.j=null;var b=a.U();a.L("enable_new_paid_product_placement")&&!g.aS(b)?(this.B=new g.W({I:"a",S:"ytp-paid-content-overlay-link",X:{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",Ka:["ytp-button","ytp-paid-content-overlay-text"],xa:"{{text}}"});this.D=new g.gG(this.B,250,!1,100);g.O(this,this.B);this.B.Ja(this.element);g.O(this,this.D);this.J.createServerVe(this.element,this);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.H4)};
UYa=function(a,b){var c=qUa(b),d=rUa(b);b.eg&&a.J.Hn()||(a.j?b.videoId&&b.videoId!==a.videoId&&(g.ov(a.j),a.videoId=b.videoId,a.C=!!d,a.C&&c&&TYa(a,d,c,b)):c&&d&&TYa(a,d,c,b))};
TYa=function(a,b,c,d){a.j&&a.j.dispose();a.j=new g.lv(a.Lb,b,a);g.O(a,a.j);var e,f;b=null==(e=d.getPlayerResponse())?void 0:null==(f=e.paidContentOverlay)?void 0:f.paidContentOverlayRenderer;e=null==b?void 0:b.navigationEndpoint;var h;f=null==b?void 0:null==(h=b.icon)?void 0:h.iconType;var l;h=null==(l=g.V(e,g.TF))?void 0:l.url;a.J.setTrackingParams(a.element,(null==e?void 0:e.clickTrackingParams)||null);a.B.update({href:null!=h?h:"#",text:c,icon:"MONEY_HAND"===f?{I:"svg",X:{fill:"none",height:"100%",
viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z",
fill:"white"}}]}:null,chevron:h?g.KF():null})};
VYa=function(a,b){a.j&&(g.mG(b,8)&&a.C?(a.C=!1,a.od(),a.j.start()):(g.mG(b,2)||g.mG(b,64))&&a.videoId&&(a.videoId=null))};
QV=function(a){g.W.call(this,{I:"div",S:"ytp-spinner",V:[OVa(),{I:"div",S:"ytp-spinner-message",xa:"Oynatma k\u0131sa bir s\u00fcre i\u00e7inde ba\u015flamazsa cihaz\u0131n\u0131z\u0131 yeniden ba\u015flatmay\u0131 deneyin."}]});this.api=a;this.message=this.Fa("ytp-spinner-message");this.j=new g.lv(this.show,500,this);g.O(this,this.j);this.T(a,"presentingplayerstatechange",this.onStateChange);this.T(a,"playbackstalledatstart",this.B);this.Bc(a.Qb())};
RV=function(a){var b=[{I:"div",Ka:["ytp-unmute-icon"],V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{I:"div",Ka:["ytp-unmute-text"],xa:"Sesi a\u00e7"}];b.push({I:"div",Ka:["ytp-unmute-box"],V:[]});g.gU.call(this,a,{I:"button",Ka:["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.hk);this.listen("click",this.onClick,this);a=a.isMutedByMutedAutoplay()&&
!g.IR(this.api.U());g.DF(this,a);a&&WYa(this);this.C=a};
WYa=function(a){a.j||(a.j=!0,a.api.logVisibility(a.element,!0))};
g.SV=function(a){g.vK.call(this);var b=this;this.api=a;this.VP=!1;this.Ln=null;this.GN=!1;this.wg=null;this.HN=this.pL=!1;this.IS=this.JS=null;this.DY=NaN;this.HS=this.lD=!1;this.VE=0;this.QM=[];this.bR=!1;this.dJ={height:0,width:0};this.x0=480;this.Xda=["ytp-player-content","html5-endscreen","ytp-overlay"];this.MJ={Sz:!1};var c=a.U(),d=a.kb();this.dJ=a.getPlayerSize();this.FV=new g.lv(this.oQ,0,this);g.O(this,this.FV);this.pn=new g.LV(a);g.O(this,this.pn);g.cU(a,this.pn.element,4);if(XYa(this)){var e=
new QV(a);g.O(this,e);e=e.element;g.cU(a,e,4)}var f=a.getVideoData();this.Gg=new MYa(d,function(l){return b.EH(l)},f,c.Fl,!1);
g.O(this,this.Gg);this.Gg.subscribe("autohideupdate",this.IA,this);if(!c.disablePaidContentOverlay){var h=new SYa(a);g.O(this,h);g.cU(a,h.element,4)}this.NS=new RV(a);g.O(this,this.NS);g.cU(this.api,this.NS.element,2);this.eP=this.api.isMutedByMutedAutoplay();this.T(a,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.mL=new g.lv(this.Pr,200,this);g.O(this,this.mL);this.BE=f.videoId;this.O_=new g.lv(function(){b.VE=0},350);
g.O(this,this.O_);this.ZH=new g.lv(function(){b.HS||YYa(b)},350,this);
g.O(this,this.ZH);f=a.getRootNode();f.setAttribute("aria-label","YouTube Video Oynat\u0131c\u0131s\u0131");switch(c.color){case "white":g.uv(f,"ytp-color-white")}this.T(a,"appresize",this.Tb);this.T(a,"presentingplayerstatechange",this.hk);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"videoplayerreset",this.faa);this.T(a,"autonavvisibility",function(){b.hq()});
this.T(a,"sizestylechange",function(){b.hq()});
this.T(d,"click",this.Gaa,this);this.T(d,"dblclick",this.Haa,this);this.T(d,"mousedown",this.Kaa,this);c.Gb&&(this.T(d,"gesturechange",this.Iaa,this),this.T(d,"gestureend",this.Jaa,this));this.TE=[d.ez];this.pn&&this.TE.push(this.pn.element);e&&this.TE.push(e)};
ZYa=function(a,b){if(!b)return!1;var c=a.api.Xe();if(c.Wu()&&(c=c.Ib())&&g.Nf(c,b))return c.controls;for(c=0;c<a.TE.length;c++)if(g.Nf(a.TE[c],b))return!1;c=g.u(a.Xda);for(var d=c.next();!d.done;d=c.next())if(g.tv(b,d.value))return!1;return b===a.api.getRootNode()?!1:!0};
$Ya=function(a){var b=2===a.api.getPresentingPlayerType()&&(a.api.kb().ZI||!1)&&a.api.U().B&&JV&&11<=PS;a=a.api.U().Z&&JV;return!(!b&&!a)};
TV=function(a,b){return!a.api.isInline()&&!ZYa(a,lC(b))&&g.DG(b)};
YYa=function(a){a.Gg.Bu();if(a.pL&&a.HN)a.HN=!1;else if(!a.api.U().Ra&&!a.Dq()){var b=a.api.Qb();g.mG(b,2)&&g.WT(a.api)||a.nG(b);!a.api.U().Gb||b.isCued()||g.mG(b,1024)?a.Pr():a.mL.isActive()?(a.fP(),a.mL.stop()):a.mL.start()}};
aZa=function(a,b){var c;if(null==(c=a.api.getVideoData())?0:c.mutedAutoplay){var d,e;if(null==(d=b.target)?0:null==(e=d.className)?0:e.includes("ytp-info-panel"))return!1}return g.DG(b)&&a.api.isMutedByMutedAutoplay()?(a.api.unMute(),2===a.api.getPresentingPlayerType()&&a.api.playVideo(),b=a.api.Qb(),!g.mG(b,4)||g.mG(b,8)||g.mG(b,2)||a.Pr(),!0):!1};
bZa=function(a,b,c){a.api.isFullscreen()?c<1-b&&a.api.toggleFullscreen():c>1+b&&a.api.toggleFullscreen()};
XYa=function(a){a=OB()&&67<=Ppa()&&!a.api.U().Z;return!g.NB("tizen")&&!GR&&!a&&!0};
UV=function(a,b){b=void 0===b?2:b;g.wF.call(this);this.api=a;this.j=null;this.Fd=new nC(this);g.O(this,this.Fd);this.B=Txa;this.Fd.T(this.api,"presentingplayerstatechange",this.I4);this.j=this.Fd.T(this.api,"progresssync",this.Nc);this.Eo=b;1===this.Eo&&this.Nc()};
g.VV=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",X:{role:"status","aria-label":"{{label}}"},V:[{I:"div",S:"ytp-bezel-icon",xa:"{{icon}}"}]}]});this.J=a;this.B=new g.lv(this.show,10,this);this.j=new g.lv(this.hide,500,this);g.O(this,this.B);g.O(this,this.j);this.hide()};
XV=function(a,b,c){if(0>=b){c=ixa();b="sessiz";var d=0}else c=c?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,X:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",
fill:"#fff"}}]},d=Math.floor(b),b=d+"ses d\u00fczeyi";WV(a,c,b,d+"%")};
cZa=function(a,b){b=b?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:Swa();var c=a.J.getPlaybackRate(),d=g.KJ("H\u0131z: $RATE",{RATE:String(c)});WV(a,b,d,c+"x")};
dZa=function(a,b){b=b?"Altyaz\u0131lar a\u00e7\u0131k":"Altyaz\u0131lar kapal\u0131";WV(a,NVa(),b)};
WV=function(a,b,c,d){d=void 0===d?"":d;a.updateValue("label",void 0===c?"":c);a.updateValue("icon",b);g.ov(a.j);a.B.start();a.updateValue("title",d);g.yv(a.element,"ytp-bezel-text-hide",!d)};
eZa=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-cards-button"],X:{"aria-label":"Kartlar\u0131 g\u00f6ster","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.IR(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")?Vwa():{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{I:"div",S:"ytp-cards-button-title",xa:"Bilgi"}]},{I:"span",S:"ytp-cards-button-icon-shopping",V:[{I:"div",S:"ytp-cards-button-icon",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",S:"ytp-svg-shadow",X:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{I:"path",S:"ytp-svg-fill",X:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{I:"path",S:"ytp-svg-shadow-fill",X:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{I:"div",
S:"ytp-cards-button-title",xa:"Al\u0131\u015fveri\u015f"}]}]});this.J=a;this.C=b;this.j=null;this.B=new g.gG(this,250,!0,100);g.O(this,this.B);g.yv(this.C,"ytp-show-cards-title",g.IR(a.U()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.D$);this.jG(!0)};
fZa=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",X:{"aria-label":"Kartlar\u0131 g\u00f6ster","aria-haspopup":"true"},V:[Vwa()]},{I:"span",S:"ytp-cards-teaser-label",xa:"{{text}}"},{I:"button",S:"ytp-cards-teaser-close-button",X:{"aria-label":"Kapat"},V:[g.LF()]}]:[{I:"span",S:"ytp-cards-teaser-label",xa:"{{text}}"}]}]});var c=this;
this.J=a;this.Sg=b;this.D=new g.gG(this,250,!1,250);this.j=null;this.N=new g.lv(this.R$,300,this);this.K=new g.lv(this.Q$,2E3,this);this.G=[];this.B=null;this.Y=new g.lv(function(){c.element.style.margin="0"},250);
this.onClickCommand=this.C=null;g.O(this,this.D);g.O(this,this.N);g.O(this,this.K);g.O(this,this.Y);a.U().L("player_new_info_card_format")?(g.uv(a.getRootNode(),"ytp-cards-teaser-dismissible"),this.T(this.Fa("ytp-cards-teaser-close-button"),"click",this.J4),this.T(this.Fa("ytp-cards-teaser-info-icon"),"click",this.yS),this.T(this.Fa("ytp-cards-teaser-label"),"click",this.yS)):this.listen("click",this.yS);this.T(b.element,"mouseover",this.HU);this.T(b.element,"mouseout",this.GU);this.T(a,"cardsteasershow",
this.kba);this.T(a,"cardsteaserhide",this.Lb);this.T(a,"cardstatechange",this.q1);this.T(a,"presentingplayerstatechange",this.q1);this.T(a,"appresize",this.uM);this.T(a,"onShowControls",this.uM);this.T(a,"onHideControls",this.m6);this.listen("mouseenter",this.K4)};
gZa=function(a){g.W.call(this,{I:"button",Ka:[YV.BUTTON,YV.TITLE_NOTIFICATIONS],X:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{I:"div",S:YV.TITLE_NOTIFICATIONS_ON,X:{title:"Her yeni videoyla ilgili bildirim almay\u0131 durdurun","aria-label":"Abone oldu\u011funuz kanaldan bildirim al\u0131n"},V:[g.Zwa()]},{I:"div",S:YV.TITLE_NOTIFICATIONS_OFF,X:{title:"Her yeni videoyla ilgili bildirim al\u0131n","aria-label":"Abone oldu\u011funuz kanaldan bildirim al\u0131n"},V:[{I:"svg",X:{fill:"#fff",
height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{I:"path",X:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]});this.api=a;this.j=!1;a.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Her yeni videoyla ilgili bildirim al\u0131n")};
hZa=function(a,b){a.j=b;a.element.classList.toggle(YV.NOTIFICATIONS_ENABLED,a.j);var c=a.api.getVideoData();c?(b=b?c.FM:c.DM)?(a=a.api.im())?FH(a,b):g.dF(Error("No innertube service available when updating notification preferences.")):g.dF(Error("No update preferences command available.")):g.dF(Error("No video data when updating notification preferences."))};
jZa=function(a,b,c){var d=void 0===d?800:d;var e=void 0===e?600:e;a=iZa(a,b);if(a=g.Me(a,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes"))Ita(function(){c()}),a.moveTo((screen.width-d)/2,(screen.height-e)/2)};
iZa=function(a,b){var c=document.location.protocol;return Kfa(c+"//"+a+"/signin?context=popup","feature",b,"next",c+"//"+location.hostname+"/post_login")};
g.ZV=function(a,b,c,d,e,f,h,l,m,n,p,q){a=a.charAt(0)+a.substring(1).toLowerCase();c=c.charAt(0)+c.substring(1).toLowerCase();if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;var r=p.U(),t=r.userDisplayName&&g.NR(r);g.W.call(this,{I:"div",Ka:["ytp-button","ytp-sb"],V:[{I:"div",S:"ytp-sb-subscribe",X:t?{title:g.KJ("$USER_NAME olarak abone olun",{USER_NAME:r.userDisplayName}),"aria-label":"Kanala abone ol","data-tooltip-image":nSa(r),"data-tooltip-opaque":String(g.IR(r)),tabindex:"0",role:"button"}:
{"aria-label":"Kanala abone ol"},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",X:t?{title:g.KJ("$USER_NAME hesab\u0131yla abone oldunuz",{USER_NAME:r.userDisplayName}),"aria-label":"Kanal aboneli\u011finden \u00e7\u0131k","data-tooltip-image":nSa(r),"data-tooltip-opaque":String(g.IR(r)),tabindex:"0",role:"button"}:{"aria-label":"Kanal aboneli\u011finden \u00e7\u0131k"},V:[{I:"div",S:"ytp-sb-text",V:[{I:"div",S:"ytp-sb-icon"},
c]},d?{I:"div",S:"ytp-sb-count",xa:d}:""]}],X:{"aria-live":"polite"}});var v=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.uv(this.element,"ytp-sb-classic");if(e){l?this.j():this.B();var C=function(){if(r.Ba){var G=v.channelId;if(m||n){var L={c:G};var M;g.cP.isInitialized()&&(M=JNa(L));L=M||"";if(M=p.getVideoData())if(M=M.subscribeCommand){var R=p.im();R?(FH(R,M,{botguardResponse:L,feature:m}),p.gb("SUBSCRIBE",G)):g.dF(Error("No innertube service available when updating subscriptions."))}else g.dF(Error("No subscribe command in videoData."));
else g.dF(Error("No video data available when updating subscription."))}A.focus();A.removeAttribute("aria-hidden");w.setAttribute("aria-hidden","true")}else jZa(g.UR(v.J.U()),"sb_button",v.D)},F=function(){var G=v.channelId;
if(m||n){var L=p.getVideoData();FH(p.im(),L.unsubscribeCommand,{feature:m});p.gb("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){13===G.keyCode&&C(G)});
this.T(A,"keypress",function(G){13===G.keyCode&&F(G)});
this.T(p,"SUBSCRIBE",this.j);this.T(p,"UNSUBSCRIBE",this.B);this.C&&t&&(qVa(p),TT(p,w,this),TT(p,A,this))}else g.uv(w,"ytp-sb-disabled"),g.uv(A,"ytp-sb-disabled")};
lZa=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",X:{href:"{{channelLink}}",target:a.U().Y,role:"link","aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-title-expanded-overlay",X:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{I:"div",S:"ytp-title-expanded-heading",V:[{I:"div",S:"ytp-title-expanded-title",V:[{I:"a",xa:"{{expandedTitle}}",X:{href:"{{channelTitleLink}}",target:a.U().Y,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}",
tabIndex:"{{channelTitleFocusable}}"}}]},{I:"div",S:"ytp-title-expanded-subtitle",xa:"{{expandedSubtitle}}",X:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var b=this;this.api=a;this.channel=this.Fa("ytp-title-channel");this.j=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.B=this.subscribeButton=null;this.D=!1;a.createClientVe(this.j,this,36925);a.createClientVe(this.channelName,this,
37220);g.IR(this.api.U())&&kZa(this);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&(this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Me($V(b));c.preventDefault()}),this.T(this.j,"click",this.i$));
this.Sa()};
mZa=function(a){if(!a.api.U().Xb){var b=a.api.getVideoData(),c=new g.ZV("Abone Ol",null,"Abone olundu",null,!0,!1,b.Bl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)});
a.subscribeButton=c;g.O(a,a.subscribeButton);a.subscribeButton.Ja(a.G);a.subscribeButton.hide();var e=new gZa(a.api);a.B=e;g.O(a,e);e.Ja(a.G);e.hide();a.T(a.api,"SUBSCRIBE",function(){b.Kl&&(e.show(),a.api.logVisibility(e.element,!0))});
a.T(a.api,"UNSUBSCRIBE",function(){b.Kl&&(e.hide(),a.api.logVisibility(e.element,!1),hZa(e,!1))})}};
kZa=function(a){var b=a.api.U();mZa(a);a.updateValue("flyoutUnfocusable","true");a.updateValue("channelTitleFocusable","-1");a.updateValue("shouldHideExpandedTitleForA11y","true");a.updateValue("shouldHideExpandedSubtitleForA11y","true");b.B||b.Wa?a.T(a.j,"click",function(c){a.api.L("web_player_ve_conversion_fixes_for_channel_info")||(nZa(a)&&(c.preventDefault(),a.isExpanded()?a.MH():a.kI()),a.api.logClick(a.j))}):(a.T(a.channel,"mouseenter",a.kI),a.T(a.channel,"mouseleave",a.MH),a.T(a.channel,"focusin",
a.kI),a.T(a.channel,"focusout",function(c){a.channel.contains(c.relatedTarget)||a.MH()}),a.T(a.j,"click",function(){a.api.L("web_player_ve_conversion_fixes_for_channel_info")||a.api.logClick(a.j)}));
a.C=new g.lv(function(){a.isExpanded()&&(a.api.L("web_player_ve_conversion_fixes_for_channel_info")&&a.api.logVisibility(a.channelName,!1),a.subscribeButton&&(a.subscribeButton.hide(),a.api.logVisibility(a.subscribeButton.element,!1)),a.B&&(a.B.hide(),a.api.logVisibility(a.B.element,!1)),a.channel.classList.remove("ytp-title-expanded"),a.channel.classList.add("ytp-title-show-collapsed"))},500);
g.O(a,a.C);a.T(a.channel,oZa,function(){pZa(a)});
a.T(a.api,"onHideControls",a.GR);a.T(a.api,"appresize",a.GR);a.T(a.api,"fullscreentoggled",a.GR)};
pZa=function(a){a.channel.classList.remove("ytp-title-show-collapsed");a.channel.classList.remove("ytp-title-show-expanded")};
nZa=function(a){var b=a.api.getPlayerSize();return g.IR(a.api.U())&&524<=b.width};
$V=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.fS(b)+c.Dc;if(!g.IR(b))return c;b={};g.KT(a.api,"addEmbedsConversionTrackingParams",[b]);g.eP(b,"emb_ch_name_ex");return g.Mn(c,b)};
aW=function(a,b,c,d,e,f){var h={I:"div",S:"ytp-panel"};if(c){var l="ytp-panel-back-button";var m="ytp-panel-title";var n={I:"div",S:"ytp-panel-header",V:[{I:"div",Ka:["ytp-panel-back-button-container"],V:[{X:{"aria-label":"\u00d6nceki men\u00fcye d\u00f6n"},I:"button",Ka:["ytp-button",l]}]},{I:"span",Ka:[m],V:[c]}]};if(e){var p="ytp-panel-options";n.V.push({I:"button",Ka:["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.EF.call(this,h);
this.content=b;d&&h.V?b.Ja(this.element,h.V.length-1):b.Ja(this.element);this.SX=!1;this.RX=d;c&&(c=this.Fa(l),m=this.Fa(m),this.T(c,"click",this.yZ),this.T(m,"click",this.yZ),this.SX=!0,e&&(p=this.Fa(p),this.T(p,"click",e)));b.subscribe("size-change",this.CZ,this);this.T(a,"fullscreentoggled",this.CZ);this.J=a};
g.bW=function(a,b,c,d,e,f){b=void 0===b?null:b;var h={role:"menu"};b&&(h.id=b);b=new g.EF({I:"div",S:"ytp-panel-menu",X:h});aW.call(this,a,b,c,d,e,f);this.menuItems=b;this.items=[];g.O(this,this.menuItems)};
g.cW=function(a){for(var b=g.u(a.items),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.LQ,a);a.items=[];g.Bf(a.menuItems.element);a.menuItems.publish("size-change")};
qZa=function(a,b){return b.priority-a.priority};
dW=function(a){var b=g.jU({"aria-haspopup":"true"});g.iU.call(this,b,a);this.listen("keydown",this.j)};
eW=function(a,b){a.element.setAttribute("aria-haspopup",String(b))};
rZa=function(a,b){g.W.call(this,{I:"div",S:"ytp-user-info-panel",X:{"aria-label":"Kullan\u0131c\u0131 bilgileri"},V:a.U().Ba&&!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",X:{tabIndex:"{{userInfoFocusable}}",role:"text"},xa:"{{watchingAsUsername}}"},{I:"div",S:"ytp-user-info-panel-info",X:{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",X:{tabIndex:"{{userInfoFocusable}}"},xa:"Oturum kapat\u0131ld\u0131"}]},{I:"div",S:"ytp-user-info-panel-login",V:[{I:"a",X:{tabIndex:"{{userInfoFocusable2}}",role:"button"},xa:a.U().Xb?"":"YouTube'da oturum a\u00e7\u0131n"}]}]}]});this.Ua=a;this.j=b;a.U().Ba||a.U().Xb||(a=this.Fa("ytp-user-info-panel-login"),this.T(a,"click",this.M4));this.closeButton=new g.W({I:"button",Ka:["ytp-collapse",
"ytp-button"],X:{title:"Kapat"},V:[g.NF()]});this.closeButton.Ja(this.element);g.O(this,this.closeButton);this.T(window,"blur",this.hide);this.T(document,"click",this.L4);this.Sa()};
tZa=function(a,b,c){g.bW.call(this,a);this.Fb=b;this.Xd=c;this.getVideoUrl=new dW(6);this.En=new dW(5);this.yn=new dW(4);this.jc=new dW(3);this.PF=new g.iU(g.jU({href:"{{href}}",target:this.J.U().Y},void 0,!0),2,"Oynatma sorununu gider");this.showVideoInfo=new g.iU(g.jU(),1,"Merakl\u0131s\u0131 i\u00e7in istatistikler");this.fz=new g.EF({I:"div",Ka:["ytp-copytext","ytp-no-contextmenu"],X:{draggable:"false",tabindex:"1"},xa:"{{text}}"});this.jW=new aW(this.J,this.fz);this.KG=this.qt=null;g.IR(this.J.U())&&
(this.closeButton=new g.W({I:"button",Ka:["ytp-collapse","ytp-button"],X:{title:"Kapat"},V:[g.NF()]}),g.O(this,this.closeButton),this.closeButton.Ja(this.element),this.closeButton.listen("click",this.p6,this));g.IR(this.J.U())&&(this.rl=new g.iU(g.jU(),8,"Hesap"),g.O(this,this.rl),this.Rc(this.rl,!0),this.rl.listen("click",this.Vaa,this),a.createClientVe(this.rl.element,this.rl,137682));this.J.U().Tm&&(this.Uk=new rU("D\u00f6ng\u00fc",7),g.O(this,this.Uk),this.Rc(this.Uk,!0),this.Uk.listen("click",
this.K$,this),a.createClientVe(this.Uk.element,this.Uk,28661));g.O(this,this.getVideoUrl);this.Rc(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.B$,this);a.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.O(this,this.En);this.Rc(this.En,!0);this.En.listen("click",this.C$,this);a.createClientVe(this.En.element,this.En,28660);g.O(this,this.yn);this.Rc(this.yn,!0);this.yn.listen("click",this.A$,this);a.createClientVe(this.yn.element,this.yn,28658);g.O(this,this.jc);this.Rc(this.jc,
!0);this.jc.listen("click",this.z$,this);g.O(this,this.PF);this.Rc(this.PF,!0);this.PF.listen("click",this.Caa,this);g.O(this,this.showVideoInfo);this.Rc(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.Waa,this);g.O(this,this.fz);this.fz.listen("click",this.n$,this);g.O(this,this.jW);b=document.queryCommandSupported&&document.queryCommandSupported("copy");43<=Saa("Chromium")&&(b=!0);40>=Saa("Firefox")&&(b=!1);b&&(this.qt=new g.W({I:"textarea",S:"ytp-html5-clipboard",X:{readonly:"",tabindex:"-1"}}),
g.O(this,this.qt),this.qt.Ja(this.element));var d;null==(d=this.rl)||d.setIcon(bxa());var e;null==(e=this.Uk)||e.setIcon({I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.jc.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z",
fill:"white","fill-rule":"evenodd"}}]});this.PF.setIcon(Twa());this.showVideoInfo.setIcon(Uwa());this.T(a,"onLoopChange",this.onLoopChange);this.T(a,"videodatachange",this.onVideoDataChange);sZa(this);this.kG(this.J.getVideoData())};
gW=function(a,b){var c=!1;if(a.qt){var d=a.qt.element;d.value=b;d.select();try{c=document.execCommand("copy")}catch(e){}}c?a.Fb.Lb():(a.fz.Ld(b,"text"),g.fW(a.Fb,a.jW),PVa(a.fz.element),a.qt&&(a.qt=null,sZa(a)));return c};
sZa=function(a){var b=!!a.qt;a.jc.zk(b?"Hata ay\u0131klama bilgilerini kopyala":"Hata ay\u0131klama bilgilerini al");eW(a.jc,!b);a.yn.zk(b?"Yerle\u015ftirme kodunu kopyala":"Yerle\u015ftirme kodunu al");eW(a.yn,!b);a.getVideoUrl.zk(b?"Video URL'sini kopyala":"Video URL'sini al");eW(a.getVideoUrl,!b);a.En.zk(b?"Ge\u00e7erli zamana ait video URL'sini kopyala":"Ge\u00e7erli zamandaki video URL'sini al");eW(a.En,!b);a.yn.setIcon(b?Qwa():null);a.getVideoUrl.setIcon(b?MF():null);a.En.setIcon(b?MF():null)};
uZa=function(a){return g.IR(a.J.U())?a.rl:a.Uk};
g.hW=function(a,b){g.gU.call(this,a,{I:"div",Ka:["ytp-popup",b||""]},100,!0);this.j=[];this.K=this.G=null;this.maxHeight=this.maxWidth=0;this.size=new g.Ie(0,0);this.listen("keydown",this.N4)};
vZa=function(a){var b=a.j[a.j.length-1];if(b){g.Ks(a.element,a.maxWidth||"100%",a.maxHeight||"100%");g.zs(b.element,"width","");g.zs(b.element,"height","");g.zs(b.element,"maxWidth","100%");g.zs(b.element,"maxHeight","100%");g.zs(b.content.element,"height","");var c=g.Ls(b.element);c.width+=1;c.height+=1;g.zs(b.element,"width",c.width+"px");g.zs(b.element,"height",c.height+"px");g.zs(b.element,"maxWidth","");g.zs(b.element,"maxHeight","");var d=0;b.SX&&(d=b.Fa("ytp-panel-header"),d=g.Ls(d).height);
var e=0;b.RX&&(e=b.Fa("ytp-panel-footer"),g.zs(e,"width",c.width+"px"),e=g.Ls(e).height);g.zs(b.content.element,"height",c.height-d-e+"px");b.element instanceof HTMLElement&&(d=b.element,e=d.scrollWidth-d.clientWidth,0<d.offsetWidth-d.clientWidth&&0<e&&(c.width+=e,g.zs(b.element,"width",c.width+"px")));a.size=c}};
g.fW=function(a,b){var c=a.j[a.j.length-1];a.j.push(b);wZa(a,c,b)};
g.iW=function(a){if(!(1>=a.j.length)){var b=a.j.pop(),c=a.j[0];a.j=[c];wZa(a,b,c,!0)}};
wZa=function(a,b,c,d){xZa(a);b&&(b.unsubscribe("size-change",a.MB,a),b.unsubscribe("back",a.yj,a));c.subscribe("size-change",a.MB,a);c.subscribe("back",a.yj,a);if(a.Eb){g.uv(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ja(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;vZa(a);g.Ks(a.element,e);a.G=new g.lv(function(){yZa(a,b,c,d)},20,a);
a.G.start()}else c.Ja(a.element),b&&b.detach()};
yZa=function(a,b,c,d){a.G.dispose();a.G=null;g.uv(a.element,"ytp-popup-animating");d?(g.uv(b.element,"ytp-panel-animate-forward"),g.wv(c.element,"ytp-panel-animate-back")):(g.uv(b.element,"ytp-panel-animate-back"),g.wv(c.element,"ytp-panel-animate-forward"));g.Ks(a.element,a.size);a.K=new g.lv(function(){g.wv(a.element,"ytp-popup-animating");b.detach();g.xv(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);a.K.dispose();a.K=null},250,a);
a.K.start()};
xZa=function(a){a.G&&g.nv(a.G);a.K&&g.nv(a.K)};
AZa=function(a,b){g.hW.call(this,a);this.Xd=b;this.D=new g.vK(this);this.ra=new g.lv(this.pba,1E3,this);this.Ba=this.C=null;g.O(this,this.D);g.O(this,this.ra);a.createClientVe(this.element,this,28656);g.uv(this.element,"ytp-contextmenu");zZa(this);this.hide()};
zZa=function(a){g.pC(a.D);var b=a.J.U();"gvn"===b.playerStyle||b.B||b.Wa||(b=a.J.kb(),a.D.T(b,"contextmenu",a.l$),a.D.T(b,"touchstart",a.P4,null,!0),a.D.T(b,"touchmove",a.ZZ,null,!0),a.D.T(b,"touchend",a.ZZ,null,!0))};
BZa=function(a){a.J.isFullscreen()?g.cU(a.J,a.element,10):a.Ja(document.body)};
jW=function(a,b,c){c=void 0===c?240:c;g.W.call(this,{I:"button",Ka:["ytp-button","ytp-copylink-button"],X:{title:"{{title-attr}}","data-tooltip-opaque":String(g.IR(a.U()))},V:[{I:"div",S:"ytp-copylink-icon",xa:"{{icon}}"},{I:"div",S:"ytp-copylink-title",xa:"Ba\u011flant\u0131y\u0131 kopyala",X:{"aria-hidden":"true"}}]});this.api=a;this.Te=b;this.j=c;this.visible=!1;this.tooltip=this.Te.Ne();b=a.U();this.tooltip.element.setAttribute("aria-live","polite");g.yv(this.element,"ytp-show-copylink-title",
g.IR(b));a.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.T(a,"appresize",this.Sa);this.Sa();this.addOnDisposeCallback(g.ST(this.tooltip,this.element))};
CZa=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=a.api.kb().getPlayerSize().width;b=b.C;return!!c.videoId&&d>=a.j&&c.Ro&&!g.ET(c)&&!a.api.Yc()&&!b};
DZa=function(a){a.updateValue("icon",Mwa());if(a.api.U().B)a.tooltip.oG(a.element,"Ba\u011flant\u0131 panoya kopyaland\u0131");else{a.updateValue("title-attr","Ba\u011flant\u0131 panoya kopyaland\u0131");a.tooltip.Ph();a.tooltip.oG(a.element);var b=a.listen("mouseleave",function(){a.Pc(b);a.Sa();a.tooltip.Xl()})}};
EZa=function(a,b){return g.H(function(c){if(1==c.j)return g.Ba(c,2),g.z(c,navigator.clipboard.writeText(b),4);if(2!=c.j)return c.return(!0);g.Da(c);var d=c.return,e=!1,f=g.yf("TEXTAREA");f.value=b;f.setAttribute("readonly","");var h=a.api.getRootNode();h.appendChild(f);if(pD){var l=window.getSelection();l.removeAllRanges();var m=document.createRange();m.selectNodeContents(f);l.addRange(m);f.setSelectionRange(0,b.length)}else f.select();try{e=document.execCommand("copy")}catch(n){}h.removeChild(f);
return d.call(c,e)})};
kW=function(a){g.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.lv(this.show,10,this);this.B=new g.lv(this.hide,700,this);this.K=this.C=0;this.G=!1;this.j=this.Fa("ytp-doubletap-static-circle");g.O(this,this.D);g.O(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")};
lW=function(a,b,c){a.C=b===a.K?a.C+c:c;a.K=b;var d=a.J.kb().getPlayerSize();a.G?a.B.stop():g.ov(a.B);a.D.start();a.element.setAttribute("data-side",-1===b?"back":"forward");g.uv(a.element,"ytp-time-seeking");a.j.style.width="110px";a.j.style.height="110px";1===b?(a.j.style.right="",a.j.style.left=.8*d.width-30+"px"):-1===b&&(a.j.style.right="",a.j.style.left=.1*d.width-15+"px");a.j.style.top=.5*d.height+15+"px";FZa(a,a.G?a.C:c)};
GZa=function(a,b,c){g.ov(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.uv(a.element,"ytp-chapter-seek");a.updateValue("seekText",c);a.updateValue("seekTime","")};
FZa=function(a,b){b=g.KJ("$TOTAL_SEEK_TIME saniye",{TOTAL_SEEK_TIME:b.toString()});a.updateValue("seekTime",b)};
mW=function(a){g.hW.call(this,a,"ytp-shopping-product-menu");this.Ue=new g.bW(this.J);g.O(this,this.Ue);this.hide();g.fW(this,this.Ue);g.cU(this.J,this.element,4)};
IZa=function(a,b,c){var d,e=null==b?void 0:null==(d=b.text)?void 0:d.simpleText;e&&(c=HZa(a,c,e,null==b?void 0:b.icon),b.navigationEndpoint&&c.listen("click",function(){a.J.gb("innertubeCommand",b.navigationEndpoint);a.hide()},a))};
JZa=function(a,b,c){var d,e=null==b?void 0:null==(d=b.text)?void 0:d.simpleText;e&&HZa(a,c,e,null==b?void 0:b.icon).listen("click",function(){var f;"HIDE"===(null==b?void 0:null==(f=b.icon)?void 0:f.iconType)?a.J.publish("featuredproductdismissed"):b.serviceEndpoint&&a.J.gb("innertubeCommand",b.serviceEndpoint);a.hide()},a)};
HZa=function(a,b,c,d){b=new g.iU(g.jU(),b,c);b.setIcon(KZa(d));g.O(a,b);a.Ue.Rc(b,!0);return b};
KZa=function(a){if(!a)return null;switch(a.iconType){case "ACCOUNT_CIRCLE":return{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z",
fill:"#fff"}}]};case "FLAG":return{I:"svg",X:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return Twa();case "HIDE":return{I:"svg",X:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"g",V:[{I:"path",X:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}}};
LZa=function(a){LU.call(this,a,!1,!0);this.Ga=[];this.Jb=[];this.qa=!0;this.badge.element.classList.add("ytp-featured-product");this.Da=new g.W({I:"div",S:"ytp-featured-product-open-in-new"});g.O(this,this.Da);this.countdownTimer=new g.W({I:"text",S:"ytp-featured-product-countdown",xa:"{{content}}"});this.countdownTimer.hide();g.O(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.O(this,this.B);this.overflowButton=new g.W({I:"button",Ka:["ytp-featured-product-overflow-icon","ytp-button"],X:{"aria-haspopup":"true"}});this.overflowButton.hide();g.O(this,this.overflowButton);this.infoButton=new g.W({I:"button",Ka:["ytp-featured-product-info-icon","ytp-button"]});this.infoButton.hide();g.O(this,this.infoButton);this.N=new g.W({I:"text",S:"ytp-featured-product-exclusive-countdown",xa:"{{content}}",X:{id:"exclusiveCountdown","aria-hidden":"true"}});
this.N.hide();g.O(this,this.N);this.K=new g.W({I:"div",S:"ytp-featured-product-exclusive-container",X:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},V:[{I:"div",S:"ytp-featured-product-exclusive-badge-container",V:[{I:"div",S:"ytp-featured-product-exclusive-badge",V:[{I:"text",S:"ytp-featured-product-exclusive-badge-text",xa:"{{exclusive}}",X:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.N]});this.K.hide();g.O(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",X:{src:"{{thumbnail}}"}},this.Da]},{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",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price-when-promotion-text-enabled",xa:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-promotion-text",
xa:"{{promotionText}}",X:{"aria-hidden":"true"}}]}:{I:"div",X:{"aria-label":"{{priceA11yText}}"},V:[{I:"text",S:"ytp-featured-product-price",xa:"{{price}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-sales-original-price",xa:"{{salesOriginalPrice}}",X:{"aria-hidden":"true"}},{I:"text",S:"ytp-featured-product-price-drop-reference-price",xa:"{{priceDropReferencePrice}}",X:{"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.O(this,this.banner);this.banner.Ja(this.C.element);this.T(this.J,g.EJ("featured_product"),this.Lca);this.T(this.J,g.FJ("featured_product"),this.kB);this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.infoButton.element,"click",this.E$);this.T(this.overflowButton.element,"click",this.aaa);this.T(a,"featuredproductdismissed",this.Qt)};
MZa=function(a){var b,c;a=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;var d,e,f;return(null==a||!a.affiliateDisclaimer)&&(null==a?0:null==(d=a.exclusivesData)?0:d.exclusiveOfferLabelText)&&(null==a?0:null==(e=a.exclusivesData)?0:e.expirationTimestampMs)&&(null==a?0:null==(f=a.exclusivesData)?0:f.exclusiveOfferCountdownText)?!0:!1};
OZa=function(a){var b,c,d,e,f=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:null==(e=d.exclusivesData)?void 0:e.expirationTimestampMs;b=(Number(f)-Date.now())/1E3;if(0<b){if(604800>b){var h,l,m,n;c=null==(h=a.j)?void 0:null==(l=h.bannerData)?void 0:null==(m=l.itemData)?void 0:null==(n=m.exclusivesData)?void 0:n.exclusiveOfferCountdownText;if(void 0!==c)for(h=Date.now(),l=g.u(c),m=l.next();!m.done;m=l.next())if(m=m.value,void 0!==m&&void 0!==m.text&&(n=Number(m.textDisplayStartTimestampMs),
!isNaN(n)&&h>=n)){m.insertCountdown?(b=m.text.replace(/\$0/,String(fJa({seconds:b}))),a.N.Ld(b)):a.N.Ld(m.text);a.N.show();break}}var p,q,r,t;a.K.update({exclusive:null==(p=a.j)?void 0:null==(q=p.bannerData)?void 0:null==(r=q.itemData)?void 0:null==(t=r.exclusivesData)?void 0:t.exclusiveOfferLabelText});a.K.show();nW(a);var v;null==(v=a.Pb)||v.start()}else NZa(a)};
NZa=function(a){var b;null==(b=a.Pb)||b.stop();a.N.hide();a.K.hide();oW(a)};
PZa=function(a){var b,c,d=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;return a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(null==d||!d.priceReplacementText)&&(null==d?0:d.promotionText)?null==d?void 0:d.promotionText.content:null};
QZa=function(a){var b,c,d=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData,e,f;if(!(null!=d&&d.priceReplacementText||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(null==d?0:null==(e=d.dealsData)?0:null==(f=e.sales)?0:f.originalPrice)){var h,l;return null==d?void 0:null==(h=d.dealsData)?void 0:null==(l=h.sales)?void 0:l.originalPrice}return null};
RZa=function(a){var b,c,d=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData,e,f,h,l;if(!((null==d?0:d.priceReplacementText)||a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(null==d?0:null==(e=d.dealsData)?0:null==(f=e.sales)?0:f.originalPrice))&&(null==d?0:null==(h=d.dealsData)?0:null==(l=h.priceDrop)?0:l.referencePrice)){var m,n;return null==d?void 0:null==(m=d.dealsData)?void 0:null==(n=m.priceDrop)?void 0:n.referencePrice}return null};
SZa=function(a){var b,c,d=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:c.itemData;if(null==d?0:d.priceReplacementText)return null==d?void 0:d.priceReplacementText;if((null==d?0:d.promotionText)&&a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var e;return(null==d?void 0:d.price)+" "+(null==d?void 0:null==(e=d.promotionText)?void 0:e.content)}var f,h;if(null==d?0:null==(f=d.dealsData)?0:null==(h=f.sales)?0:h.originalPrice){var l,m;return null==d?void 0:null==(l=
d.dealsData)?void 0:null==(m=l.sales)?void 0:m.salesPriceAccessibilityLabel}var n,p;if(null==d?0:null==(n=d.dealsData)?0:null==(p=n.priceDrop)?0:p.referencePrice){var q,r;return(null==d?void 0:d.price)+" "+(null==d?void 0:null==(q=d.dealsData)?void 0:null==(r=q.priceDrop)?void 0:r.referencePrice)}return null==d?void 0:d.price};
TZa=function(a){if(a.J.L("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var b,c,d;return a.B.Eb?null:null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:d.vendorName}var e,f,h,l,m,n;return a.B.Eb||a.K.Eb||(null==(e=a.j)?0:null==(f=e.bannerData)?0:null==(h=f.itemData)?0:h.affiliateDisclaimer)?null:null==(l=a.j)?void 0:null==(m=l.bannerData)?void 0:null==(n=m.itemData)?void 0:n.vendorName};
VZa=function(a,b){pW(a);if(b){var c=g.ZS.getState().entities;c=yO(c,"featuredProductsEntity",b);if(null!=c&&c.productsData){b=[];c=g.u(c.productsData);for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if(null!=(e=d)&&e.identifier&&d.featuredSegments){a.Ga.push(d);var f=void 0;e=g.u(null==(f=d)?void 0:f.featuredSegments);for(f=e.next();!f.done;f=e.next()){var h=f.value;f=UZa(h.startTimeSec);void 0!==f&&(h=UZa(h.endTimeSec),b.push(new g.DJ(1E3*f,void 0===h?0x7ffffffffffff:1E3*h,{id:d.identifier,
namespace:"featured_product"})))}}}a.J.lf(b)}}};
oW=function(a){if(a.trendingOfferEntityKey){var b=g.ZS.getState().entities;if(b=yO(b,"trendingOfferEntity",a.trendingOfferEntityKey)){var c,d,e;b.encodedSkuId!==(null==(c=a.j)?void 0:null==(d=c.bannerData)?void 0:null==(e=d.itemData)?void 0:e.encodedOfferSkuId)?nW(a):(a.B.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),a.B.show(),a.banner.update({vendor:TZa(a)}))}else nW(a)}else nW(a)};
nW=function(a){a.B.hide();a.banner.update({vendor:TZa(a)})};
pW=function(a){a.Ga=[];a.kB();a.J.sf("featured_product")};
WZa=function(a){var b,c,d,e,f=null==(b=a.j)?void 0:null==(c=b.bannerData)?void 0:null==(d=c.itemData)?void 0:null==(e=d.hiddenProductOptions)?void 0:e.dropTimestampMs;b=(Number(f)-Date.now())/1E3;a.countdownTimer.Ld(fJa({seconds:b}));if(0<b){var h;null==(h=a.Gb)||h.start()}};
XZa=function(a){var b;null==(b=a.Gb)||b.stop();a.countdownTimer.hide()};
UZa=function(a){if(void 0!==a&&""!==a.trim()&&(a=Math.trunc(Number(a.trim())),!(isNaN(a)||0>a)))return a};
b_a=function(a,b,c){g.W.call(this,{I:"div",Ka:["ytp-info-panel-action-item"],V:[{I:"div",S:"ytp-info-panel-action-item-disclaimer",xa:"{{disclaimer}}"},{I:"a",Ka:["ytp-info-panel-action-item-button","ytp-button"],X:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{I:"div",S:"ytp-info-panel-action-item-icon",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.qe=!1;this.J.createServerVe(this.element,this,!0);this.listen("click",this.onClick);a="";c=g.V(null==b?void 0:b.onTap,hF);var d=g.V(c,g.TF);this.qe=!1;d?(a=d.url||"",a.startsWith("//")&&(a="https:"+a),this.qe=!0,g.Ke(this.button,g.ie(a))):(d=g.V(c,YZa))&&!this.j?((a=d.phoneNumbers)&&0<a.length?(a="sms:"+a[0],d.messageText&&(a+="?&body="+encodeURI(d.messageText))):a="",this.qe=!0,g.Ke(this.button,g.ie(a,[ZZa]))):(c=g.V(c,$Za))&&!this.j&&(a=c.phoneNumber?
"tel:"+c.phoneNumber:"",this.qe=!0,g.Ke(this.button,g.ie(a,[a_a])));var e;if(c=null==(e=b.disclaimerText)?void 0:e.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var f;this.update({label:null==(f=b.bodyText)?void 0:f.content,icon:$wa(),disclaimer:c})}else{this.disclaimer.style.display="none";var h;this.update({label:null==(h=b.bodyText)?void 0:h.content,icon:$wa()})}this.J.setTrackingParams(this.element,b.trackingParams||null);this.qe&&(this.B={externalLinkData:{url:a}})};
c_a=function(a,b){var c=zF();g.gU.call(this,a,{I:"div",S:"ytp-info-panel-detail-skrim",V:[{I:"div",S:"ytp-info-panel-detail",X:{role:"dialog",id:c},V:[{I:"div",S:"ytp-info-panel-detail-header",V:[{I:"div",S:"ytp-info-panel-detail-title",xa:"{{title}}"},{I:"button",Ka:["ytp-info-panel-detail-close","ytp-button"],X:{"aria-label":"Kapat"},V:[g.LF()]}]},{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.vK(this);this.itemData=[];this.D=c;b=this.Fa("ytp-info-panel-detail-close");this.T(b,"click",this.Lb);b=this.Fa("ytp-info-panel-detail-skrim");this.T(b,"click",this.Lb);b=this.Fa("ytp-info-panel-detail");this.T(b,"click",function(d){d.stopPropagation()});
g.O(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",a.getVideoData());this.hide()};
d_a=function(a,b){a=g.u(a.itemData);for(var c=a.next();!c.done;c=a.next())c=c.value,c.J.logVisibility(c.element,b)};
g_a=function(a,b){g.W.call(this,{I:"div",S:"ytp-info-panel-preview",X:{"aria-live":"assertive","aria-atomic":"true","aria-owns":b.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.IR(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.Ee=this.j=this.videoId=null;this.D=this.showControls=this.B=!1;this.T(this.element,"click",function(){a.logClick(c.element);a.Dq();hU(b)});
this.C=new g.gG(this,250,!1,100);g.O(this,this.C);this.J.createServerVe(this.element,this,!0);this.T(a,"videodatachange",this.onVideoDataChange);this.T(a,"presentingplayerstatechange",this.S4);this.T(this.J,"paidcontentoverlayvisibilitychange",this.DZ);this.T(this.J,"infopaneldetailvisibilitychange",this.DZ);var d=a.getVideoData()||{};e_a(d)&&f_a(this,d);this.T(a,"onShowControls",this.R4);this.T(a,"onHideControls",this.Q4)};
f_a=function(a,b){if(!b.eg||!a.J.Hn()){var c=b.GC||1E4,d=e_a(b);a.j?b.videoId&&b.videoId!==a.videoId&&(g.ov(a.j),a.videoId=b.videoId,d?(h_a(a,c,b),a.od()):(a.Lb(),a.j.dispose(),a.j=null)):d&&(b.videoId&&(a.videoId=b.videoId),h_a(a,c,b),a.od())}};
e_a=function(a){var b,c,d,e;return!!(null==(b=a.Re)?0:null==(c=b.title)?0:c.content)||!!(null==(d=a.Re)?0:null==(e=d.bodyText)?0:e.content)};
h_a=function(a,b,c){a.j&&a.j.dispose();a.j=new g.lv(a.Pca,b,a);g.O(a,a.j);var d;b=(null==(d=c.Re)?void 0:d.trackingParams)||null;a.J.setTrackingParams(a.element,b);var e;var f,h;if(null==c?0:null==(f=c.Re)?0:null==(h=f.title)?0:h.content){var l;d=null==(e=c.Re)?void 0:null==(l=e.title)?void 0:l.content;var m,n;if(null==(m=c.Re)?0:null==(n=m.bodyText)?0:n.content)d+=" \u2022 ";e=d}else e="";var p,q;c=(null==(p=c.Re)?void 0:null==(q=p.bodyText)?void 0:q.content)||"";a.update({text:e+c,chevron:g.KF()})};
i_a=function(a,b){a.j&&(g.mG(b,8)?(a.B=!0,a.od(),a.j.start()):(g.mG(b,2)||g.mG(b,64))&&a.videoId&&(a.videoId=null))};
qW=function(a){var b=null;try{b=a.toLocaleString("tr",{style:"percent"})}catch(c){b=a.toLocaleString(void 0,{style:"percent"})}return b};
rW=function(a,b){var c=0;a=g.u(a);for(var d=a.next();!(d.done||d.value.startTime>b);d=a.next())c++;return 0===c?c:c-1};
j_a=function(a,b){for(var c=0,d=g.u(a),e=d.next();!e.done;e=d.next()){e=e.value;if(b<e.timeRangeStartMillis)return null;if(b>=e.timeRangeStartMillis&&b<e.timeRangeStartMillis+e.j)break;c++}c+1<a.length&&a[c+1].timeRangeStartMillis<=b&&c++;return c<a.length?c:null};
k_a=function(a,b){b=rW(a,b)+1;return b<a.length?b:-1};
l_a=function(a,b){return rW(a,b)-1};
m_a=function(a,b){return new g.DJ(a,b,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+a})};
o_a=function(a,b,c,d,e,f,h,l){g.vK.call(this);var m=this;this.api=a;this.contextMenu=c;this.Gg=d;this.Xd=e;this.j=f;this.K=h;this.progressBar=l;this.D=new g.lv(function(){n_a(m,!1)},1E3);
this.B="";this.C={cJ:!1};this.G=!1;g.O(this,this.D);this.T(b,"mousedown",function(){sW(m,!1)});
this.T(c.element,"mousedown",function(){sW(m,!1)});
this.T(b,"keydown",this.FX);this.T(c.element,"keydown",this.FX);this.T(b,"keyup",this.GX);this.T(c.element,"keyup",this.GX)};
sW=function(a,b){a.G=b;g.yv(a.api.getRootNode(),"ytp-probably-keyboard-focus",b);g.yv(a.contextMenu.element,"ytp-probably-keyboard-focus",b)};
uW=function(a,b,c,d){var e=g.BV(a.api.yb());if(e&&e.loaded){var f=a.api.getSubtitlesUserSettings();e=void 0;for(var h=0;h<g.tW.length;h++){var l=g.tW[h];if(l.option===b){e=l.options;break}}h=void 0;for(l=0;l<e.length;l++)e[l].option===f[b]&&(h=l);if(d)if(c){if(0===h)return}else if(h===e.length-1)return;d={};d[b]=e[(h+(c?e.length-1:1))%e.length].option;a.api.updateSubtitlesUserSettings(d);n_a(a,!0);a.D.start()}};
n_a=function(a,b){g.BV(a.api.yb())&&a.api.setOption("captions","sampleSubtitles",b)};
g.vW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-overflow-button"],X:{title:"Daha fazla","aria-haspopup":"true","aria-owns":b.element.id},V:[{I:"div",S:"ytp-overflow-icon",V:[{I:"svg",X:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},V:[{I:"path",X:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]});var c=this;this.J=a;this.Zh=b;this.j=this.visible=!1;a.createClientVe(this.element,
this,16499);this.T(a,"videoplayerreset",this.Sa);this.T(a,"appresize",this.Sa);this.T(a,"fullscreentoggled",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);this.Sa();TT(a,this.element,this);this.listen("click",function(){a.logClick(c.element);hU(b,c.element,!1)});
this.T(b.closeButton,"click",function(){c.focus()})};
p_a=function(a){g.gU.call(this,a,{I:"div",S:"ytp-overflow-panel",X:{id:zF(),role:"dialog"},V:[{I:"div",S:"ytp-overflow-panel-content",V:[{I:"div",S:"ytp-overflow-panel-action-buttons",xa:"{{buttons}}"}]},{I:"button",Ka:["ytp-overflow-panel-close","ytp-button"],X:{title:"Kapat"},V:[g.LF()]}]},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.Lb);TT(a,this.closeButton,this);this.listen("click",
this.T4);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.hide()};
q_a=function(a,b){a.actionButtons.includes(b)||(a.actionButtons.push(b),a.updateValue("buttons",a.actionButtons))};
r_a=function(a,b){a=g.u(a.actionButtons);for(var c=a.next();!c.done;c=a.next())c.value.Hc(b)};
s_a=function(a,b,c){var d=g.nV(b,c),e=d.Yg("default.jpg");g.W.call(this,{I:"a",Ka:["ytp-video-menu-item","ytp-button"],X:{role:"menuitemradio","aria-label":d.title,href:a.U().getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},V:[{I:"div",S:"ytp-video-menu-item-index",xa:String(c+1)},{I:"div",S:"ytp-video-menu-item-now-playing",xa:"\u25b6"},{I:"div",S:"ytp-video-menu-item-thumbnail",X:{style:e?"background-image: url("+e+");":void 0}},{I:"div",S:"ytp-video-menu-item-title",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)};
t_a=function(a){g.gU.call(this,a,{I:"div",S:"ytp-playlist-menu",X:{role:"dialog",id:zF()},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",X:{href:"{{playlisturl}}"},xa:"{{title}}"},{I:"button",Ka:["ytp-playlist-menu-close","ytp-button"],X:{"aria-label":"Kapat"},V:[g.LF()]}]},{I:"div",S:"ytp-playlist-menu-subtitle",xa:"{{subtitle}}"}]},{I:"div",S:"ytp-playlist-menu-items",
X:{role:"menu"}}]},250);this.api=a;this.D=this.selected=this.G=this.playlist=null;this.items=this.Fa("ytp-playlist-menu-items");this.C=new g.vK(this);this.j=[];var b=this.Fa("ytp-playlist-menu-close");this.T(b,"click",this.Lb);b=this.Fa("ytp-playlist-menu-title-name");a.U().C||(this.D=this.T(b,"click",this.oba));g.O(this,this.C);this.hide()};
wW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-playlist-menu-button","ytp-button"],X:{title:"{{title}}","aria-owns":String(b.element.id),"aria-haspopup":"true","aria-label":"Oynatma Listesi"},V:[{I:"div",S:"ytp-playlist-menu-button-icon",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,X:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{I:"div",S:"ytp-playlist-menu-button-text",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.Sa);this.T(a,"appresize",this.Sa);this.hide();this.j();TT(a,this.element,this);this.listen("click",function(){a.logClick(c.element);hU(b,c.element,!1)})};
u_a=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}}",X:{tabindex:"0"}},{I:"div",S:"ytp-promotooltip-accept-button",xa:"{{acceptButtonText}}",X:{tabindex:"0","aria-haspopup":"true"}}]}]},
{I:"div",S:"ytp-promotooltip-pointer"}]});var c=this;this.tooltipRenderer=a;this.J=b;this.targetElement=this.B=null;this.title=this.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.pd={gG:function(d){c.gG(d)}};
g.DF(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.V4);this.T(b,"onHideControls",this.U4);this.T(b,"resize",this.Tb);this.T(this.acceptButton,"click",this.N9);this.T(this.dismissButton,"click",this.r$);this.T(document,"click",this.W4)};
v_a=function(a){var b=document.querySelectorAll('[data-tooltip-target-id="'+a.tooltipRenderer.targetId+'"]');b=0<b.length?b[0]:null;var c=g.tf("ytp-chrome-bottom"),d=g.tf("ytp-ad-module");a.C=!(null==c||!c.contains(b));a.K=!(null==d||!d.contains(b));a.N=!(null==b||!b.hasAttribute("data-tooltip-target-fixed"));return b};
y_a=function(a,b,c){if(!a.D){if(b){a.tooltipRenderer=b;b=a.tooltipRenderer.text;var d=!1,e;(null==b?0:null==(e=b.runs)?0:e.length)&&b.runs[0].text&&(a.update({title:b.runs[0].text.toString()}),d=!0);g.Ms(a.title,d);b=a.tooltipRenderer.detailsText;e=!1;var f;if((null==b?0:null==(f=b.runs)?0:f.length)&&b.runs[0].text){d=b.runs[0].text.toString();f=d.indexOf("$TARGET_ICON");if(-1<f)if(a.tooltipRenderer.targetId){b=[];d=d.split("$TARGET_ICON");var h=new g.AF({I:"span",S:"ytp-promotooltip-details-icon",
V:[w_a[a.tooltipRenderer.targetId]]});g.O(a,h);for(var l=[],m=g.u(d),n=m.next();!n.done;n=m.next())n=new g.AF({I:"span",S:"ytp-promotooltip-details-component",xa:n.value}),g.O(a,n),l.push(n);2===d.length?(b.push(l[0].element),b.push(h.element),b.push(l[1].element)):1===d.length&&(0===f?(b.push(h.element),b.push(l[0].element)):(b.push(l[0].element),b.push(h.element)));f=b.length?b:null}else f=null;else f=d;if(f){if("string"!==typeof f)for(g.Bf(a.details),e=g.u(f),f=e.next();!f.done;f=e.next())a.details.appendChild(f.value);
else a.update({details:f});e=!0}}g.Ms(a.details,e);e=a.tooltipRenderer.acceptButton;f=!1;var p,q,r;(null==(p=g.V(e,g.yM))?0:null==(q=p.text)?0:null==(r=q.runs)?0:r.length)&&g.V(e,g.yM).text.runs[0].text&&(a.update({acceptButtonText:g.V(e,g.yM).text.runs[0].text.toString()}),f=!0);g.Ms(a.acceptButton,f);p=a.tooltipRenderer.dismissButton;q=!1;var t,v,w;(null==(t=g.V(p,g.yM))?0:null==(v=t.text)?0:null==(w=v.runs)?0:w.length)&&g.V(p,g.yM).text.runs[0].text&&(a.update({dismissButtonText:g.V(p,g.yM).text.runs[0].text.toString()}),
q=!0);g.Ms(a.dismissButton,q)}c&&(a.B=c);a.targetElement=v_a(a);a.G=!1;a.J.U().L("web_player_hide_nitrate_promo_tooltip")||g.DF(a,!0);x_a(a);a.Eb&&!a.Y&&(a.Y=!0,a.pd.gG(0));a.j&&a.J.logVisibility(a.element,a.Eb)}};
xW=function(a){g.DF(a,!1);a.j&&a.J.logVisibility(a.element,a.Eb)};
z_a=function(a){var b,c,d,e=(null==(b=g.V(a.acceptButton,g.yM))?void 0:null==(c=b.text)?void 0:null==(d=c.runs)?void 0:d.length)&&!!g.V(a.acceptButton,g.yM).text.runs[0].text,f,h,l;b=(null==(f=g.V(a.dismissButton,g.yM))?void 0:null==(h=f.text)?void 0:null==(l=h.runs)?void 0:l.length)&&!!g.V(a.dismissButton,g.yM).text.runs[0].text;return e||b};
x_a=function(a){var b;if(!(b=!a.targetElement)){b=a.targetElement;var c=window.getComputedStyle(b);b="none"===c.display||"hidden"===c.visibility||"true"===b.getAttribute("aria-hidden")}if(b||a.J.isMinimized())g.DF(a,!1);else if(b=g.Ls(a.targetElement),b.width&&b.height){a.J.Wt(a.element,a.targetElement);var d=a.J.kb().getPlayerSize().height;c=g.Ls(a.Fa("ytp-promotooltip-container")).height;a.C?a.element.style.top=d-c-b.height-12+"px":a.N||(d=a.J.Dn().height-c-b.height-12,a.element.style.top=d+"px");
d=a.Fa("ytp-promotooltip-pointer");var e=g.Js(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.DF(a,!1)};
yW=function(a){g.W.call(this,{I:"button",Ka:["ytp-replay-button","ytp-button"],X:{title:"Tekrar Oynat"},V:[g.fxa()]});this.J=a;this.T(a,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Bc(a.Qb());TT(this.J,this.element,this)};
zW=function(a,b){b=void 0===b?240:b;g.W.call(this,{I:"button",Ka:["ytp-button","ytp-search-button"],X:{title:"Ara","data-tooltip-opaque":String(g.IR(a.U()))},V:[{I:"div",S:"ytp-search-icon",xa:"{{icon}}"},{I:"div",S:"ytp-search-title",xa:"Ara"}]});this.api=a;this.B=b;this.visible=!1;this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",S:"ytp-svg-fill",X:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]});
a.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.j();this.T(a,"appresize",this.j);this.T(a,"videodatachange",this.j);TT(a,this.element,this)};
g.AW=function(a,b,c,d){d=void 0===d?240:d;g.W.call(this,{I:"button",Ka:["ytp-button","ytp-share-button"],X:{title:"Payla\u015f","aria-haspopup":"true","aria-owns":c.element.id,"data-tooltip-opaque":String(g.IR(a.U()))},V:[{I:"div",S:"ytp-share-icon",xa:"{{icon}}"},{I:"div",S:"ytp-share-title",xa:"Payla\u015f"}]});this.api=a;this.Te=b;this.B=c;this.C=d;this.visible=!1;this.tooltip=this.Te.Ne();this.j=!1;a.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.T(a,"videodatachange",
this.Sa);this.T(a,"videoplayerreset",this.Sa);this.T(a,"appresize",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);this.Sa();this.addOnDisposeCallback(g.ST(this.tooltip,this.element))};
A_a=function(a){var b=a.api.U(),c=a.api.getVideoData(),d=g.IR(b)&&g.$T(a.api)&&g.mG(a.api.Qb(),128);b=b.C||b.disableSharing&&2!==a.api.getPresentingPlayerType()||!c.showShareButton||c.Ro||d||g.ET(c)||a.j;d=a.api.kb().getPlayerSize().width;return!!c.videoId&&d>=a.C&&!b};
B_a=function(a,b){"InvalidStateError"!==b.name&&"AbortError"!==b.name&&("NotAllowedError"===b.name?(a.Te.Dq(),hU(a.B,a.element,!1)):g.dF(b))};
D_a=function(a,b){var c=zF(),d=a.U();c={I:"div",S:"ytp-share-panel",X:{id:zF(),role:"dialog","aria-labelledby":c},V:[{I:"div",S:"ytp-share-panel-inner-content",V:[{I:"div",S:"ytp-share-panel-title",X:{id:c},xa:"Payla\u015f"},{I:"a",Ka:["ytp-share-panel-link","ytp-no-contextmenu"],X:{href:"{{link}}",target:d.Y,title:"Ba\u011flant\u0131y\u0131 payla\u015f","aria-label":"{{shareLinkWithUrl}}"},xa:"{{linkText}}"},{I:"label",S:"ytp-share-panel-include-playlist",V:[{I:"input",S:"ytp-share-panel-include-playlist-checkbox",
X:{type:"checkbox",checked:"true"}},"Oynatma listesini dahil et"]},{I:"div",S:"ytp-share-panel-loading-spinner",V:[OVa()]},{I:"div",S:"ytp-share-panel-service-buttons",xa:"{{buttons}}"},{I:"div",S:"ytp-share-panel-error",xa:"Payla\u015f\u0131m bilgileri al\u0131n\u0131rken bir hata olu\u015ftu. L\u00fctfen daha sonra tekrar deneyin."}]},{I:"button",Ka:["ytp-share-panel-close","ytp-button"],X:{title:"Kapat"},V:[g.LF()]}]};g.gU.call(this,a,c,250);var e=this;this.moreButton=null;this.api=a;this.tooltip=
b.Ne();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.Lb);this.addOnDisposeCallback(g.ST(this.tooltip,this.closeButton));this.D=this.Fa("ytp-share-panel-include-playlist-checkbox");this.T(this.D,"click",this.Sa);this.j=this.Fa("ytp-share-panel-link");this.addOnDisposeCallback(g.ST(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=C_a(e,h);g.uU(h,e.api,f)&&e.api.gb("SHARE_CLICKED")});
this.listen("click",this.X4);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.onFullscreenToggled);this.T(a,"onLoopRangeChange",this.m9);this.hide()};
F_a=function(a,b){E_a(a);for(var c=b.links||b.shareTargets,d=0,e={},f=0;f<c.length&&2>d;e={Bw:void 0,Gm:void 0},f++){e.Bw=c[f];a:switch(e.Bw.img||e.Bw.iconId){case "facebook":var h={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};break a;case "twitter":h={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};break a;default:h=null}if(h){var l=e.Bw.sname||e.Bw.serviceName;e.Gm=new g.W({I:"a",Ka:["ytp-share-panel-service-button","ytp-button"],X:{href:e.Bw.url,target:"_blank",title:l},V:[h]});e.Gm.listen("click",function(p){return function(q){var r=p.Bw.url;if(g.DG(q)){var t=void 0===t?{}:t;t.target=t.target||"YouTube";t.width=t.width||"600";t.height=t.height||"600";var v=t;v||(v={});t=window;var w=r instanceof g.Zd?r:g.ie("undefined"!=typeof r.href?r.href:String(r));var A=void 0!==self.crossOriginIsolated,
C="strict-origin-when-cross-origin";window.Request&&(C=(new Request("/")).referrerPolicy);var F="unsafe-url"===C;C=v.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=v.target||r.target;A=[];for(var G in v)switch(G){case "width":case "height":case "top":case "left":A.push(G+"="+v[G]);break;case "target":case "noopener":case "noreferrer":break;default:A.push(G+"="+(v[G]?1:0))}G=A.join(",");Ic()&&
t.navigator&&t.navigator.standalone&&r&&"_self"!=r?(v=g.yf("A"),v.href=Kba(w),v.target=r,C&&(v.rel="noreferrer"),w=document.createEvent("MouseEvent"),w.initMouseEvent("click",!0,!0,t,1),v.dispatchEvent(w),t={}):C?(t=Lba("",t,r,G),w=g.be(w),t&&(t.opener=null,""===w&&(w="javascript:''"),w=re('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Ue(w)+'">'),(v=t.document)&&v.write&&(v.write(g.ne(w)),v.close()))):((t=Lba(w,t,r,G))&&v.noopener&&(t.opener=null),t&&v.noreferrer&&
(t.opener=null));t&&(t.opener||(t.opener=window),t.focus());q.preventDefault()}}}(e));
e.Gm.addOnDisposeCallback(g.ST(a.tooltip,e.Gm.element));"Facebook"===l?a.api.createClientVe(e.Gm.element,e.Gm,164504):"Twitter"===l&&a.api.createClientVe(e.Gm.element,e.Gm,164505);a.T(e.Gm.element,"click",function(p){return function(){a.api.logClick(p.Gm.element)}}(e));
a.api.logVisibility(e.Gm.element,!0);a.C.push(e.Gm);d++}}var m=b.more||b.moreLink,n=new g.W({I:"a",Ka:["ytp-share-panel-service-button","ytp-button"],V:[{I:"span",S:"ytp-share-panel-service-button-more",V:[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{I:"rect",X:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",X:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],X:{href:m,target:"_blank",title:"Daha fazla"}});n.listen("click",function(p){var q=m;a.api.logClick(a.moreButton.element);q=C_a(a,q);g.uU(q,a.api,p)&&a.api.gb("SHARE_CLICKED")});
n.addOnDisposeCallback(g.ST(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)};
C_a=function(a,b){var c={};g.IR(a.api.U())&&(g.KT(a.api,"addEmbedsConversionTrackingParams",[c]),b=g.Mn(b,g.eP(c,"emb_share")));return b};
E_a=function(a){for(var b=g.u(a.C),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.vb(c);a.C=[]};
BW=function(a){return void 0===a||void 0===a.startSec||void 0===a.endSec?!1:!0};
G_a=function(a,b){a.startSec+=b;a.endSec+=b};
I_a=function(a){LU.call(this,a);this.B=this.j=this.isContentForward=this.N=!1;H_a(this);this.T(this.J,"changeProductsInVideoVisibility",this.iaa);this.T(this.J,"videodatachange",this.onVideoDataChange)};
J_a=function(a){a.K&&a.La.element.removeChild(a.K.element);a.K=void 0};
L_a=function(a,b){return b.map(function(c){var d,e;if((c=null==(d=g.V(c,K_a))?void 0:null==(e=d.thumbnail)?void 0:e.thumbnails)&&0!==c.length)return c[0].url}).filter(function(c){return void 0!==c}).map(function(c){c=new g.W({I:"img",
S:"ytp-suggested-action-product-thumbnail",X:{alt:"",src:c}});g.O(a,c);return c})};
M_a=function(a,b){a.isContentForward=b;g.yv(a.badge.element,"ytp-suggested-action-badge-content-forward",b)};
CW=function(a){var b=a.isContentForward&&!a.eL();g.yv(a.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&a.j);g.yv(a.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&a.B)};
DW=function(a,b,c){return new g.DJ(1E3*a,1E3*b,{priority:9,namespace:c})};
N_a=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")};
H_a=function(a){a.T(a.J,g.EJ("shopping_overlay_visible"),function(){a.Yf(!0)});
a.T(a.J,g.FJ("shopping_overlay_visible"),function(){a.Yf(!1)});
a.T(a.J,g.EJ("shopping_overlay_expanded"),function(){a.Y=!0;KU(a)});
a.T(a.J,g.FJ("shopping_overlay_expanded"),function(){a.Y=!1;KU(a)});
a.T(a.J,g.EJ("shopping_overlay_preview_collapsed"),function(){a.j=!0;CW(a)});
a.T(a.J,g.FJ("shopping_overlay_preview_collapsed"),function(){a.j=!1;CW(a)});
a.T(a.J,g.EJ("shopping_overlay_preview_expanded"),function(){a.B=!0;CW(a)});
a.T(a.J,g.FJ("shopping_overlay_preview_expanded"),function(){a.B=!1;CW(a)})};
P_a=function(a){g.W.call(this,{I:"div",S:"ytp-shorts-title-channel",V:[{I:"a",S:"ytp-shorts-title-channel-logo",X:{href:"{{channelLink}}",target:a.U().Y,"aria-label":"{{channelLogoLabel}}"}},{I:"div",S:"ytp-shorts-title-expanded-heading",V:[{I:"div",S:"ytp-shorts-title-expanded-title",V:[{I:"a",xa:"{{expandedTitle}}",X:{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.L("web_player_ve_conversion_fixes_for_channel_info")?(b.api.logClick(b.j),g.Me(EW(b)),c.preventDefault()):b.api.logClick(b.j)});
a.createClientVe(this.channelName,this,37220);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.T(this.channelName,"click",function(c){b.api.logClick(b.channelName);g.Me(EW(b));c.preventDefault()});
O_a(this);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.Sa()};
O_a=function(a){if(!a.api.U().Xb){var b=a.api.getVideoData(),c=new g.ZV("Abone Ol",null,"Abone olundu",null,!0,!1,b.Bl,b.subscribed,"channel_avatar",null,a.api,!0);a.api.createServerVe(c.element,a);var d;a.api.setTrackingParams(c.element,(null==(d=b.subscribeButtonRenderer)?void 0:d.trackingParams)||null);a.T(c.element,"click",function(){a.api.logClick(c.element)});
a.subscribeButton=c;g.O(a,a.subscribeButton);a.subscribeButton.Ja(a.element)}};
EW=function(a){var b=a.api.U(),c=a.api.getVideoData();c=g.fS(b)+c.Dc;if(!g.IR(b))return c;b={};g.KT(a.api,"addEmbedsConversionTrackingParams",[b]);g.eP(b,"emb_ch_name_ex");return g.Mn(c,b)};
FW=function(a){g.gU.call(this,a,{I:"button",Ka:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{I:"div",S:"ytp-skip-intro-button-text",xa:"Tan\u0131t\u0131m\u0131 Atla"}]},100);var b=this;this.C=!1;this.j=new g.lv(function(){b.hide()},5E3);
this.Bf=this.Li=NaN;g.O(this,this.j);this.K=function(){b.show()};
this.G=function(){b.hide()};
this.D=function(){var c=b.J.getCurrentTime();c>b.Li/1E3&&c<b.Bf/1E3&&b.show()};
this.T(this.J,"videodatachange",function(c,d){b.jt(c,d)});
this.T(this.element,"click",function(){b.J.seekTo(b.Bf/1E3)});
this.hide()};
GW=function(a){g.W.call(this,{I:"button",Ka:["ytp-airplay-button","ytp-button"],X:{title:"AirPlay","data-priority":"9"},xa:"{{icon}}"});this.J=a;this.listen("click",this.onClick);this.T(a,"airplayactivechange",this.Sa);this.T(a,"airplayavailabilitychange",this.Sa);this.Sa();TT(a,this.element,this)};
R_a=function(a){g.W.call(this,{I:"div",S:"ytp-gradient-bottom"});this.canvas=g.yf("CANVAS");this.j=this.canvas.getContext("2d");this.B=NaN;this.canvas.width=1;Q_a(this,a.kb().getPlayerSize().height)};
Q_a=function(a,b){if(a.j){b=Math.floor(.4*b);b=Math.max(b,47);var c=b+2;if(a.B!==c){a.B=c;a.canvas.height=c;a.j.clearRect(0,0,1,c);var d=a.j.createLinearGradient(0,2,0,2+b),e=b-42;d.addColorStop(0,"rgba(0, 0, 0, 0)");d.addColorStop(e/b,"rgba(0, 0, 0, 0.3)");d.addColorStop(1,"rgba(0, 0, 0, 0.68)");a.j.fillStyle=d;a.j.fillRect(0,2,1,b);a.element.style.height=c+"px";try{a.element.style.backgroundImage="url("+a.canvas.toDataURL()+")"}catch(f){}}}};
HW=function(a,b,c,d){g.W.call(this,{I:"div",S:"ytp-chapter-container",V:[{I:"button",Ka:["ytp-chapter-title","ytp-button"],V:[{I:"span",X:{"aria-hidden":"true"},S:"ytp-chapter-title-prefix",xa:"\u2022"},{I:"div",S:"ytp-chapter-title-content",xa:"{{title}}",X:{"aria-label":"{{ariaLabel}}",title:d}},{I:"div",S:"ytp-chapter-title-chevron",V:[{I:"svg",X:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});
this.J=a;this.D=b;this.G="";this.currentIndex=0;this.B=void 0;this.C=!0;this.Y=this.Fa("ytp-chapter-container");this.j=this.Fa("ytp-chapter-title");this.qa=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.EJ(c),this.Nc);this.T(a,"onLoopRangeChange",this.Nc);this.T(a,"innertubeCommand",this.onClickCommand);(a=this.J.L("web_disable_channels_chapter_entrypoint")&&
g.PR(this.J.U()))&&g.yv(this.j,"ytp-profile-page",!0);this.J.L("web_fitted_chapter_button_killswitch")||g.yv(this.j,"fitted-chapter-button",!0);g.IR(this.J.U())||a||TT(this.J,this.qa,this)};
IW=function(a,b){HW.call(this,a,b,"chapterCueRange","B\u00f6l\u00fcm\u00fc g\u00f6r\u00fcnt\u00fcle")};
S_a=function(a,b,c,d,e){var f=b.Iw/b.rows,h=Math.min(c/(b.RE/b.columns),d/f),l=b.RE*h,m=b.Iw*h;l=Math.floor(l/b.columns)*b.columns;m=Math.floor(m/b.rows)*b.rows;var n=l/b.columns,p=m/b.rows,q=-b.column*n,r=-b.row*p;e&&45>=f&&(p-=1/h);n-=2/h;a=a.style;a.width=n+"px";a.height=p+"px";e||(d=(d-p)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+q+"px "+r+"px/"+l+"px "+m+"px"};
T_a=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};
JW=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.vK(this);this.j=new g.gG(this,100);g.O(this,this.events);g.O(this,this.j);this.T(this.api,"presentingplayerstatechange",this.G);b&&this.T(this.element,"click",function(){b.Iv()});
T_a(this.api)&&g.uv(this.element,"ytp-storyboard-framepreview-big-boards")};
U_a=function(a,b){var c=!!a.B;a.B=b;a.B?(c||(a.events.T(a.api,"videodatachange",function(){U_a(a,a.api.Vj())}),a.events.T(a.api,"progresssync",a.Xf),a.events.T(a.api,"appresize",a.K)),a.C=NaN,V_a(a),a.j.show(200)):(c&&g.pC(a.events),a.j.hide(),a.j.stop())};
V_a=function(a){var b=a.B,c=a.api.getCurrentTime(),d=a.api.kb().getPlayerSize(),e=ES(b,d.width);e=uTa(b,e,c);a.update({timestamp:g.CG(c)});e!==a.C&&(a.C=e,sTa(b,e,d.width),b=qTa(b,e,d.width),S_a(a.D,b,d.width,d.height))};
W_a=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-fullscreen-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"f","data-priority":"10","data-title-no-tooltip":"{{data-title-no-tooltip}}"},xa:"{{icon}}"});this.J=a;this.Te=b;this.message=null;this.j=g.ST(this.Te.Ne(),this.element);this.B=new g.lv(this.g6,2E3,this);g.O(this,this.B);this.T(a,"fullscreentoggled",this.Hm);this.T(a,"presentingplayerstatechange",this.Sa);this.T(a,"resize",this.Sa);this.listen("click",this.onClick);g.eC()&&
(b=this.J.kb(),this.T(b,xqa(),this.BQ),this.T(b,wqa(document),this.Uw));a.U().Gb||a.U().Z||this.disable();a.createClientVe(this.element,this,139117);this.Sa();this.Hm(a.isFullscreen())};
KW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-jump-button"],X:{title:"{{title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[0<b?{I:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Ka:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}},
{I:"text",Ka:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"7.05",y:"15.05"}}]}:{I:"svg",X:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",Ka:["ytp-circle-arrow","ytp-svg-fill"],X:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}},
{I:"text",Ka:["ytp-jump-button-text","ytp-svg-fill"],X:{x:"6.5",y:"15"}}]}]});var c=this;this.J=a;this.j=b;this.B=new g.lv(function(){c.C?(c.C=!1,c.B.start()):c.element.classList.remove("ytp-jump-spin","backwards")},250);
this.C=!1;(b=0<b)?this.J.createClientVe(this.element,this,36843):this.J.createClientVe(this.element,this,36844);var d=g.KJ(b?"$SECONDS saniye ileri sar\u0131n. (\u2192)":"$SECONDS saniye geri sar\u0131n. (\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);TT(a,this.element,
this)};
X_a=function(a,b){b?a.element.classList.add("ytp-jump-button-enabled"):a.element.classList.remove("ytp-jump-button-enabled");a.J.logVisibility(a.element,b);a.J.Ph()};
LW=function(a,b){HW.call(this,a,b,"timedMarkerCueRange","\u00d6nemli anlar\u0131 g\u00f6ster");this.T(a,g.FJ("timedMarkerCueRange"),this.Nc);this.T(a,"updatemarkervisibility",this.updateVideoData)};
Y_a=function(a){var b,c=null==(b=a.J.getVideoData())?void 0:b.Ae;if(c)for(a=a.D.Na,c=g.u(c),b=c.next();!b.done;b=c.next())if(b=a[b.value]){var d=void 0,e=void 0,f=void 0;if("engagement-panel-macro-markers-problem-walkthroughs"!==(null==(d=b.onTap)?void 0:null==(e=d.innertubeCommand)?void 0:null==(f=e.changeEngagementPanelVisibilityAction)?void 0:f.targetId))return b}};
MW=function(a){g.W.call(this,{I:"button",Ka:["ytp-miniplayer-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"5","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:[cxa()]});this.J=a;this.visible=!1;this.listen("click",this.onClick);this.T(a,"fullscreentoggled",this.Sa);this.updateValue("title",g.UT(a,"Mini oynat\u0131c\u0131","i"));this.update({"data-title-no-tooltip":"Mini oynat\u0131c\u0131"});TT(a,this.element,
this);a.createClientVe(this.element,this,62946);this.Sa()};
g.NW=function(a,b,c){c=void 0===c?!1:c;g.W.call(this,{I:"button",Ka:["ytp-mute-button","ytp-button"],X:a.U().Va?{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.Da=c;this.j=null;this.D=this.Y=this.G=this.ra=NaN;this.Ba=this.K=null;this.C=[];this.B=[];this.visible=!1;this.N=null;c=this.J.U();this.updateValue("icon",ixa());this.tooltip=b.Ne();this.j=new g.AF({I:"svg",X:{height:"100%",
version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"ytp-svg-volume-animation-mask"},V:[{I:"path",X:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{I:"path",X:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{I:"path",S:"ytp-svg-volume-animation-mover",X:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{I:"clipPath",X:{id:"ytp-svg-volume-animation-slash-mask"},V:[{I:"path",S:"ytp-svg-volume-animation-mover",X:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},
{I:"path",Cc:!0,Ka:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],X:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{I:"path",Cc:!0,Ka:["ytp-svg-fill","ytp-svg-volume-animation-hider"],X:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.O(this,this.j);this.K=this.j.Fa("ytp-svg-volume-animation-speaker");
this.Ba=this.K.getAttribute("d");this.C=g.nf("ytp-svg-volume-animation-mover",this.j.element);this.B=g.nf("ytp-svg-volume-animation-hider",this.j.element);this.Ga=new fV;g.O(this,this.Ga);this.qa=new fV;g.O(this,this.qa);this.listen("click",this.S$);this.T(a,"appresize",this.IU);this.T(a,"onVolumeChange",this.onVolumeChange);var d=null;c.Va?this.addOnDisposeCallback(g.ST(b.Ne(),this.element)):(b="Taray\u0131c\u0131n\u0131z ses d\u00fczeyi de\u011fi\u015ftirme i\u015flevini desteklemiyor. $BEGIN_LINKDaha Fazla Bilgi Edinin$END_LINK".split(/\$(BEGIN|END)_LINK/),
d=new g.gU(a,{I:"span",Ka:["ytp-popup","ytp-generic-popup"],X:{tabindex:"0"},V:[b[0],{I:"a",X:{href:"https://support.google.com/youtube/?p=noaudio",target:c.Y},xa:b[2]},b[4]]},100,!0),g.O(this,d),d.hide(),d.subscribe("show",function(e){a.oD(d,e)}),g.cU(a,d.element,4));
this.message=d;a.createClientVe(this.element,this,28662);this.IU(a.kb().getPlayerSize());this.setVolume(a.getVolume(),a.isMuted())};
a0a=function(a,b){a.ra=b;var c=a.Ba;b&&(c+=UWa(Z_a,$_a,b));a.K.setAttribute("d",c)};
b0a=function(a,b){a.Y=b;for(var c=20*b,d=0;d<a.C.length;d++)a.C[d].setAttribute("transform","translate("+c+", "+c+")");var e;1===b?e=ixa():e=a.j;for(c=0;c<a.B.length;c++){d=a.B[c];var f=void 0;if(null==(f=d)?0:f.style)d.style.display=0===b?"none":""}e!==a.N&&(a.updateValue("icon",e),a.N=e)};
g.OW=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-play-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},xa:"{{icon}}"});this.J=a;this.j=null;this.transition=new fV;this.tooltip=b.Ne();g.O(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.Bc(a.Qb());this.listen("click",this.Pr,this);this.addOnDisposeCallback(g.ST(b.Ne(),this.element))};
c0a=function(a){switch(a){case 1:return dxa();case 2:return axa();case 3:return g.fxa();case 4:return hxa();default:return null}};
g.PW=function(a,b,c){g.W.call(this,{I:"a",Ka:[c?"ytp-next-button":"ytp-prev-button","ytp-button"],X:{role:"button",title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","aria-keyshortcuts":"{{aria-keyshortcuts}}"},V:[c?Ywa():exa()]});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.Ne();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.wM);this.T(a,"mdxpreviousnextchange",function(){d0a(d);d.wM()});
this.onVideoDataChange()};
e0a=function(a){a.playlist&&a.playlist.unsubscribe("shuffle",a.onVideoDataChange,a)};
f0a=function(a){return!!a.playlist&&!a.j&&!!a.videoData&&!a.videoData.isLivePlayback&&3<=a.J.getCurrentTime()&&2!==a.J.getPresentingPlayerType()};
g0a=function(a){var b=ZT(a.J.yb());return b?a.j?b.Pk():b.xp():!1};
d0a=function(a){var b={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},c=null!=a.playlist&&a.playlist.Pk();c=g.$T(a.J)&&(!a.j||c);var d=a.j&&g.dU(a.J),e=g0a(a),f=a.j&&5===a.J.getPresentingPlayerType(),h=g.UT(a.J,"Sonraki","SHIFT+n"),l=g.UT(a.J,"\u00d6nceki","SHIFT+p");if(f)b.title="Videoyu ba\u015flat";else if(a.C)b.title="Tekrar Oynat";else if(c){var m=null;a.playlist&&(m=g.nV(a.playlist,a.j?QXa(a.playlist):RXa(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.CG(m.lengthSeconds):null;b.preview=m.Yg("mqdefault.jpg")}a.j?(b.title=h,b["data-title-no-tooltip"]="Sonraki",b["aria-keyshortcuts"]="SHIFT+n"):(b.title=l,b["data-title-no-tooltip"]="\u00d6nceki",b["aria-keyshortcuts"]="SHIFT+p")}else if(d){if(l=null==(m=a.videoData)?void 0:g.XS(m))b.url=l.Nk(),b.text=l.title,b.duration=l.lengthText?l.lengthText:l.lengthSeconds?
g.CG(l.lengthSeconds):null,b.preview=l.Yg("mqdefault.jpg");b.title=h;b["data-title-no-tooltip"]="Sonraki";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.ST(a.tooltip,a.element),a.G=a.listen("click",a.onClick,a)):a.B&&(a.B(),a.B=null,a.Pc(a.G),a.G=null);a.tooltip.Ph()};
i0a=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",X:{tabindex:"0",role:"slider",type:"range","aria-label":"Hassas sarma i\u00e7in paneli t\u0131klay\u0131n veya kayd\u0131r\u0131n.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{I:"div",X:{"aria-hidden":"true"},S:"ytp-fine-scrubbing-cursor"},{I:"div",S:"ytp-fine-scrubbing-seek-time",
X:{"aria-hidden":"true"},xa:"{{seekTime}}"},{I:"div",S:"ytp-fine-scrubbing-play",V:[dxa()],X:{title:"Buradan itibaren oynat",role:"button"}},{I:"div",S:"ytp-fine-scrubbing-dismiss",V:[g.LF()],X:{title:"Hassas sarma modundan \u00e7\u0131k",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.Ba=this.Fa("ytp-fine-scrubbing-draggable");this.playButton=this.Fa("ytp-fine-scrubbing-play");this.thumbnails=[];
this.B=[];this.Na=this.j=0;this.La=void 0;this.qa=NaN;this.Ra=this.Y=this.C=this.N=0;this.D=[];this.interval=this.frameCount=0;this.K=160;this.scale=1;this.Va=0;this.isEnabled=this.Da=!1;h0a(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.ST(b,this.dismissButton));this.addOnDisposeCallback(g.ST(b,this.playButton));this.Ga=new g.QU(this.Ba,!0);this.Ga.subscribe("dragstart",this.yM,this);this.Ga.subscribe("dragmove",this.xM,this);this.Ga.subscribe("dragend",this.Z4,this);this.T(a,"SEEK_COMPLETE",
this.NA);a.L("web_fix_fine_scrubbing_false_play")&&this.T(a,"rootnodemousedown",function(d){c.ra=d});
this.G.addEventListener("keydown",function(){});
g.O(this,this.Ga);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.G,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)};
h0a=function(a,b){var c=g.CG(b),d=g.KJ("\u015euraya sar: $PROGRESS",{PROGRESS:g.CG(b,!0)});a.update({ariamin:0,ariamax:Math.floor(a.api.getDuration()),arianow:Math.floor(b),arianowtext:d,seekTime:c})};
j0a=function(a){a.qa=NaN;a.Y=0;a.N=a.C};
m0a=function(a){var b=a.api.Vj();if(b){var c=90*a.scale,d=ES(b,160*a.scale);if(b=b.levels[d]){a.K=b.width;if(!a.D.length){d=[];for(var e=FS(b,b.ey()),f=b.columns*b.rows,h=b.frameCount,l=0;l<=e;l++)for(var m=h<f?Math.ceil(h/b.columns):b.rows,n=0;n<b.rows;n++){var p=h<b.columns?h:b.columns,q={url:b.Oe(l),column:0,columns:p,row:n,rows:m,RE:b.width*p,Iw:b.height*m};d.push(q);h-=p;if(1>=h)break}a.D=d;a.frameCount=b.tI();a.interval=b.j/1E3||a.api.getDuration()/a.frameCount}for(;a.thumbnails.length>a.D.length;)d=
void 0,null==(d=a.thumbnails.pop())||d.dispose();for(;a.thumbnails.length<a.D.length;)d=new k0a,a.thumbnails.push(d),d.Ja(a.G),g.O(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.Iw/f.rows,m=c/l,e.style.background="url("+f.url+") 0 "+-f.row*f.Iw/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";QW(a,a.api.getCurrentTime());for(c=a.api.getVideoData().wk;a.B.length>c.length;)d=void 0,null==(d=a.B.pop())||d.dispose();
for(;a.B.length<c.length;)d=new l0a,a.B.push(new l0a),g.O(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.zs(a.B[d].element,"transform","translateX("+e%b.rows*a.K*a.scale+"px)"),f<a.thumbnails.length&&a.thumbnails[f]&&a.B[d].Ja(a.thumbnails[f].element);a.Da=!0}}};
QW=function(a,b){a.ra&&(a.ra.Sz=!0);a.update({seekTime:g.CG(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.ye(b,n0a(a),a.j/2);a.N=b;a.C=a.N;g.zs(a.Ba,"transform","translateX("+(a.N-a.j/2)+"px)");g.zs(a.Ba,"padding","0px "+a.j/2+"px");g.zs(a.G,"position","relative")};
o0a=function(a,b){var c=a.K*a.scale;b-=a.j/2;return b>-c?-b/c*a.interval*.5:-(b+c/2)/c*a.interval};
n0a=function(a){return-((a.G.offsetWidth||(a.frameCount-1)*a.K*a.scale)-a.j/2)};
k0a=function(){g.W.call(this,{I:"div",S:"ytp-fine-scrubbing-thumbnail"})};
l0a=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}}"}]})};
p0a=function(a){g.W.call(this,{I:"div",S:"ytp-heat-map-chapter",V:[{I:"svg",S:"ytp-heat-map-svg",X:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{I:"defs",V:[{I:"clipPath",X:{id:"{{id}}"},V:[{I:"path",S:"ytp-heat-map-path",X:{d:"",fill:"white"}}]}]},{I:"rect",S:"ytp-heat-map-graph",X:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-hover",X:{"clip-path":"url(#hm_1)",fill:"white",
"fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{I:"rect",S:"ytp-heat-map-play",X:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}}]}]});this.api=a;this.K=this.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.qe=!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.uv(this.api.getRootNode(),"ytp-heat-map-v2")};
q0a=function(a,b){0<b&&(a.j=b,a.K.style.height=a.j+"px")};
RW=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",Ka:["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")};
SW=function(a,b){g.zs(a.j,"width",b)};
r0a=function(a,b){g.zs(a.j,"margin-right",b+"px")};
s0a=function(){this.B=this.position=this.C=this.j=this.D=this.width=NaN};
t0a=function(){g.W.call(this,{I:"div",S:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0};
g.UW=function(a,b){g.EF.call(this,{I:"div",S:"ytp-progress-bar-container",X:{"aria-disabled":"true"},V:[{I:"div",Ka:["ytp-heat-map-container"],V:[{I:"div",S:"ytp-heat-map-edu"}]},{I:"div",Ka:["ytp-progress-bar"],X:{tabindex:"0",role:"slider","aria-label":"Arama kayd\u0131rma \u00e7ubu\u011fu","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",Ka:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{I:"div",S:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",Ka:["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",X:{title:"{{clipstarttitle}}"},xa:"{{clipstarticon}}"},
{I:"div",S:"ytp-clip-end",X:{title:"{{clipendtitle}}"},xa:"{{clipendicon}}"}]});this.api=a;this.Ie=!1;this.Sf=this.Va=this.N=this.Rf=0;this.wd=null;this.La={};this.Pb={};this.clipEnd=Infinity;this.Gb=this.Fa("ytp-clip-end");this.pc=new g.QU(this.Gb,!0);this.Re=this.Fa("ytp-clip-end-exclude");this.eg=this.Fa("ytp-clip-start-exclude");this.clipStart=0;this.Jb=this.Fa("ytp-clip-start");this.Dc=new g.QU(this.Jb,!0);this.qa=this.fb=0;this.progressBar=this.Fa("ytp-progress-bar");this.zb={};this.Na={};this.Xb=
this.Fa("ytp-chapters-container");this.Qf=this.Fa("ytp-timed-markers-container");this.j=[];this.K=[];this.Ud={};this.Bf=null;this.Wa=-1;this.rb=this.Ba=0;this.Y=null;this.Tf=this.Fa("ytp-scrubber-button");this.Qg=this.Fa("ytp-scrubber-container");this.bb=new g.Ge;this.oh=new s0a;this.C=new FG(0,0);this.Db=null;this.D=this.Ae=!1;this.Pf=null;this.ra=this.Fa("ytp-heat-map-container");this.Jd=this.Fa("ytp-heat-map-edu");this.G=[];this.heatMarkersDecorations=[];this.Za=this.Fa("ytp-fine-scrubbing-container");
this.Sc=this.Fa("ytp-fine-scrubbing-edu");this.B=void 0;this.Ga=this.hd=this.Da=!1;this.tooltip=b.Ne();this.addOnDisposeCallback(g.ST(this.tooltip,this.Gb));g.O(this,this.pc);this.pc.subscribe("hoverstart",this.AZ,this);this.pc.subscribe("hoverend",this.zZ,this);this.T(this.Gb,"click",this.KK);this.addOnDisposeCallback(g.ST(this.tooltip,this.Jb));g.O(this,this.Dc);this.Dc.subscribe("hoverstart",this.AZ,this);this.Dc.subscribe("hoverend",this.zZ,this);this.T(this.Jb,"click",this.KK);u0a(this);this.T(a,
"resize",this.Tb);this.T(a,"presentingplayerstatechange",this.h8);this.T(a,"videodatachange",this.jt);this.T(a,"videoplayerreset",this.g8);this.T(a,"cuerangesadded",this.Lda);this.T(a,"cuerangesremoved",this.lca);this.T(a,"onLoopRangeChange",this.sT);this.T(a,"innertubeCommand",this.onClickCommand);this.T(a,g.EJ("timedMarkerCueRange"),this.nba);this.T(a,"updatemarkervisibility",this.t1);this.updateVideoData(a.getVideoData(),!0);this.sT(a.getLoopRange());TW(this)&&!this.B&&(this.B=new i0a(this.api,
this.tooltip),a=g.Is(this.element).x||0,this.B.Tb(a,this.N),this.B.Ja(this.Za),g.O(this,this.B),this.T(this.B.dismissButton,"click",this.Iv),this.T(this.B.playButton,"click",this.dO),this.T(this.B.element,"dblclick",this.dO));this.api.createClientVe(this.ra,this,139609,!0);this.api.createClientVe(this.Jd,this,140127,!0);this.api.createClientVe(this.Sc,this,151179,!0);this.api.L("web_modern_miniplayer")&&(this.element.hidden=!0)};
u0a=function(a){if(0===a.j.length){var b=new RW;a.j.push(b);g.O(a,b);b.Ja(a.Xb,0)}for(;1<a.j.length;)a.j.pop().dispose();SW(a.j[0],"100%");a.j[0].startTime=0;a.j[0].title=""};
v0a=function(a){var b=void 0===b?NaN:b;var c=new p0a(a.api);a.G.push(c);g.O(a,c);c.Ja(a.ra);0<=b&&(c.element.style.width=b+"px")};
w0a=function(a){for(;a.K.length;)a.K.pop().dispose()};
y0a=function(a){var b,c,d,e,f;return null==(f=g.V(null==(e=g.V(null==(b=a.getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.decoratedPlayerBarRenderer,$Sa))?void 0:e.playerBar,x0a))?void 0:f.chapters};
z0a=function(a){for(var b=a.j,c=[],d=0;d<b.length;d++)if(!isNaN(b[d].startTime)){var e=b[d].startTime;e=new g.DJ(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.lf(c)};
c1a=function(a,b){var c,d=null==(c=a.zb[b])?void 0:c.chapters;d&&(A0a(a,d),a.api.getVideoData().wk=a.j,z0a(a));var e;if((c=null==(e=a.zb[b])?void 0:e.markers)&&"HEATSEEKER"!==b){w0a(a);e=g.u(c);for(c=e.next();!c.done;c=e.next())if(d=c.value,c=new t0a,d=g.V(d,g.B0a)){var f=void 0;c.title=(null==(f=d.title)?void 0:f.simpleText)||"";f=void 0;c.timeRangeStartMillis=null!=(f=d.timeRangeStartMillis)?f:NaN;var h=f=void 0;c.onActiveCommand=null!=(h=null==(f=d)?void 0:f.onActiveCommand)?h:void 0;C0a(a,c)}D0a(a,
a.K);e=a.K;c=a.Ud;d=[];for(f=0;f<e.length;f++)!isNaN(e[f].timeRangeStartMillis)&&e[f].onActiveCommand&&(h=m_a(e[f].timeRangeStartMillis,f===e.length-1?Infinity:e[f+1].timeRangeStartMillis),d.push(h),c[h.id]=e[f].onActiveCommand);a.api.lf(d)}var l;if(b=g.V(null==(l=a.zb[b])?void 0:l.heatmap,E0a)){l=b.heatMarkers||[];var m;e=null!=(m=b.minHeightDp)?m:0;var n;m=null!=(n=b.maxHeightDp)?n:60;n=a.j.length;c=null;for(d=0;d<n;d++){h=a.j[d].startTime;var p=d===n-1?Infinity:a.j[d+1].startTime;d===a.G.length&&
v0a(a);f=[];c&&f.push(c);for(var q=g.u(l),r=q.next();!r.done;r=q.next()){r=r.value;var t=void 0,v=void 0,w=null!=(v=null==(t=g.V(r,a1a))?void 0:t.timeRangeStartMillis)?v:-1;w>=h&&w<=p&&f.push(r)}0<m&&(a.ra.style.height=m+"px");h=a.G[d];p=f;r=e;v=m;w=0===d;w=void 0===w?!1:w;q0a(h,v);q=p;t=h.j;w=void 0===w?!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,L=(null==(G=g.V(q[F],a1a))?void 0:G.heatMarkerIntensityScoreNormalized)||0;G=(F+.5)*A;L=100-g.ye(100*L,r/
t*100,v/t*100);0!==F||w||C.push({x:0,y:L});C.push({x:G,y:L});F===q.length-1&&C.push({x:1E3,y:L})}C.push({x:1E3,y:100});q=C;p=0===p.length?"":Gza(q);h.C.setAttribute("d",p);h.qe=""!==p;g.yv(h.api.getRootNode(),"ytp-heat-map",h.qe);g.yv(h.api.getRootNode(),"ytp-heat-map-played_bar",h.api.L("web_player_heat_map_played_bar")&&""!==p);0<f.length&&(c=f[f.length-1])}g.VW(a);l=[];b=g.u(b.heatMarkersDecorations||[]);for(e=b.next();!e.done;e=b.next())if(e=g.V(e.value,b1a))m=e.label,d=c=n=void 0,l.push({visibleTimeRangeStartMillis:null!=
(n=e.visibleTimeRangeStartMillis)?n:-1,visibleTimeRangeEndMillis:null!=(c=e.visibleTimeRangeEndMillis)?c:-1,decorationTimeMillis:null!=(d=e.decorationTimeMillis)?d:NaN,label:m?g.HF(m):""});a.heatMarkersDecorations=l}};
C0a=function(a,b){a.K.push(b);g.O(a,b);b.Ja(a.Qf,a.Qf.children.length)};
D0a=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=WW(a,c.timeRangeStartMillis/(1E3*a.C.j),XW(a));g.zs(c.element,"transform","translateX("+d+"px) scaleX(0.6)")}};
A0a=function(a,b){var c=0,d=!1;b=g.u(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;if(g.V(e,d1a)){e=g.V(e,d1a);var f={startTime:NaN,title:null,onActiveCommand:void 0},h=e.title;f.title=h?g.HF(h):"";h=e.timeRangeStartMillis;null!=h&&(f.startTime=h);f.onActiveCommand=e.onActiveCommand;e=f;0===c&&0!==e.startTime&&(a.j[c].startTime=0,a.j[c].title="",a.j[c].onActiveCommand=e.onActiveCommand,c++,d=!0);a.j.length<=c&&(f=new RW,a.j.push(f),g.O(a,f),f.Ja(a.Xb,a.Xb.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.VW(a);YW(a)};
g.VW=function(a){a.Ba=a.j.length-1;a.rb=0;e1a(a,!0)&&e1a(a,!1);for(var b=0,c=0;c<a.j.length;c++)if(0===a.j[c].width){if(c===a.j.length-1)for(var d=a.j.length-1;0<=d;d--)if(0<a.j[d].width){r0a(a.j[d],0);var e=Math.floor(a.j[d].width);a.j[d].width=e;SW(a.j[d],e+"px");break}a.j[c].width=0;SW(a.j[c],"0")}else c===a.j.length-1?(d=Math.floor(a.j[c].width+b),a.j[c].width=d,SW(a.j[c],d+"px")):(b=a.j[c].width+b,d=Math.round(b),b-=d,a.j[c].width=d,SW(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)};
e1a=function(a,b){var c=0,d=!1,e=a.j.length,f=1E3*a.C.j;0===f&&(f=1E3*a.api.getProgressState().seekableEnd);if(0<f&&0<a.N){for(var h=a.N-(a.D?3:2)*a.Ba,l=0===a.rb?3:h*a.rb,m=g.u(a.j),n=m.next();!n.done;n=m.next())n.value.width=0;for(;c<e;){m=f-a.j[c].startTime;c<e-1&&(m=a.j[c+1].startTime-a.j[c].startTime,r0a(a.j[c],a.D?3:2));g.yv(a.j[c].j,"ytp-exp-chapter-hover-container",1<a.j.length);n=(0===f?0:m/f*h)+a.j[c].width;if(n>l)a.j[c].width=n;else{a.j[c].width=0;var p=a,q=c,r=p.j[q-1];void 0!==r&&0<r.width?
r.width+=n:q<p.j.length-1&&(p.j[q+1].width+=n);r0a(p.j[q],0);b&&(a.Ba--,m/f>a.rb&&(a.rb=m/f),d=!0)}c++}}return d};
YW=function(a){if(a.N){var b=a.api.getProgressState(),c=a.api.getVideoData();if(!(c&&c.enableServerStitchedDai&&c.enablePreroll)||isFinite(b.current)){var d;c=(null==(d=a.api.getVideoData())?0:DT(d))&&b.airingStart&&b.airingEnd?f1a(a,b.airingStart,b.airingEnd):f1a(a,b.seekableStart,b.seekableEnd);d=GG(c,b.loaded,0);b=GG(c,b.current,0);var e=a.C.B!==c.B||a.C.j!==c.j;a.C=c;ZW(a,b,d);e&&g1a(a);h1a(a)}}};
f1a=function(a,b,c){return i1a(a)?new FG(Math.max(b,a.Db.startTimeMs/1E3),Math.min(c,a.Db.endTimeMs/1E3)):new FG(b,c)};
j1a=function(a,b){var c;if("repeatChapter"===(null==(c=a.Db)?void 0:c.type)||"repeatChapter"===(null==b?void 0:b.type))b&&(b=a.j[rW(a.j,b.startTimeMs)],g.yv(b.j,"ytp-repeating-chapter",!1)),a.Db&&(b=a.j[rW(a.j,a.Db.startTimeMs)],g.yv(b.j,"ytp-repeating-chapter",!0)),a.j.forEach(function(d){g.yv(d.j,"ytp-exp-chapter-hover-container",!a.Db)})};
aX=function(a,b){var c=a.C;c=c.B+b.B*c.getLength();if(1<a.j.length){c=$W(a,b.C,!0);for(var d=0,e=0;e<c;e++)0<a.j[e].width&&(d+=a.j[e].width,d+=a.D?3:2);c=(a.j[c].startTime+(b.C-d)/a.j[c].width*((c===a.j.length-1?1E3*a.C.j:a.j[c+1].startTime)-a.j[c].startTime))/1E3||0}return c};
k1a=function(a,b,c){return c>=a.j.length?!1:4>Math.abs(b-a.j[c].startTime/1E3)/a.C.j*(a.N-(a.D?3:2)*a.Ba)};
g1a=function(a){a.Tf.style.removeProperty("height");for(var b=g.u(Object.keys(a.La)),c=b.next();!c.done;c=b.next())l1a(a,c.value);bX(a);ZW(a,a.qa,a.fb)};
XW=function(a){var b=a.bb.x;b=g.ye(b,0,a.N);a.oh.update(b,a.N);return a.oh};
dX=function(a){return(a.D?135:90)-cX(a)};
cX=function(a){var b=48,c=a.api.U();a.D?b=54:g.IR(c)&&!c.B&&(b=40);return b};
ZW=function(a,b,c){a.qa=b;a.fb=c;var d=XW(a),e=a.C.j;var f=a.C;f=f.B+a.qa*f.getLength();var h=g.KJ("$PLAY_PROGRESS / $DURATION",{PLAY_PROGRESS:g.CG(f,!0),DURATION:g.CG(e,!0)}),l=rW(a.j,1E3*f);l=a.j[l].title;a.update({ariamin:Math.floor(a.C.B),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:l?l+" "+h:h});e=a.clipStart;f=a.clipEnd;a.Db&&2!==a.api.getPresentingPlayerType()&&(e=a.Db.startTimeMs/1E3,f=a.Db.endTimeMs/1E3);e=GG(a.C,e,0);l=GG(a.C,f,1);h=a.api.getVideoData();f=g.ye(b,e,l);c=(null==
h?0:g.CT(h))?1:g.ye(c,e,l);b=WW(a,b,d);g.zs(a.Qg,"transform","translateX("+b+"px)");eX(a,d,e,f,"PLAY_PROGRESS");(null==h?0:DT(h))?(b=a.api.getProgressState().seekableEnd)&&eX(a,d,f,GG(a.C,b),"LIVE_BUFFER"):eX(a,d,e,c,"LOAD_PROGRESS");if(a.api.L("web_player_heat_map_played_bar")){var m;null!=(m=a.G[0])&&m.D.setAttribute("width",(100*f).toFixed(2)+"%")}};
eX=function(a,b,c,d,e){var f=a.j.length,h=b.j-a.Ba*(a.D?3:2),l=c*h;c=$W(a,l);var m=d*h;h=$W(a,m);"HOVER_PROGRESS"===e&&(h=$W(a,b.j*d,!0),m=b.j*d-m1a(a,b.j*d)*(a.D?3:2));d=Math.max(l-n1a(a,c),0);for(l=c;l<f;l++)a.j[l].Ib(e).style.left=c===l?d+"px":"0";b=WW(a,a.qa,b);for(f=c;f<h;f++){l=a.j[f].Ib(e);var n=a.j[f].width,p=f===c?n-d:n;fX(a,l,p,n);o1a(a,l,p,n,f,b,e)}f=a.j[h].width;m=g.ye(m-n1a(a,h),0,f);c===h&&(m-=d);d=a.j[h].Ib(e);fX(a,d,m,f);o1a(a,d,m,f,h,b,e);m=a.j.length;for(h+=1;h<m;h++)p1a(a,h,e);
for(h=0;h<c;h++)p1a(a,h,e)};
n1a=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};
p1a=function(a,b,c){c=a.j[b].Ib(c);fX(a,c,0,a.j[b].width)};
o1a=function(a,b,c,d,e,f,h){a.api.L("enable_cairo_refresh_signature_moments_web")&&"PLAY_PROGRESS"===h&&(c=!d||a.api.U().B?1:c/d,g.zs(b,"background-size",[f/c]+"px"),g.zs(b,"background-position-x",[(f-a.j[e].element.offsetLeft)/c]+"px"))};
fX=function(a,b,c,d,e){e||a.api.U().B?b.style.width=c+"px":g.zs(b,"transform","scalex("+(d?c/d:0)+")")};
$W=function(a,b,c){var d=0;(void 0===c?0:c)&&(b-=m1a(a,b)*(a.D?3:2));c=g.u(a.j);for(var e=c.next();!e.done;e=c.next()){e=e.value;if(b>e.width)b-=e.width;else break;d++}return d===a.j.length?d-1:d};
WW=function(a,b,c){for(var d=b*a.C.j*1E3,e=-1,f=g.u(a.j),h=f.next();!h.done;h=f.next())h=h.value,d>h.startTime&&0<h.width&&e++;return b*(c.j-(a.D?3:2)*a.Ba)+(a.D?3:2)*(0>e?0:e)+c.D};
m1a=function(a,b){for(var c=a.j.length,d=0,e=g.u(a.j),f=e.next();!f.done;f=e.next())if(f=f.value,0!==f.width)if(b>f.width)b-=f.width,b-=a.D?3:2,d++;else break;return d===c?c-1:d};
g.q1a=function(a,b,c,d){var e=a.N!==c,f=a.D!==d;a.Rf=b;a.N=c;a.D=d;TW(a)&&null!=(b=a.B)&&(b.scale=d?1.5:1);g1a(a);1===a.j.length&&(a.j[0].width=c||0);e&&g.VW(a);a.B&&f&&TW(a)&&(a.B.isEnabled&&(c=a.D?135:90,d=c-cX(a),a.Za.style.height=c+"px",g.zs(a.ra,"transform","translateY("+-d+"px)"),g.zs(a.progressBar,"transform","translateY("+-d+"px)")),m0a(a.B))};
bX=function(a){var b=!!a.Db&&2!==a.api.getPresentingPlayerType(),c=a.clipStart,d=a.clipEnd,e=!0,f=!0;b&&a.Db?(c=a.Db.startTimeMs/1E3,d=a.Db.endTimeMs/1E3):(e=c>a.C.B,f=0<a.C.j&&d<a.C.j);var h,l;if((null==(h=a.Db)?0:h.postId)||"repeatChapter"===(null==(l=a.Db)?void 0:l.type))f=e=!1;g.yv(a.element,"ytp-loop-range-enabled",b);g.yv(a.element,"ytp-clip-start-enabled",e);g.yv(a.element,"ytp-clip-end-enabled",f);b=e?GG(a.C,c,0):0;d=f?GG(a.C,d,1):1;a.Jb.style.left=Math.round(1E3*b)/10+"%";a.Gb.style.left=
Math.round(1E3*d)/10+"%";a.eg.style.width=Math.round(1E3*b)/10+"%";a.Re.style.left=Math.round(1E3*d)/10+"%";a.Re.style.width=Math.round(1E3*(1-d))/10+"%"};
h1a=function(a){var b;if(null==(b=a.api.getVideoData())||!DT(b)){b=XW(a);eX(a,b,a.qa,Math.max(b.B,a.qa),"HOVER_PROGRESS");for(var c=$W(a,b.j*a.qa,!0),d=$W(a,b.C,!0),e=c;e<=d;e++)g.yv(a.j[e].B,"ytp-hover-progress-light",b.B>a.qa);g.yv(a.Tf,"ytp-scrubber-button-hover",c===d&&1<a.j.length);if(a.api.L("web_player_heat_map_played_bar")){var f;null!=(f=a.G[0])&&f.B.setAttribute("width",(100*b.B).toFixed(2)+"%")}}};
l1a=function(a,b){var c=a.La[b];b=a.Pb[b];var d=XW(a),e=GG(a.C,c.start/1E3,0),f=ABa(c,a.D)/d.width;var h=GG(a.C,c.end/1E3,1);f!==Number.POSITIVE_INFINITY&&(e=g.ye(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";fX(a,b,g.ye((h-c)*d.j+d.D,0,d.width),d.width,!0)};
r1a=function(a,b){var c=b.getId();a.La[c]===b&&(g.Ff(a.Pb[c]),delete a.La[c],delete a.Pb[c])};
TW=function(a){var b;return!(null==(b=a.api.getVideoData())?0:b.isLivePlayback)&&!a.api.isMinimized()&&!a.api.isInline()};
gX=function(a){a.B&&(a.B.disable(),a.Va=0,a.ra.style.removeProperty("transform"),a.progressBar.style.removeProperty("transform"),a.Za.style.removeProperty("height"),a.element.parentElement&&a.element.parentElement.style.removeProperty("height"))};
s1a=function(a,b){var c=b/dX(a)*cX(a);g.zs(a.progressBar,"transform","translateY("+-b+"px)");g.zs(a.ra,"transform","translateY("+-b+"px)");g.zs(a.Za,"transform","translateY("+c+"px)");a.Za.style.height=b+c+"px";a.element.parentElement&&(a.element.parentElement.style.height=cX(a)-c+"px")};
t1a=function(a,b){b?a.Y||(a.element.removeAttribute("aria-disabled"),a.Y=new g.QU(a.progressBar,!0),a.Y.subscribe("hovermove",a.naa,a),a.Y.subscribe("hoverend",a.maa,a),a.Y.subscribe("dragstart",a.jaa,a),a.Y.subscribe("dragmove",a.paa,a),a.Y.subscribe("dragend",a.oaa,a),a.Pf=a.listen("keydown",a.P2)):a.Y&&(a.element.setAttribute("aria-disabled","true"),a.Pc(a.Pf),a.Y.cancel(),a.Y.dispose(),a.Y=null)};
i1a=function(a){var b;return!(null==(b=a.Db)||!b.postId)&&2!==a.api.getPresentingPlayerType()};
hX=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-remote-button","ytp-button"],X:{title:"TV'de oynat","aria-haspopup":"true","data-priority":"8"},xa:"{{icon}}"});this.J=a;this.Fb=b;this.j=null;this.T(a,"onMdxReceiversChange",this.Sa);this.T(a,"presentingplayerstatechange",this.Sa);this.T(a,"appresize",this.Sa);a.createClientVe(this.element,this,139118);this.Sa();this.listen("click",this.B,this);TT(a,this.element,this)};
iX=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-button","ytp-settings-button"],X:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":zF(),title:"Ayarlar","data-tooltip-target-id":"ytp-settings-button"},V:[g.gxa()]});this.J=a;this.Fb=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);TT(a,this.element,this);this.J.createClientVe(this.element,
this,28663);this.updateBadge();this.j(a.kb().getPlayerSize())};
u1a=function(a,b){a.B=!!b;a.j(a.J.kb().getPlayerSize())};
jX=function(a,b){rU.call(this,"Ek A\u00e7\u0131klamalar",g.vU.Y1);this.J=a;this.Fb=b;this.j=!1;a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7             M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7             M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z             M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z",
fill:"white"}}]});this.T(a,"videodatachange",this.Sa);this.T(a,"onApiChange",this.Sa);this.subscribe("select",this.onSelect,this);this.Sa()};
g.kX=function(a,b,c,d,e,f,h){g.iU.call(this,g.jU({"aria-haspopup":"true"}),b,a);this.Fb=d;this.K=!1;this.C=null;this.options={};this.B=new g.bW(c,void 0,a,e,f,h);g.O(this,this.B);this.listen("keydown",this.Q2);this.listen("click",this.open)};
v1a=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.lX=function(a,b){g.cW(a.B);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],h=a.options[f],l=f===a.C;l&&(d=!0);h&&h.priority===-e?(a.options[f].zk(a.Dk(f,!0)),delete a.options[f]):h=a.jN(f,-e,l);c[f]=h;a.B.Rc(h,!0)}d||(a.C=null);b=g.u(Object.keys(a.options));for(d=b.next();!d.done;d=b.next())a.options[d.value].dispose();a.options=c};
mX=function(a,b){g.kX.call(this,"Ses par\u00e7as\u0131",g.vU.AUDIO,a,b);this.J=a;this.tracks={};this.countLabel=new g.W({I:"div",V:[{I:"span",xa:"Ses par\u00e7as\u0131"},{I:"span",S:"ytp-menuitem-label-count",xa:"{{content}}"}]});a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z            M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z            M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z            M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z            M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z",
fill:"white"}}]});g.O(this,this.countLabel);this.zk(this.countLabel);this.T(a,"videodatachange",this.Sa);this.T(a,"onPlaybackAudioChange",this.Sa);this.Sa()};
nX=function(a,b){rU.call(this,"Otomatik oynat",g.vU.f2);this.J=a;this.Fb=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()};
w1a=function(a,b){g.iU.call(this,g.jU({"aria-haspopup":"false"}),0,"Di\u011fer se\u00e7enekler");this.J=a;this.Fb=b;this.T(this.element,"click",this.onClick);this.Fb.Rc(this)};
x1a=function(a,b){var c;g.ZR(a.U())&&(c={I:"div",S:"ytp-panel-footer-content",V:[{I:"span",xa:""},{I:"a",S:"ytp-panel-footer-content-link",xa:"Ayarlar",X:{href:"/account_downloads"}}]});g.kX.call(this,"Kalite",g.vU.o5,a,b,void 0,void 0,c);this.J=a;this.Ba={};this.Y={};this.D={};this.Ga=new Set;this.j=this.G=!1;this.N="unknown";this.qa="";this.ra=new g.ZD;g.O(this,this.ra);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",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z            M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.uv(this.B.element,"ytp-quality-menu");this.T(a,"videodatachange",this.eC);this.T(a,"videoplayerreset",this.eC);this.T(a,"onPlaybackQualityChange",this.tT);this.eC();a.createClientVe(this.element,this,137721)};
z1a=function(a,b,c){var d=a.Ba[b],e=g.xK[b];return y1a(a,d?d.qualityLabel:e?e+"p":"Otomatik",b,c)};
A1a=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:"Otomatik";d&&(h="("+h);a=y1a(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};
y1a=function(a,b,c,d){b={I:"span",Ka:d,V:[b]};var e;d="ytp-swatch-color";if(a.G||a.j)d="ytp-swatch-color-white";"highres"===c?e="8K":"hd2880"===c?e="5K":"hd2160"===c?e="4K":0===c.indexOf("hd")&&"hd720"!==c&&(e="HD");e&&(b.V.push(" "),b.V.push({I:"sup",S:d,xa:e}));return b};
oX=function(a,b,c,d,e,f,h){g.W.call(this,{I:"div",S:"ytp-slider-section",X:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{I:"div",S:"ytp-slider",V:[{I:"div",S:"ytp-slider-handle"}]}]});this.Y=a;this.N=b;this.B=c;this.D=d;this.qa=e;this.Ga=f;this.range=this.D-this.B;this.Da=this.Fa("ytp-slider-section");this.C=this.Fa("ytp-slider");this.ra=this.Fa("ytp-slider-handle");this.K=new g.QU(this.C,
!0);this.j=h?h:c;g.O(this,this.K);this.K.subscribe("dragmove",this.S2,this);this.T(this.element,"keydown",this.T2);this.T(this.element,"wheel",this.R2);this.init()};
pX=function(a){oX.call(this,.05,.05,a.getAvailablePlaybackRates()[0],a.getAvailablePlaybackRates()[a.getAvailablePlaybackRates().length-1],150,20,a.getPlaybackRate());this.J=a;this.G=g.yf("P");this.La=pba(this.Ba,this);g.uv(this.C,"ytp-speedslider");g.uv(this.G,"ytp-speedslider-text");a=this.G;var b=this.C;b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling);B1a(this);this.T(this.J,"onPlaybackRateChange",this.updateValues)};
B1a=function(a){a.G.textContent=C1a(a,a.j)+"x"};
C1a=function(a,b){a=Number(g.ye(b,a.B,a.D).toFixed(2));b=Math.floor(100*(a+.001)%5+2E-15);var c=a;0!==b&&(c=a-.01*b);return Number(c.toFixed(2))};
D1a=function(a){g.EF.call(this,{I:"div",S:"ytp-speedslider-component"});this.j=new pX(a);g.O(this,this.j);this.element.appendChild(this.j.element)};
E1a=function(a){var b=new D1a(a);aW.call(this,a,b,"\u00d6zel");g.O(this,b)};
F1a=function(a,b){var c=new E1a(a);g.kX.call(this,"\u00c7alma h\u0131z\u0131",g.vU.s5,a,b,"\u00d6zel",function(){g.fW(b,c)});
a.L("web_settings_menu_icons")&&this.setIcon({I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z            M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z            M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z            M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z            M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",
fill:"white"}}]});g.O(this,c);this.J=a;this.D=this.j=this.N=null;this.G=this.J.getAvailablePlaybackRates();this.T(a,"presentingplayerstatechange",this.Sa);this.Sa()};
H1a=function(a,b){var c=G1a(b);a.options[c]?a.Hj(c):b===a.D&&a.j&&(a.Hj(a.j),a.Ld(b.toString()))};
J1a=function(a){g.lX(a,a.G.map(G1a));a.j=null;a.D=null;var b=a.J.getPlaybackRate();a.G.includes(b)||(I1a(a,b),g.kX.prototype.nh.call(a,a.j))};
I1a=function(a,b){a.D=b;a.j=g.KJ("\u00d6zel ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=a.G.map(G1a);b.unshift(a.j);g.lX(a,b)};
G1a=function(a){return a.toString()};
L1a=function(a,b,c,d){var e=new g.bW(b,void 0,"Video Ge\u00e7ersiz K\u0131lma");g.kX.call(this,d.text||"",a,b,c,"Video Ge\u00e7ersiz K\u0131lma",function(){g.fW(c,e)});
var f=this;g.uv(this.element,"ytp-subtitles-options-menu-item");this.N=d.option.toString();a=d.options;this.settings=g.bc(a,this.uT,this);this.G=e;g.O(this,this.G);b=new g.iU({I:"div",S:"ytp-menuitemtitle",xa:"Videoda belirtilenden farkl\u0131 bir stile izin verin."},0);g.O(this,b);this.G.Rc(b,!0);this.D=new g.iU({I:"div",S:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",xa:"A\u00e7\u0131k"}]},-1);g.O(this,this.D);this.G.Rc(this.D,!0);this.T(this.D.element,
"click",function(){K1a(f,!0)});
this.j=new g.iU({I:"div",S:"ytp-menuitem",X:{role:"menuitemradio",tabindex:"0"},V:[{I:"div",S:"ytp-menuitem-label",xa:"Kapal\u0131"}]},-2);g.O(this,this.j);this.G.Rc(this.j,!0);this.T(this.j.element,"click",function(){K1a(f,!1)});
g.lX(this,g.Rr(a,this.uT))};
K1a=function(a,b){a.publish("settingChange",a.N+"Override",!b);a.Fb.yj()};
qX=function(a,b){g.bW.call(this,a,void 0,"Se\u00e7enekler");var c=this;this.Ot={};for(var d=0;d<g.tW.length;d++){var e=g.tW[d],f=new L1a(-d,a,b,e);g.O(this,f);f.subscribe("settingChange",this.jk,this);this.Ot[e.option.toString()]=f;this.Rc(f,!0)}a=new g.iU(g.jU(),-g.tW.length,"S\u0131f\u0131rla");g.O(this,a);a.listen("click",function(){c.jk("reset",!0)});
this.Rc(a,!0)};
rX=function(a,b){g.kX.call(this,"Otomatik \u00e7evir",0,a,b);this.J=a;this.languages={};a.createClientVe(this.element,this,127301);a.logVisibility(this.element,!0)};
M1a=function(a,b){a.languages=g.bc(b,a.j,a);g.lX(a,g.Rr(b,a.j))};
O1a=function(a,b){var c=new qX(a,b),d=["Bu ayar yaln\u0131zca mevcut videoya uygulan\u0131r. T\u00fcm videolar\u0131n altyaz\u0131 g\u00f6r\u00fcn\u00fcrl\u00fc\u011f\u00fcn\u00fc "," \u00fczerinden de\u011fi\u015ftirebilirsiniz."],e;g.ZR(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:"Ayarlar",X:{href:"/account_playback"}},{I:"span",xa:d[1]}]});g.kX.call(this,"Altyaz\u0131lar",g.vU.SUBTITLES,a,b,"Se\u00e7enekler",function(){g.fW(b,
c)},e);
var f=this;this.J=a;this.Fb=b;this.tracks={};this.N=new g.lv(function(){N1a(f,!1)},3E3);
g.O(this,this.N);this.countLabel=new g.W({I:"div",V:[{I:"span",xa:"Altyaz\u0131lar"},{I:"span",S:"ytp-menuitem-label-count",xa:"{{content}}"}]});g.O(this,this.countLabel);this.zk(this.countLabel);a.L("web_settings_menu_icons")&&this.setIcon(MVa.includes("tr")?{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z            M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z            M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",
fill:"white"}}]}:{I:"svg",X:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{I:"path",X:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]});this.j=new rX(a,b);g.O(this,this.j);this.j.subscribe("select",this.U2,this);this.G=c;g.O(this,this.G);this.G.subscribe("settingChange",this.jk,this);b.subscribe("show",this.Uaa,this);this.T(a,"videodatachange",this.Sa);this.T(a,"onApiChange",this.Sa);this.T(a,"onCaptionsTrackListChanged",
this.Sa);this.T(a,"captionschanged",this.Sa);a.createClientVe(this.element,this,127300);this.Sa()};
P1a=function(a){return Object.values(a.tracks).find(function(b){return"en"===b.languageCode&&"asr"===b.kind})};
sX=function(a,b){a.J.setOption("captions","track",b)};
N1a=function(a,b){a.J.setOption("captions","sampleSubtitles",b)};
Q1a=function(a){g.hW.call(this,a,"ytp-settings-menu");var b=this;this.Ue=new g.bW(this.J);this.sR=this.settingsButton=null;this.isInitialized=this.pK=!1;g.O(this,this.Ue);this.hide();g.fW(this,this.Ue);a.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(c){b.Yf(c)});
this.T(a,"highlightSettingsMenu",function(){b.pK=!0;b.od()});
this.J.L("web_player_enable_open_menu_item_from_command")&&this.T(a,"openSettingsMenuItem",function(c){if(c&&(b.pK=!0,b.od(),"menu_item_video_quality_advanced"===c)){var d;null==(d=b.sR)||d.open()}})};
R1a=function(a,b){a.settingsButton=b;a.element.id=b.element.getAttribute("aria-controls")};
g.tX=function(a,b){g.W.call(this,{I:"button",Ka:["ytp-subtitles-button","ytp-button"],X:{title:"{{title}}","aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"3","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[NVa()]});this.J=a;this.tooltip=b.Ne();this.T(a,"videodatachange",this.Sa);this.T(a,"appresize",this.Sa);this.T(a,"promotooltipacceptbuttonclicked",this.j);this.T(a,"onApiChange",this.Sa);this.T(a,"onCaptionsTrackListChanged",this.Sa);this.T(a,"captionschanged",this.Sa);
this.J.createClientVe(this.element,this,127299);this.Sa();this.listen("click",this.onClick);this.addOnDisposeCallback(g.ST(b.Ne(),this.element))};
S1a=function(a){return null!=g.BV(a.J.yb())?g.BV(a.J.yb()).mS()?!!a.J.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1};
g.vX=function(a,b,c){c=void 0===c?350:c;g.W.call(this,{I:"div",Ka:["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",
Ka:["ytp-live-badge","ytp-button"],X:{disabled:"true"},xa:"{{content}}"});this.j=null;this.pE=this.B=!1;this.K=this.G=null;this.isPremiere=!1;this.Db=this.D=this.C=null;this.Y=this.Fa("ytp-clip-watch-full-video-button");this.liveBadge.Ld("Canl\u0131");g.O(this,this.liveBadge);this.liveBadge.Ja(this.element);this.tooltip=b.Ne();this.listen("click",this.onClick);this.T(this.Y,"click",this.xba);this.T(a,"presentingplayerstatechange",this.Nc);this.T(a,"appresize",this.Nc);this.T(a,"onLoopRangeChange",
this.onLoopRangeChange);this.T(a,"videodatachange",this.onVideoDataChange);(b=a.getVideoData())&&this.updateVideoData(b);this.Nc();a=a.getLoopRange();b=this.Db!==a;this.Db=a;b&&uX(this);this.api.L("web_modern_miniplayer")&&(this.element.hidden=!0)};
uX=function(a){a.updateValue("clipicon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{I:"path",X:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]});
a.pE&&!a.B?a.updateValue("watchfullvideo","Canl\u0131 yay\u0131n\u0131 izleyin"):a.updateValue("watchfullvideo","Videonun tamam\u0131n\u0131 izle");g.yv(a.element,"ytp-clip",wX(a));g.yv(a.element,"ytp-live",xX(a))};
xX=function(a){var b=a.api.U().L("enable_linear_program_progress");return a.pE&&!wX(a)&&(!b||!a.B)};
wX=function(a){return!!a.Db&&!!a.Db.postId&&2!==a.api.getPresentingPlayerType()&&(!a.Db.type||"clips"===a.Db.type)};
U1a=function(a,b){g.W.call(this,{I:"div",S:"ytp-volume-panel",X:{title:"Ses",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.xm=!1;this.Y=this.volume=0;this.G=null;this.B=this.j=this.isDragging=!1;this.K=b;this.C=a.Ah();this.N=this.Fa("ytp-volume-slider");this.qa=this.Fa("ytp-volume-slider-handle");
this.D=new g.QU(this.N,!0);g.O(this,this.D);this.D.subscribe("dragstart",this.Zaa,this);this.D.subscribe("dragmove",this.W2,this);this.D.subscribe("dragend",this.Yaa,this);this.T(a,"onVolumeChange",this.onVolumeChange);this.T(a,"appresize",this.vT);this.T(a,"fullscreentoggled",this.Uw);this.T(a,"onShowControls",this.bW);this.T(a,"onHideControls",this.bW);this.T(this.element,"keydown",this.X2);this.T(this.element,"focus",function(){yX(c,c.j,c.isDragging,!0,c.api.xm())});
this.T(this.element,"blur",function(){yX(c,c.j,c.isDragging,!1,c.api.xm())});
this.vT(a.kb().getPlayerSize());T1a(this,a.getVolume(),a.isMuted());TT(a,this.element,this)};
T1a=function(a,b,c){var d=Math.floor(b),e=d+"% ses d\u00fczeyi"+(c?" sessiz":"");c=c?0:b/100;a.updateValue("valuenow",d);a.updateValue("valuetext",e);a.qa.style.left=(a.C?60:40)*c+"px";a.volume=b};
V1a=function(a,b){g.yv(a.element,"ytp-volume-control-hover",b);yX(a,b,a.isDragging,a.B,a.api.xm())};
yX=function(a,b,c,d,e){var f=a.j||a.isDragging||a.B||a.xm;a.j=b;a.isDragging=c;a.B=d;a.xm=e;b=a.j||a.isDragging||a.B||a.xm;f!==b&&(b?a.G=a.T(a.element,"wheel",a.V2):(a.Pc(a.G),a.G=null),g.yv(a.K,"ytp-volume-slider-active",b))};
zX=function(a,b){var c=a.U(),d=g.UR(c);0===d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];c.C&&e.push("no-link");var f={title:"",target:c.Y,"data-priority":"4","data-sessionlink":"feature=player-button"};c.C||(f.title="youtube.com"===d?"YouTube'da izle":g.KJ("$WEBSITE sitesinde izle",{WEBSITE:d}),f.href="{{url}}");g.W.call(this,{I:"a",Ka:e,X:f,xa:"{{logoSvg}}"});this.j=null;this.api=a;this.visible=!1;a.createClientVe(this.element,this,28666);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.Tb);this.onVideoDataChange();c.C||this.addOnDisposeCallback(g.ST(b.Ne(),this.element));this.Tb()};
W1a=function(a,b,c){g.vK.call(this);var d=this;this.J=a;this.Te=b;this.Gg=c;this.fb=NaN;this.Wa=this.bb=null;this.B=new Q1a(this.J);this.progressBar=new g.UW(this.J,this.Te);this.qa=this.Y=this.G=null;this.Ba=new g.vX(this.J,this.Te);this.Va=this.playButton=this.D=this.K=this.Ra=this.La=null;this.Za=new W_a(this.J,this.Te);this.Z=new g.jv(this.Y2,null,this);this.ra=null;c=a.U();this.Gg.subscribe("autohideupdate",this.IA,this);var e=!a.Qb().isCued(),f;a.U().L("html5_player_dynamic_bottom_gradient")?
this.Wa=f=new R_a(a):f=new g.W({I:"div",S:"ytp-gradient-bottom"});g.O(this,f);g.cU(a,f.element,9);this.Da=new g.gG(f,250,e,100);g.O(this,this.Da);this.C=new g.W({I:"div",S:"ytp-chrome-bottom",V:[{I:"div",S:"ytp-chrome-controls"}]});g.O(this,this.C);g.cU(a,this.C.element,9);this.Ga=new g.gG(this.C,250,e,100);g.O(this,this.Ga);this.Na=this.C.element.children[0];g.O(this,this.B);g.cU(a,this.B.element,6);this.B.subscribe("show",function(l){d.J.jG(!l);a.ZR(d.B,l)});
g.O(this,this.progressBar);this.progressBar.Ja(this.C.element,0);e=new JW(a,b);g.O(this,e);g.cU(a,e.element,4);e=new g.AF({I:"div",S:"ytp-left-controls"});g.O(this,e);e.Ja(this.Na);f=new g.PW(a,b,!1);g.O(this,f);f.Ja(e.element);a.L("web_render_jump_buttons")&&(this.Y=new KW(a,g.YI(a.U().experiments,"web_jump_button_backward_amount")||-10),g.O(this,this.Y),this.Y.Ja(e.element));c.Ra||(this.playButton=new g.OW(a,b),g.O(this,this.playButton),this.playButton.Ja(e.element));a.L("web_render_jump_buttons")&&
(this.qa=new KW(a,g.YI(a.U().experiments,"web_jump_button_forward_amount")||10),g.O(this,this.qa),this.qa.Ja(e.element));f=new g.PW(a,b,!0);g.O(this,f);f.Ja(e.element);f=new g.W({I:"span",S:"ytp-volume-area"});g.O(this,f);f.Ja(e.element);if(!c.hd&&(this.G=new g.NW(a,b),g.O(this,this.G),this.G.Ja(f.element),c.Va&&!c.Z)){var h=new U1a(a,this.C.element);this.Va=h;g.O(this,h);h.Ja(f.element);f=new g.QU(f.element);g.O(this,f);f.subscribe("hoverstart",function(){var l;null==(l=d.Va)||V1a(l,!0)});
f=new g.QU(e.element);g.O(this,f);f.subscribe("hoverend",function(){var l;null==(l=d.Va)||V1a(l,!1)})}g.O(this,this.Ba);
this.Ba.Ja(e.element);this.j=new g.AF({I:"div",S:"ytp-right-controls"});g.O(this,this.j);this.La=new IW(a,this.progressBar);g.O(this,this.La);this.La.Ja(e.element);c.L("web_key_moments_markers")&&(this.Ra=new LW(a,this.progressBar),g.O(this,this.Ra),this.Ra.Ja(e.element));this.j.Ja(this.Na);e=new g.tX(a,b);g.O(this,e);e.Ja(this.j.element);e=new iX(a,this.B);g.O(this,e);R1a(this.B,e);e.Ja(this.j.element);e=a.getVideoData();if(c.Sm||e.Kf&&"1"===c.controlsType)this.K=new zX(a,b),g.O(this,this.K),this.K.Ja(this.j.element);
c.showMiniplayerButton&&(this.D=new MW(a),g.O(this,this.D),this.D.Ja(this.j.element));c.tj&&(b=new hX(a,this.B),g.O(this,b),b.Ja(this.j.element));c.Om&&(b=new GW(a),g.O(this,b),b.Ja(this.j.element));g.O(this,this.Za);this.Za.Ja(this.j.element);g.O(this,this.Z);this.T(a,"appresize",this.Tb);this.T(a,"fullscreentoggled",this.Tb);this.T(a,"presentingplayerstatechange",this.SS);this.T(a,"videodatachange",this.onVideoDataChange);this.Tb()};
X1a=function(a,b){a.J.Qb().isCued()||b?b&&(a.Ga.hide(),a.Da.hide(),a.G&&a.G.Hc(!1),a.K&&a.K.Hc(!1),a.D&&a.D.Hc(!1),a.J.Xl(a.Ib())):b||(a.Ga.show(),a.Da.show(),a.G&&a.G.Hc(!0),a.K&&a.K.Hc(!0),a.D&&a.D.Hc(!0),a.IA())};
Z1a=function(a){var b=a.J.kb().getPlayerSize().width;return Math.max(b-2*Y1a(a),100)};
Y1a=function(a){var b=a.J.Ah(),c=a.J.getVideoData().Kf,d=0;a.J.Ah()&&a.J.Yc()&&(d=(a.J.kb().getPlayerSize().width-a.J.getVideoContentRect().width)/2);return 12*(c?0:b?2:1)+d};
$1a=function(a){var b=a.J.Ah()?72:50;a=a.J.U();g.ZR(a)&&(b=62,g.NR(a)&&(b=54));return b};
a2a=function(a){LU.call(this,a,!1);var b=this;this.suggestedActions={};this.T(this.J,"videodatachange",this.onVideoDataChange);this.T(this.J,g.EJ("suggested_action_button_visible"),function(c){c=c.id;b.text=c;BWa(b);b.onClickCommand=b.suggestedActions[c];b.enabled=!0;b.Yf()});
this.T(this.J,g.FJ("suggested_action_button_visible"),function(c){b.enabled=!1;b.Yf();b.J.removeCueRange(c.id)})};
b2a=function(a){a.suggestedActions={};a.J.sf("suggested_action_button_visible")};
BX=function(a){g.W.call(this,{I:"div",S:AX.TITLE,V:[{I:"div",S:AX.TEXT,V:[{I:"a",Ka:[AX.LINK,AX.SESSIONLINK],X:{target:a.U().Y,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},xa:"{{title}}"},{I:"div",S:AX.SUBTEXT,V:["{{subtextElement}}"]}]}]});this.api=a;this.j=null;this.link=this.Fa(AX.LINK);a.createClientVe(this.element,this,23851);this.T(a,"videodatachange",this.Sa);this.T(a,"videoplayerreset",this.Sa);this.Sa()};
c2a=function(a){a.updateValue("channelLink","");a.updateValue("channelName","");g.NR(a.api.U())?a.updateValue("channelTitleFocusable","0"):a.updateValue("channelTitleFocusable","-1")};
g.CX=function(a,b){g.W.call(this,{I:"div",V:[{I:"div",S:"ytp-tooltip-text-wrapper",X:{"aria-hidden":"{{ariaHidden}}"},V:[{I:"div",S:"ytp-tooltip-edu",V:[{I:"svg",X:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",X:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{I:"span",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.Va=b;this.env=this.api.U();this.Na=this.env.B;this.bg=this.Fa("ytp-tooltip-bg");this.Ra=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.ra=function(d){(d=d.relatedTarget)&&g.Nf(c.j,d)||c.Uh()};
this.G=function(d){3===c.type&&c.Uh();(d=d.currentTarget)&&1===d.nodeType&&!c.type&&(d.removeEventListener("mouseover",c.G),d.addEventListener("mouseout",c.ra),d.removeEventListener("focus",c.G),d.addEventListener("blur",c.ra),d2a(c,d,2))};
this.Ga=function(){c.Uh()};
this.j=null;this.K=new g.gG(this,100);this.type=null;this.qa=!1;this.B=null;this.D=NaN;this.C="";this.wT=this.api.kb().getPlayerSize().width;this.Y=!0;this.scale=1;this.N=160;this.Ba=90;this.Da=new g.lv(this.c9,250,this);this.La=new g.lv(this.Uh,5E3,this);g.O(this,this.K);g.O(this,this.Da);g.O(this,this.La);FR&&(a=this.Fa("ytp-tooltip-text"),a.setAttribute("role","text"),a.setAttribute("aria-live","polite"));T_a(this.api)&&(this.N=243,this.Ba=141,g.uv(this.api.getRootNode(),"ytp-bigboards"))};
g.ST=function(a,b){if(a.Na)return function(){};
b.addEventListener("mouseover",a.G);b.addEventListener("focus",a.G);var c=b.getAttribute("title");c&&!b.hasAttribute("aria-label")&&b.setAttribute("aria-label",c);return function(){a.j===b&&a.Uh();b.removeEventListener("mouseover",a.G);b.removeEventListener("focus",a.G)}};
d2a=function(a,b,c,d){if(b&&!b.hasAttribute)a=new g.AC("showElementTooltip called with non-element.",b.toString()),g.dF(a);else{isNaN(a.D)||(a.D=NaN,a.bg.style.background="");a.j=b;a.qa=!!d;d?a.C=d:(a.C=b.getAttribute("title"),b.removeAttribute("title"));g.rv(a.element,"ytp-tooltip");g.uv(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.yv(a.element,"ytp-tooltip-image-enabled",
!!e);b=b.getAttribute("data-tooltip-opaque");g.yv(a.element,"ytp-tooltip-opaque",!!b);a.type=c;a.api.addEventListener("appresize",a.Ga);a.Y&&(e2a(a),a.K.show(0))}};
e2a=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.KJ("$BUTTON_TITLE klavye k\u0131sayolu $SHORTCUT_KEY",{BUTTON_TITLE:e,SHORTCUT_KEY:d}));c&&a.j.setAttribute("aria-label",c);if(b&&!a.qa){d=a.j;a.updateValue("text",b);c=d.getAttribute("data-duration");a.update({title:a.C,duration:c});d=d.getAttribute("data-preview");e=a.N*a.scale;
var f=a.Ba*a.scale;a.bg.style.width=e+"px";a.bg.style.height=f+"px";a.bg.style.backgroundImage=d?"url("+d+")":"";a.bg.style.backgroundSize=e+"px "+f+"px";g.vv(a.element,["ytp-text-detail","ytp-preview"]);g.yv(a.element,"ytp-has-duration",!!c)}else a.updateValue("text",a.C),g.xv(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);f2a(a,!!b)}};
f2a=function(a,b,c,d){var e=Math.min(a.wT,300*a.scale);a.element.style.maxWidth=b?"":e+"px";a.Va.Wt(a.element,a.j,c,1===a.type,d);a.element.style.top?g.uv(a.element,"ytp-bottom"):a.element.style.bottom&&g.uv(a.element,"ytp-top");3===a.type&&a.La.start()};
g2a=function(a,b){g.yv(a.element,"ytp-preview",0<=b);if(!(0>b||b===a.D)){a.D=b;b=a.N*a.scale;var c=a.Ba*a.scale,d=qTa(a.B,a.D,b);S_a(a.bg,d,b,c,!0);a.Da.start()}};
h2a=function(a){var b=a.j;3===a.type&&a.La.stop();a.api.removeEventListener("appresize",a.Ga);a.qa||b.setAttribute("title",a.C);a.C="";a.j=null};
j2a=function(a){g.W.call(this,{I:"button",Ka:["ytp-watch-later-button","ytp-button"],X:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.IR(a.U()))},V:[{I:"div",S:"ytp-watch-later-icon",xa:"{{icon}}"},{I:"div",S:"ytp-watch-later-title",xa:"Daha sonra izle"}]});this.J=a;this.icon=null;this.visible=this.isRequestPending=this.j=!1;qVa(a);a.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.T(a,"videoplayerreset",this.onReset);this.T(a,
"appresize",this.gC);this.T(a,"videodatachange",this.gC);this.T(a,"presentingplayerstatechange",this.gC);this.gC();a=this.J.U();var b=g.tC("yt-player-watch-later-pending");a.D&&b?(XNa(),i2a(this)):this.Sa(2);g.yv(this.element,"ytp-show-watch-later-title",g.IR(a));TT(this.J,this.element,this)};
k2a=function(a){var b=a.J.getPlayerSize(),c=a.J.U(),d=a.J.getVideoData(),e=g.IR(c)&&g.$T(a.J)&&g.mG(a.J.Qb(),128),f=c.C;return c.ke&&240<=b.width&&!d.isAd()&&d.ke&&!e&&!g.ET(d)&&!a.J.Yc()&&!f};
l2a=function(a,b){jZa(g.UR(a.J.U()),"wl_button",function(){XNa({videoId:b});window.location.reload()})};
i2a=function(a){if(!a.isRequestPending){a.isRequestPending=!0;a.Sa(3);var b=a.J.getVideoData();b=a.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var c=a.J.im(),d=a.j?function(){a.j=!1;a.isRequestPending=!1;a.Sa(2);a.J.U().N&&a.J.gb("WATCH_LATER_VIDEO_REMOVED")}:function(){a.j=!0;
a.isRequestPending=!1;a.Sa(1);a.J.U().B&&a.J.oG(a.element);a.J.U().N&&a.J.gb("WATCH_LATER_VIDEO_ADDED")};
FH(c,b).then(d,function(){a.isRequestPending=!1;a.Sa(4,"Bir hata olu\u015ftu. L\u00fctfen daha sonra tekrar deneyin.");a.J.U().N&&a.J.gb("WATCH_LATER_ERROR","Bir hata olu\u015ftu. L\u00fctfen daha sonra tekrar deneyin.")})}};
m2a=function(a,b){if(b!==a.icon){switch(b){case 3:var c=OVa();break;case 1:c=Mwa();break;case 2:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:c={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",
Cc:!0,X:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}a.updateValue("icon",c);a.icon=b}};
g.DX=function(){g.SV.apply(this,arguments);this.gJ=(this.Yq=g.IR(this.api.U()))&&(this.api.U().B||VB()||Xpa());this.vN=48;this.wN=69;this.dD=this.ri=null;this.Pt=[];this.nL=this.di=this.oL=this.Ev=this.Xd=null;this.EG=[];this.contextMenu=this.Dg=this.overflowButton=this.Zh=this.Sg=this.searchButton=this.jn=this.shareButton=this.Ho=this.Og=this.title=this.channelAvatar=this.XA=this.tooltip=null;this.eN=!1;this.AF=this.yw=this.xD=this.yD=null;this.aR=this.VP=this.GN=!1};
n2a=function(a){var b=a.api.U(),c=g.mG(a.api.Qb(),128);return b.D&&c&&!a.api.isFullscreen()};
o2a=function(a){if(a.Kg()&&!a.api.Yc()&&a.Zh){var b=a.api.L("web_player_hide_overflow_button_if_empty_menu");!a.Ho||b&&!k2a(a.Ho)||q_a(a.Zh,a.Ho);!a.shareButton||b&&!A_a(a.shareButton)||q_a(a.Zh,a.shareButton);!a.jn||b&&!CZa(a.jn)||q_a(a.Zh,a.jn)}else{if(a.Zh){b=a.Zh;for(var c=g.u(b.actionButtons),d=c.next();!d.done;d=c.next())d.value.detach();b.actionButtons=[]}a.searchButton&&!g.Nf(a.Og.element,a.searchButton.element)&&a.searchButton.Ja(a.Og.element);a.Ho&&!g.Nf(a.Og.element,a.Ho.element)&&a.Ho.Ja(a.Og.element);
a.shareButton&&!g.Nf(a.Og.element,a.shareButton.element)&&a.shareButton.Ja(a.Og.element);a.jn&&!g.Nf(a.Og.element,a.jn.element)&&a.jn.Ja(a.Og.element)}};
p2a=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!==Ds(b,"display")&&"true"!==b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=p2a(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};
q2a=function(a,b,c){if(a.api.U().L("web_player_nitrate_promo_tooltip")){var d=a.api.getVideoData(1);if(null==d?0:d.tooltipRenderer){d=d.tooltipRenderer;var e;if(e=!a.AF){if(!(b=!b)){var f,h,l;b="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"!==(null==(f=d.tooltipDisplayStrategy)?void 0:f.type)&&"dtip-edu-player-iseecaptions"!==(null==(h=d.promoConfig)?void 0:h.promoId)&&"dtip-edu-player-touchcaptions"!==(null==(l=d.promoConfig)?void 0:l.promoId)}e=b}e&&(a.AF=new u_a(d,a.api),g.O(a,a.AF),g.cU(a.api,
a.AF.element,9));var m;null==(m=a.AF)||y_a(m,d,c)}}};
g.EX=function(a){g.qV.call(this,a);this.chrome=null;this.load()};
FX=function(a,b,c,d){function e(h){var l=!(204!==h.status&&200!==h.status&&!h.response),m;h={succ:""+ +l,rc:h.status,lb:(null==(m=h.response)?void 0:m.byteLength)||0,rt:((0,g.$C)()-f).toFixed(),shost:g.hn(a),trigger:b};r2a(h,a);c&&c(h);d&&!l&&d(new oK("pathprobe.net",h))}
var f=(0,g.$C)();g.CB(a,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:e,onTimeout:e})};
r2a=function(a,b){var c;(null==(c=window.performance)?0:c.getEntriesByName)&&(b=performance.getEntriesByName(b))&&b.length&&(b=b[0],a.pedns=(b.domainLookupEnd-b.startTime).toFixed(),a.pecon=(b.connectEnd-b.domainLookupEnd).toFixed(),a.perqs=(b.requestStart-b.connectEnd).toFixed(),s2a&&(a.perqsa=b.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))};
GX=function(a){g.I.call(this);var b=this;this.W=a;this.j=new Map;this.D=[];this.B=this.W.experiments.jb("html5_onesie_trusted_hosts_for_all")||!BN();this.Y=g.YI(this.W.experiments,"html5_onesie_prewarm_interval_ms");this.Z=new g.lv(this.N,this.Y,this);this.K=-1;this.pd={aob:function(){return b.j},
gob:function(){return b.G},
bob:function(){return t2a}};
g.O(this,this.Z);u2a(this,g.tC("yt-player-bandaid-host"));this.G=this.load();this.Y&&this.G.then(function(){b.N()})};
u2a=function(a,b){var c=null==b?void 0:b.primary;a.C(0,c);c=c?v2a(c):void 0;a.C(2,c);a.C(1,null==b?void 0:b.secondary)};
HX=function(a,b){return new g.zP("https://"+b+a.W.yl.baseUrl)};
w2a=function(a,b){a="https://"+BP(b.location)+"/initplayback?c="+g.nR(a.W)+"&owc=1";FX(a,"pw",function(c){c.ht=b.j})};
IX=function(a,b,c,d){FX("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.hJ||d.XO();a.D.push(e)},function(e){a.D.push(e.details)})};
v2a=function(a){return a.replace(/(\d+)---/g,function(b,c){b=Number(c);return(1===b?2:b-1)+"---"})};
y2a=function(a,b){var c,d,e,f,h,l,m,n;return g.H(function(p){if(1==p.j){c=HX(a,"redirector.googlevideo.com");c.set("alr","yes");c.set("id",""+Math.round(1E5*Math.random()));if(1===b||2===b)c.set("cmo=sensitive_content","yes"),c.set("sc","yes");2===b&&c.set("cmo=td","c.youtube.com");d={format:"RAW",timeout:5E3};return g.z(p,EB(c.Oe(),d),2)}e=p.B;if(200!==e.xhr.status||!e.xhr.responseText)return p.return(Promise.reject(new g.AC("b204258371_no_host",c.Oe(),e.xhr.status)));f=new g.zP(e.xhr.responseText);
h=BP(f);l=f.get("ms");m=HX(a,h);n=f.get("mm");m.set("ms",l);m.set("mm",n);return h&&x2a(h)?2!==b||JX(h)?p.return(m):p.return(Promise.reject(new g.AC("b204258371_untrusted",h,l))):p.return(Promise.reject(new g.AC("b204258371_invalid",h,l)))})};
z2a=function(a){var b=a.D;a.D=[];return b};
x2a=function(a){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(a)};
JX=function(a){var b=/sn-[^.]*-/;return/.*\.c\.youtube\.com/.test(a)&&!b.test(a)};
A2a=function(a,b){this.location=a;this.j=b};
D2a=function(a,b){b=void 0===b?!1:b;var c=BK[a],d=B2a[c],e=C2a[a];if(!e||!d)return null;b=new yK(b?e.height:e.width,b?e.width:e.height,e.fps);d=HQa(d,b,c);return new CK(a,d,{video:b,sb:e.bitrate/8})};
F2a=function(a){var b=B2a[BK[a]],c=E2a[a];return c&&b?new CK(a,b,{audio:new wK(c.audioSampleRate,c.numChannels)}):null};
H2a=function(a,b){var c=[];b=g.u(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=G2a[d]||0;a.j&&e>a.j||c.push(d)}return c};
L2a=function(a,b,c){var d=I2a[a]||[];c.L("html5_shorts_onesie_mismatched_fix")&&(d=J2a[a]||[]);b.push.apply(b,g.qa(d));c.L("html5_early_media_for_drm")&&b.push.apply(b,g.qa(K2a[a]||[]))};
R2a=function(a,b){var c=bT(a),d=a.U(),e=d.G;d=d.L("html5_shorts_onesie_mismatched_fix");var f=a.Rk();if(d){if(!e.B){if(f&&KX)return KX;if(LX)return LX}}else if(LX&&!e.B)return LX;var h=[],l=[],m={},n=MX.concat(M2a);d&&(n=MX.concat(N2a));a.L("html5_early_media_for_drm")&&(n=n.concat(O2a),a.L("allow_vp9_1080p_mq_enc")&&n.push(P2a));var p=[].concat(g.qa(Q2a));c.Z&&(p[0]=["141"]);n=g.u(n);for(var q=n.next();!q.done;q=n.next()){var r=!1;q=g.u(q.value);for(var t=q.next();!t.done;t=q.next()){t=t.value;var v=
D2a(t,f&&d);if(v&&v.video&&!(EK(v)&&!c.Da&&v.video.j>c.gj)){var w=g.YI(a.U().experiments,"html5_drm_byterate_soft_cap");0<w&&gDa(v)&&v.sb>w||(r?(h.push(t),L2a(t,h,a)):(v=sP(c,v,e),!0===v?(r=!0,h.push(t),L2a(t,h,a)):m[t]=v))}}}p=g.u(p);for(n=p.next();!n.done;n=p.next())for(n=g.u(n.value),r=n.next();!r.done;r=n.next())if(r=r.value,(q=F2a(r))&&q.audio&&(a.L("html5_onesie_51_audio")||!fDa(q)&&!FK(q)))if(q=sP(c,q,e),!0===q){l.push(r);L2a(r,l,a);break}else m[r]=q;c.B&&b("orfmts",m);if(d)return e.B&&(e.B=
!1,KX=LX=void 0),f?KX={video:h,audio:l}:LX={video:h,audio:l};LX={video:h,audio:l};e.B=!1;return LX};
S2a=function(){for(var a=NX.length;4>a;a++){var b=g.yf("VIDEO");b.load();NX.push(new g.XU(b))}};
T2a=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.Pi()>d/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(d))return{msg:"live-infinite"};(d=b.Xe())&&d.isView()&&(d=d.mediaElement);if(d&&12<d.Rv().length&&g.gT(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.C&&$S(f)&&(d=b.HD(),l=
c.HD());if(!d||!l)return{msg:"no-video-info"};b=a.j&&f.Rk()&&XK();if(l.containerType!==d.containerType)if(b)f.ma("sgap",{ierr:"container"});else return{msg:"container"};if(g.gT(f)&&g.gT(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.tK)if(b)f.ma("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.B&&f.Rk()&&
d.video.fps!==l.video.fps?{msg:"fps"}:null};
U2a=function(a,b,c){var d=a.getVideoData(),e=b.getVideoData();if(!d.U().supportsGaplessShorts())return{nq:"env"};if(d.Xk||e.Xk)return{nq:"autoplay"};if(!d.Y)return{nq:"client"};a=T2a(c,a,b,Infinity);return null!=a?{nq:a.msg}:null};
OX=function(a){g.I.call(this);this.app=a;this.D=this.C=this.tb=this.j=null;this.B=1;this.events=new g.vK(this);this.events.T(this.app.Ua,g.FJ("gaplessshortslooprange"),this.N);g.O(this,this.events)};
V2a=function(){this.C=this.B=this.j=!1};
W2a=function(a){var b=new V2a;b.j=a.L("h5_gapless_support_types_diff");b.B=a.L("h5_gapless_error_on_fps_diff");b.C=a.L("html5_gapless_use_format_info_fix");return b};
g.PX=function(a,b,c,d){d=void 0===d?!1:d;gL.call(this);this.mediaElement=a;this.start=b;this.end=c;this.j=d};
X2a=function(a,b,c,d,e,f){f=void 0===f?0:f;g.I.call(this);var h=this;this.policy=a;this.j=b;this.B=c;this.Bd=e;this.G=f;this.D=this.C=null;this.currentVideoDuration=this.K=-1;this.N=!1;this.eq=new fL;this.Lm=d-1E3*b.Lc();this.eq.then(void 0,function(){});
this.timeout=new g.lv(function(){h.Bg("timeout")},1E4);
g.O(this,this.timeout);this.Z=isFinite(d);this.status={status:0,error:null}};
b3a=function(a){var b,c,d,e,f,h,l,m,n,p;return g.H(function(q){if(1==q.j){if(a.Ma())return q.return(Promise.reject(Error(a.status.error||"disposed")));a.timeout.start();b=g.QX.uu("gtfta");return g.z(q,a.eq,2)}g.QX.Ls(b);c=a.j.Xe();if(c.isEnded())return a.Bg("ended_in_finishTransition"),q.return(Promise.reject(Error(a.status.error||"")));if(!a.D||!$K(a.D))return a.Bg("next_mse_closed"),q.return(Promise.reject(Error(a.status.error||"")));if(a.B.Nq()!==a.D)return a.Bg("next_mse_mismatch"),q.return(Promise.reject(Error(a.status.error||
"")));d=Y2a(a);e=d.qZ;f=d.pW;h=d.oZ;a.j.Cj(!1,!0);l=Z2a(c,e,h,!a.B.getVideoData().isAd());a.B.setMediaElement(l);m=a.j.SD();a.Bd.U().L("html5_mse_reuse_dropped_frames_fix")&&m&&a.B.iG(m.aB,m.bB);a.Z&&(a.B.seekTo(a.B.getCurrentTime()+.001,{cw:!0,FS:3,yd:"gapless_pseudo"}),l.play()||IB());n=c.jc();n.cpn=a.j.getVideoData().clientPlaybackNonce;n.st=""+e;n.et=""+h;a.B.ma("gapless",n);a.j.ma("gaplessTo",{cpn:a.B.getVideoData().clientPlaybackNonce});p=a.j.getPlayerType()===a.B.getPlayerType();$2a(a.j,f,
!1,p,a.B.getVideoData().clientPlaybackNonce);$2a(a.B,a.B.getCurrentTime(),!0,p,a.j.getVideoData().clientPlaybackNonce);a.B.D0=!0;g.fg(function(){!a.B.getVideoData().Ga&&g.oL(a.B.getPlayerState())&&a3a(a.B)});
RX(a,6);a.dispose();return q.return(Promise.resolve())})};
g3a=function(a){if(a.B.getVideoData().C){var b=a.Bd.U().L("html5_gapless_suspend_next_loader")&&1===a.G;c3a(a.B,a.D,b,d3a(a));RX(a,3);e3a(a);var c=f3a(a);b=c.hS;c=c.r0;b.subscribe("updateend",a.Rx,a);c.subscribe("updateend",a.Rx,a);a.Rx(b);a.Rx(c)}};
e3a=function(a){a.j.unsubscribe("internalvideodatachange",a.dn,a);a.B.unsubscribe("internalvideodatachange",a.dn,a);a.Bd.U().L("html5_gapless_use_format_info_fix")&&(a.j.unsubscribe("internalvideoformatchange",a.dn,a),a.B.unsubscribe("internalvideoformatchange",a.dn,a));a.j.unsubscribe("mediasourceattached",a.dn,a);a.B.unsubscribe("statechange",a.xT,a)};
Z2a=function(a,b,c,d){a=a.isView()?a.mediaElement:a;return new g.PX(a,b,c,d)};
RX=function(a,b){b<=a.status.status||(a.status={status:b,error:null},5===b&&a.eq.resolve())};
d3a=function(a){return a.Bd.U().L("html5_gapless_no_clear_buffer_timeline")&&1===a.G&&US(a.j.getVideoData())};
Y2a=function(a){var b=a.j.Xe();b=b.isView()?b.start:0;var c=a.j.getVideoData().isLivePlayback?Infinity:SX(a.j,!0);c=Math.min(a.Lm/1E3,c)+b;var d=a.Z?100:0;a=c-a.B.Pi()+d;return{E6:b,qZ:a,pW:c,oZ:Infinity}};
f3a=function(a){return{hS:a.C.j.Sd,r0:a.C.B.Sd}};
i3a=function(a){g.I.call(this);var b=this;this.app=a;this.G=this.B=this.j=null;this.Z=!1;this.D=null;this.N=W2a(this.app.U());this.C=null;this.K=function(){g.fg(function(){h3a(b)})}};
j3a=function(a,b,c,d,e){d=void 0===d?0:d;e=void 0===e?0:e;a.Ct()||TX(a);a.D=new fL;a.j=b;var f=c,h=0===e;h=void 0===h?!0:h;var l=a.app.Xc(),m=l.getVideoData().isLivePlayback?Infinity:1E3*SX(l,!0);f>m&&(f=m-200,a.Z=!0);h&&l.getCurrentTime()>=f/1E3?a.K():(a.B=l,h&&(h=f,f=a.B,a.app.Ua.addEventListener(g.EJ("vqueued"),a.K),h=isFinite(h)||h/1E3>f.getDuration()?h:0x8000000000000,a.G=new g.DJ(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,SX(a.B,!0)),m=Math.max(0,h-a.B.getCurrentTime()),l=Math.min(d,SX(b)+m)),h=XQa(f,l)||d,h!==d&&a.j.ma("qvaln",{st:d,at:h,rm:m,ct:l}));b=h;d=a.j;d.getVideoData().jj=!0;d.getVideoData().Y=!0;g.UX(d,!0);f={};a.B&&(f=g.TM(a.B.lc().provider),h=a.B.getVideoData().clientPlaybackNonce,f={crt:(1E3*f).toFixed(),cpn:h});d.ma("queued",f);0!==b&&d.seekTo(b+.01,{cw:!0,FS:3,yd:"videoqueuer_queued"});a.C=new X2a(a.N,a.app.Xc(),a.j,c,a.app,e);c=a.C;Infinity!==c.status.status&&
(RX(c,1),c.j.subscribe("internalvideodatachange",c.dn,c),c.B.subscribe("internalvideodatachange",c.dn,c),c.Bd.U().L("html5_gapless_use_format_info_fix")&&(c.j.subscribe("internalvideoformatchange",c.dn,c),c.B.subscribe("internalvideoformatchange",c.dn,c)),c.j.subscribe("mediasourceattached",c.dn,c),c.B.subscribe("statechange",c.xT,c),c.j.subscribe("newelementrequired",c.KZ,c),c.dn());return a.D};
h3a=function(a){var b,c,d,e,f;g.H(function(h){switch(h.j){case 1:if(a.Ma()||!a.D||!a.j)return h.return();a.Z&&VX(a.app.Xc(),!0,!1);b=null;if(!a.C){h.Ia(2);break}g.Ba(h,3);return g.z(h,b3a(a.C),5);case 5:g.Ca(h,2);break;case 3:b=c=g.Da(h);case 2:if(!a.j)return h.return();g.QX.al("vqsp",function(){WX(a.app,a.j)});
d=a.j.Xe();a.app.U().L("html5_gapless_seek_on_negative_time")&&d&&-.01>d.getCurrentTime()&&a.j.seekTo(0);g.QX.al("vqpv",function(){a.app.playVideo()});
b&&(a.j?k3a(a.j,b.message):null==(e=a.B)||e.ma("gapsp",{}));f=a.D;TX(a);f&&f.resolve();return h.return(Promise.resolve())}})};
TX=function(a,b){b=void 0===b?!1:b;if(a.B){if(a.G){var c=a.B;a.app.Ua.removeEventListener(g.EJ("vqueued"),a.K);c.removeCueRange(a.G)}a.B=null;a.G=null}a.C&&(6!==a.C.status.status&&(c=a.C,Infinity!==c.status.status&&1!==c.G&&c.Bg("Canceled")),a.C=null);a.D=null;a.j&&!b&&a.j!==g.PT(a.app,1)&&a.j!==a.app.Xc()&&a.j.dispose();a.j&&b&&XX(a.j);a.j=null;a.Z=!1};
l3a=function(a){var b;return(null==(b=a.C)?void 0:b.currentVideoDuration)||-1};
m3a=function(a,b,c){if(a.Ct())return"qie";if(null==a.j||a.j.Ma()||null==a.j.getVideoData())return"qpd";if(b.videoId!==a.j.oe())return"vinm";if(0>=l3a(a))return"ivd";if(1!==c)return"upt";var d;null==(d=a.C)?a=void 0:5!==d.getStatus().status?a="niss":null!=T2a(d.policy,d.j,d.B,d.Lm)?a="pge":(c=f3a(d),b=c.hS,a=g.YI(d.Bd.U().experiments,"html5_shorts_gapless_next_buffer_in_seconds"),d=d.K+a,c=QK(c.r0.Ke(),d),b=QK(b.Ke(),d),a=!(0<a)||c&&b?null:"neb");return null!=a?a:null};
n3a=function(){var a=uqa();return!(!a||"visible"===a)};
p3a=function(a){var b=o3a();b&&document.addEventListener(b,a,!1)};
q3a=function(a){var b=o3a();b&&document.removeEventListener(b,a,!1)};
o3a=function(){if(document.visibilityState)var a="visibilitychange";else{if(!document[tqa+"VisibilityState"])return"";a=tqa+"visibilitychange"}return a};
r3a=function(){g.wF.call(this);var a=this;this.fullscreen=0;this.C=this.pictureInPicture=this.j=this.B=this.inline=!1;this.D=function(){a.Yf()};
p3a(this.D);this.G=this.getVisibilityState(this.Vh(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.xt(),this.Xz(),this.eA())};
HWa=function(a){return!(a.isMinimized()||a.isInline()||a.isBackground()||a.xt()||a.Xz()||a.eA())};
s3a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Cb=c;this.status=0;this.j=new JN;this.B=0;this.Ma=this.D=this.C=!1;this.G=[];this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",a);if(d.headers)for(a=d.headers,b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.xhr.setRequestHeader(c,a[c]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return e.LA()};
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.$C)();e.Cb.Vt(f,e.B)},function(){},d.body||null)};
g.YX=function(a){this.tag=a};
u3a=function(a,b){t3a.apply(null,[6,a,b].concat(g.qa(g.Ia.apply(2,arguments))))};
v3a=function(a,b){t3a.apply(null,[5,a,b].concat(g.qa(g.Ia.apply(2,arguments))))};
t3a=function(a,b,c){var d=g.Ia.apply(3,arguments),e=6===a?"ERROR":"WARNING",f="b"+c;g.dF(new (Function.prototype.bind.apply(g.AC,[null,f].concat(g.qa(d)))),e);d.unshift(f);d=d.join(", ");e=w3a.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){}w3a.set(b,f);e=f}a<e||("function"===typeof d&&(d=d()),console.log("plyr."+b,d))};
ZX=function(a,b){g.I.call(this);var c=this;this.policy=a;this.eb=b;this.B=0;this.j=null;this.Af=[];this.C=null;this.pd={Cn:function(){return c.eb}};
1===this.eb.length||g.Sr(this.eb,function(d){return!!d.range})};
$X=function(a,b,c){a.j&&(KN(a.j,b),b=a.j,a.j=null);for(var d=0,e=0,f=g.u(a.eb),h=f.next();!h.done;h=f.next())if(h=h.value,h.range&&d+h.B<=a.B)d+=h.B;else{b.getLength();if(sQ(h)&&!c&&a.B+b.getLength()-e<d+h.B){a.j=b.split(e).Km;return}a:{var l=a;var m=h,n=a.B-d,p=e,q=b,r=!!c,t=q.getLength()-p;m.range&&(t=Math.min(m.B-n,t));m=APa(m,m.Rb+n,t,m.range?m.Rb+n+t===m.range.length:r);p=LN(q,p,t);p=new JQ(m,p);if(l.policy.useUmp&&l.Af.length&&(q=LQ(l.Af[l.Af.length-1],p))){l.Af[l.Af.length-1]=q;l=t;break a}l.Af.push(p);
l=t}a.B+=l;e+=l;d+=h.B;if(e===b.getLength())break}b.getLength()};
aY=function(a){g.I.call(this);this.C=a;this.logger=new g.YX("onesie");this.Wc=new Map;this.j=!1;this.mf=this.manifest=null;this.B=!1};
x3a=function(a,b,c){a.Wc.get(b).Xf=c};
cY=function(a,b){a.Wc.has(b)&&(bY?a.Wc.get(b).sj.clear():a.Wc.get(b).Af=new JN,y3a(a,b))};
z3a=function(a){for(var b=g.u(a.Wc),c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;d.OC||cY(a,c)}};
A3a=function(a,b){b=a.Wc.get(b);if(!b)return 0;a=0;if(0<b.eb.length){b=g.u(b.eb);for(var c=b.next();!c.done;c=b.next()){var d=void 0;a+=(null==(d=c.value.range)?void 0:d.length)||0}return a}if(0<b.QE.length)for(c=g.u(b.QE),d=c.next();!d.done;d=c.next())a+=d.value.Fr||0;return a+b.gY};
B3a=function(a,b){if(bY){var c=0;a=a.Wc.get(b);if(null==a||!a.sj)return 0;a=g.u(a.sj.values());for(b=a.next();!b.done;b=a.next())c+=b.value.data.getLength();return c}return(null==(c=a.Wc.get(b))?void 0:c.Af.getLength())||0};
dY=function(a,b){a=a.Wc.get(b);if(bY){if(null==a||!a.OC)return!1;b=0<a.sj.size;return 0<a.Hw.length||b}return!(null==a||!a.OC)&&!(null==a||!a.Af.getLength())};
C3a=function(a,b){var c=a.Wc.get(b),d=A3a(a,b),e=!d&&!!c.bytesReceived;if(bY){var f;if(null==(f=a.manifest)?0:f.dc){a=g.u(c.sj.values());for(b=a.next();!b.done;b=a.next())if(!b.value.Yz)return!1;return e}}else if(f=a.hw(b),e&&a.j&&void 0!==f)return f;return(e||c.bytesReceived===d)&&c.Oy+B3a(a,b)===c.bytesReceived};
D3a=function(a,b,c){a.Wc.set(b,{Af:new JN,Oy:0,bytesReceived:0,gY:0,pR:!1,Jg:!1,hw:!1,yh:c,RR:[],eb:[],QE:[],OC:!1,sj:new Map,rG:new Map,Hw:[]});a.logger.debug(function(){return"[initStream] formatId: "+b})};
E3a=function(a,b,c,d){c.eb.push.apply(c.eb,g.qa(d));if(bY){c.rG.has(b)||c.rG.set(b,[]);var e;(e=c.rG.get(b)).push.apply(e,g.qa(d))}else if(c.Zf)for(a=g.u(d),b=a.next();!b.done;b=a.next())c.Zf.eb.push(b.value);else{c.Zf=new ZX(a.mf,[].concat(g.qa(c.eb)));var f;(null==(f=a.mf)?0:f.Jd)&&g.O(a,c.Zf)}};
F3a=function(a,b,c){var d,e=null==(d=a.manifest)?void 0:d.N.get(b);if(!e)return[];if(c.Nn){var f;return(null==(f=e.Pv(0,c.clipId))?void 0:f.eb)||[]}if(e.wm()){var h=c.startMs;d=c.durationMs;f=1E3;var l;if((null==(l=a.mf)?0:l.C)&&c.timeRange){var m;h=null!=(m=c.timeRange.Ng)?m:-1;var n;d=null!=(n=c.timeRange.oz)?n:-1;var p;f=null!=(p=c.timeRange.Or)?p:-1}if(0>c.qB||0>c.Gr||0>d||0>h||0>c.Fr||0>f)return cY(a,b),[];a=oQ(c.qB,c.Fr);b=c.RJ||0;return[new qQ(3,e,a,"makeSliceInfosMediaBytes",c.Gr-1,h/f,d/
f,b,a.length-b,void 0,c.Dj,c.clipId)]}if(0>c.Gr)return cY(a,b),[];var q;return(null==(q=a.manifest)?0:q.dc)?(b=e.Ej,l=b*e.info.sb,a=(null==(h=a.mf)?0:h.hd)?c.RJ:void 0,[new qQ(3,e,void 0,"makeSliceInfosMediaBytes",c.Gr,void 0,b,a,l,!0,c.Dj,c.clipId)]):[]};
G3a=function(a,b,c){a.manifest=b;a.mf=c;b=g.u(a.Wc);for(c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;for(var e=g.u(d.RR),f=e.next();!f.done;f=e.next()){f=f.value;var h=F3a(a,c,f);E3a(a,f.Ap,d,h)}}};
H3a=function(a,b,c,d){a.logger.debug(function(){return"[addStreamData] formatId: "+c+",headerId: "+b+" bytes: "+d.getLength()});
(a=a.Wc.get(c))&&!a.Jg&&(bY?(a.sj.has(b)||a.sj.set(b,{data:new JN,xH:0,Yz:!1}),KN(a.sj.get(b).data,d)):KN(a.Af,d),a.bytesReceived+=d.getLength(),a.pR=!0)};
y3a=function(a,b){a.logger.debug(function(){return"[closeStream] formatId: "+b});
var c=a.Wc.get(b);c&&!c.Jg&&(c.Jg=!0,c.Xf&&c.Xf(),I3a(a)&&a.C.wZ())};
I3a=function(a){a=g.u(a.Wc.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.Jg)return!1;return!0};
eY=function(a,b){var c,d;null==(c=window.h5vcc)||null==(d=c.settings)||d.set(a,b)};
J3a=function(){var a=window.H5vccPlatformService,b="";if(a&&a.has("dev.cobalt.coat.clientloginfo")&&(a=a.open("dev.cobalt.coat.clientloginfo",function(){}))){var c=a.send(new ArrayBuffer(0));
c&&(b=String.fromCharCode.apply(String,g.qa(new Uint8Array(c))));a.close()}return b};
P3a=function(a){var b=a.experiments,c=b.jb.bind(b);K3a=c("html5_use_async_stopVideo");L3a=c("html5_pause_for_async_stopVideo");M3a=c("html5_not_reset_media_source");ADa=c("html5_rebase_video_to_ad_timeline");aL=c("html5_not_reset_media_source");N3a=c("html5_not_reset_media_source");lDa=c("html5_retain_source_buffer_appends_for_debugging");c("html5_mediastream_applies_timestamp_offset")&&(fY=!0);var d=g.YI(b,"html5_cobalt_override_quic");d&&eY("QUIC",+(0<d));c("html5_cobalt_enable_min_processor_cnt_to_offload_algo")&&
eY("MediaSource.MinimumProcessorCountToOffloadAlgorithm",g.YI(b,"html5_cobalt_min_processor_cnt_to_offload_algo"));(d=c("html5_cobalt_async_redn"))&&eY("MediaSource.EnableAsynchronousReduction",+d);if(d=g.YI(b,"html5_cobalt_max_size_for_immed_job"))eY("MediaSource.MaxSizeForImmediateJob",d),eY("MediaSource.MinSizeForImmediateJob",d);(d=c("html5_cobalt_enable_fetch_buffer_pool"))&&eY("XHR.EnableFetchBufferPool",+d);(d=g.YI(b,"html5_cobalt_default_buffer_size_in_bytes"))&&eY("XHR.DefaultFetchBufferSize",
d);(d=c("html5_cobalt_enable_try_lock_for_progress_check"))&&eY("XHR.EnableTryLockForProgressCheck",+d);(d=g.YI(b,"html5_max_source_buffer_append_size_in_bytes"))&&eY("MediaSource.MaxSourceBufferAppendSizeInBytes",d);(d=g.YI(b,"html5_cobalt_audio_write_ahead_ms"))&&eY("Media.AudioWriteDurationLocal",d);(d=c("html5_cobalt_enable_avoid_copying_array_buffer"))&&eY("MediaSource.EnableAvoidCopyingArrayBuffer",+d);Error.stackTraceLimit=50;var e=g.YI(b,"html5_idle_rate_limit_ms");e&&Object.defineProperty(window,
"requestIdleCallback",{value:function(f){return window.setTimeout(f,e)}});
zRa(a.G);bY=c("html5_use_ump_request_slicer");s2a=c("html5_record_now");c("html5_disable_streaming_xhr")&&(oR=!1);c("html5_pr_start_secs")&&(UUa=!0);O3a=c("html5_debug_cobalt_xhr_ready_state");g.YI(a.experiments,"html5_byterate_soft_cap_mweb")&&(jP=!0)};
gY=function(a,b,c,d,e){e=void 0===e?[]:e;g.I.call(this);this.W=a;this.qc=b;this.C=c;this.segments=e;this.j=void 0;this.B=new Map;e.length&&(this.j=e[0])};
Q3a=function(a){if(!(2>a.segments.length)){var b=a.segments.shift();if(b){var c=b.j,d=[];if(c.size){c=g.u(c.values());for(var e=c.next();!e.done;e=c.next()){e=g.u(e.value);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var h=g.u(f.segments),l=h.next();!l.done;l=h.next())(l=l.value.videoData.clientPlaybackNonce)&&d.push(l);f.removeAll()}}}(c=b.videoData.clientPlaybackNonce)&&d.push(c);d=g.u(d);for(c=d.next();!c.done;c=d.next())a.B.delete(c.value);b.dispose()}}};
hY=function(a,b,c,d){if(!a.j||b>c)return!1;b=new gY(a.W,b,c,a.j,d);d=g.u(d);for(c=d.next();!c.done;c=d.next()){c=c.value;var e=c.videoData.clientPlaybackNonce;e&&e!==a.j.videoData.clientPlaybackNonce&&a.B.set(e,[c])}a=a.j;a.j.has(b.uf())?a.j.get(b.uf()).push(b):a.j.set(b.uf(),[b]);return!0};
R3a=function(a,b,c){a.B.set(b,c)};
iY=function(a,b,c,d,e,f){return new S3a(c,c+(d||0),!d,b,a,e,f)};
S3a=function(a,b,c,d,e,f,h){g.I.call(this);this.qc=a;this.B=b;this.C=c;this.type=d;this.D=e;this.videoData=f;this.zJ=h;this.j=new Map;pUa(f)};
T3a=function(a){if(a.j.size)for(var b=g.u(a.j.values()),c=b.next();!c.done;c=b.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())d.value.dispose()}a.j.clear()};
U3a=function(a){this.end=this.start=a};
g.jY=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.W=b;this.oa=c;this.Na=new Map;this.Za=new Map;this.Ra=new Map;this.B=new Map;this.C=[];this.Z=[];this.G=new Map;this.Dc=new Map;this.Y=new Map;this.pc=NaN;this.Gb=this.rb=this.Xb=null;this.Pb=new g.lv(function(){V3a(d,d.pc,d.Xb||void 0)});
this.events=new g.vK(this);this.Jb=15E3;this.N=new g.lv(function(){d.Ga=!0;var e=d.oa,f=d.Jb;e.ma("sdai",{aftimeout:f});e.ue(new oK("ad.fetchtimeout",{timeout:f}));W3a(d);d.bE(!1)},this.Jb);
this.Ga=!1;this.D=new Map;this.Hb=[];this.qa=null;this.Re=new Set;this.La=[];this.Sc=[];this.Ud=[];this.wd=[];this.j=void 0;this.fb=0;this.bb=!0;this.Da=!1;this.Va=[];this.ke=new Set;this.Ie=new Set;this.Ae=new Set;this.Ba=0;this.zb=new Set;this.hd=0;this.qn=this.Jd=!1;this.K=this.ra="";this.pd={Cnb:function(){return d.B},
Mnb:function(){return d.C},
Dnb:function(){return d.G},
Z6:function(e){d.onCueRangeEnter(d.B.get(e))},
wnb:function(e){d.onCueRangeExit(d.B.get(e))},
Gpb:function(e,f){d.B.set(e,f)},
Ipb:function(e){d.K=e}};
this.oa.getPlayerType();X3a(this.oa,this);this.Wa=this.W.uc();g.O(this,this.Pb);g.O(this,this.events);g.O(this,this.N);this.events.T(this.api,g.EJ("serverstitchedcuerange"),this.onCueRangeEnter);this.events.T(this.api,g.FJ("serverstitchedcuerange"),this.onCueRangeExit)};
a4a=function(a,b,c,d,e,f,h,l){var m=Y3a(a,f,f+e);a.Ga&&a.oa.ma("sdai",{adaftto:1});a.qn&&a.oa.ma("sdai",{adfbk:1,enter:f,len:e,aid:l});var n=a.oa;h=void 0===h?f+e:h;f===h&&!e&&a.W.L("html5_allow_zero_duration_ads_on_timeline")&&a.oa.ma("sdai",{attl0d:1});f>h&&kY(a,{reason:"enterTime_greater_than_return",qc:f,Yd:h});var p=1E3*n.Od();f<p&&kY(a,{reason:"enterTime_less_than_minSeekableTime",enterMs:f,minSkMs:p},a.W.L("html5_report_ssdai_timeline_error_as_fatal"));n=1E3*n.getDuration();h>n&&kY(a,{reason:"parent_return_greater_than_content_duration",
Yd:h,ipb:n});n=null;p=g.Tb(a.Z,{Yd:f},function(q,r){return q.Yd-r.Yd});
0<=p&&(n=a.Z[p],n.Yd>f&&Z3a(a,b.video_id||"",f,h,n));if(m&&n)for(p=0;p<a.La.length;p++){if(a.La[p].identifier===m.identifier){a.La.splice(p,1);break}}else if(m)return a.oa.ma("sdai",{rejectAttl:1}),l&&!Ps(a.wd,function(q){return q===l})&&(a.oa.ma("sdai",{rejectAdBreakAttl:1}),a.wd.push(l)),lY(a),"";
m="ss_childplayback_"+$3a++;a.W.L("html5_enable_ssap_entity_id")?(b=new g.LS(a.W,b),p=b.clientPlaybackNonce):(b.cpn||(b.cpn=g.qE(16)),p=b.cpn,b=new g.LS(a.W,b));b.bd=m;c={bd:m,playerType:d,durationMs:e,qc:f,Yd:h,cpn:p,videoData:b,errorCount:0,ssdaiAdsConfig:c};g.Zb(a.Z,c,function(q,r){return q.qc===r.qc?q.durationMs-r.durationMs:q.qc-r.qc});
a.G.set(p,c);a.Dc.set(m,c);a.oa.ma("sdai",{attlDone:h-f,acpn:p});l?c.Tl=l:n?c.Tl=n.Tl:c.Tl=c.cpn;if(f=c.Tl)(d=a.Y.get(f))?(d.push(c),g.Wb(d,function(q,r){return q.qc-r.qc})):a.Y.set(f,[c]);
a.N.isActive()&&(a.Ga=!1,a.N.stop(),W3a(a),a.bE(!0));return m};
mY=function(a,b){return{ssvc:a,cpn:(null==b?void 0:b.cpn)||"",vid:(null==b?void 0:b.videoData.videoId)||""}};
b4a=function(a,b,c){return new g.DJ(a,b,{id:c,namespace:"serverstitchedcuerange",priority:9})};
nY=function(a,b,c){var d=a.Da;var e={cpn:a.oa.getVideoData().clientPlaybackNonce,durationMs:0,qc:0,playerType:1,Yd:0,videoData:a.oa.getVideoData(),errorCount:0};var f=a.ra;a.ra="";var h=b.Ih-c.Ih;.5<Math.abs(h)&&a.oa.ma("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.IB();if(b.isAd&&c.isAd){e=!!f;if(b.adCpn&&c.adCpn){var l=a.G.get(b.adCpn);var m=a.G.get(c.adCpn)}e?a.oa.ma("sdai",{igtransskip:1,enter:b.adCpn,exit:c.adCpn,
seek:d,skip:f}):c4a(a,m,l,c.Ih,b.Ih,d,e)}else if(!b.isAd&&c.isAd){a.K=e.cpn;a.api.publish("serverstitchedvideochange");a.oa.ma("sdai",mY("a2c"));a.Ba=0;if(l=c.me)a.fb=l.end;var n;c.adCpn&&(n=a.G.get(c.adCpn));n&&d4a(a.oa,n,e,c.Ih,b.Ih,d,!!f)}else if(b.isAd&&!c.isAd){var p;b.adCpn&&(p=a.G.get(b.adCpn));p&&(a.fb=0,a.K=p.cpn,a.api.publish("serverstitchedvideochange",p.bd,p.PC),a.oa.ma("sdai",mY("c2a",p)),a.Ba=1,d4a(a.oa,e,p,c.Ih,b.Ih,d,!!f))}};
e4a=function(a,b){return a.qn?!1:yT(a.oa.getVideoData())?(a=oY(a,1E3*b),!!a&&!a.cA):!!oY(a,1E3*b)};
pY=function(a,b,c){c=1E3*(b+(void 0===c?0:c));var d=g.Tb(a.Z,{qc:c},function(e,f){return e.qc-f.qc});
d=0>d?-1*(d+2):d;return 0<=d&&(a=a.Z[d],a.Yd>=c)?{hn:a,GA:b}:{hn:void 0,GA:b}};
oY=function(a,b){var c="";(b=f4a(a,b))&&(c=b.getId());return c?a.G.get(c):void 0};
f4a=function(a,b){if(a.api.L("html5_ssdai_enable_media_end_cue_range")&&a.K){var c=a.B.get(a.K);if(c&&c.start-200<=b&&c.end+200>=b)return c}a=g.u(a.B.values());for(c=a.next();!c.done;c=a.next())if(c=c.value,c.start<=b&&c.end>=b)return c};
V3a=function(a,b,c){var d=a.Gb||a.api.Xc().getPlayerState();qY(a,!0);a.oa.seekTo(b,c);a=a.api.Xc();b=a.getPlayerState();g.oL(d)&&!g.oL(b)?a.playVideo():d.isPaused()&&!b.isPaused()&&a.pauseVideo()};
qY=function(a,b){a.pc=NaN;a.Xb=null;a.Pb.stop();a.rb&&b&&g4a(a.rb);a.Gb=null;a.rb=null};
h4a=function(a){var b=void 0===b?-1:b;var c=void 0===c?Infinity:c;for(var d=[],e=g.u(a.Z),f=e.next();!f.done;f=e.next())f=f.value,(f.qc<b||f.Yd>c)&&d.push(f);a.Z=d;d=g.u(a.B.values());for(e=d.next();!e.done;e=d.next())e=e.value,e.start>=b&&e.end<=c&&(a.oa.removeCueRange(e),a.B.delete(e.getId()),a.oa.ma("sdai",{rmAdCR:1}));d=pY(a,b/1E3);b=d.hn;d=d.GA;if(b&&(d=1E3*d-b.qc,e=b.qc+d,b.durationMs=d,b.Yd=e,d=a.B.get(b.cpn))){e=g.u(a.C);for(f=e.next();!f.done;f=e.next())f=f.value,f.start===d.end?f.start=
b.qc+b.durationMs:f.end===d.start&&(f.end=b.qc);d.start=b.qc;d.end=b.qc+b.durationMs}if(b=pY(a,c/1E3).hn){var h;d="playback_timelinePlaybackId_"+b.bd+"_video_id_"+(null==(h=b.videoData)?void 0:h.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.qc+"_parentReturnTimeMs_"+b.Yd;a.IE("Invalid_clearEndTimeMs_"+c+"_that_falls_during_"+d+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}};
i4a=function(a){a.Na.clear();a.Za.clear();a.Ra.clear();a.B.clear();a.C=[];a.Z=[];a.G.clear();a.Dc.clear();a.Y.clear();a.D.clear();a.Hb=[];a.qa=null;a.Re.clear();a.La=[];a.Sc=[];a.Ud=[];a.wd=[];a.Va=[];a.ke.clear();a.Ie.clear();a.Ae.clear();a.zb.clear();a.Ga=!1;a.j=void 0;a.fb=0;a.bb=!0;a.Da=!1;a.Ba=0;a.hd=0;a.Jd=!1;a.qn=!1;a.ra="";a.N.isActive()&&lY(a)};
k4a=function(a,b,c,d,e,f){if(!a.qn)if(!a.W.L("html5_ssdai_use_media_time")&&g.j4a(a,c))a.Wa&&a.oa.ma("sdai",{gdu:"undec",seg:c,itag:e});else if(b=rY(a,b,c,d,f),!(yT(a.oa.getVideoData())&&(null==b?0:b.cA)))return b};
rY=function(a,b,c,d,e){var f;a.W.L("html5_ssdai_use_media_time")||(f=a.D.get(c));if(!f){if(f=sY(a,b))return f;var h=tY(a,c-1,null!=d?d:2);if(e)return a.oa.ma("sdai",{misscue:e,sq:c,type:d,prevsstate:null==h?void 0:h.Hy,prevrecord:a.D.has(c-1)}),a.W.L("html5_ssdai_use_media_time")?sY(a,b-5):a.D.get(c-1);if(2===(null==h?void 0:h.Hy)&&(a.oa.ma("sdai",{adnf:1,sq:c,type:d,prevrecord:a.D.has(c-1)}),!a.W.L("html5_ssdai_use_media_time")))return a.D.get(c-1)}return f};
sY=function(a,b){b+=a.Ys();return pY(a,b,1).hn};
l4a=function(a){if(a.Va.length)for(var b=g.u(a.Va),c=b.next();!c.done;c=b.next())a.onCueRangeExit(c.value);b=g.u(a.B.values());for(c=b.next();!c.done;c=b.next())a.oa.removeCueRange(c.value);b=g.u(a.C);for(c=b.next();!c.done;c=b.next())a.oa.removeCueRange(c.value);a.B.clear();a.C=[];a.Na.clear();a.Za.clear();a.Ra.clear();a.j||(a.bb=!0)};
c4a=function(a,b,c,d,e,f,h){b&&c?(a.K=c.cpn,a.api.publish("serverstitchedvideochange",c.bd,c.PC),a.oa.ma("sdai",mY("a2a",c)),a.Ba++,d4a(a.oa,b,c,d||0,e||0,!!f,!!h)):a.oa.ma("sdai",{misspbkonadtrans:1,enter:(null==c?void 0:c.cpn)||"",exit:(null==b?void 0:b.cpn)||"",seek:f,skip:h})};
tY=function(a,b,c){if(1===c){if(a.Na.has(b))return a.Na.get(b)}else{if(2===c&&a.Za.has(b))return a.Za.get(b);if(3===c&&a.Ra.has(b))return a.Ra.get(b)}};
n4a=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;m4a(a,c,f)}else if(e.start>=b&&e.start<c&&e.end>c)e.start=c;else if(e.end>b&&e.end<=c&&e.start<b)e.end=b;else if(e.start>=b&&e.end<=c){a.oa.removeCueRange(e);if(a.Va.includes(e))a.onCueRangeExit(e);a.C.splice(d,1);continue}d++}else m4a(a,b,c)};
m4a=function(a,b,c){b=b4a(b,c);c=!0;g.Zb(a.C,b,function(h,l){return h.start-l.start});
for(var d=0;d<a.C.length;){if(0<d){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.oa.removeCueRange(e):c=!1;a.C.splice(d,1);continue}}d++}if(c)for(a.oa.addCueRange(b),b=a.oa.tD("serverstitchedcuerange",36E5),b=g.u(b),c=b.next();!c.done;c=b.next())a.B.delete(c.value.getId())};
uY=function(a,b,c){if(void 0===c||!c){c=g.u(a.Hb);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.Hb.push(new U3a(b))}};
g.j4a=function(a,b){a=g.u(a.Hb);for(var c=a.next();!c.done;c=a.next())if(c=c.value,b>=c.start&&b<=c.end)return!0;return!1};
Z3a=function(a,b,c,d,e){var f;b={reason:"overlapping_playbacks",dpb:b,qc:c,Yd:d,unb:e.bd,vnb:(null==(f=e.videoData)?void 0:f.videoId)||"",rnb:e.durationMs,snb:e.qc,tnb:e.Yd};kY(a,b)};
kY=function(a,b,c){a=a.oa;a.ma("timelineerror",b);b=new oK("dai.timelineerror",b);c?a.cg("dai.timelineerror",1,"RETRYABLE_ERROR",nK(b.details)):a.ue(b)};
o4a=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.u(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.cpn&&c.push(b.cpn);return c};
p4a=function(a,b,c){var d=0;a=a.Y.get(c);if(!a)return-1;a=g.u(a);for(c=a.next();!c.done;c=a.next()){if(c.value.cpn===b)return d;d++}return-1};
q4a=function(a,b){var c=[];a=a.Y.get(b);if(!a)return[];a=g.u(a);for(var d=a.next();!d.done;d=a.next())b=void 0,(d=null==(b=d.value.videoData)?void 0:b.videoId)&&c.push(d);return c};
r4a=function(a,b){var c=0;a=a.Y.get(b);if(!a)return 0;a=g.u(a);for(b=a.next();!b.done;b=a.next())b=b.value,0!==b.durationMs&&b.Yd!==b.qc&&c++;return c};
s4a=function(a,b,c){var d=!1;if(c&&(c=a.Y.get(c))){c=g.u(c);for(var e=c.next();!e.done;e=c.next())e=e.value,0!==e.durationMs&&e.Yd!==e.qc&&(e=e.cpn,b===e&&(d=!0),d&&!a.Ie.has(e)&&(a.oa.ma("sdai",{decoratedAd:e}),a.Ie.add(e)))}};
W3a=function(a){a.Wa&&a.oa.ma("sdai",{adf:"0_"+((new Date).getTime()/1E3-a.hd)+"_isTimeout_"+a.Ga})};
Y3a=function(a,b,c){if(a.La.length)for(var d=g.u(a.La),e=d.next(),f={};!e.done;f={kz:void 0},e=d.next()){f.kz=e.value;e=1E3*f.kz.startSecs;var h=1E3*f.kz.rh+e;if(b>e&&b<h||c>e&&c<h)return Ps(a.Ud,function(l){return function(m){return m.identifier===l.kz.identifier}}(f))||(a.oa.ma("sdai",{adskip:b}),a.Ud.push(f.kz)),f.kz}};
lY=function(a){a.Ga=!1;a.N.isActive()&&W3a(a);a.N.stop();a.bE(!1)};
v4a=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.timeline=b;this.oa=c;this.iz=new Map;this.Oj=new Map;this.C=new Map;this.events=new g.vK(this);this.N=0;this.bf="";this.B=[];this.ek=new Set;this.D=new g.lv(function(){d.api.playVideo(1);d.api.ma("ssap",{nve:""+d.bf});t4a(d,4)},3E4);
this.j="";this.qG=new Set;this.Y=!0;this.K=new Map;this.G=new Set;this.UW=!1;this.Jv="";this.Z=!1;this.pd={Onb:function(){return d.Oj},
Z6:function(e){if(e=d.Oj.get(e))d.onCueRangeEnter(e)}};
this.oa.getPlayerType();u4a(this);this.events.T(this.api,g.EJ("ssap"),this.onCueRangeEnter);this.events.T(this.api,"internalAbandon",this.dF);g.O(this,this.D);this.jS=this.api.U().L("html5_enable_ssap_gapful_switch");this.qa=g.YI(a.U().experiments,"html5_ssap_segment_end_media_threshold_ms")||200};
w4a=function(a,b,c,d){for(var e=a.oa.PD(),f=g.u(d),h=f.next();!h.done;h=f.next()){var l=h.value;l.C||((h=l.videoData.clientPlaybackNonce,l=l.getVideoData(),h&&l&&e.PH(h,l,2),l)?h||(l=void 0,a.api.ma("ssap",{macac:h,maccc:null==(l=a.timeline.j)?void 0:l.videoData.clientPlaybackNonce})):(l=void 0,a.api.ma("ssap",{mvac:h,mvcc:null==(l=a.timeline.j)?void 0:l.videoData.clientPlaybackNonce})))}return hY(a.timeline,b,c,d)};
vY=function(a,b){a=a.timeline.B.get(b);return(null==a?0:a.length)?a[0].uf():0};
xY=function(a,b){if(!a.timeline.j)return{clipId:"",Wk:0};if(b=wY(a,b,!1))return{clipId:b.videoData.clientPlaybackNonce||"",Wk:b.uf()};a.api.ma("ssap",{mci:1});return{clipId:"",Wk:0}};
yY=function(a){var b=a.timeline.j;if(!b)return 0;a=0;if(0===b.j.size)return(b.Ri()-b.uf())/1E3;b=b.j.values();b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,a+=(d.Ri()-d.uf())/1E3}return a};
y4a=function(a,b){b*=1E3;return a.api.L("html5_ssap_get_current_time_refactor")?(a=x4a(a,b))?a.uf():0:(a=wY(a,b))?a.uf():0};
z4a=function(a,b){return(a=wY(a,1E3*b))?(a.Ri()-a.uf())/1E3:0};
x4a=function(a,b){if(a=a.timeline.B.get(a.bf)){a=g.u(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.uf()<=b&&c.Ri()>=b)return c}};
A4a=function(a){var b=a.oa.getVideoData();a.bf&&(a=a.iz.get(a.bf))&&(b=a);return b};
B4a=function(a){a=a.timeline.B.get(a.bf);return(null==a?0:a.length)?2===a[0].getType():!1};
C4a=function(a,b,c){c=void 0===c?!1:c;var d=a.timeline.j;if(d){d=d.j;var e=Array.from(d.keys());g.Wb(e);b=g.Tb(e,b);b=d.get(e[0>b?-1*(b+2):b]);if(a.api.L("html5_ssap_ignore_non_video_only_child_timeline")&&!c&&b){c=g.u(b);for(b=c.next();!b.done;b=c.next())if(b=b.value,b.uf()!==b.Ri())return b;return a.timeline}return b&&0<b.length?b[b.length-1]:void 0}};
wY=function(a,b,c){c=void 0===c?!1:c;var d=C4a(a,b,c);if(d){var e=d.segments;if(e.length){for(var f=g.u(e),h=f.next();!h.done;h=f.next())if(h=h.value,h.uf()<=b&&h.Ri()>b)return h;if(a.api.L("html5_ssap_ignore_non_video_only_child_timeline")&&c&&d.uf()===d.Ri())return e[0]}}else a.api.ma("ssap",{ctnf:1})};
t4a=function(a,b){var c;if(a.j)for(c=a.B.shift();c&&c!==a.j;)c=a.B.shift();else c=a.B.shift();if(c)return a.ek.has(c)?D4a(a,c):3===b&&(a.D.stop(),a.api.playVideo(1)),a.C.set(a.bf,b),a.api.ma("ssap",{onvftn:1}),E4a(a,c),!1;a.api.ma("ssap",{onvftv:1});a.D.stop();return!0};
D4a=function(a,b){b=a.timeline.B.get(b);if(null==b?0:b.length)a.api.pauseVideo(),a.D.start(b[0].zJ)};
E4a=function(a,b){var c=a.oa.getVideoData(),d=c.clientPlaybackNonce,e=a.bf,f=!1;""===e&&(e=d,f=!0);if(e===b)a.api.U().L("html5_ssap_initial_seeking_change")&&f&&c&&F4a(a,c,f);else{var h=a.C.get(e);f||3===h||a.api.IB();a.bf=b;b=a.timeline.B.get(a.bf);if(null==b?0:b.length){var l=b[0];b=l.getType();c=e===d?c:a.iz.get(e);h?a.C.delete(e):h=f?1:2;a:{var m=a.bf;if(!a.Oj.has(m))for(var n=g.u(a.Oj),p=n.next();!p.done;p=n.next()){var q=g.u(p.value);p=q.next().value;q=q.next().value;if(q.getId().includes(m)){m=
p;break a}}}p=m;n=a.api.U().L("html5_ssap_insert_su_before_nonvideo")&&p!==a.bf;q=a.oa.PD();if(q.Vg!==p){var r=q.lc(q.Vg);m=q.lc(p);q.Vg=p;m!==r&&(r.qoe&&(p=r.qoe,p.provider.W.uc()&&p.ma("ssap",{qoesus:"1",vid:p.provider.videoData.videoId}),n&&(n=g.TM(p.provider),G4a(p,n,"SU")),isNaN(p.K)||g.zB(p.K)),m.resume())}n=a.oa.getCurrentTime();m=Math.max(0,n-vY(a,e)/1E3);n=Math.max(0,n-vY(a,a.bf)/1E3);p=3===h;l=l.getVideoData();q=a.oa.PD();r=e;var t=a.bf,v=a.oa.getPlayerState();if(r!==t){var w=q.lc(r),A=
q.lc(t),C,F=r===(null==(C=w.getVideoData())?void 0:C.clientPlaybackNonce),G;C=t===(null==(G=A.getVideoData())?void 0:G.clientPlaybackNonce);var L;G=F?(null==(L=w.getVideoData())?void 0:L.videoId)||"":"nvd";var M;L=C?(null==(M=A.getVideoData())?void 0:M.videoId)||"":"nvd";F&&null!=(M=w.qoe)&&(zY(M,4,p?4:0,t,L,m),M.reportStats());C&&(AY(A),null!=(M=A.qoe)&&(zY(M,4,p?5:1,r,G,n),M.reportStats()),H4a(A,new g.lG(v,A.Ee)),I4a(A));J4a(q,r)}var R;MXa(e,a.bf,d,(0,g.$C)(),l,null!=(R=a.K.get(e))?R:(0,g.$C)(),
c);a.K.delete(e);f?c=void 0:c||a.api.ma("ssap",{pvdm:e+";"+a.bf,pvdmc:a.bf===d?"1":"0"});a.api.ma("ssap",{tpac:e+";"+a.bf,tpcc:d,tpv:(null==l?0:l.qe())?"1":"0"},!1,1);a.api.publish("videodatachange","newdata",l,b,c,h);a.ek.delete(e);a.j="";l&&1===b?F4a(a,l):a.oa.ma("ssap",{nis:a.bf});2===b?a.N++:a.N=0}}};
F4a=function(a,b,c){c=void 0===c?!1:c;if(b.startSeconds&&a.Y){var d=b.startSeconds;b=a.timeline.B.get(b.clientPlaybackNonce);if(null==b?0:b.length)d+=b[0].uf()/1E3,a.oa.seekTo(d,{qS:!0}),a.Y=!1,a.oa.ma("ssap",{is:a.bf,co:c?"1":"0",tse:d.toFixed()})}};
K4a=function(a,b,c){wY(a,b)||a.oa.ma("ssap",{ilgsk:b.toFixed(),mep:c?"1":"0",tl:BY(a)})};
BY=function(a){var b=a.bf;b||(b=a.oa.getVideoData().clientPlaybackNonce);var c,d;a=Array.from(null!=(d=null==(c=a.timeline.j)?void 0:c.j.values())?d:[]);c=[];if(null==a?0:a.length)for(d=g.u(a),a=d.next();!a.done;a=d.next())if(a=a.value,a.length&&a[0]&&(a=a[0].segments,a.length)){a=g.u(a);for(var e=a.next();!e.done;e=a.next()){var f=e.value;e="st."+f.uf()+";";e+="et."+f.Ri()+";";var h=f.videoData.clientPlaybackNonce;h&&(e+="cpn."+h+";",e+="a."+(b===h?1:0)+";");if(f=f.getVideoData())h=void 0,e+="vid."+
(null!=(h=f.videoId)?h:"nvd");c.push(e)}}return c.length?c.join(","):"empty."+b};
u4a=function(a){a.oa.MF(Array.from(a.Oj.values()));a.Oj.clear()};
M4a=function(a,b,c){g.I.call(this);var d=this;this.api=a;this.W=b;this.j=c;this.K=new Map;this.B=[];this.C=this.N=null;this.qa=NaN;this.G=this.D=this.Y=null;this.Z=new g.lv(function(){L4a(d,d.qa,d.Y||void 0)});
this.ra=[];this.Ba=new g.lv(function(){var e=d.ra.pop();if(e){var f=e.bd,h=e.playerVars;e=e.playerType;h&&(h.prefer_gapless=!0,d.api.preloadVideoByPlayerVars(h,e,NaN,"",f),d.ra.length&&g.mv(d.Ba,4500))}});
this.events=new g.vK(this);c.getPlayerType();g.O(this,this.Z);g.O(this,this.Ba);g.O(this,this.events);this.events.T(this.api,g.EJ("childplayback"),this.onCueRangeEnter);this.events.T(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.T(this.api,"presentingplayerstatechange",this.hk)};
Q4a=function(a,b,c,d,e,f){var h=b.cpn,l=b.docid||b.video_id||b.videoId||b.id,m=a.j;f=void 0===f?e+d:f;if(e>f)return CY(a,"enterAfterReturn enterTimeMs="+e+" is greater than parentReturnTimeMs="+f.toFixed(3),h,l),"";var n=1E3*m.Od();if(e<n)return CY(a,"enterBeforeMinSeekable enterTimeMs="+e+" is less than parentMinSeekableTimeMs="+n,h,l),"";n=1E3*m.getDuration();if(f>n)return m="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+n+". And timestampOffset in seconds is "+
m.Lc(),CY(a,m,h,l),"";n=null;for(var p=g.u(a.B),q=p.next();!q.done;q=p.next()){q=q.value;if(e>=q.qc&&e<q.Yd)return CY(a,"overlappingEnter",h,l),"";if(f<=q.Yd&&f>q.qc)return CY(a,"overlappingReturn",h,l),"";if(f===q.qc)return CY(a,"outOfOrder",h,l),"";e===q.Yd&&(n=q)}h="cs_childplayback_"+N4a++;l={me:DY(d,!0),Lm:Infinity,target:null};var r={bd:h,playerVars:b,playerType:c,durationMs:d,qc:e,Yd:f,Ks:l};a.B=a.B.concat(r).sort(function(w,A){return w.qc-A.qc});
n?O4a(a,n,{me:DY(n.durationMs,!0),Lm:n.Ks.Lm,target:r}):(b={me:DY(e,!1),Lm:e,target:r},a.K.set(b.me,b),m.addCueRange(b.me));b=!0;if(a.j===a.api.Xc()&&(m=1E3*m.getCurrentTime(),m>=r.qc&&m<r.Yd)){var t=a.api.Xc().getPlayerState(),v=m-r.qc;Sf(function(){P4a(a,r,v/1E3,{},t)});
b=!1}b&&(a.ra.unshift(r),g.mv(a.Ba,0));return h};
DY=function(a,b){return new g.DJ(Math.max(0,a-5E3),b?0x8000000000000:a-1,{namespace:"childplayback",priority:9})};
R4a=function(a,b,c,d){a.C=d;a.api.eI(a.j,c,b)};
S4a=function(a,b,c,d){a.C=d;d=b.bd;var e=b.playerVars,f=b.playerType;a.N=b;e&&(a.W.L("html5_enable_ssap_entity_id")&&(e.cached_load=!0),a.api.enqueueVideoByPlayerVars(e,f,c,d))};
O4a=function(a,b,c){var d=b.Ks;b.Ks=c;EY(a,b)&&(c=a.api.Xc(),d.me===a.C&&FY(a),c.removeCueRange(d.me),c.addCueRange(b.Ks.me))};
FY=function(a){a.N=null;a.C=null;a.api.Ct()||a.api.clearQueue()};
T4a=function(a,b){EY(a,b)||CY(a,"childPlaybackIsNotPresenting");return b.Yd===b.qc+b.durationMs?(a=a.api.Xc(),b.qc+1E3*a.getCurrentTime()):b.Yd};
U4a=function(a,b){var c=0;a=g.u(a.B);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=d.qc/1E3+c,f=e+d.durationMs/1E3;if(e>b)break;if(f>b)return{hn:d,GA:b-e};c=f-d.Yd/1E3}return{hn:null,GA:b-c}};
L4a=function(a,b,c){c=void 0===c?{}:c;var d=a.G||a.api.Xc().getPlayerState();GY(a,!0);b=isFinite(b)?b:a.j.Lq();var e=U4a(a,b);b=e.hn;e=e.GA;var f=b&&!EY(a,b)||!b&&a.j!==a.api.Xc(),h=1E3*e;h=a.C&&a.C.start<=h&&h<=a.C.end;!f&&h||FY(a);b?P4a(a,b,e,c,d):V4a(a,e,c,d)};
V4a=function(a,b,c,d){var e=a.j,f=a.api.Xc();e!==f&&a.api.ox();e.seekTo(b,Object.assign({},{yd:"application_timelinemanager"},c));W4a(a,d)};
P4a=function(a,b,c,d,e){var f=EY(a,b);if(!f){b.playerVars.prefer_gapless=!0;a.W.L("html5_enable_ssap_entity_id")&&(b.playerVars.cached_load=!0);var h=new g.LS(a.W,b.playerVars);h.bd=b.bd;a.api.Kt(h,b.playerType)}h=a.api.Xc();f||h.addCueRange(b.Ks.me);h.seekTo(c,Object.assign({},{yd:"application_timelinemanager"},d));W4a(a,e)};
W4a=function(a,b){a=a.api.Xc();var c=a.getPlayerState();g.oL(b)&&!g.oL(c)?a.playVideo():b.isPaused()&&!c.isPaused()&&a.pauseVideo()};
GY=function(a,b){a.qa=NaN;a.Y=null;a.Z.stop();a.D&&b&&g4a(a.D);a.G=null;a.D=null};
EY=function(a,b){a=a.api.Xc();return!!a&&a.getVideoData().bd===b.bd};
X4a=function(a){var b=a.B.find(function(e){return EY(a,e)});
if(b){var c=a.api.Xc();FY(a);var d=new g.iL(8);b=T4a(a,b)/1E3;V4a(a,b,{},d);c.ma("forceParentTransition",{childPlayback:1});a.j.ma("forceParentTransition",{parentPlayback:1})}};
Z4a=function(a,b,c){b=void 0===b?-1:b;c=void 0===c?Infinity:c;for(var d=b,e=c,f=g.u(a.K),h=f.next();!h.done;h=f.next()){var l=g.u(h.value);h=l.next().value;l=l.next().value;l.Lm>=d&&l.target&&l.target.Yd<=e&&(a.j.removeCueRange(h),a.K.delete(h))}d=b;e=c;f=[];h=g.u(a.B);for(l=h.next();!l.done;l=h.next())if(l=l.value,l.qc>=d&&l.Yd<=e){var m=a;m.N===l&&FY(m);EY(m,l)&&m.api.ox()}else f.push(l);a.B=f;d=U4a(a,b/1E3);b=d.hn;d=d.GA;b&&(d*=1E3,Y4a(a,b,d,b.Yd===b.qc+b.durationMs?b.qc+d:b.Yd));(b=U4a(a,c/1E3).hn)&&
CY(a,"Invalid clearEndTimeMs="+c+" that falls during playback={timelinePlaybackId="+(b.bd+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.qc+" parentReturnTimeMs="+b.Yd+"}.Child playbacks can only have duration updated not their start."))};
Y4a=function(a,b,c,d){b.durationMs=c;b.Yd=d;d={me:DY(c,!0),Lm:c,target:null};O4a(a,b,d);EY(a,b)&&1E3*a.api.Xc().getCurrentTime()>c&&(b=T4a(a,b)/1E3,c=a.api.Xc().getPlayerState(),V4a(a,b,{},c))};
CY=function(a,b,c,d){a.j.ma("timelineerror",{e:b,cpn:c?c:void 0,videoId:d?d:void 0})};
a5a=function(a){a&&"web"!==a&&$4a.includes(a)};
JY=function(a,b){g.I.call(this);var c=this;this.data=[];this.C=a||NaN;this.B=b||null;this.j=new g.lv(function(){HY(c);IY(c)});
g.O(this,this.j)};
b5a=function(a){HY(a);return a.data.map(function(b){return b.value})};
HY=function(a){var b=(0,g.$C)();a.data.forEach(function(c){c.expire<b&&KY(a,c,!0)});
a.data=g.Ht(a.data,function(c){return!(c.expire<b)})};
KY=function(a,b,c){c&&a.B&&a.B(b.value)};
IY=function(a){a.j.stop();var b=Infinity;for(var c=g.u(a.data),d=c.next();!d.done;d=c.next())d=d.value,d.expire<b&&(b=d.expire);b&&isFinite(b)&&(b=Math.max(b-Date.now(),100),a.j.start(b))};
LY=function(){g.I.call(this);this.j=new JY(5,null);g.O(this,this.j);this.B=new JY(15,null);g.O(this,this.B)};
c5a=function(a,b){return b?!!a.j.get(b):!1};
d5a=function(a){g.I.call(this);var b=this;this.j=null;for(var c=[],d=0;100>=d;d++)c.push(d/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.B=window.IntersectionObserver?new IntersectionObserver(function(e){e=e[e.length-1];"undefined"===typeof e.isVisible?b.j=null:b.j=e.isVisible?e.intersectionRatio:0},c):null)&&this.B.observe(a)};
e5a=function(a,b){a.dataset.version=b};
h5a=function(a){g.W.call(this,{I:"div",Ka:["html5-video-player"],X:{tabindex:"-1",id:a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId:a.config.attrs.id},V:[{I:"div",S:g.MY.VIDEO_CONTAINER,X:{"data-layer":"0"}}]});var b=this;this.app=a;this.ez=this.Fa(g.MY.VIDEO_CONTAINER);this.ZA=new g.ws(0,0,0,0);this.zc=null;this.CK=new g.ws(0,0,0,0);this.QO=this.YP=this.XP=NaN;this.ZI=this.zK=this.mR=this.WV=!1;this.EN=NaN;this.DP=!1;this.NE=null;this.zQ=function(){b.element.focus({preventScroll:!0})};
this.fK=function(){b.app.Ua.publish("playerUnderlayVisibilityChange","visible");b.zc.classList.remove(g.MY.VIDEO_CONTAINER_TRANSITIONING);b.zc.removeEventListener(QVa,b.fK);b.zc.removeEventListener("transitioncancel",b.fK)};
var c=this.element.addEventListener,d=this.element.removeEventListener;this.addEventListener=function(f,h,l){c.apply(b.element,[f,h,l])};
this.removeEventListener=function(f,h,l){d.apply(b.element,[f,h,l])};
var e=a.U();e.transparentBackground&&this.qs("ytp-transparent");"0"===e.controlsType&&this.qs("ytp-hide-controls");g.uv(this.element,"ytp-exp-bottom-control-flexbox");g.uv(this.element,"ytp-modern-caption");e.L("enable_new_paid_product_placement")&&!g.aS(e)&&g.uv(this.element,"ytp-exp-ppp-update");e.L("html5_enable_ssap")&&g.uv(this.element,"ytp-ssap");e.L("enable_cairo_refresh_web")&&g.uv(this.element,"ytp-cairo-refresh");e.L("enable_cairo_refresh_signature_moments_web")&&g.uv(this.element,"ytp-cairo-refresh-signature-moments");
e5a(this.element,f5a(a));this.t0=!1;this.wD=new g.Ie(NaN,NaN);g5a(this);this.T(a.Ua,"onMutedAutoplayChange",this.onMutedAutoplayChange)};
g5a=function(a){function b(){a.zc&&NY(a);OY(a)!==a.DP&&a.resize()}
function c(h,l){a.jt(h,l)}
function d(h){h.getVideoData()&&a.updateVideoData(h.getVideoData())}
function e(){a.CK=new g.ws(0,0,0,0);a.ZA=new g.ws(0,0,0,0)}
var f=a.app.Ua;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)})};
j5a=function(a){var b=g.PT(a.app),c=b=b?b.getVideoData():null;if(null==b?0:g.BT(b))c=a.app.Ua.getVideoData();if(c){if(g.oT(c)||g.pT(c)||g.qT(c))return 16/9;if(dUa(c)&&c.C.j)return a=c.C.videoInfos[0].video,i5a(a.width,a.height)}return(a=a.zc)?i5a(a.videoWidth,a.videoHeight):16/9};
k5a=function(a,b,c,d){var e=c,f=i5a(b.width,b.height);a.WV?e=c<f?Infinity:0:isNaN(a.QO)?isNaN(a.YP)||(e=a.YP):e=a.QO;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};
i5a=function(a,b){return 1>Math.abs(l5a*b-a)||1>Math.abs(l5a/a-b)?l5a:a/b};
OY=function(a){if(1===a.app.getAppState())return!1;if(6===a.app.getAppState())return!0;var b=g.PT(a.app);if(!b||b.Hn())return!1;a=a.app.Ua.Qb();b=!g.mG(a,2)||b&&b.getVideoData().Y;var c=g.mG(a,1024);return a&&b&&!c&&!a.isCued()};
NY=function(a){var b="3"===a.app.U().controlsType&&!a.ZI&&OY(a)&&!a.app.BA||!1;a.zc.controls=b;a.zc.tabIndex=b?0:-1;b?a.zc.removeEventListener("focus",a.zQ):a.zc.addEventListener("focus",a.zQ)};
m5a=function(a){var b=a.Th(),c=1,d=!1,e=k5a(a,b,a.getVideoAspectRatio()),f=a.app.U(),h=f.L("enable_desktop_player_underlay"),l=Wpa(),m=g.YI(f.experiments,"player_underlay_min_player_width");m=h&&a.mR&&a.getPlayerSize().width>m;if(OY(a)){var n=j5a(a);var p=isNaN(n)||g.qD||PY&&g.VC||m;pD&&!g.Mc(601)?n=e.aspectRatio:p=p||"3"===f.controlsType;p?m?(p=f.L("place_shrunken_video_on_left_of_player"),n=.02*a.getPlayerSize().width,p=p?n:a.getPlayerSize().width-b.width-n,p=new g.ws(p,0,b.width,b.height)):p=new g.ws(0,
0,b.width,b.height):(c=e.aspectRatio/n,p=new g.ws((b.width-e.width/c)/2,(b.height-e.height)/2,e.width/c,e.height),1===c&&g.VC&&(n=p.width-b.height*n,0<n&&(p.width+=n,p.height+=n)));g.yv(a.element,"ytp-fit-cover-video",1>Math.max(p.width-e.width,p.height-e.height));if(l||a.t0)a.zc.style.display="";a.DP=!0}else{p=-b.height;pD?p*=window.devicePixelRatio:g.bS&&(p-=window.screen.height);p=new g.ws(0,p,b.width,b.height);if(l||a.t0)a.zc.style.display="none";a.DP=!1}xs(a.CK,p)||(a.CK=p,g.OR(f)?(a.zc.style.setProperty("width",
p.width+"px","important"),a.zc.style.setProperty("height",p.height+"px","important")):g.Ks(a.zc,p.getSize()),d=new g.Ge(p.left,p.top),g.Gs(a.zc,Math.round(d.x),Math.round(d.y)),d=!0);b=new g.ws((b.width-e.width)/2,(b.height-e.height)/2,e.width,e.height);xs(a.ZA,b)||(a.ZA=b,d=!0);g.zs(a.zc,"transform",1===c?"":"scaleX("+c+")");h&&m!==a.zK&&(m&&(a.zc.addEventListener(QVa,a.fK),a.zc.addEventListener("transitioncancel",a.fK),a.zc.classList.add(g.MY.VIDEO_CONTAINER_TRANSITIONING)),a.zK=m,a.app.Ua.publish("playerUnderlayVisibilityChange",
a.zK?"transitioning":"hidden"));return d};
n5a=function(){this.csn=g.aF();this.clientPlaybackNonce=null;this.elements=new Set;this.C=new Set;this.j=new Set;this.B=new Set};
o5a=function(a){if(a.csn!==g.aF())if("UNDEFINED_CSN"===a.csn)a.csn=g.aF();else{var b=g.aF(),c=g.$E();if(b&&c){a.csn=b;for(var d=g.u(a.elements),e=d.next();!e.done;e=d.next())(e=e.value.visualElement)&&e.isClientVe()&&b&&c&&(g.AB("combine_ve_grafts")?ZO(XO(),e,c):g.gB(g.mF)(void 0,b,c,e))}if(b)for(a=g.u(a.j),c=a.next();!c.done;c=a.next())(c=c.value.visualElement)&&c.isClientVe()&&g.qF(b,c)}};
p5a=function(a,b){this.xd=a;this.policy=b;this.playbackRate=1};
q5a=function(a,b){var c=Math.min(2.5,CR(a.xd));a=QY(a);return b-c*a};
s5a=function(a,b,c,d,e){e=void 0===e?!1:e;if(a.policy.Rm)return Math.ceil(a.policy.Rm*b);a.policy.vl&&(d=Math.abs(d));d/=a.playbackRate;var f=1/DR(a.xd);c=Math.max(.9*(d-3),CR(a.xd)+2048*f)/f*.8/(b+c);c=Math.min(c,d);0<a.policy.Qg&&e&&(c=Math.max(c,a.policy.Qg));return r5a(a,c,b)};
r5a=function(a,b,c){return Math.ceil(Math.max(Math.max(a.policy.pj,a.policy.Sr*c),Math.min(Math.min(a.policy.La,31*c),Math.ceil(b*c))))||a.policy.pj};
t5a=function(a,b,c){c=s5a(a,b.j.info.sb,c.j.info.sb,0);var d=CR(a.xd)+c/DR(a.xd);return Math.max(d,d+a.policy.XB-c/b.j.info.sb)};
QY=function(a){return DR(a.xd,!a.policy.Mh,a.policy.Cr)};
RY=function(a){return QY(a)/a.playbackRate};
u5a=function(a,b,c){var d=a.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],e=a.policy.playbackStartPolicy.startMinReadaheadPolicy||[];a=Infinity;b=g.u(b&&0<d.length?d:e);for(d=b.next();!d.done;d=b.next())d=d.value,e=d.minReadaheadMs||0,c<(d.minBandwidthBytesPerSec||0)||a>e&&(a=e);return Infinity>a?a/1E3:a};
SY=function(a,b,c,d,e){this.ya=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.Zd;this.D=null;this.C=0};
v5a=function(a,b,c){if(!a.policy.G){a=b.j.index;var d=b.B.Pa;a.In(d)||c&&c.Pa===d?(b.G=!a.In(d),b.qa=!a.In(d)):(b.G=!0,b.qa=!0)}};
x5a=function(a,b,c,d,e){if(!b.j.gg()){if(!(d=0===c||!!b.C.length&&b.C[0]instanceof TY))a:{if(b.C.length&&(d=b.C[0],d instanceof UY&&d.lh&&d.gi)){d=!0;break a}d=!1}d||a.policy.C||VY(b);return c}var f=WY(b,c);if(!isNaN(f))return f;if(a.ya.zP(1E3*c))return c;e.nJ||(b.Jk(),a.ya.WF(!0));return d&&(a=RK(d.Ke(),c),!isNaN(a))?(XY(b,a+w5a),c):XY(b,c)};
A5a=function(a,b,c,d){if(a.policy.G)!d||!a.B&&a.policy.Za||g.fg(function(){YY(a)});
else{if(a.Uf()&&a.j){var e=y5a(a,b,c);if(-1!==e){a.videoTrack.G=!1;a.audioTrack.G=!1;a.B=!0;a.C=0;g.fg(function(){a.ya.ma("seekreason",{reason:"behindMinSq",tgt:e});z5a(a,e)});
return}}c?a.videoTrack.qa=!1:a.audioTrack.qa=!1;var f=a.policy.oy||!a.B;0<=WY(a.videoTrack,a.j)&&0<=WY(a.audioTrack,a.j)&&f?((a.videoTrack.G||a.audioTrack.G)&&a.ya.ma("iterativeSeeking",{status:"done",count:a.seekCount}),a.videoTrack.G=!1,a.audioTrack.G=!1):d&&g.fg(function(){if(a.B||!a.policy.Za)YY(a);else{var h=b.startTime,l=b.duration;if(!a.policy.G){var m=c?a.videoTrack.G:a.audioTrack.G,n=-1!==a.videoTrack.K&&-1!==a.audioTrack.K,p=a.j>=h&&a.j<h+l+.1,q=!a.videoTrack.qa&&!a.audioTrack.qa,r=a.policy.qy&&
WY(a.videoTrack,h)&&WY(a.audioTrack,h);m&&n&&q&&(p||r?((c?a.videoTrack:a.audioTrack).G=!1,a.videoTrack.G||a.audioTrack.G||(a.ya.ma("iterativeSeeking",{status:"done",target:h,originalTime:h+a.ya.Lc(),count:a.seekCount}),a.seekCount=0)):8>a.seekCount?(a.seekCount++,a.ya.ma("iterativeSeeking",{status:"inprogress",count:a.seekCount,target:a.j,actual:h,duration:l,isVideo:c}),a.seek(a.j,{})):(a.ya.ma("iterativeSeeking",{status:"incomplete",count:a.seekCount,target:a.j,actual:h}),a.seekCount=0,a.videoTrack.G=
!1,a.audioTrack.G=!1,ZY(a.ya,h+.1,{cw:!0,yd:"chunkSelectorSynchronizeMedia",wq:!0})))}}})}};
y5a=function(a,b,c){if(!a.Uf())return-1;c=(c?a.videoTrack:a.audioTrack).j.index;var d=c.Bi(a.j);return(c.In(a.manifest.jf)||b.Pa===a.manifest.jf)&&d<a.manifest.jf?a.manifest.Od():-1};
z5a=function(a,b){a.B&&-1!==a.videoTrack.K&&-1!==a.audioTrack.K&&(a.B=!1,a.j=b,ZY(a.ya,b+.1,{cw:!0,yd:"chunkSelectorSynchronize",wq:!0}))};
YY=function(a){var b=-1!==a.videoTrack.K,c=-1!==a.audioTrack.K;if(!b||!c)if(b=!b&&$Y(a.videoTrack),c=!c&&$Y(a.audioTrack),b||c){c=b?a.videoTrack:a.audioTrack;b=b?a.audioTrack:a.videoTrack;c.K=$Y(c).info.Pa;if(a.policy.G){var d;b.K=(null==(d=$Y(b))?void 0:d.info.Pa)||b.K}if(-1!==b.K){var e=Math.max(b.j.index.getStartTime(b.K),c.j.index.getStartTime(c.K));VQ(a.manifest)&&432E3<Math.abs(e-VQ(a.manifest))&&aRa(a.manifest);a.C&&(e=a.C,a.C=0);g.fg(function(){a.policy.G||z5a(a,e)});
a.ya.ma("initManifestlessSync",{st:e,ost:e+a.ya.Lc(),a:a.audioTrack.K,v:a.videoTrack.K});a.D&&(a.D.resolve(e+.1),a.D=null);a.policy.G&&z5a(a,e)}}};
bZ=function(a,b){var c=this;this.Cb=a;this.requestNumber=++B5a;this.j=this.now();this.Y=this.fb=NaN;this.Z=this.j;this.C=this.Pb=this.K=0;this.D=this.j;this.Ra=this.Ga=this.Va=this.Dc=this.pc=this.ra=this.Na=this.B=0;this.N=void 0;this.Wa=0;this.Ba=this.isActive=!1;this.Gb=this.rb=0;this.pd={Mob:function(){return c.gp}};
this.xd=b.xd;this.snapshot=ORa(this.xd);this.policy=this.xd.Na;this.Is=!!b.Is;this.mx=b.mx;b.WN&&(aZ||(aZ=WIa("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.")),this.N=new Uint8Array(2048));var d;this.gp=null!=(d=b.gp)?d:!1;JRa(this.xd)};
C5a=function(a){a.Va=Math.max(a.Va,a.K-a.pc);a.Ga=Math.max(a.Ga,a.Z-a.Dc);a.ra=0};
cZ=function(a,b,c){KRa(a.xd,b);if(a.N){if(a.Wa+20>a.N.length){var d=new Uint8Array(2*a.N.length);d.set(a.N);a.N=d}D5a(a,Math.ceil(b)-Math.ceil(a.Z));D5a(a,Math.max(0,Math.ceil(c/1024)-Math.ceil(a.K/1024)))}d=b-a.Z;var e=c-a.K;a.Pb=e;a.Ra=Math.max(a.Ra,e/(d+.01)*1E3);a.Z=b;a.K=c;a.ra&&c>a.ra&&C5a(a)};
D5a=function(a,b){for(;31<b;)a.N[a.Wa++]=aZ[(b&31)+32],b>>=5;a.N[a.Wa++]=aZ[b]};
E5a=function(a){return a.N?g.$N(a.N.subarray(0,a.Wa)):""};
F5a=function(a,b){a.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})};
dZ=function(a,b){bZ.call(this,a,b);this.zb=this.Jb=!1;this.qa=this.G=Infinity;this.Da=NaN;this.Hb=!1;this.Za=NaN;this.Xb=0;this.sD=b.sD||1;this.ZQ=b.ZQ||this.sD;this.Vk=b.Vk;this.Pa=b.Pa;this.Zg=b.Zg;G5a(this);this.AR(this.j);this.La=(this.Za-this.j)/1E3};
H5a=function(a,b,c){a.Is||(b=Math.max(b,.01),zR(a.xd,b,c,b))};
I5a=function(a,b){return b?a.kJ()?!0:2048<=b:!1};
J5a=function(a){return(a.D-a.j)/1E3};
G5a=function(a){a.Da=a.j+1E3*a.snapshot.delay;a.Hb=!1};
M5a=function(a,b){if(a.Vk&&void 0!==a.Pa&&void 0!==a.Zg){var c=Math,d=c.min,e=a.G;var f=a.Vk;var h=a.j;if(K5a(f,a.Pa))f=b;else{var l=0;f.bj&&(l=.2);f=h+1E3*(f.Fj+l)}a.G=d.call(c,e,f);c=Math;d=c.min;e=a.qa;f=a.Vk;h=a.j;l=L5a(f,a.Pa,a.Zg);2!==l&&(b=l?b:h+1E3*f.Fj,f.bj&&(b+=1E3*f.Fj));a.qa=d.call(c,e,b);a.G<=a.j?G5a(a):(a.Da=a.G,a.Hb=!0)}};
N5a=function(a,b){if(b+1<=a.totalLength){var c=VN(a,b);c=128>c?1:192>c?2:224>c?3:240>c?4:5}else c=0;if(1>c||!(b+c<=a.totalLength))return[-1,b];if(1===c)a=VN(a,b++);else if(2===c)c=VN(a,b++),a=VN(a,b++),a=(c&63)+64*a;else if(3===c){c=VN(a,b++);var d=VN(a,b++);a=VN(a,b++);a=(c&31)+32*(d+256*a)}else if(4===c){c=VN(a,b++);d=VN(a,b++);var e=VN(a,b++);a=VN(a,b++);a=(c&15)+16*(d+256*(e+256*a))}else c=b+1,a.focus(c),RIa(a,c,4)?a=SIa(a).getUint32(c-a.C,!0):(d=VN(a,c+2)+256*VN(a,c+3),a=VN(a,c)+256*(VN(a,c+
1)+256*d)),b+=5;return[a,b]};
eZ=function(a){this.Cb=a;this.j=new JN};
fZ=function(a,b){this.info=a;this.callback=b;this.state=1;this.UA=this.cP=!1;this.Zf=null};
O5a=function(a){return g.Sr(a.info.eb,function(b){return 3===b.type})};
P5a=function(a,b){this.B=(new TextEncoder).encode(a);this.j=(new TextEncoder).encode(b)};
gTa=function(a,b){var c,d,e;return g.H(function(f){if(1==f.j){if(!b)return f.return(b);c=gZ.uu("woe");d=new g.EN(a.B);return g.z(f,d.encrypt(b,a.j),2)}e=f.B;gZ.Ls(c,Math.ceil(b.byteLength/16));return f.return(e)})};
mTa=function(a,b){var c,d,e;return g.H(function(f){if(1==f.j){if(!b)return f.return(b);c=gZ.uu("wod");d=new g.EN(a.B);return g.z(f,d.decrypt(b,a.j),2)}e=f.B;gZ.Ls(c,Math.ceil(b.byteLength/16));return f.return(e)})};
Q5a=function(a,b){var c=this;this.j=a;this.Cb=b;this.loaded=this.status=0;this.error="";a=nQ(this.j.get("range")||"");if(!a)throw Error("bad range");this.range=a;this.B=new JN;this.ZF().then(function(){c.Cb.xr()},function(d){c.error=""+d||"unknown_err";
c.Cb.xr()})};
S5a=function(a,b,c,d){var e=this;d=void 0===d?{}:d;this.policy=b;this.Cb=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&&204!==e.status)e.status=e.status||242,e.C=f.body.getReader(),e.Ma()?e.C.cancel().catch(function(){}):(e.responseHeaders=f.headers,e.Cb.Yw(),R5a(e));
else e.onDone();else e.onError(Error("null_response"))};
this.Z=function(f){var h=(0,g.$C)();e.Ma()||(f.done?(e.C=void 0,e.onDone()):(f=f.value,e.B+=f.length,e.j.append(f),R5a(e),e.Cb.Vt(h,e.B)))};
this.onError=function(f){e.errorMessage=String(f);e.K=!0;e.onDone()};
this.j=new JN;this.D=window.AbortController?new AbortController:void 0;this.start(a)};
R5a=function(a){a.C.read().then(a.Z,a.onError).then(void 0,cra)};
T5a=function(a,b,c){var d=this;c=void 0===c?{}:c;this.Cb=b;this.B=this.status=0;this.Ma=this.j=!1;this.xhr=new XMLHttpRequest;this.xhr.open(c.method||"GET",a);if(c.headers){a=c.headers;b=g.u(Object.keys(a));for(var e=b.next();!e.done;e=b.next())e=e.value,this.xhr.setRequestHeader(e,a[e])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){d.LA(f)};
a=AO(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",AO(function(f){d.Xf(f)}),!1)};
U5a=function(a,b,c,d,e){if(CP(a.base))return new Q5a(a,c);a=a.Oe();return d?PNa()?new s3a(a,b,c,e):new S5a(a,b,c,e):new T5a(a,c,e)};
hZ=function(a,b,c,d,e,f,h,l,m){m=void 0===m?!1:m;g.I.call(this);this.Cb=a;this.policy=b;this.ge=c;this.resource=d;this.timing=e;this.logger=f;this.D=h;this.Zw=l;this.G=m;this.lastError=null;this.j=0;this.C=!1;this.B=new g.lv(this.oca,this.policy.mj,this)};
V5a=function(a){a.Cb.Mn()||(a.resource.Z=(0,g.$C)(),a=iZ(a),a.B=(0,g.$C)(),a.started+=1)};
W5a=function(a,b,c){a.timing.jQ((0,g.$C)(),b,c);if(!a.Cb.Mn()&&(b=a.resource,b.B=0,b.G=0,b.K=0,KPa(iZ(a)),null!=(b=a.Zw)&&(a=a.ge.base,!((0,g.$C)()<b.K+3E5||CP(a))&&(c=BP(a))&&x2a(c)&&b.B===JX(c)))){var d;EOa(a)&&(d=BP(DP(a)));g.sC("yt-player-bandaid-host",{primary:c,secondary:d},864E3);b.K=(0,g.$C)();u2a(b,{primary:c,secondary:d})}};
jZ=function(a){if("net.timeout"===a.lastError)a.timing.QJ((0,g.$C)());else{var b=a.timing;cZ(b,(0,g.$C)(),b.K)}if(!a.Cb.Mn())if("net.nocontent"===a.lastError)++a.resource.K;else{if((b="net.timeout"===a.lastError||"net.connect"===a.lastError||"net.closed"===a.lastError)&&!CP(a.ge.base)){var c=iZ(a);c.timedOut+=1}else c=iZ(a),c.j+=1;if(!a.timing.Ba){c=a.resource;var d=a.ge,e=a.policy,f=a.D;++c.B;b&&++c.G;BP(d.base).startsWith("redirector.")&&(c.j=c.C.clone(),delete c.D,e.EC&&delete f[BP(c.j)])}}a.Cb.Bc(5)};
kZ=function(a,b,c,d){return 400<=b?(a.lastError="net.badstatus",!0):c||void 0!==d&&d?!1:(a.lastError=204===b?"net.nocontent":"net.connect",!0)};
iZ=function(a){return zQ(a.D,BP(a.ge.base))};
X5a=function(a){var b=a.timing.Wr();b.shost=BP(a.ge.base);return b};
Y5a=function(a){return{first:fO(a,1),zY:fO(a,2)}};
$5a=function(a,b){tO(a,1,b.formatId,lZ,3);pO(a,2,b.startTimeMs);pO(a,3,b.durationMs);pO(a,4,b.Jm);pO(a,5,b.Oi);tO(a,9,b.Smb,Z5a,3);tO(a,11,b.lpb,sXa,1);tO(a,12,b.rK,sXa,1)};
a6a=function(a,b){sO(a,1,b.videoId);pO(a,2,b.lmt)};
Z5a=function(a,b){var c;if(b.uV)for(c=0;c<b.uV.length;c++)tO(a,1,b.uV[c],a6a,3)};
lZ=function(a,b){pO(a,1,b.itag);pO(a,2,b.lmt);sO(a,3,b.xtags)};
b6a=function(a){return{itag:fO(a,1),lmt:fO(a,2),xtags:iO(a,3)}};
c6a=function(a,b){tO(a,1,b.formatId,lZ,3);pO(a,2,b.Dj);pO(a,3,b.sequenceNumber);tO(a,4,b.mI,sXa,1);pO(a,5,b.IY)};
e6a=function(a){return{s_:fO(a,1),items:lO(a,2,d6a),Lp:fO(a,3)}};
d6a=function(a){return{ZP:fO(a,1),KJ:fO(a,2),minReadaheadMs:fO(a,3)}};
f6a=function(a){return{token:iO(a,1),videoId:iO(a,2)}};
h6a=function(a){return{bca:iO(a,1),action:fO(a,2),V_:jO(a,3,g6a)}};
g6a=function(a){return{kp:fO(a,1)}};
i6a=function(a,b){var c;if(b.gw)for(c=0;c<b.gw.length;c++)tO(a,1,b.gw[c],lZ,3);if(b.md)for(c=0;c<b.md.length;c++)tO(a,2,b.md[c],$5a,3);sO(a,3,b.clipId)};
j6a=function(a,b){tO(a,1,b.zs,$Wa,3);var c;if(b.gw)for(c=0;c<b.gw.length;c++)tO(a,2,b.gw[c],lZ,3);if(b.md)for(c=0;c<b.md.length;c++)tO(a,3,b.md[c],$5a,3);rO(a,5,b.videoPlaybackUstreamerConfig);if(b.Zn)for(c=0;c<b.Zn.length;c++)tO(a,6,b.Zn[c],c6a,3);if(b.eG)for(c=0;c<b.eG.length;c++)tO(a,16,b.eG[c],lZ,3);if(b.fG)for(c=0;c<b.fG.length;c++)tO(a,17,b.fG[c],lZ,3);tO(a,19,b.jL,kXa,3);tO(a,21,b.Fm,AXa,3);pO(a,22,b.tJ);pO(a,23,b.rJ);if(b.tG)for(c=0;c<b.tG.length;c++)tO(a,1E3,b.tG[c],i6a,3)};
k6a=function(a){return{bitrate:fO(a,6),width:fO(a,7),height:fO(a,8),fps:fO(a,25),averageBitrate:fO(a,31),audioSampleRate:fO(a,45),audioChannels:fO(a,46)}};
l6a=function(a){return{targetAudioReadaheadMs:fO(a,1),targetVideoReadaheadMs:fO(a,2),backoffTimeMs:fO(a,4),playbackCookie:hO(a,7),videoId:iO(a,8)}};
UY=function(a,b,c,d,e,f){f=void 0===f?{}:f;var h=void 0===f.vF?[]:f.vF,l=void 0===f.vG?!1:f.vG,m=void 0===f.tv?0:f.tv,n=void 0===f.poToken?"":f.poToken,p=void 0===f.Zw?void 0:f.Zw,q=void 0===f.GF?"":f.GF,r=void 0===f.lh?0:f.lh,t=void 0===f.gi?new Uint8Array(0):f.gi,v=void 0===f.kL?!1:f.kL;f=void 0===f.Lp?0:f.Lp;fZ.call(this,b,e);var w=this;this.policy=a;this.logger=new g.YX("dash/request");this.Yy=this.zg=0;this.f0=!1;this.Uq=this.zp=null;this.UX=!1;this.gi=this.lh=null;this.uL=this.j1=!1;this.yH=
null;this.Lp=this.kp=0;this.pd={Bc:function(C){w.Bc(C)},
uob:function(){return w.Zf},
Qpb:function(C){w.Zf=C},
Ppb:function(C){w.zg=C},
Opb:function(C){w.Gd.lastError=C},
PO:function(){return w.xhr}};
this.timing=new dZ(this,c);this.vG=l;this.lh=r;this.gi=t;this.ge=g.GPa(this.info,this.policy,d);this.ge.set("rn",this.qp().toString());this.ge.set("rbuf",(1E3*m).toFixed().toString());this.vG&&this.ge.set("smb","1");this.policy.jy&&n&&this.ge.set("pot",n);q&&this.ge.set("bbs",q);this.policy.useUmp&&!CP(this.ge.base)&&(this.zl=new eZ(this),this.ge.set("ump","1"),this.ge.set("srfvp","1"));if(a=this.policy.Eu?this.policy.IC&&!isNaN(this.info.Zg)&&this.info.Zg>this.policy.PG?!1:!0:!1)b=null,this.policy.fB&&
this.policy.Rj?b=[1]:v&&(b=[]),null!=b&&(this.policy.DC&&b.push(2),this.ge.set("defsel",b.join(",")));this.Gd=new hZ(this,this.policy,this.ge,this.info.resource,this.timing,this.logger,d,p);this.vF=h||null;this.UA=m6a(this);V5a(this.Gd);d=void 0;if(this.policy.WE||this.zl||this.policy.Ga)d={method:"POST"},h=(0,g.mZ)([120,0]),p={},this.policy.Nx&&this.gi&&(p.videoPlaybackUstreamerConfig=this.gi),this.policy.Ga&&(v=this.info.D)&&Object.assign(p,v),0<Object.keys(p).length?d.body=g.uO(p,g.CXa):d.body=
h;if(this.lh&&this.gi){this.ge.set("iwts","1");d={method:"POST"};h={Eca:1E3*this.lh};var A;p=null==(A=this.info.D)?void 0:A.Fm;A=g.uO({zs:h,Fm:p||void 0,videoPlaybackUstreamerConfig:this.gi},g.CXa);d.body=A}this.Mn()&&(d=void 0);try{this.xhr=U5a(this.ge,this.policy.Z,this.timing,a,d),this.Gd.B.start(),f&&(this.Nw=new g.lv(this.cZ,f,this),this.Nw.start()),this.policy.AC&&F5a(this.timing,this.Oe()),this.logger.debug(function(){return"Sent, itag="+w.ge.get("itag")+" seg="+w.info.eb[0].Pa+" range="+w.ge.get("range")+
" time="+Math.round(w.info.eb[0].C)+"-"+Math.round(g.Ab(w.info.eb).D)+" rtp="+(w.timing.GI()-Date.now()).toFixed(0)}),g.fg(function(){})}catch(C){n6a(this,C,!0)}};
m6a=function(a){if(!(xQ(a.info)&&a.info.gp()&&a.policy.Sc&&a.vF)||2<=a.info.resource.B||0<fP()||!YNa())return!1;var b=a.ge.get("aitags");if(!b)return!1;b=Te(b).split(",");for(var c=[],d=g.u(a.vF),e=d.next();!e.done;e=d.next())e=e.value,g.Fb(b,e)&&c.push(e);if(!c.length)return!1;a.ge.set("altitags",g.Se(c.join(",")));return!0};
n6a=function(a,b,c){c=void 0===c?!1:c;g.dF(b);a.Gd.lastError="player.exception";a.errorMessage=b.name+"_"+b.message;c?g.fg(function(){jZ(a.Gd)}):jZ(a.Gd)};
o6a=function(a){if(a.policy.vy)return!1;var b=a.xhr.getResponseHeader("content-type"),c=a.xhr.GD();c=!c||c<=a.policy.Mo;return(!a.xhr.EB()||!b||-1!==b.indexOf("text/plain"))&&c};
p6a=function(a,b){var c=YN(b);return zJ(c)?(a.logger.debug(function(){return"Redirecting to "+c}),c):""};
q6a=function(a,b){a.timing.Ba=!0;if(a.policy.Gb){var c;null==(c=a.Nw)||c.stop()}$X(a.Zf,b,!1)};
r6a=function(a,b){a.info=b;if(a.Zf){var c=a.Zf;b=b.eb;(b.length!==c.eb.length||b.length<c.Af.length)&&v3a("dash/request",260511119,""+b.length,""+c.eb.length,""+c.Af.length);c.eb=b;for(var d=b[0].range,e=new JN,f=0;f<c.Af.length;f++)KN(e,c.Af[f].j);for(f=0;f<c.Af.length;f++){c.Af[f].info=b[f];var h=b[f].range;c.Af[f].j=LN(e,h.start-d.start,h.length)}}a.UA=!1};
s6a=function(a){a.kp&&(a.xhr.status=a.kp,a.zg=a.kp)};
nZ=function(a){this.B={};this.logger=new g.YX(a)};
t6a=function(a){return a.itag+";"+(a.lmt||0)+";"+(a.xtags||"")};
oZ=function(a,b){bZ.call(this,a,b);this.Da=!0;this.qa=!1;this.La=this.G=0};
v6a=function(a){return{Q0:lO(a,1,u6a),Wca:iO(a,2)}};
w6a=function(a){return{zJ:fO(a,1)}};
u6a=function(a){return{clipId:iO(a,1),jq:jO(a,2,x6a),iQ:jO(a,3,w6a)}};
x6a=function(a){return{T1:iO(a,1),q_:fO(a,2),i9:fO(a,3),RY:fO(a,4),SY:fO(a,5),r_:fO(a,6)}};
y6a=function(a){nZ.call(this,"sabr");this.Cb=a};
pZ=function(a,b,c,d,e,f,h){g.I.call(this);this.policy=a;this.info=b;this.manifest=c;this.Cb=e;this.logger=new g.YX("sabr");this.zl=new eZ(this);this.zca=new y6a(this);this.Wf=new aY(this);this.state=1;this.W_=!1;this.CR=0;this.clipId="";this.dG=this.il=-1;this.policy.qz?this.He=new oZ(this,f):this.He=new dZ(this,f);e=this.policy;e=FPa(b.resource,z6a(b,e,d),e);b.Bt()&&e.set("probe","1");this.ge=e;this.ge.set("rn",""+this.qp());G3a(this.Wf,c,a);this.Gd=new hZ(this,this.policy,this.ge,b.resource,this.He,
this.logger,d,h,this.policy.enableServerDrivenRequestCancellation);V5a(this.Gd);var l;if(null==(l=this.policy)?0:l.Jd)g.O(this,this.Wf),g.O(this,this.Gd);a={method:"POST"};a.body=b.C;try{this.xhr=U5a(this.ge,this.policy.Z,this.He,oR,a),this.Gd.B.start()}catch(m){g.eF(m)}};
A6a=function(a,b){var c=-1,d=-1,e=-1,f;if(null==(f=a.BR)?0:f.items)for(a=g.u(a.BR.items),f=a.next();!f.done;f=a.next())f=f.value,b<f.ZP||f.ZP<c||(c=f.ZP,d=f.KJ,e=f.minReadaheadMs);return{Z8:c,KJ:d,aQ:e}};
B6a=function(a){this.j=a;this.Y=this.Na=this.N=this.Da=this.D=this.G=this.K=this.Ga=this.Z=this.La=this.ra=this.Ba=this.qa=0;this.ticks={}};
qZ=function(a){a.qa||(a.qa=(0,g.$C)(),vL("mb_s",a.qa,a.j))};
C6a=function(a){a.Ba||(a.Ba=(0,g.$C)(),vL("ovfs_rp",a.Ba,a.j))};
D6a=function(a){a.ra||(a.ra=(0,g.$C)(),vL("oafs_rp",a.ra,a.j))};
E6a=function(a){a.G||(a.G=(0,g.$C)(),vL("vda",a.G,a.j),a.D&&JC(g.HC(),4))};
F6a=function(a){a.D||(a.D=(0,g.$C)(),vL("ada",a.D,a.j),a.G&&JC(g.HC(),4))};
G6a=function(a){a.Da||(a.Da=(0,g.$C)(),vL("vis_a",a.Da,a.j))};
H6a=function(a){a.N||(a.N=(0,g.$C)(),vL("ais_a",a.N,a.j))};
I6a=function(a){a.Na||(a.Na=(0,g.$C)(),vL("vrb_f",a.Na,a.j))};
J6a=function(a){a.Y||(a.Y=(0,g.$C)(),vL("arb_f",a.Y,a.j))};
K6a=function(a,b,c){var d=b instanceof pZ&&!a.C&&!a.B,e=!a.C&&(null==c?void 0:c.info.video);c=!a.B&&(null==c?void 0:c.info.audio);3===b.state?((e||d)&&a.tick("vrr"),(c||d)&&a.tick("arr")):4===b.state?e?(a.C=b.Oe(),JC(g.HC(),4)):c&&(a.B=b.Oe()):b instanceof UY&&b.nw()&&e&&JC(g.HC(),4)};
L6a=function(a){return!!a.B&&!!a.C};
M6a=function(a,b,c,d,e,f){g.wF.call(this);var h=this;this.ya=a;this.manifest=b;this.policy=c;this.qa=d;this.Ga=e;this.ra=this.j=null;this.G=this.K=NaN;this.Z=0;this.Y=NaN;this.N=null;this.Ba=new Map;this.C=this.D=NaN;this.pd={yob:function(){return h.B}};
this.B=f?1:0};
rZ=function(a,b,c){b.startSecs+=isNaN(a.Z)?0:a.Z;a=a.manifest;a.qa.push(b);a.publish("cuepointsadded",c)};
O6a=function(a,b,c){if(0!==a.B&&c&&b.eb[0].yg()){var d=b.eb[0].Pa,e=b.eb[0].C;b=b.Cp();N6a(a,d,e,b,c)}};
N6a=function(a,b,c,d,e){var f;b!==(null==(f=a.j)?void 0:f.Pa)||1===a.B||d||"predictStart"===a.j.Ug.event||a.ma("sdai",{undecevt:1,sq:b,evt:a.j.Ug.event});b>a.G&&(a.G=NaN,a.K=NaN);if(a.j&&a.j.Pa===b){d=a.j;f=d.Ug;var h=e.Rt(f);a.ma("sdai",{onqevt:f.event,sq:b,gab:h});if(h)"predictStart"!==f.event?d.eE?sZ(a,4,"cue"):(a.G=b,a.K=c,a.ma("sdai",{joinad:a.B,sg:a.G,st:a.K.toFixed(3)}),a.Y=Date.now(),sZ(a,2,"join"),e.OI(d.Ug)):(a.policy.K?(a.C=Math.floor(c-f.j/1E3),a.ma("sdai",{onpred:c,est:a.C})):(a.D=b+
Math.max(Math.ceil(-f.j/5E3),1),a.ma("sdai",{onpred:b,est:a.D})),a.Y=Date.now(),sZ(a,3,"predict"),e.OI(d.Ug));else if(1===a.B){var l;(null==(l=a.N)?0:l.TN(c))?(P6a(a.ya,c,c,b),sZ(a,4,"sk2had")):sZ(a,5,"nogab")}else"predictStart"===f.event&&(a.policy.K&&0<a.C?(b=Math.floor(c-f.j/1E3),a.C!==b&&a.ma("sdai",{updateSt:b,old:a.C}),a.C=b):0<a.D&&(b+=Math.max(Math.ceil(-f.j/5E3),1),a.D!==b&&(a.ma("sdai",{updateSt:b,old:a.D}),a.D=b)))}else 1===a.B&&sZ(a,5,"noad")};
Q6a=function(a,b,c){return(0>c||c===a.G)&&!isNaN(a.K)?a.K:b};
R6a=function(a,b){if(a.j){var c=a.j.Ug.rh-(b.startTime+a.Z-a.j.Ug.startSecs);0>=c||(c=new NP(a.j.Ug.startSecs-(isNaN(a.Z)?0:a.Z),c,a.j.Ug.context,a.j.Ug.identifier,"stop",a.j.Ug.j+1E3*b.duration),a.ma("cuepointdiscontinuity",{segNum:b.Pa}),rZ(a,c,b.Pa))}};
sZ=function(a,b,c){a.B!==b&&(a.ma("sdai",{setsst:b,old:a.B,r:c}),a.B=b)};
tZ=function(a,b,c,d){(void 0===d?0:d)?sZ(a,1,"sk2h"):0<b&&5<=Math.abs(b-c)&&4===a.B&&sZ(a,5,"sk2t."+b.toFixed(2)+";ct."+c.toFixed(2))};
uZ=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
vZ=function(a,b,c){this.j=a;this.reason=b;this.token=c;this.videoId=void 0};
wZ=function(a,b,c){g.I.call(this);this.policy=a;this.D=b;this.ma=c;this.C=new Map;this.G=0;this.K=!1;this.j="";this.B=!1};
xZ=function(a,b,c){if(void 0===c?0:c)a.K=!0;++a.G;c=6E4*Math.pow(2,a.G);c=(0,g.$C)()+c;a.C.set(b.info.id,c)};
yZ=function(a){for(var b=g.u(a.C.entries()),c=b.next();!c.done;c=b.next()){var d=g.u(c.value);c=d.next().value;d=d.next().value;d<(0,g.$C)()&&a.C.delete(c)}return a.C};
S6a=function(a){return a.K&&0<yZ(a).size};
zZ=function(a,b){a.j!==b&&(a.j=b,a.B=!0)};
T6a=function(a,b){if(b){(a.policy.El||a.policy.Mx)&&a.ma("iaudio",{id:b});var c=g.Db(a.D.j,function(d){return d.id===b})}c||(c=g.Db(a.D.j,function(d){var e;
return!(null==(e=d.kc)||!e.isDefault)}));
return c};
U6a=function(a,b,c,d,e,f){var h=this;f=void 0===f?[]:f;this.ya=a;this.Ba=b;this.policy=c;this.manifest=d;this.K=e;this.fb=f;this.logger=new g.YX("dash/abr");this.j=KS;this.C=this.N=null;this.Y=-1;this.Na=!1;this.nextVideo=this.B=null;this.D=[];this.Va=new Set;this.La={};this.bb=new wR(1);this.Z=0;this.Wa=this.ra=this.qa=!1;this.Ga=0;this.Za=!1;this.Da=new Set;this.Ra=!1;this.pd={Z_:function(){AZ(h)}};
this.G=new wZ(this.policy,e,function(l,m){h.ya.ma(l,m)})};
Z6a=function(a,b,c){BZ(a,b);V6a(a,c);a.N=a.B;W6a(a);X6a(a);a.C=a.nextVideo;a.N=a.B;return Y6a(a)};
b7a=function(a,b){if($6a(a,b))return null;if("m"===b.reason&&b.isLocked())return a.logger.debug(function(){return"User sets constraint to: "+oP(b)}),BZ(a,b),a.Z=a.D.length-1,AZ(a),CZ(a),a.ra=a.ra||a.C!==a.nextVideo,a.C=a.nextVideo,new uZ(a.B,a.C,b.reason);
"r"===b.reason&&(a.Y=-1);BZ(a,b);CZ(a);if("r"===b.reason&&a.nextVideo===a.C)return new uZ(a.B,a.nextVideo,b.reason);a7a(a);return null};
c7a=function(a,b,c){a.B=a.manifest.j[b];a.N=a.B;return new uZ(a.N,a.C,c?"t":"m")};
d7a=function(a,b){if(b.info.video){if(a.C!==b)return a.C=b,Y6a(a)}else a.Wa=a.N!==b,a.N=b;return null};
e7a=function(a,b){if(b.j.info.video&&b.hf){var c=(b.Rb+b.B)/b.duration,d=b.j.info.sb;c&&d&&(a.bb.Lj(1,c/d),a.policy.j&&1.5<c/d&&a.ya.ma("overshoot",{sq:b.Pa,br:c,max:d}))}};
DZ=function(a,b,c){xZ(a.G,b,void 0===c?!1:c);a.Y=-1;BZ(a,a.j)};
EZ=function(a,b){return new uZ(a.N,a.C,b||a.j.reason)};
a7a=function(a){if(a.C&&a.nextVideo&&FZ(a,a.C.info)<FZ(a,a.nextVideo.info)){var b=a.j.reason;a.qa=a.qa||"r"===b||"u"===b||"v"===b}};
Y6a=function(a){a.Na?a.Na=!1:a.Y=(0,g.$C)();a.qa=!1;a.Ra=!1;return new uZ(a.N,a.C,a.j.reason)};
f7a=function(a,b){var c={};b=g.u(b);for(var d=b.next();!d.done;d=b.next())if((d=d.value)&&d.video){var e=d.video.j,f=c[e],h=f&&EK(f)&&f.video.j>a.policy.gj,l=e<=a.policy.gj?EK(d):DK(d);if(!f||h||l)c[e]=d}return c};
BZ=function(a,b){a.j=b;var c=a.K.videoInfos;if(!a.j.isLocked()){var d=(0,g.$C)();c=g.Ht(c,function(r){if(r.sb>this.policy.sb)return!1;var t=this.manifest.j[r.id];return yZ(this.G).get(r.id)>d?!1:4<t.resource.B||4<t.K?(this.logger.debug(function(){return"Remove "+MK(r)+"; 4 load failures"}),!1):this.Da.has(+r.itag)?!1:!0},a);
S6a(a.G)&&(c=g.Ht(c,function(r){return 854>=r.video.width&&480>=r.video.height}))}c.length||(c=a.K.videoInfos);
var e=g.Ht(c,b.D,b);if(a.j.isLocked()&&a.G.j){var f=g.Db(c,function(r){return r.id===a.G.j});
f?e=[f]:zZ(a.G,"")}f="m"===b.reason||"s"===b.reason;a.policy.Iz&&PY&&g.VC&&(!f||1080>b.j)&&(e=e.filter(function(r){return r.video&&(!r.B||r.B.powerEfficient)}));
if(0<e.length)if(XK()){var h=f7a(a,e);e=e.filter(function(r){return!!r&&!!r.video&&r.qb===h[r.video.j].qb})}else{var l,m,n=null==(l=e[0])?void 0:null==(m=l.video)?void 0:m.j;
if(n){b=e.filter(function(r){return!!r&&!!r.video&&r.video.j===n});
var p=f7a(a,b)[n].qb;e=e.filter(function(r){return!!r&&!!r.video&&r.qb===p})}}e.length||(e=[c[0]]);
e.sort(function(r,t){return FZ(a,r)-FZ(a,t)});
c={};for(b=1;b<e.length;c={fN:void 0,OM:void 0},b++)c.OM=e[b-1],c.fN=e[b],c.OM.video.width>c.fN.video.width?(g.Gb(e,b),b--):FZ(a,c.OM)*a.policy.N>FZ(a,c.fN)&&(g.Gb(e,b-1),b--);var q=e[e.length-1];a.Za=!!a.C&&!!a.C.info&&a.C.info.qb!==q.qb;a.logger.debug(function(){return"Constraint: "+oP(a.j)+", "+e.length+" fmts selectable, max selectable fmt: "+MK(q)});
a.D=e;a.Va.clear();c=!1;for(b=0;b<e.length;b++)c?a.Va.add(e[b].itag):1080<=e[b].video.j&&(c=!0);bYa(a.policy,q,a.manifest.dc)};
V6a=function(a,b){if(a.policy.El){var c=T6a(a.G,b);b||c||(c=g7a(a));c=c||a.K.j[0]}else b?a.B=a.manifest.j[b]:(c=g.Db(a.K.j,function(d){return!!d.kc&&d.kc.isDefault}))||(c=g7a(a)),c=c||a.K.j[0];
a.B=a.manifest.j[c.id];AZ(a)};
h7a=function(a,b){for(var c=0;c+1<a.D.length&&"tiny"===a.D[c].video.quality;)c++;var d=RY(a.Ba)/a.policy.N;return FZ(a,b.info)+FZ(a,a.D[c])>d};
AZ=function(a){if(!a.B||!a.policy.D&&!a.B.info.kc){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(1<b.length){var c=!1;if(c=a.policy.Jb?!0:a.j.isLocked()?240>a.j.j:h7a(a,a.B))a.B=a.manifest.j[g.Ab(b).id]}}};
CZ=function(a){if(!a.nextVideo||!a.policy.D)if(a.j.isLocked())a.nextVideo=360>=a.j.j?a.manifest.j[a.D[0].id]:a.manifest.j[g.Ab(a.D).id],a.logger.debug(function(){return"Select max fmt: "+MK(a.nextVideo.info)});
else{for(var b=Math.min(a.Z,a.D.length-1),c=RY(a.Ba),d=FZ(a,a.B.info),e=c/a.policy.Y-d;0<b&&!(FZ(a,a.D[b])<=e);b--);for(var f=c/a.policy.N-d;b<a.D.length-1&&!(FZ(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: "+MK(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", bandwidth to downgrade: "+e.toFixed(0)+", bandwidth to upgrade: "+f.toFixed(0)+", constraint: "+oP(a.j)});
a.Z=b}};
W6a=function(a){var b=a.policy.Y,c=RY(a.Ba),d=c/b-FZ(a,a.B.info);b=g.Eb(a.D,function(e){return FZ(this,e)<d},a);
0>b&&(b=0);a.Z=b;a.nextVideo=a.manifest.j[a.D[b].id];a.logger.info(function(){return"Initial selected fmt: "+MK(a.nextVideo.info)+", bandwidth: "+c.toFixed(0)+", max video byterate: "+d.toFixed(0)})};
X6a=function(a){if(a.fb.length){var b=a.fb,c=function(d,e){if("f"===d.info.qb||b.includes(JK(d.info,a.manifest.dc)))return d;for(var f={},h=0;h<e.length;f={gO:void 0,CS:void 0},h++){var l=a.manifest.j[e[h].id];if(b.includes(JK(l.info,a.manifest.dc))){var m=d.info.qb,n=l.info.qb;if(m===n||XK()){if(d.info.j!==l.info.j)return a.ya.ma("ombifa",{mismatch:"xtag",f:d.info.id,t:l.info.id}),d;f.gO=d.info.itag;f.CS=l.info.itag;a.ya.ma("ombifa",{f:f.gO,t:f.CS});a.logger.info(function(p){return function(){return"Initial format selection changed from "+
p.gO+" to "+p.CS+" based on prefetched media."}}(f));
a.Na=!0;return l}a.ya.ma("ombifa",{mismatch:"efficient",fc:m,tc:n})}}a.ya.ma("ombifa",{mismatch:"unselectable",fmts:b.join(".")});return d};
a.nextVideo=c(a.nextVideo,a.K.videoInfos);a.B=c(a.B,a.K.j)}};
FZ=function(a,b){if(!a.La[b.id]){var c=a.manifest.j[b.id].index.hX(a.Ga,15);c=b.ov&&a.C&&a.C.index.isLoaded()?c||b.ov:c||b.sb;a.La[b.id]=c}c=a.La[b.id];a.Va.has(b.itag)&&(c*=1.5);return c*=Math.max(1,a.bb.Qi()||0)};
i7a=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};
j7a=function(a){var b=[];if("m"===a.j.reason||"s"===a.j.reason)return b;if(DQa(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};
$6a=function(a,b){var c;return hOa(a.j,b)&&(!a.G.j||!a.j.isLocked()||(null==(c=a.nextVideo)?void 0:c.info.id)===a.G.j)};
g7a=function(a){var b=g.Db(a.K.j,function(d){return d.audio.j}),c=g.Db(a.K.j,function(d){return!d.audio.j});
if(!b)return null;if(!a.policy.yC)return c;a.policy.Ay&&b&&(a.ya.ma("drcwr",{d:b.itag,dd:b.approxDurationMs,nd:c?c.itag:"",ndd:(null==c?0:c.approxDurationMs)?c.approxDurationMs:""}),c&&1E3<Math.abs(c.approxDurationMs-b.approxDurationMs)&&(b=c));return b};
k7a=function(a){a=void 0===a?{}:a;var b=void 0===a.Rj?!1:a.Rj,c=void 0===a.Eu?!1:a.Eu;return(void 0===a.bj?0:a.bj)?c?3:2:b?-1:1};
l7a=function(a,b,c,d){var e=this;this.G=a;this.manifest=b;this.policy=c;this.logger=d;this.SA=[];this.md=[];this.j=-1;this.Sb=null;this.timestampOffset=0;this.Vc=null;this.pd={zO:function(f){return e.zO(f)}};
this.C=b.dc?0:1};
p7a=function(a,b,c,d,e){if(!e.info.hf){if(0===c.length)c.push(e);else{var f;(a=null==(f=c.pop())?void 0:LQ(f,e))?c.push(a):c.push(e)}return d}var h;(c=null==(h=c.pop())?void 0:LQ(h,e))||(c=e);if(a.policy.hd&&c.info.Rb)return a.logger&&a.logger({incompleteSegment:c.info.Dd()}),d;h=a.zO(c);d=h.formatId;e=h.Pa;c=h.startTimeMs;f=h.clipId;h=h.P6;var l=0;a.policy.B&&a.Vc&&(l=vY(a.Vc,f));c+=l;d={formatId:d,startTimeMs:c,durationMs:h,Jm:e,Oi:e,bx:c,ax:h};e=m7a(b,d.startTimeMs);(c=0<=e?b[e]:null)&&n7a(a,c,
d)?d=c:(e+=1,b.splice(e,0,d));c=0;for(f=e+1;f<b.length;f++){h=a;l=b[f];var m=d,n=l.startTimeMs+l.durationMs,p=m.startTimeMs+m.durationMs;p>=n+100?h=!0:p+100<l.startTimeMs?h=!1:o7a(h,l.formatId,m.formatId)?(m.durationMs=n-m.startTimeMs,m.ax=m.durationMs,m.Oi=l.Oi,h=!0):(l.startTimeMs=p,l.bx=p,l.Jm=m.Oi+1,h=!1);if(!h)break;c++}c&&b.splice(e+1,c);return e};
m7a=function(a,b){a=g.Tb(a,{startTimeMs:b},function(c,d){return c.startTimeMs-d.startTimeMs});
return 0<=a?a:-a-2};
q7a=function(a){if(a.Sb){var b=a.Sb.Ke();if(0!==b.length){for(var c=[],d=0,e=0;d<b.length&&e<a.md.length;){var f=b.start(d),h=b.end(d),l=a.md[e].startTimeMs/1E3,m=(a.md[e].startTimeMs+a.md[e].durationMs)/1E3;if(l<=h&&m>=f){var n=0;if(a.Vc){var p=xY(a.Vc,1E3*l);p&&(n=p.Wk/1E3)}p=Object.assign({},a.md[e]);var q=a.md[e].formatId;q=a.manifest.N.get(q.itag+";"+(q.lmt||0)+";"+q.xtags);f=Math.max(l,f);l=q.index.Bi(f+.1-n);var r=q.index.getStartTime(l)+n,t=l+ +(.1<Math.abs(r-f)),v=t+a.C;t=1E3*(q.index.getStartTime(t)+
n);a.policy.zj&&.1<Math.abs(f-r)&&c.push({formatId:p.formatId,startTimeMs:1E3*r,durationMs:t-1E3*r,Jm:l,Oi:l,bx:1E3*r,ax:t-1E3*r,rK:{Ng:1E3*f,oz:t-1E3*f,Or:1E3}});!a.policy.zj&&a.policy.Lx&&e===a.j?(p.Jm=l,p.startTimeMs=1E3*r):(p.Jm=v,p.startTimeMs=t);p.bx=p.startTimeMs;f=void 0;l=(null==(f=a.B)?void 0:f.info.duration)||11;e===a.j&&h<m&&m-h<=1.01*l&&(h=m);f=Math.min(m,h);l=q.index.Bi(f-.1-n);r=a.policy;(r.B||r.Ea.L("html5_sabr_include_tail_media_chunk"))&&q.index.In(l+1)&&q.index.rI(l+1)+n<=f&&(l+=
1);r=q.index.rI(l)+n;l-=+(.1<Math.abs(r-f));f=l+a.C;n=1E3*(q.index.rI(l)+n);p.Oi=f;p.durationMs=n-p.startTimeMs;p.ax=p.durationMs;p.Jm<=p.Oi&&c.push(p)}m<h?e+=1:d+=1}a.md=c}}};
r7a=function(a){var b=[],c=[].concat(g.qa(a.SA));a.md.forEach(function(h){b.push(Object.assign({},h))});
for(var d=a.j,e=g.u(a.G.nX()),f=e.next();!f.done;f=e.next())d=p7a(a,b,c,d,f.value);b.forEach(function(h){h.startTimeMs&&(h.startTimeMs+=1E3*a.timestampOffset,h.bx&&(h.bx+=1E3*a.timestampOffset))});
return{md:b,SA:c}};
n7a=function(a,b,c){var d=b.startTimeMs+b.durationMs,e=c.startTimeMs+c.durationMs;if(100<c.startTimeMs-d)return!1;if(o7a(a,b.formatId,c.formatId))return b.durationMs=Math.max(d,e)-b.startTimeMs,b.ax=b.durationMs,b.Oi=Math.max(b.Oi,c.Oi),!0;if(100>=Math.abs(b.startTimeMs-c.startTimeMs)){if(b.durationMs>c.durationMs+100){a=b.formatId;var f=b.Jm,h=b.Oi;b.formatId=c.formatId;b.durationMs=c.durationMs;b.Jm=c.Jm;b.ax=c.durationMs;b.Oi=c.Oi;c.formatId=a;c.startTimeMs=e;c.bx=e;c.durationMs=d-e;c.ax=c.durationMs;
c.Jm=f;c.Oi=h;return!1}b.formatId=c.formatId;return!0}d>c.startTimeMs&&(b.durationMs=c.startTimeMs-b.startTimeMs,b.ax=b.durationMs);return!1};
o7a=function(a,b,c){return b.itag!==c.itag||b.xtags!==c.xtags?!1:a.manifest.dc||b.lmt===c.lmt};
s7a=function(a,b,c){if(a.logger&&a.policy.Sm){for(var d=[],e=0;e<b.length;e++){var f=b[e],h=void 0;if(null==(h=f.rK)?0:h.Ng){var l=h=void 0,m=void 0;d.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+(f.startTimeMs+"_psst.")+((null==(l=f.rK)?void 0:l.Ng)+"_psd.")+(null==(m=f.rK)?void 0:m.oz))}h=void 0;d.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+(f.startTimeMs+"_e."+(f.startTimeMs+f.durationMs)+"_d."+f.durationMs)+("_sn."+f.Jm)+("_en."+f.Oi))}a.logger({p:""+c,br:d.join(";")})}};
t7a=function(a){a.md=[];a.SA=[];a.j=-1;a.B=void 0};
u7a=function(a,b){if(a.Sb){var c=a.Sb.Ke();if(b=RK(c,b))a.D=b}};
w7a=function(a,b,c){var d=this;this.policy=a;this.j=b;this.Ga=c;this.D=this.B=0;this.Lf=null;this.qa=new Set;this.Y=[];this.indexRange=this.initRange=null;this.Z=new fL;this.ra=this.Ba=!1;this.pd={oob:function(){return d.C},
Knb:function(){return d.chunkSize},
Fnb:function(){return d.N},
Enb:function(){return d.K}};
(b=v7a(this))?(this.chunkSize=b.csz,this.C=Math.floor(b.clen/b.csz),this.N=b.ck,this.K=b.civ):(this.chunkSize=a.zy,this.C=0,this.N=g.qE(16),this.K=g.qE(16));this.G=new Uint8Array(this.chunkSize);this.N&&this.K&&(this.crypto=new P5a(this.N,this.K))};
v7a=function(a){if(a.policy.Ud&&a.policy.Cy)for(var b=g.u(a.policy.Ud),c=b.next(),d={};!c.done;d={zN:void 0,MN:void 0},c=b.next())if(c=g.lB(c.value),d.zN=+c.clen,d.MN=+c.csz,0<d.zN&&0<d.MN&&a.policy.D===c.docid&&a.j.info.id===c.fmtid&&a.j.info.lastModified===+c.lmt)return a={},a.clen=d.zN,a.csz=d.MN,a.ck=c.ck,a.civ=c.civ,a};
GZ=function(a){return!!a.Lf&&rQ(a.Lf)};
B7a=function(a,b){if(!GZ(a)&&!a.Ma()){if(!(a.Ba||(a.Ba=!0,0<a.C))){var c=x7a(a);c=kTa(a.policy.D,a.j.info,HZ(a),c,a.policy.Va);y7a(a,c)}if(1===b.info.type){if(a.Lf){IZ(a,Error("Woffle: Expect INIT slices to always start us off"));return}a.initRange=oQ(0,b.j.getLength())}else if(2===b.info.type)a.Lf&&1===a.Lf.type||IZ(a,Error("Woffle: Index before init")),a.indexRange=oQ(a.initRange.end+1,b.j.getLength());else if(3===b.info.type){if(!a.Lf){IZ(a,Error("Woffle: Expect MEDIA slices to always have lastSlice"));
return}if(3===a.Lf.type&&!uQ(a.Lf,b.info)&&(a.Y=[],b.info.Pa!==uPa(a.Lf)||0!==b.info.Rb))return;if(b.info.hf){c=g.u(a.Y);for(var d=c.next();!d.done;d=c.next())z7a(a,d.value);a.Y=[]}else{a.Y.push(b);a.Lf=b.info;return}}else{IZ(a,Error("Woffle: Unexpected slice type"));return}a.Lf=b.info;z7a(a,b);A7a(a)}};
z7a=function(a,b){var c=0,d=MN(b.j);if(a.D<a.C){c=a.C*a.chunkSize;var e,f=((null==(e=b.info.range)?void 0:e.start)||0)+b.info.Rb;c-=f;if(c>=d.length)return;if(0>c)throw Error("Missing data");a.D=a.C;a.B=0}for(e={};c<d.length;e={FL:void 0})if(e.FL=Math.min(d.length-c,a.G.byteLength-a.B),f=new Uint8Array(d.buffer,d.byteOffset+c,e.FL),a.G.set(f,a.B),a.B+=e.FL,c+=e.FL,a.B===a.G.length){if(b.info===a.Lf&&GZ(a)&&c===d.length)break;e=x7a(a);e=kTa(a.policy.D,a.j.info,HZ(a),e,a.policy.Va,a.D,a.G,a.crypto);
a.qa.add(e);y7a(a,e);a.Ma()||(e=x7a(a),a.Ga(HZ(a),void 0!==e?(e.downloadedEndTime||0)*e.averageByteRate:e.maxKnownEndTime*e.averageByteRate,e.maxKnownEndTime*e.averageByteRate));a.G=new Uint8Array(a.chunkSize);a.B=0;a.D+=1}};
A7a=function(a){if(GZ(a))if(a.Lf&&a.indexRange)if(a.B){var b=new Uint8Array(a.G.buffer,0,a.B),c=C7a(a),d=a.policy.D;Promise.all(a.qa).then(function(){var e=kTa(d,a.Lf.j.info,HZ(a,!0),c,a.policy.Va,a.D,b,a.crypto);y7a(a,e,!0)})}else IZ(a,new JZ("Woffle: Expect always re-mark currentChunkOffset at EOS"));
else IZ(a,new JZ("Woffle: Expect at EOS to always have lastSlice or indexRange"))};
x7a=function(a){return{downloadedEndTime:Math.round(a.Lf?a.Lf.D:0),maxKnownEndTime:Math.round(a.j.index.Vs()),averageByteRate:Math.round(a.j.info.ov)}};
C7a=function(a){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(a.j.index.Vs()),averageByteRate:Math.round(a.j.info.ov)}};
HZ=function(a,b){void 0===b||!b||a.indexRange&&a.initRange&&a.Lf||IZ(a,new JZ("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?"+jB(b),d,e;b={itag:+a.j.info.itag,mimeType:a.j.info.mimeType,bitrate:8*a.j.info.sb,lastModified:String(a.j.info.lastModified),initRange:null==
(d=a.initRange)?void 0:qPa(d),indexRange:null==(e=a.indexRange)?void 0:qPa(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};
y7a=function(a,b,c){c=void 0===c?!1:c;b.then(function(d){a.qa.delete(b);(c||4===d)&&a.Z.resolve(d)},function(d){a.Z.reject(d)})};
IZ=function(a,b){4!==g.zS(a.policy.D)&&(g.AS(a.policy.D,4),g.eF(b),a.Z.reject(new JZ(b.message)))};
JZ=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.j=void 0===b?!1:b};
D7a=function(a){a=g.YP(a,1886614376);for(var b=g.u(a),c=b.next();!c.done;c=b.next());return g.Rr(a,function(d){return OOa(d)})};
E7a=function(a){var b=Tr(a,function(e,f){return e+f.length},0);
b=new Uint8Array(b);var c=0;a=g.u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,b.set(d,c),c+=d.length;return b};
F7a=function(a,b,c,d,e,f){this.ids=a;this.j=b;this.B=c;this.D=d;this.C=e;this.Hy=f};
KZ=function(a,b,c){this.initData=a;this.contentType=b;this.isPrefetch=c;this.j=this.cryptoPeriodIndex=NaN;this.C=[];this.Pe=!1;this.B=null;if("webm"===(null==b?void 0:b.toLowerCase())||16===a.length)this.Pe=!0};
H7a=function(a){a:{var b=a.initData;try{for(var c=0,d=new DataView(b.buffer);c<d.byteLength-8;){var e=d.getUint32(c);if(1>=e)break;if(1886614376===d.getUint32(c+4)){var f=32;if(0<d.getUint8(c+8)){var h=d.getUint32(c+28);f+=16*h+4}var l=d.getUint32(c+f-4);try{var m=G7a(b.subarray(c+f,c+f+l));if(null!==m){var n=m;break a}}catch(p){}}c+=e}n=null}catch(p){n=null}}if(null!=n)for(b=yi(Cj(n,7)),null==b||a.Pe||(a.cryptoPeriodIndex=b),b=yi(Cj(n,10)),null!=b&&0<b&&!a.Pe&&(a.j=b),n=Nj(n,2,zj(n.ea)&34?vea:wea,
2),n=g.u(n),b=n.next();!b.done;b=n.next())a.C.push(g.Gg($g(b.value),4))};
I7a=function(a){return isNaN(a.cryptoPeriodIndex)?g.Gg(a.initData):""+a.cryptoPeriodIndex};
LZ=function(a,b,c){var d=void 0===c?{}:c;c=void 0===d.videoDuration?0:d.videoDuration;var e=void 0===d.zF?void 0:d.zF;d=void 0===d.aJ?!1:d.aJ;this.videoId=a;this.status=b;this.videoDuration=c;this.zF=e;this.aJ=d};
J7a=function(a,b,c,d,e){this.videoId=a;this.fO=b;this.B=c;this.bytesDownloaded=d;this.j=e};
MZ=function(a){this.j=a;this.offset=0};
K7a=function(a){if(a.offset>=a.j.getLength())throw Error();return VN(a.j,a.offset++)};
L7a=function(a,b){b=void 0===b?!1:b;var c=K7a(a);if(1===c){b=-1;for(c=0;7>c;c++){var d=K7a(a);-1===b&&255!==d&&(b=0);-1<b&&(b=256*b+d)}return b}d=128;for(var e=0;6>e&&d>c;e++)c=256*c+K7a(a),d*=128;return b?c:c-d};
M7a=function(a){try{var b=L7a(a,!0),c=L7a(a,!1);return{id:b,size:c}}catch(d){return{id:-1,size:-1}}};
N7a=function(a){for(var b=new MZ(a),c=-1,d=0,e=0;!d||!e;){var f=M7a(b),h=f.id;f=f.size;if(0>h)return;if(176===h){if(2!==f)return;d=b.jm()}else if(186===h){if(2!==f)return;e=b.jm()}374648427===h?c=b.jm()+f:408125543!==h&&174!==h&&224!==h&&b.skip(f)}b=UN(a,0,c);c=new DataView(b.buffer);c.setUint16(d,3840);c.setUint16(e,2160);d=new JN([b]);KN(d,a);return d};
P7a=function(a,b,c){var d=this;this.ya=a;this.policy=b;this.K=c;this.logger=new g.YX("dash");this.B=[];this.j=null;this.Ba=-1;this.Y=0;this.Da=NaN;this.qa=0;this.C=NaN;this.Z=this.Na=0;this.Wa=-1;this.La=this.G=this.D=this.Ga=null;this.bb=this.Va=NaN;this.N=this.ra=this.Za=this.fb=null;this.rb=!1;this.Ra=this.timestampOffset=0;this.pd={nX:function(){return d.B}};
if(this.policy.D){var e=this.K,f=this.policy.D;this.policy.Va&&a.ma("atv",{ap:this.policy.Va});this.N=new w7a(this.policy,e,function(h,l,m){NZ(a,new LZ(d.policy.D,2,{zF:new J7a(f,h,e.info,l,m)}))});
this.N.Z.promise.then(function(h){d.N=null;1===h?NZ(a,new LZ(d.policy.D,h)):d.ya.ma("offlineerr",{status:h.toString()})},function(h){var l=(h.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_");
h instanceof JZ&&!h.j?(d.logger.info(function(){return"Assertion failed: "+l}),d.ya.ma("offlinenwerr",{em:l}),O7a(d),NZ(a,new LZ(d.policy.D,4))):(d.logger.info(function(){return"Failed to write to disk: "+l}),d.ya.ma("dldbwerr",{em:l}),O7a(d),NZ(a,new LZ(d.policy.D,4,{aJ:!0})))})}};
Q7a=function(a){return a.B.length?a.B[0]:null};
X7a=function(a,b,c,d){d=void 0===d?0:d;if(a.G){var e=a.G.Rb+a.G.B;if(0<c.info.Rb)if(c.info.Pa===a.G.Pa&&c.info.Rb<e){if(c.info.Rb+c.info.B<=e)return;c=cQa(c,e-c.info.Rb)[1]}else if(0<=c.info.Pa&&0<=a.G.Pa&&!uQ(a.G,c.info))throw new g.AC("improper_continuation",a.G.Dd(),c.info.Dd());e=a.G;var f=c.info;(e.Pa!==f.Pa&&f.Pa!==e.Pa+1||e.type!==f.type?0:uQ(e,f)||(1E-6>=Math.abs(e.C-f.C)&&e.Pa===f.Pa?0:tPa(e,f)))||R7a(a,"d")}else if(0<c.info.Rb)throw new g.AC("continuation_of_null",c.info.Dd());a.G=c.info;
a.K=c.info.j;if(0===c.info.Rb){if(a.j)if(!a.ya.isOffline()||a.policy.fn)a.ya.ma("slice_not_fully_processed",{buffered:a.j.info.Dd(),push:c.info.Dd()});else throw new g.AC("slice_not_fully_processed",a.j.info.Dd(),c.info.Dd());OZ(a);a.Na=d}else{if(a.Na&&d&&a.Na!==d)throw a=new g.AC("lmt_mismatch",c.info.Pa,a.Na,d),a.level="WARNING",a;!c.info.j.wm()&&a.D&&(d=c.info,e=a.D.il,d.G="updateWithEmsg",d.Pa=e)}if(a.j){d=LQ(a.j,c);if(!d)throw new g.AC("failed_to_merge",a.j.info.Dd(),c.info.Dd());a.j=d}else a.j=
c;a:{c=g.GK(a.j.info.j.info);if(3!==a.j.info.type){if(!a.j.info.hf)break a;7===a.j.info.type?S7a(a,b,a.j):T7a(a,a.j);a.j=null}for(;a.j;){d=a.j.j.getLength();if(0>=a.Ba&&0===a.Y){var h=a.j.j;e=f=-1;if(c){for(var l=0;l+8<h.getLength();){var m=UIa(h,l),n=UIa(h,l+4);l+=m||1;if(1836019558===n)f=l;else if(1835295092===n){e=l;break}}0>e&&(f=-1)}else{h=new MZ(h);for(m=l=!1;;){n=h.jm();var p=M7a(h),q=p.id;p=p.size;if(!(0<q))break;if(408125543!==q)if(524531317===q)l=!0,0<=p&&(e=h.jm()+p,m=!0);else{if(l&&(160===
q||163===q)&&(0>f&&(f=n),m))break;163===q&&(f=Math.max(0,f),e=h.jm()+p);if(160===q){0>f&&(e=f=h.jm()+p);break}h.skip(p)}}0>f&&(e=-1)}if(0>f)break;a.Ba=f;a.Y=e-f}if(a.Ba>d)break;a.Ba?(d=U7a(a,a.Ba),d.G&&V7a(a,d),S7a(a,b,d),W7a(a,d),a.Ba=0):a.Y&&(d=U7a(a,0>a.Y?Infinity:a.Y),a.Y-=d.j.getLength(),W7a(a,d))}}a.j&&a.j.info.hf&&(W7a(a,a.j),a.j=null)};
T7a=function(a,b){!b.info.j.wm()&&0===b.info.Rb&&(g.GK(b.info.j.info)||b.info.j.info.Pe())&&jQa(b);if(1===b.info.type)try{V7a(a,b),Y7a(a,b)}catch(e){g.dF(e);var c=vQ(b.info);c.hms="1";a.ya.handleError("fmt.unparseable",c||{},1)}c=b.info.j;c.VO(b);a.N&&B7a(a.N,b);if(c.gg()&&a.policy.C)a:{a=a.ya.manifest;b=b.info.clipId;c=IK(c.info,a.dc);if(b){var d=EQa(a,c);if(a.Da[d])break a;a.Da[d]=b}a.Ga.push(c)}};
O7a=function(a){var b;null==(b=a.N)||b.dispose();a.N=null};
Z7a=function(a){var b=a.B.reduce(function(c,d){return c+d.j.getLength()},0);
a.j&&(b+=a.j.j.getLength());return b};
$7a=function(a){if(a.ra&&!a.policy.Po){var b=a.ya;b.manifest.isManifestless&&XQ(b.manifest,a.ra.Pa,!!a.K.info.video)}a.ra=null;a.D=null;a.G=a.fb;a.C=a.G?a.C-a.qa:NaN;OZ(a)};
U7a=function(a,b){var c=a.j;b=Math.min(b,c.j.getLength());if(b===c.j.getLength())return a.j=null,c;c=cQa(c,b);a.j=c[1];return c[0]};
V7a=function(a,b){b.j.getLength();var c=KQ(b);if(eDa(b.info.j.info)&&"bt2020"===b.info.j.info.video.primaries){var d=new ZP(c);aQ(d,[408125543,374648427,174,224,21936,21937])&&(d=d.start+d.pos,129===c.getUint8(d)&&1===c.getUint8(d+1)&&c.setUint8(d+1,9))}d=b.info.j.info;DK(d)&&!eDa(d)&&(d=KQ(b),(new ZP(d)).Nn(),eQ([408125543,374648427,174,224],21936,d));b.info.j.info.yg()&&(d=b.info.j,d.info&&d.info.video&&"MESH"===d.info.video.projectionType&&!d.B&&(g.GK(d.info)?d.B=ZOa(c):d.info.Pe()&&(d.B=iPa(c))));
b.info.j.info.Pe()&&b.info.yg()&&(c=KQ(b),(new ZP(c)).Nn(),eQ([408125543,374648427,174,224],30320,c)&&eQ([408125543,374648427,174,224],21432,c));if(a.policy.JC&&b.info.j.info.Pe()){c=KQ(b);var e=new ZP(c);if(aQ(e,[408125543,374648427,174,29637])){d=dQ(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.yh()&&g.GK(b.info.j.info)){d=KQ(b);c=g.RP(d,0,1701606260);f=g.RP(d,0,1836476516);if(c&&f){c.skip(2);var h=IP(c),l=KP(c);d=[];e=[];var m=[],n=[];if(h)for(h=0;h<l;++h)d.push(LP(c)),
e.push(LP(c)),m.push(IP(c)),n.push(IP(c));else for(h=0;h<l;++h)d.push(JP(c)),e.push(JP(c)),m.push(IP(c)),n.push(IP(c));c=g.SP(f);c=new WOa(e[0]/c,d[0]/c)}else c=null;if(c){if(g.GK(b.info.j.info))for(d=KQ(b),e=g.RP(d,0,1701082227);e;)f=e,f.type=1936419184,f.data.setUint32(f.offset+4,1936419184),e=g.RP(d,e.offset+e.size,1701082227);a.rb=!0;b.info.j.D=c}}b.info.j.wm()||b.info.j.j||b.info.j.indexRange||lQa(b)};
S7a=function(a,b,c){if(c.info.j.wm()){if(a.rb&&a8a(c)&&(b=KQ(c),b=g.RP(b,0,1953658222))){b.skip(1);var d=HP(b)<<16|IP(b),e=d&1,f=d&4;if(d&256){var h=d&512,l=d&1024;d&=2048;var m=KP(b);2>m||(e&&b.skip(4),f&&b.skip(4),e=KP(b),b.skip((m-1)*(4+(h?4:0)+(l?4:0)+(d?4:0))-4),b.data.setUint32(b.offset+b.j,e))}}if(b=a.Ga&&!!a.Ga.K.D)if(b=c.info.yg())b=hQa(c),h=a.Ga,fY?(l=1/b,b=PZ(a,b)>=PZ(h)+l):b=a.getDuration()>=h.getDuration(),b=!b;b&&a8a(c)&&(b=a.Ga,fY?(l=hQa(c),h=1/l,l=PZ(a,l),b=PZ(b)+h-l):b=b.getDuration()-
a.getDuration(),b=1+b/c.info.duration,YOa(KQ(c),b))}else{h=!1;a.D||(jQa(c),c.B&&(a.D=c.B,h=!0,f=c.info,d=c.B.il,f.G="updateWithEmsg",f.Pa=d,f=c.B,f.C&&(a.K.index.B=!f.C),f=c.info.j.info,d=KQ(c),g.GK(f)?dPa(d,1701671783):f.Pe()&&eQ([408125543],307544935,d)));a:if((f=MQ(c,a.policy.rb))&&iQa(c))l=b8a(a,c),a.Z+=l,f-=l,a.qa+=f,a.C=a.policy.qj?a.C+f:NaN;else{if(a.policy.Iu){if(d=m=a.ya.wq(dQa(c),1),0<=a.C&&7!==c.info.type){if(a.policy.qj&&isNaN(a.Va)){g.eF(new g.AC("Missing duration while processing previous chunk",
c.info.Dd()));a.ya.isOffline()&&!a.policy.fn||c8a(a,c,d);R7a(a,"m");break a}var n=m-a.C,p=n-a.Z,q=c.info.Pa,r=a.La?a.La.Pa:-1,t=a.bb,v=a.Va,w=a.policy.Vm&&n>a.policy.Vm,A=10<Math.abs(p),C=1E-7>Math.abs(a.C-d);if(1E-4<Math.abs(p)){a.Ra+=1;var F=null==(e=a.D)?void 0:TOa(e);e={audio:""+ +a.yh(),sq:q.toFixed(),sliceStart:m,lastSq:r.toFixed(),lastSliceStart:t,lastSliceDuration:v,totalDrift:(1E3*n).toFixed(),segDrift:(1E3*p).toFixed(),skipRewrite:""+ +(w||A)};if(null==F?0:F.length)e.adCpn=F[0];a.ya.handleError("qoe.avsync",
e);a.Wa=q}w||A||C||(d=a.C);e=b8a(a,c,m);f-=e;a.Z=n+e;a.policy.j&&(p&&!C||e)&&(n=null==(l=a.D)?void 0:TOa(l),a.ya.ma("discontinuityRewrite",{adCpn:(null==n?0:n.length)?n.join("."):"",itag:c.info.j.info.itag,sq:c.info.Pa,originalStartTime:m,rewrittenStartTime:d,startTimeAdjustment:d-m,segDrift:(1E3*p).toFixed(),originalDuration:f+e,rewrittenDuration:f,durationAdjustment:e}))}}else d=isNaN(a.C)?c.info.startTime:a.C;c8a(a,c,d)&&(a.qa+=f,a.C=d+f,a.policy.Um&&a.Ra>=a.policy.Um&&(a.Ra=0,a.ya.zo({resetForRewrites:"count"})),
a.policy.Wm&&a.Z>a.policy.Wm&&a.ya.zo({resetForRewrites:"threshold"}))}a.La=c.info;a.Va=gQa(c);0<=c.C&&(a.bb=c.C);if(h&&a.D){h=d8a(a,!0);DPa(c.info,h);a.j&&DPa(a.j.info,h);b=g.u(b);for(l=b.next();!l.done;l=b.next())l=l.value,e=void 0,a.policy.G&&l.Pa!==(null==(e=a.D)?void 0:e.il)||DPa(l,h);(c.info.hf||a.j&&a.j.info.hf)&&7!==c.info.type||(a.ra=h,b=a.ya,b.manifest.isManifestless&&e8a(b,h,null,!!a.K.info.video),a.policy.ke||f8a(a))}}Y7a(a,c);a.timestampOffset&&fQa(c,a.timestampOffset)};
W7a=function(a,b){if(b.info.hf){a.fb=b.info;if(a.D){var c=a.D,d=d8a(a,!1),e=null;if(a.D.eE()){e=c.data["Stitched-Video-Id"]?c.data["Stitched-Video-Id"].split(",").slice(0,-1):[];var f=TOa(c),h=[];if(c.data["Stitched-Video-Duration-Us"])for(var l=g.u(c.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),m=l.next();!m.done;m=l.next())h.push((Number(m.value)||0)/1E6);l=[];if(c.data["Stitched-Video-Start-Frame-Index"]){m=g.u(c.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var n=
m.next();!n.done;n=m.next())l.push(Number(n.value)||0)}l=[];if(c.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(m=g.u(c.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),n=m.next();!n.done;n=m.next())l.push((Number(n.value)||0)/1E6);e=new F7a(e,f,h,l,g.UOa(c),g.VOa(c))}a.ya.KQ(a.K,d,e);a.ra||a.policy.ke||f8a(a);a.ra=null}OZ(a)}a.N&&B7a(a.N,b);if(c=a.ao())if(c=LQ(c,b,a.policy.Cl)){a.B.pop();a.B.push(c);return}a.B.push(b)};
OZ=function(a){a.j=null;a.Ba=-1;a.Y=0;a.D=null;a.Da=NaN;a.qa=0;a.ra=null};
R7a=function(a,b){b={rst4disc:b,cd:a.Z.toFixed(3),sq:a.La?a.La.Pa:-1};a.C=NaN;a.Z=0;a.Wa=-1;a.La=null;a.bb=NaN;a.Va=NaN;a.Za=null;a.ya.ma("mdstm",b)};
Y7a=function(a,b){if(a.K.info.le){if(b.info.j.info.Pe()){var c=new ZP(KQ(b));if(aQ(c,[408125543,374648427,174,28032,25152,20533,18402])){var d=dQ(c,!0);c=16!==d?null:hPa(c,d)}else c=null;d="webm"}else b.info.N=D7a(KQ(b)),c=E7a(b.info.N),d="cenc";c&&c.length&&(c=new KZ(c,d),a.policy.dC&&g.GK(b.info.j.info)&&(d=fPa(KQ(b)))&&(c.B=d),c.Pe=b.info.j.info.Pe(),b.B&&b.B.cryptoPeriodIndex&&(c.cryptoPeriodIndex=b.B.cryptoPeriodIndex),b.B&&b.B.B&&(c.j=b.B.B),a.ya.Ww(c))}};
f8a=function(a){var b=a.D,c=ROa(b);c&&(c.startSecs+=a.Da,a.ya.JQ(a.K,c,b.il,b.eE()))};
d8a=function(a,b){var c,d=a.D;if(c=ROa(d))c.startSecs+=a.Da;return new FP(d.il,a.Da,b?d.Ej:a.qa,d.ingestionTime,"sq/"+d.il,void 0,void 0,b,c)};
c8a=function(a,b,c){if(!eQa(b,c))return b=vQ(b.info),b.smst="1",a.ya.handleError("fmt.unparseable",b||{},1),!1;isNaN(a.Da)&&(a.Da=c);return!0};
b8a=function(a,b,c){var d=0;if(b.info.j.info.Pe()&&!iQa(b))return 0;if(a.Ga&&!a.yh()){var e=0;c&&g.GK(b.info.j.info)?e=c-a.C:b.info.j.info.Pe()&&(e=a.Z);var f=b.info.Pa;c=MQ(b,a.policy.rb);var h=a.Ga;var l=h.Wa;h=h.Z;var m=.02<Math.abs(h-e);if((f===l||f>l&&f>a.Wa)&&m){d=Math.max(.95,Math.min(1.05,(c-(h-e))/c));if(g.GK(b.info.j.info))YOa(KQ(b),d);else if(b.info.j.info.Pe()&&(f=e-h,!g.GK(b.info.j.info)&&(b.info.j.info.Pe(),d=new ZP(KQ(b)),l=b.G?d:new ZP(new DataView(b.info.j.j.buffer)),MQ(b,!0)))){var n=
1E3*f,p=jQ(l);l=d.pos;d.pos=0;if(160===d.j.getUint8(d.pos)||kQ(d))if(cQ(d,160))if(dQ(d,!0),cQ(d,155)){if(f=d.pos,m=dQ(d,!0),d.pos=f,n=1E9*n/p,p=fQ(d),n=p+Math.max(.7*-p,Math.min(p,n)),n=Math.sign(n)*Math.floor(Math.abs(n)),!(Math.ceil(Math.log(n)/Math.log(2)/8)>m)){d.pos=f+1;for(f=m-1;0<=f;f--)d.j.setUint8(d.pos+f,n&255),n>>>=8;d.pos=l}}else d.pos=l;else d.pos=l;else d.pos=l}d=MQ(b,a.policy.rb);d=c-d}d&&b.info.j.info.Pe()&&a.ya.ma("webmDurationAdjustment",{durationAdjustment:d,videoDrift:e+d,audioDrift:h})}return d};
a8a=function(a){return a.info.j.wm()&&a.info.Pa===a.info.j.index.Ed()};
PZ=function(a,b){b=(b=void 0===b?0:b)?Math.round(a.timestampOffset*b)/b:a.timestampOffset;a.K.D&&b&&(b+=a.K.D.j);return b+a.getDuration()};
g8a=function(a,b){0>b||(a.B.forEach(function(c){fQa(c,b)}),a.timestampOffset=b)};
TY=function(a,b,c,d,e){fZ.call(this,c,e);var f=this;this.policy=a;this.formatId=b;this.Wf=d;this.lastError=null;this.j=new g.lv(function(){f.isComplete()||(f.lastError="net.timeout",f.Bc(5))},this.policy.cC);
this.Xf=function(){f.Ma()||(f.Wf.Wc.has(f.formatId)?(f.isComplete()||f.j.start(),dY(f.Wf,f.formatId)&&f.EA(2),f.Wf.Jg(f.formatId)&&(C3a(f.Wf,f.formatId)?f.Bc(4):(f.lastError="net.closed",f.Bc(5)))):(f.lastError="player.exception",f.Bc(5)))};
this.j.start();x3a(this.Wf,this.formatId,this.Xf);g.fg(this.Xf)};
h8a=function(a,b,c,d){var e=this;this.ya=a;this.policy=b;this.j=c;this.timing=d;this.logger=new g.YX("dash");this.C=[];this.ra=[];this.B=this.Sb=null;this.Ga=!1;this.Da=this.La=0;this.K=-1;this.qa=!1;this.Ba=-1;this.Y=NaN;this.pd={AO:function(){return e.D},
nob:function(){return e.C},
Inb:function(){return e.N}};
this.D=new P7a(a,b,c);this.policy.C&&(this.N=new l7a(this.D,this.ya.getManifest(),this.policy,function(f){e.ya.ma("buftl",f)}));
this.sb=c.info.sb;this.Z=c.qE();this.isManifestless=c.qE();this.G=this.Z};
QZ=function(a,b,c){c=void 0===c?!1:c;b&&fY&&g8a(a.D,b.NO());if(!c){var d;null==(d=a.N)||t7a(d)}a.Sb=b;null!=(b=a.N)&&(b.Sb=a.Sb)};
RZ=function(a){var b=a.Sb&&a.Sb.xI();if(a.policy.Ou){if(null==(a=a.N))a=void 0;else{var c;a=null==(c=a.B)?void 0:c.info}return a||null}return b};
i8a=function(a){for(var b={},c=0;c<a.ra.length;c++)b["r"+c]=a.ra[c];return b};
j8a=function(a,b){isNaN(a.Y)||a.ya.ma("aswr",{sq:b.info.eb[0].Pa,id:b.info.eb[0].j.info.itag,xtag:b.info.eb[0].j.info.j,ep:Date.now()-a.Y});a.C.push(b);a.B=g.Ab(b.info.eb);a.ra.push(b.Dd());4<a.ra.length&&a.ra.shift()};
k8a=function(a,b){if(b.Yk()){var c=b.Ak();c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a.policy.j&&b instanceof TY&&a.ya.ma("omblss",{s:d.info.Dd()}),SZ(a,b.info.eb,d,b.JO())}};
SZ=function(a,b,c,d){d=void 0===d?0:d;isNaN(a.Y)||(a.ya.ma("aswm",{sq:b[0].Pa,id:b[0].j.info.itag,xtag:b[0].j.info.j,ep:Date.now()-a.Y}),a.Y=NaN);switch(c.info.type){case 1:case 2:l8a(a,c);break;case 4:var e=c.info.j,f=e.xU(c),h;(null==(h=a.B)?0:4===h.type)&&BPa(c.info,a.B)&&(a.B=e.lB(a.B).pop());c=g.u(f);for(e=c.next();!e.done;e=c.next())SZ(a,b,e.value,d);break;case 3:c.info.j.info.video?(e=a.timing,e.Ga||(e.Ga=(0,g.$C)(),vL("fvb_r",e.Ga,e.j))):(e=a.timing,e.K||(e.K=(0,g.$C)(),vL("fab_r",e.K,e.j)));
X7a(a.D,b,c,d);a.policy.C&&m8a(a);break;case 7:X7a(a.D,b,c,d),a.B=c.info}};
l8a=function(a,b){if(1===b.info.type)if(b.info.j.info.video){var c=a.timing;c.La||(c.La=(0,g.$C)(),vL("vis_r",c.La,c.j))}else c=a.timing,c.Z||(c.Z=(0,g.$C)(),vL("ais_r",c.Z,c.j));T7a(a.D,b);a=a.ya;a.videoTrack.j.gg()&&a.audioTrack.j.gg()&&a.policy.C&&!a.manifest.dc&&(b=a.audioTrack.getDuration(),c=a.videoTrack.getDuration(),1<Math.abs(b-c)&&a.ma("trBug",{af:""+IK(a.audioTrack.j.info,!1),vf:""+IK(a.videoTrack.j.info,!1),a:""+b,v:""+c}))};
$Y=function(a){return Q7a(a.D)};
m8a=function(a){a.C.length?a.B=g.Ab(g.Ab(a.C).info.eb):a.D.B.length?a.B=a.D.ao().info:a.B=RZ(a)};
TZ=function(a){var b={md:[],Zn:[]},c;if(null==(a=a.N))a=void 0;else{s7a(a,a.md,"og");q7a(a);s7a(a,a.md,"trim");var d=r7a(a),e=d.md;d=d.SA;for(var f=[],h=0;h<d.length;h++){var l=d[h];f.push({formatId:IK(l.info.j.info,a.manifest.dc),Dj:l.info.Dj,sequenceNumber:l.info.Pa+a.C,mI:{Ng:1E3*((a.policy.Na&&-1!==l.C?l.C:l.info.startTime)+a.timestampOffset),oz:1E3*(a.policy.Na&&-1!==l.D?l.D:l.info.duration),Or:1E3},IY:l.info.B})}a={md:e,Zn:f}}return null!=(c=a)?c:b};
n8a=function(a){if(null==(a=a.N))a=void 0;else{var b;a=null==(b=a.B)?void 0:b.info.D}return a};
o8a=function(a){var b;return null==(b=a.N)?void 0:b.D};
WY=function(a,b,c){c=void 0===c?!1:c;if(a.Sb){var d=a.Sb.Ke(),e=RK(d,b),f=NaN,h=RZ(a);h&&(f=RK(d,h.j.index.getStartTime(h.Pa)));if(e===f&&a.B&&a.B.B&&p8a(q8a(a),0))return b}a=r8a(a,b,c);return 0<=a?a:NaN};
XY=function(a,b){a.j.gg();var c=r8a(a,b);if(0<=c)return c;if(null!=(c=a.N)){var d=b;c.policy.hd||(c.SA=[]);q7a(c);c.j=m7a(c.md,1E3*d)}c=Math;d=c.min;var e=a.D;if(e.N)if(e=e.N,e.Lf&&3===e.Lf.type)e=e.Lf.startTime;else if(0<e.C){var f=e.j.index;f=g.Tb(f.offsets.subarray(0,f.count),e.C*e.chunkSize);e=e.j.index.getStartTime(0<=f?f:Math.max(0,-f-2))}else e=0;else e=Infinity;b=d.call(c,b,e);if(a.policy.B){var h,l;c=null==(h=a.ya.Sh())?void 0:null==(l=xY(h,b))?void 0:l.clipId;a.B=a.j.Oq(b,void 0,c).eb[0]}else a.B=
a.j.Oq(b).eb[0];UZ(a)&&a.Sb&&a.Sb.abort();a.Da=0;return a.B.startTime};
s8a=function(a){a.Z=!0;a.G=!0;a.K=-1;XY(a,Infinity)};
VZ=function(a){for(var b=0,c=g.u(a.C),d=c.next();!d.done;d=c.next())b+=HPa(d.value.info);return b+=Z7a(a.D)};
XZ=function(a,b){b=void 0===b?!1:b;var c=a.ya.getCurrentTime(),d=a.D.ao(),e=(null==d?void 0:d.info.D)||0;if(a.policy.B&&d&&d.info.clipId){var f,h=((null==(f=a.ya.Sh())?void 0:vY(f,d.info.clipId))||0)/1E3;e+=h}if(!a.Sb)return a.policy.C&&b&&!isNaN(c)&&d?e-c:0;if((f=RZ(a))&&WZ(a,f))return f.D;f=a.Sb.Ke(!0);return b&&d?(b=0,a.policy.C&&(b=TK(f,e+.02)),b+e-c):TK(f,c)};
t8a=function(a,b){if(a.C.length){if(a.C[0].info.eb[0].startTime<=b)return;VY(a)}for(var c=a.D,d=c.B.length-1;0<=d;d--)c.B[d].info.startTime>b&&c.B.pop();m8a(a);a.B&&b<a.B.startTime&&(a.Da=0,a.j.gg()?a.B=a.j.Oq(b,!0).eb[0]:a.B=null)};
u8a=function(a,b,c,d){VY(a);for(var e=a.D,f=null,h=e.B.length-1;0<=h;h--){var l=e.B[h];l.info.Pa>=b&&(e.B.pop(),e.C-=MQ(l,e.policy.rb),f=l.info)}f&&(e.G=0<e.B.length?e.B[e.B.length-1].info:e.Za,0!==e.B.length||e.G||R7a(e,"r"));e.ya.ma("mdstm",{rollbk:1,itag:f?f.j.info.itag:"",popped:f?f.Pa:-1,sq:b,lastslc:e.G?e.G.Pa:-1,lastfraget:e.C.toFixed(3)});d>c?XY(a,d):a.B=a.j.hs(b-1,!1).eb[0]};
ZZ=function(a,b){var c;for(c=0;c<a.C.length&&b!==a.C[c];c++);if(c===a.C.length)YZ(a,b);else{for(;c<a.C.length;)YZ(a,a.C.pop());var d=v8a(a);d&&d.j.mw()&&Ps(b.info.eb,function(e){return CPa(e,d)})?(a.B=d,a.policy.j&&a.ya.ma("cer",{lsr:"lsp",
lsp:d.Dd()})):(tQ(b.info.eb[0])?(a.B=b.Zf&&b.Zf.C?zPa(b.Zf.C):yPa(b.info.eb[0]),a.policy.j&&a.ya.ma("cer",{lsr:a.B.Dd(),lsp:null==d?void 0:d.Dd()})):(a.B=null,a.policy.j&&a.ya.ma("cer",{lsr:"null",lsp:null==d?void 0:d.Dd()})),a.ya.isOffline()&&!a.policy.fn||YZ(a,b,!0))}};
WZ=function(a,b){if(!b)return!1;if(a.policy.B){var c;if((a=null==(c=a.ya.Sh())?void 0:c.oa.getVideoData().clientPlaybackNonce)&&b.clipId!==a)return!1}return rQ(b)};
UZ=function(a){var b;!(b="f"===a.j.info.qb)&&(b=a.policy.D)&&(b=a.D,b=!!b.N&&GZ(b.N));if(b)return!0;b=RZ(a);if(!b)return!1;var c=WZ(a,b)&&b.hf;return a.isManifestless&&0<a.Ba?c||b.Pa>=a.Ba:c};
$Z=function(a){var b;return UZ(a)||WZ(a,null==(b=a.D.ao())?void 0:b.info)};
q8a=function(a){var b=[],c=RZ(a);c&&b.push(c);b=g.Kb(b,a.D.Cn());c=g.u(a.C);for(var d=c.next();!d.done;d=c.next()){d=d.value;for(var e=g.u(d.info.eb),f=e.next(),h={};!f.done;h={SF:void 0},f=e.next())h.SF=f.value,d.cP&&(b=g.Ht(b,function(l){return function(m){return!BPa(m,l.SF)}}(h))),(tQ(h.SF)||4===h.SF.type)&&b.push(h.SF)}a.B&&!sPa(a.B,g.Ab(b),a.B.j.wm())&&b.push(a.B);
return b};
p8a=function(a,b){if(!a.length)return!1;for(b+=1;b<a.length;b++)if(!tPa(a[b-1],a[b]))return!1;return!0};
r8a=function(a,b,c){c=void 0===c?!1:c;if(!a.B||!a.B.B)return NaN;a=q8a(a);a:{b+=.02;var d=c;d=void 0===d?!1:d;for(var e=-1,f=0;f<a.length;++f){var h=a[f];if(h.C<=b)if(d)e=f;else if(h.startTime+h.duration>=b){b=f;break a}}b=e}return 0>b?NaN:p8a(a,c?b:0)?a[b].startTime:NaN};
a_=function(a){return!(!a.B||a.B.j===a.j)};
w8a=function(a){return a_(a)&&a.j.gg()&&a.B.j.info.sb<a.j.info.sb};
x8a=function(a,b,c){var d=v8a(a);return d&&!WZ(a,d)?d.D>b&&d.D<b+c:!1};
v8a=function(a){var b=a.D.ao();return b?b.info:RZ(a)};
y8a=function(a){return(a=v8a(a))?a.Pa:-1};
VY=function(a){for(var b=g.u(a.C),c=b.next();!c.done;c=b.next())YZ(a,c.value);a.C=[];a.B=null};
z8a=function(a,b,c){b.cP&&((void 0===c?0:c)||!b.info.eb[0].j.mw())&&(a.logger.debug(function(){return"Rolling back request with segNum "+b.info.eb[0].Pa}),$7a(a.D))};
YZ=function(a,b,c){z8a(a,b,void 0===c?!1:c);b.dispose()};
A8a=function(a){return!!a.B&&-1!==a.B.Pa&&a.B.Pa<a.j.index.zn()};
B8a=function(a){var b=a.B;b&&-1===b.Pa&&(a=a.D.ao())&&tQ(a.info)&&(a=a.info.Pa,b.G="updateLastSliceRequested",b.Pa=a)};
C8a=function(a){return Ps(a.C,function(b){return b.UA})};
D8a=function(a,b){a.B&&(a.B.j=b)};
b_=function(a){var b=$Y(a);a=a.ya.Sh();var c;if(c=b&&a&&b.info.clipId){a:if(b=b.info.clipId,a.jS&&a.Jv&&a.Jv!==b)a=!1;else{if(b=a.Oj.get(b))if(b=b.getId().split(","),1<b.length)for(c=0;c<b.length;c++){var d=c<b.length-1?b[c+1]:"";if(a.ek.has(b[c])){a=b[c]===a.bf&&!a.ek.has(d);break a}}a=!0}c=!a}return c?!0:!1};
E8a=function(a){var b=RZ(a),c,d=null==(c=a.Sb)?void 0:c.Ke();c=NaN;b&&d&&UZ(a)&&(c=RK(d,(b.C+b.D)/2));return!isNaN(c)};
F8a=function(a){a=void 0===a?{}:a;var b=a.bj,c=a.Fj,d=a.Ed,e=a.Lv;this.Rj=a.Rj;this.bj=b;this.Fj=c;this.Ed=d;this.Lv=e};
K5a=function(a,b){if(0>b)return!0;var c=a.Ed();return b<c||b===c&&!a.Rj||b===c&&(a=a.Lv())&&b===a.Pa?!0:!1};
L5a=function(a,b,c){if(!K5a(a,b))return 0;if(!a.bj||!isNaN(c)&&0<c)return 2;if(0>b)return 1;c=a.Ed();return b<c||b===c&&(a=a.Lv())&&b===a.Pa&&!a.pending?2:1};
G8a=function(a,b,c){var d=a.Qv();if(a.isComplete()||!d||yQ(a.info.resource,b,c)||2>d)return 0;a=zQ(c,NPa(a.info.resource,!0,b));return a.j||a.timedOut||a.started?0:2};
H8a=function(a,b,c){if(!(b.Gp&&a.isComplete()&&a.canRetry()&&yQ(a.info.resource,b,c)))return 0;a=zQ(c,NPa(a.info.resource,!1,b));return a.B+b.Gp*LPa(a,!0)>(0,g.$C)()?0:1};
c_=function(a,b,c,d,e,f,h,l,m,n,p,q,r,t){t=void 0===t?null:t;g.I.call(this);var v=this;this.ya=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.kL=r;this.gi=t;this.qa=!1;this.GF="";this.Vk=null;this.Zg=NaN;this.Ba=!1;this.B=null;this.lh=this.Z=NaN;this.Lp=this.ra=this.K=0;this.logger=new g.YX("dash");this.pd={AP:function(w,A){return v.AP(w,A)}};
0<this.policy.Ro&&(this.GF=g.qE(this.policy.Ro));if(a=this.policy.uy)this.N=new g.lv(this.Ga,a,this),g.O(this,this.N)};
K8a=function(a,b,c){var d=b.B?b.B.j.resource:b.j.resource;var e=a.D,f;(f=!a.policy.BC)||(f=BP(d.j)===BP(d.C));f?d=!1:(e=zQ(e,BP(d.C)),f=6E4*Math.pow(e.D,1.6),(0,g.$C)()<e.B+f?d=!1:(e.B=(0,g.$C)(),e.D+=1,d.j=d.C.clone(),d=!0));d&&a.ya.ma("hostch",{},!0);if(I8a(a,b,c)){if(b.Z)a.manifest.isLive?(c=a.manifest.jf&&a.manifest.C?b.j.hs(a.manifest.jf,!1):b.j.Oq(Infinity),c.Zg=a.Zg):c=b.j.hs(0,!1),a.Y?0===c.Zg&&(c.G=a.Y.Z):c.G=a.Z;else if(d=b.B,d.j.gg()){e=d.D-a.ya.getCurrentTime();var h=!d.range||0===d.B&&
0===d.Rb?0:d.range.length-(d.Rb+d.B);f=d.j;a.AP(b,e)&&0===h&&(a.manifest.isManifestless?f=b.j:(f=d.startTime+J8a,d.B&&(f+=d.duration),XY(b,f),d=b.B,f=d.j));f.wm()?(h=a.C,e=s5a(a.G,f.info.sb,c.j.info.sb,e,0<h.D.length&&0===h.Z&&a.ya.Dp),c=d,f=a_(b),d=c.j.Zx(c,e),(e=d.C)&&1<d.eb.length&&(f||d.resource.B||d.eb[0].j!==c.j?d=c.j.Zx(c,d.eb[0].B):(f=d.eb[d.eb.length-1],h=f.B/e,!f.hf&&.4>h&&(d=c.j.Zx(c,e-f.B)))),c=d):(0>d.Pa&&(c=vQ(d),c.pr=""+b.C.length,a.ya.Uf()&&(c.sk="1"),c.snss=d.G,a.ya.ma("nosq",c)),
c=f.sC(d));if(a.policy.Ba)for(d=g.u(c.eb),e=d.next();!e.done;e=d.next())e.value.type=7}else d.j.wm()?(c=s5a(a.G,b.j.info.sb,c.j.info.sb,0),c=d.j.Zx(d,c)):c=d.j.sC(d);if(a.B){var l=c.eb[0].j.info.id;d=a.j;e=c.eb[0].Pa;d=0>e&&!isNaN(d.G)?d.G:e;e=Q6a(a.j,c.eb[0].C,d);var m=b===a.audioTrack?1:2;h=c.eb[0].j.info.qb;f=l.split(";")[0];a:{var n=a.j;if(n.j){var p=n.j.Ug.event;if(n.j.Pa===d){n="predictStart"===p?void 0:n.j.Ug.event;break a}if(n.j.Pa===d-1){n="start"===p||"continue"===p?p:void 0;break a}}n=
void 0}if(a.policy.Ga&&0!==a.j.B){var q=a.B.MI(e,d,l,m,h,n);0>d&&2===m&&tZ(a.j,0,0,!0);if(q){var r;l=(null==(r=q.Fm)?void 0:r.Hs)||"";var t;r=(null==(t=q.Fm)?void 0:t.w0)||-1;a.ya.ma("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.wz(e,d,l,m,h,n),0>d&&2===m&&tZ(a.j,0,0,!0),t){r={dec_sq:d,itag:f,st:e.toFixed(3)};if(a.policy.KC&&b.isRequestPending(d-1)){a.ya.ma("sdai",{wt_daistate_on_sg:d-1});return}a.ya.ma("sdai",r);t&&(c.j=new g.zP(t));a.policy.j&&(t=c.resource.CI("id")||
"",r=(null==(q=c.j)?void 0:q.get("id"))||"",t!==r&&a.ya.ma("stmidmismatch",{cid:t,aid:r}))}else 5!==a.j.B&&a.ya.ma("sdai",{nodec_sq:d,itag:f,st:e.toFixed(3)})}a.policy.Fl&&-1!==c.eb[0].Pa&&c.eb[0].Pa<a.manifest.jf&&(c=b.j.hs(a.manifest.jf,!1));j8a(b,d_(a,c));qZ(a.timing);a.N&&(a.ra=0,g.mv(a.N))}};
I8a=function(a,b,c){if(a.policy.Re&&a.policy.wk)return!1;var d;var e=a.j,f=(null==(d=b.B)?void 0:d.Pa)||-1;3===e.B&&f+1>=e.D?(e.ma("sdai",{haltrq:f+1,est:e.D}),d=!1):d=2!==e.B;if(!d||!OPa(b.B?b.B.j.resource:b.j.resource,a.policy,a.D)||a.ya.isSuspended&&(!ER(a.schedule)||a.ya.WH))return!1;if(a.policy.D&&5<=CS)return g.mv(a.ya.KE),!1;if(a.manifest.isManifestless){if(0<b.C.length&&b.B&&-1===b.B.Pa||b.C.length>=a.policy.Tm||!a.policy.vC&&0<b.C.length&&!a.policy.Z.bj)return!1;if(b.Z)return!a.manifest.isLive||
!isNaN(a.Zg)}if(C8a(b))return a.logger.debug("Pending request with server-selectable format found"),!1;if(!b.B){if(!b.j.gg())return!1;XY(b,a.ya.getCurrentTime())}if($Y(b)&&(b.ao()!==$Y(b)||a.ya.isSuspended))return!1;e=(d=a.policy.ly)&&!b.C.length&&XZ(b,!0)<Math.min(d,XZ(c));d=b.C.length+c.C.length;f=!a.policy.wy&&((b.C.length?b.C[0].nw():!1)||(c.C.length?c.C[0].nw():!1)||a.manifest.isLive);(e||f)&&--d;if(d+1>=a.policy.Lo)return!1;d=b.B;if(!d)return!0;4===d.type&&d.j.gg()&&(b.B=g.Ab(d.j.lB(d)),d=b.B);
if(!rQ(d)&&!d.j.gs(d))return!1;f=a.manifest.Zd||a.manifest.C;if(a.manifest.isManifestless&&f){f=b.j.index.Ed();var h=c.j.index.Ed();f=Math.min(f,h);if(0<b.j.index.uI()&&0<f&&d.Pa>=f)return b.Ba=f,c.Ba=f,!1}if(d.j.info.audio&&4===d.type||rQ(d))return!1;f=!b.G&&!c.G;if(e=!e)e=d.D,e=!!(c.B&&!WZ(c,c.B)&&c.B.D<e);h=b===a.videoTrack&&a.policy.Ba;return e&&(!a.manifest.isManifestless||c.B&&c.B.D&&d.D)&&f&&!h||a.policy.Za&&!b.G&&c.G?!1:tQ(d)&&d.D>L8a(a,b)?(L8a(a,b),!1):(a=b.Sb)&&a.isLocked()?!1:!0};
L8a=function(a,b){var c=a.j;c=c.j?c.j.Ug:null;if(a.policy.Ba&&c)return c.startSecs+c.rh+15;b=e_(a.ya,b);0<a.policy.bb&&(c=((0,g.$C)()-a.ya.Hp)/1E3,b=Math.min(b,a.policy.bb+a.policy.Pf*c));c=a.ya.getCurrentTime()+b;return a.policy.yp&&(b=M8a(a.ya)+a.policy.yp,b<c)?(a.ya.ma("mrl",{ori:c,mod:b},!0),a.policy.vA&&(a=a.ya,c=(0,g.$C)(),a.Hp=c),b):c};
N8a=function(a,b,c){if(0!==c){a:if(b=b.info,c=2===c,b.j)b=null;else{var d=b.eb[0];if(b.range)var e=oQ(b.range.start,Math.min(4096,b.C));else{if(b.B&&0<=b.B.indexOf("/range/")||"1"===b.resource.CI("defrag")||"1"===b.resource.CI("otf")){b=null;break a}e=oQ(0,4096)}e=new wQ([new qQ(5,d.j,e,"createProbeRequestInfo"+d.G,d.Pa)],b.B);e.K=c;e.j=b.j;b=e}b&&d_(a,b)}};
d_=function(a,b){a.ya.SI(b);var c=HPa(b);c={xd:a.schedule,sD:c,ZQ:q5a(a.G,c),gp:sQ(b.eb[0]),Is:CP(b.resource.j)||b.Mn(),WN:a.policy.j,mx:function(e,f){a.ya.KF(e,f)}};
a.Vk&&(c.Pa=b.eb[0].Pa,c.Zg=b.Zg,c.Vk=a.Vk);var d={tv:IPa(b,a.ya.getCurrentTime()),vF:a.policy.Sc&&xQ(b)&&b.eb[0].j.info.video?j7a(a.C):void 0,vG:a.policy.Ba,poToken:a.ya.DI(),Zw:a.ya.Dz(),GF:a.GF,lh:isNaN(a.lh)?null:a.lh,gi:a.gi,kL:a.kL,Lp:a.Lp};return new UY(a.policy,b,c,a.D,function(e,f){try{a:{var h=e.info.eb[0].j,l=h.info.video?a.videoTrack:a.audioTrack;if(!(2<=e.state)||e.isComplete()||e.Qv()||!(!a.ya.Qa||a.ya.isSuspended||3<XZ(l))){var m=G8a(e,a.policy,a.D);1===m&&(a.Ba=!0);N8a(a,e,m);if(e.isComplete()||
e.Ma()&&3>f){if(a.policy.j){var n=e.timing.Wr();n.rst=e.state;n.strm=e.xhr.EB();n.cncl=e.xhr&&e.Gd.C?1:0;e.Mn()&&(n.shost=BP(e.ge.base),n.pb=e.info.C);a.ya.ma("rqs",n)}e.f0&&a.ya.ma("sbwe3",{},!0)}if(!a.Ma()&&2<=e.state){K6a(a.timing,e,h);var p=a.ya;a.lh&&e.yH&&p&&(a.lh=NaN,a.ya.dS(e.yH),a.ya.yN(),a.ya.ma("cabrUtcSeek",{mediaTimeSeconds:e.yH}));e.pB&&(0<e.kp&&a.ya.ma("sError",{errorHttpResponseCode:e.kp.toString()}),a.lh&&e.pB&&!e.pB.action&&(a.ya.DJ(a.lh),a.lh=NaN,a.ya.ma("cabrUtcSeekFallback",{targetUtcTimeSeconds:a.lh})));
a.policy.wk&&e.cq&&a.ya.Bm(e.cq);a.policy.Gb&&(a.Lp=e.Lp);if(3===e.state){ZZ(l,e);xQ(e.info)&&f_(a,l,h,!0);if(a.B){var q=e.info.wz();q&&a.B.Ok(e.info.eb[0].Pa,h.info.id,q,e.info.eb[0].startTime)}a.ya.rf()}else if(e.isComplete()&&5===e.info.eb[0].type){if(4!==e.state)e.tm()&&a.ya.handleError(e.Xg(),e.Jq());else{var r=(e.info.eb[0].j.info.video?a.videoTrack:a.audioTrack).C[0]||null;r&&r instanceof UY&&r.Qv()&&r.JB(!0)}e.dispose()}else{e.tm()||O8a(a,e);var t;(null==(t=e.kA)?0:t.itagDenylist)&&a.ya.XJ(e.kA.itagDenylist);
if(4===e.state)P8a(a,e),a.j&&O6a(a.j,e.info,a.B);else if(a.policy.Eu&&e.Yk()&&!e.isComplete()&&!P8a(a,e)&&!e.tm())break a;e.tm()&&(a.gt(e),isNaN(a.lh)||(a.ya.DJ(a.lh),a.lh=NaN));a.ya.rf();var v=H8a(e,a.policy,a.D);N8a(a,e,v)}}}}}catch(w){f=a.qa?1:0,a.qa=!0,e=pK(f),f=qK(w,f),a.ya.handleError(f.errorCode,f.details,f.severity),e||a.ya.Jk()}},d)};
O8a=function(a,b){if(b.UA&&2<=b.state&&3!==b.state){var c=b.xhr.getResponseHeader("X-Response-Itag");if(c){a.logger.debug(function(){return"Applying streamer-selected format "+c});
var d=i7a(a.C,c),e=b.info.C;e&&(e-=d.BO(),d.C=!0,b.info.eb[0].j.C=!1,r6a(b,d.Pv(e)),g_(a.ya,a.videoTrack,d),D8a(a.videoTrack,d),a.ya.VQ(d.info.video.quality),(e=b.JO())&&d.info.lastModified&&d.info.lastModified!==+e&&ZZ(a.videoTrack,b))}else b.UA=!1}};
P8a=function(a,b){if(a.policy.useUmp&&b.Ma())return!1;try{var c=b.info.eb[0].j,d=c.info.video?a.videoTrack:a.audioTrack;if(a.manifest.isManifestless&&d){a.K=0;d.Z&&(b.Ma(),b.isComplete()||b.Yk(),d.Z=!1);b.nO()&&a.ya.JH.Lj(1,b.nO());var e=b.uI(),f=b.dX();$Qa(a.manifest,e,f)}if(b.info.gp()&&!EPa(b.info))for(var h=g.u(b.Ak()),l=h.next();!l.done;l=h.next())l8a(d,l.value);for(a.ya.getCurrentTime();d.C.length&&4===d.C[0].state;){var m=d.C.shift();k8a(d,m);d.La=m.YW()}d.C.length&&k8a(d,d.C[0]);var n=!!$Y(d);
n&&b instanceof TY&&(c.info.yh()?D6a(a.timing):C6a(a.timing));return n}catch(p){b=b.Jq();b.origin="hrhs";a:{a=a.ya;c=p;if(c instanceof Error){b.msg||(b.msg=""+c.message);b.name||(b.name=""+c.name);if(c instanceof g.AC&&c.args)for(d=g.u(Object.entries(c.args)),e=d.next();!e.done;e=d.next())f=g.u(e.value),e=f.next().value,f=f.next().value,b["arg"+e]=""+f;g.eF(c);if("WARNING"===c.level){a.oa.zo(b);break a}}a.handleError("fmt.unplayable",b,1)}return!1}};
Q8a=function(a){var b=a.videoTrack.j.index;a.Vk=new F8a({Rj:a.policy.Rj,bj:a.policy.Z.bj,Fj:b.Fj,Ed:function(){return b.Ed()},
Lv:function(){return b.Lv()}})};
f_=function(a,b,c,d){if(!(c.gg()||c.dA()||c.C||!OPa(c.resource,a.policy,a.D)||"f"===c.info.qb||a.policy.C)){if(d){d=a.G;var e=c.info;d=r5a(d,e.video?d.policy.Pu:d.policy.yl,e.sb)}else d=0;d=c.Pv(d);a=d_(a,d);EPa(d)&&j8a(b,a);c.C=!0}};
h_=function(a,b,c,d,e,f,h){g.I.call(this);var l=this;this.ya=a;this.mf=b;this.videoTrack=c;this.audioTrack=d;this.manifest=e;this.N=f;this.Ba=h;this.B=KS;this.ra=!1;this.logger=new g.YX("sabr");this.qa=this.Y=!1;this.videoInfos=this.G=this.N.videoInfos;this.D=this.Z=this.N.j;this.j=new wZ(b,f,function(m,n){l.ya.ma(m,n)});
R8a(this)};
S8a=function(a,b){var c=[];b=g.u(b);for(var d=b.next();!d.done;d=b.next())c.push(IK(d.value,a.manifest.dc));return c};
W8a=function(a,b){a.logger.debug("setConstraint: "+oP(b));a.mf.B&&(a.qa="m"===b.reason||"l"===b.reason?!0:!1);"m"===b.reason?b.isLocked()&&T8a(a,b.j):U8a(a,b)?V8a(a,b.B,b.j):a.videoInfos=a.G;a.B=b};
U8a=function(a,b){return a.mf.Ol&&"b"===b.reason||a.mf.CC?!1:a.mf.iy?!0:"l"===b.reason||"b"===b.reason||"o"===b.reason};
X8a=function(a,b){return b.isLocked()&&a.j.B||void 0===a.B?!1:hOa(b,a.B)};
Y8a=function(a,b){var c,d=null==(c=a.C)?void 0:c.info.video.j;return a.ra?!0:a.C?b!==d?!0:!a.j.B||a.mf.eg&&a.j.j===a.C.info.itag?!1:!0:!1};
T8a=function(a,b){var c=a.j.j;if(c){a.videoInfos=a.G;var d=g.Db(a.videoInfos,function(e){return e.id===c});
d&&d.video.j===b?a.videoInfos=[d]:(d=a.videoInfos.map(function(e){return e.id}),a.ya.ma("sabrpf",{pfid:""+c,
vfids:""+d.join(".")}),V8a(a,b,b),zZ(a.j,""))}else V8a(a,b,b)};
V8a=function(a,b,c){a.videoInfos=a.G;a.videoInfos=g.Ht(a.videoInfos,function(d){return d.video.j>=b&&d.video.j<=c})};
R8a=function(a){var b=null;if(b=a.mf.Mx?T6a(a.j,a.Ba):g.Db(a.Z,function(c){var d;return!(null==(d=c.kc)||!d.isDefault)}))a.D=[b]};
Z8a=function(a,b){return a.map(function(c){return JK(c,b)})};
$8a=function(a){var b;if(null==(b=a.B)?0:b.isLocked())return a.videoInfos;var c=yZ(a.j);b=g.Ht(a.videoInfos,function(d){return d.sb>a.mf.sb?!1:!c.has(d.id)});
S6a(a.j)&&(b=g.Ht(b,function(d){return 854>=d.video.width&&480>=d.video.height}));
return b};
a9a=function(a){var b="";if(!a)return b;a=g.u(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};
b9a=function(a,b){return(null==a?void 0:a.maxWidth)>(null==b?void 0:b.maxWidth)||(null==a?void 0:a.maxHeight)>(null==b?void 0:b.maxHeight)};
c9a=function(a,b){for(var c=g.u(b.keys()),d=c.next();!d.done;d=c.next())if(d=b.get(d.value),0!==d.length){g.Wb(d,function(l,m){return m.maxFramerate-l.maxFramerate});
for(var e=[d[0]],f=0,h=1;h<d.length;h++)b9a(d[h],e[f])&&(e.push(d[h]),f++);a=a.concat(e)}return a};
g9a=function(a,b){var c={},d=a.oa,e=a.Ea,f=d.getVideoData(),h=fP(0),l=d.getPlayerSize(),m=d.getVisibilityState();h&&(c.a9=h,c.lastManualDirection=RNa(),h=Jqa()||0,0<h&&(h=(e.L("html5_use_date_now_for_local_storage")?Date.now():(0,g.$C)())-h,e.L("html5_use_date_now_for_local_storage")?0<h&&(c.timeSinceLastManualFormatSelectionMs=h):c.timeSinceLastManualFormatSelectionMs=h));c.bda=fP();if(e.schedule.Ga){var n;h=e.L("html5_disable_bandwidth_cofactors_for_sabr_live")?!(null==(n=a.mf)||!n.Mh):!1;c.c6=
DR(e.schedule,!h)}n=g.YR();var p=g.xK.medium,q=Math.floor(16*p/9);h=f.Rk()?p:q;p=f.Rk()?q:p;c.o6=Math.max(l.width*n,h);c.n6=Math.max(l.height*n,p);c.visibility=m;c.qda=tE();c.R6=1E3*g.TM(d.lc().provider);e.L("html5_sabr_support_quality_constraints")&&a.Xy&&(c.Xy=a.Xy);e.L("html5_enable_sabr_drm_hd720p")&&a.sabrLicenseConstraint&&(c.sabrLicenseConstraint=a.sabrLicenseConstraint);if(e.L("html5_enable_platform_backpressure_with_sabr")){if(c.Gv=3,a.QF||(c.Gv^=1),!a.UF||aT(f))c.Gv^=2}else{if(e.L("html5_onesie_media_capabilities")||
e.L("html5_enable_server_format_filter"))c.Gv=3;e.L("html5_onesie_audio_only_playback")&&aT(f)&&(c.Gv=1)}l=f.Ie?f.Ie:bT(f);if(e.L("html5_onesie_media_capabilities")){m=e.G;n=[];h=[];p=e.L("html5_shorts_onesie_mismatched_fix");f=f.Rk();var r=MX.concat(M2a);p&&(r=MX.concat(N2a));e.L("html5_early_media_for_drm")&&(r=r.concat(O2a),e.L("allow_vp9_1080p_mq_enc")&&r.push(P2a));q=[].concat(g.qa(Q2a));l.Z&&(q[0]=["141"]);r=g.u(r);for(var t=r.next();!t.done;t=r.next()){t=g.u(t.value);for(var v=t.next();!v.done;v=
t.next()){v=v.value;var w=D2a(v,f&&p);if(w&&w.video){var A=g.YI(e.experiments,"html5_drm_byterate_soft_cap");if(!(0<A&&gDa(w)&&w.sb>A)&&!0===sP(l,w,m)){n.push({videoCodec:d9a[BK[v]],maxWidth:w.video.width,maxHeight:w.video.height,maxFramerate:w.video.fps});break}}}}f=g.u(q);for(p=f.next();!p.done;p=f.next())for(p=g.u(p.value),q=p.next();!q.done;q=p.next())if(q=q.value,(r=F2a(q))&&r.audio&&(e.L("html5_onesie_51_audio")||!fDa(r)&&!FK(r))&&!0===sP(l,r,m)){h.push({audioCodec:e9a[BK[q]],numChannels:r.audio.numChannels});
break}c.mediaCapabilities={videoFormatCapabilities:n,audioFormatCapabilities:h}}var C;if(null==(C=a.mf)?0:C.C&&C.Om){h=e.G;b&&b("ssap",{clientCapabilities:uP(h)});C=[];m=[];n=new Map;if((f=h.j)&&0<f.size)for(f=g.u(f.values()),p=f.next();!p.done;p=f.next())q=p.value,q.yh?m.push({audioCodec:e9a[q.qb],numChannels:q.numChannels,spatialCapabilityBitmask:f9a[q.qb]}):(r=d9a[q.qb],p={videoCodec:r,maxWidth:q.maxWidth||0,maxHeight:q.maxHeight||0,maxFramerate:q.maxFramerate||0,is10BitSupported:q.oE||!1},q.maxBitrateBps&&
(p.maxBitrateBps=q.maxBitrateBps,t=D2a(q.itag),v=void 0,(null==(v=t)?0:v.video)&&!0===sP(l,t,h)&&(t=8*t.sb,t>p.maxBitrateBps&&(p.maxBitrateBps=t))),q=r+"_"+q.oE,r=n.get(q)||[],r.push(p),n.set(q,r));C=c9a(C,n);if(b){h="";if(n)for(f=g.u(n.keys()),p=f.next();!p.done;p=f.next())p=p.value,h+=p+"-"+a9a(n.get(p))+";";n=h;h=a9a(C);f="";if(m)for(p=g.u(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(null==(F=a.mf)?0:F.C){c.jo=l.jo;var G;c.gj=null==(G=a.mf)?void 0:G.gj}e.Tf&&(c.O6=e.Tf);c.lR=a.fD;if(e.L("html5_fix_time_since_last_seek_reporting")?void 0!==a.Hp:a.Hp)c.rda=(0,g.$C)()-a.Hp;a.isPrefetch&&e.L("html5_report_prefetch_requests")&&(c.isPrefetch=!0);oR||(c.B9=!0);b=1E3*CR(e.schedule);0<b&&(c.t6=b);var L;(null==(L=a.mf)?0:L.Qp)&&a.Lw&&Infinity>a.Lw&&(c.Lw=a.Lw);d=d.getPlaybackRate();
1!==d&&(c.playbackRate=d);var M;(null==(M=a.mf)?0:M.zb)&&a.Wp&&(c.uv=a.uv,c.Gx=a.Gx,c.Wp=a.Wp);return c};
i9a=function(a,b,c,d){b={playbackCookie:null==b?void 0:b.playbackCookie};d&&(b.rR=d);b.wL=[];if(g.BT(a)&&0<a.sabrContextUpdates.size){b.UK=[];d=g.u(a.sabrContextUpdates.values());for(var e=d.next();!e.done;e=d.next()){e=e.value;var f=e.type||0,h=void 0;(null==(h=c)?0:h.has(f))?b.UK.push(e):b.wL.push(f)}}a.Dy&&(b.Uca=a.Dy);c=a.U().j;b.clientInfo={clientName:h9a[c.c.toUpperCase()]||0};c.cbrand&&(b.clientInfo.deviceMake=c.cbrand);c.cmodel&&(b.clientInfo.deviceModel=c.cmodel);c.cver&&(b.clientInfo.clientVersion=
c.cver);c.cos&&(b.clientInfo.osName=c.cos);c.cosver&&(b.clientInfo.osVersion=c.cosver);a.Go&&(b.Go=a.Go);return b};
j9a=function(a,b,c){var d=a.manifest,e=a.oa.getVideoData(),f=g.BT(e),h=g9a({Ea:e.U(),oa:a.oa,fD:a.fD,mf:a.mf,Hp:a.Hp,Lw:a.Lw,uv:a.uv,Gx:a.Gx,Wp:a.Wp,isPrefetch:a.isPrefetch,QF:a.QF,UF:a.UF,Xy:a.Xy,sabrLicenseConstraint:e.sabrLicenseConstraint},c),l=i9a(e,a.nextRequestPolicy,a.pm,a.rR),m=a.eG,n=a.fG;if(void 0===n&&void 0===m){var p;n=d.dc;n=(m=null==(p=a.kN)?void 0:p.video)?[IK(m.info,n)]:[];var q;p=d.dc;m=(m=null==(q=a.kN)?void 0:q.audio)?[IK(m.info,p)]:[]}if(e.gi)var r=e.gi;e={zs:h,Zn:a.Zn,eG:m,
fG:n,videoPlaybackUstreamerConfig:r,jL:l};a.Fm&&(e.Fm=a.Fm);if(f&&b){f=new Map;var t=g.u(d.Ga);for(h=t.next();!h.done;h=t.next())h=h.value,(l=d.Da[EQa(d,h)]||"")?(f.has(l)||f.set(l,[]),f.get(l).push(h)):c&&c("ssap",{nocid4fmt:(h.itag||"")+"_"+(h.lmt||0)+"_"+(h.xtags||"")});d=new Map;t=g.u(a.md);for(h=t.next();!h.done;h=t.next())h=h.value,l=h.startTimeMs||0,q=void 0,r=null==(q=b)?void 0:xY(q,l),q=r.clipId,r=r.Wk,q?(d.has(q)||(n=f.get(q)||[],d.set(q,{clipId:q,md:[],gw:n})),0!==r&&(h.startTimeMs=l-r),
d.get(q).md.push(h)):c&&(q=void 0,c("ssap",{nocid4range:"1",fmt:(null==(q=h.formatId)?void 0:q.itag)||"",st:l.toFixed(3),d:(h.durationMs||0).toFixed(3),timeline:BY(b)}));e.tG=[];d=g.u(d.entries());for(f=d.next();!f.done;f=d.next())f=g.u(f.value),f.next(),f=f.next().value,e.tG.push(f);if(a.md.length&&!e.tG.length){if(c){e="";a=g.u(a.md);for(d=a.next();!d.done;d=a.next())d=d.value,h=t=f=void 0,e+="fmt."+((null==(f=d.formatId)?void 0:f.itag)||"")+"_"+((null==(t=d.formatId)?void 0:t.lmt)||0)+"_"+((null==
(h=d.formatId)?void 0:h.xtags)||"")+";st."+(d.startTimeMs||0).toFixed(3)+";d."+(d.durationMs||0).toFixed(3)+";";c("ssap",{nobfrange:"1",br:e,timeline:BY(b)})}return}a.tJ&&(e.tJ=a.tJ);a.rJ&&(e.rJ=a.rJ)}else e.md=a.md,e.gw=d.Ga,f&&0<(null==(t=a.md)?void 0:t.length)&&!b&&c&&c("ssap",{bldmistlm:"1"});return e};
i_=function(a,b,c){var d=this;this.requestType=a;this.resource=b;this.Cb=c;this.C=null;this.pd={Lob:function(){var e;return null==(e=d.data)?void 0:e.isPrefetch}}};
k9a=function(a,b,c){if(a.Bt())return!0;a.data=b;a.B=j9a(b,c,function(d,e){var f;null==(f=a.Cb)||f.Am(d,e)});
if(!a.B)return!1;a.C=g.uO(a.B,j6a);return!0};
z6a=function(a,b,c){void 0===a.j&&(a.j=yQ(a.resource,b,c));return a.j};
l9a=function(a){var b,c;return(null==(b=a.B)?void 0:null==(c=b.zs)?void 0:c.lR)||0};
m9a=function(a){var b={},c=[],d=[];if(!a.data)return b;for(var e=0;e<a.data.md.length;e++){var f=a.data.md[e],h=void 0;c.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_st."+(f.startTimeMs+"_e."+(f.startTimeMs+f.durationMs)+"_d."+f.durationMs)+("_sn."+f.Jm)+("_en."+f.Oi))}for(e=0;e<a.data.Zn.length;e++){f=a.data.Zn[e];var l=h=void 0,m=void 0,n=void 0;d.push("i."+(null==(h=f.formatId)?void 0:h.itag)+"_sn."+f.sequenceNumber+"_sl."+(f.Dj||NaN)+"_lb."+f.IY+"_tr.s_"+(null==(l=f.mI)?void 0:l.Ng)+"_d_"+
(null==(m=f.mI)?void 0:m.oz)+"_t_"+(null==(n=f.mI)?void 0:n.Or))}b.ptime=l9a(a);b.rtype=a.requestType;b.brl=c.join(";");b.ps=d.join(";");return b};
j_=function(a,b){g.I.call(this);this.j=a;this.Id=b;this.iv=(0,g.mZ)(pE(16))};
n9a=function(a,b){var c;return g.H(function(d){(0,g.$C)();c=FRa(a.j);return d.return(c.encrypt(b,a.iv))})};
o9a=function(a,b){var c;return g.H(function(d){(0,g.$C)();var e=a.j;e.D||(e.D=new JIa(e.C));c=e.D;return d.return(MIa(c,b,a.iv))})};
p9a=function(a,b,c){var d;return g.H(function(e){(0,g.$C)();d=FRa(a.j);return e.return(d.decrypt(b,c))})};
q9a=function(a){if(a.B)return a.B;if(a.Id){var b=new uR(a.Id,a.j.j);g.O(a,b);a.B=b}else a.B=new tR(a.j.j);return a.B};
r9a=function(a){this.Cm=a;this.B=!1;this.j=[]};
l_=function(a){for(;a.j.length&&!a.j[0].isEncrypted;){var b=a.j.shift(),c=b.videoId,d=b.Ap,e=b.formatId,f=b.buffer;b=b.m7;if(f)b=void 0,null==(b=k_(a.Cm.jd,c))||H3a(b,d,e,f);else if(b)a.Cm.jd.Op(c,d,e);else if(d=a.Cm,d.j[e].OX=!0,c=k_(d.jd,c),null==c?0:c.Wc.has(e))null==c||y3a(c,e)}};
g.u9a=function(a){this.data=a;this.j=0;this.D=!1;this.C=0;this.error=!1;this.register=this.B=0;if(0===m_.length){m_.length=288;m_.fill(8);for(a=144;280>a;a++)m_[a]=255>=a?9:7;s9a.length=32;s9a.fill(5);n_.length=286;n_.fill(0);for(a=261;285>a;a++)n_[a]=Math.floor((a-261)/4);o_[257]=3;for(a=258;285>a;a++){var b=o_[a-1];b+=1<<n_[a-1];o_[a]=b}o_[285]=258;for(a=0;30>a;a++)t9a[a]=3>=a?0:Math.floor((a-2)/2);for(a=p_[0]=1;30>a;a++)b=p_[a-1],b+=1<<t9a[a-1],p_[a]=b}a=100+7*this.data.length;31===this.data[0]&&
139===this.data[1]&&(a=(new DataView(this.data.buffer,this.data.byteOffset+this.data.length-4)).getUint32(0,!0),this.data=this.data.subarray(10,this.data.length-8));this.output=new Uint8Array(a)};
g.A9a=function(a){for(;!a.D&&!a.error;){var b=a;b.D=!!q_(b,1);switch(q_(b,2)){case 2:var c=[],d=[];d.length=19;d.fill(0);var e=q_(b,5)+257;var f=q_(b,5)+1;for(var h=q_(b,4)+4,l=0;l<h;l++)d[v9a[l]]=q_(b,3);d=w9a(d);for(h=e+f;c.length<h;){l=x9a(b,d);switch(l){case 16:l=c[c.length-1];var m=q_(b,2)+3;break;case 17:l=0;m=q_(b,3)+3;break;case 18:l=0;m=q_(b,7)+11;break;default:m=1}for(;0<m;m--)c.push(l)}c.length!==h?b.error=!0:(f=c.slice(-f),c.length=e,y9a(b,c,f));break;case 1:y9a(b,m_,s9a);break;case 0:z9a(b,
b.j&7);c=q_(b,16);e=q_(b,16);65535!==(c^e)&&(b.error=!0);b.output.set(b.data.subarray(b.B,b.B+c),b.C);b.B+=c;b.C+=c;break;default:b.error=!0}a.C>a.output.length&&(a.output=new Uint8Array(2*a.C),a.C=0,a.B=0,a.D=!1,a.j=0,a.register=0)}a.output.length!==a.C&&(a.output=a.output.subarray(0,a.C));return a.error?new Uint8Array(0):a.output};
y9a=function(a,b,c){b=w9a(b);c=w9a(c);for(var d=a.data,e=a.output,f=a.C,h=a.register,l=a.j,m=a.B;;){if(15>l){if(m>d.length){a.error=!0;break}h|=(d[m+1]<<8)+d[m]<<l;m+=2;l+=16}var n=b[h&127];if(0>n)for(h>>=7;0>n;)n=b[(h&1)-n],h>>=1;else h>>=n&15;l-=n&15;n>>=4;if(256>n)e[f++]=n;else if(a.register=h,a.j=l,a.B=m,256<n){h=o_[n];h+=q_(a,n_[n]);m=x9a(a,c);l=p_[m];l+=q_(a,t9a[m]);if(B9a&&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};
x9a=function(a,b){if(7>a.j){var c=a.data,d=a.B;d>c.length&&(a.error=!0);a.register|=(c[d+1]<<8)+c[d]<<a.j;a.B+=2;a.j+=16}c=b[a.register&127];if(0<=c)return z9a(a,c&15),c>>4;for(z9a(a,7);0>c;)c=b[q_(a,1)-c];return c>>4};
q_=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};
z9a=function(a,b){a.j-=b;a.register>>=b};
w9a=function(a){for(var b=[],c=g.u(a),d=c.next();!d.done;d=c.next())d=d.value,b[d]||(b[d]=0),b[d]++;var e=b[0]=0;c=[];var f=0;d=0;for(var h=1;h<b.length;h++)b[h]?d=h:b[h]=0,e=e+b[h-1]<<1,c[h]=e,7<h&&(f+=b[h]);for(e=1;e<f;)e<<=1;b=128;d=new Int16Array(128+2*(e+d));for(f=0;f<a.length;f++)if(h=a[f]){for(var l=c[h]++,m=e=0;m<h;m++)e=e<<1|l>>m&1;l=f<<4|h;if(7>=h)for(m=1<<7-h;m--;)d[m<<h|e]=l;else{m=e&127;h-=7;for(e>>=7;h--;){d[m]||(d[m]=-b,b+=2);var n=e&1;e>>=1;m=n-d[m]}d[m]=l}}return d};
C9a=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t;return g.H(function(v){switch(v.j){case 1:if(b)try{c=b.exports.malloc(a.length);(new Uint8Array(b.exports.memory.buffer,c,a.length)).set(a);d=b.exports.getInflatedSize(c,a.length);e=b.exports.malloc(d);if(f=AV.al(b.Xq?"gza":"gzw",function(){return b.exports.inflateGzip(c,a.length,e)}))throw Error("inflateGzip="+f);
h=new Uint8Array(d);h.set(new Uint8Array(b.exports.memory.buffer,e,d));b.exports.free(e);b.exports.free(c);return v.return(h)}catch(w){g.dF(w)}if(!("DecompressionStream"in window))return AV.isActive()?v.return(AV.al("gzj",function(){return g.A9a(new g.u9a(a))})):v.return(g.A9a(new g.u9a(a)));
l=new DecompressionStream("gzip");m=l.writable.getWriter();m.write(a);m.close();n=l.readable.getReader();p=new JN([]);if(AV.isActive())return v.return(AV.al("gzn",function(){var w,A,C;return g.H(function(F){if(1==F.j)return g.z(F,n.read(),5);if(4!=F.j){w=F.B;A=w.value;if(C=w.done)return F.Ia(4);p.append(A);return F.Ia(1)}return F.return(MN(p))})}));
case 2:return g.z(v,n.read(),5);case 5:q=v.B;r=q.value;if(t=q.done){v.Ia(4);break}p.append(r);v.Ia(2);break;case 4:return v.return(MN(p))}})};
D9a=function(a){nZ.call(this,"onesie");this.jd=a;this.j={};this.D=!0;this.C=null;this.queue=new r9a(this);this.G={}};
E9a=function(a){var b=a.queue;b.j.length&&b.j[0].isEncrypted&&!b.B&&(b.j.length=0);b=g.u(Object.keys(a.j));for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.j[c];if(!d.OX){var e=a.queue;e.j.push({videoId:d.videoId,formatId:c,isEncrypted:!1});e.B||l_(e)}}};
G9a=function(a,b){var c=b.getLength(),d=!1;switch(a.C){case 0:a.NQ(b,a.D).then(function(f){var h=a.jd;h.Td("oprr");h.playerResponse=f;h.UP||(h.VF=!1);r_(h)},function(f){a.jd.lj(f)});
break;case 2:a.Td("ormk");b=MN(b);var e;a.queue.decrypt(b,!F9a(a.jd),null==(e=a.jd.U())?void 0:e.Id);break;default:d=!0}a.jd.nm&&a.jd.ma("ombup","id.11;pt."+a.C+";len."+c+(d?";ignored.1":""));a.C=null};
H9a=function(a){return new Promise(function(b){setTimeout(b,a)})};
I9a=function(a,b){var c=pR(b.W.experiments,"debug_bandaid_hostname");if(c)b=HX(b,c);else{var d;b=null==(d=b.j.get(0))?void 0:d.location.clone()}if((d=b)&&a.videoId){b=vR(a.videoId);a=[];if(b)for(b=g.u(b),c=b.next();!c.done;c=b.next())a.push(c.value.toString(16).padStart(2,"0"));d.set("id",a.join(""));return d}};
J9a=function(a,b,c){c=void 0===c?0:c;var d,e;return g.H(function(f){if(1==f.j)return d=[],d.push(b.load()),0<c&&d.push(H9a(c)),g.z(f,Promise.race(d),2);e=I9a(a,b);return f.return(e)})};
K9a=function(a,b,c,d){d=void 0===d?!1:d;a.set("cpn",b.clientPlaybackNonce);a.set("opr","1");var e=b.U();a.set("por","1");BN()||a.set("onem","1");0<b.startSeconds&&a.set("osts",""+b.startSeconds);d||(e.L("html5_onesie_disable_partial_segments")&&a.set("oses","1"),c?(b=c.audio,a.set("pvi",c.video.join(",")),e.L("html5_onesie_disable_audio_bytes")||a.set("pai",b.join(",")),oR||a.set("osh","1")):(a.set("oad","0"),a.set("ovd","0"),a.set("oaad","0"),a.set("oavd","0")))};
L9a=function(a,b,c,d,e){e=void 0===e?!1:e;var f=b.vl,h="https://youtubei.googleapis.com/youtubei/"+f.innertubeApiVersion+"/player";f.pP&&d||(h=h+"?key="+f.innertubeApiKey);f=[{name:"Content-Type",value:"application/json"}];d&&f.push({name:"Authorization",value:"Bearer "+d});f.push({name:"User-Agent",value:g.pc()});g.cB("EOM_VISITOR_DATA")?f.push({name:"X-Goog-EOM-Visitor-Id",value:g.cB("EOM_VISITOR_DATA")}):(c=c.visitorData||g.cB("VISITOR_DATA"))&&f.push({name:"X-Goog-Visitor-Id",value:c});(b=pR(b.experiments,
"debug_sherlog_username"))&&f.push({name:"X-Youtube-Sherlog-Username",value:b});a=WIa(JSON.stringify(a));return{url:h,hP:f,postBody:a,Zba:e,BB:e}};
N9a=function(a,b,c,d,e,f){var h=g.uO(a,wXa,a.BB?void 0:c.Id),l={encryptedClientKey:b.j.encryptedClientKey,e0:!0,DW:!0,VN:M9a(c,!!a.BB),G1:c.experiments.jb("html5_use_jsonformatter_to_parse_player_response")};if(a.BB)l.Fda=h;else{a=b.encrypt(h);var m;a=(null==(m=c.Id)?void 0:rYa(m,a))||a;m=l.FW=a;(0,g.$C)();m=IIa(new HIa(b.j.C),m,b.iv);l.ZX=m;l.iv=b.iv}b=d.getVideoData();c=g9a({Ea:c,oa:d,fD:1E3*b.startSeconds,QF:!0,UF:!0});return{qP:l,zs:c,onesieUstreamerConfig:e,Go:f,jL:i9a(b)}};
O9a=function(a,b,c){var d,e,f;return g.H(function(h){if(1==h.j)return d=g.uO(b,wXa),g.z(h,n9a(c,d),2);if(3!=h.j)return e=h.B,g.z(h,o9a(c,e),3);f=h.B;return h.return({FW:e,encryptedClientKey:c.j.encryptedClientKey,iv:c.iv,ZX:f,e0:!0,DW:!0,VN:M9a(a,!!b.BB),G1:a.experiments.jb("html5_use_jsonformatter_to_parse_player_response")})})};
P9a=function(a,b,c,d,e,f){var h,l,m;return g.H(function(n){if(1==n.j)return g.z(n,O9a(c,a,b),2);h=n.B;l=d.getVideoData();m=g9a({Ea:c,oa:d,fD:1E3*l.startSeconds,QF:!0,UF:!0});return n.return({qP:h,zs:m,onesieUstreamerConfig:e,Go:f,jL:i9a(l)})})};
M9a=function(a,b){a=DR(a.schedule,!0);b=b||!!BN()&&1572864<a;return"DecompressionStream"in window||!b};
t_=function(a,b){g.I.call(this);var c=this;this.oa=a;this.playerRequest=b;this.W=this.oa.U();this.videoData=this.oa.getVideoData();this.logger=new g.YX("onesie");this.nm=this.W.uc();this.NN=this.W.yl;this.oF=new j_(this.NN.j,this.W.Id);this.xhr=null;this.state=1;this.eq=new fL;this.TX=!1;this.playerResponse="";this.zl=new eZ(this);this.Cm=new D9a(this);this.JG=this.W.L("html5_onesie_check_timeout");this.tN=new g.lv(this.i6,500,this);this.pF=new g.lv(this.XO,1E4,this);this.kK=new g.lv(function(){if(!c.isComplete()){var d=
s_(c);c.lj(new oK("net.timeout",d))}},g.YI(this.W.experiments,"html5_onesie_request_timeout_ms"));
this.c_=new g.lv(this.u9,2E3,this);this.Xt="";this.hJ=this.qY=!1;this.Mz=this.oa.Dz();this.WQ="";this.VF=this.L("html5_onesie_wait_for_media_availability");this.enableCompression=this.UP=this.Wz=!1;this.xG=[];g.O(this.videoData,this);g.O(this,this.tN);g.O(this,this.pF);g.O(this,this.c_);g.O(this,this.oF);a=qR();oR&&a&&!this.W.L("html5_disable_onesie_media_bytes")&&(this.Ag=new Map);this.TW=new Map;this.pZ=new Map;this.N_=new Map};
k_=function(a,b){var c;return null==(c=a.Ag)?void 0:c.get(b)};
Q9a=function(a,b,c){var d;return g.H(function(e){if(1==e.j)return a.Td("oprd_s"),F9a(a)?g.z(e,p9a(a.oF,b,c),3):(d=a.oF.decrypt(b,c),e.Ia(2));2!=e.j&&(d=e.B);a.Td("oprd_c");return e.return(d)})};
R9a=function(a){return a.L("html5_onesie_host_probing")||a.nm?oR:!1};
r_=function(a){if(!a.playerResponse)return!1;if(a.Wz)return!0;var b=a.videoData.L("html5_onesie_audio_only_playback")&&aT(a.videoData);if(a.Ag&&a.VF){if(!a.Ag.has(a.Xt))return!1;var c=a.Ag.get(a.Xt),d;if(d=c){d=!1;for(var e=g.u(c.Wc.keys()),f=e.next();!f.done;f=e.next())if(f=c.Wc.get(f.value))for(var h=g.u(f.QE),l=h.next();!l.done;l=h.next())0<l.value.Fr&&(f.yh?d=!0:b=!0);d=!(b&&d)}if(d)return!1}a.Td("ofr");a.eq.resolve(a.playerResponse);if(!a.JG){var m;null==(m=a.kK)||m.start();a.pF.start()}return a.Wz=
!0};
T9a=function(a){if(a.Ag&&!a.L("html5_onesie_media_capabilities")){a.Td("ogsf_s");var b=R2a(a.oa.getVideoData(),function(d,e){a.ma(d,e)}),c=S9a(a.oa);
b.video=H2a(c,b.video);a.Td("ogsf_c");if(b.video.length)return b;a.ma("ombspf","l."+c.B+";u."+c.j+";o."+c.C+";r."+c.reason)}};
F9a=function(a,b){return a.L("html5_onesie_sync_request_encryption")||(null==b?0:b.BB)||g.aS(a.W)&&a.L("html5_embed_onesie_use_sync_encryption")?!1:!!BN()};
s_=function(a){if(!a.He)return{};var b=a.He.Wr();b.d=E5a(a.He);b.shost=a.b0;b.ty="o";return b};
U9a=function(a,b){var c,d;(d=null==(a=null==(c=a.Ag)?void 0:c.get(b)))||(b=a.B?!1:a.B=!0,d=!b);return!d};
V9a=function(a,b,c,d,e,f,h,l,m,n,p){g.I.call(this);var q=this;this.oa=a;this.ya=b;this.policy=c;this.audioTrack=d;this.videoTrack=e;this.manifest=f;this.xd=h;this.ra=l;this.D=m;this.timing=n;this.N=p;this.j=[];this.G={};this.Da=this.La=!1;this.pm=new Set;this.C=this.Ga=this.Y=this.Wp=0;this.Z=null;this.pd={tob:function(){return q.j},
Pnb:function(){return q.G},
enb:function(){q.j.length=0},
dob:function(){return q.pm},
Znb:function(){return q.Y},
Mpb:function(r){q.Y=r},
Rpb:function(r){q.C=r}};
this.videoData=this.oa.getVideoData()};
Y9a=function(a,b){b=void 0===b?!1:b;if(W9a(a,b)){a.policy.j&&a.ya.ma("sabrcrq",{create:1});var c=new i_(0,a.manifest.Na,a);0<a.policy.wd&&a.C++;b=X9a(a,c,b);a.policy.j&&a.ya.ma("sabrcrq",{enq:1,ql:a.j.length});a.j.push(b)}};
$9a=function(a,b){var c=TZ(a.audioTrack),d=TZ(a.videoTrack),e=[].concat(g.qa(c.md),g.qa(d.md)),f=[].concat(g.qa(c.Zn),g.qa(d.Zn)),h,l=(null==(h=a.ya)?void 0:h.jJ())&&(nT(a.videoData)||g.mT(a.videoData));h=a.policy.G&&l;l=a.ya.getCurrentTime()||0;if(a.ya.Dp){if(a.policy.Qm){var m=o8a(a.videoTrack);var n=o8a(a.audioTrack)}else a.policy.gy&&(m=n8a(a.videoTrack),n=n8a(a.audioTrack));var p=l,q=l;void 0!==m&&(p=m);void 0!==n&&(q=n);if(p<l||q<l)l=Math.min(p,q),a.ya.ma("sundrn",{vet:p,aet:q,lt:l})}m=a.ya.Lc()||
0;m=h?Number.MAX_SAFE_INTEGER:Math.ceil(1E3*(l+m));n=!u_(a,a.audioTrack);h=!u_(a,a.videoTrack);l=vR(a.ya.DI());var r,t;p=a.oa;q=a.manifest;var v=a.B,w=a.pm,A=a.policy,C=a.ya.Hp,F=1E3*M8a(a.ya),G=null==(r=a.Ba)?void 0:r.uv;r=null==(t=a.Ba)?void 0:t.Gx;var L;t=Number(null==(L=a.D.C)?void 0:L.info.itag)||0;var M;L=Number(null==(M=a.D.K)?void 0:M.info.itag)||0;b={oa:p,manifest:q,md:e,Zn:f,fD:m,nextRequestPolicy:v,pm:w,mf:A,Hp:C,Lw:F,uv:G,Gx:r,Wp:a.Wp,isPrefetch:b||a.ya.isSuspended,QF:n,UF:h,rR:l,tJ:t,
rJ:L};a.policy.Qf?(e=a.D,e=e.mf.B&&!e.Y?[]:S8a(e,e.D),b.eG=e,e=a.D,e.mf.B&&!e.qa?e=[]:(f=$8a(e),0===f.length&&(f=e.G),e=S8a(e,f)),b.fG=e):(a.SI(a.videoTrack.j),a.SI(a.audioTrack.j),b.kN=EZ(a.ra));a.policy.Ol&&(e=a.oa.kO().m_,b.Xy=e.j);if(a.policy.K){c=Z9a(a,c.md,d.md);var R;if(a=null==(R=a.Z)?void 0:R.KO(c))b.Fm=a}return b};
Z9a=function(a,b,c){var d=a.ya.getCurrentTime()||0;b=a$a(a,b,d);a=a$a(a,c,d);return Math.min(b,a)};
a$a=function(a,b,c){a=a.ya.Lc()||0;b=g.u(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};
W9a=function(a,b){if(0<a.policy.wd){var c=Math.floor((0,g.$C)()/1E4);if(c===a.Ga){if(a.C>=a.policy.wd){if(a.C===a.policy.wd){var d={reason:"toomanyrequests"};d.limit=a.C;a.ya.handleError("player.exception",d);a.C+=1}return!1}}else a.Ga=c,a.C=0}b=!b&&!ER(a.xd);if(a.ya.isSuspended&&(a.ya.WH||b)||a.qa&&(0,g.$C)()<a.qa||0<a.j.length||null==(d=a.manifest.Na)||!OPa(d,a.policy,a.G)||$Z(a.audioTrack)&&$Z(a.videoTrack))return!1;if(a.policy.jj&&a.policy.B&&a.K&&!a.ya.Sh())return a.Am("ssap",{pauseontlm:1}),
!1;if(a.policy.So&&u_(a,a.audioTrack)&&u_(a,a.videoTrack))return a.policy.j&&a.ya.ma("sabrHeap",{a:""+VZ(a.audioTrack),v:""+VZ(a.videoTrack)}),!1;if(!a.B)return a.policy.j&&a.ya.ma("sabrcrq",{nopolicy:1}),!0;if(!a.B.targetAudioReadaheadMs||!a.B.targetVideoReadaheadMs)return a.policy.j&&a.ya.ma("sabrcrq",{noreadahead:1}),!0;d=Math.min(1E3*e_(a.ya,a.audioTrack),a.B.targetAudioReadaheadMs);b=Math.min(1E3*e_(a.ya,a.videoTrack),a.B.targetVideoReadaheadMs);var e=Math.min(d,b);c=1E3*XZ(a.audioTrack,!0);
var f=1E3*XZ(a.videoTrack,!0);var h=c>e;e=f>e;if((!h||!e)&&a.policy.j&&a.policy.oh){var l=a.ya.jc();l.car=c;l.vac=f;l.mar=d;l.mvr=b;l.tar=a.B.targetAudioReadaheadMs;l.tvr=a.B.targetVideoReadaheadMs;a.ya.ma("sabrrnm",l)}!(d=h&&e)&&(d=a.policy.B)&&(d=a.ya,d.Qa&&d.Qa.j&&d.Qa.B&&d.Ub&&!YQ(d.manifest)?(b=d.getCurrentTime(),f=d.Qa.j.Ke(),c=d.Qa.B.Ke(),f=f?RK(f,b):b,b=c?RK(c,b):b,b=Math.min(f,b),isNaN(b)?d=!1:(d=yY(d.Ub),d=b>=d-.01)):d=!1);!d&&(d=a.policy.K)&&(d=!1,2===a.N.B?d=!0:3===a.N.B&&(b=Z9a(a,TZ(a.audioTrack).md,
TZ(a.videoTrack).md),c=a.N,b>=c.C?(c.ma("sdai",{haltrq:b,est:c.C}),b=!0):b=!1,b&&(d=!0)),d&&a.ya.ma("sabrcrq",{waitad:1}));if(d)return!1;a.policy.j&&a.ya.ma("sabrcrq",{allow:1});return!0};
X9a=function(a,b,c){var d={xd:a.xd,mx:function(m,n){a.oa.KF(m,n)},
gp:a.policy.Jl,WN:a.policy.j},e=z6a(b,a.policy,a.G)?2:1;e!==a.Y&&(a.Y=e,b$a(a));c=$9a(a,c);if(a.policy.B&&a.policy.j&&c.pm){for(var f=e="",h=g.u(c.pm),l=h.next();!l.done;l=h.next())l=l.value,a.videoData.sabrContextUpdates.has(l)?e+="_"+l:f+="_"+l;a.ya.ma("sabrbldrqs",{ctxts:e,misctxts:f})}!k9a(b,c,a.ya.Sh())&&a.policy.B&&a.ya.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);d=new pZ(a.policy,b,a.manifest,a.G,a,d,a.ya.Dz());qZ(a.timing);a.policy.j&&a.ya.ma("sabrcrq",{rn:d.qp(),
probe:b.Bt()});return d};
d$a=function(a,b){if(!b.Ma()&&!a.Ma()){if(a.policy.j&&b.isComplete()&&b instanceof pZ){var c=a.ya,d=c.ma;var e=Object.assign(b.He.Wr(),{rst:b.state,strm:b.xhr.EB(),d:E5a(b.He),cncl:b.xhr&&b.Gd.C?1:0});e=Object.assign(m9a(b.info),e);d.call(c,"rqs",e)}if(b.isComplete()&&b.Bt())b.dispose();else{if(b.uY())b instanceof pZ&&K6a(a.timing,b),b$a(a),c$a(a);else if(b.tm())a.gt(b);else{if(a.ya.isSuspended&&!b.isComplete())return;if(a.policy.K&&b.vY()&&a.Z&&(d=b.sX(),c=d.il,e=d.dG,d=d.Cp,-1<e)){e=Q6a(a.N,e,c);
var f=a.ya.Lc()||0;N6a(a.N,c,e/1E3-f,d,a.Z)}c$a(a)}b.Ma()||b instanceof t_||(b.isComplete()?c=H8a(b,a.policy,a.G):(c=G8a(b,a.policy,a.G),1===c&&(a.La=!0)),0!==c&&(b=new i_(1,b.info.resource),b.j=2===c,X9a(a,b)))}}a.ya.rf()};
c$a=function(a){for(;a.j.length&&a.j[0].VX(a.oe());){var b=a.j.shift();e$a(a,b);a.policy.Jd&&b instanceof pZ&&b.dispose()}a.j.length&&e$a(a,a.j[0])};
e$a=function(a,b){if(a.policy.Qf){var c=new Set(b.Hq(a.oe()));c=g.u(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(!(d=!(b instanceof t_))){var f=a.D,h=f.manifest.dc;d=Z8a(f.D,h);f=Z8a(f.videoInfos,h);d=d.includes(e)||f.includes(e)}if(d&&(d=b.Cn(e,a.oe()),b.Yk(e,a.oe()))){e=b.Ak(e,a.oe());if(a.policy.B&&(f=d[0].j.info,(h=a.ya.Sh())&&f)){var l=b.WW();l!==h.oa.getVideoData().clientPlaybackNonce&&(h=h.timeline.B.get(l))&&(h=h[0].getVideoData())&&(f.yh()?h.D=f:h.B=f)}e=g.u(e);for(f=e.next();!f.done;f=
e.next()){f=f.value;a.policy.j&&b instanceof t_&&a.ya.ma("omblss",{s:f.info.Dd()});h=f.info.j.info.yh();l=f.info.j;if(h){var m=void 0,n=a.D,p=null==(m=b.FO(a.oe()))?void 0:m.token;l!==n.K&&(n.K=l,n.WJ(l,n.audioTrack,p))}else m=void 0,n=a.D,p=null==(m=b.FO(a.oe()))?void 0:m.token,l!==n.C&&(n.C&&(n.ra=!0),n.C=l,n.WJ(l,n.videoTrack,p));l=h?a.audioTrack:a.videoTrack;b instanceof t_&&(l.Z=!1,b instanceof t_&&(h?D6a(a.timing):C6a(a.timing)));SZ(l,d,f)}}}}else for(d=b.VW()||EZ(a.ra),c=new Set(b.Hq(a.oe())),
a.policy.B?e=c:e=[(null==(f=d.video)?void 0:JK(f.info,a.manifest.dc))||"",(null==(h=d.audio)?void 0:JK(h.info,a.manifest.dc))||""],d=g.u(e),e=d.next();!e.done;e=d.next())if(e=e.value,c.has(e)&&b.Yk(e,a.oe()))for(f=b.Ak(e,a.oe()),f=g.u(f),h=f.next();!h.done;h=f.next())h=h.value,a.policy.j&&b instanceof t_&&a.ya.ma("omblss",{s:h.info.Dd()}),l=b.Cn(e,a.oe()),n=(m=h.info.j.info.yh())?a.audioTrack:a.videoTrack,b instanceof t_&&(n.Z=!1,b instanceof t_&&(m?D6a(a.timing):C6a(a.timing))),SZ(n,l,h)};
f$a=function(a,b){for(var c=[],d=0;d<a.j.length;d++)b&&a.j[d]instanceof t_?c.push(a.j[d]):a.j[d].dispose();a.j=c};
g$a=function(a,b){b&&b.type&&(a.videoData.sabrContextUpdates.set(b.type,b),b.sendByDefault&&a.pm.add(b.type))};
h$a=function(a,b,c){var d=c.As,e=c.version;e=void 0===e?"":e;if(b.BS===e)b=!0;else{var f=!1,h=b.timeline.j;if(h&&h.getVideoData()){if(b.api.L("html5_ssap_clear_timeline_before_update")){var l=b.timeline,m;null==(m=l.j)||T3a(m);l.B.clear()}l=[];m=h.getVideoData();var n=h.videoData.clientPlaybackNonce,p=new Map;h=[];var q=[],r=0,t=0,v=0,w=[];d=g.u(d);for(var A=d.next();!A.done;A=d.next()){var C=A.value,F=C.clipId;if(F){if(C.jq){v=C.jq.RY||0;var G=C.jq.SY||1;A=Number(((C.jq.q_||0)/(C.jq.r_||1)*1E3).toFixed(0));
var L=Number((v/G*1E3).toFixed(0));v=G=A+L}else A=v,L=0,G=A,b.qG.has(F)||b.ek.add(F);var M=void 0,R=null!=(M=p.get(F))?M:0;M=!1;if(b.BS)if(b.api.L("html5_ssap_clear_timeline_before_update")){var ea=b.Oj.get(F);ea&&(ea.start=A,ea.end=G,M=!0)}else{var ma=b,oa=F;ea=A;var ia=G,va=ma.timeline.B.get(oa);if(null!=va&&va.length){R<va.length&&(va[R].qc=ea,va[R].B=ia);if(ma=ma.Oj.get(oa))ma.start=ea,ma.end=ia;ea=!0}else ea=!1;if(ea){p.set(F,R+1);f=!0;continue}}w.push(F);!M&&C.jq&&(w=new g.DJ(A,G,{id:w.join(","),
namespace:"ssap",priority:9}),b.Oj.set(F,w),h.push(w),w=[]);ea=M=void 0;if((null==(M=C.jq)?void 0:M.T1)===(null==(ea=m)?void 0:ea.videoId)){C=void 0;F!==(null==(C=m)?void 0:C.clientPlaybackNonce)&&(C=void 0,b.api.ma("ssap",{cnm:1,cid:F,cpn:null==(C=m)?void 0:C.clientPlaybackNonce}));if(b.api.L("html5_ssap_clear_timeline_before_update"))m&&(m.qj=A),F=iY(b.timeline,1,A,L,m),l.push(F),A=hY(b.timeline,A,G,[F]),f=f||A;else if(C=[],m&&(m.qj=A,M=void 0,C=null!=(M=b.timeline.B.get(F))?M:[]),!b.BS&&C.length&&
0===R){f=C[0];f.qc=A;f.B=G;C=void 0;L=null==(C=b.timeline.j)?void 0:C.j;M=void 0;if((C=null==(M=L)?void 0:M.get(0))&&L)for(M=0;M<C.length;M++)if(ea=C[M],ea.uf()!==ea.Ri()){ea.qc=A;ea.C=G;C.splice(M,1);L.has(A)?L.get(A).push(ea):L.set(A,[ea]);break}l.push(f);p.set(F,R+1);f=!0}else F=iY(b.timeline,1,A,L,m),l.push(F),A=hY(b.timeline,A,G,[F]),f=f||A;q.length&&(q=w4a(b,r||0,t,q),f=f||q);t=r=G;q=[]}else M=b.iz.get(F),ea=void 0,R=null!=(ea=M)?ea:new g.LS(b.api.U(),{cpn:F}),R.zD=!0,b.ek.has(F)&&b.iz.set(F,
R),r=Math.min(A,r),t=Math.max(G,t),b.api.ma("ssap",{e:A,d:L,c:F,p:M?1:0}),R.qj=A,G=void 0,A=iY(b.timeline,2,A,L,R,null==(G=C.iQ)?void 0:G.zJ),q.push(A),b.jS&&C.jq&&!b.UW&&(b.api.ma("ssap",{reloada:F}),b.Jv=F)}else b.api.ma("ssap",{cm:1})}q.length&&(m=w4a(b,r||0,t,q),f=f||m);n&&l.length&&(R3a(b.timeline,n,l),b.api.L("html5_ssap_clear_timeline_before_update")&&(l=l[l.length-1].Ri(),null!=(m=b.timeline.j)&&(m.B=l)));h.length&&b.oa.Iy(h);if(f){b.BS=e;h=b.oa.gm();e=[];h=g.u(h);for(l=h.next();!l.done;l=
h.next()){l=l.value;if(l.C){m=vY(b,l.C);if(m===l.Wk)continue;l.start=l.start-l.Wk+m;l.end=l.end-l.Wk+m;l.Wk=m;e.push(l)}l=b.oa.Qh;0>=e.length||l.Ma()||(l=l.j,l.array.sort(l.j))}b.api.ma("ssap",{tu:BY(b)});e=EV(b.api.yb());b.api.ma("ssap",{am:e?1:0})}else b.api.ma("ssap",{tnu:1});b=!0}else b.api.ma("ssap",{htsm:h?0:1}),b=!1}b?(a.policy.jj||g$a(a,c.context),a.videoData.Dy=c.version||""):a.ya.ma("ssap",{v:c.version,tlnu:1})};
b$a=function(a){a.pm.clear();if(0<a.videoData.sabrContextUpdates.size)for(var b=g.u(a.videoData.sabrContextUpdates.keys()),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;(null==(d=a.videoData.sabrContextUpdates.get(c))?0:d.sendByDefault)&&a.pm.add(c)}};
i$a=function(a){a.policy.zb&&(a.Ba=void 0,a.Wp=0)};
j$a=function(a,b){if(b.tm()||b.Ma()){var c=a.ya,d=c.ma,e=b.state;a=a.oe();var f,h;if(null==(b=null==(f=b.Ag)?void 0:f.get(a)))b=void 0;else{f=0;a=b.Hq();for(var l=0;l<a.length;l++){var m=void 0;f+=(null==(m=b.Wc.get(a[l]))?void 0:m.bytesReceived)||0}b=f}b=null!=(h=b)?h:-1;d.call(c,"sabromb",{s:e,tbytes:b})}else a.j.push(b),b.xG.push(a),qZ(a.timing)};
u_=function(a,b){return!a.ya.Vo&&$Y(b)&&(b.ao()!==$Y(b)||a.ya.isSuspended)};
k$a=function(a){var b="";a=g.u(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;b+=".cid."+c.clipId;if(c.jq){var d=c.jq;b+=".vid."+d.T1+(".pst."+d.q_)+(".ps."+d.r_)+(".lst."+d.i9)+(".ld."+d.RY)+(".ls."+d.SY)}c.iQ&&(b+=".nonv."+c.iQ.zJ)}return b};
l$a=function(a,b,c,d,e){this.ya=a;this.policy=b;this.schedule=c;this.Yy=d;this.Y=e;this.qa=NaN;this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1;this.Z=NaN};
m$a=function(a,b,c,d,e,f){return b.Sf&&b.Ie&&3===c?new l$a(a,b,d,e,f):null};
n$a=function(a,b){if(a.policy.MC){var c=b.info.sb,d=DR(a.schedule);b=b.index.Fj;c=Math.max(1,d/c);a.Z=Math.round(1E3*Math.max(((c-1)*b+a.policy.Hb)/c,b-a.policy.tj))}};
q$a=function(a,b){var c=Date.now()/1E3,d=c-a.startTimeSecs,e=c-a.K,f=e>=a.policy.Mu,h=!1;if(f){var l=0;!isNaN(b)&&b>a.G&&(l=b-a.G,a.G=b);l/e<a.policy.wE&&(h=!0);a.K=c}c=d>=a.policy.tj&&!a.C;if(!f&&!c&&o$a(a,b))return NaN;c&&(a.C=!0);a:{d=h;c=(0,g.$C)()/1E3-(a.Yy.Qi()||0)-a.N.j-a.policy.Hb;f=a.B.startTime;c=f+c;if(d){if(isNaN(b)){v_(a,NaN,"n",b);f=NaN;break a}d=b-a.policy.rj;d<c&&(c=d)}else a.C&&(d=c+a.policy.Hb-a.qa+a.policy.DE,isNaN(b)||(d=Math.max(d,Math.min(c,b-a.policy.rj))),c=d);f=c=Math.max(c,
f)}a.j=f;if(isNaN(a.j))return a.clear(),NaN;if(!h&&o$a(a,b))return p$a(a,b),NaN;if(a.j<=a.B.startTime)return v_(a,NaN,"y",b),a.clear(),NaN;if(!a.Y(a.j,!1))return!p$a(a,b)&&h&&(v_(a,NaN,"t",b),a.clear()),NaN;h=a.j;v_(a,h,"s",b);a.clear();return h};
p$a=function(a,b){return a.Y(a.j,!0)?!1:(v_(a,NaN,"ns",b),a.clear(),!0)};
o$a=function(a,b){return isNaN(b)?!0:isNaN(a.j)?!1:b<a.j+(a.C?a.policy.rj:a.policy.zD)};
v_=function(a,b,c,d){var e=a.D.Jq();e.ssr_sk=(1E3*b).toFixed(0);e.ssr_t=(1E3*a.j).toFixed(0);e.ssr_r=c;e.ssr_st=(1E3*a.startTimeSecs).toFixed(0);e.ssr_n=(0,g.$C)().toFixed(0);e.ssr_f=(1E3*a.N.j).toFixed(0);e.ssr_fa=a.C?"1":"0";e.ssr_o=(1E3*a.Yy.Qi()||0).toFixed(0);e.ssr_v=(1E3*d).toFixed(0);b=a.B.j.index;b.In(a.B.Pa,!0)&&(e.ssr_ist=(1E3*b.getStartTime(a.B.Pa)).toFixed(0),e.ssr_id=(1E3*b.getDuration(a.B.Pa)).toFixed(0));a.ya.ma("ssr",e)};
r$a=function(){var a={};if(window.performance){var b=window.performance.memory;b&&(a.jsTotal=b.totalJSHeapSize,a.jsUsed=b.usedJSHeapSize,a.msTotal=b.mediaSourceSizeLimit,a.msUsed=b.usedMediaSourceMemorySize)}var c;if(null==(c=window.h5vcc)?0:c.cVal)a.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),a.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used");return a};
g.x_=function(a,b,c,d,e,f,h,l,m,n){l=void 0===l?!1:l;g.I.call(this);var p=this;this.oa=a;this.schedule=b;this.policy=c;this.manifest=d;this.Ba=m;this.Xb=n;this.timing=new B6a(this.Xb);this.Y=new p5a(this.schedule,this.policy);this.Qa=null;this.rb=new g.lv(this.rf,0,this);this.KE=new g.lv(this.rf,1E3,this);this.Pb=new g.lv(this.rf,void 0,this);this.Za=new g.lv(this.rf,1E4,this);this.Jb=new g.lv(this.Nba,250,this);this.Z=this.currentTime=NaN;this.La=this.Vo=0;this.Dp=this.WH=this.isSuspended=!1;this.Ra=
"";this.JH=new wR(5);this.pc={};this.timestampOffset=NaN;this.zb=!1;this.bb=0;this.N=null;this.Ga=NaN;this.fb=this.Na=!1;this.Hb=(0,g.$C)();this.logger=new g.YX("dash");this.Hp=0;this.Va=!1;this.Wa=0;this.pd={getAudioTrack:function(){return p.audioTrack},
getManifest:function(){return p.manifest},
xob:function(){return p.qa},
rf:function(){p.rf()},
xF:function(){p.Vo=0;p.xF()},
spb:function(G){return w_(p,p.videoTrack,p.Qa.B,G)}};
a=m&&m.Hq();m&&(G3a(m,this.manifest,this.policy),this.Ga=Date.now());this.j=new U6a(this,this.Y,c,this.manifest,e,a);c=Z6a(this.j,f,h&&h.id);this.audioTrack=new h8a(this,this.policy,c.audio,this.timing);this.videoTrack=new h8a(this,this.policy,c.video,this.timing);this.videoTrack.D.Ga=this.audioTrack.AO();this.Da={updateend:this.Z2,error:this.W9};g.O(this,this.rb);g.O(this,this.KE);g.O(this,this.Pb);g.O(this,this.Za);c=this.policy.hB&&this.policy.Rj?!dDa(this.videoTrack.j.info):!1;this.Gb=k7a({bj:this.policy.Z.bj||
c,Rj:this.policy.Rj&&!c,Eu:this.policy.Eu});this.K=m$a(this,this.policy,this.Gb,this.schedule,this.JH,function(G,L){return s$a(p,G,L)});
this.G=new M6a(this,this.manifest,this.policy,this.videoTrack,this.audioTrack,l);this.B=new SY(this,this.manifest,this.videoTrack,this.audioTrack,this.policy);l=this.policy.Nx?this.oa.getVideoData().gi:null;this.D=new c_(this,this.policy,this.videoTrack,this.audioTrack,this.pc,this.G,this.timing,this.Y,this.schedule,this.manifest,this.j,this.K,c,l);g.O(this,this.D);this.C=new h_(this,this.policy,this.videoTrack,this.audioTrack,this.manifest,e,null==h?void 0:h.id);g.O(this,this.C);W8a(this.C,f);this.qa=
new V9a(this.oa,this,this.policy,this.audioTrack,this.videoTrack,this.manifest,this.schedule,this.j,this.C,this.timing,this.G);g.O(this,this.qa);this.ra=this.oa.Bd.Nt.rz;var q,r;if(null==(q=this.ra)?0:null==(r=q.kA)?0:r.itagDenylist){var t;this.XJ(null==(t=this.ra)?void 0:t.kA.itagDenylist)}var v;if(null==(v=this.ra)?0:v.playbackStartPolicy){var w,A;cYa(this.policy,null==(w=this.ra)?void 0:w.playbackStartPolicy,3,null==(A=this.ra)?void 0:A.qp())}if(this.policy.oh){e=this.oe();var C;(f=e?null==(C=
this.ra)?void 0:C.pZ.get(e):void 0)&&this.qa.Pp(f)}if(!this.manifest.Z){var F;C=null==(F=this.ra)?void 0:F.LY;(null==C?0:C.WI)&&(null==C?0:C.XI)&&this.manifest.dc&&$Qa(this.manifest,C.WI,C.XI)}this.logger.debug("Created")};
t$a=function(a,b){var c=JK(b.j.info,a.manifest.dc),d,e=(null==(d=a.Ba)?void 0:d.Cn(c))||[];if(0===e.length)return a.ma("ombmsi",{}),!1;a:{e=new wQ(e);d=a.currentTime;e=g.u(e.eb);for(var f=e.next();!f.done;f=e.next())if(f=f.value,3===f.type&&d>=f.C&&d<=f.D){d=!0;break a}d=!1}if(!d)return a.ma("ostmf",{ct:a.currentTime,a:b.j.info.yh()}),!1;null!=(a=a.Ba)&&(a.Wc.get(c).OC=!0);return!0};
u$a=function(a){if(!a.manifest.dc)return!0;var b=a.oa.getVideoData();if(b.L("html5_skip_live_preroll_onesie")&&y_(a.oa)||b.L("html5_skip_live_preroll_onesie_post_live")&&y_(a.oa)&&(b.Zd||b.isPremiere))return a.ma("ombpa",{}),!1;var c,d;if(a.policy.By&&!!(null==(c=a.ra)?0:null==(d=c.LY)?0:d.Oba)!==a.manifest.Zd)return a.ma("ombplmm",{}),!1;c=b.Jb||b.liveUtcStartSeconds||b.rj;if(a.manifest.Zd&&c)return a.ma("ombplst",{}),!1;if(a.manifest.Z)return a.ma("ombab",{}),!1;c=Date.now();if(YQ(a.manifest)&&
!isNaN(a.Ga)&&c-a.Ga>1E3*a.policy.bC)return a.ma("ombttl",{}),!1;if(!(a=a.manifest.jf&&a.manifest.C||!a.policy.PE&&a.manifest.isPremiere||dT(b))&&(a=b.L("html5_disable_onesie_media_for_mosaic"))){var e;a=!(null==(e=b.playerResponse)||!e.compositePlayabilityStatus)}return a||b.L("html5_disable_onesie_media_for_ssdai")&&b.isDaiEnabled()&&b.enableServerStitchedDai?!1:!0};
v$a=function(a,b){var c=b.j,d=a.manifest.dc;if(u$a(a))if(a.Ba&&a.Ba.Wc.has(JK(c.info,d))){if(d=JK(c.info,d),t$a(a,b)){var e=new wQ(a.Ba.Cn(d)),f=function(h){try{if(h.tm())a.handleError(h.Xg(),h.Jq()),ZZ(b,h),xQ(h.info)&&f_(a.D,b,c,!0),a.rf();else if(P8a(a.D,h)){var l;null==(l=a.G)||O6a(l,h.info,a.N);a.rf()}}catch(m){h=qK(m),a.handleError(h.errorCode,h.details,h.severity),a.Jk()}};
c.C=!0;EPa(e)&&(j8a(b,new TY(a.policy,d,e,a.Ba,f)),qZ(a.timing))}}else a.ma("ombfmt",{})};
z_=function(a,b){b=b||a.videoTrack&&a.videoTrack.B&&a.videoTrack.B.startTime||a.currentTime;var c=g_,d=a.videoTrack,e=a.j;b=e.nextVideo&&e.nextVideo.index.Bi(b)||0;e.Ga!==b&&(e.La={},e.Ga=b,BZ(e,e.j));b=!e.j.isLocked()&&-1<e.Y&&(0,g.$C)()-e.Y<1E3*e.policy.WB;var f=e.nextVideo&&3*FZ(e,e.nextVideo.info)<RY(e.Ba);if(!b||f)AZ(e),CZ(e),e.ra=e.ra||e.nextVideo!==e.C;e.nextVideo&&!e.nextVideo.index.isLoaded()&&(e.Ga=-1);c(a,d,e.nextVideo);g_(a,a.audioTrack,a.j.B)};
A_=function(a,b){a.WH=b;a.policy.Ba||(a.logger.debug("Suspended."),a.isSuspended=!0,a.policy.Lu&&(a.KE.stop(),a.rb.stop()))};
P6a=function(a,b,c,d){a.policy.K&&a.WF(!1);u8a(a.videoTrack,d,c,b);u8a(a.audioTrack,d,c,b);XQ(a.manifest,d,!0);XQ(a.manifest,d,!1);a.ma("sdai",{rollbk2_seg:d,rbt:c.toFixed(3),lt:b.toFixed(3)})};
w$a=function(a){a.logger.debug("Rebuffering.");a.Dp=!0;if(a.policy.Da&&a.Qa){var b,c,d,e;a.ma("lr_rb",{c:a.currentTime,s:a.Uf(),ab:OK(a.Qa.j.Ke()),ala:null==(b=RZ(a.audioTrack))?void 0:b.Dd(),alr:null==(c=a.audioTrack.B)?void 0:c.Dd(),vb:OK(a.Qa.B.Ke()),vla:null==(d=RZ(a.videoTrack))?void 0:d.Dd(),vlr:null==(e=a.videoTrack.B)?void 0:e.Dd()})}};
x$a=function(a){a.policy.Ra=!1;try{a.xF()}catch(b){g.dF(b)}};
A$a=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;a.policy.Ba&&(a.logger.debug("disable updateMetadataWithoutMediaSource"),a.policy.Ga&&a.ma("loader",{setsmb:0}),a.Jk(),a.policy.Ba=!1);a.logger.debug("attaching media source");y$a(a,d);if(wV(a.policy)&&!XK()&&a.policy.Ml)a.ma("ssap",{delaysb:1}),a.Qa=b;else{if(!dL(b)){var e=$Y(a.videoTrack);e=e?e.info.j:a.videoTrack.j;var f=$Y(a.audioTrack);f=f?f.info.j:a.audioTrack.j;a.policy.B&&a.ma("ssap",{initsb:1,v:e.info.id,vf:e.info.qb,a:f.info.id,af:f.info.qb});
pDa(b,e.info,f.info,a.policy.fb)}z$a(a,b,c,d);try{a.rf()}catch(h){g.dF(h)}}};
z$a=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;QZ(a.videoTrack,b.B||null,d);QZ(a.audioTrack,b.j||null,d);a.Qa=b;a.Qa.G=!0;c||a.resume();g.xF(b.j,a.Da,a);g.xF(b.B,a.Da,a)};
y$a=function(a,b){b=void 0===b?!1:b;a.Qa&&a.Qa.j&&a.Qa.B&&(yF(a.Qa.j,a.Da,a),yF(a.Qa.B,a.Da,a));QZ(a.audioTrack,null,b);QZ(a.videoTrack,null,b);a.Qa&&(a.Qa.G=!1);a.Qa=null};
B$a=function(a){a.Qa&&a.Qa.Jg()&&(a.mz(),a.policy.GC&&a.handleError("fmt.unplayable",{unexpected:1},1))};
D$a=function(a,b){if(!a.Ma())if(wV(a.policy)){if(!X8a(a.C,b)){var c=a.C.B;W8a(a.C,b);var d=!1;d=b.isLocked()&&"m"===b.reason&&Y8a(a.C,b.j);var e=a.policy.Bf&&"l"===b.reason;c=c.j>b.j&&"b"===b.reason;d||e||c?(a.oa.zo({reattachOnConstraint:d?"u":e?"drm":"perf",lo:b.B,up:b.j}),a.policy.eg||(a.C.j.B=!1)):(a.policy.eg&&(a.C.j.B=!1),B_(a))}}else if(!$6a(a.j,b)&&a.videoTrack){a.logger.debug(function(){return"Setting constraint: r="+b.reason+" u="+b.j});
c=a.j.j;C$a(a,b7a(a.j,b));z_(a);d=b.isLocked()&&"m"===b.reason&&a.j.ra;e=a.policy.Bf&&"l"===b.reason&&a_(a.videoTrack);c=c.j>b.j&&"b"===b.reason;var f=a.j.Za&&!XK();d||e||c||f?a.oa.zo({reattachOnConstraint:d?"u":e?"drm":f?"codec":"perf"}):B_(a)}};
E$a=function(a,b,c){if((!a.Qa||$K(a.Qa)&&!a.policy.Hl)&&!a.B.Uf()&&(wV(a.policy)||a_(b)&&b.j.gg()&&a.j.qa)){var d=a.currentTime+t5a(a.Y,b,c);a.logger.debug(function(){return"Clearing back to "+d.toFixed(3)});
t8a(b,d)}};
C$a=function(a,b){b&&(a.logger.debug(function(){return"Logging new format: "+MK(b.video.info)}),F$a(a.oa,new vZ(b.video,b.reason)));
if(a.j.Wa){var c=EZ(a.j,"a");a.oa.Vw(new vZ(c.audio,c.reason))}};
B_=function(a){g.mv(a.rb)};
G$a=function(a,b){var c=(0,g.$C)()-b,d=1E3*XZ(a.audioTrack,!0),e=1E3*XZ(a.videoTrack,!0);a.logger.debug(function(){return"Appends paused for "+c});
if(a.policy.j&&(a.ma("apdpe",{dur:c.toFixed(),abuf:d.toFixed(),vbuf:e.toFixed()}),xV(a.policy))){var f=RY(a.Y);a.ma("sdps",{ct:b,ah:d.toFixed(),vh:e.toFixed(),mr:u5a(a.Y,a.Dp,f),bw:f.toFixed(),js:a.Uf(),re:+a.Dp,ps:(a.policy.xC||"").toString(),rn:(a.policy.wC||"").toString()})}};
H$a=function(a){if(a.policy.B&&b_(a.videoTrack)&&b_(a.audioTrack))return"ssap";if(C8a(a.videoTrack))return a.logger.debug("Pausing appends for server-selectable format"),"ssf";if($Z(a.audioTrack)||$Z(a.videoTrack)&&"f"!==a.videoTrack.j.info.qb)return"";if(a.B.Uf()){var b=a.Y;var c=a.videoTrack;var d=a.audioTrack;if(b.policy.C){var e=b.policy.Li;xV(b.policy)&&(e=u5a(b,!1,RY(b)));b=e;c=XZ(d,!0)>=b&&XZ(c,!0)>=b}else c.C.length||d.C.length?(e=c.j.info.sb+d.j.info.sb,e=10*(1-RY(b)/e),b=Math.max(e,b.policy.Li),
c=XZ(d,!0)>=b&&XZ(c,!0)>=b):c=!0;if(!c)return"abr";c=a.videoTrack;if(0<c.C.length&&1===c.D.B.length&&Q7a(c.D).info.K<c.La)return"seek"}c=!a.policy.Ki||10>a.currentTime||360<a.videoTrack.j.info.video.j;d=xV(a.policy)&&a.policy.Il;if(!a.Dp||!d&&c)return"";c=a.policy.Ki;xV(a.policy)&&(c=u5a(a.Y,a.Dp,RY(a.Y)));c=x8a(a.videoTrack,a.currentTime,c)||x8a(a.audioTrack,a.currentTime,c);return xV(a.policy)?c?"mbnm":"":(0<a.videoTrack.C.length||0<a.audioTrack.C.length||I8a(a.D,a.videoTrack,a.audioTrack)||I8a(a.D,
a.audioTrack,a.videoTrack))&&c?"nord":""};
I$a=function(a){if(a.K){var b=a.K.rf(a.audioTrack,SK(a.Qa.B.Ke()));b&&a.oa.seekTo(b,{cw:!0,yd:"pollSubsegmentReadahead",wq:!0})}};
M$a=function(a,b,c){if(c.tP())return!0;if(!c.DH())return!1;var d=$Y(b);if(!d||7===d.info.type)return!1;var e=a.policy.UB;if(e&&!d.info.hf&&d.info.K<(d.info.C-a.currentTime)*e)return!1;var f;if(null==(f=a.G)||1===f.B||2===f.B||0!==f.B&&b===f.Ga&&d.info.Pa>y8a(f.qa))return a.B.Uf()&&B_(a),!1;e=w_(a,b,c,d.info);if(a.policy.Xb&&!e)return!1;if(a.manifest.B&&0===d.info.Rb){if(e=J$a(b,c,d))f=RZ(b),a.ma("initchg",{it:d.info.j.info.id,sr:!!f&&f.j===d.info.j,ty:d.info.type,seg:d.info.Pa});f=g.GK(d.info.j.info);
a.policy.Pb&&f&&!e&&kQa(d)}e=a.K&&!!a.K.D&&b.j.info.audio;f=a.manifest.isManifestless||d.G;if(!(a.manifest.B&&0!==d.info.Rb||f&&!e)&&K$a(a,c,d))return!0;if(e)return!1;e=e_(a,b);if(d.info.C>a.currentTime+e)return a.policy.C&&!a.La&&(a.La=(0,g.$C)()),!1;a.La&&(a.La=0);var h;a.policy.pc&&c===(null==(h=a.Qa)?void 0:h.j)&&a.Va&&(0===c.NI()?(a.Va=!1,a.policy.pc=!1):a.Wa=c.NI());if(!L$a(a,c,d))return!1;b.fu(d);e7a(a.j,d.info);a.logger.debug(function(){return"Appended "+d.info.Dd()+", buffered: "+OK(c.Ke())});
return!0};
L$a=function(a,b,c){var d=a.policy.Da?(0,g.$C)():0,e=c.G?c.info.j.j:null,f=c.j;c.G&&(f=N$a(a,c,f)||f);var h=MN(f);f=a.policy.Da?(0,g.$C)():0;e=O$a(a,b,h,c.info,e);a.policy.Da&&(!c.info.Rb||c.info.hf||10>c.info.C)&&(b=b.jc({as:c.info.Dd(),pdur:Math.round(f-d),adur:Math.round((0,g.$C)()-f)}),b.omt=(a.getCurrentTime()+a.Lc()).toFixed(3),b.to=a.Lc(),a.ma("sba",b));if("s"===e)return a.Na&&(a.logger.debug("Retry succeed, back to normal append logic."),a.Na=!1,a.fb=!1),a.bb=0,!0;if("i"===e||"x"===e)return P$a(a,
"checked",e,c.info),!1;if("q"===e){if(!a.Na)return a.logger.debug("QuotaExceeded, retrying."),a.Na=!0,!1;if(!a.fb)return a.fb=!0,a.oa.seekTo(a.currentTime,{yd:"quotaExceeded",wq:!0}),!1;c.info.yg()?(b=a.policy,b.ra=Math.floor(.8*b.ra),b.Dc=Math.floor(.8*b.Dc),b.qa=Math.floor(.8*b.qa)):(b=a.policy,b.Wa=Math.floor(.8*b.Wa),b.qa=Math.floor(.8*b.qa));wV(a.policy)?xZ(a.C.j,c.info.j,!1):DZ(a.j,c.info.j)}a.oa.zo({reattachOnAppend:e});return!1};
N$a=function(a,b,c){var d;if(d=a.policy.Ju&&a.Qa&&!a.Qa.qa&&!a.oa.cI())b=b.info.j.info,d=b.Pe()&&DK(b)&&b.video&&3840>b.video.width&&b.video.width>b.video.height;if(d&&(a.Qa.qa=!0,uK('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return c=N7a(c),a.policy.j&&a.ma("sp4k",{s:!!c}),c};
P$a=function(a,b,c,d){var e="fmt.unplayable",f=1;"x"===c||"m"===c?(e="fmt.unparseable",wV(a.policy)?!d.j.info.video||0<yZ(a.C.j).size||xZ(a.C.j,d.j,!1):!d.j.info.video||0<yZ(a.j.G).size||DZ(a.j,d.j)):"i"===c&&(15>a.bb?(a.bb++,e="html5.invalidstate",f=0):e="fmt.unplayable");d=vQ(d);var h;d.mrs=null==(h=a.Qa)?void 0:eL(h);d.origin=b;d.reason=c;a.handleError(e,d,f)};
e8a=function(a,b,c,d,e){var f=a.manifest;var h=!1,l=-1;for(p in f.j){var m=KK(f.j[p].info.mimeType)||f.j[p].info.yg();if(d===m)if(m=f.j[p].index,m.In(b.Pa)){if(!f.Ra){h=m;m=b;var n=h.xn(m.Pa);n&&n.startTime!==m.startTime?(h.segments=[],h.qM(m),h=!0):h=!1}h&&(l=b.Pa)}else m.qM(b),h=!0}if(0<=l){var p={};f.publish("clienttemp","resetMflIndex",(p[d?"v":"a"]=l,p),!1)}f=h;A5a(a.B,b,d,f);a.G.KQ(b,c,d,e);b.Pa===a.manifest.jf&&f&&VQ(a.manifest)&&b.startTime>VQ(a.manifest)&&(a.manifest.bb=b.startTime+(isNaN(a.timestampOffset)?
0:a.timestampOffset),a.B.Uf()&&a.B.j<a.manifest.Od()&&a.B.seek(a.manifest.Od(),{}))};
w_=function(a,b,c,d){b=RZ(b);!b||b.hf||uQ(b,d)||c.abort();if(!c.MD()||XK())if(a.policy.Xb)try{c.yL(d.j.info.containerType,d.j.info.mimeType)}catch(e){return c=e,g.eF(c),a.ma("ctexp",{name:c.name,msg:c.message}),!1}else c.yL(d.j.info.containerType,d.j.info.mimeType);else d.j.info.containerType!==c.MD()&&a.ma("ctu",{ct:XK(),prev_c:c.MD(),curr_c:d.j.info.containerType});b=d.j.D;a.policy.Nl&&b&&(d=0+b.duration,b=-b.j,0===c.BD()&&d===c.oI()||c.VR(0,d),b!==c.Lc()&&(c.aq(b),fY&&g8a(a.audioTrack.AO(),c.NO())));
return!0};
K$a=function(a,b,c){c.info.j.gg();var d=c.info.j.j;if(!d||!b.DH()||b.Kv()===d)return!1;var e=d,f=b.vI();if(a.policy.Jx&&f&&b.isView()&&g.GK(c.info.j.info)){var h=new DataView(d.buffer,d.byteOffset,d.byteLength);(f=ePa(h,f))?e=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):a.ma("fenc",{})}a.policy.Ju&&(f=N$a(a,c,new JN([e])))&&(e=MN(f));f=null;(h=c.info.j.Pv(0,c.info.clipId))&&(f=h.eb[0]);a.policy.Da&&a.ma("sbi",b.jc({as:c.info.Dd()}));a.policy.Px&&b.abort();d=O$a(a,b,e,f,d);if("s"!==d)return Q$a(a,
d,c),!0;c.info.yg()?G6a(a.timing):H6a(a.timing);a.logger.debug(function(){return"Appended init for "+c.info.j.info.id});
return b.Xj()};
J$a=function(a,b,c){if(null==b.Kv()){a=RZ(a);if(!(b=!a||a.j!==c.info.j)){a:if(a=a.N,c=c.info.N,a.length!==c.length)c=!1;else{for(b=0;b<a.length;b++)if(!g.Xb(a[b],c[b])){c=!1;break a}c=!0}b=!c}return b}a=b.Kv();c.info.j.dA()&&lQa(c);c=c.info.j.j;return a!==c&&!g.Xb(a,c)};
O$a=function(a,b,c,d,e){var f=0;if(a.policy.B&&d&&d.clipId&&a.Ub){var h;f=((null==(h=a.Ub)?void 0:vY(h,d.clipId))||0)/1E3}try{a.policy.B&&b.Lc()!==f&&b.aq(f),b.appendBuffer(c,d,e)}catch(l){if(l instanceof DOMException){if(11===l.code)return"i";if(12===l.code)return"x";if(22===l.code||0===l.message.indexOf("Not enough storage"))return b=Object.assign({name:"QuotaExceededError",buffered:OK(b.Ke()).replace(/,/g,"_"),vheap:VZ(a.videoTrack),aheap:VZ(a.audioTrack),message:g.Hg(l.message,3),track:a.Qa?b===
a.Qa.B?"v":"a":"u"},r$a()),a.handleError("player.exception",b),"q";g.dF(l)}return"u"}return a.Qa.Jg()?"m":"s"};
ZY=function(a,b,c){a.oa.seekTo(b,c)};
NZ=function(a,b){a.oa.aK(b)};
e_=function(a,b){if(a.Na&&!a.Dp)return 3;if(a.isSuspended)return 1;var c;if(null==(c=a.Qa)?0:c.Qa&&!1===c.Qa.streaming)return 4;c=(b.j.info.audio?a.policy.Wa:a.policy.ra)/(b.sb*a.policy.Dl);if(0<a.policy.Oo&&a.Qa&&$K(a.Qa)&&(b=b.j.info.video?a.Qa.B:a.Qa.j)&&!b.Xj()){b=b.Ke();var d=PK(b,a.currentTime);0<=d&&(b=a.currentTime-b.start(d),c+=Math.max(0,Math.min(b-a.policy.Oo,a.policy.VB)))}0<a.policy.qa&&(c=Math.min(c,a.policy.qa));return c};
S$a=function(a){a.Ra&&!a.isSuspended&&ER(a.schedule)&&(R$a(a,a.Ra),a.Ra="")};
R$a=function(a,b){FX(b,"cms",function(c){a.policy.j&&a.ma("pathprobe",c)},function(c){a.oa.handleError(c)})};
T$a=function(a,b){if(a.Qa&&a.Qa.G&&!a.Qa.Jg()&&(b.tv=XZ(a.videoTrack),b.B=XZ(a.audioTrack),a.policy.j)){var c=VZ(a.videoTrack),d=VZ(a.audioTrack),e=OK(a.Qa.B.Ke(),"_",5),f=OK(a.Qa.j.Ke(),"_",5);Object.assign(b.j,{lvq:c,laq:d,lvb:e,lab:f})}b.bandwidthEstimate=QY(a.Y);a.logger.debug(function(){return nK(b.j)})};
U$a=function(a,b){a.N=b;a.G&&(a.G.N=b);a.N.fS(a.videoTrack.j.info.Pe());a.D.B=a.N;a.policy.K&&(a.qa.Z=a.N)};
V$a=function(a,b){if(a.Qa&&a.Qa.B){b-=isNaN(a.timestampOffset)?0:a.timestampOffset;a.currentTime!==b&&a.resume();if(a.B.Uf()&&a.Qa&&!a.Qa.Jg()){var c=a.currentTime<=b&&b<a.currentTime+10,d=QK(a.Qa.B.Ke(),a.currentTime+J8a);c&&d&&(a.B.G=!1)}if(!a.B.Uf()){if(a.policy.Qm&&2E3<(0,g.$C)()-a.Hb){var e;null==(e=a.videoTrack.N)||u7a(e,b);var f;null==(f=a.audioTrack.N)||u7a(f,b);a.Hb=(0,g.$C)()}a.currentTime=b}g.mv(a.KE)}};
W$a=function(a,b){var c=q8a(a.videoTrack).find(function(d){return d.startTime>=b&&s$a(a,d.startTime,!1)});
return c&&c.startTime<b+1.5*c.duration?c.startTime+.1:0};
s$a=function(a,b,c){if(!(a.videoTrack.j.gg()&&a.audioTrack.j.gg()&&a.Qa&&a.Qa.B&&a.Qa.j))return!1;if(c&&a.manifest.isManifestless&&(-1===a.videoTrack.K||-1===a.audioTrack.K))return!0;var d=WY(a.videoTrack,b,c);if(isNaN(d))return!1;a=WY(a.audioTrack,a.policy.Ie?b:d,c);return isNaN(a)?!1:!0};
C_=function(a){a.Jk();a.B.Uf()&&a.logger.debug("seeking cancelled by seek-to-head");a.K&&n$a(a.K,a.videoTrack.j);B_(a);a=a.B;var b=Math.max(a.videoTrack.D.C||0,a.audioTrack.D.C||0);s8a(a.videoTrack);s8a(a.audioTrack);a.policy.G||ZQa(a.manifest);a.manifest.isManifestless&&!a.policy.G&&(a.B=!0,a.C=0);a.ya.currentTime=b;a.G=!0;a.D=new fL;return a.D};
g_=function(a,b,c,d){(void 0===d?0:d)&&!b.Ga&&(a.policy.My&&!XK()&&((d=b.Sb)&&d.uw(c.info)||X$a(a,b,c)),b.Ga=!0);b.j!==c&&(a.logger.debug(function(){return"Setting target itag: "+c.info.id+" (was "+b.j.info.id+")"}),b.j=c)};
X$a=function(a,b,c){if(a.Qa){var d=c.info.yg(),e=d?a.Qa.B:a.Qa.j;e&&yF(e,a.Da,a);a.ma("ssap",{reinitsb:1,itag:c.info.id,mime:c.info.mimeType});e=a.Qa;var f=c.info,h=a.policy.fb;h=void 0===h?"":h;if(e.Qa){h=(c=f.yg())?f.mimeType+h:f.mimeType;var l=c?"1":"0";e.qg&&e.qg.webkitSourceAddId(l,h);var m=c?e.B:e.j;m&&yF(m,e.D,e);(m=c?e.Y:e.Z)&&e.Qa.removeSourceBuffer(m);var n;m=null==(n=e.Qa)?void 0:n.addSourceBuffer(h);c?e.Y=m:e.Z=m;n=new WK(m,e.qg,l,AK(h),f.qb,c);aL&&g.xF(n,e.D,e);c?e.B=n:e.j=n;g.O(e,n)}d=
d?a.Qa.B:a.Qa.j;QZ(b,d||null);d&&g.xF(d,a.Da,a)}else a.ma("ssap",{missmse:1})};
Y$a=function(a,b){a.timestampOffset!==b&&(a.timestampOffset=b,a.logger.debug(function(){return"Timestamps will be made relative to "+a.timestampOffset}),a.G.Z=a.timestampOffset,a.oa.UQ(a.timestampOffset),a.manifest.isManifestless&&(a.manifest.timestampOffset=a.timestampOffset),a.videoTrack.aq(a.timestampOffset),a.audioTrack.aq(a.timestampOffset))};
M8a=function(a){var b=a.gm().filter(function(d){return"ad"===d.namespace});
b=g.u(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.getCurrentTime())return c.start/1E3;return Infinity};
Z$a=function(a){var b=RZ(a.videoTrack),c=RZ(a.audioTrack);return b&&!E8a(a.videoTrack)?b.startTime:c&&!E8a(a.audioTrack)?c.startTime:NaN};
Q$a=function(a,b,c){a.policy.fA&&$S(a.oa.getVideoData())?(a.oa.uE()||P$a(a,"sepInit",b,c.info),$$a(a.oa,"sie")):P$a(a,"sepInit",b,c.info)};
g.D_=function(a){this.Vc=a};
E_=function(){g.wF.apply(this,arguments)};
F_=function(a,b,c,d){E_.call(this);var e=this;this.C=-1;this.j={};this.D=new g.lv(this.G,0,this);g.O(this,this.D);this.B=new g.lv(function(){e.Ma()||(e.D.start(Math.random()*c),e.B.start(b))},a,this);
g.O(this,this.B);d.subscribe("fairplay_next_need_key_info",this.K,this)};
aab=function(a){if(!(28>=a.length))for(var b=(0,g.mZ)([60,0,75,0,73,0,68,0,62,0]),c=28;c<a.length;){a:if(a.length-c<b.length)var d=!1;else{for(d=0;d<b.length;++d)if(a[c+d]!==b[d]){d=!1;break a}d=!0}if(d){c+=b.length;if(a.length<=c+48)break;b=new Uint8Array(24);for(d=0;24>d;++d)b[d]=a[c+2*d];a=YN(b);a=Ig(a);if(!a)break;c=a[0];a[0]=a[3];a[3]=c;c=a[1];a[1]=a[2];a[2]=c;c=a[4];a[4]=a[5];a[5]=c;c=a[6];a[6]=a[7];a[7]=c;return a}c++}};
G_=function(a,b,c){E_.call(this);var d=this;this.C=a;this.j=[];this.pd={Rnb:function(){return d.j.length}};
this.D=c.jb("html5_ignore_widevine_key_rotation_license_requests");this.B=new g.lv(function(){d.publish("log_qoe",{wvagt:"timer",reqlen:d.j?d.j.length:-1});if(d.j){if(0<d.j.length){var e=d.j.shift();bab(d,e.info)}0<d.j.length&&(e=d.j[0].time-(0,g.$C)(),d.B.start(Math.max(0,e)))}},0);
g.O(this,this.B);b.subscribe("widevine_set_need_key_info",this.G,this)};
bab=function(a,b){a:{var c=b.cryptoPeriodIndex;if(isNaN(c)&&0<a.C.size)c=!0;else{for(var d=g.u(a.C.values()),e=d.next();!e.done;e=d.next())if(e.value.cryptoPeriodIndex===c){c=!0;break a}c=!1}}a.publish("log_qoe",{wvagt:"reqnews",canskip:c});c||a.publish("rotated_need_key_info_ready",b)};
cab=function(a){var b=a.interval,c=a.retries;this.url=a.url;this.interval=b;this.retries=c};
dab=function(a,b){this.statusCode=a;this.message=b;this.B=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null};
eab=function(a){var b=WN(a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(-1===c)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null==e)return null;e=e[1];isFinite(e)&&(e=String(e));e="string"===typeof e?/^\s*-?0x/i.test(e)?parseInt(e,16):parseInt(e,10):NaN;b=QP(b.slice(d+2));if(null==b)return null;a=new dab(e,a.subarray(c+4));0!==a.statusCode&&(a.errorMessage=g.YCa(a.statusCode));if(c=b["Heartbeat-Url"])a.heartbeatParams=new cab({url:c,interval:Number(b["Heartbeat-Interval-Secs"])||
60,retries:Number(b["Heartbeat-Num-Retries"])||4});if(c=b["Authorized-Format-Types"])a.B=c.split(",");if(c=b["Key-Ids"]){if(c)for(d=c.split(";"),c={},d=g.u(d),e=d.next();!e.done;e=d.next())e=e.value.split(","),2===e.length&&(c[e[1]]=e[0]);else c={};a.j=c}a.nextFairplayKeyId=b["Next-Key-Id"];return a};
fab=function(a,b,c){c=void 0===c?"":c;g.I.call(this);this.message=a;this.requestNumber=b;this.kf=c;this.onError=this.onSuccess=null;this.j=new g.Bm(5E3,2E4,.2)};
gab=function(a,b,c){a.onSuccess=b;a.onError=c};
iab=function(a,b,c){var d={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,onSuccess:function(e){if(!a.Ma())if(0!==e.status&&e.response)if(CH("drm_net_r",void 0,a.kf),e=new Uint8Array(e.response),e=eab(e))a.onSuccess(e,a.requestNumber);else a.onError(a,"drm.net","t.p");else hab(a,e)},
onError:function(e){hab(a,e)}};
c&&(b=Ofa(b,"access_token",c));g.CB(b,d)};
hab=function(a,b){if(!a.Ma())a.onError(a,b.status?"drm.net.badstatus":"drm.net.connect","t.r;c."+String(b.status),b.status)};
kab=function(a,b,c,d){var e={timeout:3E4,onSuccess:function(f){if(!a.Ma()){CH("drm_net_r",void 0,a.kf);var h="LICENSE_STATUS_OK"===f.status?0:9999,l=null;if(f.license)try{l=Ig(f.license)}catch(v){g.dF(v)}if(0!==h||l){l=new dab(h,l);0!==h&&f.reason&&(l.errorMessage=f.reason);if(f.authorizedFormats){h={};for(var m=[],n={},p=g.u(f.authorizedFormats),q=p.next();!q.done;q=p.next())if(q=q.value,q.trackType&&q.keyId){var r=jab[q.trackType];if(r){"HD"===r&&f.isHd720&&(r="HD720");q.isHdr&&(r+="HDR");h[r]||
(m.push(r),h[r]=!0);var t=null;try{t=Ig(q.keyId)}catch(v){g.dF(v)}t&&(n[g.Gg(t,4)]=r)}}l.B=m;l.j=n}f.nextFairplayKeyId&&(l.nextFairplayKeyId=f.nextFairplayKeyId);f.sabrLicenseConstraint&&(l.sabrLicenseConstraint=Ig(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.Ma())if(f&&f.error)f=f.error,a.onError(a,"drm.net.badstatus","t.r;p.i;c."+f.code+";s."+f.status,f.code);else a.onError(a,"drm.net.badstatus","t.r;p.i;c.n")},
onTimeout:function(){a.onError(a,"drm.net","rt.req."+a.requestNumber)}};
d&&(e.CV="Bearer "+d);g.cE(c,"player/get_drm_license",b,e)};
lab=function(a,b,c,d){g.wF.call(this);this.videoData=a;this.W=b;this.Y=c;this.sessionId=d;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.N=this.ra=!1;this.C=null;this.Ga=[];this.D=[];this.Z=!1;this.j={};this.Ba=NaN;this.status="";this.K=NaN;this.B=a.K;this.cryptoPeriodIndex=c.cryptoPeriodIndex;a={};Object.assign(a,this.W.j);a.cpn=this.videoData.clientPlaybackNonce;this.videoData.Ba&&(a.vvt=this.videoData.Ba,this.videoData.mdxEnvironment&&(a.mdx_environment=this.videoData.mdxEnvironment));
this.W.Ba&&(a.authuser=this.W.Ba);this.W.pageId&&(a.pageid=this.W.pageId);isNaN(this.cryptoPeriodIndex)||(a.cpi=this.cryptoPeriodIndex.toString());var e=(e=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.pc()))?e[1]:"";"ATV"===e&&(a.cdt=e);this.G=a;this.G.session_id=d;this.qa=!0;"widevine"===this.B.flavor&&(this.G.hdr="1");"playready"===this.B.flavor&&(b=Number(pR(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&0<=b&&(this.G.mfpe=""+b),this.qa=!1);b="";g.iR(this.B)?hR(this.B)?(d=c.B)&&(b="https://www.youtube.com/api/drm/fps?ek="+
Vca(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=On(this.baseUrl,"ek")||"";if(b=On(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.Da=this.videoData.L("html5_use_drm_retry");this.Ga=c.Pe?[g.Gg(c.initData,4)]:c.C;H_(this,{sessioninit:c.cryptoPeriodIndex});this.status="in"};
pab=function(a,b){H_(a,{createkeysession:1});a.status="gr";CH("drm_gk_s",void 0,a.videoData.Na);a.url=mab(a);try{a.C=b.createSession(a.Y,function(c){H_(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&&(nab(a.C,function(c,d){oab(a,c,d)},function(c,d,e){if(!a.Ma()){d=void 0;
var f=1;g.iR(a.B)&&g.OR(a.W)&&a.W.L("html5_enable_safari_fairplay")&&1212433232===e&&(d="ERROR_HDCP",f=a.W.L("html5_safari_fairplay_ignore_hdcp")?0:f);a.error("drm.keyerror",f,c,d)}},function(){a.Ma()||(H_(a,{onkyadd:1}),a.N||(a.publish("sessionready"),a.N=!0))},function(c){a.Np(c)}),g.O(a,a.C))};
mab=function(a){var b=a.baseUrl;uBa(b)||a.error("drm.net",2,"t.x");if(!On(b,"fexp")){var c=["23898307","23914062","23916106","23883098"].filter(function(e){return a.W.experiments.experiments[e]});
0<c.length&&(a.G.fexp=c.join())}c=g.u(Object.keys(a.G));for(var d=c.next();!d.done;d=c.next())d=d.value,b=Ofa(b,d,a.G[d]);return b};
oab=function(a,b,c){if(!a.Ma())if(b){H_(a,{onkmtyp:c});a.status="km";switch(c){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":qab(a,b);return;default:a.publish("ctmp","message_type",{t:c,l:b.byteLength})}a.ra||(CH("drm_gk_f",void 0,a.videoData.Na),a.ra=!0,a.publish("newsession",a));if(eR(a.B)&&(b=rab(b),!b))return;g.iR(a.B)&&!a.videoData.useInnertubeDrmService()&&(b=VIa(g.Gg(b)));b=new fab(b,++a.requestNumber,a.videoData.Na);gab(b,function(d){sab(a,
d)},function(d,e,f){if(!a.Ma()){var h=0,l;
(l=3<=d.j.B)||(l=a.Da&&36E4<(0,g.$C)()-a.Ba);l&&(h=1,e="drm.net.retryexhausted");H_(a,{onlcsrqerr:e,info:f});a.error(e,h,f);a.shouldRetry(pK(h),d)&&tab(a,d)}});
g.O(a,b);uab(a,b)}else a.error("drm.unavailable",1,"km.empty")};
qab=function(a,b){H_(a,{sdpvrq:1});a.K=Date.now();if("widevine"!==a.B.flavor)a.error("drm.provision",1,"e.flavor;f."+a.B.flavor+";l."+b.byteLength);else{var c={cpn:a.videoData.clientPlaybackNonce};Object.assign(c,a.W.j);c=g.Mn("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:WN(b)}),responseType:"arraybuffer"};
g.FB(c,b,3,500).then(AO(function(d){d=d.xhr;if(!a.Ma()){d=new Uint8Array(d.response);var e=WN(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))}}),AO(function(d){a.Ma()||a.error("drm.provision",1,"e."+d.errorCode+";c."+(d.xhr&&d.xhr.status))}))}};
I_=function(a){var b;if(b=a.qa&&null!=a.C)a=a.C,b=!(!a.j||!a.j.keyStatuses);return b};
uab=function(a,b){a.status="km";CH("drm_net_s",void 0,a.videoData.Na);if(a.videoData.useInnertubeDrmService()){var c=new g.bE(a.W.vl),d={context:g.Bsa(c.config_||g.CD())};d.drmSystem=vab[a.B.flavor];d.videoId=a.videoData.videoId;d.cpn=a.videoData.clientPlaybackNonce;d.sessionId=a.sessionId;d.licenseRequest=g.Gg(b.message);d.drmParams=a.videoData.drmParams;isNaN(a.cryptoPeriodIndex)||(d.isKeyRotated=!0,d.cryptoPeriodIndex=a.cryptoPeriodIndex);var e,f,h=!!(null==(e=a.videoData.B)?0:null==(f=e.video)?
0:f.isHdr());d.drmVideoFeature=h?"DRM_VIDEO_FEATURE_PREFER_HDR":"DRM_VIDEO_FEATURE_SDR";if(d.context&&d.context.client){if(e=a.W.j)d.context.client.deviceMake=e.cbrand,d.context.client.deviceModel=e.cmodel,d.context.client.browserName=e.cbr,d.context.client.browserVersion=e.cbrver,d.context.client.osName=e.cos,d.context.client.osVersion=e.cosver;d.context.user=d.context.user||{};d.context.request=d.context.request||{};a.videoData.Ba&&(d.context.user.credentialTransferTokens=[{token:a.videoData.Ba,
scope:"VIDEO"}]);d.context.request.mdxEnvironment=a.videoData.mdxEnvironment||d.context.request.mdxEnvironment;a.videoData.Hb&&(d.context.user.kidsParent={oauthToken:a.videoData.Hb});g.iR(a.B)&&(d.fairplayKeyId=g.Gg(Wca(a.fairplayKeyId)));g.gS(a.W,g.xT(a.videoData)).then(function(l){kab(b,d,c,l);a.status="rs"})}else a.error("drm.net",2,"t.r;ic.0")}else g.gS(a.W,g.xT(a.videoData)).then(function(l){iab(b,a.url,l);
a.status="rs"})};
sab=function(a,b){if(!a.Ma())if(H_(a,{onlcsrsp:1}),a.status="rr",0!==b.statusCode)a.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{CH("drm_kr_s",void 0,a.videoData.Na);if(b.heartbeatParams&&b.heartbeatParams.url&&a.videoData.L("outertube_streaming_data_always_use_staging_license_service")){var c=a.B.B.match(/(.*)youtube.com/g);c&&(b.heartbeatParams.url=c[0]+b.heartbeatParams.url)}b.heartbeatParams&&a.publish("newlicense",b.heartbeatParams);b.B&&(a.D=b.B,a.videoData.useInnertubeDrmService()&&
!a.videoData.DC&&a.publish("newlicense",new cab({})),a.videoData.DC=!0,a.Z=Ps(a.D,function(d){return d.includes("HDR")}));
b.j&&(a.W.L("html5_enable_vp9_fairplay")&&hR(a.B)?(c=g.Gg(Wca(a.fairplayKeyId),4),a.j[c]={type:b.j[c],status:"unknown"}):a.j=Yc(b.j,function(d){return{type:d,status:"unknown"}}));
fR(a.B)&&!a.videoData.useInnertubeDrmService()?b.message=Ig(WN(b.message)):gR(a.B)&&a.videoData.useInnertubeDrmService()&&(b.message=VIa(g.Gg(b.message)));a.C&&(H_(a,{updtks:1}),a.status="ku",a.C.update(b.message).then(function(){CH("drm_kr_f",void 0,a.videoData.Na);I_(a)||(H_(a,{ksApiUnsup:1}),a.publish("keystatuseschange",a))},function(d){d="msuf.req."+a.requestNumber+";msg."+g.Hg(d.message,3);
a.error("drm.keyerror",1,d)}));
a.N&&(a.Ba=(0,g.$C)());g.iR(a.B)&&a.publish("fairplay_next_need_key_info",a.baseUrl,b.nextFairplayKeyId);a.W.L("html5_enable_vp9_fairplay")&&hR(a.B)&&a.publish("qualitychange",wab(a.D));b.sabrLicenseConstraint&&a.publish("sabrlicenseconstraint",b.sabrLicenseConstraint)}};
tab=function(a,b){var c=b.j.getValue();c=new g.lv(function(){uab(a,b)},c);
g.O(a,c);c.start();g.Cm(b.j);H_(a,{rtyrq:1})};
xab=function(a,b){for(var c=[],d=g.u(Object.keys(a.j)),e=d.next();!e.done;e=d.next())e=e.value,c.push(e+"_"+a.j[e].type+"_"+a.j[e].status);return c.join(b)};
yab=function(a){var b={};b[a.status]=I_(a)?xab(a,"."):a.D.join(".");return b};
zab=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};
Aab=function(a,b){for(var c in a.j)if("usable"===a.j[c].status&&a.j[c].type===b)return!0;return!1};
Bab=function(a,b){for(var c in a.j)if(a.j[c].type===b)return a.j[c].status};
H_=function(a,b){var c=void 0===c?!1:c;nK(b);(c||a.W.uc())&&a.publish("ctmp","drmlog",b)};
Cab=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};
wab=function(a){return g.Fb(a,"UHD2")||g.Fb(a,"UHD2HDR")?"highres":g.Fb(a,"UHD1")||g.Fb(a,"UHD1HDR")?"hd2160":g.Fb(a,"HD")||g.Fb(a,"HDHDR")?"hd1080":g.Fb(a,"HD720")||g.Fb(a,"HD720HDR")?"hd720":"large"};
rab=function(a){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=Nba(new DOMParser,re(b));return a?(a=a.querySelector("Challenge"))&&a.childNodes&&0!==a.childNodes.length?new Uint8Array((0,g.mZ)(ada(a.childNodes[0].nodeValue)).buffer):null:null};
J_=function(a,b,c,d,e,f){f=void 0===f?!1:f;g.I.call(this);this.element=a;this.Z=b;this.initData=c;this.j=d;this.B=e;this.Y=f;this.sessionId="";this.N=this.K=this.C=this.G=null;this.D=new g.vK(this);g.O(this,this.D);Dab(this)};
Dab=function(a){a.j?(a.D.T(a.j,"message",a.b3),a.D.T(a.j,"keystatuseschange",a.Np),a.j.closed&&a.j.closed.then(AO(function(){a.onClosed()}),null)):a.B&&(oC(a.D,a.B,["mskeymessage",
"webkitkeymessage"],a.RZ),oC(a.D,a.B,["mskeyerror","webkitkeyerror"],a.QZ),oC(a.D,a.B,["mskeyadded","webkitkeyadded"],a.PZ))};
nab=function(a,b,c,d,e){a.G=b;a.C=c;a.K=d;a.N=e};
Eab=function(a,b,c){g.dF(c);a.C&&(c instanceof DOMException&&(b+=";n."+c.name+";m."+c.message),a.C(b))};
K_=function(a,b,c,d){d=void 0===d?!1:d;g.I.call(this);this.element=a;this.j=b;this.ma=c;this.N=d;this.K={};this.D=null;this.G=new g.vK(this);this.C=this.B=null;g.O(this,this.G)};
Gab=function(a,b){b=Fab(b,a.j.Wa);b=a.C.createSession("video/mp4",b);return new J_(null,null,null,null,b,a.N)};
Hab=function(a,b){for(var c=new Uint8Array(270),d=0;135>d;d++)c[2*d]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(d);a=a.C.createSession("video/mp4",b,c);return new J_(null,null,null,null,a)};
Iab=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};
Fab=function(a,b){var c=a.subarray(4);c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2);c=String.fromCharCode.apply(null,c).match(/ek=([0-9a-f]+)/)[1];for(var d="",e=0;e<c.length;e+=2)d+=String.fromCharCode(parseInt(c.substr(e,2),16));c=d;d=new ArrayBuffer(2*c.length);e=new Uint16Array(d);for(var f=0;f<c.length;f++)e[f]=c.charCodeAt(f);c=new Uint8Array(d);d=0;f=new ArrayBuffer(a.byteLength+4+c.byteLength+4+b.byteLength);e=new Uint8Array(f);f=new DataView(f);e.set(a);d+=a.byteLength;f.setUint32(d,
c.length,!0);d+=4;e.set(c,d);d+=c.length;f.setUint32(d,b.byteLength,!0);e.set(b,d+4);return e};
L_=function(){this.keys=[];this.values=[]};
Lab=function(a,b,c){g.wF.call(this);this.element=a;this.videoData=b;this.W=c;this.j=this.videoData.K;this.drmSessionId=this.videoData.drmSessionId||g.Wta();this.B=new Map;this.K=new L_;this.N=new L_;this.C=[];this.Na=2;this.ra=new g.vK(this);this.Ra=this.Da=!1;this.heartbeatParams=null;this.Ga=this.Y=!1;this.G=null;this.La=!1;this.Ba=this.W.L("html5_eme_ignore_teardown_errors");(a=this.element)&&(a.addKey||a.webkitAddKey)||cR()||fRa(c.experiments);this.W.L("html5_enable_vp9_fairplay")&&hR(this.j)?
c=Jab:(c=this.videoData.Dl,c="fairplay"===this.j.flavor||c?KS:Jab);this.Z=c;this.D=new K_(this.element,this.j,this.UJ.bind(this),this.Ba);g.O(this,this.D);dR(this.j)&&(this.qa=new K_(this.element,this.j,this.UJ.bind(this),this.Ba),g.O(this,this.qa));g.O(this,this.ra);c=this.element;this.j.keySystemAccess?this.ra.T(c,"encrypted",this.v$):oC(this.ra,c,dR(this.j)?["msneedkey"]:["needkey","webkitneedkey"],this.U$);Kab(this);a:switch(c=this.j,a=this.W.experiments,b=this.B,c.flavor){case "fairplay":19.2999<
Qpa()?(a=c.qy,c=c.oy,c>=a&&(c=.75*a),b=.5*(a-c),c=new F_(b,a,a-b-c,this)):c=null;break a;case "widevine":c=new G_(b,this,a);break a;default:c=null}if(this.G=c)g.O(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.xV,this),this.G.subscribe("log_qoe",this.dj,this);fRa(this.W.experiments);this.dj({cks:this.j.getInfo()})};
Kab=function(a){var b=a.D.cN();b?b.then(AO(function(){Mab(a)}),AO(function(c){if(!a.Ma()){g.dF(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.dj({mdkrdy:1}),a.Y=!0);
a.qa&&(b=a.qa.cN())};
Oab=function(a,b,c){a.Ra=!0;c=new KZ(b,c);a.W.L("html5_eme_loader_sync")&&(a.K.get(b)||a.K.set(b,c));Nab(a,c)};
Nab=function(a,b){if(!a.Ma()){a.dj({onInitData:1});if(a.W.L("html5_eme_loader_sync")&&a.videoData.C&&a.videoData.C.j){var c=a.N.get(b.initData);b=a.K.get(b.initData);if(!c||!b)return;b=c;c=b.initData;a.K.remove(c);a.N.remove(c)}a.dj({initd:b.initData.length,ct:b.contentType});if("widevine"===a.j.flavor)if(a.Da&&!a.videoData.isLivePlayback)M_(a);else{if(!(a.W.L("vp9_drm_live")&&a.videoData.isLivePlayback&&b.Pe)){a.Da=!0;c=b.cryptoPeriodIndex;var d=b.j;H7a(b);b.Pe||(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.xV(b)}};
Mab=function(a){if(!a.Ma())if(a.W.L("html5_drm_set_server_cert")&&!g.iJ(a.W)||hR(a.j)){var b=a.D.setServerCertificate();b?b.then(AO(function(c){a.W.uc()&&a.publish("ctmp","ssc",{success:c})}),AO(function(c){a.publish("ctmp","ssce",{n:c.name,
m:c.message})})).then(AO(function(){Pab(a)})):Pab(a)}else Pab(a)};
Pab=function(a){a.Ma()||(a.Y=!0,a.dj({onmdkrdy:1}),M_(a))};
Qab=function(a){return"widevine"===a.j.flavor&&a.videoData.L("html5_drm_cpi_license_key")};
M_=function(a){if((a.Ra||a.W.L("html5_widevine_use_fake_pssh"))&&a.Y&&!a.Ga){for(;a.C.length;){var b=a.C[0],c=Qab(a)?I7a(b):g.Gg(b.initData);if(hR(a.j)&&!b.B)a.C.shift();else{if(a.B.get(c))if("fairplay"!==a.j.flavor||hR(a.j)){a.C.shift();continue}else a.B.delete(c);H7a(b);break}}a.C.length&&a.createSession(a.C[0])}};
Rab=function(a){var b;if(b=g.PB()){var c;b=!(null==(c=a.D.B)||!c.getMetrics)}b&&(b=a.D.getMetrics())&&(b=g.$N(b),a.publish("ctmp","drm",{metrics:b}))};
Sab=function(a){g.I.call(this);var b=this;this.oa=a;this.Ea=this.oa.U();this.videoData=this.oa.getVideoData();this.CE=0;this.G=this.B=!1;this.D=0;this.C=g.YI(this.Ea.experiments,"html5_delayed_retry_count");this.j=new g.lv(function(){N_(b.oa)},g.YI(this.Ea.experiments,"html5_delayed_retry_delay_ms"));
g.O(this,this.j)};
Xab=function(a,b,c){var d=a.videoData.B,e=a.videoData.D;$S(a.oa.getVideoData())&&a.Ea.L("html5_gapless_fallback_on_qoe_restart")&&$$a(a.oa,"pe");if(("progressive.net.retryexhausted"===b||"fmt.unplayable"===b||"fmt.decode"===b)&&!a.oa.nk.G&&d&&"22"===d.itag)return a.oa.nk.G=!0,a.ue("qoe.restart",{reason:"fmt.unplayable.22"}),O_(a.oa),!0;var f=!1;if(a.videoData.isExternallyHostedPodcast){if(f=a.videoData.j2)c.mimeType=f.type,a.ma("3pp",{url:f.url});c.ns="3pp";a.oa.cg(b,1,"VIDEO_UNAVAILABLE",nK((new oK(b,
c,1)).details));return!0}var h=a.CE+3E4<(0,g.$C)()||a.j.isActive();if(a.Ea.L("html5_empty_src")&&a.videoData.isAd()&&"fmt.unplayable"===b&&/Empty src/.test(""+c.msg))return c.origin="emptysrc",a.ue("auth",c),!0;h||HWa(a.oa.Fn())||(c.nonfg="paused",h=!0,a.oa.pauseVideo());("fmt.decode"===b||"fmt.unplayable"===b)&&(null==e?0:fDa(e)||FK(e))&&(CRa(a.Ea.G,e.qb),c.acfallexp=e.qb,f=h=!0);!h&&0<a.C&&(a.j.start(),h=!0,c.delayed="1",--a.C);e=a.oa.ya;!h&&((null==d?0:EK(d))||(null==d?0:DK(d)))&&(CRa(a.Ea.G,d.qb),
f=h=!0,c.cfallexp=d.qb);if(!h)return Uab(a,c);a.CE=(0,g.$C)();h=a.videoData;if(h.fb){h=h.fb.yU();var l=Date.now()/1E3+1800;h=h<l}else h=!1;c.e=b;c.bkg=n3a();h&&(c.staleprog="1");a.ue("qoe.restart",c);if(h&&Vab(a))return Wab(a),!0;if(!(!g.NB("philips")||"fmt.unplayable"===b&&e&&e.Ga||"GAME_CONSOLE"===a.Ea.j.cplatform))try{window.close()}catch(m){}d&&EK(d)&&!a.Ea.L("html5_allow_av1_retry_in_session")?(f=a.Ea.G,f.Y=!0,f=f.B=!0):e?(b=(b=RZ(e.videoTrack)||e.videoTrack.B)?b.j:e.videoTrack.j,b.K+=1,wV(e.policy)?
xZ(e.C.j,b,!0):DZ(e.j,b,!0)):a.videoData.fb&&a.videoData.fb.TR();a.j.isActive()||N_(a.oa,f);return!0};
Uab=function(a,b){if(a.videoData.Ga)return!1;a.Ea.Jb+=1;if(10>=a.Ea.Jb)return!1;b.exiled=""+a.Ea.Jb;a.ue("qoe.start15s",b);a.oa.publish("playbackstalledatstart");return!0};
Vab=function(a){return a.B?!0:"yt"===a.Ea.ra?a.videoData.Ga?25>a.videoData.Xb:!a.videoData.Xb:!1};
Wab=function(a){if(!a.B){a.B=!0;var b=a.oa.getPlayerState();b=b.isPaused()||b.isSuspended();a.oa.uo();b&&!zT(a.videoData)||a.oa.publish("signatureexpired")}};
Yab=function(a,b){if((a=a.oa.Xe())&&("fmt.unplayable"===b.errorCode||"html5.invalidstate"===b.errorCode)){var c=a.Xg();b.details.merr=c?c.toString():"0";b.details.mmsg=a.wf()}};
Zab=function(a){return"net.badstatus"===a.errorCode&&(1===a.severity||!!a.details.fmt_unav)};
$ab=function(a,b){return a.Ea.L("html5_use_network_error_code_enums")&&403===b.details.rc||"403"===b.details.rc?(a=b.errorCode,"net.badstatus"===a||"manifest.net.retryexhausted"===a):!1};
bbb=function(a,b){if(!$ab(a,b)&&!a.B)return!1;b.details.sts="19837";if(Vab(a))return pK(b.severity)&&(b=Object.assign({e:b.errorCode},b.details),b=new oK("qoe.restart",b)),a.ue(b.errorCode,b.details),Wab(a),!0;6048E5<(0,g.$C)()-a.Ea.Sf&&abb(a,"signature");return!1};
abb=function(a,b){try{window.location.reload(),a.ue("qoe.restart",{detail:"pr."+b})}catch(c){}};
cbb=function(a,b){var c=a.Ea.G;c.K=!1;c.B=!0;a.ue("qoe.restart",{e:void 0===b?"fmt.noneavailable":b,detail:"hdr"});N_(a.oa,!0)};
dbb=function(a,b,c,d,e){this.videoData=a;this.j=b;this.reason=c;this.B=d;this.token=e};
ebb=function(a,b,c){this.W=a;this.pG=b;this.oa=c;this.Z=this.K=this.j=this.D=this.N=this.B=0;this.G=!1;this.Y=g.YI(this.W.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.C=new Map};
gbb=function(a,b,c){!a.W.L("html5_tv_ignore_capable_constraint")&&g.iJ(a.W)&&(c=c.compose(fbb(a,b)));return c};
ibb=function(a,b){var c,d=hbb(a,null==(c=b.j)?void 0:c.videoInfos);c=a.oa.getPlaybackRate();return 1<c&&d?(a=wRa(a.W.G,b.j.videoInfos,c),new iP(0,a,!0,"o")):new iP(0,0,!1,"o")};
hbb=function(a,b){return b&&g.iJ(a.W)?b.some(function(c){return 32<c.video.fps}):!1};
jbb=function(a,b){var c=a.oa.sI();a.L("html5_use_video_quality_cap_for_ustreamer_constraint")&&c&&0<c.XS&&lP(b.videoData.fA)&&(a=c.XS,b.videoData.fA=new iP(0,a,!1,"u"));return b.videoData.fA};
fbb=function(a,b){if(g.iJ(a.W)&&xP(a.W.G,yP.HEIGHT))var c=b.j.videoInfos[0].video.j;else{var d=!!b.j.j;var e;g.MR(a.W)&&(e=window.screen&&window.screen.width?new g.Ie(window.screen.width,window.screen.height):null);e||(e=a.W.Vm?a.W.Vm.clone():a.pG.Th());(SB||PY||d)&&e.scale(g.YR());d=e;aT(b.videoData)||zT(b.videoData);b=b.j.videoInfos;if(b.length){e=.85;var f=b[0].video;"MESH"!==f.projectionType&&"EQUIRECTANGULAR"!==f.projectionType&&"EQUIRECTANGULAR_THREED_TOP_BOTTOM"!==f.projectionType||bSa||(e=
.45);a=g.YI(a.W.experiments,"html5_viewport_undersend_maximum");for(f=0;f<b.length;f++){c=b[f];var h=c.video;if(null===d||h.width*e<d.width&&h.height*e<d.height){a&&f&&h.width<d.width*a&&h.height<d.height*a&&(c=b[f-1]);break}}d=c.video;c=new iP(0,"93"===c.itag?g.xK[cDa(d.width,d.height)]:d.j,!1,"r")}else c=KS;c=c.j}c&&(c=Math.max(c,360));return new iP(0,c,!1,"r")};
kbb=function(a){var b,c,d,e;return g.H(function(f){switch(f.j){case 1:return a.j.j&&"function"===typeof(null==(b=navigator.mediaCapabilities)?void 0:b.decodingInfo)?g.z(f,Promise.resolve(),2):f.return(Promise.resolve());case 2:c=g.u(a.j.videoInfos),d=c.next();case 3:if(d.done){f.Ia(0);break}e=d.value;return g.z(f,hDa(e),4);case 4:d=c.next(),f.Ia(3)}})};
mbb=function(a,b){if(!b.videoData.B||a.L("html5_disable_performance_downgrade"))return!1;6E4<g.kb()-a.N&&(a.B=0);a.B++;a.N=g.kb();if(4!==a.B)return!1;lbb(a,b.videoData.B);return!0};
obb=function(a,b,c,d){if(!b||!c||!b.videoData.B)return!1;var e=g.YI(a.W.experiments,"html5_df_downgrade_thresh"),f=a.L("html5_log_media_perf_info");if(!(5E3>(0,g.$C)()-a.D?0:f||0<e))return!1;var h=((0,g.$C)()-a.D)/1E3;a.D=(0,g.$C)();c=c.getVideoPlaybackQuality();if(!c)return!1;var l=c.droppedVideoFrames-a.K,m=c.totalVideoFrames-a.Z;a.K=c.droppedVideoFrames;a.Z=c.totalVideoFrames;var n=0===c.displayCompositedVideoFrames?0:c.displayCompositedVideoFrames||-1;f&&a.W.uc()&&a.oa.ma("ddf",{dr:c.droppedVideoFrames,
de:c.totalVideoFrames,comp:n});if(d)return a.j=0,!1;if((m-l)/h>a.Y||!e||g.iJ(a.W))return!1;a.j=(60<m?l/m:0)>e?a.j+1:0;if(3!==a.j)return!1;lbb(a,b.videoData.B);a.oa.ma("dfd",Object.assign({dr:c.droppedVideoFrames,de:c.totalVideoFrames},nbb()));return!0};
lbb=function(a,b){var c=a.W,d=b.qb,e=b.video.fps,f=b.video.j-1,h=a.C;b=""+d+(49<e?"p60":32<e?"p48":"");if(c.L("html5_gradual_perf_cap"))if(c=aR(c,d,e,h),c=Math.min(c,f),!P_.has(b)&&VNa().includes(b))TNa(b,c,!0);else if(P_.has(b)||null==h){a:{var l=void 0===l?!0:l;h=VNa().slice();if(l){if(h.includes(b))break a;h.push(b)}else{if(!h.includes(b))break a;h.splice(h.indexOf(b),1)}g.sC("yt-player-performance-cap-active-set",h,2592E3)}$Q.set(b,c)}else P_.add(b),null==h||h.set(b,c);else TNa(b,f);a.oa.Co()};
pbb=function(a,b){if(!b.j.j)return a.G?new iP(0,360,!1,"b"):KS;for(var c=!1,d=!1,e=g.u(b.j.videoInfos),f=e.next();!f.done;f=e.next())EK(f.value)?c=!0:d=!0;c=c&&d;d=0;e=g.YI(a.W.experiments,"html5_performance_cap_floor");e=a.W.B?240:e;b=g.u(b.j.videoInfos);for(f=b.next();!f.done;f=b.next()){var h=f.value;if(!c||!EK(h))if(f=aR(a.W,h.qb,h.video.fps,a.C),h=h.video.j,Math.max(f,e)>=h){d=h;break}}return new iP(0,d,!1,"b")};
qbb=function(a,b){var c=a.oa.Fn();return c.isInline()&&!b.HM?new iP(0,480,!1,"v"):c.isBackground()&&60<tE()/1E3&&!g.iJ(a.W)?new iP(0,360,!1,"v"):KS};
sbb=function(a,b,c){if(a.W.experiments.jb("html5_disable_client_autonav_cap_for_onesie")&&"onesie"===b.fetchType||g.iJ(a.W)&&(1080<=fP(-1)||b.osid))return KS;var d=g.YI(a.W.experiments,"html5_autonav_quality_cap"),e=g.YI(a.W.experiments,"html5_autonav_cap_idle_secs");return d&&b.isAutonav&&tE()/1E3>e?(c&&(d=rbb(a,c,d)),new iP(0,d,!1,"e")):KS};
rbb=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};
tbb=function(a,b){a.L("html5_log_media_perf_info")&&(a.oa.ma("perfdb",nbb()),a.L("html5_gradual_perf_cap")&&(a.oa.ma("sessionperfdb",Object.fromEntries($Q.entries())),a.oa.ma("playbackperfdb",Object.fromEntries(a.C.entries()))),a.oa.ma("hwc",{nch:navigator.hardwareConcurrency},!0),b&&a.oa.ma("mcdb",{itags:b.j.videoInfos.filter(function(c){var d;return!1===(null==(d=c.B)?void 0:d.smooth)}).map(function(c){return c.itag}).join("-")}))};
nbb=function(){return Yc(gP(),function(a){return""+a})};
Q_=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.iL;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.lv(this.send,6E4,this);this.C=!1;this.jsErrorCount=0;this.pd={JA:function(){b.JA()}};
this.JA=function(){b.jsErrorCount++};
g.O(this,this.delay);window.addEventListener("error",this.JA);window.addEventListener("unhandledrejection",this.JA)};
ubb=function(a){0<=a.j||(3===a.provider.oa.getVisibilityState()?a.G=!0:(a.j=g.TM(a.provider),a.delay.start()))};
vbb=function(a){if(!(0>a.B)){var b=g.TM(a.provider),c=b-a.D;a.D=b;8===a.playerState.state?a.playTimeSecs+=c:g.pL(a.playerState)&&!g.mG(a.playerState,16)&&(a.rebufferTimeSecs+=c)}};
wbb=function(a){var b;switch(null==(b=a.W.playerCanaryStage)?void 0:b.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}};
ybb=function(a,b){b?xbb.test(a):(a=g.lB(a),Object.keys(a).includes("cpn"))};
Abb=function(a,b,c,d,e,f,h){var l={format:"RAW"},m={};if(oB(a)&&pB()){if(h){var n;2!==(null==(n=zbb.uaChPolyfill)?void 0:n.state.type)?h=null:(h=zbb.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.cB("EOM_VISITOR_DATA"))?m["X-Goog-EOM-Visitor-Id"]=h:d?m["X-Goog-Visitor-Id"]=
d:g.cB("VISITOR_DATA")&&(m["X-Goog-Visitor-Id"]=g.cB("VISITOR_DATA"));c&&(m["X-Goog-PageId"]=c);(d=b.Ba)&&!$R(b)&&(m["X-Goog-AuthUser"]=d);e&&(m.Authorization="Bearer "+e);b.L("enable_datasync_id_header_in_web_vss_pings")&&b.Ll&&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")&&xbb.test(a)&&(l.withCredentials=!0)}0<Object.keys(m).length&&(l.headers=m);f&&(l.onFinish=f);return 1<Object.keys(l).length?l:null};
Bbb=function(a,b,c,d,e,f,h,l){pB()&&c.token&&(a=mB(a,{ctt:c.token,cttype:c.ES,mdx_environment:c.mdxEnvironment}));f||l&&d.L("nwl_skip_retry")?(null==b?b={}:ybb(a,d.L("html5_assert_cpn_with_regex")),h?aE().sendAndWrite(a,b):aE().sendThenWrite(a,b,l)):b?(ybb(a,d.L("html5_assert_cpn_with_regex")),g.CB(a,b)):g.UD(a,e)};
Dbb=function(a){for(var b=[],c=0;c<a;c++){for(var d={},e=Math.floor(9*Math.random()*Cbb)+Cbb,f="",h=0;9>h;h++)f+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(52*Math.random())];d.videoDecoderName=f;d.elapsedTimeMs=e;b.push(d)}return b};
g.T_=function(a,b){g.I.call(this);var c=this;this.provider=a;this.logger=new g.YX("qoe");this.j={};this.sequenceNumber=1;this.K=NaN;this.Ee="N";this.Z=this.bB=this.aB=this.Gb=this.G=0;this.Ra=this.Dc="";this.Xb=this.Va=NaN;this.Pb=0;this.Sc=-1;this.pc=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.fb=this.zb=this.Da=this.isOffline=this.Ga=!1;this.hd=[];this.qa=null;this.bb=this.C=this.Za=this.N=!1;this.B=-1;this.Wa=!1;this.Jd=new g.lv(this.j8,750,this);this.Y=this.adCpn=this.ra=this.contentCpn=
"";this.adFormat=void 0;this.ke=0;this.wd=new Set("cl fexp drm drm_system drm_product ns el adformat live cat".split(" "));this.rb=!1;this.Jb=NaN;this.La=0;this.Hb=!1;this.Ba=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.pd={IK:function(e){c.IK(e)},
fob:function(){return c.D},
uh:function(){return c.contentCpn},
Nnb:function(){return c.ra},
reportStats:function(){c.reportStats()},
Jnb:function(){return c.j.cat},
CI:function(e){return c.j[e]},
Cob:function(){return c.Ba}};
var d=g.YI(this.provider.W.experiments,"html5_qoe_proto_mock_length");d&&!R_.length&&(R_=Dbb(d));g.O(this,this.Jd);try{navigator.getBattery().then(function(e){c.qa=e})}catch(e){}g.S_(this,0,"vps",["N"]);
a.W.uc()&&(this.La=(0,g.$C)(),this.Jb=g.xB(function(){var e=(0,g.$C)(),f=e-c.La;500<f&&c.ma("vmlock",{diff:f.toFixed()});c.La=e},250));
a.oa.Sh()&&b&&(this.Ba=b-Math.round(1E3*g.TM(a)));this.provider.W.L("html5_qoe_qclc_remote_connected")&&(this.provider.videoData.Wi&&(this.remoteControlMode=Ebb[this.provider.videoData.Wi]||0),this.provider.videoData.Bj&&(a=gOa(this.provider.videoData.Bj),null==a?0:a.length))&&(this.remoteConnectedDevices=a)};
g.S_=function(a,b,c,d){var e=a.j[c];e||(e=[],a.j[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
Fbb=function(a,b){var c=a.provider.getCurrentTime();g.S_(a,b,"cmt",[c.toFixed(3)]);c=a.provider.Pi();if(a.D&&1E3*c>a.D.rZ+100&&a.D){var d=a.D,e=d.isAd;c=1E3*c-d.rZ;a.Na=1E3*b-d.xca-c-d.hca;c=(0,g.$C)()-c;b=a.Na;d=a.provider.videoData;var f=d.isAd();if(e||f){f=(e?"ad":"video")+"_to_"+(f?"ad":"video");var h={};d.G&&(h.cttAuthInfo={token:d.G,videoId:d.videoId});h.startTime=c-b;BH(f,h);g.AH({targetVideoId:d.videoId,targetCpn:d.clientPlaybackNonce},f);CH("pbs",c,f)}else c=a.provider.oa.zi(),c.K!==d.clientPlaybackNonce?
(c.G=d.clientPlaybackNonce,c.B=b):d.Rk()||g.eF(new g.AC("CSI timing logged before gllat",{cpn:d.clientPlaybackNonce}));a.ma("gllat",{l:a.Na.toFixed(),prev_ad:+e});delete a.D}};
U_=function(a,b){b=void 0===b?NaN:b;b=0<=b?b:g.TM(a.provider);var c=a.provider.oa.WD(),d=c.Qr-(a.Va||0);0<d&&g.S_(a,b,"bwm",[d,(c.Au-(a.Xb||0)).toFixed(3)]);isNaN(a.Va)&&c.Qr&&a.isOffline&&a.IK(!1);a.Va=c.Qr;a.Xb=c.Au;isNaN(c.bandwidthEstimate)||g.S_(a,b,"bwe",[c.bandwidthEstimate.toFixed(0)]);a.provider.W.uc()&&0!==Object.keys(c.j).length&&a.ma("bwinfo",c.j);if(a.provider.W.uc()||a.provider.W.L("html5_log_meminfo"))d=r$a(),Object.values(d).some(function(e){return void 0!==e})&&a.ma("meminfo",d);
a.qa&&g.S_(a,b,"bat",[a.qa.level,a.qa.charging?"1":"0"]);d=a.provider.oa.getVisibilityState();a.Sc!==d&&(g.S_(a,b,"vis",[d]),a.Sc=d);Fbb(a,b);(d=Gbb(a.provider))&&d!==a.Pb&&(g.S_(a,b,"conn",[d]),a.Pb=d);Hbb(a,b,c)};
Hbb=function(a,b,c){if(!isNaN(c.tv)){var d=c.tv;c.B<d&&(d=c.B);g.S_(a,b,"bh",[d.toFixed(3)])}};
Ibb=function(a,b,c){g.gS(a.provider.W,g.xT(a.provider.videoData)).then(function(d){var e=!1;if(b.includes("&dt=")||b.includes("&cotn=")){if(a.provider.W.L("kevlar_woffle")||a.provider.W.L("qoe_nwl_downloads"))e=!0}else a.provider.W.L("qoe_with_networkless")&&(e=!0);var f=a.provider.W.L("qoe_send_and_write"),h=a.provider.W;d=Abb(b,h,a.provider.W.pageId,a.provider.W.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,d);h.L("html5_simplify_pings")&&(d=d||{});d?(d.method="POST",d.postBody=c,
Bbb(b,d,{token:a.provider.videoData.G,ES:a.provider.videoData.Nm,mdxEnvironment:a.provider.videoData.mdxEnvironment},h,void 0,e,f&&a.Da)):e?(e=a.provider.W.L("networkless_ajax"),h={method:"POST",postBody:c},f&&a.Da?aE().sendAndWrite(b,h):e?g.CB(b,{method:"POST",postBody:c}):aE().sendThenWrite(b,h)):(f=c,f=void 0===f?"":f,tta(b,f)||g.UD(b,void 0,void 0,void 0,f))})};
Jbb=function(a){for(var b=0,c=g.u(Object.keys(a.j)),d=c.next();!d.done;d=c.next())d=d.value,b+=d.length+Number(Tr(a.j[d],function(e,f){return e+f.length},0));
96E3<b&&(new g.lv(a.reportStats,0,a)).start()};
Kbb=function(a){a.provider.videoData.jj&&V_(a,"prefetch");a.provider.videoData.Xb&&a.ma("reload",{r:a.provider.videoData.reloadReason,ct:a.provider.videoData.Xb});a.provider.videoData.zb&&V_(a,"monitor");a.provider.videoData.isLivePlayback&&V_(a,"live");oR&&V_(a,"streaming");yT(a.provider.videoData)&&V_(a,"lifa");a.provider.videoData.Wi&&a.ma("ctrl",{mode:a.provider.videoData.Wi},!0);if(a.provider.videoData.Bj){var b=a.provider.videoData.Bj.replace(/,/g,"_");a.ma("ytp",{type:b},!0)}a.provider.videoData.gV&&
(b=a.provider.videoData.gV.replace(/,/g,"."),a.ma("ytrexp",{ids:b},!0));var c=a.provider.videoData;b=a.provider.W.L("enable_white_noise")||a.provider.W.L("enable_webgl_noop");c=g.eT(c)||g.oT(c)||g.pT(c)||g.qT(c);(b||c)&&(b=(0,g.W_)())&&(a.j.gpu=[b]);zT(a.provider.videoData)&&g.S_(a,g.TM(a.provider),"dt",["1"]);a.provider.W.uc()&&(b=(0,g.$C)()-a.provider.W.Sf,a.ma("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));a.C=!0;a.K=g.xB(function(){a.reportStats()},1E4)};
Mbb=function(a,b,c){var d=g.TM(a.provider);Lbb(a,d,b,0,c);U_(a,d);Jbb(a)};
Lbb=function(a,b,c,d,e){var f=a.provider.W.j.cbrver;"Chrome"===a.provider.W.j.cbr&&/^96[.]/.test(f)&&"net.badstatus"===c&&/rc\.500/.test(e)&&Nbb(a,3);a.provider.W.L("html5_use_ump")&&/b248180278/.test(e)&&Nbb(a,4);f=a.provider.getCurrentTime();d=1===d?"fatal":"";c=[c,d,f.toFixed(3)];d&&(e+=";a6s."+QH());e&&c.push(Obb(e));g.S_(a,b,"error",c);a.C=!0};
Pbb=function(a){0<=a.B||(a.provider.W.Qf||3!==a.provider.oa.getVisibilityState()?a.B=g.TM(a.provider):a.Wa=!0)};
G4a=function(a,b,c,d){if(c!==a.Ee){b<a.G||("PL"===a.Ee?a.playTimeSecs+=b-a.G:"B"===a.Ee&&a.Ga&&(a.Ga=!1,a.rebufferTimeSecs+=b-a.Gb,!a.fb&&10<=a.rebufferTimeSecs&&180>=a.playTimeSecs&&(a.provider.oa.aF(),a.j.qoealert=["1"],a.fb=!0)),"B"!==c||"PL"!==a.Ee&&"PB"!==a.Ee||(a.Ga=!0),a.G=b);"PL"===a.Ee&&("B"===c||"S"===c)||a.provider.W.uc()?U_(a,b):(a.rb||"PL"!==c||(a.rb=!0,Hbb(a,b,a.provider.oa.WD())),Fbb(a,b));"PL"===c&&g.mv(a.Jd);var e=[c];"S"===c&&d&&e.push("ss."+d);g.S_(a,b,"vps",e);a.Ee=c;a.Gb=b;a.G=
b;a.C=!0}};
V_=function(a,b){var c=a.j.cat||[];c.push(b);a.j.cat=c};
zY=function(a,b,c,d,e,f){var h=g.TM(a.provider);1!==c&&3!==c&&5!==c||g.S_(a,h,"vps",[a.Ee]);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};
Nbb=function(a,b){if(!a.bb){var c=a.j.fcnz;c||(c=[],a.j.fcnz=c);c.push(String(b));a.bb=!0}};
Obb=function(a){/[^a-zA-Z0-9;.!_-]/.test(a)&&(a=a.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return a};
Qbb=function(a){this.provider=a;this.N=!1;this.j=0;this.D=-1;this.Ip=NaN;this.C=0;this.segments=[];this.K=this.G=0;this.previouslyEnded=!1;this.Y=this.provider.oa.getVolume();this.Z=this.provider.oa.isMuted()?1:0;this.B=X_(this.provider)};
Y_=function(a){a.B.startTime=a.C;a.B.endTime=a.j;var b=!1;a.segments.length&&g.Ab(a.segments).isEmpty()?(a.segments[a.segments.length-1].previouslyEnded&&(a.B.previouslyEnded=!0),a.segments[a.segments.length-1]=a.B,b=!0):a.segments.length&&a.B.isEmpty()||(a.segments.push(a.B),b=!0);b?0===a.B.endTime&&(a.previouslyEnded=!1):a.B.previouslyEnded&&(a.previouslyEnded=!0);a.G+=a.j-a.C;a.B=X_(a.provider);a.B.previouslyEnded=a.previouslyEnded;a.previouslyEnded=!1;a.C=a.j};
Sbb=function(a){Rbb(a);a.K=g.xB(function(){a.update()},100);
a.Ip=g.TM(a.provider);a.B=X_(a.provider)};
Rbb=function(a){g.zB(a.K);a.K=NaN};
Tbb=function(a,b,c){c-=a.Ip;return b===a.j&&.5<c};
Vbb=function(a,b,c,d){this.W=b;this.Dc=c;this.segments=[];this.experimentIds=[];this.Wa=this.Xb=this.isFinal=this.delayThresholdMet=this.Jb=this.wd=this.autoplay=this.autonav=!1;this.Sc="yt";this.N=[];this.G=this.Z=null;this.sendVisitorIdHeader=this.Za=!1;this.K=this.pageId="";this.D="watchtime"===c;this.C="playback"===c;this.ra="atr"===c;this.Rf="engage"===c;this.sendVisitorIdHeader=!1;this.uri=this.ra?"/api/stats/"+c:"//"+b.Wm+"/api/stats/"+c;d&&(this.Xb=d.fs,d.rtn&&(this.G=d.rtn),this.D?(this.playerState=
d.state,0<d.rti&&(this.Z=d.rti)):(this.Sf=d.mos,this.Mh=d.volume,d.at&&(this.adType=d.at)),d.autonav&&(this.autonav=d.autonav),null!=d.inview&&(this.hd=d.inview),d.size&&(this.Jd=d.size),d.playerwidth&&(this.playerWidth=d.playerwidth),d.playerheight&&(this.playerHeight=d.playerheight));this.Ie=g.md(b.j);this.K=pR(b.experiments,"html5_log_vss_extra_lr_cparams_freq");if("all"===this.K||"once"===this.K)this.Pb=g.md(b.Pb);this.Qf=b.Sc;this.experimentIds=sRa(b.experiments);this.Va=b.jj;this.Sc=b.ra;this.region=
b.region;this.userAge=b.userAge;this.fb=b.mj;this.Ud=tE();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.Ba=b.L("vss_pings_using_networkless")||b.L("kevlar_woffle");this.Tf=b.L("vss_final_ping_send_and_write");this.Ga=b.L("vss_use_send_and_write");this.pageId=b.pageId;this.eg=b.L("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.Pf=b.D&&b.L("embeds_append_synth_ch_headers");g.IR(b)&&(this.Na=b.Da);g.aC(g.QR(b))&&this.N.push(Ubb[1]);this.oh=
b.L("embeds_enable_muted_autoplay")&&g.IR(b);this.accessToken=g.xT(a);a.L("html5_add_per_destination_base_query_for_video_stats_urls")?a.Lo[this.Dc]?this.rb=a.Lo[this.Dc]:a.Lo.playback&&(this.rb=a.Lo.playback):a.rb&&(this.rb=a.rb);this.adFormat=a.adFormat;this.adQueryId=a.adQueryId;this.autoplay=FUa(a);this.C&&(this.wd=(a.L("html5_enable_log_server_autoplay")||a.L("enable_cleanup_masthead_autoplay_hack_fix"))&&a.Yp&&"adunit"==tT(a)?!0:!1);this.autonav=a.isAutonav||this.autonav;this.contentVideoId=
vT(a);this.clientPlaybackNonce=a.clientPlaybackNonce;this.Jb=a.Kf;a.G&&(this.Y=a.G,this.Hb=a.Nm);a.mdxEnvironment&&(this.mdxEnvironment=a.mdxEnvironment);this.j=a.PG;this.Gb=a.Gb;a.B&&(this.Ae=a.B.itag,a.D&&a.D.itag!==this.Ae&&(this.zb=a.D.itag));a.j&&qP(a.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=tT(a);this.Wa=a.Tf?!1:a.Qg;this.Re=a.Om;if(b=hT(a))this.Qg=b;this.Bf=a.Jx;this.La=a.La;this.eventId=a.eventId;this.playlistId=a.YV||a.playlistId;this.Cy=a.Cy;this.Wi=a.Wi;this.Bj=a.Bj;this.Qo=
a.Qo;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.eT=a.eT;this.referrer=a.referrer;this.No=a.eV||a.No;this.bb=a.UB;this.My=a.My;this.userGenderAge=a.userGenderAge;this.Nx=a.Nx;this.embedsRct=a.embedsRct;this.embedsRctn=a.embedsRctn;this.oh&&a.mutedAutoplay&&this.N.push(Ubb[2]);a.Yc(new g.Ie(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.N.push(Ubb[3]);this.Ra=a.dV;a.compositeLiveIngestionOffsetToken&&
(this.compositeLiveIngestionOffsetToken=a.compositeLiveIngestionOffsetToken)};
Wbb=function(a,b){var c=a.sendVisitorIdHeader?a.visitorData:void 0;return g.gS(a.W,a.accessToken).then(function(d){return Abb(a.uri,a.W,a.pageId,c,d,b,a.Pf)})};
Zbb=function(a,b){return function(){a.W.L("html5_simplify_pings")?(a.j=a.Da,a.ke=b(),a.Ud=0,a.send()):Wbb(a).then(function(c){var d=Xbb(a);d.cmt=d.len;d.lact="0";var e=b().toFixed(3);d.rt=Number(e).toString();d=g.Mn(a.uri,d);a.W.L("vss_through_gel_double")&&Ybb(d);a.Ba?(null==c&&(c={}),a.Ga?aE().sendAndWrite(d,c):aE().sendThenWrite(d,c)):c?g.CB(d,c):g.UD(d)})}};
Xbb=function(a){var b={ns:a.Sc,el:a.eventLabel,cpn:a.clientPlaybackNonce,ver:2,cmt:a.B(a.j),fmt:a.Ae,fs:a.Xb?"1":"0",rt:a.B(a.ke),adformat:a.adFormat,content_v:a.contentVideoId,euri:a.Qf,lact:a.Ud,live:a.Qg,cl:(627399198).toString(),mos:a.Sf,state:a.playerState,volume:a.Mh};a.subscribed&&(b.subscribed="1");Object.assign(b,a.Ie);"all"===a.K?Object.assign(b,a.Pb):"once"===a.K&&a.C&&Object.assign(b,a.Pb);a.autoplay&&(b.autoplay="1");a.wd&&(b.sautoplay="1");a.Jb&&(b.dni="1");!a.D&&a.Na&&(b.epm=$bb[a.Na]);
a.isFinal&&(b["final"]="1");a.Wa&&(b.splay="1");a.Gb&&(b.delay=a.Gb);a.Va&&(b.hl=a.Va);a.region&&(b.cr=a.region);a.userGenderAge&&(b.uga=a.userGenderAge);void 0!==a.userAge&&a.fb&&(b.uga=a.fb+a.userAge);void 0!==a.Da&&(b.len=a.B(a.Da));!a.D&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!==a.G&&(b.rtn=a.B(a.G));a.No&&(b.feature=a.No);a.Wi&&(b.ctrl=a.Wi);a.Bj&&(b.ytr=a.Bj);a.zb&&(b.afmt=a.zb);a.offlineDownloadUserChoice&&(b.ODUC=a.offlineDownloadUserChoice);a.pc&&(b.lio=a.B(a.pc));
a.D?(b.idpj=a.Re,b.ldpj=a.Bf,a.delayThresholdMet&&(b.dtm="1"),null!=a.Z&&(b.rti=a.B(a.Z)),a.Nx&&(b.ald=a.Nx),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken)):void 0!==a.adType&&(b.at=a.adType);a.Jd&&(a.C||a.D)&&(b.size=a.Jd);a.C&&a.N.length&&(b.pbstyle=a.N.join(","));null!=a.hd&&(a.C||a.D)&&(b.inview=a.B(a.hd));a.D&&(b.volume=Z_(a,g.Rr(a.segments,function(d){return d.volume})),b.st=Z_(a,g.Rr(a.segments,function(d){return d.startTime})),b.et=Z_(a,g.Rr(a.segments,function(d){return d.endTime})),
Ps(a.segments,function(d){return 1!==d.playbackRate})&&(b.rate=Z_(a,g.Rr(a.segments,function(d){return d.playbackRate}))),Ps(a.segments,function(d){return"-"!==d.j})&&(b.als=g.Rr(a.segments,function(d){return d.j}).join(",")),Ps(a.segments,function(d){return d.previouslyEnded})&&(b.pe=g.Rr(a.segments,function(d){return""+ +d.previouslyEnded}).join(",")));
b.muted=Z_(a,g.Rr(a.segments,function(d){return d.muted?1:0}));
Ps(a.segments,function(d){return 0!==d.visibilityState})&&(b.vis=Z_(a,g.Rr(a.segments,function(d){return d.visibilityState})));
Ps(a.segments,function(d){return 0!==d.connectionType})&&(b.conn=Z_(a,g.Rr(a.segments,function(d){return d.connectionType})));
Ps(a.segments,function(d){return 0!==d.B})&&(b.blo=Z_(a,g.Rr(a.segments,function(d){return d.B})));
Ps(a.segments,function(d){return!!d.C})&&(b.blo=g.Rr(a.segments,function(d){return d.C}).join(","));
Ps(a.segments,function(d){return!!d.compositeLiveStatusToken})&&(b.cbs=g.Rr(a.segments,function(d){return d.compositeLiveStatusToken}).join(","));
Ps(a.segments,function(d){return"-"!==d.G})&&(b.cc=g.Rr(a.segments,function(d){return d.G}).join(","));
Ps(a.segments,function(d){return"-"!==d.clipId})&&(b.clipid=g.Rr(a.segments,function(d){return d.clipId}).join(","));
if(Ps(a.segments,function(d){return!!d.D})){var c="au";
a.C&&(c="au_d");b[c]=g.Rr(a.segments,function(d){return d.D}).join(",")}pB()&&a.Y&&(b.ctt=a.Y,b.cttype=a.Hb,b.mdx_environment=a.mdxEnvironment);
a.Rf&&(b.etype=void 0!==a.qa?a.qa:0);a.bb&&(b.uoo=a.bb);a.livingRoomAppMode&&"LIVING_ROOM_APP_MODE_UNSPECIFIED"!==a.livingRoomAppMode&&(b.clram=acb[a.livingRoomAppMode]||a.livingRoomAppMode);a.rb?bcb(a,b):(b.docid=a.videoId,b.referrer=a.referrer,b.ei=a.eventId,b.of=a.eT,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.Qo&&(b.ssrt="1"),a.My&&(b.upt=a.My));a.C&&(a.embedsRct&&(b.rct=a.embedsRct),a.embedsRctn&&(b.rctn=
a.embedsRctn),a.compositeLiveIngestionOffsetToken&&(b.clio=a.compositeLiveIngestionOffsetToken));a.Ra&&(b.host_cpn=a.Ra);return b};
bcb=function(a,b){if(b&&a.rb){var c=new Set(["q","feature","mos"]),d=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),e=new Set(["aqi","autonav","list","ssrt","upt"]);"3pp"===a.rb.ns&&(b.ns="3pp");for(var f=g.u(Object.keys(a.rb)),h=f.next();!h.done;h=f.next())h=h.value,d.has(h)||c.has(h)||e.has(h)&&!a.rb[h]||(b[h]=a.rb[h])}};
Z_=function(a,b){return g.Rr(b,a.B).join(",")};
Ybb=function(a){-1!==a.indexOf("watchtime")&&g.MC("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:a}})};
ccb=function(a,b){a.attestationResponse&&Wbb(a).then(function(c){c=c||{};c.method="POST";c.postParams={atr:a.attestationResponse};a.Ba?a.Ga?aE().sendAndWrite(b,c):aE().sendThenWrite(b,c):g.CB(b,c)})};
$_=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.Ba=this.ra=this.La=this.Ga=this.Da=this.qa=this.C=!1;this.B=this.G=NaN;this.j=new Qbb(a)};
ecb=function(a){if(!a.C){16623===a.provider.videoData.YF&&g.eF(Error("Playback for EmbedPage"));var b=a0(a,"playback");a:{if(a.provider.W.L("web_player_use_server_vss_schedule")){var c,d=null==(c=a.provider.videoData.getPlayerResponse())?void 0:c.playbackTracking,e=null==d?void 0:d.videostatsScheduledFlushWalltimeSeconds;d=null==d?void 0:d.videostatsDefaultFlushIntervalSeconds;if(e&&0<e.length&&d){c=[];var f=a.provider.videoData.Om,h=a.provider.videoData.Jx,l=-f;e=g.u(e);for(var m=e.next();!m.done;m=
e.next())m=m.value,c.push(m-l),l=m;c.push(d+h-f);c.push(d);a.N=c;break a}}a.N=[10+a.provider.videoData.Om,10,10,40+a.provider.videoData.Jx-a.provider.videoData.Om,40]}Sbb(a.j);b.G=b0(a);0<a.B&&(b.j-=a.B);b.send();a.provider.videoData.yy&&(b=a.provider.W,d=a.provider.videoData,c={html5:"1",video_id:d.videoId,cpn:d.clientPlaybackNonce,ei:d.eventId,ptk:d.yy,oid:d.oT,ptchn:d.jT,pltype:d.pT,content_v:vT(d)},d.jy&&Object.assign(c,{m:d.jy}),b=g.Mn(b.Ga+"ptracking",c),c0(a,b));a.provider.videoData.Gb||dcb(a);
a.C=!0;a=a.j;a.j=a.provider.oa.Pi();a.Ip=g.TM(a.provider);!(0===a.C&&5>a.j)&&2<a.j-a.C&&(a.C=a.j);a.N=!0}};
b0=function(a,b){b=void 0===b?NaN:b;var c=g.TM(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.wB(function(){if(!a.Ma()){a.D=NaN;var f=fcb(a),h=gcb(a,f);h.Z=e;var l=1E3<a.Y;!(1<f.length)&&f[0].isEmpty()||l||(h.G=b0(a,e));h.send();a.Y++}},1E3*(e-c));
return a.G=e};
d0=function(a){g.yB(a.D);a.D=NaN};
fcb=function(a){a.j.update();a=a.j;a.segments.length&&a.j===a.C||Y_(a);var b=a.segments;a.segments=[];return b};
a0=function(a,b){var c=hcb(a.provider);Object.assign(c,{state:a.K});b=new Vbb(a.provider.videoData,a.provider.W,b,c);b.j=a.provider.oa.Pi();a.provider.videoData.isLivePlayback||(b.Da=a.provider.oa.getDuration());a.provider.videoData.j&&(c=a.provider.videoData.j.df(b.j))&&(b.pc=c-b.j);b.ke=g.TM(a.provider);b.segments=[X_(a.provider)];return b};
gcb=function(a,b){var c=a0(a,"watchtime");icb(a)&&(c.delayThresholdMet=!0,a.Da=!0);if(0<a.B){for(var d=g.u(b),e=d.next();!e.done;e=d.next())e=e.value,e.startTime-=a.B,e.endTime-=a.B;c.j-=a.B}else c.j=a.j.gX();c.segments=b;return c};
e0=function(a,b){var c=jcb(a,!isNaN(a.G));b&&(a.G=NaN);return c};
jcb=function(a,b){var c=gcb(a,fcb(a));!isNaN(a.G)&&b&&(c.Z=a.G);return c};
icb=function(a){var b;if(b=a.provider.videoData.isLoaded()&&a.provider.videoData.Gb&&a.C&&!a.Da)b=a.j,b=b.G+b.provider.oa.Pi()-b.C>=a.provider.videoData.Gb;return!!b};
dcb=function(a){a.provider.W.L("html5_remarketing_urls_cleanup")||(a.provider.videoData.remarketingUrl&&!a.Ga&&(c0(a,a.provider.videoData.remarketingUrl),a.Ga=!0),a.provider.videoData.ppvRemarketingUrl&&!a.Ba&&(c0(a,a.provider.videoData.ppvRemarketingUrl),a.Ba=!0));a.provider.videoData.youtubeRemarketingUrl&&!a.La&&(c0(a,a.provider.videoData.youtubeRemarketingUrl),a.La=!0);a.provider.videoData.googleRemarketingUrl&&!a.ra&&(c0(a,a.provider.videoData.googleRemarketingUrl),a.ra=!0);a.Du()};
kcb=function(a){if(!a.Ma()&&a.C){a.K="paused";var b=e0(a);b.isFinal=!0;b.send();a.dispose()}};
lcb=function(a,b){if(!a.Ma())if(g.mG(b.state,2)||g.mG(b.state,512)){if(a.K="paused",g.oG(b,2)||g.oG(b,512))g.oG(b,2)&&(a.j.previouslyEnded=!0),a.C&&(d0(a),e0(a).send(),a.G=NaN)}else if(g.mG(b.state,8)){a.K="playing";var c=a.C&&isNaN(a.D)?b0(a):NaN;!isNaN(c)&&(0>nG(b,64)||0>nG(b,512))&&(a=jcb(a,!1),a.G=c,a.send())}else a.K="paused"};
mcb=function(a,b,c){if(!a.qa){c||(c=a0(a,"atr"));c.attestationResponse=b;try{c.send()}catch(d){if("Unknown Error"!==d.message)throw d;}a.qa=!0}};
c0=function(a,b){var c=a.provider.W;g.gS(a.provider.W,g.xT(a.provider.videoData)).then(function(d){var e=a.provider.W.pageId,f=a.provider.W.sendVisitorIdHeader?a.provider.videoData.visitorData:void 0,h=a.provider.W.L("vss_pings_using_networkless")||a.provider.W.L("kevlar_woffle"),l=a.provider.W.L("allow_skip_networkless");d=Abb(b,c,e,f,d);Bbb(b,d,{token:a.provider.videoData.G,ES:a.provider.videoData.Nm,mdxEnvironment:a.provider.videoData.mdxEnvironment},c,void 0,h&&!l,!1,!0)})};
ncb=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};
f0=function(a,b,c){this.videoData=a;this.W=b;this.oa=c;this.j=void 0};
g.TM=function(a){return ocb(a)()};
ocb=function(a){if(!a.j){var b=g.jb(function(d){var e=(0,g.$C)();d&&631152E6>=e&&(a.oa.ma("ytnerror",{issue:28799967,value:""+e}),e=(new Date).getTime()+2);return e},a.W.L("html5_validate_yt_now")),c=b();
a.j=function(){return Math.round(b()-c)/1E3};
a.oa.PQ()}return a.j};
hcb=function(a){var b=a.oa.Pq()||{};b.fs=a.oa.nE();b.volume=a.oa.getVolume();b.muted=a.oa.isMuted()?1:0;b.mos=b.muted;b.inview=a.oa.LD();b.size=a.oa.AD();b.clipid=a.oa.vz();var c;b.playerheight=(null==(c=a.oa.getPlayerSize())?void 0:c.height)||0;var d;b.playerwidth=(null==(d=a.oa.getPlayerSize())?void 0:d.width)||0;a=a.videoData;c={};a.B&&(c.fmt=a.B.itag,a.D&&a.D.itag!=a.B.itag&&(c.afmt=a.D.itag));c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.vl&&(c.infringe=
1);(a.Tf?0:a.Qg)&&(c.splay=1);(d=hT(a))&&(c.live=d);a.Yp&&(c.sautoplay=1);a.Xk&&(c.autoplay=1);a.Cy&&(c.sdetail=a.Cy);a.La&&(c.partnerid=a.La);a.osid&&(c.osid=a.osid);a.wC&&(c.cc=g.JSa(a.wC));return Object.assign(b,c)};
Gbb=function(a){if(navigator.connection&&navigator.connection.type)return pcb[navigator.connection.type]||pcb.other;if(g.iJ(a.W)){a=navigator.userAgent;if(/[Ww]ireless[)]/.test(a))return 3;if(/[Ww]ired[)]/.test(a))return 30}return 0};
X_=function(a){var b=new ncb,c;b.G=(null==(c=hcb(a).cc)?void 0:c.toString())||"-";b.playbackRate=a.oa.getPlaybackRate();c=a.oa.getVisibilityState();0!==c&&(b.visibilityState=c);a.W.rb&&(b.B=1);b.C=a.videoData.Cr;b.compositeLiveStatusToken=a.videoData.compositeLiveStatusToken;c=a.oa.getAudioTrack();c.kc&&c.kc.id&&"und"!==c.kc.id&&(b.D=c.kc.id);b.connectionType=Gbb(a);b.volume=a.oa.getVolume();b.muted=a.oa.isMuted();b.clipId=a.oa.vz()||"-";b.j=a.videoData.aV||"-";return b};
g.g0=function(a,b){g.I.call(this);var c=this;this.provider=a;this.D=!1;this.C=new Map;this.Ee=new g.iL;this.pd={pob:function(){return c.qoe},
Bob:function(){return c.j},
Ynb:function(){return c.B}};
this.provider.videoData.qe()&&!this.provider.videoData.Ll&&(this.j=new $_(this.provider),g.O(this,this.j),this.qoe=new g.T_(this.provider,b),g.O(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Vg=this.provider.videoData.clientPlaybackNonce)&&this.C.set(this.Vg,this.j));if("canary"===a.W.playerCanaryState||"holdback"===a.W.playerCanaryState)this.B=new Q_(this.provider),g.O(this,this.B)};
qcb=function(a){return!!a.j&&!!a.qoe};
AY=function(a){a.B&&ubb(a.B);a.qoe&&Pbb(a.qoe)};
rcb=function(a){if(a.qoe){a=a.qoe;for(var b=g.u(a.provider.W.oh),c=b.next();!c.done;c=b.next())V_(a,c.value);a.provider.videoData.oh&&V_(a,a.provider.videoData.oh);a.provider.videoData.dc()&&(b=a.provider.videoData.j,VS(a.provider.videoData)&&V_(a,"manifestless"),b&&WQ(b)&&V_(a,"live-segment-"+WQ(b).toFixed(1)));US(a.provider.videoData)&&V_(a,"sabr");a.provider.videoData.gatewayExperimentGroup&&(b=a.provider.videoData.gatewayExperimentGroup,"EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"===b?b="spkadtrt":
"EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"===b&&(b="spkadctrl"),V_(a,b));"yt"!==a.provider.W.ra&&(a.j.len=[a.provider.videoData.lengthSeconds.toFixed(2)]);a.provider.videoData.cotn&&!zT(a.provider.videoData)&&a.IK(!0);a.provider.W.uc()&&(b=J3a())&&a.ma("cblt",{m:b});dT(a.provider.videoData)&&(a.provider.oa.getProximaLatencyPreference()?V_(a,"proximaui"):V_(a,"proximaexp"))}};
I4a=function(a){if(a.provider.oa.Sh()){if(a.D)return;a.D=!0}a.j&&ecb(a.j);if(a.B){a=a.B;var b=g.TM(a.provider);0>a.j&&(a.j=b,a.delay.start());a.B=b;a.D=b}};
H4a=function(a,b){if(g.oG(b,1024)||g.oG(b,512)||g.oG(b,4)){if(a.B){var c=a.B;0<=c.B||(c.j=-1,c.delay.stop())}a.qoe&&(c=a.qoe,c.N||(c.B=-1))}if(a.provider.videoData.enableServerStitchedDai&&a.Vg){var d;null==(d=a.C.get(a.Vg))||lcb(d,b)}else a.j&&lcb(a.j,b);if(a.qoe){d=a.qoe;c=b.state;var e=g.TM(d.provider),f=d.getPlayerState(c);G4a(d,e,f,c.seekSource||void 0);f=c.Ig;g.mG(c,128)&&f&&(f.FK=f.FK||"",Lbb(d,e,f.errorCode,f.hI,f.FK));(g.mG(c,2)||g.mG(c,128))&&d.reportStats(e);c.isPlaying()&&!d.N&&(0<=d.B&&
(d.j.user_intent=[d.B.toString()]),d.N=!0);Jbb(d)}a.B&&(d=a.B,vbb(d),d.playerState=b.state,0<=d.B&&g.oG(b,16)&&d.seekCount++,b.state.isError()&&d.send());a.provider.oa.Sh()&&(a.Ee=b.state)};
scb=function(a){if(a.provider.videoData.enableServerStitchedDai&&a.Vg){var b;null!=(b=a.C.get(a.Vg))&&Y_(b.j)}else a.j&&Y_(a.j.j)};
tcb=function(a){a.B&&a.B.send();if(a.qoe){var b=a.qoe;if(b.C){"PL"===b.Ee&&(b.Ee="N");var c=g.TM(b.provider);g.S_(b,c,"vps",[b.Ee]);b.N||(0<=b.B&&(b.j.user_intent=[b.B.toString()]),b.N=!0);b.provider.W.uc()&&b.ma("finalized",{});b.Da=!0;b.reportStats(c)}}if(a.provider.videoData.enableServerStitchedDai)for(b=g.u(a.C.values()),c=b.next();!c.done;c=b.next())kcb(c.value);else a.j&&kcb(a.j);a.dispose()};
ucb=function(a,b){a.j&&mcb(a.j,b)};
vcb=function(a){if(!a.j)return null;var b=a0(a.j,"atr");return function(c){a.j&&mcb(a.j,c,b)}};
wcb=function(a,b,c,d){c.adFormat=c.wd;var e=b.oa;b=new $_(new f0(c,b.W,{getDuration:function(){return c.lengthSeconds},
getCurrentTime:function(){return e.getCurrentTime()},
Pi:function(){return e.Pi()},
Sh:function(){return e.Sh()},
WD:function(){return e.WD()},
getPlayerSize:function(){return e.getPlayerSize()},
getAudioTrack:function(){return c.getAudioTrack()},
getPlaybackRate:function(){return e.getPlaybackRate()},
aE:function(){return e.aE()},
getVisibilityState:function(){return e.getVisibilityState()},
zi:function(){return e.zi()},
Pq:function(){return e.Pq()},
getVolume:function(){return e.getVolume()},
isMuted:function(){return e.isMuted()},
nE:function(){return e.nE()},
vz:function(){return e.vz()},
LD:function(){return e.LD()},
AD:function(){return e.AD()},
getProximaLatencyPreference:function(){return e.getProximaLatencyPreference()},
PQ:function(){e.PQ()},
aF:function(){e.aF()},
ma:function(f,h){e.ma(f,h)}}));
b.B=d;g.O(a,b);return b};
xcb=function(){this.tv=0;this.C=this.Au=this.Qr=this.B=NaN;this.j={};this.bandwidthEstimate=NaN};
h0=function(a,b,c){g.I.call(this);var d=this;this.W=a;this.oa=b;this.B=c;this.j=new Map;this.Vg="";this.pd={An:function(){return Array.from(d.j.keys())}}};
J4a=function(a,b){a.j.has(b)&&(tcb(a.j.get(b)),a.j.delete(b))};
ycb=function(){this.j=g.BBa;this.array=[]};
Acb=function(a,b,c){var d=[];for(b=zcb(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};
Bcb=function(a,b){var c=[];a=g.u(a.array);for(var d=a.next();!d.done&&!(d=d.value,d.contains(b)&&c.push(d),d.start>b);d=a.next());return c};
Ccb=function(a){return a.array.slice(zcb(a,0x7ffffffffffff),a.array.length)};
zcb=function(a,b){a=Ub(a.array,function(c){return b-c.start||1});
return 0>a?-(a+1):a};
Dcb=function(a,b){var c=NaN;a=g.u(a.array);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.contains(b)&&(isNaN(c)||d.end<c)&&(c=d.end),d.start>b&&(isNaN(c)||d.start<c)){c=d.start;break}return c};
Ecb=function(a,b){a.array=a.array.filter(function(c){return!b.has(c)})};
i0=function(a,b,c,d){g.I.call(this);this.Z=a;this.ra=b;this.G=c;this.Y=d;this.C=NaN;this.K=this.N=this.started=!1;this.B=[];this.qa=new g.lv(this.sync,250,this);g.O(this,this.qa);this.D=new g.lv(this.sync,0,this);g.O(this,this.D);this.j=new ycb};
Fcb=function(a){a.started=!0;a.sync()};
Gcb=function(a,b){a.started&&(a.sync(),g.mG(b.HA,16)&&(b=Dcb(a.j,Math.max(a.C-2E3,0)),!isNaN(b)&&0x7ffffffffffff>b&&a.D.start()))};
Hcb=function(a,b){b=g.u(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=c[1];1===c[0]?a.Y(g.EJ(d.namespace),d):a.Y(g.FJ(d.namespace),d)}};
Icb=function(a){this.timeStamp=this.mediaTime=NaN;this.B=this.j=!1;this.C=.001;g.iJ(a)&&(this.C=.01)};
j0=function(a,b){return b>a.mediaTime+a.C&&b<a.mediaTime+5};
DDa=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.j)b!==a.mediaTime&&(a.j=!1);else if(0<b&&a.mediaTime===b)return c-a.timeStamp>(d||!a.B?1500:400);a.mediaTime=b;a.timeStamp=c;return!1};
Jcb=function(a,b){this.videoData=a;this.j=b};
Kcb=function(a,b,c){return b.uH(c).then(function(){return IB(new Jcb(b,b.C))},function(d){d instanceof Error&&g.eF(d);
var e=sK('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),f=uK('audio/mp4; codecs="mp4a.40.2"'),h=e||f,l=b.isLivePlayback&&!g.xRa(a.G,!0);d="fmt.noneavailable";l?d="html5.unsupportedlive":h||(d="html5.missingapi");h=l||!h?2:1;e={buildRej:"1",a:b.Vv(),d:!!b.Sc,drm:b.Ti(),f18:0<=b.Rf.indexOf("itag=18"),c18:e};b.j&&(b.Ti()?(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=uK('video/mp4; codecs="avc1.42001E"'),
e.cVP9=uK('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 oK(d,e,h)})};
Lcb=function(a){this.G=a;this.C=this.B=0;this.D=new YU(50)};
l0=function(a,b,c){g.wF.call(this);this.videoData=a;this.experiments=b;this.Z=c;this.B=[];this.D=0;this.C=!0;this.G=!1;this.K=0;c=new Mcb;"ULTRALOW"===a.latencyClass&&(c.D=!1);a.zb?c.B=3:g.mT(a)&&(c.B=2);"NORMAL"===a.latencyClass&&(c.G=!0);var d=g.YI(b,"html5_liveness_drift_proxima_override");if(dT(a)&&d){c.j=d;var e;(null==(e=a.j)?0:xQa(e))&&c.j--}if(g.NB("trident/")||g.NB("edge/"))c.C=Math.max(c.C,g.YI(b,"html5_platform_minimum_readahead_seconds")||3);g.YI(b,"html5_minimum_readahead_seconds")&&
(c.C=g.YI(b,"html5_minimum_readahead_seconds"));g.YI(b,"html5_maximum_readahead_seconds")&&(c.K=g.YI(b,"html5_maximum_readahead_seconds"));b.jb("html5_force_adaptive_readahead")&&(c.D=!0);if(b=g.YI(b,"html5_liveness_drift_chunk_override"))c.j=b;cT(a)&&(c.j=(c.j+1)/5,"LOW"===a.latencyClass&&(c.j*=2));this.policy=c;this.N=1!==this.policy.B;this.j=k0(this,Ncb(this,isNaN(a.liveChunkReadahead)?3:a.liveChunkReadahead,a))};
Ocb=function(a,b){if(b)return b=a.videoData,b=Ncb(a,isNaN(b.liveChunkReadahead)?3:b.liveChunkReadahead,b),k0(a,b);if(a.B.length){if(1<Math.min.apply(null,a.B))return k0(a,a.j-1);if(a.policy.D)return k0(a,a.j+1)}return a.j};
Pcb=function(a,b){if(!a.B.length)return!1;var c=a.j;a.j=Ocb(a,void 0===b?!1:b);if(b=c!==a.j)a.B=[],a.D=0;return b};
n0=function(a,b){var c=a.Lq(),d=a.policy.j;a.G||(d=Math.max(d-1,0));a=d*m0(a);return b>=c-a};
Qcb=function(a,b,c){b=n0(a,b);c||b?b&&(a.C=!0):a.C=!1;a.N=2===a.policy.B||3===a.policy.B&&a.C};
Rcb=function(a,b){b=n0(a,b);a.G!==b&&a.publish("livestatusshift",b);a.G=b};
Ncb=function(a,b,c){c.zb&&b--;cT(c)&&(b=1);if(dT(c)&&(a=g.YI(a.experiments,"html5_live_chunk_readahead_proxima_override"))){b=a;var d;(null==(d=c.j)?0:xQa(d))&&b++}return b};
m0=function(a){return a.videoData.j?WQ(a.videoData.j)||5:5};
k0=function(a,b){b=Math.max(Math.max(1,Math.ceil(a.policy.C/m0(a))),b);return Math.min(Math.min(8,Math.floor(a.policy.K/m0(a))),b)};
Mcb=function(){this.C=0;this.K=Infinity;this.D=!0;this.j=2;this.B=1;this.G=!1};
q0=function(a){g.I.call(this);this.oa=a;this.W=this.oa.U();this.j=0;this.D=null;this.K=this.C=0;this.G=new g.lv(this.rf,1E3,this);this.fb=new o0({delayMs:g.YI(this.W.experiments,"html5_seek_timeout_delay_ms")});this.Da=new o0({delayMs:g.YI(this.W.experiments,"html5_long_rebuffer_threshold_ms")});this.rb=p0(this,"html5_seek_set_cmt");this.Ra=p0(this,"html5_seek_jiggle_cmt");this.Wa=p0(this,"html5_seek_new_elem");this.Jb=p0(this,"html5_unreported_seek_reseek");this.Ba=p0(this,"html5_long_rebuffer_jiggle_cmt");
this.Ga=new o0({delayMs:2E4});this.Va=p0(this,"html5_seek_new_elem_shorts");this.bb=p0(this,"html5_seek_new_media_source_shorts_reuse");this.Za=p0(this,"html5_seek_new_media_element_shorts_reuse");this.Na=p0(this,"html5_reseek_after_time_jump");this.Z=p0(this,"html5_gapless_handoff_close_end_long_rebuffer");this.qa=p0(this,"html5_gapless_slow_seek");this.Y=p0(this,"html5_gapless_slice_append_stuck");this.ra=p0(this,"html5_gapless_slow_start");this.N=p0(this,"html5_ads_preroll_lock_timeout");this.zb=
new o0({delayMs:g.YI(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,gz:!this.W.L("html5_report_slow_ads_as_error")});this.Hb=new o0({delayMs:g.YI(this.W.experiments,"html5_skip_slow_ad_delay_ms")||5E3,gz:!this.W.L("html5_skip_slow_buffering_ad")});this.Gb=new o0({delayMs:g.YI(this.W.experiments,"html5_slow_start_timeout_delay_ms")});this.La=p0(this,"html5_slow_start_no_media_source");this.B={};g.O(this,this.G)};
p0=function(a,b){var c=g.YI(a.W.experiments,b+"_delay_ms");a=a.W.L(b+"_cfl");return new o0({delayMs:c,gz:a})};
Scb=function(a,b){a.j=b};
r0=function(a,b,c,d,e,f,h,l){b.test(c)?(a.ue(e,b,h),b.gz||f()):(b.NK&&b.B&&!b.D?(c=(0,g.$C)(),d?b.j||(b.j=c):b.j=0,f=!d&&c-b.B>b.NK,c=b.j&&c-b.j>b.yR||f?b.D=!0:!1):c=!1,c&&(l=Object.assign({},a.jc(b),l),l.wn=h,l.we=e,l.wsuc=d,a.oa.ma("workaroundReport",l),d&&(b.reset(),a.B[e]=!1)))};
o0=function(a){var b=void 0===a?{}:a;a=void 0===b.delayMs?0:b.delayMs;var c=void 0===b.yR?1E3:b.yR,d=void 0===b.NK?3E4:b.NK;b=void 0===b.gz?!1:b.gz;this.j=this.B=this.C=this.startTimestamp=0;this.D=!1;this.G=Math.ceil(a/1E3);this.yR=c;this.NK=d;this.gz=b};
Wcb=function(a){g.I.call(this);var b=this;this.oa=a;this.W=this.oa.U();this.videoData=this.oa.getVideoData();this.policy=new Tcb;this.ra=new q0(this.oa);this.K=this.B=this.ya=this.mediaElement=this.playbackData=null;this.j=NaN;this.D=0;this.La=NaN;this.C=null;this.Na=NaN;this.G=this.Y=null;this.qa=!1;this.bb=NaN;this.rb=0;this.N=!1;this.Da=new g.lv(function(){Ucb(b,!1)},2E3);
this.zb=new g.lv(function(){s0(b)});
this.Va=new g.lv(function(){b.qa=!0;Vcb(b,{})});
this.timestampOffset=0;this.Ba=!0;this.Ra=0;this.fb=NaN;this.Ga=new g.lv(function(){var c=b.W.Pf;c.j+=1E4/36E5;c.j-c.C>1/6&&(RRa(c),c.C=c.j);b.Ga.start()},1E4);
this.Wa=this.Hb=!1;this.Z=0;this.Za=!1;g.O(this,this.ra);g.O(this,this.Da);g.O(this,this.Va);g.O(this,this.zb);g.O(this,this.Ga)};
Ycb=function(a,b){a.playbackData=b;a.videoData.isLivePlayback&&(a.K=new Lcb(function(){a:{if(a.playbackData&&a.playbackData.j.j){if(VS(a.videoData)&&a.ya){var c=a.ya.JH.Qi()||0;break a}if(a.videoData.j){c=a.videoData.j.ra;break a}}c=0}return c}),a.B=new l0(a.videoData,a.W.experiments,function(){return a.Le(!0)}));
Xcb(a)||(a.D=a.D||(g.BT(a.videoData)?0:a.videoData.startSeconds)||0)};
$cb=function(a,b){(a.ya=b)?Zcb(a,!0):t0(a)};
adb=function(a,b){g.mv(a.ra.G);a.L("html5_exponential_memory_for_sticky")&&(b.state.isPlaying()?g.mv(a.Ga):a.Ga.stop());if(a.mediaElement)if(8===b.HA.state&&FDa(b.state)&&g.pL(b.state)){b=a.mediaElement.getCurrentTime();var c=a.mediaElement.Rh();var d=a.L("manifestless_post_live_ufph")||a.L("manifestless_post_live")?PK(c,Math.max(b-3.5,0)):PK(c,b-3.5);0<=d&&b>c.end(d)-1.1&&d+1<c.length&&11>c.start(d+1)-c.end(d)&&(d=c.start(d+1)+.2,.2>Math.abs(a.fb-d)||(a.oa.ma("seekover",{b:OK(c,"_"),cmt:b}),a.fb=
d,a.seekTo(d,{cw:!0,yd:"seektimeline_postLiveDisc"})))}else(null==(c=b.state)?0:8===c.state)&&!a.Wa&&(0<a.videoData.limitedPlaybackDurationInSeconds?(u0(a.oa,a.getCurrentTime()+a.videoData.limitedPlaybackDurationInSeconds),a.Wa=!0):a.videoData.isLivePlayback&&0<a.videoData.endSeconds&&(u0(a.oa,a.getCurrentTime()+a.videoData.endSeconds),a.Wa=!0))};
cdb=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.Bi(c);-1!==f&&(e.B=e.j.getStartTime(f),e.C=e.B+e.j.getDuration(f),f=(0,g.$C)()/1E3-e.j.df(f),f-=e.G(),e.D.add(f))}}a.B&&(d&&(e=a.B,f=bdb(a),e.D++,3>e.D||3E3>g.kb()-e.K||(e.K=g.kb(),e.B.push(f),50<e.B.length&&e.B.shift())),e=a.B,Qcb(e,c,void 0===b?!0:b),Rcb(e,c),b&&Ucb(a,!0));d!==a.Hb&&(b=500>=a.getCurrentTime()-a.bb,c=1E3<=a.rb,b||c||(b=a.oa.lc(),b.qoe&&(b=b.qoe,c=g.TM(b.provider),
g.S_(b,c,"lh",[d?"1":"0"])),a.Hb=d,a.rb++,a.bb=a.getCurrentTime()))};
Ucb=function(a,b){if(a.B){var c=a.B;var d=a.getCurrentTime();!n0(c,d)&&c.er()?(c.policy.G&&(c.policy.j=Math.max(c.policy.j+1,10)),c=Infinity):c=d<c.videoData.Od()?Math.min(c.videoData.Od()+10,c.Lq()):NaN;if(!isNaN(c)){if(a.ya&&b&&(b=a.Da.isActive(),d=a.B.Lq(),(d=W$a(a.ya,d-a.Lc()))&&!b)){a.Da.start();a.oa.ma("inBufferPtl",{cmt:a.getCurrentTime(),seekTo:d+a.Lc()});a.seekTo(d+a.Lc(),{yd:"seektimeline_inBufferSeek"});return}a.seekTo(c,{yd:"seektimeline_pegToLive"})}}};
Zcb=function(a,b){if(a.B&&a.ya){var c=!1;b?c=!0:a.videoData.isLowLatencyLiveStream||"LOW"===a.videoData.latencyClass||"ULTRALOW"===a.videoData.latencyClass?c=Pcb(a.B):a.Za&&(a.Za=!1,c=Pcb(a.B,!0));c&&(b=a.oa.lc(),c=a.B,c=m0(c)*c.j,b.qoe&&(b=b.qoe,g.S_(b,g.TM(b.provider),"lra",[c]),b.ma("live-readahead-seconds",{v:c})));b=a.ya;var d=a.B.j;a=a.B;a=(a.j-1+a.policy.j)*m0(a);c=NaN;var e=b.Gb;2===e||-1===e?cT(b.oa.getVideoData())&&(c=b.policy.FA):(--d,e=b.oa.getVideoData(),e.dc()&&"ULTRALOW"!==e.latencyClass&&
!e.isLowLatencyLiveStream&&(c=dT(e)?b.policy.ZB:b.policy.Qo));d=Math.max(d,0);e=b.D;e.Zg=d;e.Z=c;b.K&&(b.K.qa=a)}};
ddb=function(a,b){a.D=b};
Vcb=function(a,b){edb(a,b).then(void 0,function(){t0(a)});
fdb(a).then(function(c){gdb(a,c)},function(){t0(a)});
g4a(a.oa,b);a.W.uc()&&(b=a.jc(),b["native"]=""+ +a.N,b.tgt=""+a.j,b.otgt=""+(a.j+a.timestampOffset),a.oa.ma("startSeek",b))};
edb=function(a,b){a.Y||(a.ya?isFinite(a.j)?a.Y=a.ya.seek(a.j-a.timestampOffset,b):(TS(a.videoData),a.Y=C_(a.ya),AT(a.videoData)||(a.j=a.ya.getCurrentTime()+a.timestampOffset)):a.Y=jg(a.j-a.timestampOffset));return a.Y};
fdb=function(a){var b=a.C;b||(a.C=new fL,b=a.C,s0(a));return b};
hdb=function(a,b,c){return isNaN(b)?NaN:g.ye(b,a.Od(),a.Le(c))};
s0=function(a){if(a.C)if(a.videoData.isLivePlayback&&a.videoData.C&&!a.videoData.C.j&&a.mediaElement&&0<a.mediaElement.Fk()&&0<uDa(a.mediaElement)&&(a.j=hdb(a,a.j,!1)),!a.mediaElement||!idb(a))a.zb.start(750);else if(!isNaN(a.j)&&isFinite(a.j)){var b=a.Na-(a.j-a.timestampOffset);if(!(0===b||a.L("html5_enable_new_seek_timeline_logic")&&.005>Math.abs(b)))if(b=a.L("html5_live_seek_timeline_timestamps")&&AT(a.videoData)?a.j-a.timestampOffset:a.j,b=a.mediaElement.getCurrentTime()-b,Math.abs(b)<=a.Ra||
a.L("html5_enable_new_seek_timeline_logic")&&.005>Math.abs(b))a.C&&a.C.resolve(a.mediaElement.getCurrentTime());else{if(a.videoData.zC)a.videoData.zC=!1;else if(!TS(a.videoData)&&a.j>=a.Le()-.1){a.j=a.Le();a.C.resolve(a.Le());VX(a.oa);return}try{var c=a.j-a.timestampOffset;a.mediaElement.seekTo(c);a.ra.j=c;a.Na=c;a.D=a.j;a.L("html5_enable_new_seek_timeline_logic")&&(a.N=!1)}catch(d){}}}};
idb=function(a){if(!a.mediaElement||0===a.mediaElement.Fk()||a.mediaElement.hasError())return!1;var b=0<a.mediaElement.getCurrentTime();if(!(a.videoData.C&&a.videoData.C.j||a.videoData.isLivePlayback)&&a.videoData.Ti())return b;if(0<=a.j){var c=a.mediaElement.VD();if(c.length||!b)return QK(c,a.j-a.timestampOffset)}return b};
gdb=function(a,b){a.G&&(a.G.resolve(b),a.oa.publish("SEEK_COMPLETE"),a.W.uc()&&(b=a.jc(),b["native"]=""+ +a.N,b.otgt=""+(a.j+a.timestampOffset),a.oa.ma("seekEnd",b)));t0(a)};
t0=function(a){a.j=NaN;a.Na=NaN;a.C=null;a.Y=null;a.G=null;a.qa=!1;a.N=!1;a.Ra=0;a.Da.stop();a.Va.stop()};
kdb=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.j){var h=!!a.C;a.C=new fL;a.L("html5_enable_new_seek_timeline_logic")&&a.C.then(function(m){gdb(a,m)},function(){t0(a)});
if(a.videoData.isAd()&&a.L("enabled_asd_timeline")){var l;Nxa({adCpn:a.videoData.clientPlaybackNonce,contentCpn:null!=(l=a.videoData.dV)?l:""},b.j);a.L("enable_ask_gating")&&a.oa.lQ()}a.Na=f;Scb(a.ra,d.getCurrentTime());a.seekTo(f,{yd:"seektimeline_mediaElementEvent"});c&&K4a(c,1E3*f,!!h);a.N=!0}break;case "seeked":a.C&&a.C.resolve(a.mediaElement.getCurrentTime());break;case "loadedmetadata":jdb(a);s0(a);break;case "progress":s0(a);break;case "pause":a.Z=a.getCurrentTime()}a.Z&&(("play"===e||"playing"===
e||"timeupdate"===e||"progress"===e)&&10<a.getCurrentTime()-a.Z&&a.seekTo(a.Z,{yd:"pauseJump"}),"pause"!==e&&"play"!==e&&"playing"!==e&&"progress"!==e&&(a.Z=0))};
ldb=function(a){return(nT(a.videoData)||!!a.videoData.liveUtcStartSeconds)&&(!!a.videoData.liveUtcStartSeconds||Xcb(a))&&!!a.videoData.j};
Xcb=function(a){return!!a.videoData.startSeconds&&isFinite(a.videoData.startSeconds)&&1E9<a.videoData.startSeconds};
jdb=function(a){if(a.Ba)if(g.mT(a.videoData))a.Ba=!1;else{var b="ss",c=0;a.videoData.j&&a.videoData.j.isManifestless&&a.videoData.Jb&&!Xcb(a)&&(b="mss",c=a.videoData.Jb);(a.videoData.Za?a.L("html5_prioritize_windowed_st_start_seconds"):a.L("html5_prioritize_st_start_seconds"))&&!c&&a.videoData.rj&&(b="stss",c=a.videoData.rj);!c&&ldb(a)&&(c=a.videoData.liveUtcStartSeconds||a.videoData.Jb,b="utc",c=a.Le()-a.df(a.Le())+c);!c&&a.videoData.rj&&(b="stss",c=a.videoData.rj);var d={};if(c){if(c>a.Le()||c<
a.Od())d.minSeekableTime=a.Od(),d.maxSeekableTime=a.Le(),d.cmt=a.getCurrentTime(),d.it=a.df(a.getCurrentTime()),d.ss=c,d.utc=ldb(a)?a.videoData.liveUtcStartSeconds||a.videoData.Jb:0,a.oa.ma("startSecondsOutOfBounds",d),a.videoData.dc()&&(c=hdb(a,c,!1));a.seekTo(c,{yd:"seektimeline_startSeconds"});d[b]=c;a.oa.ma("startSeconds",d);a.Ba=!1}else a.videoData.Jb&&(d[b]=a.videoData.Jb+a.Lc(),a.oa.ma("startSeconds",d))}};
mdb=function(a,b){a.oa.ma("sdai",{adj4t:b.toFixed(3)});a.La=b;b+=1;a.j=b;a.D=b;fdb(a).then(function(c){gdb(a,c)},function(){t0(a)})};
bdb=function(a){return a.mediaElement?hL(a.mediaElement):0};
Tcb=function(){};
v0=function(){this.j=this.started=!1};
sdb=function(a){function b(e){return c.Jl&&(!d.Rm||!d.Ea.N)||"yt"!==c.ra&&(38===d.La&&"books"===c.playerStyle||30===d.La&&"docs"===c.playerStyle||33===d.La&&"google-live"===c.playerStyle)?ndb(a,d,e):odb(a,d).then(function(){w0(a,d)},function(f){w0(a,d,!0);
throw f;})}
var c=a.U(),d=a.getVideoData();d.Ma();d.loading=!0;return pdb(a)?qdb(a,d).then(function(){w0(a,d)},function(e){e=qK(e);
if(pK(e.severity))return w0(a,d,!0),Promise.reject(e);"onesie.response.badproxystatus"===e.errorCode&&"3"===""+e.details.st&&(rdb=!0);a.handleError(e);return b("onesie")}):b("gvi")};
pdb=function(a){var b=a.U();if(b.L("html5_disable_onesie")||!b.L("html5_onesie")||!b.L("html5_onesie_inline")&&5===a.getVisibilityState()||"yt"!==b.ra)return!1;var c=b.yl;if(!c||!c.j)return a.handleError(new oK("onesie.unavailable.hotconfig",{key:"0"})),!1;if(c.j.G<(0,g.$C)()&&(a.ma("okexp","1"),(c=a.Dz())&&b.L("html5_prefer_trusted_host_on_key_expiration"))){c.B=!0;var d;(b=null==(d=c.j.get(0))?void 0:BP(d.location))&&!JX(b)&&c.j.delete(0)}if(rdb)return a.ma("ost3","1"),!1;d={};return 0<Object.keys(d).length?
(d.onesie="0",a.handleError(new oK("html5.missingapi",d)),!1):!0};
tdb=function(a){var b=eU();fU(b,a);return g.PH(b,yNa())};
qdb=function(a,b){var c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,G,L,M,R,ea,ma,oa,ia,va;return g.H(function(aa){if(1==aa.j)return b.fetchType="onesie",c=VUa(b,a.getPlayerSize(),a.getVisibilityState()),d=new t_(a,c),g.z(aa,d.fetch(),2);e=aa.B;f={player_response:e};b.loading=!1;h=a.Bd.Nt;if(d.Ag){l=g.u(d.Ag.entries());for(m=l.next();!m.done;m=l.next())n=m.value,p=g.u(n),q=p.next().value,r=p.next().value,t=q,v=r,h.j.set(t,v,180),t===b.videoId&&(w=v.Hq(),b.cT=w);h.rz=d}A=g.u(d.TW.entries());for(C=A.next();!C.done;C=
A.next())F=C.value,G=g.u(F),L=G.next().value,M=G.next().value,R=L,ea=M,h.B.set(R,ea,180);g.OS(b,f,!0);if(b.loading||MS(b))return aa.return(Promise.resolve());h.j.removeAll();h.B.removeAll();b.cT=[];ma={};oa="onesie.response";ia=0;b.errorCode?(oa="auth",ma.ec=b.errorCode,ma.ed=b.errorDetail,ma.es=b.vn||"",ia=2):(ma.successButUnplayable="1",ma.disposed=""+ +b.Ma(),ma.afmts=""+ +/adaptiveFormats/.test(e),ma.cpn=b.clientPlaybackNonce);va=new oK(oa,ma,ia);return aa.return(Promise.reject(va))})};
odb=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.Ia(4);break}if(!(0<f)){t.Ia(5);break}return g.z(t,Cg(5E3),6);case 6:h=new g.AC("Retrying OnePlatform request",{attempt:f}),g.eF(h);case 5:return g.Ba(t,7),g.z(t,udb(a,b),9);case 9:return t.return();case 7:l=g.Da(t);m=qK(l);n=m.errorCode;p=a.U();p.L("html5_use_network_error_code_enums")?d&&"manifest.net.badstatus"===n&&401===m.details.rc&&(d=!1,f===e-1&&(e+=1)):d&&"manifest.net.badstatus"===
n&&"401"===m.details.rc&&(d=!1,f===e-1&&(e+=1));if("auth"===n||"manifest.net.retryexhausted"===n)return t.return(Promise.reject(m));a.handleError(m);if(pK(m.severity)){t.Ia(4);break}case 3:f++;t.Ia(2);break;case 4:return q=c?"auth":"manifest.net.retryexhausted",r=c?2:1,t.return(Promise.reject(new oK(q,{backend:"op"},r)))}})};
udb=function(a,b){function c(oa){2===oa.readyState&&a.Td("ps_c")}
var d,e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,G,L,M,R,ea,ma;return g.H(function(oa){switch(oa.j){case 1:b.fetchType="gp";d=a.U();e=g.gS(d,g.xT(b));if(!e.j){f=e.getValue();oa.Ia(2);break}return g.z(oa,e.j,3);case 3:f=oa.B;case 2:return h=f,l=tdb(h),m=VUa(b,a.getPlayerSize(),a.getVisibilityState()),n=g.TG(vdb),p=g.xT(b),q=(0,g.$C)(),r=!1,t="empty",v=0,a.Td("psns"),w={LA:c},g.z(oa,g.GH(l,m,n,void 0,w),4);case 4:A=oa.B;a.Td("psnr");if(b.Ma())return oa.return();A?"error"in A&&A.error?(r=!0,t="esf:"+A.error.message,
v=A.error.code):A.errorMetadata&&(r=!0,t="its",v=A.errorMetadata.status):r=!0;if(r)return C=0,F=((0,g.$C)()-q).toFixed(),G={},G=d.L("html5_use_network_error_code_enums")?{backend:"op",rc:v,rt:F,reason:t,has_kpt:b.Hb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.cB("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.Ba?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.Wi||"",token_eq:p===g.xT(b)?"1":"0"}:{backend:"op",
rc:""+v,rt:F,reason:t,has_kpt:b.Hb?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.cB("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.Ba?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.Wi||"",token_eq:p===g.xT(b)?"1":"0"},L="manifest.net.connect",429===v?(L="auth",C=2):200<v&&(L="manifest.net.badstatus",400===v&&(C=2)),oa.return(Promise.reject(new oK(L,G,C)));b.loading=!1;g.OS(b,{raw_player_response:A},!0);
M=A;g.NR(b.U())&&M&&M.trackingParams&&$O(M.trackingParams);if(b.errorCode)return R={ec:b.errorCode,ed:b.errorDetail,es:b.vn||""},oa.return(Promise.reject(new oK("auth",R,2)));if(!b.loading&&!MS(b))return ea=b.isAd()?"auth":"manifest.net.retryexhausted",ma=b.isAd()?2:1,oa.return(Promise.reject(new oK(ea,{successButUnplayable:"1",hasMedia:g.jT(b)?"1":"0"},ma)));g.Aa(oa)}})};
ndb=function(a,b,c){function d(v){v=qK(v);if(pK(v.severity))return Promise.reject(v);a.handleError(v);return!1}
function e(){return!0}
var f,h,l,m,n,p,q,r,t;return g.H(function(v){switch(v.j){case 1:var w=a.U(),A=a.getPlayerSize(),C=a.getVisibilityState();a.isFullscreen();var F=window.location.search;if(38===b.La&&"books"===w.playerStyle)F=b.videoId.indexOf(":"),F=g.Mn("//play.google.com/books/volumes/"+b.videoId.slice(0,F)+"/content/media",{aid:b.videoId.slice(F+1),sig:b.Tda});else if(30===b.La&&"docs"===w.playerStyle)F=g.Mn("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.U7,authkey:b.M9,eurl:w.Sc});else if(33===
b.La&&"google-live"===w.playerStyle)F=g.Mn("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{"yt"!==w.ra&&g.dF(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:tT(b),hl:w.jj,list:b.playlistId,agcid:b.jV,aqi:b.adQueryId,sts:19837,lact:tE()};Object.assign(G,w.j);w.forcedExperiments&&(G.forced_experiments=w.forcedExperiments);b.Ba?(G.vvt=b.Ba,b.mdxEnvironment&&(G.mdx_environment=b.mdxEnvironment)):
g.xT(b)&&(G.access_token=g.xT(b));b.adFormat&&(G.adformat=b.adFormat);0<=b.slotPosition&&(G.slot_pos=b.slotPosition);b.breakType&&(G.break_type=b.breakType);null!==b.VB&&(G.ad_id=b.VB);null!==b.XB&&(G.ad_sys=b.XB);null!==b.CC&&(G.encoded_ad_playback_context=b.CC);b.BM&&(G.tpra="1");w.captionsLanguagePreference&&(G.cc_lang_pref=w.captionsLanguagePreference);w.Hb&&2!==w.Hb&&(G.cc_load_policy=w.Hb);var L=g.yC(g.xC(),65);g.ZR(w)&&null!=L&&!L&&(G.device_captions_on="1");w.mute&&(G.mute=w.mute);b.annotationsLoadPolicy&&
2!==w.annotationsLoadPolicy&&(G.iv_load_policy=b.annotationsLoadPolicy);b.ly&&(G.endscreen_ad_tracking=b.ly);(L=w.Na.get(b.videoId))&&L.qL&&(G.ic_track=L.qL);b.ra&&(G.itct=b.ra);FUa(b)&&(G.autoplay="1");b.mutedAutoplay&&(G.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(G.autonav="1");b.KC&&(G.noiba="1");b.isMdxPlayback&&(G.mdx="1",G.ytr=b.Bj);b.mdxControlMode&&(G.mdx_control_mode=b.mdxControlMode);b.zv&&(G.ytrcc=b.zv);b.wE&&(G.utpsa="1");b.isFling&&(G.is_fling="1");b.isInlinePlaybackNoAd&&(G.mute="1");
b.vnd&&(G.vnd=b.vnd);b.forceAdsUrl&&(L=3===b.forceAdsUrl.split("|").length,G.force_ad_params=L?b.forceAdsUrl:"||"+b.forceAdsUrl);b.jj&&(G.preload=b.jj);A.width&&(G.width=A.width);A.height&&(G.height=A.height);(b.Tf?0:b.Qg)&&(G.splay="1");b.ypcPreview&&(G.ypc_preview="1");vT(b)&&(G.content_v=vT(b));b.zb&&(G.livemonitor=1);w.Ba&&(G.authuser=w.Ba);w.pageId&&(G.pageid=w.pageId);w.fb&&(G.ei=w.fb);w.D&&(G.iframe="1");b.contentCheckOk&&(G.cco="1");b.racyCheckOk&&(G.rco="1");w.N&&b.EF&&(G.live_start_walltime=
b.EF);w.N&&b.Fl&&(G.live_manifest_duration=b.Fl);w.N&&b.playerParams&&(G.player_params=b.playerParams);w.N&&b.cycToken&&(G.cyc=b.cycToken);w.N&&b.CM&&(G.tkn=b.CM);0!==C&&(G.vis=C);w.enableSafetyMode&&(G.enable_safety_mode="1");b.Hb&&(G.kpt=b.Hb);b.Wm&&(G.kids_age_up_mode=b.Wm);b.kidsAppInfo&&(G.kids_app_info=b.kidsAppInfo);b.qz&&(G.upg_content_filter_mode="1");w.widgetReferrer&&(G.widget_referrer=w.widgetReferrer.substring(0,128));b.qa?(A=null!=b.qa.latitudeE7&&null!=b.qa.longitudeE7?b.qa.latitudeE7+
","+b.qa.longitudeE7:",",A+=","+(b.qa.clientPermissionState||0)+","+(b.qa.locationRadiusMeters||"")+","+(b.qa.locationOverrideToken||"")):A=null;A&&(G.uloc=A);b.Um&&(G.internalipoverride=b.Um);w.embedConfig&&(G.embed_config=w.embedConfig);w.Qm&&(G.co_rel="1");0<w.ancestorOrigins.length&&(G.ancestor_origins=Array.from(w.ancestorOrigins).join(","));void 0!==w.homeGroupInfo&&(G.home_group_info=w.homeGroupInfo);void 0!==w.livingRoomAppMode&&(G.living_room_app_mode=w.livingRoomAppMode);w.enablePrivacyFilter&&
(G.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(G.is_living_room_deeplink="1");b.Ou&&b.Pu&&(G.clip=b.Ou,G.clipt=b.Pu);b.iy&&(G.disable_watch_next="1");b.Tm&&(G.forced_by_var="1");for(var M in G)!wdb.has(M)&&G[M]&&512<String(G[M]).length&&(g.eF(Error("GVI param too long: "+M)),G[M]="");M=w.Ga;g.OR(w)&&(M=oBa(M.replace(/\b(?:www|web)([.-])/,"tv$1"))||w.Ga);w=g.Mn(M+"get_video_info",G);F&&(w=ypa(w,F));F=w}f=F;l=(h=b.isAd())?1:3;m=0;case 2:if(!(m<l)){v.Ia(4);break}n=f;if(!(0<m)){v.Ia(5);break}return g.z(v,
Cg(5E3),6);case 6:p={playerretry:m,playerretrysrc:c},h||(p.recover="embedded"),n=nB(f,p);case 5:return g.z(v,xdb(b,n).then(e,d),7);case 7:if(q=v.B)return v.return();m++;v.Ia(2);break;case 4:r=h?"auth":"manifest.net.retryexhausted";t=h?2:1;if(!h&&1E-4>Math.random())try{g.eF(new g.AC("b/152131571",btoa(f)))}catch(R){}return v.return(Promise.reject(new oK(r,{backend:"gvi"},t)))}})};
xdb=function(a,b){function c(A){return d(A.xhr)}
function d(A){if(!a.Ma()){A=A?A.status:-1;var C=0,F=((0,g.$C)()-p).toFixed();F=e.L("html5_use_network_error_code_enums")?{backend:"gvi",rc:A,rt:F}:{backend:"gvi",rc:""+A,rt:F};var G="manifest.net.connect";429===A?(G="auth",C=2):200<A&&(G="manifest.net.badstatus",400===A&&(C=2));return Promise.reject(new oK(G,F,C))}}
var e,f,h,l,m,n,p,q,r,t,v,w;return g.H(function(A){if(1==A.j){a.fetchType="gvi";e=a.U();var C={};a.PL&&(C.ytrext=a.PL);(l=g.id(C)?void 0:C)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:l},h=nB(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=pR(e.experiments,"debug_sherlog_username"))&&(m["X-Youtube-Sherlog-Username"]=n);0<Object.keys(m).length&&
(f.headers=m);p=(0,g.$C)();return g.z(A,sQa(EB,h,f).then(void 0,c),2)}q=A.B;if(!q||!q.responseText)return A.return(d(q));a.loading=!1;r=kB(q.responseText);g.OS(a,r,!0);if(a.errorCode)return t={ec:a.errorCode,ed:a.errorDetail,es:a.vn||""},A.return(Promise.reject(new oK("auth",t,2)));if(!a.loading&&!MS(a))return v=a.isAd()?"auth":"manifest.net.retryexhausted",w=a.isAd()?2:1,A.return(Promise.reject(new oK(v,{successButUnplayable:"1"},w)));g.Aa(A)})};
w0=function(a,b,c){c=void 0===c?!1:c;var d,e,f,h;g.H(function(l){if(1==l.j){d=a.U();if(c&&(!g.aS(d)||"embedded"!==tT(b))||b.iy||"adunit"!==tT(b)&&(g.iJ(d)||TR(d)||g.JG(d)||g.OR(d)||"WEB_CREATOR"===g.nR(d)))return l.return();e=g.gS(d,g.xT(b));return e.j?g.z(l,e.j,3):(f=e.getValue(),l.Ia(2))}2!=l.j&&(f=l.B);h=f;return l.return(ydb(a,b,h))})};
ydb=function(a,b,c){var d,e,f,h,l;return g.H(function(m){if(1==m.j){g.Ba(m,2);d=tdb(c);var n=b.U();g.xC();var p={context:g.FT(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};"adunit"===tT(b)&&(p.isAdPlayback=!0);n.embedConfig&&(p.serializedThirdPartyEmbedConfig=n.embedConfig);n.Qm&&(p.showContentOwnerOnly=!0);b.kV&&(p.showShortsOnly=!0);g.yC(0,141)&&(p.autonavState=g.yC(0,140)?"STATE_OFF":"STATE_ON");if(g.ZR(n)){var q=g.yC(0,65);q=null!=q?
!q:!1;var r=!!g.tC("yt-player-sticky-caption");p.captionsRequested=q&&r}var t;q=null==(t=n.getWebPlayerContextConfig())?void 0:t.encryptedHostFlags;n.L("embeds_web_enable_havs_getwatchnext")&&q&&(p.playbackContext={encryptedHostFlags:q});e=p;f=g.TG(zdb);a.Td("wn_s");return g.z(m,g.GH(d,e,f),4)}if(2!=m.j)return h=m.B,a.Td("wn_r"),!h||"error"in h&&h.error||(l=h,g.NR(b.U())&&l.trackingParams&&$O(l.trackingParams),g.OS(b,{raw_watch_next_response:h},!1)),g.Ca(m,0);g.Da(m);g.Aa(m)})};
Adb=function(a){a.Td("vir");a.Td("ps_s");DH("vir",void 0,"video_to_ad");var b=sdb(a);b.then(function(){a.Td("virc");DH("virc",void 0,"video_to_ad");a.Td("ps_r");DH("ps_r",void 0,"video_to_ad")},function(){a.Td("virc");
DH("virc",void 0,"video_to_ad")});
return b};
g.z0=function(a,b,c,d,e,f,h,l,m,n){m=void 0===m?new g.LS(a):m;n=void 0===n?!0:n;g.wF.call(this);var p=this;this.W=a;this.playerType=b;this.Kb=c;this.pG=d;this.getVisibilityState=f;this.visibility=h;this.Bd=l;this.videoData=m;this.d6=n;this.logger=new g.YX("VideoPlayer");this.WC=new Icb(this.W);this.Be=null;this.VA=new L_;this.Cq=null;this.nk=new ebb(this.W,this.pG,this);this.LX=!0;this.Qa=this.ya=null;this.Rp=[];this.Sp=new v0;this.Mf=this.sF=null;this.Ar=new v0;this.vK=null;this.bP=this.At=!1;this.wK=
NaN;this.n_=!1;this.playerState=new g.iL;this.yK=[];this.PB=new g.vK;this.Kk=new Sab(this);this.mediaElement=null;this.Ew=new g.lv(this.I$,15E3,this);this.QR=this.PJ=!1;this.ix=NaN;this.sH=!1;this.dN=0;this.rH=new g.lv(this.UR,4500,this);this.mE=!1;this.qJ=NaN;this.vS=new ZU(new Map([["bufferhealth",function(){return bdb(p.Zc)}],
["bandwidth",function(){return p.lO()}],
["networkactivity",function(){return p.W.schedule.Y}],
["livelatency",function(){return p.isAtLiveHead()&&p.isPlaying()?Bdb(p):NaN}],
["rawlivelatency",function(){return Bdb(p)}]]));
this.CE=0;this.loop=!1;this.playbackRate=1;this.BY=0;this.Zc=new Wcb(this);this.HV=!1;this.xK=[];this.IP=this.o_=0;this.LR=this.v1=!1;this.NB=this.Au=this.Qr=0;this.RM=new g.lv(this.X7,0,this);this.D0=!1;this.Ub=this.Vc=null;this.L9=[this.PB,this.RM,this.Ew,this.rH,this.vS];this.Yf=function(){var q=p.lc();q.provider.W.Qf||3===q.provider.oa.getVisibilityState()||(q.provider.W.Qf=!0);scb(q);if(q.B){var r=q.B;r.G&&0>r.j&&3!==r.provider.oa.getVisibilityState()&&ubb(r)}q.qoe&&(q=q.qoe,q.Wa&&0>q.B&&q.provider.W.Qf&&
Pbb(q),q.C&&U_(q));p.ya&&x0(p);p.W.So&&!p.videoData.backgroundable&&p.mediaElement&&!p.Vh()&&(p.isBackground()&&p.mediaElement.fH()?(p.ma("bgmobile",{suspend:1}),p.uo(!0,!0)):p.isBackground()||y0(p)&&p.ma("bgmobile",{resume:1}))};
this.pd={Np:function(q){p.Np(q)},
Lpb:function(q){p.Be=q},
hob:function(){return p.pA},
PD:function(){return p.qA},
Hnb:function(){return p.rH},
epb:function(){},
U:function(){return p.W},
Xe:function(){return p.mediaElement},
gpb:function(q){p.gK(q)}};
this.logger.debug(function(){return"creating, type "+b});
this.Qh=new i0(function(){return p.getCurrentTime()},function(){return p.getPlaybackRate()},function(){return p.getPlayerState()},function(q,r){q!==g.EJ("endcr")||g.mG(p.playerState,32)||VX(p);
p.W.uc()&&q===g.EJ("ad")&&p.ma("acre",{st:r.start,et:r.end,acpn:r.C,cpn:m.clientPlaybackNonce});e(q,r,p.playerType)});
g.O(this,this.Qh);g.O(this,this.Zc);Cdb(this,m);this.videoData.subscribe("dataupdated",this.wba,this);this.videoData.subscribe("dataloaded",this.uN,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ma,this);this.videoData.subscribe("ctmpstr",this.iB,this);this.PH();p3a(this.Yf);this.visibility.subscribe("visibilitystatechange",this.Yf)};
cL=function(a){return a.L("html5_not_reset_media_source")&&!a.Ti()&&!a.videoData.isLivePlayback&&g.uT(a.videoData)&&!a.W.supportsGaplessShorts()};
Cdb=function(a,b){if(2===a.playerType||a.W.ip)b.fT=!0;var c=NSa(b.wd,b.gA,a.W.D,a.W.N);c&&(b.adFormat=c);2===a.playerType&&(b.Xk=!0);if(a.isFullscreen()||a.W.D)c=g.tC("yt-player-autonavstate"),b.autonavState=c||(a.W.D?2:a.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&u0(a,b.endSeconds)};
Edb=function(a){if(a.videoData.Y){var b=a.Bd.Xc();a.videoData.Lx=a.videoData.Lx||(null==b?void 0:b.pO());a.videoData.Mx=a.videoData.Mx||(null==b?void 0:b.tO())}if(xUa(a.videoData)||!JUa(a.videoData))b=a.videoData.errorDetail,a.cg(a.videoData.errorCode||"auth",2,unescape(a.videoData.errorReason),b,b,a.videoData.vn||void 0);a.videoData.Sf=a.getUserAudio51Preference();a.L("html5_generate_content_po_token")&&Ddb(a)};
Fdb=function(a){tcb(a.pA);g.vb(a.pA);for(var b=a.qA,c=g.u(b.j.values()),d=c.next();!d.done;d=c.next())tcb(d.value);b.j.clear();g.vb(a.qA)};
Gdb=function(a){return a.mediaElement&&a.mediaElement.Wu()?a.mediaElement.Ib():null};
A0=function(a){if(a.L("html5_check_video_data_errors_before_playback_start")&&a.videoData.errorCode)return!1;if(a.videoData.qe())return!0;a.cg("api.invalidparam",2,void 0,"invalidVideodata.1");return!1};
g.UX=function(a,b){(b=void 0===b?!1:b)||g.BT(a.videoData)||AY(a.lc());a.At=b;!A0(a)||a.Sp.Dt()?g.iJ(a.W)&&a.videoData.isLivePlayback&&a.Sp.Dt()&&!a.Sp.j&&!a.At&&a.uN():(a.Sp.start(),b=a.lc(),g.TM(b.provider),b.qoe&&Kbb(b.qoe),a.uN())};
Hdb=function(a){var b=a.videoData;Adb(a).then(void 0,function(c){a.videoData!==b||b.Ma()||(c=qK(c),"auth"===c.errorCode&&a.videoData.errorDetail?a.cg(c.errorCode,2,unescape(a.videoData.errorReason),nK(c.details),a.videoData.errorDetail,a.videoData.vn||void 0):a.handleError(c))})};
X3a=function(a,b){a.Vc=b;a.ya&&U$a(a.ya,new g.D_(b))};
Kdb=function(a){if(!g.mG(a.playerState,128))if(a.videoData.isLoaded(),a.logger.debug("finished loading playback data"),a.Rp=g.Lb(a.videoData.Da),g.jT(a.videoData)){a.Kb.tick("bpd_s");B0(a).then(function(){a.Kb.tick("bpd_c");if(!a.Ma()){a.At&&(a.Ac(lL(lL(a.playerState,512),1)),y0(a));var c=a.videoData;c.endSeconds&&c.endSeconds>c.startSeconds&&u0(a,c.endSeconds);a.Sp.j=!0;C0(a,"dataloaded");a.Ar.Dt()&&Idb(a);tbb(a.nk,a.Mf)}});
a.L("html5_log_media_perf_info")&&a.ma("loudness",{v:a.videoData.Pf.toFixed(3)},!0);var b=KUa(a.videoData);b&&a.ma("playerResponseExperiment",{id:b},!0);Jdb(a)}else C0(a,"dataloaded")};
B0=function(a){D0(a);a.Mf=null;var b=Kcb(a.W,a.videoData,a.Vh());a.sF=b;a.sF.then(function(c){Ldb(a,c)},function(c){a.Ma()||(c=qK(c),a.visibility.isBackground()?(E0(a,"vp_none_avail"),a.sF=null,a.Sp.reset()):(a.Sp.j=!0,a.cg(c.errorCode,c.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",nK(c.details))))});
return b};
O_=function(a){a.logger.debug("Updating for format change");B0(a).then(function(){return y0(a)});
g.oL(a.playerState)&&a.playVideo()};
Ldb=function(a,b){if(!a.Ma()&&!b.videoData.Ma()){a.logger.debug("finished building playback data");a.Mf=b;Ycb(a.Zc,a.Mf);if(a.videoData.isLivePlayback){var c=c5a(a.Bd.Nt,a.videoData.videoId)||a.ya&&!isNaN(a.ya.Ga);c=a.L("html5_onesie_live")&&c;0<a.videoData.Jb&&!VS(a.videoData)||c||a.seekTo(a.Le(),{yd:"videoplayer_playbackData",seekSource:18})}a.videoData.C.j?a.ya?g.eF(Error("Duplicated Loader")):(c=g.YI(a.W.experiments,"html5_onesie_defer_content_loader_ms"))&&y_(a)&&c5a(a.Bd.Nt,a.videoData.Wda)?
g.wB(function(){a.Ma()||a.ya||Mdb(a)},c):Mdb(a):!a.videoData.C.j&&zT(a.videoData)&&a.aK(new LZ(a.videoData.videoId||"",4));
F0(a);kbb(b).then(function(){var d={};a.Co(d);a.W.uc()&&a.L("html5_log_media_perf_info")&&a.ma("av1Info",d);x0(a)})}};
Ndb=function(a){a.logger.debug("start readying playback");a.mediaElement&&a.mediaElement.activate();g.UX(a);A0(a)&&!g.mG(a.playerState,128)&&(a.Ar.Dt()||(a.Ar.start(),a.videoData.Gl?a.Ac(lL(a.playerState,4)):a.Ac(lL(lL(a.playerState,8),1))),Idb(a))};
Idb=function(a){a.Ma();a.logger.debug("try finish readying playback");if(a.Ar.j)a.logger.debug("already finished readying");else if(a.Sp.j)if(g.mG(a.playerState,128))a.logger.debug("cannot finish readying because of error");else if(a.Rp.length)a.logger.debug(function(){return"cannot finish readying because of pending preroll: "+a.Rp});
else if(a.Qh.started||Fcb(a.Qh),a.Hn())a.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{a.ya&&(a.bP=L6a(a.ya.timing));a.Ar.j||(a.Ar.j=!0);var b=a.L("html5_onesie_live")&&a.ya&&!isNaN(a.ya.Ga);!a.videoData.isLivePlayback||0<a.videoData.Jb&&!VS(a.videoData)||b||(a.logger.debug("seek to head for live"),a.seekTo(Infinity,{yd:"videoplayer_readying",seekSource:18}),a.isBackground()&&(a.QR=!0));rcb(a.lc());a.logger.debug("finished readying playback");a.publish("playbackready",
a);zH("pl_c",a.Kb.timerName)||(a.Kb.tick("pl_c"),DH("pl_c",void 0,"video_to_ad"));zH("pbr",a.Kb.timerName)||(a.Kb.tick("pbr"),DH("pbr",void 0,"video_to_ad"))}else a.logger.debug("playback data not loaded")};
VX=function(a,b,c){b=void 0===b?!0:b;(void 0===c||c)&&a.mediaElement&&a.mediaElement.pause();a.Ac(b?new g.iL(14):new g.iL)};
u0=function(a,b){a.Cq&&Odb(a);a.Cq=new g.DJ(1E3*b,0x7ffffffffffff);a.Cq.namespace="endcr";a.addCueRange(a.Cq)};
Odb=function(a){a.removeCueRange(a.Cq);a.Cq=null};
Pdb=function(a,b,c,d,e){var f=a.lc(e);e=g.BT(a.videoData)?f.getVideoData():a.videoData;e.B=c;var h=g.bV(a);f.nF(new dbb(e,c,b,h?h.itag:"",d));c=a.nk;c.B=0;c.j=0;a.publish("internalvideoformatchange",e,"m"===b)};
g.bV=function(a){var b=G0(a);return lP(b)||!a.Mf?null:g.Db(a.Mf.j.videoInfos,function(c){return b.D(c)})};
G0=function(a){if(a.Mf){var b=a.nk;var c=a.Mf;a=a.Nv();if(b.oa.Fn().isInline())var d=KS;else b.L("html5_exponential_memory_for_sticky")?d=.5>URa(b.W.Pf,"sticky-lifetime")?"auto":mP[fP()]:d=mP[fP()],d=g.kP("auto",d,!1,"s");if(lP(d)){d=fbb(b,c);var e=d.compose,f;a:if((f=c.j)&&f.videoInfos.length){for(var h=g.u(f.videoInfos),l=h.next();!l.done;l=h.next()){l=l.value;var m=void 0;if(null==(m=l.B)?0:m.smooth){f=l.video.j;break a}}f=f.videoInfos[0].video.j}else f=0;Rpa()&&!g.iJ(b.W)&&DK(c.j.videoInfos[0])&&
(f=Math.min(f,g.xK.large));h=g.YI(b.W.experiments,"html5_chipset_soft_cap");0<h&&(f=Math.min(f,h));d=e.call(d,new iP(0,f,!1,"o"));e=d.compose;f=4320;!b.W.B||g.NR(b.W)||b.W.L("hls_for_vod")||b.W.L("mweb_remove_360p_cap")||0!==g.YI(b.W.experiments,"html5_byterate_soft_cap_mweb")||(f=g.xK.medium);(h=g.YI(b.W.experiments,"html5_default_quality_cap"))&&c.j.j&&(b.W.L("html5_always_apply_default_quality_cap")||!c.videoData.Wi&&!c.videoData.le)&&(f=Math.min(f,h));h=g.YI(b.W.experiments,"html5_random_playback_cap");
l=/[a-h]$/;h&&l.test(c.videoData.clientPlaybackNonce)&&(f=Math.min(f,h));if(l=h=g.YI(b.W.experiments,"html5_hfr_quality_cap"))a:{l=c.j;if(l.j)for(l=g.u(l.videoInfos),m=l.next();!m.done;m=l.next())if(32<m.value.video.fps){l=!0;break a}l=!1}l&&(f=Math.min(f,h));(h=g.YI(b.W.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(f=Math.min(f,h));f=rbb(b,c,f);d=e.call(d,0<g.YI(b.W.experiments,"html5_byterate_soft_cap_mweb")&&b.W.B&&!g.NR(b.W)?new iP(0,4320===f?0:f,!1,"d",g.YI(b.W.experiments,
"html5_byterate_soft_cap_mweb")):new iP(0,4320===f?0:f,!1,"d")).compose(qbb(b,c.videoData)).compose(sbb(b,c.videoData,c)).compose(pbb(b,c)).compose(ibb(b,c));if(lP(a)||b.L("html5_apply_pbr_cap_for_drm"))d=d.compose(jbb(b,c))}else b.L("html5_perf_cap_override_sticky")&&(d=d.compose(pbb(b,c))),b.L("html5_ustreamer_cap_override_sticky")&&(d=d.compose(jbb(b,c)));d=d.compose(ibb(b,c));b=c.videoData.Iz.compose(d).compose(c.videoData.xX).compose(a)}else b=KS;return b};
S9a=function(a){var b=a.nk;a=a.videoData;var c=qbb(b,a);b.L("html5_disable_client_autonav_cap_for_onesie")||c.compose(sbb(b,a));return c};
g.Qdb=function(a,b,c,d){a.videoData.Iz=b;if(a.Mf&&c){c=a.nk;var e=a.Mf;if(e.j.j){var f=fP(),h=e.j.videoInfos[0].video.j;if(!(f>h&&0!==h&&b.j===h)){var l;f=hbb(c,null==(l=e.j)?void 0:l.videoInfos);l=c.oa.getPlaybackRate();1<l&&f&&(l=wRa(c.W.G,e.j.videoInfos,l),0!==b.j&&l<b.j&&c.oa.setPlaybackRate(1));var m,n;b=g.xK[nP(b)];e=(null==(m=e.videoData.B)?void 0:null==(n=m.video)?void 0:n.j)||0;g.sC("yt-player-quality",{quality:b,previousQuality:e},31104E3);c.W.schedule.policy.C=480<=fP();if(c.L("html5_exponential_memory_for_sticky")){m=
c.W.Pf;n=1;var p=void 0===p?!1:p;TRa(m,"sticky-lifetime");m.values["sticky-lifetime"]&&m.Rq["sticky-lifetime"]||(m.values["sticky-lifetime"]=0,m.Rq["sticky-lifetime"]=0);p&&.0625<URa(m,"sticky-lifetime")&&(n=2*m.Rq["sticky-lifetime"]);m.values["sticky-lifetime"]+=1*Math.pow(2,m.j/n);m.Rq["sticky-lifetime"]=n;m.D.start()}if(c.L("html5_perf_cap_override_sticky")){m=c.W;p=c.C;c=c.L("html5_perserve_av1_perf_cap");n=c=void 0===c?!1:c;m=m.L("html5_gradual_perf_cap");m=void 0===m?!1:m;if(void 0===n?0:n){n=
gP();b=g.u(Object.keys(n));for(e=b.next();!e.done;e=b.next())e=e.value,0!==e.indexOf("1")&&(n[e]=0);g.sC("yt-player-performance-cap",n,m?2592E3:604800)}else g.uC("yt-player-performance-cap");WNa(c);if(c){c=g.u($Q.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||$Q.delete(m);c=g.u(P_.values());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||P_.delete(m);c=g.u(p.keys());for(m=c.next();!m.done;m=c.next())m=m.value,m.startsWith("1")||p.delete(m)}else $Q.clear(),P_.clear(),
p.clear()}}}}a.ya&&(p=a.ya,d=d||"",wV(p.policy)?zZ(p.C.j,d):zZ(p.j.G,d));F0(a)};
Ddb=function(a){a.videoData.videoId?a.Bd.iO(a.videoData.videoId).then(function(b){a.videoData.uca=b}):a.ma("pomvid",{})};
F0=function(a){if(!a.Ma()&&!g.mG(a.playerState,128)&&a.videoData.C){if(a.videoData.C.j)x0(a);else{var b=G0(a),c=a.videoData;a:{var d=a.videoData.hd;if(b.j){for(var e=g.u(d),f=e.next();!f.done;f=e.next()){f=f.value;var h=f.getInfo(),l=g.xK[h.video.quality];if((!b.C||"auto"!==h.video.quality)&&l<=b.j){d=f;break a}}d=d[d.length-1]}else d=d[0]}c.fb=d;Pdb(a,b.reason,Rdb(a,a.videoData.fb))}if(a.L("html5_check_unstarted")?g.oL(a.playerState):a.isPlaying())a.Zc.Ba=!1,a.playVideo()}};
x0=function(a){if(a.videoData.C&&a.videoData.C.j){var b=G0(a);a.ya&&D$a(a.ya,b)}};
Sdb=function(a){var b;return!!(a.L("html5_native_audio_track_switching")&&g.VC&&(null==(b=a.videoData.B)?0:HK(b)))};
Tdb=function(a){if(!Sdb(a))return!1;var b;a=null==(b=a.mediaElement)?void 0:b.audioTracks();return!!(a&&1<a.length)};
Vdb=function(a){var b=Udb(a);if(b)return a.videoData.getAvailableAudioTracks().find(function(c){return c.kc.getName()===b})};
Udb=function(a){var b;if(a=null==(b=a.mediaElement)?void 0:b.audioTracks())for(b=0;b<a.length;++b){var c=a[b];if(c.enabled)return c.label}};
Mdb=function(a){for(var b=a.videoData.j,c=g.u(Object.entries({cpn:a.videoData.clientPlaybackNonce,c:a.W.j.c,cver:a.W.j.cver})),d=c.next();!d.done;d=c.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;for(var f=g.u(Object.values(b.j)),h=f.next();!h.done;h=f.next())PPa(h.value.resource,d,e);f=void 0;null==(f=b.Na)||PPa(f,d,e)}c=a.W;d=a.videoData;b=new g.aYa(c);e=$Xa({hasSubfragmentedFmp4:d.hasSubfragmentedFmp4,fE:d.fE});b.Z=e;b.qa=d.maxReadAheadMediaTimeMs/1E3||b.qa;e=c.schedule;e.B.Qi()===
e.policy.B?b.bb=10:b.bb=d.minReadAheadMediaTimeMs/1E3||b.bb;b.Pf=d.readAheadGrowthRateMs/1E3||b.Pf;As&&(b.Dc=41943040);b.Hl=!qDa();g.iJ(c)||!qDa()?(e=c.experiments,b.ra=8388608,b.Wa=524288,b.yl=5,b.La=1048576,b.Sr=1.5,b.sb=4587520,Spa()&&(b.sb=786432),b.N*=1.1,b.Y*=1.1,b.Pb=!0,b.Dc=b.ra,b.Ae=e.jb("persist_disable_player_preload_on_tv")||e.jb("persist_disable_player_preload_on_tv_for_living_room")||!1):c.B&&(b.N*=1.3,b.Y*=1.3);g.tK&&g.NB("crkey")&&(e="CHROMECAST/ANCHOVY"===c.j.cmodel,b.ra=20971520,
b.Wa=1572864,e&&(b.sb=812500,b.mj=1E3,b.Pu=5,b.La=2097152));g.jR&&(b.Pb=!0);c.supportsGaplessAudio()||(b.Nl=!1);GR&&(b.Jb=!0);b.Sc=c.L("html5_peak_shave");"onesie"===d.fetchType&&c.L("html5_disable_peak_shave_for_onesie")&&(b.Sc=!1);var l;e=null==(l=d.j)?void 0:tP(l);if(VS(d)){b.ke=!0;b.Mh=!0;b.rb=!0;b.qj=!0;b.Iu=!0;if("ULTRALOW"===d.latencyClass||"LOW"===d.latencyClass&&!c.L("html5_disable_low_pipeline"))b.Tm=2,b.Lo=4;b.Rj=d.defraggedFromSubfragments;if(d.Jf||c.L("html5_publish_all_cuepoints"))b.Jp=
!0;g.mT(d)&&(b.Za=!1);b.Fl=g.gJ(c)}d.isAd()&&(b.Ki=0,b.Qg=0);b.Sf=c.L("html5_enable_subsegment_readahead_v3")||c.L("html5_ultra_low_latency_subsegment_readahead")&&"ULTRALOW"===d.latencyClass;b.j=/^rq/.test(d.clientPlaybackNonce)||c.uc();Ypa()&&/(K\d{3}|KS\d{3}|KU\d{3})/.test(c.j.cmodel)&&!c.L("html5_disable_move_pssh_to_moov")&&e&&(b.Pb=!1);f=0;c.L("html5_live_use_alternate_bandwidth_window_sizes")&&(f=c.schedule.policy.j,d.isLivePlayback&&(f=g.YI(c.experiments,"ULTRALOW"===d.latencyClass?"html5_live_ultra_low_latency_bandwidth_window":
d.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||f));l=c.schedule;l.Na.B=VS(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;0>n&&(n+=l.j);for(var p=0;p<m;++p)h[p]=l.values[(n+p)%l.j];for(;p<f;++p)h[p]=Infinity;l.j=f;l.values=h;l.B=m%f;l.C=m===f;l.Zl=!0;l.G=HRa(l)}d.isLivePlayback&&(b.Li=.25);cT(d)&&(b.Sf=!0,"LOW"===d.latencyClass?b.Hb=g.YI(c.experiments,"html5_jumbo_mobile_subsegment_readahead_target"):
"ULTRALOW"===d.latencyClass&&(b.Hb=g.YI(c.experiments,"html5_jumbo_ull_subsegment_readahead_target")),b.Po=!0);d.dc()&&(b.Dl=1.3);b.Jb=b.Jb||d.QG;b.B=g.BT(d);b.Ra=d.Y||b.B&&!c.L("html5_enable_ssap_seteos");c.uc()&&(b.Da=!0);d.Y&&!e&&(b.Jx=!0);d.Y&&d.isAd()&&(b.N*=1.6,b.Y*=1.6);zT(d)&&(b.D=d.videoId,b.vl=!0,b.Nu=4,d.Sr&&0<d.Sr.length&&(b.Ud=d.Sr));b.Bf=d.Dl;b.gj=eRa(c,{},d.C||void 0,eUa(d));b.Va=aT(d)&&g.JG(c);US(d)&&(c.L("html5_support_sabr_partial_segment_eviction")&&(b.zj=!0),c.L("html5_sabr_report_full_segment_for_partial_eviction")&&
(b.Lx=!0),b.C=!0,b.Il=c.L("html5_disable_client_resume_policy_for_sabr"),b.Lu=c.L("html5_trigger_loader_when_idle_network"),b.So=c.L("html5_enable_platform_backpressure_with_sabr"),b.oh=c.L("html5_consume_onesie_next_request_policy_for_sabr"),b.Qp=c.L("html5_sabr_report_next_ad_break_time"),b.K=d.enableServerStitchedDai&&c.L("html5_enable_sabr_ssdai"),b.Sm=c.L("html5_log_high_res_buffer_timeline"),b.Ou=c.L("html5_gapless_sabr_btl_last_slice")&&$S(d),VS(d)&&(b.Jl=c.L("html5_disable_variability_tracker_for_live"),
b.Na=c.L("html5_sabr_use_accurate_slice_info_params")),b.Fp=c.L("html5_serve_start_seconds_seek_for_post_live_sabr"));b.G=b.C&&c.L("html5_sabr_live");xP(c.G,yP.BITRATE)&&(b.sb=NaN);if(l=g.YI(c.experiments,"html5_request_size_max_kb"))b.La=1024*l;c.G.D?b.fb="; "+yP.EXPERIMENTAL.name+"=allowed":c.L("html5_enable_cobalt_tunnel_mode")&&(b.fb="; tunnelmode=true");l=d.serverPlaybackStartConfig;(null==l?0:l.enable)&&(null==l?0:l.playbackStartPolicy)&&(b.Rf=!0,cYa(b,l.playbackStartPolicy,2));if(a.W.experiments.jb("enable_audio_description_setting")&&
g.yC(g.xC(),198))for(l=a.videoData.getAvailableAudioTracks(),l=g.u(l),c=l.next();!c.done;c=l.next())if(c=c.value,c.G){var q=c;break}q||(q=a.getAudioTrack(),q=q.kc.isDefault?void 0:q);a.VA.removeAll();a:{l=a.Bd.Nt;if(c=a.videoData.videoId)if(d=l.j.get(c)){l.j.remove(c);l=d;break a}l=void 0}a.ya=new g.x_(a,a.W.schedule,b,a.videoData.j,a.videoData.C,G0(a),q,a.videoData.enableServerStitchedDai,l,a.videoData.Na);q=a.At&&g.iJ(a.W)&&a.videoData.isLivePlayback;a.ya.initialize(a.getCurrentTime(),G0(a),q);
a.videoData.probeUrl&&(a.ya.Ra=a.videoData.probeUrl);if(a.Rp.length||a.At)a.videoData.cotn||H0(a,!1);$cb(a.Zc,a.ya);a.Vc&&U$a(a.ya,new g.D_(a.Vc));a.Ub&&(a.ya.bL(a.Ub),a.Zc.Ba=!1);g.CT(a.videoData)&&(a=a.ya,a.policy.Tf=a.policy.aC)};
D0=function(a){a.ya&&(a.ya.dispose(),a.ya=null,$cb(a.Zc,null));cL(a)?Wdb(a):XX(a)};
Wdb=function(a){if(a.Qa)if(a.logger.debug("release media source"),a.mz(),a.Qa.K)try{a.W.uc()&&a.ma("rms",{l:"vprms",sr:cL(a),rs:eL(a.Qa)});a.Qa.clear();var b;null!=(b=a.mediaElement)&&(b.B=a.Qa);a.Qa=null}catch(c){b=new g.AC("Error while clearing Media Source in VideoPlayer: "+c.name+", "+c.message),b=qK(b),a.handleError(b),XX(a)}else XX(a)};
XX=function(a){a.Qa&&(a.logger.debug("remove media source"),tDa(a.Qa),a.mz(),a.Qa.dispose(),a.Qa=null)};
Xdb=function(a){if(a.Qa)return a.Qa.C;a.logger.debug("update media source");a:{try{g.PB()&&a.videoData.wP()&&wDa(a.mediaElement);var b=a.mediaElement.Nq(a.HD(),a.qO())}catch(d){if(Xab(a.Kk,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",d);a.cg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}c3a(a,b)}var c;return(null==(c=a.Nq())?void 0:c.C)||null};
c3a=function(a,b,c,d){function e(f){try{Ydb(a,f,c,d)}catch(h){g.eF(h),a.handleError(new oK("fmt.unplayable",{msi:"1",ename:h&&"object"===typeof h&&"name"in h?String(h.name):void 0},1))}}
c=void 0===c?!1:c;d=void 0===d?!1:d;Zdb(a);a.Qa=b;cL(a)&&"open"===eL(a.Qa)?e(a.Qa):nDa(a.Qa,e)};
Zdb=function(a){if(a.ya){var b=a.getCurrentTime()-a.Lc();a.ya.seek(b,{}).wl(function(){})}else Mdb(a)};
Ydb=function(a,b,c,d){c=void 0===c?!1:c;d=void 0===d?!1:d;if(a.Qa&&(!b||a.Qa===b)){a.logger.debug("media source opened");var e=a.getDuration();!e&&VS(a.videoData)&&(e=25200);if(a.Qa.isView){var f=e;a.logger.debug(function(){return"Set media source duration to "+f+", video duration "+e});
f>a.Qa.getDuration()&&a.Qa.jl(f)}else a.Qa.jl(e);A$a(a.ya,a.Qa,c,d);a.publish("mediasourceattached")}};
F$a=function(a,b){Pdb(a,b.reason,b.j.info,b.token,b.videoId)};
N_=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d,e,f;return g.H(function(h){if(1==h.j){a.ya&&a.ya.Uv();a.ya&&a.ya.Ma()&&D0(a);if(a.L("html5_enable_vp9_fairplay")&&a.Ti()&&null!=(d=a.videoData.j)){var l=d,m;for(m in l.j)l.j.hasOwnProperty(m)&&(l.j[m].j=null,l.j[m].C=!1)}a.Ac(lL(a.playerState,2048));a.publish("newelementrequired");return b?g.z(h,B0(a),2):h.Ia(2)}a.videoData.dc()&&(null==(e=a.ya)?0:e.Ga)&&((f=a.isAtLiveHead())&&TS(a.videoData)?a.seekTo(Infinity,{yd:"videoPlayer_getNewElement"}):
a.videoData.Zd&&a.ya&&(l=a.ya,l.manifest.dc&&(l.manifest.Zd||l.manifest.C||l.manifest.isPremiere?(l.seek(0,{yd:"loader_resetSqless"}),l.videoTrack.Z=!0,l.audioTrack.Z=!0,l.videoTrack.G=!0,l.audioTrack.G=!0):YQ(l.manifest)&&C_(l))));c&&a.seekTo(0);g.mG(a.playerState,8)&&a.playVideo();g.Aa(h)})};
I0=function(a,b){a.videoData.Y=!1;b&&N_(a);a.ya&&x$a(a.ya)};
k3a=function(a,b){a.ma("newelem",{r:b});N_(a)};
$db=function(a,b){a.Kb.D.pQ();g.mG(a.playerState,32)||(a.Ac(lL(a.playerState,32,null==b?void 0:b.seekSource)),g.mG(a.playerState,8)&&a.pauseVideo(!0),a.publish("beginseeking",a));a.Nc()};
g4a=function(a,b){b=null==b?void 0:b.seekSource;g.mG(a.playerState,32)?(a.Ac(nL(a.playerState,16,32,b)),a.publish("endseeking",a)):g.mG(a.playerState,2)||a.Ac(lL(a.playerState,16,b));a.Kb.D.vQ(a.videoData,a.playerState.isPaused())};
LWa=function(a){var b=0,c="";if(a.Vc){if(a.Vc.qn)return"D,";b=a.Vc.oO();c=a.Vc.rO().substring(0,4)}else a.Ub&&(b=a.Ub.oO(),c=a.Ub.rO().substring(0,4));return 0<b?(a="AD"+b+", ",c&&(a+=c+", "),a):""};
C0=function(a,b){a.publish("internalvideodatachange",void 0===b?"dataupdated":b,a,a.videoData)};
aeb=function(a){for(var b=g.u("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),c=b.next();!c.done;c=b.next())a.PB.T(a.mediaElement,c.value,a.gK,a);a.W.Om&&a.mediaElement.Wu()&&(a.PB.T(a.mediaElement,"webkitplaybacktargetavailabilitychanged",a.R9,a),a.PB.T(a.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",a.S9,a))};
ceb=function(a){g.zB(a.wK);beb(a)||(a.wK=g.xB(function(){return beb(a)},100))};
beb=function(a){var b=a.mediaElement;b&&a.PJ&&!a.videoData.Ga&&!zH("vfp",a.Kb.timerName)&&2<=b.Fk()&&!b.isEnded()&&0<SK(b.Rh())&&a.Kb.tick("vfp");return(b=a.mediaElement)&&!a.videoData.Ga&&0<b.getDuration()&&(b.isPaused()&&2<=b.Fk()&&0<SK(b.Rh())&&(zH("pbp",a.Kb.timerName)||a.Kb.tick("pbp"),!a.videoData.Gl||a.n_||b.Uf()||(a.n_=!0,a.publish("onPlaybackPauseAtStart"))),b=b.getCurrentTime(),j0(a.WC,b))?(a3a(a),!0):!1};
a3a=function(a){g.zB(a.wK);a.Ew.stop();a.videoData.Ga=!0;a.W.Lo=!0;a.W.Jb=0;var b=a.Kk;if(b.videoData.B){var c=b.Ea.G,d=b.videoData.B.qb;if(!c.experiments.jb("html5_cap_change_disabled_codecs_update_only")||c.C.has(d))c.C.delete(d),c.B=!0}b.j.stop();deb(a);g.mG(a.playerState,8)&&a.Ac(mL(a.playerState,65));a.At=!1;I4a(a.lc());g.mv(a.rH);a.publish("playbackstarted");(a=g.Xa("yt.scheduler.instance.clearPriorityThreshold"))?a():JC(0,0)};
deb=function(a){var b=a.Bd.Nd(),c={},d={};!zH("pbs",a.Kb.timerName)&&gH.measure&&gH.getEntriesByName&&(gH.getEntriesByName("mark_nr")[0]?aza("mark_nr"):aza());b.videoId&&(c.videoId=b.videoId);b.clientPlaybackNonce&&!a.L("web_player_early_cpn")&&(c.clientPlaybackNonce=b.clientPlaybackNonce);if(a.mediaElement&&a.mediaElement.isPaused())if(a.W.experiments.jb("web_csi_via_jspb")){var e=new NA;Dk(e,6,!0);var f=new OA;rk(f,NA,22,e);g.gB(vH)(f,a.Kb.timerName)}else d.isPausedOnLoad=!0;a.W.experiments.jb("web_csi_via_jspb")?
(e=new NA,b.B?Ek(e,1,Number(b.B.itag)):Ek(e,1,-1),f=new OA,rk(f,NA,22,e),g.gB(vH)(f,a.Kb.timerName)):d.itag=b.B?Number(b.B.itag):-1;b.jj&&(f=a.bP?2:1,a.W.experiments.jb("web_csi_via_jspb")?(e=new NA,S(e,8,f),f=new OA,rk(f,NA,22,e),g.gB(vH)(f,a.Kb.timerName)):d.preloadType=String(a.bP?2:1));c.liveStreamMode=eeb[hT(b)];c.playerInfo=d;a.Kb.infoGel(c);if(a.ya){b=a.ya.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.Kb.tick(h,b[h])}};
feb=function(a){a.lc().Xf();if(TS(a.videoData)&&Date.now()>a.BY+6283){if(!(!a.isAtLiveHead()||a.videoData.j&&UQa(a.videoData.j))){var b=a.lc();if(b.qoe){b=b.qoe;var c=b.provider.oa.WD(),d=g.TM(b.provider);Hbb(b,d,c);c=c.C;isNaN(c)||g.S_(b,d,"e2el",[c.toFixed(3)])}}a.L("html5_alc_live_log_rawlat")?(b=a.videoData,b=g.gJ(b.U())?!0:"TVHTML5"===g.nR(b.U())?"6"===b.Cl:!1):b=g.gJ(a.W);b&&a.ma("rawlat",{l:aV(a.vS,"rawlivelatency").toFixed(3)});a.BY=Date.now()}a.videoData.B&&HK(a.videoData.B)&&(b=Gdb(a))&&
b.videoHeight!==a.IP&&(a.IP=b.videoHeight,Pdb(a,"a",Rdb(a,a.videoData.fb)))};
Rdb=function(a,b){if("auto"===b.j.video.quality&&HK(b.getInfo())&&a.videoData.hd)for(var c=g.u(a.videoData.hd),d=c.next();!d.done;d=c.next())if(d=d.value,d.getHeight()===a.IP&&"auto"!==d.j.video.quality)return d.getInfo();return b.getInfo()};
Bdb=function(a){if(!TS(a.videoData))return NaN;var b=0;a.ya&&a.videoData.j&&(b=VS(a.videoData)?a.ya.JH.Qi()||0:a.videoData.j.ra);return(0,g.$C)()/1E3-a.df()-b};
heb=function(a){a.mediaElement&&a.mediaElement.Vh()&&(a.qJ=(0,g.$C)());a.W.Jp?g.wB(function(){geb(a)},0):geb(a)};
geb=function(a){var b;if(null==(b=a.Qa)||!b.qm()){if(a.mediaElement)try{a.vK=a.mediaElement.playVideo()}catch(d){E0(a,"err."+d)}if(a.vK){var c=a.vK;c.then(void 0,function(d){a.logger.debug(function(){return"playMediaElement failed: "+d});
if(!g.mG(a.playerState,4)&&!g.mG(a.playerState,256)&&a.vK===c)if(d&&"AbortError"===d.name&&d.message&&d.message.includes("load"))a.logger.debug(function(){return"ignore play media element failure: "+d.message});
else{var e="promise";d&&d.name&&(e+=";m."+d.name);E0(a,e);a.HV=!0;a.videoData.Tf=!0}})}}};
E0=function(a,b){g.mG(a.playerState,128)||(a.Ac(nL(a.playerState,1028,9)),a.ma("dompaused",{r:b}),a.publish("onAutoplayBlocked"))};
y0=function(a){if(!a.mediaElement||!a.videoData.C)return!1;var b,c=null;if(null==(b=a.videoData.C)?0:b.j){c=Xdb(a);var d;null==(d=a.ya)||d.resume()}else D0(a),a.videoData.fb&&(c=a.videoData.fb.tC());b=c;d=a.mediaElement.fH();c=!1;d&&null!==b&&b.resource===d.resource||(ieb(a,b),c=!0);g.mG(a.playerState,2)||(b=a.Zc,b.G||!(0<b.D)||b.mediaElement&&0<b.mediaElement.getCurrentTime()||(d={yd:"seektimeline_resumeTime"},b.videoData.Ga||(d.seekSource=15),b.seekTo(b.D,d)));a:{b=c;if(US(a.videoData)){if(!a.videoData.Ti())break a}else if(!g.gT(a.videoData))break a;
if(a.mediaElement)if((d=a.videoData.K)&&a.mediaElement.Wu()){var e=a.mediaElement.Ib();if(a.Be)if(e!==a.Be.element)J0(a);else if(b&&"fairplay"===d.flavor&&!QB())J0(a);else break a;if(a.L("html5_report_error_for_unsupported_tvos_widevine")&&QB()&&"widevine"===d.flavor)a.cg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{a.Be=new Lab(e,a.videoData,a.W);a.Be.subscribe("licenseerror",a.ZJ,a);a.Be.subscribe("qualitychange",a.G$,a);a.Be.subscribe("heartbeatparams",
a.cF,a);a.Be.subscribe("keystatuseschange",a.Np,a);a.Be.subscribe("ctmp",a.ma,a);a.L("html5_widevine_use_fake_pssh")&&!a.videoData.isLivePlayback&&"widevine"===d.flavor&&a.Be.Ww(new KZ(jeb,"cenc",!1));b=g.u(a.VA.keys);for(d=b.next();!d.done;d=b.next())d=a.VA.get(d.value),a.Be.Ww(d);a.L("html5_eme_loader_sync")||a.VA.removeAll()}}else a.cg("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return c};
ieb=function(a,b){a.Kb.tick("vta");DH("vta",void 0,"video_to_ad");0<a.getCurrentTime()&&ddb(a.Zc,a.getCurrentTime());a.mediaElement.activate(b);a.Qa&&JC(0,4);!a.videoData.Ga&&g.oL(a.playerState)&&a.Ew.start();if(Sdb(a)){var c;if(b=null==(c=a.mediaElement)?void 0:c.audioTracks())b.onchange=function(){a.publish("internalaudioformatchange",a.videoData,!0)}}};
J0=function(a){a.Be&&(a.Be.dispose(),a.Be=null)};
SX=function(a,b){b=void 0===b?!1:b;return TS(a.videoData)&&(a.isAtLiveHead()&&!a.playerState.isPaused()||a.er()||g.mT(a.videoData))?a.getCurrentTime():g.BT(a.videoData)&&a.Ub?z4a(a.Ub,a.getCurrentTime()):a.Le(b)};
keb=function(a){a.logger.debug("reattachVideoSource");a.mediaElement&&(a.Qa?(J0(a),XX(a),Xdb(a)):(a.videoData.fb&&a.videoData.fb.TR(),a.mediaElement.stopVideo()),a.playVideo())};
leb=function(a,b){a.W.L("html5_log_rebuffer_reason")&&a.ma("bufreason",{r:b,lact:tE()})};
d4a=function(a,b,c,d,e,f,h){var l;if(null==(l=a.videoData.j)?0:l.isLive){var m=2===c.playerType?c:b,n=b.videoData.videoId,p=c.videoData.videoId;if(n&&p){l=a.lc();if(l.qoe){var q=l.qoe,r=b.cpn,t=c.cpn,v=m.videoData.wd,w=q.provider.videoData.clientPlaybackNonce,A=q.provider.videoData.videoId,C=t!==w&&p!==A;w=r!==w&&n!==A;q.reportStats();q.adCpn&&q.adCpn!==r||(q.adCpn=w?r:"",q.Y=w?n:"",q.adFormat=w?v:void 0,zY(q,2,h?4:f?2:0,t,p,e),q.reportStats(),q.adCpn=C?t:"",q.Y=C?p:"",q.adFormat=C?v:void 0,zY(q,
2,h?5:f?3:1,r,n,d),q.reportStats())}d=b.cpn;if(l.C.has(d)){if(f=l.C.get(d),e0(f,!0).send(),d0(f),d!==l.provider.videoData.clientPlaybackNonce){kcb(f);var F;null==(F=l.j)||fcb(F);l.C.delete(d)}}else l.Vg=l.provider.videoData.clientPlaybackNonce,l.Vg&&l.j&&(l.C.set(l.Vg,l.j),e0(l.j).send(),d0(l.j));F=c.cpn;m=m.videoData;d=e-a.Ys();if(l.C.has(F)){m=l.C.get(F);var G=m.C&&isNaN(m.D)?b0(m):NaN;m=jcb(m,!1);isNaN(G)||(m.G=G);m.send()}else m=wcb(l,l.provider,m,d),l.C.set(F,m),lcb(m,new g.lG(lL(new g.iL,8),
new g.iL)),ecb(m),null==(G=l.j)||d0(G);l.Vg=F;a.L("html5_unify_csi_server_stitched_transition_logging")?MXa(b.cpn,c.cpn,a.videoData.clientPlaybackNonce,e,c.videoData):(l=a.videoData.clientPlaybackNonce,a=c.videoData,b=(b.cpn===l?"video":"ad")+"_to_"+(c.cpn===l?"video":"ad"),l={},a.G&&(l.cttAuthInfo={token:a.G,videoId:a.videoId}),l.startTime=e,BH(b,l),g.AH({targetVideoId:a.videoId,targetCpn:c.cpn,isSsdai:!0},b),CH("pbs",e,b))}}};
meb=function(a,b){if(a.W.uc()&&a.mediaElement){var c=a.mediaElement.jc();c.omt=(a.mediaElement.getCurrentTime()+a.Lc()).toFixed(3);c.ps=a.playerState.state.toString(16);c.rt=(1E3*g.TM(a.lc().provider)).toFixed();c.e=b;a.xK[a.o_++%5]=c}"timeupdate"!==b&&"progress"!==b&&a.logger.debug(function(){return"video element event "+b})};
neb=function(a){if(a.W.uc()){a.xK.sort(function(d,e){return+d.rt-+e.rt});
for(var b=g.u(a.xK),c=b.next();!c.done;c=b.next())c=c.value,a.ma("vpe",Object.assign({t:c.rt},c));a.xK=[];a.o_=0}};
oeb=function(a){if(g.NB("cobalt")&&g.NB("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;a.ma("nxdock",{d:b})}};
$2a=function(a,b,c,d,e){a.ma("xvt",{m:b,g:1,tt:c?1:0,np:d?1:0,c:e})};
H0=function(a,b){var c;null==(c=a.ya)||A_(c,b)};
y_=function(a){return g.Fb(a.Rp,"ad")};
Jdb=function(a){RS(a.videoData,"html5_set_debugging_opt_in")&&(a=g.xC(),g.yC(0,183)||(Rqa(183,!0),a.save()))};
peb=function(a){return g.BT(a.videoData)&&a.Ub?yY(a.Ub):a.videoData.Le()};
$$a=function(a,b){a.Bd.Ct()||(a.ma("sgap",{f:b}),a.Bd.clearQueue(!1,"pe"===b))};
g.K0=function(a,b,c,d){g.I.call(this);var e=this;this.logger=new g.YX("App");this.BA=this.wi=!1;this.Vr={};this.EK={};this.oB=[];this.iY=!1;this.rP=null;this.oY=!1;this.ow=!0;this.lS=!1;this.FY=this.KP=null;this.TY=!0;this.mediaElement=this.Db=null;this.eQ=NaN;this.qF=!1;this.ze=this.RB=this.Ub=this.xe=this.screenLayer=this.FF=this.tb=this.playlist=null;this.logger.debug("constructor begin");this.config=Hqa(b||{});this.webPlayerContextConfig=c;dra();b=this.config.args||{};this.W=new gSa(b,c,c?c.canaryState:
this.config.assets.player_canary_state,d,this);g.O(this,this.W);P3a(this.W);this.W.experiments.jb("jspb_serialize_with_worker")&&tua();this.W.experiments.jb("gzip_gel_with_worker")&&Ssa();this.W.experiments.jb("web_player_empty_translator")?lva({},{}):this.W.experiments.jb("web_player_all_payloads_via_jspb")&&lva(qeb,reb);this.W.B&&!seb&&(window.addEventListener(FR?"touchstart":"click",S2a,{capture:!0,passive:!0}),seb=!0);this.L("html5_onesie")&&(this.Zw=new GX(this.W),g.O(this,this.Zw));this.v0=
WB(KR(this.W)&&!0,b.enablesizebutton);this.EP=WB(!1,b.player_wide);this.visibility=new r3a;g.O(this,this.visibility);this.wi=WB(!1,b.external_list);this.events=new g.vK(this);g.O(this,this.events);this.L("start_client_gcf")&&($ta(yE(),{BF:AD,VS:ksa()}),this.s6=yE().resolve(AD),nsa(this.s6));this.Xba=new LT;g.O(this,this.Xba);this.d7=new LT;g.O(this,this.d7);this.Wq=new n5a;d=new ZUa;this.Ua=new g.VT(this,d);g.O(this,this.Ua);this.template=new h5a(this);g.O(this,this.template);this.appState=1;this.Hi=
teb(this);this.J=new g.RT(this,d,!0,1);g.O(this,this.J);g.O(this,d);d={};this.bN=(d.internalvideodatachange=this.V9,d.playbackready=this.X9,d.playbackstarted=this.Y9,d.statechange=this.Z9,d);this.h7=new kV(this.Ua);this.Qd=ueb(this);d=this.L("html5_load_wasm");b=this.L("html5_allow_asmjs");if(d&&veb||b)JYa(this.Qd,b).then(function(h){e.W.Id=h;var l;null==(l=g.PT(e))||l.ma("wasm",{a:h.Xq})},function(h){g.eF(h);
h="message"in h&&h.message||h.toString()||"";var l;null==(l=g.PT(e))||l.ma("wasm",{e:h})});
else if(d&&!veb){var f;null==(f=g.PT(this))||f.ma("wasm",{e:"wasm unavailable"})}this.C9=new g.vK(this);g.O(this,this.C9);this.Kb=new KXa(this.W,this.Qd);this.Ua.publish("csiinitialized");this.wb=web(this);this.wb.setPlaybackRate(this.W.D?1:xeb(this,Number(g.tC("yt-player-playback-rate"))||1));g.xF(this.wb,this.bN,this);Edb(this.wb);f={};this.u_=(f.airplayactivechange=this.onAirPlayActiveChange,f.airplayavailabilitychange=this.onAirPlayAvailabilityChange,f.beginseeking=this.pQ,f.endseeking=this.vQ,
f.internalAbandon=this.dF,f.internalaudioformatchange=this.XE,f.internalvideodatachange=this.onVideoDataChange,f.internalvideoformatchange=this.nF,f.liveviewshift=this.H$,f.playbackstalledatstart=this.cba,f.progresssync=this.raa,f.onAbnormalityDetected=this.lQ,f.onLoadProgress=this.onLoadProgress,f.SEEK_COMPLETE=this.NA,f.SEEK_TO=this.Raa,f.onVideoProgress=this.onVideoProgress,f.onLoadedMetadata=this.onLoadedMetadata,f.onAutoplayBlocked=this.onAutoplayBlocked,f.onPlaybackPauseAtStart=this.daa,f.playbackready=
this.eaa,f.statechange=this.b_,f.connectionissue=this.aF,f.newelementrequired=this.LZ,f.heartbeatparams=this.cF,f.videoelementevent=this.gK,f.drmoutputrestricted=this.onDrmOutputRestricted,f.signatureexpired=this.Xaa,f.nonfatalerror=this.V$,f);this.Mt=new g.vK(this);g.O(this,this.Mt);f=10;g.iJ(this.W)&&(f=3);$R(this.W)&&(f=g.YI(this.W.experiments,"tvhtml5_unplugged_preload_cache_size"));this.Nt=new LY;g.O(this,this.Nt);this.hx=new JY(f,function(h){h!==g.PT(e,h.getPlayerType())&&h.dispose()});
g.O(this,this.hx);this.bO=this.lI=-1;this.SK=new g.lv(this.template.resize,16,this.template);g.O(this,this.SK);this.Vc=new M4a(this.Ua,this.W,this.wb);this.Tp=new gY(this.W);this.Ck=new i3a(this);g.O(this,this.Ck);this.EL=new OX(this);g.O(this,this.EL);a5a(this.W.j.c);this.events.T(this.Ua,g.EJ("appapi"),this.T9);this.events.T(this.Ua,g.FJ("appapi"),this.U9);this.events.T(this.Ua,g.EJ("appprogressboundary"),this.qaa);this.events.T(this.Ua,g.FJ("applooprange"),this.VK);this.events.T(this.Ua,"presentingplayerstatechange",
this.hk);this.events.T(this.Ua,"resize",this.Daa);this.template.Ja(kf(document,a));this.events.T(this.Ua,"offlineslatestatechange",this.X$);this.YS=yeb(this,this.template.element);g.O(this,this.YS);this.Qd.J.U().pj&&CV(this.Qd,"offline");this.W.Za&&g.pV("ux",g.EX);this.BV=new g.lv(this.eca,g.YI(this.W.experiments,"html5_defer_fetch_att_ms"),this);g.O(this,this.BV);this.Nd().qe()&&(g.vC()&&this.Nd().Da.push("remote"),zeb(this));this.Kb.tick("fs");Aeb(this);this.W.Za&&CV(this.Qd,"ux",!0);g.IR(this.Qd.J.U())&&
CV(this.Qd,"embed");this.L("web_player_sentinel_is_uniplayer")||g.eF(new g.AC("Player experiment flags missing","web_player_sentinel_is_uniplayer"));a=this.L("web_player_sentinel_yt_experiments_sync");f=g.AB("web_player_sentinel_yt_experiments_sync");a!==f&&g.eF(new g.AC("b/195699950",{yt:a,player:f}));c||g.eF(new g.AC("b/179532961"));this.l1=Beb(this);if(c=g.YI(this.W.experiments,"html5_block_pip_safari_delay"))this.hO=new g.lv(this.SV,c,this),g.O(this,this.hO);this.L("html5_early_media_for_sharper_shorts")&&
(I2a["247"]=Ceb);JB=this.W.Dc;c=g.YI(this.W.experiments,"html5_performance_impact_profiling_timer_ms");0<c&&(this.k_=new g.Ag(c),g.O(this,this.k_),this.events.T(this.k_,"tick",function(){e.l_&&Deb.Ls(e.l_);e.l_=Deb.uu("apit")}));
this.logger.debug("constructor end")};
Beb=function(a){function b(c){c.stack&&-1!==c.stack.indexOf("player")&&(c={n:c.name,m:c.message},(a.tb||a.wb).lc().ue("player.exception",nK(c)))}
fF.subscribe("handleError",b);eB.push(b);return function(){fF.unsubscribe("handleError",b);var c=eB.indexOf(b);-1!==c&&eB.splice(c,1)}};
web=function(a){var b=new g.LS(a.W,a.config.args);a.Ua.publish("initialvideodatacreated",b);return a.jz(1,b)};
Eeb=function(a,b){if(a.wb!==b){b.getVideoData().autonavState=a.wb.getVideoData().autonavState;yF(a.wb,a.bN,a);var c=a.wb.getPlaybackRate();a.wb.dispose();a.wb=b;a.wb.setPlaybackRate(c);g.xF(b,a.bN,a);zeb(a)}};
ueb=function(a){var b="",c=f5a(a);0===c.indexOf("//")&&(c=a.W.protocol+":"+c);var d=c.lastIndexOf("/base.js");-1!==d&&(b=c.substring(0,d+1));if(c=Error().stack)if(c=c.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))c=c[1],c.includes(b)||g.eF(Error("Player module URL mismatch: "+(c+" vs "+b+".")));b=new sYa(a.Ua,b);Feb(a,b);return b};
Feb=function(a,b){var c={};c=(c.destroyed=function(){a.onApiChange()},c);
b.C=c};
teb=function(a){if(a.W.storeUserVolume){a=g.tC("yt-player-volume")||{};var b=a.volume;a={volume:isNaN(b)?100:g.ye(Math.floor(b),0,100),muted:!!a.muted}}else a={volume:100,muted:a.W.mute};return a};
L0=function(a){a.mediaElement=a.W.deviceIsAudioOnly?new g.XU(g.yf("AUDIO")):NX.pop()||new g.XU(g.yf("VIDEO"));g.O(a,a.mediaElement);a.tb&&a.tb.setMediaElement(a.mediaElement);try{a.W.hd?(a.RB&&a.events.Pc(a.RB),a.RB=a.events.T(a.mediaElement,"volumechange",a.P$)):(a.mediaElement.tB(a.Hi.muted),a.mediaElement.setVolume(a.Hi.volume/100))}catch(e){a.Bg("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message&&e.message.replace(/[;:,]/g,
"_")));return}g.pC(a.Mt);Geb(a);var b=a.template,c=a.mediaElement.Ib();b.zc=c;b.ZI=!1;b.zc.parentNode||Ef(b.ez,b.zc,0);b.CK=new g.ws(0,0,0,0);m5a(b);NY(b);c=b.zc;g.uv(c,"video-stream");g.uv(c,g.MY.MAIN_VIDEO);var d=b.app.U();d.wk&&c.setAttribute("data-no-fullscreen","true");d.L("html5_local_playsinline")?"playsInline"in rK()&&(c.playsInline=!0):d.Ol&&(c.setAttribute("webkit-playsinline",""),c.setAttribute("playsinline",""));d.Gp&&b.zc&&b.T(c,"click",c.play,c);try{a.mediaElement.activate()}catch(e){a.Bg("html5.missingapi",
2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(e&&"object"===typeof e&&"message"in e&&"string"===typeof e.message&&e.message.replace(/[;:,]/g,"_")))}};
WX=function(a,b,c){if(a.tb!==b){a.logger.debug(function(){return"start set presenting player, type "+b.getPlayerType()+", vid "+b.getVideoData().videoId});
var d=null;if(a.tb){d=a.tb.getPlayerState();a.logger.debug("set presenting player, destroy modules");DV(a.Qd,3);M0(a,"cuerangesremoved",a.tb.gm());a.Ck&&!b.isGapless()&&a.tb.isGapless()&&a.mediaElement&&a.mediaElement.stopVideo();var e=cL(b)&&cL(a.tb);a.L("html5_rebase_video_to_ad_timeline")&&a.Kb.yu("iv_s");Heb(a,e)}1===b.getPlayerType()&&Eeb(a,b);Ieb(a,b);a.tb=b;a.mediaElement&&b.setMediaElement(a.mediaElement);g.xF(b,a.u_,a);if(b.mJ())Jeb(a,"setPresenting",!1);else{a.onVideoDataChange("newdata",
b,b.getVideoData());d&&!g.EDa(d,b.getPlayerState())&&a.b_(new g.lG(b.getPlayerState(),d));c=c&&a.L("html5_player_preload_ad_fix")&&1===b.getPlayerType();if(b.Sp.j&&!c)a.onVideoDataChange("dataloaded",b,b.getVideoData());(c=(c=b.getVideoData().B)&&c.video)&&a.Ua.Em("onPlaybackQualityChange",c.quality);M0(a,"cuerangesadded",a.tb.gm());c=b.getPlayerState();g.mG(c,2)?Keb(a):g.mG(c,8)?b.playVideo():b.sE()&&b.pauseVideo();if(2===b.getPlayerType()){var f;b.getVideoData().dV=null==(f=g.PT(a,1))?void 0:f.getVideoData().clientPlaybackNonce}2!==
b.getPlayerType()||a.Jf()||(f=b.getVideoData(),a.wb.lx(f.clientPlaybackNonce,f.wd||"",f.breakType||0,f.Pf));a.logger.debug("finish set presenting player")}}};
Keb=function(a){if(!Leb(a)){var b=a.wb.Xe();b&&(b=b.rD(),b instanceof Promise&&b.catch(function(){}));
N0(a,qL(a.Qb()))}};
Geb=function(a){var b=a.mediaElement;aDa()?a.Mt.T(b,"webkitpresentationmodechanged",a.Oaa):window.document.pictureInPictureEnabled&&(a.Mt.T(b,"enterpictureinpicture",function(){a.wB(!0)}),a.Mt.T(b,"leavepictureinpicture",function(){a.wB(!1)}));
SB&&(a.Mt.T(b,"webkitbeginfullscreen",function(){a.Hm(3)}),a.Mt.T(b,"webkitendfullscreen",function(){a.Hm(0)}))};
Ieb=function(a,b){var c=b.getPlayerType();if(b!==a.wb&&b!==a.Vr[c]){var d;null==(d=a.Vr[c])||d.dispose();a.Vr[c]=b}};
Heb=function(a,b){b=void 0===b?!0:b;a.logger.debug("start clear presenting player");var c;if(c=a.ze){c=a.ze;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c&&(a.Cj(),L0(a));a.tb&&(a.tb.Cj(!b),yF(a.tb,a.u_,a),1!==a.tb.getPlayerType()&&a.tb.dispose());a.tb=null;a.logger.debug("finish clear presenting player")};
g.PT=function(a,b){return b?1===b?a.wb:a.getVideoData().enableServerStitchedDai&&2===b?a.getVideoData().enablePreroll?a.Vr[2]||a.tb:a.tb:g.BT(a.getVideoData())&&2===b?a.Vr[2]||a.tb:a.Vr[b]||null:a.tb};
Meb=function(a,b,c,d){a=a.jz(b,c,d);Edb(a);return a};
O0=function(a,b){return a.Jf(b)?a.wb:b};
P0=function(a,b){var c=a.tb;return c&&b===a.wb&&a.Jf(b)&&a.Jf(c)?c:b};
Peb=function(a){a.logger.debug("start application playback");if(a.wb.getPlayerState().isError())a.logger.debug("start application playback done, player in error state");else{var b=Q0(a);a.Nd().isLoaded();b&&a.Zp(6);Neb(a);CYa(a.Qd)||Oeb(a)}};
Oeb=function(a){if(!Q0(a)){var b=EV(a.Qd);b&&!b.created&&tYa(a.Qd)&&(a.logger.debug("reload ad module"),b.create())}};
Neb=function(a){a.logger.debug("start presenter playback");var b=a.getVideoData(),c=a.Qd;CYa(c)||c.IN();!veb&&c.J.L("html5_allow_asmjs")&&IYa(c);CV(c,"embed");CV(c,"inline_preview");CV(c,"kids");CV(c,"remote");CV(c,"miniplayer");CV(c,"offline");CV(c,"unplugged");CV(c,"ypc",!1,!0);CV(c,"ypc_clickwrap",!1,!0);CV(c,"yto",!1,!0);CV(c,"webgl",!1,!0);DYa(c)||(CV(c,"captions",!0),CV(c,"endscreen"),c.OH(),CV(c,"creatorendscreen",!0));c.kW();a.Ua.publish("videoready",b)};
R0=function(a){a=a.Nd();a.qe();return wT(a)};
Aeb=function(a){a.logger.debug("start prepare initial playback");a.PN();var b=a.config.args;L0(a);var c=a.Nd();a.Ua.wc("onVolumeChange",a.Hi);if(b&&PXa(b)){var d=WR(a.W);d&&!a.wi&&(b.fetch=0);var e=g.IR(a.W);e&&!a.wi&&(b.fetch=0);S0(a,b);g.IR(a.W)&&a.Kb.tick("ep_pr_s");if(d&&!a.wi)T0(a);else if(e&&!a.wi)Qeb(a);else if(!c.qe())a.playlist.onReady(function(){U0(a)})}WX(a,a.wb);
g.mG(a.wb.getPlayerState(),128)||(b=$Ca(!a.W.deviceIsAudioOnly),"fmt.noneavailable"===b?a.Bg("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"===b?a.Bg(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):c&&c.qe()&&R0(a)&&(a.W.Mh||a.W.Ki)?V0(a):c.RL?a.Ua.mutedAutoplay():g.tC("yt-player-playback-on-reload")?(g.MC("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!a.W.Ba}),g.sC("yt-player-playback-on-reload",!1),V0(a)):eS(a.W)||Reb(a),g.ZR(a.W)||"MWEB"===g.nR(a.W)?
(g.FC(g.HC(),function(){W0(a)}),g.FC(g.HC(),function(){wza()})):(W0(a),wza()),a.logger.debug("finish prepare initial playback"))};
W0=function(a){if(!a.L("use_rta_only_for_player"))if(a.L("fetch_att_independently"))g.mv(a.BV);else{var b=a.getVideoData().botguardData;b&&g.ONa(b,a.W,a.getVideoData().xq||"")}};
Reb=function(a){a.logger.debug("start initialize to CUED mode");a.Ua.publish("initializingmode");a.Zp(2);a.L("embeds_web_enable_defer_loading_remote_js")&&g.aS(a.W)?g.FC(g.HC(),function(){CV(a.Qd,"remote")}):CV(a.Qd,"remote");
CV(a.Qd,"miniplayer");a.logger.debug("initialized to CUED mode")};
V0=function(a){a.logger.debug("start initialize application playback");if(g.mG(a.wb.getPlayerState(),128))return!1;var b=a.wb.getVideoData();R0(a)&&a.W.Ki&&(NX.length&&a.BA?(X0(a,{muted:!1,volume:a.Hi.volume},!1),Y0(a,!1)):NX.length||a.Hi.muted||(X0(a,{muted:!0,volume:a.Hi.volume},!1),Y0(a,!0)));R0(a)&&a.W.Mo&&b.mutedAutoplay&&(X0(a,{muted:!0,volume:a.Hi.volume},!1),Y0(a,!0));b.LV&&X0(a,{muted:!0,volume:a.Hi.volume},!1);Seb(a,1,b,!1);a.Ua.publish("initializingmode");WX(a,a.wb);a.Zp(3);var c;if(!(c=
!a.W.Um)){if(c=a.ze){c=a.ze;var d=a.mediaElement;c=!!d&&d===c.mediaElement}c=c&&a.iY}c&&(a.Cj(),L0(a),a.wb.setMediaElement(a.mediaElement));Ndb(a.wb);if(g.mG(a.wb.getPlayerState(),128))return!1;b.Gl||N0(a,3);return a.iY=!0};
Q0=function(a){a=ZT(a.Qd);return!!a&&a.loaded};
Teb=function(a,b){if(!a.Db)return!1;var c=.001*a.Db.startTimeMs-1,d=.001*a.Db.endTimeMs;"repeatChapter"===a.Db.type&&d--;return 1E-6>=Math.abs(b-c)||1E-6>=Math.abs(b-d)||b>=c&&b<=d};
Web=function(a){var b,c=null==(b=g.PT(a))?void 0:b.ya;a.tb&&$S(a.getVideoData())&&c&&c.policy.Ra&&(b=g.YI(a.U().experiments,"html5_gapless_loop_seek_offset_in_milli"),b=1E3*Ueb(a)-b,a.L("html5_gapless_new_slr")?(a=a.EL,Veb(a.app,"gaplessshortslooprange"),b=new g.DJ(0,b,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(a=a.app.Xc())&&a.addCueRange(b)):a.setLoopRange({startTimeMs:0,endTimeMs:b,type:"shortsLoop"}))};
Xeb=function(a){if(!(g.mG(a.wb.getPlayerState(),64)&&a.Nd().isLivePlayback&&5E3>a.Db.startTimeMs)){if("repeatChapter"===a.Db.type){var b,c=null==(b=jVa(a.yb()))?void 0:b.xi(),d;b=null==(d=a.getVideoData())?void 0:d.wk;c instanceof g.SV&&b&&(d=b[rW(b,a.Db.startTimeMs)],c.NF(0,d.title));isNaN(Number(a.Db.loopCount))?a.Db.loopCount=0:a.Db.loopCount++;1===a.Db.loopCount&&a.Ua.gb("innertubeCommand",a.getVideoData().Zda)}c={yd:"application_loopRangeStart"};if("clips"===a.Db.type||"shortsLoop"===a.Db.type)c.seekSource=
58;a.wb.seekTo(.001*a.Db.startTimeMs,c)}};
xeb=function(a,b){var c=a.Ua.getAvailablePlaybackRates();b=Number(b.toFixed(2));a=c[0];c=c[c.length-1];b<=a?b=a:b>=c?b=c:(a=Math.floor(100*b+.001)%5,b=0===a?b:Math.floor(100*(b-.01*a)+.001)/100);return b};
Ueb=function(a,b){b=g.PT(a,b);if(!b)return 0;b=O0(a,b);return Z0(a,SX(b),b)};
Z0=function(a,b,c){if(a.Jf(c)){c=c.getVideoData();if($0(a))c=b;else{a=a.Vc;for(var d=g.u(a.B),e=d.next();!e.done;e=d.next())if(e=e.value,c.bd===e.bd){b+=e.qc/1E3;break}d=b;a=g.u(a.B);for(e=a.next();!e.done;e=a.next()){e=e.value;if(c.bd===e.bd)break;var f=e.qc/1E3;if(f<b)d+=e.durationMs/1E3+f-e.Yd/1E3;else break}c=d}return c}return b};
Yeb=function(a,b){if(3===a.getPresentingPlayerType())return qL(ZT(a.Qd).Ee);if((a.getVideoData().enableServerStitchedDai||g.BT(a.getVideoData()))&&2===b){var c,d;return(null==(c=a.xe)?0:e4a(c,a.getCurrentTime()))||(null==(d=a.Ub)?0:B4a(d))?a.lI:-1}return 2!==b||a.Jf()?a.lI:a.bO};
zeb=function(a){a.logger.debug("reset for new application playback");a1(a);a.setLoopVideo(!1);a.setLoopRange(null);a.Ua.publish("legacyadtrackingpingreset");a.EK={};a.oB=[];NXa(a.Kb);if(a.xe){var b=a.xe,c=a.wb;c.getPlayerType();qY(b,!1);h4a(b);i4a(b);b.oa=c}b=a.Vc;a=a.wb;1!==a.getPlayerType()&&CY(b,"invalidParentVideoPlayerType");GY(b,!1);Z4a(b);b.j=a};
T0=function(a){var b=Zeb();if(b)if(!b.list)a.HH();else if(a.playlist&&a.playlist.getPlaylistId()===b.list)if(0<=b.index){var c=b.video;a.Ua.isFullscreen()&&((c=c[a.playlist.index])&&c.encrypted_id!==g.nV(a.playlist).videoId||(b.index=a.playlist.index));TXa(a.playlist,b);a.FF&&$eb(a,a.FF)}else a.FF=null};
Qeb=function(a,b){var c=(b?b:a.Nd()).yY;a.Kb.tick("ep_pr_r");if(null!=c&&(TXa(a.playlist,c),a.lS))a.playlist.onReady(function(){U0(a,b)})};
S0=function(a,b){a.playlist&&(g.vb(a.playlist),a.playlist=null);b&&(a.wi&&(b.fetch=0),a.playlist=new OXa(a.W,b))};
afb=function(a){var b,c=Number(null==(b=a.getVideoData().progressBarEndPosition)?void 0:b.utcTimeMillis)/1E3;!isNaN(c)&&(b=a.df())&&(b-=a.getCurrentTime(),c=1E3*(c-b),b=a.EK.progressEndBoundary,(null==b?void 0:b.start)!==c&&(b&&a.MF([b]),c=new g.DJ(c,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),a.wb.addCueRange(c),a.EK.progressEndBoundary=c))};
N0=function(a,b){a.logger.debug(function(){return"set external state "+b});
if(a.tb){var c=a.tb.getPlayerType();if(2===c&&!a.Jf()){a.bO!==b&&(a.bO=b,a.Ua.gb("onAdStateChange",b));return}if(2===c&&a.Jf()||5===c||6===c||7===c)if(-1===b||0===b||5===b)return}if(0===b){if(a.Db)return;var d;if((null==(d=a.tb)?0:d.Us())&&!dS(a.W)){a.playVideo();return}}a.lI!==b&&(a.lI=b,a.Ua.Em("onStateChange",b))};
bfb=function(a,b,c,d,e){d=void 0===d?Infinity:d;e=void 0===e?0:e;a.logger.debug(function(){return"Enqueuing playerType="+c+" at time="+d+"\n        videoId="+b.videoId});
c=c||a.tb.getPlayerType();var f=Seb(a,c,b,!0);f||(f=Meb(a,c,b));if(2===c&&a.wb){var h=f.getVideoData();a.wb.lx(h.clientPlaybackNonce,h.wd||"",h.breakType||0,h.Pf)}a.eI(f,d,0,e)};
cfb=function(a,b,c,d,e){var f="";f=a.W.L("html5_autonav_autoplay_in_preload_key")?b1(a,c,b):c1(a,c,b.videoId,b.bd);a.logger.debug(function(){return"start preload video "+f+", trigger="+e});
var h="";if(a.tb&&(h=a.W.L("html5_autonav_autoplay_in_preload_key")?b1(a,a.tb.getPlayerType(),a.tb.getVideoData()):c1(a,a.tb.getPlayerType(),a.tb.getVideoData().videoId,a.tb.getVideoData().bd),f===h))return g.UX(a.tb,!0),b.dispose(),null;b.jj=!0;b=Meb(a,c,b);1===c&&$R(a.W)||g.UX(b,!0);a.hx.set(f,b,d||3600);return b};
dfb=function(a,b,c,d){var e=$B(c);return c1(a,b,e,d,"1"===c.autonav||!0===c.autonav,"1"===c.autoplay||!0===c.autoplay||1===c.autoplay)};
b1=function(a,b,c){return c1(a,b,c.videoId,c.bd,c.isAutonav,c.Yp)};
c1=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?!1:f;b=b+"_"+c+"_"+d;a.W.L("html5_autonav_autoplay_in_preload_key")&&(b+="_"+ +e+ +f);return b};
Seb=function(a,b,c,d){var e=a.W.L("html5_autonav_autoplay_in_preload_key")?b1(a,b,c):c1(a,b,c.videoId,c.bd);var f=a.hx.get(e);if(!f||f.Ma())return null;a.hx.remove(e);if(g.mG(f.getPlayerState(),128))return f.dispose(),null;if(f===g.PT(a,b))return a.Kb.infoGel({isCacheHit:!0}),f;if((f.getVideoData().oauthToken||c.oauthToken)&&f.getVideoData().oauthToken!==c.oauthToken)return null;1===b&&a1(a);d||WX(a,f,!0);a.Kb.infoGel({isCacheHit:!0});return f};
d1=function(a,b,c){c=g.PT(a,c);b&&c===a.wb&&(c.getVideoData().Qg=!0)};
e1=function(a,b,c){c=void 0===c?1:c;a.logger.debug(function(){return"start cue video, vid "+b.videoId+", type "+c});
if(b.qe()){var d=a.jz(c,b);a.cancelPlayback(4,c);WX(a,d);Edb(d);if(1===c){a.Zp(1);if(g.IR(a.W)&&!JUa(b)){b.dispose();g.vb(g.PT(a,c));return}Reb(a)}a.logger.debug("finish cue video")}else a.logger.debug(function(){return"invalid VideoData in cueVideo"}),b.dispose(),g.vb(g.PT(a,c)),IUa(a.Nd())&&2===c&&delete a.Vr[2]};
efb=function(a,b,c,d,e){b=bVa(b,c,d,e);(c=g.IR(a.W)&&!a.W.qa)&&!a.wi&&(b.fetch=0);S0(a,b);g.IR(a.W)&&a.Kb.tick("ep_a_pr_s");if(c&&!a.wi)c=a.Nd(),WXa(c,b).then(function(f){a.lS=!0;Qeb(a,f)});
else a.playlist.onReady(function(){U0(a)});
g.IR(a.W)&&a.Kb.tick("ep_a_pr_r")};
U0=function(a,b){var c=g.IR(a.W)&&!a.W.qa,d=c&&b?b:g.nV(a.playlist);b=c&&b?b:a.getVideoData();d&&(b.Xk&&(a.W.Mh||a.W.Ki)||!a.ow?(b=b.Qg,d=a.Kt(d,1),b&&d1(a,d)):e1(a,d,1));g.IR(a.W)&&a.Kb.tick("ep_p_l");a.lS=!1;a.Ua.wc("onPlaylistUpdate")};
Leb=function(a){if(a.playlist&&g.NR(a.W)&&a.ED()){var b=a.W.L("html5_player_autonav_logging");a.nextVideo(!1,b);return!0}return!1};
$eb=function(a,b){var c=g.Xa(b);c?((b=Zeb())&&b.list&&c(),a.FF=null):a.FF=b};
Zeb=function(){var a=g.Xa("yt.www.watch.lists.getState");return a?a():null};
ffb=function(a,b,c,d,e,f,h){b={id:b,namespace:null!=h?h:"appapi"};"chapter"===f?(b.style=CJ.CHAPTER_MARKER,b.visible=!0):isNaN(e)||("ad"===f?b.style=CJ.AD_MARKER:(b.style=CJ.TIME_MARKER,b.color=e),b.visible=!0);a.Iy([new g.DJ(1E3*c,1E3*d,b)],1);return!0};
gfb=function(a,b,c,d,e,f){f=void 0===f?!0:f;var h=a.df();if(!h)return f&&a.getVideoData().isLivePlayback&&a.oB.push({id:b,Sda:c,Rda:d}),!1;f=h-a.getCurrentTime();return ffb(a,b,c-f,d-f,void 0,void 0,e)};
hfb=function(a,b){a.oB=g.Ht(a.oB,function(f){return f.id!==b});
for(var c=a.wb.gm(),d=0;d<c.length;d++){var e=c[d];if(e.getId()===b)return a.wb.removeCueRange(e),M0(a,"cuerangesremoved",[e]),!0}return!1};
Veb=function(a,b,c){var d=g.PT(a,c);d&&(b=d.Qh.sf(b),c&&a.getPresentingPlayerType()!==c||M0(a,"cuerangesremoved",b))};
ifb=function(a){var b=(0,g.$C)(),c=a.getCurrentTime();a=a.getVideoData();c=1E3*(c-a.startSeconds);a.isLivePlayback&&(c=0);return b-Math.max(c,0)};
X0=function(a,b,c){a.W.Va&&(a.Hi=b,b.muted||Y0(a,!1),c&&a.W.storeUserVolume&&!a.W.hd&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.sC("yt-player-volume",c),g.sC("yt-player-volume",c,2592E3))),jfb(a),c=g.tK&&a.mediaElement&&!a.mediaElement.Gf(),a.W.hd&&!c||a.Ua.wc("onVolumeChange",{muted:b.muted,volume:b.volume,unstorable:!a.W.storeUserVolume}))};
jfb=function(a){var b=a.getVideoData();if(!b.vl){b=a.W.hd?1:GUa(b);var c=a.mediaElement;c.tB(a.Hi.muted);try{c.setVolume(a.Hi.volume*b/100)}catch(d){g.eF(new g.AC("b183742307","multiplier: "+b+", volume: "+a.Hi.volume))}}};
Y0=function(a,b){b!==a.BA&&(a.BA=b,a.Ua.wc("onMutedAutoplayChange",b))};
g.OT=function(a){return a.BA&&a.getVideoData().mutedAutoplay};
kfb=function(a){var b=fC(!0);return b&&(b===a.template.element||a.mediaElement&&b===a.mediaElement.Ib())?b:null};
mfb=function(a,b){var c=window.screen&&window.screen.orientation;if((a.W.L("lock_fullscreen2")||a.W.Z)&&c&&c.lock&&(!g.tK||!lfb))if(b){b=0===c.type.indexOf("portrait");var d=a.template.getVideoAspectRatio(),e=b;1>d?e=!0:1<d&&(e=!1);if(!a.qF||e!==b){c=c.lock(e?"portrait":"landscape");if(null!=c)c["catch"](function(){});
a.qF=!0}}else a.qF&&(a.qF=!1,c.unlock())};
M0=function(a,b,c){a.Ua.publish(b,c);var d=g.iJ(a.W)||g.OR(a.W)||g.JG(a.W);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.Ua.gb(e,c.map(function(f){return{getId:function(){return this.id},
end:f.end,id:f.getId(),namespace:"ad"===f.namespace?"ad":"",start:f.start,style:f.style,visible:f.visible}}))}};
f1=function(a,b,c,d,e,f){c=void 0===c?!0:c;var h=g.PT(a,e);h&&(2===h.getPlayerType()&&!a.Jf(h)||g.mT(h.getVideoData()))||(3===a.getPresentingPlayerType()?ZT(a.Qd).bF("control_seek",b,c):(h===a.wb&&a.Db&&!Teb(a,b)&&a.setLoopRange(null),a.seekTo(b,c,d,e,f)))};
Jeb=function(a,b,c){c&&(a.Cj(),L0(a));c=g.PT(a);c.ue(new oK("staleconfig",{reason:b}));var d=a.getVideoData(),e={};e.video_id=d.videoId;e.adformat=d.adFormat;d.isLivePlayback?VS(d)&&g.gJ(a.W)&&(e.live_utc_start=c.df(),e.resume="1"):(e.start=c.getCurrentTime(),e.resume="1");d.Ba&&(e.vvt=d.Ba);d.G&&(e.vss_credentials_token=d.G,e.vss_credentials_token_type=d.Nm);d.oauthToken&&(e.oauth_token=d.oauthToken);d.Tm&&(e.force_gvi=d.Tm);e.autoplay=1;e.reload_count=d.Xb+1;e.reload_reason=b;d.UB&&(e.unplugged_partner_opt_out=
d.UB);d.Mh&&(e.ypc_is_premiere_trailer=d.Mh);d.playerParams&&(e.player_params=d.playerParams);a.loadVideoByPlayerVars(e,void 0,!0);"signature"===b&&a.xe&&Oeb(a)};
nfb=function(a,b){a.Nd().autonavState=b;g.sC("yt-player-autonavstate",b);a.Ua.publish("autonavchange",b)};
ofb=function(a){var b=a.getVideoData().vl,c=a.W.rb,d=a.isInline()&&!a.getVideoData().BC,e=a.mediaElement;b||c||d?e.RN():(e.UN(),X0(a,a.Hi))};
yeb=function(a,b){return a.W.L("html5_enable_embedded_player_visibility_signals")&&g.IR(a.W)?new d5a(b):null};
a1=function(a){var b=EV(a.yb());b&&b.created&&(a.logger.debug("reset ad module"),b.destroy())};
$0=function(a){return a.getVideoData().enableServerStitchedDai&&!!a.xe};
pfb=function(a,b){b.bounds=a.getBoundingClientRect();for(var c=g.u(["display","opacity","visibility","zIndex"]),d=c.next();!d.done;d=c.next())d=d.value,b[d]=Ds(a,d);b.hidden=!!a.hidden};
f5a=function(a){if(a.webPlayerContextConfig){var b=a.webPlayerContextConfig.trustedJsUrl;return b?Lw(b).toString():a.webPlayerContextConfig.jsUrl}return a.config.assets&&a.config.assets.js?a.config.assets.js:""};
qfb=function(a){return a.isTimeout?"NO_BID":"ERR_BID"};
rfb=function(){var a=null;nqa().then(function(b){return a=b},function(b){return a=qfb(b)});
return a};
sfb=function(){var a=Cg(1E3,"NO_BID");return ng(ica([nqa(),a]).wl(qfb),function(){a.cancel()})};
g1=function(a){return a.Ae?g.yC(g.xC(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"};
h1=function(a){this.player=a;this.C=this.j=1};
vfb=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=oB(c),h=g.hn(c)?!1:!0;(f||h)&&"undefined"!==typeof Intl&&(b.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=g.hn(c)?!1:!0;if(f||h||""!==d){var l={};c=jB(tB(d)).split("&");var m=new Map;c.forEach(function(n){n=n.split("=");1<n.length&&m.set(n[0].toString(),decodeURIComponent(n[1].toString()))});
m.has("bid")&&(l.bid=m.get("bid"));l.params=[];tfb.forEach(function(n){m.has(n)&&(n={key:n,value:m.get(n)},l.params.push(n))});
ufb(a,l);b.adSignalsInfo=l}b.client.unpluggedAppInfo||(b.client.unpluggedAppInfo={});b.client.unpluggedAppInfo.enableFilterMode=!1;a=e.j.cosver;null!=a&&"cosver"!==a&&(b.client.osVersion=a);a=e.j.cplatform;null!=a&&"cplatform"!==a&&""!==a&&(b.client.platform=a);a=e.j.cmodel;null!=a&&"cmodel"!==a&&(b.client.deviceModel=a);a=e.j.cplayer;null!=a&&"cplayer"!==a&&(b.client.playerType=a);e=e.j.cbrand;null!=e&&"cbrand"!==e&&(b.client.deviceMake=e);b.user||(b.user={});b.user.lockedSafetyMode=!1};
yfb=function(a,b){var c=!1;if(""===b)return c;b.split(",").forEach(function(d){var e={},f={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},h="ACTIVE";"!"===d[0]&&(d=d.substring(1),h="INACTIVE");d=d.split("-");3>d.length||(d[0]in wfb&&(f.clientName=wfb[d[0]]),d[1]in xfb&&(f.platform=xfb[d[1]]),f.applicationState=h,f.clientVersion=2<d.length?d[2]:"",e.remoteClient=f,a.remoteContexts?a.remoteContexts.push(e):a.remoteContexts=[e],c=!0)});
return c};
Afb=function(a){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in zfb))return!1;a=a.split(RegExp("[:&]"));var b=zfb.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};
ufb=function(a,b){if(g.iJ(a.player.U())&&a.player.U().L("add_ifa_to_tvh5_requests")){a=g.cB("INNERTUBE_CONTEXT");var c,d;(null==a?0:null==(c=a.adSignalsInfo)?0:c.advertisingId)&&"undefined"!==typeof(null==a?void 0:null==(d=a.adSignalsInfo)?void 0:d.limitAdTracking)&&(b.advertisingId=a.adSignalsInfo.advertisingId,b.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",b.limitAdTracking=a.adSignalsInfo.limitAdTracking)}};
Ifb=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=Bfb.exec(b);h=null!=h&&2<=h.length?h[1]:"";var l=Cfb.test(b),m=Dfb.exec(b);m=null!=m&&2<=m.length?m[1]:"";var n=Efb.exec(b);n=null!=n&&2<=n.length&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=Ffb.exec(b),q=null!=p&&2<=p.length?p[1]:"0",r=SR(a.player.U().Ga);p=a.player.getVideoData(1);var t=g.QG(p.ra,!0),v="BISCOTTI_ID"in c?c.BISCOTTI_ID:"";vfb(a,t,b,v.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:19837,autonavState:g1(a.player.U())};d&&(d={},yfb(d,c.YT_REMOTE)&&(w.mdxContext=d));if(d=Gfb.includes(r)?void 0:g.MB("PREF")){for(var A=d.split(RegExp("[:&]")),C=0,F=A.length;C<F;C++){var G=A[C].split("=");if(("SML"===G[0].toUpperCase()||"GSML"===G[0].toUpperCase())&&1<G.length&&"TRUE"===G[1].toUpperCase()){t.user.lockedSafetyMode=!0;
break}}w.autoCaptionsDefaultOn=Afb(d)}b=Hfb.exec(b);(b=null!=b&&2<=b.length?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:jB(tB(v.toString())),overridePlaybackContext:b};void 0!==e&&(h.cueProcessedMs=Math.round(e).toString());m&&(h.videoId=m);c.LIVE_TARGETING_CONTEXT&&(h.liveTargetingParams=
c.LIVE_TARGETING_CONTEXT);c.AD_BREAK_LENGTH&&(h.breakLengthMs=Math.trunc(1E3*c.AD_BREAK_LENGTH).toString());f&&(h.driftFromHeadMs=f.toString());h.currentMediaTimeMs=Math.round(1E3*a.player.getCurrentTime(1));(a=MUa(p))&&(h.getAdBreakContext=a);return h};
Jfb=function(){h1.apply(this,arguments)};
Kfb=function(a,b,c,d,e){var f=c.Cv;c=c.me;var h=a.player.U().rj,l={AD_BLOCK:e,AD_BREAK_LENGTH:f?f.rh:0,AUTONAV_STATE:g1(a.player.U()),CA_TYPE:"image",CPN:a.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*a.player.Mq(),LACT:tE(),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.kb().Th().height,P_W:a.player.kb().Th().width,YT_REMOTE:h?h.join(","):
""},m=mpa(lpa);Object.keys(m).forEach(function(n){null!=m[n]&&(l[n.toUpperCase()]=m[n].toString())});
""!==d&&(Oxa("biscotti id requested"),l.BISCOTTI_ID=d);d={};qB(b)&&(d.sts="19837",(a=a.player.U().forcedExperiments)&&(d.forced_experiments=a));return nB(g.Wu(b,l),d)};
Lfb=function(a,b){var c=a.player.U(),d,e=null==(d=a.player.getVideoData(1))?void 0:d.oauthToken;return g.gS(c,e).then(function(f){if(f&&pB()){var h=eU();fU(h,f)}return g.GH(a.player.im(h),b,"/youtubei/v1/player/ad_break").then(function(l){return l})})};
Mfb=function(a){this.Oa=a};
Nfb=function(a){this.J=a};
Ofb=function(a){this.Oa=a};
Qfb=function(a){g.I.call(this);this.Wg=a;this.g3=Pfb(this)};
Pfb=function(a){var b=new Tza(a.Wg.qd);g.O(a,b);a=g.u([new Mfb(a.Wg.Oa),new Nfb(a.Wg.J),new Ofb(a.Wg.Oa),new Pza(a.Wg.Tk,a.Wg.Un),new Rza,new Zza(a.Wg.Nf,a.Wg.Lk,a.Wg.Oa),new Qza,new Nza]);for(var c=a.next();!c.done;c=a.next())Uza(b,c.value);a=g.u(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(c=a.next();!c.done;c=a.next())UH(b,c.value,function(){});
return b};
i1=function(a){var b=a.Ta,c=a.Ca;a=a.Se;var d={Aq:new WCa(b.get()),Ca:c};return{Ob:new rIa(c,a,b,d),context:d}};
j1=function(a,b,c,d,e){g.I.call(this);this.J=a;this.B=b;this.Ha=c;this.Ta=d;this.Df=e;this.listeners=[];var f=new nC(this);g.O(this,f);f.T(a,"internalAbandon",this.dF);this.addOnDisposeCallback(function(){g.pC(f)})};
k1=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"};
Sfb=function(a,b,c,d,e,f){f();var h=a.J.getVideoData(1),l=a.J.getVideoData(2);h&&(a.contentCpn=h.clientPlaybackNonce,a.videoId=h.videoId,a.j=h.G);l&&(a.adCpn=l.clientPlaybackNonce,a.adVideoId=l.videoId,a.adFormat=l.adFormat);a.C=b;0>=d?f():(a.actionType=a.G?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",a.videoStreamType=e?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD","unknown_type"!==a.actionType&&(a.D=!0,zH("_start",a.actionType)&&Rfb(a)))};
Tfb=function(a,b){a=g.u(b);for(b=a.next();!b.done;b=a.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){CH("ad_i");g.AH({isMonetized:!0});break}};
l1=function(a){var b=a.J.getVideoData(1);if(!a.J.L("html5_no_video_to_ad_on_preroll")||null!=b&&b.Ga)a.B=!1,b={},a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId}),BH("video_to_ad",b)};
aEa=function(a){a.B=!1;var b={};a.j&&a.videoId&&(b.cttAuthInfo={token:a.j,videoId:a.videoId});BH("ad_to_video",b);Rfb(a)};
Rfb=function(a){if(a.D)if(a.J.L("html5_no_video_to_ad_on_preroll_reset")&&"AD_PLACEMENT_KIND_START"===a.C&&"video_to_ad"===a.actionType)yH("video_to_ad");else if(a.J.L("web_csi_via_jspb")){var b=new NA;b=S(b,8,2);var c=new OA;c=S(c,21,Ufb(a.C));c=S(c,7,4);b=rk(c,NA,22,b);b=S(b,53,a.videoStreamType);"ad_to_video"===a.actionType?(a.contentCpn&&Q(b,76,a.contentCpn),a.videoId&&Q(b,78,a.videoId)):(a.adCpn&&Q(b,76,a.adCpn),a.adVideoId&&Q(b,78,a.adVideoId));a.adFormat&&Q(b,12,a.adFormat);a.contentCpn&&Q(b,
8,a.contentCpn);a.videoId&&b.setVideoId(a.videoId);a.adCpn&&Q(b,28,a.adCpn);a.adVideoId&&Q(b,20,a.adVideoId);g.gB(vH)(b,a.actionType)}else b={adBreakType:uL(a.C),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:a.videoStreamType},"ad_to_video"===a.actionType?(a.contentCpn&&(b.targetCpn=a.contentCpn),a.videoId&&(b.targetVideoId=a.videoId)):(a.adCpn&&(b.targetCpn=a.adCpn),a.adVideoId&&(b.targetVideoId=a.adVideoId)),a.adFormat&&(b.adType=
a.adFormat),a.contentCpn&&(b.clientPlaybackNonce=a.contentCpn),a.videoId&&(b.videoId=a.videoId),a.adCpn&&(b.adClientPlaybackNonce=a.adCpn),a.adVideoId&&(b.adVideoId=a.adVideoId),g.AH(b,a.actionType)};
Ufb=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}};
m1=function(a){g.I.call(this);this.J=a;this.j=new Map;this.B=new nC(this);g.O(this,this.B);this.B.T(this.J,g.EJ("ad"),this.onCueRangeEnter,this);this.B.T(this.J,g.FJ("ad"),this.onCueRangeExit,this)};
Vfb=function(a,b,c,d,e){g.DJ.call(this,b,c,{id:a,namespace:"ad",priority:e,visible:d})};
n1=function(a){this.J=a};
o1=function(a){this.J=a};
YM=function(a){return a.J.U().uc()&&a.J.U().L("html5_ssap_pacf_qoe_ctmp")};
p1=function(a){return a.J.U().L("enable_active_view_web_shorts_video")||a.J.U().L("enable_active_view_lr_shorts_video")};
q1=function(a){var b,c;return null!=(c=null==(b=a.J.getVideoData(1))?void 0:g.BT(b))?c:!1};
NM=function(a,b){return a.J.U().L(b)};
Wfb=function(a){return a.J.U().L("substitute_ad_cpn_macro_in_ssdai")};
SM=function(a){var b,c,d;return(null==(b=a.J.getVideoData(1).getPlayerResponse())?void 0:null==(c=b.playerConfig)?void 0:null==(d=c.daiConfig)?void 0:d.enableServerStitchedDai)||!1};
IHa=function(a){return a.J.U().L("html5_enable_vod_slar_with_notify_pacf")};
Xfb=function(a){return a.J.U().L("html5_recognize_predict_start_cue_point")};
kGa=function(a){return a.J.U().experiments.jb("enable_desktop_player_underlay")};
Yfb=function(a){return a.J.U().experiments.jb("html5_load_empty_player_in_media_break_sub_lra")};
wL=function(a){return a.J.U().experiments.jb("html5_load_ads_instead_of_cue")};
xL=function(a){return a.J.U().experiments.jb("html5_preload_ads")};
r1=function(a){return a.J.U().experiments.jb("html5_rebase_video_to_ad_timeline")};
Zfb=function(a){return a.J.U().experiments.jb("enable_desktop_discovery_video_abandon_pings")};
$fb=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}};
agb=function(){g.wF.call(this);var a=this;this.j={};this.addOnDisposeCallback(function(){for(var b=g.u(Object.keys(a.j)),c=b.next();!c.done;c=b.next())delete a.j[c.value]})};
s1=function(){if(null===bgb){bgb=new agb;Ur(Vu).B="b";var a=Ur(Vu),b="h"==Ou(a)||"b"==Ou(a),c=!(Zr(),!1);b&&c&&(a.D=!0,a.G=new Bja)}return bgb};
cgb=function(a,b,c){a.j[b]=c};
dgb=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}};
t1=function(a,b,c){this.Ha=a;this.J=b;this.Ca=c;this.B=new Set;this.j=new Map;s1().subscribe("adactiveviewmeasurable",this.Rw,this);s1().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Qw,this);s1().subscribe("adviewableimpression",this.Sw,this);s1().subscribe("adaudioaudible",this.Ow,this);s1().subscribe("adaudiomeasurable",this.Pw,this)};
v1=function(a,b,c,d,e,f){e=void 0===e?null:e;if(a.j.has(b))kG("Unexpected registration of layout in LidarApi");else{if(p1(a.Ca.get())&&f){if(a.B.has(f))return;a.B.add(f)}a.j.set(b,e);yr(Zr().Gc,"fmd",1);Lka(Ur(Vu),c);cgb(s1(),b,{vO:function(){if(!d)return{};if(p1(a.Ca.get())){var h=a.J.getPresentingPlayerType(!0),l;return null!=(l=a.J.getVideoData(h))&&l.isAd()?{currentTime:a.Ha.get().getCurrentTimeSec(h,!1),duration:d,isPlaying:u1(a.Ha.get(),h).isPlaying(),isVpaid:!1,isYouTube:!0,volume:a.Ha.get().isMuted()?
0:a.Ha.get().getVolume()/100}:{}}return{currentTime:a.Ha.get().getCurrentTimeSec(2,!1),duration:d,isPlaying:2===a.Ha.get().getPresentingPlayerType()&&u1(a.Ha.get(),2).isPlaying(),Nob:!1,Oob:!0,volume:a.Ha.get().isMuted()?0:a.Ha.get().getVolume()/100}}})}};
w1=function(a,b){a.j.has(b)?(a.j.delete(b),delete s1().j[b]):kG("Unexpected unregistration of layout in LidarApi")};
ggb=function(a,b){var c={};egb(a,c,b);fgb(c);c.LACT=x1(function(){return tE().toString()});
c.VIS=x1(function(){return a.getVisibilityState().toString()});
c.SDKV="h.3.0";c.VOL=x1(function(){return a.isMuted()?"0":Math.round(a.getVolume()).toString()});
c.VED="";return c};
hgb=function(a,b){var c={};if(b)return c;if(!a.kind)return g.dF(Error("AdPlacementConfig without kind")),c;if("AD_PLACEMENT_KIND_MILLISECONDS"===a.kind||"AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"===a.kind){if(!a.adTimeOffset||!a.adTimeOffset.offsetStartMilliseconds)return g.dF(Error("malformed AdPlacementConfig")),c;c.MIDROLL_POS=x1(Gd(Math.round($e(a.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else c.MIDROLL_POS=x1(Gd("0"));return c};
x1=function(a){return{toString:function(){return a()}}};
igb=function(a,b,c){function d(l,m){(m=c[m])&&(f[l]=m)}
function e(l,m){(m=c[m])&&(f[l]=h(m))}
if(!c||g.id(c))return a;var f=Object.assign({},a),h=b?encodeURIComponent:function(l){return l};
e("DV_VIEWABILITY","doubleVerifyViewability");e("IAS_VIEWABILITY","integralAdsViewability");e("MOAT_INIT","moatInit");e("MOAT_VIEWABILITY","moatViewability");d("GOOGLE_VIEWABILITY","googleViewability");d("VIEWABILITY","viewability");return f};
egb=function(a,b,c){b.CPN=x1(function(){var d;(d=a.getVideoData(1))?d=d.clientPlaybackNonce:(g.eF(Error("Video data is null.")),d=null);return d});
b.AD_MT=x1(function(){if(null!=c)var d=c;else if(a.U().L("enable_h5_shorts_ad_fill_ad_mt_macro")||a.U().L("enable_desktop_discovery_pings_ad_mt_macro")){var e=a.getPresentingPlayerType(!0),f;d=(null==(f=a.getVideoData(e))?0:f.isAd())?a.getCurrentTime(e,!1):0}else d=a.getCurrentTime(2,!1);return Math.round(Math.max(0,1E3*d)).toString()});
b.MT=x1(function(){return Math.round(Math.max(0,1E3*a.getCurrentTime(1,!1))).toString()});
b.P_H=x1(function(){return a.kb().Th().height.toString()});
b.P_W=x1(function(){return a.kb().Th().width.toString()});
b.PV_H=x1(function(){return a.kb().getVideoContentRect().height.toString()});
b.PV_W=x1(function(){return a.kb().getVideoContentRect().width.toString()})};
fgb=function(a){a.CONN=x1(Gd("0"));a.WT=x1(function(){return Date.now().toString()})};
jgb=function(){};
kgb=function(a,b,c,d,e){var f,h,l,m,n,p,q,r,t,v,w,A,C,F;g.H(function(G){switch(G.j){case 1:f=!!b.scrubReferrer;h=g.Wu(b.baseUrl,igb(c,f,d));l={};if(!b.headers){G.Ia(2);break}m=a.D();if(!m.j){n=m.getValue();G.Ia(3);break}return g.z(G,m.j,4);case 4:n=G.B;case 3:p=n;q=g.u(b.headers);for(r=q.next();!r.done;r=q.next())switch(t=r.value,t.headerType){case "VISITOR_ID":g.cB("VISITOR_DATA")&&(l["X-Goog-Visitor-Id"]=g.cB("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.cB("EOM_VISITOR_DATA")&&(l["X-Goog-EOM-Visitor-Id"]=
g.cB("EOM_VISITOR_DATA"));break;case "USER_AUTH":p&&(l.Authorization="Bearer "+p);break;case "PLUS_PAGE_ID":(v=a.G())&&(l["X-Goog-PageId"]=v);break;case "AUTH_USER":w=a.B();!p&&w&&(l["X-Goog-AuthUser"]=w);break;case "ATTRIBUTION_REPORTING_ELIGIBLE":A=void 0;(null==(A=a.j())?0:A.jb("clean_up_manual_attribution_header"))||(l["Attribution-Reporting-Eligible"]="event-source");break;case "DATASYNC_ID":if(C=void 0,null==(C=a.j())?0:C.jb("enable_datasync_id_header_in_web_vss_pings"))F=a.C(),oB(h)&&g.cB("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.UD(h,void 0,f,0!==Object.keys(l).length?l:void 0,"",!0,e),g.Aa(G)}})};
lgb=function(a,b,c,d,e){this.D=a;this.G=b;this.B=c;this.C=d;this.j=e};
mgb=function(a,b){this.j=a;this.Ca=b};
y1=function(a,b,c,d,e,f){var h=void 0===h?new lgb(function(){var l=a.U(),m=a.getVideoData(1);return g.gS(l,m?g.xT(m):"")},function(){return a.U().pageId},function(){return a.U().Ba},function(){var l;
return null!=(l=a.U().datasyncId)?l:""},function(){return a.U().experiments}):h;
this.J=a;this.B=b;this.xb=c;this.Ta=d;this.Ob=e;this.Ca=f;this.D=h;this.AG=null;this.j=new Map;this.C=new mgb(h,this.Ca)};
ogb=function(a,b,c,d,e){var f=UHa(a.B.get(),c);f?(c=UJ(a,ngb(f),f,void 0,void 0,d),b.hasOwnProperty("baseUrl")?a.D.send(b,c):a.C.send(b,c,{},e)):kG("Trying to ping from an unknown layout",void 0,void 0,{layoutId:c})};
RBa=function(a,b,c,d,e,f){d=void 0===d?[]:d;var h=UHa(a.B.get(),b);if(h){var l=a.xb.get().Hh(b,c),m=UJ(a,ngb(h),h,e,f);d.forEach(function(n,p){n.baseUrl&&(a.C.send(n.baseUrl,m,l,n.attributionSrcMode),n.serializedAdPingMetadata&&a.Ob.ir("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,h,new bFa(n,p),void 0,void 0,h.adLayoutLoggingData))})}else kG("Trying to track from an unknown layout.",void 0,void 0,{layoutId:b,
trackingType:c})};
EL=function(a,b){g.MC("adsClientStateChange",b)};
pgb=function(a,b){a.j.has(b.Mv())?kG("Trying to register an existing AdErrorInfoSupplier."):a.j.set(b.Mv(),b)};
qgb=function(a,b){a.j.delete(b.Mv())||kG("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")};
FL=function(a,b,c){"string"===typeof c?a.J.getVideoData(1).iB(b,c):a.J.getVideoData(1).ma(b,c)};
ngb=function(a){var b=TI(a.Aa,"metadata_type_ad_placement_config");a=TI(a.Aa,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,dZ:a}};
UJ=function(a,b,c,d,e,f){var h=c?rgb(a):{},l=c?sgb(a,c.layoutId):{},m=tgb(a),n,p=null!=e?e:null==(n=a.Ta.get().Me(2))?void 0:n.clientPlaybackNonce;a.J.U().L("enable_player_logging_lr_home_infeed_ads")&&!p&&(p=a.Ta.get().Me(1).clientPlaybackNonce);e={};a=Object.assign({},ggb(a.J,d),hgb(b.adPlacementConfig,void 0!==(null==c?void 0:c.renderingContent)),l,h,m,(e.FINAL=x1(function(){return"1"}),e.AD_CPN=x1(function(){return p||""}),e));
void 0!==(null==c?void 0:c.renderingContent)||(a.SLOT_POS=x1(function(){return(b.dZ||0).toString()}));
c={};f=Object.assign({},a,f);a=g.u(Object.values(ugb));for(d=a.next();!d.done;d=a.next())d=d.value,h=f[d],null!=h&&null!=h.toString()&&(c[d]=h.toString());return c};
rgb=function(a){var b={},c,d=null==(c=a.AG)?void 0:c.Zi/1E3;null!=d&&(b.SURVEY_ELAPSED_MS=x1(function(){return Math.round(1E3*d).toString()}));
b.SURVEY_LOCAL_TIME_EPOCH_S=x1(function(){return Math.round(Date.now()/1E3).toString()});
return b};
sgb=function(a,b){a=a.j.get(b);if(!a)return{};a=a.jO();if(!a)return{};b={};return b.YT_ERROR_CODE=a.GL.toString(),b.ERRORCODE=a.LG.toString(),b.ERROR_MSG=a.errorMessage,b};
tgb=function(a){var b={},c=a.J.getVideoData(1);b.ASR=x1(function(){var d;return null!=(d=null==c?void 0:c.Ju)?d:null});
b.EI=x1(function(){var d;return null!=(d=null==c?void 0:c.eventId)?d:null});
return b};
z1=function(a,b,c){g.I.call(this);this.J=a;this.Nr=b;this.Ca=c;this.listeners=[];this.MP=null;this.WM=new Map;b=new g.vK(this);g.O(this,b);b.T(a,"videodatachange",this.vba);b.T(a,"serverstitchedvideochange",this.Saa);this.Dv=this.Me()};
vgb=function(a,b,c){var d=a.uH(b,c);a.Dv=d;a.listeners.forEach(function(e){e.bK(d)})};
jK=function(a,b,c){a.J.getVideoData(1).ma(b,c)};
wgb=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5}};
A1=function(a,b,c){g.I.call(this);this.J=a;this.Ta=b;this.Ca=c;this.listeners=[];this.cD=[];this.j=function(){kG("Called 'doUnlockPreroll' before it's initialized.")};
b=new nC(this);c=new g.vK(this);g.O(this,c);g.O(this,b);b.T(a,"progresssync",this.saa);b.T(a,"presentingplayerstatechange",this.haa);b.T(a,"fullscreentoggled",this.onFullscreenToggled);b.T(a,"onVolumeChange",this.onVolumeChange);b.T(a,"minimized",this.hh);b.T(a,"overlayvisibilitychange",this.vj);b.T(a,"shortsadswipe",this.xj);b.T(a,"resize",this.Tb);c.T(a,g.EJ("appad"),this.uj)};
B1=function(a){q1(a.Ca.get())||a.j()};
xgb=function(a,b){a.cD=a.cD.filter(function(c){return c!==b})};
ygb=function(a,b){var c;b=null!=(c=a.Ta.get().WM.get(b))?c:null;if(null===b)return kG("Expected ad video start time on playback timeline"),0;a=a.J.getCurrentTime(2,!0);return a<b?0:a-b};
u1=function(a,b){return a.J.Qb(b)};
zgb=function(a){var b=a.J.kb().Th();a=a.J.Dn(!0,!0);return b.height-(a.height+a.top)};
Agb=function(a){a.J.cueVideoByPlayerVars({videoId:"empty_video"},2)};
Bgb=function(a,b){var c=a.J.U();g.MR(c)||"3"!==c.controlsType||a.J.kb().XK(b)};
C1=function(a,b){g.uv(a.J.getRootNode(),b)};
D1=function(a,b){g.wv(a.J.getRootNode(),b)};
Cgb=function(a,b,c,d,e){g.I.call(this);var f=this,h=qJ(function(){return new nN});
g.O(this,h);var l=qJ(function(){return new oN(h,f.Ca)});
g.O(this,l);var m=qJ(function(){return new ZM});
g.O(this,m);d=qJ(function(){return new WM(a)});
g.O(this,d);var n=qJ(function(){return new pN(h,l,f.Ca)});
g.O(this,n);var p=qJ(function(){return new sN});
g.O(this,p);this.Mb=qJ(function(){return new rJ(e)});
g.O(this,this.Mb);this.Ic=qJ(function(){return new k1(b)});
g.O(this,this.Ic);this.Qc=qJ(function(){return new m1(b)});
g.O(this,this.Qc);this.qd=qJ(function(){return new n1(b)});
g.O(this,this.qd);this.Ca=qJ(function(){return new o1(b)});
g.O(this,this.Ca);var q=qJ(function(){return new ZI(f.Ca)});
g.O(this,q);var r=qJ(function(){return new PM(h,n,l,f.Ca,q,null,null)});
g.O(this,r);this.Ta=qJ(function(){return new z1(b,p,f.Ca)});
g.O(this,this.Ta);var t=i1({Ta:this.Ta,Ca:this.Ca,Se:q}),v=t.context;this.Ob=t.Ob;this.Ha=qJ(function(){return new A1(b,f.Ta,f.Ca)});
g.O(this,this.Ha);this.xb=qJ(function(){return new t1(f.Ha,b,f.Ca)});
g.O(this,this.xb);this.Oa=qJ(function(){return new y1(b,m,f.xb,f.Ta,f.Ob,f.Ca)});
g.O(this,this.Oa);this.Rd=new VM(d,r,c,this.Ca,a,this.Ta,this.Ha,this.Ic);g.O(this,this.Rd);var w=new j1(b,this.Rd,this.Ha,this.Ta);this.ph=qJ(function(){return w});
this.Tw=w;this.Eg=new XM(d,n,this.Qc,this.ph,v);g.O(this,this.Eg);this.Vd=new AM(this.Ca,d,n,r,this.Ta,this.Eg,c);g.O(this,this.Vd);this.ih={RA:new Map,Qs:new Map,Mm:new Map,ou:new Map,It:new Map};this.listeners=[];this.lA={Vd:this.Vd,Lk:this.Ca.get(),ib:this.Mb.get(),WA:this.Ha.get(),Rd:this.Rd,Zv:h.get(),EE:null,Un:{WO:function(){}},
Tk:m.get(),Nf:this.Ta.get()}};
E1=function(a,b){g.I.call(this);this.Sn=b;this.Sn.get().addListener(this)};
F1=function(a){this.j=a};
Dgb=function(a,b){if(!a)return{Zu:[],adSlots:[],FB:!0,ssdaiAdsConfig:void 0};a.trackingParams&&$O(a.trackingParams);if(a.adThrottled)return{Zu:[],adSlots:[],FB:!0,ssdaiAdsConfig:void 0};var c,d=null!=(c=a.adSlots)?c:[],e;c=null!=(e=a.playerAds)?e:[];if(!(c&&c.length||d.length))return{Zu:[],adSlots:d,FB:!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{Zu:[],adSlots:d,FB:!1,ssdaiAdsConfig:void 0};if(0<b.end){var f=b.end.toString();e.forEach(function(h){(h=h.config&&h.config.adPlacementConfig)&&"AD_PLACEMENT_KIND_MILLISECONDS"===h.kind&&h.adTimeOffset&&"-1"===h.adTimeOffset.offsetEndMilliseconds&&h.adTimeOffset.offsetEndMilliseconds!==f&&(h.adTimeOffset.offsetEndMilliseconds=f)});
d.map(function(h){return g.V(h,BM)}).forEach(function(h){var l;
(h=null==h?void 0:null==(l=h.slotEntryTrigger)?void 0:l.mediaTimeRangeTrigger)&&"-1"===h.offsetEndMilliseconds&&(h.offsetEndMilliseconds=f)})}return{Zu:e,
adSlots:d,FB:!1,ssdaiAdsConfig:a.ssdaiAdsConfig}};
G1=function(a){g.I.call(this);this.J=a;this.listeners=[];this.j=new nC(this);g.O(this,this.j);this.j.T(this.J,"aduxclicked",this.onAdUxClicked);this.j.T(this.J,"aduxmouseover",this.nQ);this.j.T(this.J,"aduxmouseout",this.mQ);this.j.T(this.J,"muteadaccepted",this.Q9)};
Egb=function(a,b,c){b=g.Rr(b,function(d){return new qxa(d,c,d.id)});
a.J.gb("onAdUxUpdate",b)};
H1=function(a,b){a=g.u(a.listeners);for(var c=a.next();!c.done;c=a.next())b(c.value)};
I1=function(a,b){this.B=a;this.C=void 0===b?!1:b;this.j={}};
Fgb=function(a,b){var c=a.startSecs+a.rh;c=0>=c?null:c;if(null===c)return null;switch(a.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}b=Math.max(a.startSecs,0);return{y6:new Kv(b,c),M8:new NP(b,c-b,a.context,a.identifier,a.event,a.j)}};
Ggb=function(){this.j=[]};
fEa=function(a,b,c){var d=g.Tb(a.j,b);if(0<=d)return b;b=-d-1;return b>=a.j.length||a.j[b]>c?null:a.j[b]};
J1=function(a,b,c){g.I.call(this);this.J=a;this.Ca=b;this.Oa=c;this.listeners=[];this.D=!1;this.sL=[];this.B=null;this.G=new I1(this,Xfb(b.get()));this.C=new Ggb;this.j=null};
Hgb=function(a,b){a.sL.push(b);for(var c=!1,d=g.u(a.listeners),e=d.next();!e.done;e=d.next())c=e.value.JZ(b)||c;a.D=c};
Jgb=function(a,b){EL(a.Oa.get(),{cuepointTrigger:{event:Igb(b.event),cuepointId:b.identifier,totalCueDurationMs:1E3*b.rh,playheadTimeMs:b.j,cueStartTimeMs:1E3*b.startSecs,cuepointReceivedTimeMs:Date.now(),contentCpn:a.J.getVideoData(1).clientPlaybackNonce}})};
Igb=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 Le(a,"Unexpected cuepoint event")}};
K1=function(a){this.J=a};
Kgb=function(a,b){a.J.cueVideoByPlayerVars(b,2)};
L1=function(a){this.J=a};
M1=function(a){this.J=a};
Lgb=function(a){this.J=a};
Mgb=function(a,b,c,d,e){g.I.call(this);var f=this,h=qJ(function(){return new nN});
g.O(this,h);var l=qJ(function(){return new oN(h,f.Ca)});
g.O(this,l);var m=qJ(function(){return new ZM});
g.O(this,m);var n=qJ(function(){return new WM(a)});
g.O(this,n);var p=qJ(function(){return new pN(h,l,f.Ca)});
g.O(this,p);var q=qJ(function(){return new sN});
g.O(this,q);this.yc=qJ(function(){return new G1(b)});
g.O(this,this.yc);this.Mb=qJ(function(){return new rJ(e)});
g.O(this,this.Mb);this.Ic=qJ(function(){return new k1(b)});
g.O(this,this.Ic);this.Qc=qJ(function(){return new m1(b)});
g.O(this,this.Qc);this.Md=qJ(function(){return new K1(b)});
g.O(this,this.Md);this.qd=qJ(function(){return new n1(b)});
g.O(this,this.qd);this.Ca=qJ(function(){return new o1(b)});
g.O(this,this.Ca);var r=qJ(function(){return new F1(d)});
g.O(this,r);var t=qJ(function(){return new ZI(f.Ca)});
g.O(this,t);var v=qJ(function(){return new PM(h,p,l,f.Ca,t,"SLOT_TYPE_ABOVE_FEED",f.Qj)});
g.O(this,v);this.hg=qJ(function(){return new L1(b)});
g.O(this,this.hg);this.Sn=qJ(function(){return new uJ});
g.O(this,this.Sn);this.Ta=qJ(function(){return new z1(b,q,f.Ca)});
g.O(this,this.Ta);var w=i1({Ta:this.Ta,Ca:this.Ca,Se:t}),A=w.context;this.Ob=w.Ob;this.Df=qJ(function(){return new J1(b,f.Ca,f.Oa)});
g.O(this,this.Df);this.Uc=qJ(function(){return new M1(b)});
g.O(this,this.Uc);this.Ha=qJ(function(){return new A1(b,f.Ta,f.Ca)});
g.O(this,this.Ha);this.tf=qJ(function(){return new vJ});
this.xb=qJ(function(){return new t1(f.Ha,b,f.Ca)});
g.O(this,this.xb);this.Oa=qJ(function(){return new y1(b,m,f.xb,f.Ta,f.Ob,f.Ca)});
g.O(this,this.Oa);this.qk=new UM(OHa,N1,function(F,G,L,M){return HM(l.get(),F,G,L,M)},n,p,l,t,this.Ca,this.Ta);
g.O(this,this.qk);this.Rd=new VM(n,v,c,this.Ca,a,this.Ta,this.Ha,this.Ic);g.O(this,this.Rd);var C=new j1(b,this.Rd,this.Ha,this.Ta,this.Df);this.ph=qJ(function(){return C});
this.Tw=C;this.Qj=new RM(n,p,this.ph,this.Df,this.Ha,this.Ca,this.Oa,this.Uc);g.O(this,this.Qj);this.Eg=new XM(n,p,this.Qc,this.ph,A);g.O(this,this.Eg);this.Vd=new AM(this.Ca,n,p,v,this.Ta,this.Eg,c);g.O(this,this.Vd);this.Kj=qJ(function(){return new GJ(r,l,t,f.Ca,f.Oa,f.Ha,f.Uc)});
g.O(this,this.Kj);this.cf=qJ(function(){return new HJ});
g.O(this,this.cf);this.Rg=new cN(a,this.yc,this.Ca);g.O(this,this.Rg);this.Yb=new dN(a);g.O(this,this.Yb);this.yv=new eN(a);g.O(this,this.yv);this.qh=new gN(a,this.ph);g.O(this,this.qh);this.Ef=new hN(a,this.Qc,this.Ha,this.Ta,A);g.O(this,this.Ef);this.Dw=new iN(a,this.Ta);g.O(this,this.Dw);this.xf=new jN(a);g.O(this,this.xf);this.Ze=new mN(a);g.O(this,this.Ze);this.lk=new kN(a);g.O(this,this.lk);this.Hx=new lN(a);g.O(this,this.Hx);this.Ze=new mN(a);g.O(this,this.Ze);this.We=qJ(function(){return new $M});
g.O(this,this.We);this.rk=qJ(function(){return new aN(f.Ha)});
g.O(this,this.rk);this.rV=qJ(function(){return new wCa(f.yc,f.Oa,a,m,f.xb)});
g.O(this,this.rV);this.Jj=qJ(function(){return new aK(f.Vd,n,h)});
g.O(this,this.Jj);this.Tj=qJ(function(){return new cK(f.Ca,f.Oa,f.xf,f.xb)});
g.O(this,this.Tj);this.pk=qJ(function(){return new FEa(a,f.Ze,f.xf,f.Ta,f.Uc,f.Ha,f.Oa,q,f.Df,f.xb,f.tf,f.Md,f.Qc,f.Ic,f.qd,f.Mb,f.hg,f.Ca,m,A)});
g.O(this,this.pk);this.iR=qJ(function(){return new QCa(f.Ha,f.Oa,f.Ca,f.xb)});
g.O(this,this.iR);this.ut=qJ(function(){return new PEa(f.yc,f.Ha,f.Oa,m,f.xb,f.yv,f.Hx,f.Mb,f.Ca,c)});
g.O(this,this.ut);this.m1=qJ(function(){return new yCa(f.yc)});
g.O(this,this.m1);this.SM=new E1(a,this.Sn,h);g.O(this,this.SM);this.ih={RA:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Qj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.qk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Eg]]),Qs:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Kj],["SLOT_TYPE_ABOVE_FEED",this.cf],["SLOT_TYPE_FORECASTING",this.cf],
["SLOT_TYPE_IN_PLAYER",this.cf],["SLOT_TYPE_PLAYER_BYTES",this.cf],["SLOT_TYPE_PLAYER_UNDERLAY",this.cf],["SLOT_TYPE_PLAYBACK_TRACKING",this.cf],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.cf]]),Mm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Rg],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Rg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_ENTERED",
this.Yb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yb],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Yb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.yv],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.qh],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.Ef],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",
this.Ef],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.Ef],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ef],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ef],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.Ef],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ef],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Dw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Dw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",
this.qh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.lk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Hx],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ze]]),ou:new Map([["SLOT_TYPE_ABOVE_FEED",this.We],["SLOT_TYPE_AD_BREAK_REQUEST",this.We],["SLOT_TYPE_FORECASTING",this.We],["SLOT_TYPE_IN_PLAYER",this.We],["SLOT_TYPE_PLAYER_BYTES",this.rk],["SLOT_TYPE_PLAYER_UNDERLAY",this.We],["SLOT_TYPE_PLAYBACK_TRACKING",this.We],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.We]]),It:new Map([["SLOT_TYPE_ABOVE_FEED",
this.rV],["SLOT_TYPE_AD_BREAK_REQUEST",this.Jj],["SLOT_TYPE_FORECASTING",this.Tj],["SLOT_TYPE_PLAYER_BYTES",this.pk],["SLOT_TYPE_PLAYBACK_TRACKING",this.iR],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.iR],["SLOT_TYPE_IN_PLAYER",this.ut],["SLOT_TYPE_PLAYER_UNDERLAY",this.m1]])};this.listeners=[m.get()];this.lA={Vd:this.Vd,Lk:this.Ca.get(),ib:this.Mb.get(),WA:this.Ha.get(),Rd:this.Rd,Zv:h.get(),EE:this.Sn.get(),Un:this.Rg,Tk:m.get(),Nf:this.Ta.get()}};
Ngb=function(a,b,c,d,e){g.I.call(this);var f=this,h=qJ(function(){return new nN});
g.O(this,h);var l=qJ(function(){return new oN(h,f.Ca)});
g.O(this,l);var m=qJ(function(){return new ZM});
g.O(this,m);var n=qJ(function(){return new WM(a)});
g.O(this,n);var p=qJ(function(){return new pN(h,l,f.Ca)});
g.O(this,p);var q=qJ(function(){return new sN});
g.O(this,q);this.yc=qJ(function(){return new G1(b)});
g.O(this,this.yc);this.Mb=qJ(function(){return new rJ(e)});
g.O(this,this.Mb);this.Ic=qJ(function(){return new k1(b)});
g.O(this,this.Ic);this.Qc=qJ(function(){return new m1(b)});
g.O(this,this.Qc);this.Md=qJ(function(){return new K1(b)});
g.O(this,this.Md);this.qd=qJ(function(){return new n1(b)});
g.O(this,this.qd);this.Ca=qJ(function(){return new o1(b)});
g.O(this,this.Ca);var r=qJ(function(){return new F1(d)});
g.O(this,r);var t=qJ(function(){return new ZI(f.Ca)});
g.O(this,t);var v=qJ(function(){return new PM(h,p,l,f.Ca,t,null,f.Qj)});
g.O(this,v);this.hg=qJ(function(){return new L1(b)});
g.O(this,this.hg);this.Sn=qJ(function(){return new uJ});
g.O(this,this.Sn);this.Ta=qJ(function(){return new z1(b,q,f.Ca)});
g.O(this,this.Ta);var w=i1({Ta:this.Ta,Ca:this.Ca,Se:t}),A=w.context;this.Ob=w.Ob;this.Df=qJ(function(){return new J1(b,f.Ca,f.Oa)});
this.Ha=qJ(function(){return new A1(b,f.Ta,f.Ca)});
g.O(this,this.Ha);this.xb=qJ(function(){return new t1(f.Ha,b,f.Ca)});
g.O(this,this.xb);this.Oa=qJ(function(){return new y1(b,m,f.xb,f.Ta,f.Ob,f.Ca)});
g.O(this,this.Oa);this.tf=qJ(function(){return new vJ});
g.O(this,this.tf);this.qk=new UM(OHa,N1,function(F,G,L,M){return HM(l.get(),F,G,L,M)},n,p,l,t,this.Ca,this.Ta);
g.O(this,this.qk);this.Rd=new VM(n,v,c,this.Ca,a,this.Ta,this.Ha,this.Ic);g.O(this,this.Rd);var C=new j1(b,this.Rd,this.Ha,this.Ta,this.Df);this.ph=qJ(function(){return C});
this.Tw=C;this.Qj=new RM(n,p,this.ph,this.Df,this.Ha,this.Ca,this.Oa);g.O(this,this.Qj);this.Eg=new XM(n,p,this.Qc,this.ph,A);g.O(this,this.Eg);this.Vd=new AM(this.Ca,n,p,v,this.Ta,this.Eg,c);g.O(this,this.Vd);this.Kj=qJ(function(){return new GJ(r,l,t,f.Ca,f.Oa,f.Ha)});
g.O(this,this.Kj);this.cf=qJ(function(){return new HJ});
g.O(this,this.cf);this.Rg=new cN(a,this.yc,this.Ca);g.O(this,this.Rg);this.Yb=new dN(a);g.O(this,this.Yb);this.yv=new eN(a);g.O(this,this.yv);this.qh=new gN(a,this.ph);g.O(this,this.qh);this.Ef=new hN(a,this.Qc,this.Ha,this.Ta,A);g.O(this,this.Ef);this.xf=new jN(a);g.O(this,this.xf);this.lk=new kN(a);g.O(this,this.lk);this.Hx=new lN(a);g.O(this,this.Hx);this.Uc=qJ(function(){return new M1(b)});
g.O(this,this.Uc);this.Ze=new mN(a);g.O(this,this.Ze);this.We=qJ(function(){return new $M});
g.O(this,this.We);this.rk=qJ(function(){return new aN(f.Ha)});
g.O(this,this.rk);this.Jj=qJ(function(){return new aK(f.Vd,n,h)});
g.O(this,this.Jj);this.Tj=qJ(function(){return new cK(f.Ca,f.Oa,f.xf,f.xb)});
g.O(this,this.Tj);this.ut=qJ(function(){return new QEa(f.yc,f.Ha,f.Oa,m,f.xb,f.yv,f.Hx,f.Mb,f.Ca,c)});
g.O(this,this.ut);this.pk=qJ(function(){return new HL(a,f.Ze,f.xf,f.Oa,f.xb,f.tf,f.Md,f.Ta,f.Ha,f.Qc,f.Ic,f.qd,f.Mb,f.hg,f.Ca,f.Uc,A)});
g.O(this,this.pk);this.SM=new E1(a,this.Sn,h);g.O(this,this.SM);this.ih={RA:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Qj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.qk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Eg]]),Qs:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Kj],["SLOT_TYPE_FORECASTING",this.cf],["SLOT_TYPE_IN_PLAYER",this.cf],
["SLOT_TYPE_PLAYER_BYTES",this.cf]]),Mm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Rg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yb],
["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Yb],["TRIGGER_TYPE_CLOSE_REQUESTED",this.yv],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.qh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ef],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ef],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.Ef],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.qh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.lk],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",
this.Hx],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ze]]),ou:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.We],["SLOT_TYPE_FORECASTING",this.We],["SLOT_TYPE_IN_PLAYER",this.We],["SLOT_TYPE_PLAYER_BYTES",this.rk]]),It:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Jj],["SLOT_TYPE_FORECASTING",this.Tj],["SLOT_TYPE_IN_PLAYER",this.ut],["SLOT_TYPE_PLAYER_BYTES",this.pk]])};this.listeners=[m.get()];this.lA={Vd:this.Vd,Lk:this.Ca.get(),ib:this.Mb.get(),WA:this.Ha.get(),Rd:this.Rd,Zv:h.get(),EE:this.Sn.get(),Un:this.Rg,
Tk:m.get(),Nf:this.Ta.get()}};
Ogb=function(a,b,c,d,e){g.I.call(this);var f=this,h=qJ(function(){return new nN});
g.O(this,h);var l=qJ(function(){return new oN(h,f.Ca)});
g.O(this,l);var m=qJ(function(){return new ZM});
g.O(this,m);var n=qJ(function(){return new WM(a)});
g.O(this,n);var p=qJ(function(){return new pN(h,l,f.Ca)});
g.O(this,p);var q=qJ(function(){return new sN});
g.O(this,q);this.yc=qJ(function(){return new G1(b)});
g.O(this,this.yc);this.Mb=qJ(function(){return new rJ(e)});
g.O(this,this.Mb);this.Ic=qJ(function(){return new k1(b)});
g.O(this,this.Ic);this.Qc=qJ(function(){return new m1(b)});
g.O(this,this.Qc);this.Md=qJ(function(){return new K1(b)});
g.O(this,this.Md);this.qd=qJ(function(){return new n1(b)});
g.O(this,this.qd);this.Ca=qJ(function(){return new o1(b)});
g.O(this,this.Ca);var r=qJ(function(){return new F1(d)});
g.O(this,r);var t=qJ(function(){return new ZI(f.Ca)});
g.O(this,t);var v=qJ(function(){return new PM(h,p,l,f.Ca,t,null,null)});
g.O(this,v);this.hg=qJ(function(){return new L1(b)});
g.O(this,this.hg);this.Ta=qJ(function(){return new z1(b,q,f.Ca)});
g.O(this,this.Ta);var w=i1({Ta:this.Ta,Ca:this.Ca,Se:t}),A=w.context;this.Ob=w.Ob;this.Ha=qJ(function(){return new A1(b,f.Ta,f.Ca)});
g.O(this,this.Ha);this.xb=qJ(function(){return new t1(f.Ha,b,f.Ca)});
g.O(this,this.xb);this.Oa=qJ(function(){return new y1(b,m,f.xb,f.Ta,f.Ob,f.Ca)});
g.O(this,this.Oa);this.tf=qJ(function(){return new vJ});
g.O(this,this.tf);this.qk=new UM(OHa,N1,function(F,G,L,M){return HM(l.get(),F,G,L,M)},n,p,l,t,this.Ca,this.Ta);
g.O(this,this.qk);this.Rd=new VM(n,v,c,this.Ca,a,this.Ta,this.Ha,this.Ic);g.O(this,this.Rd);var C=new j1(b,this.Rd,this.Ha,this.Ta);this.ph=qJ(function(){return C});
this.Tw=C;this.Eg=new XM(n,p,this.Qc,this.ph,A);g.O(this,this.Eg);this.Vd=new AM(this.Ca,n,p,v,this.Ta,this.Eg,c);g.O(this,this.Vd);this.Kj=qJ(function(){return new GJ(r,l,t,f.Ca,f.Oa,f.Ha)});
g.O(this,this.Kj);this.cf=qJ(function(){return new HJ});
g.O(this,this.cf);this.Rg=new cN(a,this.yc,this.Ca);g.O(this,this.Rg);this.Yb=new dN(a);g.O(this,this.Yb);this.qh=new gN(a,this.ph);g.O(this,this.qh);this.Ef=new hN(a,this.Qc,this.Ha,this.Ta,A);g.O(this,this.Ef);this.xf=new jN(a);g.O(this,this.xf);this.lk=new kN(a);g.O(this,this.lk);this.Uc=qJ(function(){return new M1(b)});
g.O(this,this.Uc);this.Ze=new mN(a);g.O(this,this.Ze);this.We=qJ(function(){return new $M});
g.O(this,this.We);this.rk=qJ(function(){return new aN(f.Ha)});
g.O(this,this.rk);this.Jj=qJ(function(){return new aK(f.Vd,n,h)});
g.O(this,this.Jj);this.Tj=qJ(function(){return new cK(f.Ca,f.Oa,f.xf,f.xb)});
g.O(this,this.Tj);this.h_=qJ(function(){return new MCa(f.yc,f.Ha,f.Oa,m,c,f.Ca)});
g.O(this,this.h_);this.pk=qJ(function(){return new HL(a,f.Ze,f.xf,f.Oa,f.xb,f.tf,f.Md,f.Ta,f.Ha,f.Qc,f.Ic,f.qd,f.Mb,f.hg,f.Ca,f.Uc,A)});
g.O(this,this.pk);this.ih={RA:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.qk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Eg]]),Qs:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Kj],["SLOT_TYPE_FORECASTING",this.cf],["SLOT_TYPE_IN_PLAYER",this.cf],["SLOT_TYPE_PLAYER_BYTES",this.cf]]),Mm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Rg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Yb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.qh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ef],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Ef],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.qh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.lk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ze]]),ou:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.We],["SLOT_TYPE_ABOVE_FEED",this.We],["SLOT_TYPE_FORECASTING",this.We],["SLOT_TYPE_IN_PLAYER",this.We],["SLOT_TYPE_PLAYER_BYTES",this.rk]]),It:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Jj],["SLOT_TYPE_FORECASTING",this.Tj],["SLOT_TYPE_IN_PLAYER",
this.h_],["SLOT_TYPE_PLAYER_BYTES",this.pk]])};this.listeners=[m.get()];this.lA={Vd:this.Vd,Lk:this.Ca.get(),ib:this.Mb.get(),WA:this.Ha.get(),Rd:this.Rd,Zv:h.get(),EE:null,Un:this.Rg,Tk:m.get(),Nf:this.Ta.get()}};
Pgb=function(a,b,c,d,e){g.I.call(this);var f=this,h=qJ(function(){return new nN});
g.O(this,h);var l=qJ(function(){return new oN(h,f.Ca)});
g.O(this,l);var m=qJ(function(){return new ZM});
g.O(this,m);var n=qJ(function(){return new WM(a)});
g.O(this,n);var p=qJ(function(){return new pN(h,l,f.Ca)});
g.O(this,p);var q=qJ(function(){return new sN});
g.O(this,q);this.Xm=qJ(function(){return new Lgb(b)});
g.O(this,this.Xm);this.yc=qJ(function(){return new G1(b)});
g.O(this,this.yc);this.Mb=qJ(function(){return new rJ(e)});
g.O(this,this.Mb);this.Ic=qJ(function(){return new k1(b)});
g.O(this,this.Ic);this.Qc=qJ(function(){return new m1(b)});
g.O(this,this.Qc);this.Md=qJ(function(){return new K1(b)});
g.O(this,this.Md);this.qd=qJ(function(){return new n1(b)});
g.O(this,this.qd);this.Ca=qJ(function(){return new o1(b)});
g.O(this,this.Ca);var r=qJ(function(){return new F1(d)});
g.O(this,r);var t=qJ(function(){return new ZI(f.Ca)});
g.O(this,t);var v=qJ(function(){return new PM(h,p,l,f.Ca,t,null,null)});
g.O(this,v);this.hg=qJ(function(){return new L1(b)});
g.O(this,this.hg);this.Ta=qJ(function(){return new z1(b,q,f.Ca)});
g.O(this,this.Ta);var w=i1({Ta:this.Ta,Ca:this.Ca,Se:t}),A=w.context;this.Ob=w.Ob;this.Ha=qJ(function(){return new A1(b,f.Ta,f.Ca)});
g.O(this,this.Ha);this.xb=qJ(function(){return new t1(f.Ha,b,f.Ca)});
g.O(this,this.xb);this.Oa=qJ(function(){return new y1(b,m,f.xb,f.Ta,f.Ob,f.Ca)});
g.O(this,this.Oa);this.tf=qJ(function(){return new vJ});
g.O(this,this.tf);this.qk=new UM(QHa,N1,function(F,G,L,M){return jIa(l.get(),F,G,L,M)},n,p,l,t,this.Ca,this.Ta);
g.O(this,this.qk);this.Rd=new VM(n,v,c,this.Ca,a,this.Ta,this.Ha,this.Ic);g.O(this,this.Rd);var C=new j1(b,this.Rd,this.Ha,this.Ta);this.ph=qJ(function(){return C});
this.Tw=C;this.Eg=new XM(n,p,this.Qc,this.ph,A);g.O(this,this.Eg);this.Vd=new AM(this.Ca,n,p,v,this.Ta,this.Eg,c);g.O(this,this.Vd);this.Kj=qJ(function(){return new GJ(r,l,t,f.Ca,f.Oa,f.Ha)});
g.O(this,this.Kj);this.cf=qJ(function(){return new HJ});
g.O(this,this.cf);this.Rg=new cN(a,this.yc,this.Ca);g.O(this,this.Rg);this.Yb=new dN(a);g.O(this,this.Yb);this.qh=new gN(a,this.ph);g.O(this,this.qh);this.Ef=new hN(a,this.Qc,this.Ha,this.Ta,A);g.O(this,this.Ef);this.xf=new jN(a);g.O(this,this.xf);this.lk=new kN(a);g.O(this,this.lk);this.Uc=qJ(function(){return new M1(b)});
g.O(this,this.Uc);this.Ze=new mN(a);g.O(this,this.Ze);this.We=qJ(function(){return new $M});
g.O(this,this.We);this.rk=qJ(function(){return new aN(f.Ha)});
g.O(this,this.rk);this.Jj=qJ(function(){return new aK(f.Vd,n,h)});
g.O(this,this.Jj);this.Tj=qJ(function(){return new cK(f.Ca,f.Oa,f.xf,f.xb)});
g.O(this,this.Tj);this.pk=qJ(function(){return new HL(a,f.Ze,f.xf,f.Oa,f.xb,f.tf,f.Md,f.Ta,f.Ha,f.Qc,f.Ic,f.qd,f.Mb,f.hg,f.Ca,f.Uc,A)});
g.O(this,this.pk);this.N1=qJ(function(){return new SEa(f.yc,f.Ha,f.Oa,m,f.Xm,c,f.Ta)});
g.O(this,this.N1);this.ih={RA:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vd],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.qk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Eg]]),Qs:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Kj],["SLOT_TYPE_FORECASTING",this.cf],["SLOT_TYPE_IN_PLAYER",this.cf],["SLOT_TYPE_PLAYER_BYTES",this.cf]]),Mm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Rg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",
this.Yb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.qh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.Ef],["TRIGGER_TYPE_MEDIA_TIME_RANGE",
this.Ef],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.qh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.lk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ze]]),ou:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.We],["SLOT_TYPE_FORECASTING",this.We],["SLOT_TYPE_IN_PLAYER",this.We],["SLOT_TYPE_PLAYER_BYTES",this.rk]]),It:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Jj],["SLOT_TYPE_FORECASTING",this.Tj],["SLOT_TYPE_IN_PLAYER",this.N1],["SLOT_TYPE_PLAYER_BYTES",
this.pk]])};this.listeners=[m.get()];this.lA={Vd:this.Vd,Lk:this.Ca.get(),ib:this.Mb.get(),WA:this.Ha.get(),Rd:this.Rd,Zv:h.get(),EE:null,Un:this.Rg,Tk:m.get(),Nf:this.Ta.get()}};
Qgb=function(a,b,c,d,e){g.I.call(this);var f=this,h=qJ(function(){return new nN});
g.O(this,h);var l=qJ(function(){return new oN(h,f.Ca)});
g.O(this,l);var m=qJ(function(){return new ZM});
g.O(this,m);var n=qJ(function(){return new WM(a)});
g.O(this,n);var p=qJ(function(){return new pN(h,l,f.Ca)});
g.O(this,p);var q=qJ(function(){return new sN});
g.O(this,q);this.Xm=qJ(function(){return new Lgb(b)});
g.O(this,this.Xm);this.yc=qJ(function(){return new G1(b)});
g.O(this,this.yc);this.Mb=qJ(function(){return new rJ(e)});
g.O(this,this.Mb);this.Ic=qJ(function(){return new k1(b)});
g.O(this,this.Ic);this.Qc=qJ(function(){return new m1(b)});
g.O(this,this.Qc);this.Md=qJ(function(){return new K1(b)});
g.O(this,this.Md);this.qd=qJ(function(){return new n1(b)});
g.O(this,this.qd);this.Ca=qJ(function(){return new o1(b)});
g.O(this,this.Ca);var r=qJ(function(){return new F1(d)});
g.O(this,r);var t=qJ(function(){return new ZI(f.Ca)});
g.O(this,t);var v=qJ(function(){return new PM(h,p,l,f.Ca,t,null,f.Qj,3)});
g.O(this,v);this.hg=qJ(function(){return new L1(b)});
g.O(this,this.hg);this.Ta=qJ(function(){return new z1(b,q,f.Ca)});
g.O(this,this.Ta);var w=i1({Ta:this.Ta,Ca:this.Ca,Se:t}),A=w.context;this.Ob=w.Ob;this.Df=qJ(function(){return new J1(b,f.Ca,f.Oa)});
g.O(this,this.Df);this.Uc=qJ(function(){return new M1(b)});
g.O(this,this.Uc);this.Ha=qJ(function(){return new A1(b,f.Ta,f.Ca)});
g.O(this,this.Ha);this.tf=qJ(function(){return new vJ});
this.xb=qJ(function(){return new t1(f.Ha,b,f.Ca)});
g.O(this,this.xb);this.Oa=qJ(function(){return new y1(b,m,f.xb,f.Ta,f.Ob,f.Ca)});
g.O(this,this.Oa);this.Rd=new VM(n,v,c,this.Ca,a,this.Ta,this.Ha,this.Ic);g.O(this,this.Rd);var C=new j1(b,this.Rd,this.Ha,this.Ta,this.Df);this.ph=qJ(function(){return C});
this.Tw=C;this.qk=new UM(RHa,N1,function(F,G,L,M){return jIa(l.get(),F,G,L,M)},n,p,l,t,this.Ca,this.Ta);
g.O(this,this.qk);this.Qj=new RM(n,p,this.ph,this.Df,this.Ha,this.Ca,this.Oa,this.Uc);g.O(this,this.Qj);this.Eg=new XM(n,p,this.Qc,this.ph,A);g.O(this,this.Eg);this.Vd=new AM(this.Ca,n,p,v,this.Ta,this.Eg,c);g.O(this,this.Vd);this.Kj=qJ(function(){return new GJ(r,l,t,f.Ca,f.Oa,f.Ha,f.Uc)});
g.O(this,this.Kj);this.cf=qJ(function(){return new HJ});
g.O(this,this.cf);this.Rg=new cN(a,this.yc,this.Ca);g.O(this,this.Rg);this.Yb=new dN(a);g.O(this,this.Yb);this.qh=new gN(a,this.ph);g.O(this,this.qh);this.Ef=new hN(a,this.Qc,this.Ha,this.Ta,A);g.O(this,this.Ef);this.Dw=new iN(a,this.Ta);g.O(this,this.Dw);this.xf=new jN(a);g.O(this,this.xf);this.lk=new kN(a);g.O(this,this.lk);this.Ze=new mN(a);g.O(this,this.Ze);this.We=qJ(function(){return new $M});
g.O(this,this.We);this.rk=qJ(function(){return new aN(f.Ha)});
g.O(this,this.rk);this.Jj=qJ(function(){return new aK(f.Vd,n,h)});
g.O(this,this.Jj);this.Tj=qJ(function(){return new cK(f.Ca,f.Oa,f.xf,f.xb)});
g.O(this,this.Tj);this.pk=qJ(function(){return new FEa(a,f.Ze,f.xf,f.Ta,f.Uc,f.Ha,f.Oa,q,f.Df,f.xb,f.tf,f.Md,f.Qc,f.Ic,f.qd,f.Mb,f.hg,f.Ca,m,A)});
g.O(this,this.pk);this.ut=qJ(function(){return new TEa(f.yc,f.Ha,f.Oa,m,f.Xm,c,f.Ca,f.Ta)});
g.O(this,this.ut);this.ih={RA:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Vd],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Qj],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.qk],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Rd],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Eg]]),Qs:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Kj],["SLOT_TYPE_FORECASTING",this.cf],["SLOT_TYPE_IN_PLAYER",this.cf],["SLOT_TYPE_PLAYER_BYTES",this.cf]]),Mm:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",
this.Rg],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Yb],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Yb],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Yb],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Yb],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Yb],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.qh],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",
this.Ef],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.Ef],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Dw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Dw],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xf],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.qh],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.lk],["TRIGGER_TYPE_AD_BREAK_STARTED",this.Ze]]),ou:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.We],["SLOT_TYPE_FORECASTING",this.We],["SLOT_TYPE_IN_PLAYER",this.We],["SLOT_TYPE_PLAYER_BYTES",
this.rk]]),It:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Jj],["SLOT_TYPE_FORECASTING",this.Tj],["SLOT_TYPE_PLAYER_BYTES",this.pk],["SLOT_TYPE_IN_PLAYER",this.ut]])};this.listeners=[m.get()];this.lA={Vd:this.Vd,Lk:this.Ca.get(),ib:this.Mb.get(),WA:this.Ha.get(),Rd:this.Rd,Zv:h.get(),EE:null,Un:this.Rg,Tk:m.get(),Nf:this.Ta.get()}};
Sgb=function(a,b,c,d){g.I.call(this);var e=this;this.j=Rgb(function(){return e.B},a,b,c,d);
g.O(this,this.j);this.B=(new fBa(this.j)).C();g.O(this,this.B)};
O1=function(a){return a.j.lA};
Rgb=function(a,b,c,d,e){try{var f=b.U();if(g.ZR(f))var h=new Mgb(a,b,c,d,e);else if(g.aS(f))h=new Ngb(a,b,c,d,e);else if(TR(f))h=new Ogb(a,b,c,d,e);else if(g.JG(f))h=new Pgb(a,b,c,d,e);else if(g.OR(f))h=new Qgb(a,b,c,d,e);else throw new TypeError("Unknown web interface");return h}catch(l){return h=b.U(),kG("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:h.j.cplatform,interface:h.j.c,Job:h.j.cver,Iob:h.j.ctheme,Hob:h.j.cplayer,qpb:h.playerStyle}),new Cgb(a,b,c,d,e)}};
Tgb=function(a){ZF.call(this,a)};
Ugb=function(a,b,c,d,e){dG.call(this,a,{I:"div",S:"ytp-ad-timed-pie-countdown-container",V:[{I:"svg",S:"ytp-ad-timed-pie-countdown",X:{viewBox:"0 0 20 20"},V:[{I:"circle",S:"ytp-ad-timed-pie-countdown-background",X:{r:"10",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-inner",X:{r:"5",cx:"10",cy:"10"}},{I:"circle",S:"ytp-ad-timed-pie-countdown-outer",X:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,c,d,e);this.ra=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(10*Math.PI);this.hide()};
Vgb=function(a,b,c,d,e,f){FF.call(this,a,{I:"div",S:"ytp-ad-action-interstitial",X:{tabindex:"0"},V:[{I:"div",S:"ytp-ad-action-interstitial-background-container"},{I:"div",S:"ytp-ad-action-interstitial-slot",V:[{I:"div",S:"ytp-ad-action-interstitial-instream-info"},{I:"div",S:"ytp-ad-action-interstitial-card",V:[{I:"div",S:"ytp-ad-action-interstitial-image-container"},{I:"div",S:"ytp-ad-action-interstitial-headline-container"},{I:"div",S:"ytp-ad-action-interstitial-description-container"},{I:"div",
S:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",b,c,d);this.nS=e;this.dL=f;this.navigationEndpoint=this.j=this.skipButton=this.B=this.actionButton=null;this.Da=this.Fa("ytp-ad-action-interstitial-instream-info");this.ra=this.Fa("ytp-ad-action-interstitial-image-container");this.Y=new WF(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,"ytp-ad-action-interstitial-image");g.O(this,this.Y);this.Y.Ja(this.ra);this.Wa=this.Fa("ytp-ad-action-interstitial-headline-container");
this.G=new cG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,"ytp-ad-action-interstitial-headline");g.O(this,this.G);this.G.Ja(this.Wa);this.Va=this.Fa("ytp-ad-action-interstitial-description-container");this.C=new cG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,"ytp-ad-action-interstitial-description");g.O(this,this.C);this.C.Ja(this.Va);this.bb=this.Fa("ytp-ad-action-interstitial-background-container");this.Na=new WF(this.api,this.layoutId,this.interactionLoggingClientData,
this.ib,"ytp-ad-action-interstitial-background",!0);g.O(this,this.Na);this.Na.Ja(this.bb);this.fb=this.Fa("ytp-ad-action-interstitial-action-button-container");this.slot=this.Fa("ytp-ad-action-interstitial-slot");this.Cf=this.Fa("ytp-ad-action-interstitial-card");this.D=new nC;g.O(this,this.D);this.hide()};
Wgb=function(a){var b=g.tf("html5-video-player");b&&g.yv(b,"ytp-ad-display-override",a)};
$gb=function(a,b,c,d){FF.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.fb=this.Da=this.D=this.bb=this.Va=null;this.Wa=!1;this.G=null;this.ra=0;a=this.Fa("ytp-ad-overlay-container");this.Na=new jG(a,45E3,6E3,.3,.4);g.O(this,this.Na);this.C=Xgb(this);g.O(this,this.C);this.C.Ja(a);this.B=Ygb(this);g.O(this,this.B);this.B.Ja(a);this.j=Zgb(this);g.O(this,this.j);this.j.Ja(a);this.hide()};
Xgb=function(a){var b=new g.EF({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:[OF(ahb)]}]},{I:"div",S:"ytp-ad-overlay-title",xa:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",xa:"{{description}}"},{I:"div",Ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],xa:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){P1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){P1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.SL);b.hide();return b};
Ygb=function(a){var b=new g.EF({I:"div",Ka:["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:[OF(ahb)]}]},{I:"div",S:"ytp-ad-overlay-text-image",V:[{I:"img",X:{src:"{{imageUrl}}"}}]},{I:"div",S:"ytp-ad-overlay-title",xa:"{{title}}"},{I:"div",S:"ytp-ad-overlay-desc",xa:"{{description}}"},{I:"div",Ka:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],
xa:"{{displayUrl}}"}]});a.T(b.Fa("ytp-ad-overlay-title"),"click",function(c){P1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-link"),"click",function(c){P1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.SL);a.T(b.Fa("ytp-ad-overlay-text-image"),"click",a.lba);b.hide();return b};
Zgb=function(a){var b=new g.EF({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:[OF(ahb)]}]},{I:"div",S:"ytp-ad-overlay-image",V:[{I:"img",X:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});a.T(b.Fa("ytp-ad-overlay-image"),"click",function(c){P1(a,b.element,c)});
a.T(b.Fa("ytp-ad-overlay-close-container"),"click",a.SL);b.hide();return b};
bhb=function(a,b){if(b){var c=g.V(b,wM)||null;if(null==c)g.dF(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer."));else if(b=g.tf("video-ads ytp-ad-module")||null,null==b)g.dF(Error("Could not locate the root ads container element to attach the ad info dialog."));else if(a.Da=new g.EF({I:"div",S:"ytp-ad-overlay-ad-info-dialog-container"}),g.O(a,a.Da),a.Da.Ja(b),b=new bG(a.api,a.layoutId,a.interactionLoggingClientData,a.ib,a.Da.element,!1),g.O(a,b),b.init(uF("ad-info-hover-text-button"),
c,a.macros),a.G){b.Ja(a.G,0);b.subscribe("f",a.O9,a);b.subscribe("e",a.MQ,a);a.T(a.G,"click",a.P9);var d=g.tf("ytp-ad-button",b.element);a.T(d,"click",function(){var e;if(g.V(null==(e=g.V(c.button,g.yM))?void 0:e.serviceEndpoint,Cxa))a.Wa=2===a.api.getPlayerState(1),a.api.pauseVideo();else a.api.onAdUxClicked("ad-info-hover-text-button",a.layoutId)});
a.fb=b}else g.dF(Error("Ad info button container within overlay ad was not present."))}else g.eF(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))};
dhb=function(a,b){if(chb(a,Q1)||a.api.isMinimized())return!1;var c=GF(b.title),d=GF(b.description);if(g.ec(c)||g.ec(d))return!1;a.createServerVe(a.C.element,b.trackingParams||null);a.C.updateValue("title",GF(b.title));a.C.updateValue("description",GF(b.description));a.C.updateValue("displayUrl",GF(b.displayUrl));b.navigationEndpoint&&g.Mb(a.Y,b.navigationEndpoint);a.C.show();a.Na.start();a.logVisibility(a.C.element,!0);a.T(a.C.element,"mouseover",function(){a.ra++});
return!0};
ehb=function(a,b){if(chb(a,Q1)||a.api.isMinimized())return!1;var c=GF(b.title),d=GF(b.description);if(g.ec(c)||g.ec(d))return!1;a.createServerVe(a.B.element,b.trackingParams||null);a.B.updateValue("title",GF(b.title));a.B.updateValue("description",GF(b.description));a.B.updateValue("displayUrl",GF(b.displayUrl));a.B.updateValue("imageUrl",Jwa(b.image));b.navigationEndpoint&&g.Mb(a.Y,b.navigationEndpoint);a.bb=b.imageNavigationEndpoint||null;a.B.show();a.Na.start();a.logVisibility(a.B.element,!0);
a.T(a.B.element,"mouseover",function(){a.ra++});
return!0};
fhb=function(a,b){if(a.api.isMinimized())return!1;var c=Kwa(b.image),d=c;c.width<Q1.width&&(d=Q1);if(0===c.width||0===c.height||chb(a,d))return!1;a.createServerVe(a.j.element,b.trackingParams||null);a.j.updateValue("imageUrl",Jwa(b.image));a.j.updateValue("width",c.width);a.j.updateValue("height",c.height);b.navigationEndpoint&&g.Mb(a.Y,b.navigationEndpoint);b=a.j.Fa("ytp-ad-image-overlay");g.zs(b,"max-width",c.width+"px");a.j.show();a.logVisibility(a.j.element,!0);a.T(a.j.element,"mouseover",function(){a.ra++;
a.api.nQ("invideo-overlay",a.layoutId)});
a.T(a.j.element,"mouseout",function(){a.api.mQ("invideo-overlay",a.layoutId)});
return!0};
chb=function(a,b){var c=a.api.kb().Th(),d=a.api.Dn(!0,!1);return(b=IEa(c,c.height-(d.height+d.top),b))?(a.Va&&b&&(c=g.md(a.macros),c.ERRORCODE=b.LG.toString(),c.ERROR_MSG=b.errorMessage,a.layoutId?tJ(a.ib,a.Va,a.layoutId,c):g.dF(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1};
P1=function(a,b,c){var d=g.md(a.macros),e=g.Ls(b);d.AW={toString:function(){return e.width.toString()}};
d.AH={toString:function(){return e.height.toString()}};
var f=g.Js(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.ra.toString()}};
b=g.u(a.Y);for(c=b.next();!c.done;c=b.next())c=c.value,a.layoutId?tJ(a.ib,c,a.layoutId,d):g.dF(Error("Missing layoutId for invideo_overlay_ad."));a.api.pauseVideo()};
ghb=function(a,b){a=a.api.getRootNode();g.yv(a,"ytp-ad-overlay-open",b);g.yv(a,"ytp-ad-overlay-closed",!b)};
hhb=function(a,b,c,d,e){dG.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.ra=!1;this.Da=this.Fa("ytp-ad-message-slot");this.B=new g.EF({I:"span",S:"ytp-ad-message-container"});this.B.Ja(this.Da);g.O(this,this.B);this.messageText=new cG(this.api,this.layoutId,this.interactionLoggingClientData,d,"ytp-ad-message-text");g.O(this,this.messageText);this.messageText.Ja(this.B.element);this.D=new g.gG(this.B,
400,!1,100,function(){f.hide()});
g.O(this,this.D);this.hide()};
ihb=function(a,b){a=a.api.getRootNode();g.yv(a,"ytp-ad-overlay-open",b);g.yv(a,"ytp-ad-overlay-closed",!b)};
jhb=function(a,b,c,d){FF.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.Da=this.Fa("ytp-ad-underlay-image-container");this.C=new WF(this.api,this.layoutId,this.interactionLoggingClientData,
this.ib,"ytp-ad-underlay-image");g.O(this,this.C);this.C.Ja(this.Da);this.ra=this.Fa("ytp-ad-underlay-headline-container");this.B=new cG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,"ytp-ad-underlay-headline");g.O(this,this.B);this.B.Ja(this.ra);this.Y=this.Fa("ytp-ad-underlay-description-container");this.D=new cG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,"ytp-ad-underlay-description");g.O(this,this.D);this.D.Ja(this.Y);this.G=this.Fa("ytp-ad-underlay-action-button-container");
this.j=this.Fa("ytp-ad-underlay-side-container");this.hide()};
khb=function(a){var b=g.tf("html5-video-player");b&&g.yv(b,"ytp-ad-display-override",a)};
R1=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
FF.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()};
lhb=function(a,b,c,d){FF.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()};
S1=function(a,b,c,d){var e=["ytp-ad-survey-submit-button"];e.push("ytp-ad-survey-submit-button-rounded");PF.call(this,a,b,c,d,e,"survey-submit")};
T1=function(a,b,c,d,e){FF.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.O(this,this.D);this.hide()};
U1=function(a,b,c,d,e,f){f=void 0===f?function(){}:f;
FF.call(this,a,{I:"div",S:"ytp-ad-survey-question",V:[{I:"div",Ka:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{I:"div",Ka:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{I:"div",Ka:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{I:"div",S:"ytp-ad-survey-question-background"}]},e,b,c,d);this.Da=f;this.D=null;this.B=[];this.j=null;this.Y=this.api.U().experiments.jb("a11y_h5_associate_survey_question");this.question=this.Fa("ytp-ad-survey-question");
this.Na=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()};
mhb=function(a,b){b=g.HF(b);g.Of(a.questionText,b);a.Y&&a.questionText.setAttribute("id",uF("survey-question-text"))};
nhb=function(a,b,c,d){d=new R1(a.api,a.layoutId,a.interactionLoggingClientData,a.ib,d,a.Da);d.Ja(a.answers);d.init(uF("survey-answer"),b,c);a.Y&&(b=a.questionText.getAttribute("id"),null!=b&&(null!==d.j?d.j.B.setAttribute("aria-describedby",b):d.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",b)));a.B.push(d)};
phb=function(a,b){if(b){var c=b.background;c&&g.V(c,ohb)&&(c=(c=g.V(c,ohb).image)&&VF(c)||"",g.ec(c)?g.eF(Error("Found ThumbnailDetails without valid image URL")):g.zs(a.Na,"backgroundImage","url("+c+")"));if(null==b.durationMilliseconds||void 0===b.durationMilliseconds||0===b.durationMilliseconds)g.dF(Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(b)));else{a.C=g.kb();a.j=new AG(a.api,b.durationMilliseconds);g.O(a,a.j);if(a.j&&b.instreamAdPlayerOverlay&&g.V(b.instreamAdPlayerOverlay,
EFa))try{var d=new T1(a.api,a.layoutId,a.interactionLoggingClientData,a.ib,a.j);d.Ja(a.playerOverlay);d.init(uF("survey-player-overlay"),g.V(b.instreamAdPlayerOverlay,EFa),a.macros);a.D=d;g.O(a,d);a.K_()}catch(e){g.dF(Error("ISAPOR had an error when initializing. Error: "+(e+" SurveyAdQuestionCommon: "+JSON.stringify(b))))}else g.dF(Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(b)));a.j&&b.durationMilliseconds&&0<b.durationMilliseconds?(b=new HG(a.api,a.j),b.Ja(a.playerOverlay),
g.O(a,b)):g.dF(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.dF(Error("addCommonComponents() needs to be called before starting countdown."))};
qhb=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()})};
rhb=function(a,b,c,d,e){U1.call(this,a,b,c,d,"survey-question-multi-select");this.ra=e;this.noneOfTheAbove=null;this.submitEndpoints=[];this.G=null;this.hide()};
shb=function(a,b,c){a.noneOfTheAbove=new lhb(a.api,a.layoutId,a.interactionLoggingClientData,a.ib);a.noneOfTheAbove.Ja(a.answers);a.noneOfTheAbove.init(uF("survey-none-of-the-above"),b,c)};
uhb=function(a){a.B.forEach(function(b){b.j.toggleButton(!1)});
thb(a,!0)};
thb=function(a,b){var c=a.D;a=vhb(a);b=void 0===b?!1:b;c.j&&(a?c.j.hide():c.j.show(),b&&c.j instanceof rG&&!c.j.D&&Rxa(c.j,!1));c.B&&(a?c.B.show():c.B.hide())};
vhb=function(a){return a.B.some(function(b){return b.j.isToggled()})||a.noneOfTheAbove.button.isToggled()};
V1=function(a,b,c,d,e){U1.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()};
W1=function(a,b,c,d){FF.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()};
yhb=function(a,b){var c=a.B[b],d;null==(d=a.C)||d.dispose();g.V(c,vM)?whb(a,g.V(c,vM),a.macros):g.V(c,uM)&&xhb(a,g.V(c,uM),a.macros);a.j=b};
whb=function(a,b,c){var d=new V1(a.api,a.layoutId,a.interactionLoggingClientData,a.ib,a.D.bind(a));d.Ja(a.G);d.init(uF("survey-question-single-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.O(a,d)};
xhb=function(a,b,c){var d=new rhb(a.api,a.layoutId,a.interactionLoggingClientData,a.ib,a.D.bind(a));d.Ja(a.G);d.init(uF("survey-question-multi-select"),b,c);a.api.U().L("supports_multi_step_on_desktop")?a.C=d:a.questions.push(d);g.O(a,d)};
X1=function(a,b,c,d){FF.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.gG(this,500,!1,300);g.O(this,this.transition)};
Ahb=function(a,b){b=b&&VF(b)||"";if(g.ec(b))g.eF(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=kla(d.style);b=new g.ke([c,Jba(zhb,b)].map(Hba).join(""),we);a.style.cssText=le(b)}};
Bhb=function(a){var b=g.tf("html5-video-player");b&&g.yv(b,"ytp-ad-display-override",a)};
Y1=function(a,b,c,d,e,f){f=void 0===f?0:f;dG.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.ra=f;this.B=0;this.D=-1;this.C=this.Fa("ytp-preview-ad__text");switch(this.ra){case 1:this.C.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.gG(this,400,!1,100,function(){h.hide()});
g.O(this,this.transition);this.hide()};
Z1=function(a,b,c,d){FF.call(this,a,{I:"img",S:"ytp-ad-avatar"},"ad-avatar",b,c,d);this.hide()};
Chb=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}};
$1=function(a,b,c,d){FF.call(this,a,{I:"button",S:"ytp-ad-button-vm"},"ad-button",b,c,d);this.buttonText=this.buttonIcon=null;this.hide()};
Ehb=function(a){this.content=a.content;if(a.commandRuns){a=g.u(a.commandRuns);for(var b=a.next();!b.done;b=a.next())b=b.value,this.loggingDirectives=g.V(b,Dhb),b.onTap&&(this.interaction={onTap:b.onTap})}};
a2=function(a,b,c,d){FF.call(this,a,{I:"div",S:"ad-simple-attributed-string"},"ad-simple-attributed-string",b,c,d);this.hide()};
Fhb=function(a,b,c,d,e){dG.call(this,a,{I:"div",Ka:["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 Z1(this.api,this.layoutId,this.interactionLoggingClientData,this.ib);g.O(this,this.adAvatar);Ef(this.element,this.adAvatar.element,0);this.headline=new a2(this.api,this.layoutId,this.interactionLoggingClientData,
this.ib);g.O(this,this.headline);this.headline.Ja(this.Fa("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new a2(this.api,this.layoutId,this.interactionLoggingClientData,this.ib);g.O(this,this.description);this.description.Ja(this.Fa("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new $1(this.api,this.layoutId,this.interactionLoggingClientData,
this.ib);g.O(this,this.adButton);this.adButton.Ja(this.element);this.hide()};
Ghb=function(a,b,c,d){FF.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.gG(this,500,!1,100,function(){e.hide()});
g.O(this,this.transition);this.j=new jG(this.element,15E3,5E3,.5,.5,!0);g.O(this,this.j);this.hide()};
Hhb=function(a,b,c,d,e){dG.call(this,a,{I:"div",S:"ytp-skip-ad"},"skip-ad",b,c,d,e);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.B=new Y1(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.j);g.O(this,this.B);this.B.Ja(this.element);this.C=new Ghb(this.api,this.layoutId,this.interactionLoggingClientData,this.ib);g.O(this,this.C);this.C.Ja(this.element);this.hide()};
b2=function(a,b,c,d){FF.call(this,a,{I:"div",S:"ytp-visit-advertiser-link"},"visit-advertiser-link",b,c,d);this.hide()};
c2=function(a,b,c,d,e){FF.call(this,a,{I:"div",S:"ytp-ad-player-overlay-layout",V:[{I:"div",S:"ytp-ad-player-overlay-layout__player-card-container"},{I:"div",S:"ytp-ad-player-overlay-layout__ad-info-container"},{I:"div",S:"ytp-ad-player-overlay-layout__skip-or-preview-container"}]},"player-overlay-layout",b,c,d);this.j=e;this.G=this.Fa("ytp-ad-player-overlay-layout__player-card-container");this.B=this.Fa("ytp-ad-player-overlay-layout__ad-info-container");this.D=this.Fa("ytp-ad-player-overlay-layout__skip-or-preview-container");
this.hide()};
d2=function(a,b,c){ZF.call(this,a);this.api=a;this.ib=b;this.B={};a=new g.W({I:"div",Ka:["video-ads","ytp-ad-module"]});g.O(this,a);GR&&g.uv(a.element,"ytp-ads-tiny-mode");this.G=new nE(a.element);g.O(this,this.G);g.cU(this.api,a.element,4);kGa(c)&&(c=new g.W({I:"div",Ka:["ytp-ad-underlay"]}),g.O(this,c),this.C=new nE(c.element),g.O(this,this.C),g.cU(this.api,c.element,0));g.O(this,kxa())};
Ihb=function(a,b){a=g.jd(a.B,b.id,null);null==a&&g.eF(Error("Component not found for element id: "+b.id));return a||null};
Jhb=function(a){g.qV.call(this,a);var b=this;this.B=null;this.created=!1;this.C=a.U().L("h5_use_refactored_get_ad_break")?new Jfb(this.player):new h1(this.player);this.D=function(){if(null!=b.B)return b.B;var d=new Qfb({Un:O1(b.j).Un,Nf:O1(b.j).Nf,J:b.player,Lk:O1(b.j).Lk,Oa:b.j.j.Oa,Tk:O1(b.j).Tk,qd:b.j.j.qd});b.B=d.g3;return b.B};
this.j=new Sgb(this.player,this,this.C,this.D);g.O(this,this.j);var c=a.U();!hJ(c)||g.OR(c)||TR(c)||(g.O(this,new d2(a,O1(this.j).ib,O1(this.j).Lk)),g.O(this,new Tgb(a)))};
Khb=function(a){a.created!==a.loaded&&kG("Created and loaded are out of sync")};
Nhb=function(a){g.qV.prototype.load.call(a);var b=O1(a.j).Lk;try{a.player.getRootNode().classList.add("ad-created")}catch(l){kG(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.jb("debug_ignore_ad_placements")&&e&&e.adPlacements||[]).map(function(l){return l.adPlacementRenderer}),h=((null==e?void 0:e.adSlots)||[]).map(function(l){return g.V(l,BM)});
e=e.playerConfig&&e.playerConfig.daiConfig&&e.playerConfig.daiConfig.enableDai||!1;c&&c.dc();b=Lhb(f,h,b,O1(a.j).Zv);f=c&&c.clientPlaybackNonce||"";c=c&&c.Xo||!1;h=1E3*a.player.getDuration(1);Mhb(a);a.j.j.Tw.fk(f,h,c,b.qK,b.wV,b.qK,e,d)};
Mhb=function(a){var b,c;if(c=!((null==(b=a.player.getVideoData(1))?0:b.Xo)||g.cB("SERVED_VIA_SPF_HISTORY")))b=a.player.U(),c=hJ(b)&&!g.gJ(b)&&"desktop-polymer"===b.playerStyle;c&&(a=pVa(a.player),a.addEventListener("updateKevlarOrC3Companion",bya),a.addEventListener("updateEngagementPanelAction",dya),a.addEventListener("changeEngagementPanelVisibility",fya),window.addEventListener("yt-navigate-start",hya))};
e2=function(a,b){b===a.ls&&(a.ls=void 0)};
Ohb=function(a){var b=O1(a.j).Rd,c=b.D().HO("SLOT_TYPE_PLAYER_BYTES",1);b=b.Ta.get().Me(1).clientPlaybackNonce;var d=!1;c=g.u(c);for(var e=c.next();!e.done;e=c.next()){e=e.value;var f="SLOT_TYPE_PLAYER_BYTES"===e.slotType&&e.slotEntryTrigger instanceof RL?e.slotEntryTrigger.Cu:void 0;f&&f===b&&(d&&kG("More than 1 preroll playerBytes slot detected",e),d=!0)}d||B1(O1(a.j).WA)};
Phb=function(a){if(q1(O1(a.j).Lk))return!0;var b="";a=g.u(O1(a.j).Tk.Yi.keys());for(var c=a.next();!c.done;c=a.next()){c=c.value;if("SLOT_TYPE_PLAYER_BYTES"===c.slotType&&"core"===c.Ya)return!0;b+=c.slotType+" "}.01>Math.random()&&kG("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1};
Qhb=function(a){a=g.u(O1(a.j).Tk.Yi.values());for(var b=a.next();!b.done;b=a.next())if("LAYOUT_TYPE_MEDIA_BREAK"===b.value.layoutType)return!0;return!1};
IFa=function(a,b,c,d,e){c=void 0===c?[]:c;d=void 0===d?"":d;e=void 0===e?"":e;var f=O1(a.j).Lk,h=a.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.dc();c=Lhb(b,c,f,O1(a.j).Zv);MFa(O1(a.j).Vd,d,c.qK,c.wV,b,e)};
Lhb=function(a,b,c,d){b={qK:[],wV:b};a=g.u(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&null!=e.renderer){var f=e.renderer;if(!c.J.U().L("html5_enable_vod_lasr_with_notify_pacf")){var h=void 0,l=void 0,m=void 0,n=void 0,p=d;g.V(null==(n=f.sandwichedLinearAdRenderer)?void 0:n.adVideoStart,OM)?(h=g.V(null==(m=f.sandwichedLinearAdRenderer)?void 0:m.adVideoStart,OM),h=fIa(h,p),g.jF(f.sandwichedLinearAdRenderer.adVideoStart,OM,h)):g.V(null==(l=f.linearAdSequenceRenderer)?void 0:l.adStart,OM)&&
(m=g.V(null==(h=f.linearAdSequenceRenderer)?void 0:h.adStart,OM),h=fIa(m,p),g.jF(f.linearAdSequenceRenderer.adStart,OM,h))}b.qK.push(e)}return b};
g.f2=function(a){if("undefined"!=typeof DOMParser){var b=new DOMParser;a=dma(a);return b.parseFromString(g.ne(a),"application/xml")}throw Error("Your browser does not support loading xml documents");};
g.g2=function(a){g.I.call(this);this.callback=a;this.j=new Iv(0,0,.4,0,.2,1,1,1);this.delay=new g.jv(this.next,window,this);g.O(this,this.delay)};
g.Rhb=function(a){var b=a.U();return b.wd&&!b.C&&g.IR(b)?a.Yc()?(a=a.Dn(),315<=Math.min(a.width,a.height)):!a.Kg():!1};
g.h2=function(a){g.W.call(this,{I:"div",S:"ytp-more-videos-view",X:{tabIndex:"-1"}});var b=this;this.api=a;this.B=!0;this.D=new g.vK(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",Ka:["ytp-button","ytp-previous"],X:{"aria-label":"\u00d6nceki \u00f6nerilen videolar\u0131 g\u00f6ster"},V:[g.JF()]});this.N=new g.g2(function(c){b.suggestions.element.scrollLeft=
-c});
this.next=new g.W({I:"button",Ka:["ytp-button","ytp-next"],X:{"aria-label":"Daha fazla \u00f6nerilen video g\u00f6ster"},V:[g.KF()]});g.O(this,this.D);this.K=a.U().D;g.O(this,this.title);this.title.Ja(this.element);this.suggestions=new g.W({I:"div",S:"ytp-suggestions"});g.O(this,this.suggestions);this.suggestions.Ja(this.element);g.O(this,this.previous);this.previous.Ja(this.element);this.previous.listen("click",this.l3,this);g.O(this,this.N);Shb(this);g.O(this,this.next);this.next.Ja(this.element);
this.next.listen("click",this.j3,this);this.D.T(this.api,"appresize",this.Tb);this.D.T(this.api,"fullscreentoggled",this.Uw);this.D.T(this.api,"videodatachange",this.onVideoDataChange);this.Tb(this.api.kb().getPlayerSize());this.onVideoDataChange()};
Shb=function(a){for(var b={Oz:0};16>b.Oz;b={Oz:b.Oz},++b.Oz){var c=new g.W({I:"a",S:"ytp-suggestion-link",X:{href:"{{link}}",target:a.api.U().Y,"aria-label":"{{aria_label}}"},V:[{I:"div",S:"ytp-suggestion-image"},{I:"div",S:"ytp-suggestion-overlay",X:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{I:"div",S:"ytp-suggestion-title",xa:"{{title}}"},{I:"div",S:"ytp-suggestion-author",xa:"{{author_and_views}}"},{I:"div",X:{"data-is-live":"{{is_live}}"},S:"ytp-suggestion-duration",
xa:"{{duration}}"}]}]});g.O(a,c);var d=c.Fa("ytp-suggestion-link");g.zs(d,"transitionDelay",b.Oz/20+"s");a.D.T(d,"click",function(e){return function(f){var h=e.Oz;if(a.B){var l=a.suggestionData[h],m=l.sessionData;a.K&&a.api.L("web_player_log_click_before_generating_ve_conversion_params")?(a.api.logClick(a.C[h].element),h=l.Nk(),l={},g.rVa(a.api,l,"emb_rel_pause"),h=g.Mn(h,l),g.uU(h,a.api,f)):g.tU(f,a.api,a.K,m||void 0)&&a.api.Io(l.videoId,m,l.playlistId)}else f.preventDefault(),document.activeElement.blur()}}(b));
c.Ja(a.suggestions.element);a.C.push(c);a.api.createServerVe(c.element,c)}};
Thb=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.i2=function(a){var b=a.api.Ah()?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.yv(a.element,"ytp-scroll-min",0<=b);g.yv(a.element,"ytp-scroll-max",b<=c)};
Vhb=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.Yc()?l.shortViewCount||"":l.shortViewCount?l.author+" \u2022 "+l.shortViewCount:l.author;m.element.style.display="";e=m.Fa("ytp-suggestion-link");g.zs(e,"display","inline-block");Uhb.test(l.title)&&(m.Fa("ytp-suggestion-title").dir="rtl");Uhb.test(f)&&(m.Fa("ytp-suggestion-author").dir="rtl");e=l.isLivePlayback?"Canl\u0131":l.lengthSeconds?g.CG(l.lengthSeconds):
"";var n=l.Nk(d.api.Yc());if(g.IR(h)&&!h.L("web_player_log_click_before_generating_ve_conversion_params")){var p={};g.KT(d.api,"addEmbedsConversionTrackingParams",[p]);n=g.Mn(n,g.eP(p,"emb_rel_pause"))}h.L("web_player_log_click_before_generating_ve_conversion_params")&&(h=(h=l.sessionData)&&h.itct)&&d.api.setTrackingParams(m.element,h);m.update({author_and_views:f,duration:e,link:n,title:l.title,aria_label:l.ariaLabel||l.title,is_live:l.isLivePlayback,aria_hidden:!!l.ariaLabel,blink_rendering_hack:g.tK||
g.HR?"will-change: opacity":void 0});f=m.Fa("ytp-suggestion-image");d=d.api.Yc()?l.Yg("hq2.jpg"):l.Yg();f.style.backgroundImage=d?"url("+d+")":""}if(16>b)for(;16>b;++b)c=a.C[b].Fa("ytp-suggestion-link"),g.zs(c,"display","none");g.i2(a)};
aaa=[];la="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
g.ha=caa(this);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;la(this,"description",{configurable:!0,writable:!0,value:h})}
if(a)return a;c.prototype.toString=function(){return this.j};
var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b});
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.ha[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&la(d.prototype,a,{configurable:!0,writable:!0,value:function(){return daa(baa(this))}})}return a});
var Whb="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)ra(d,e)&&(a[e]=d[e])}return a};
na("Object.assign",function(a){return a||Whb});
var faa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b},Xhb=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if("undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){void 0===e&&(e=c);
e=faa(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),Yhb;
if("function"==typeof Object.setPrototypeOf)Yhb=Object.setPrototypeOf;else{var Zhb;a:{var $hb={a:!0},aib={};try{aib.__proto__=$hb;Zhb=aib.a;break a}catch(a){}Zhb=!1}Yhb=Zhb?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ta=Yhb;
ua.prototype.Z=function(a){this.B=a};
ua.prototype.return=function(a){this.C={return:a};this.j=this.G};
ua.prototype.Ia=function(a){this.j=a};
na("Reflect",function(a){return a?a:{}});
na("Reflect.construct",function(){return Xhb});
na("Reflect.setPrototypeOf",function(a){return a?a:ta?function(b,c){try{return ta(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(null==this.j){this.j=[];var l=this;this.C(function(){l.G()})}this.j.push(h)};
var e=g.ha.setTimeout;c.prototype.C=function(h){e(h,0)};
c.prototype.G=function(){for(;this.j&&this.j.length;){var h=this.j;this.j=[];for(var l=0;l<h.length;++l){var m=h[l];h[l]=null;try{m()}catch(n){this.D(n)}}}this.j=null};
c.prototype.D=function(h){this.C(function(){throw h;})};
b.prototype.D=function(){function h(n){return function(p){m||(m=!0,n.call(l,p))}}
var l=this,m=!1;return{resolve:h(this.Ba),reject:h(this.G)}};
b.prototype.Ba=function(h){if(h===this)this.G(new TypeError("A Promise cannot resolve to itself"));else if(h instanceof b)this.Da(h);else{a:switch(typeof h){case "object":var l=null!=h;break a;case "function":l=!0;break a;default:l=!1}l?this.ra(h):this.K(h)}};
b.prototype.ra=function(h){var l=void 0;try{l=h.then}catch(m){this.G(m);return}"function"==typeof l?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(0!=this.j)throw Error("Cannot settle("+h+", "+l+"): Promise already settled in state"+this.j);this.j=h;this.C=l;2===this.j&&this.Ga();this.Y()};
b.prototype.Ga=function(){var h=this;e(function(){if(h.qa()){var l=g.ha.console;"undefined"!==typeof l&&l.error(h.C)}},1)};
b.prototype.qa=function(){if(this.N)return!1;var h=g.ha.CustomEvent,l=g.ha.Event,m=g.ha.dispatchEvent;if("undefined"===typeof m)return!0;"function"===typeof h?h=new h("unhandledrejection",{cancelable:!0}):"function"===typeof l?h=new l("unhandledrejection",{cancelable:!0}):(h=g.ha.document.createEvent("CustomEvent"),h.initCustomEvent("unhandledrejection",!1,!0,h));h.promise=this;h.reason=this.C;return m(h)};
b.prototype.Y=function(){if(null!=this.B){for(var h=0;h<this.B.length;++h)f.B(this.B[h]);this.B=null}};
var f=new c;b.prototype.Da=function(h){var l=this.D();h.CH(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"function"==typeof r?function(v){try{n(r(v))}catch(w){p(w)}}:t}
var n,p,q=new b(function(r,t){n=r;p=t});
this.CH(m(h,n),m(l,p));return q};
b.prototype.catch=function(h){return this.then(void 0,h)};
b.prototype.CH=function(h,l){function m(){switch(n.j){case 1:h(n.C);break;case 2:l(n.C);break;default:throw Error("Unexpected state: "+n.j);}}
var n=this;null==this.B?f.B(m):this.B.push(m);this.N=!0};
b.resolve=d;b.reject=function(h){return new b(function(l,m){m(h)})};
b.race=function(h){return new b(function(l,m){for(var n=g.u(h),p=n.next();!p.done;p=n.next())d(p.value).CH(l,m)})};
b.all=function(h){var l=g.u(h),m=l.next();return m.done?d([]):new b(function(n,p){function q(v){return function(w){r[v]=w;t--;0==t&&n(r)}}
var r=[],t=0;do r.push(void 0),t++,d(m.value).CH(q(r.length-1),p),m=l.next();while(!m.done)})};
return b});
na("Object.setPrototypeOf",function(a){return a||ta});
na("WeakMap",function(a){function b(m){this.j=(l+=Math.random()+1).toString();if(m){m=g.u(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}}
function c(){}
function d(m){var n=typeof m;return"object"===n&&null!==m||"function"===n}
function e(m){if(!ra(m,h)){var n=new c;la(m,h,{value:n})}}
function f(m){var n=Object[m];n&&(Object[m]=function(p){if(p instanceof c)return p;Object.isExtensible(p)&&e(p);return n(p)})}
if(function(){if(!a||!Object.seal)return!1;try{var m=Object.seal({}),n=Object.seal({}),p=new a([[m,2],[n,3]]);if(2!=p.get(m)||3!=p.get(n))return!1;p.delete(m);p.set(n,4);return!p.has(m)&&4==p.get(n)}catch(q){return!1}}())return a;
var h="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var l=0;b.prototype.set=function(m,n){if(!d(m))throw Error("Invalid WeakMap key");e(m);if(!ra(m,h))throw Error("WeakMap key fail: "+m);m[h][this.j]=n;return this};
b.prototype.get=function(m){return d(m)&&ra(m,h)?m[h][this.j]:void 0};
b.prototype.has=function(m){return d(m)&&ra(m,h)&&ra(m[h],this.j)};
b.prototype.delete=function(m){return d(m)&&ra(m,h)&&ra(m[h],this.j)?delete m[h][this.j]:!1};
return b});
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;"object"==n||"function"==n?f.has(m)?n=f.get(m):(n=""+ ++h,f.set(m,n)):n="p_"+m;var p=l[0][n];if(p&&ra(l[0],n))for(l=0;l<p.length;l++){var q=p[l];if(m!==m&&q.key!==q.key||m===q.key)return{id:n,list:p,index:l,entry:q}}return{id:n,list:p,index:-1,entry:void 0}}
function e(l){this[0]={};this[1]=b();this.size=0;if(l){l=g.u(l);for(var m;!(m=l.next()).done;)m=m.value,this.set(m[0],m[1])}}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var l=Object.seal({x:4}),m=new a(g.u([[l,"s"]]));if("s"!=m.get(l)||1!=m.size||m.get({x:4})||m.set({x:4},"t")!=m||2!=m.size)return!1;var n=m.entries(),p=n.next();if(p.done||p.value[0]!=l||"s"!=p.value[1])return!1;p=n.next();return p.done||4!=p.value[0].x||"t"!=p.value[1]||!n.next().done?!1:!0}catch(q){return!1}}())return a;
var f=new WeakMap;e.prototype.set=function(l,m){l=0===l?0:l;var n=d(this,l);n.list||(n.list=this[0][n.id]=[]);n.entry?n.entry.value=m:(n.entry={next:this[1],previous:this[1].previous,head:this[1],key:l,value:m},n.list.push(n.entry),this[1].previous.next=n.entry,this[1].previous=n.entry,this.size++);return this};
e.prototype.delete=function(l){l=d(this,l);return l.entry&&l.list?(l.list.splice(l.index,1),l.list.length||delete this[0][l.id],l.entry.previous.next=l.entry.next,l.entry.next.previous=l.entry.previous,l.entry.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this[0]={};this[1]=this[1].previous=b();this.size=0};
e.prototype.has=function(l){return!!d(this,l).entry};
e.prototype.get=function(l){return(l=d(this,l).entry)&&l.value};
e.prototype.entries=function(){return c(this,function(l){return[l.key,l.value]})};
e.prototype.keys=function(){return c(this,function(l){return l.key})};
e.prototype.values=function(){return c(this,function(l){return l.value})};
e.prototype.forEach=function(l,m){for(var n=this.entries(),p;!(p=n.next()).done;)p=p.value,l.call(m,p[1],p[0],this)};
e.prototype[Symbol.iterator]=e.prototype.entries;var h=0;return e});
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).BL}});
na("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=Ma(this,b,"endsWith");b+="";void 0===c&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;0<e&&0<c;)if(d[--c]!=b[--e])return!1;return 0>=e}});
na("Set",function(a){function b(c){this.j=new Map;if(c){c=g.u(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.j.size}
if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(g.u([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(h){return!1}}())return a;
b.prototype.add=function(c){c=0===c?0:c;this.j.set(c,c);this.size=this.j.size;return this};
b.prototype.delete=function(c){c=this.j.delete(c);this.size=this.j.size;return c};
b.prototype.clear=function(){this.j.clear();this.size=0};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.entries=function(){return this.j.entries()};
b.prototype.values=function(){return this.j.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.j.forEach(function(f){return c.call(d,f,f,e)})};
return b});
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"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}});
na("String.prototype.repeat",function(a){return a?a:function(b){var c=Ma(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
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)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-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)ra(b,d)&&c.push(b[d]);return c}});
na("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||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(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});
na("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ma(this,b,"includes").indexOf(b,c||0)}});
na("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});
na("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(l){return l};
var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var h=0;!(f=b.next()).done;)e.push(c.call(d,f.value,h++))}else for(f=b.length,h=0;h<f;h++)e.push(c.call(d,b[h],h));return e}});
na("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
na("Int8Array.prototype.fill",Oa);na("Uint8Array.prototype.fill",Oa);na("Uint8ClampedArray.prototype.fill",Oa);na("Int16Array.prototype.fill",Oa);na("Uint16Array.prototype.fill",Oa);na("Int32Array.prototype.fill",Oa);na("Uint32Array.prototype.fill",Oa);na("Float32Array.prototype.fill",Oa);na("Float64Array.prototype.fill",Oa);na("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)ra(b,d)&&c.push([d,b[d]]);return c}});
na("globalThis",function(a){return a||g.ha});
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("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("String.prototype.padStart",function(a){return a?a:function(b,c){var d=Ma(this,null,"padStart");b-=d.length;c=void 0!==c?String(c):" ";return(0<b&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
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 0===b||isNaN(b)?b:0<b?1:-1}});
na("WeakSet",function(a){function b(c){this.j=new WeakMap;if(c){c=g.u(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}
if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;
b.prototype.add=function(c){this.j.set(c,!0);return this};
b.prototype.has=function(c){return this.j.has(c)};
b.prototype.delete=function(c){return this.j.delete(c)};
return b});
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 Infinity===c||-Infinity===c?c:c|0}
return a?a:function(c,d,e){var f=this.length;c=b(c);d=b(d);e=void 0===e?f:b(e);c=0>c?Math.max(f+c,0):Math.min(c,f);d=0>d?Math.max(f+d,0):Math.min(d,f);e=0>e?Math.max(f+e,0):Math.min(e,f);if(c<d)for(;d<e;)d in this?this[c++]=this[d++]:(delete this[c++],d++);else for(e=Math.min(e,f+d-c),c+=e-d;e>d;)--e in this?this[--c]=this[e]:delete this[--c];return this}});
na("Int8Array.prototype.copyWithin",Pa);na("Uint8Array.prototype.copyWithin",Pa);na("Uint8ClampedArray.prototype.copyWithin",Pa);na("Int16Array.prototype.copyWithin",Pa);na("Uint16Array.prototype.copyWithin",Pa);na("Int32Array.prototype.copyWithin",Pa);na("Uint32Array.prototype.copyWithin",Pa);na("Float32Array.prototype.copyWithin",Pa);na("Float64Array.prototype.copyWithin",Pa);na("Array.prototype.findLastIndex",function(a){return a?a:function(b,c){return laa(this,b,c).i}});
na("Int8Array.prototype.findLastIndex",Sa);na("Uint8Array.prototype.findLastIndex",Sa);na("Uint8ClampedArray.prototype.findLastIndex",Sa);na("Int16Array.prototype.findLastIndex",Sa);na("Uint16Array.prototype.findLastIndex",Sa);na("Int32Array.prototype.findLastIndex",Sa);na("Uint32Array.prototype.findLastIndex",Sa);na("Float32Array.prototype.findLastIndex",Sa);na("Float64Array.prototype.findLastIndex",Sa);
na("Math.clz32",function(a){return a?a:function(b){b=Number(b)>>>0;if(0===b)return 32;var c=0;0===(b&4294901760)&&(b<<=16,c+=16);0===(b&4278190080)&&(b<<=8,c+=8);0===(b&4026531840)&&(b<<=4,c+=4);0===(b&3221225472)&&(b<<=2,c+=2);0===(b&2147483648)&&c++;return c}});
na("Number.parseInt",function(a){return a||parseInt});
na("String.raw",function(a){return a?a:function(b,c){if(null==b)throw new TypeError("Cannot convert undefined or null to object");for(var d=b.raw,e=d.length,f="",h=0;h<e;++h)f+=d[h],h+1<e&&h+1<arguments.length&&(f+=String(arguments[h+1]));return f}});var Sn,db,maa;Sn=Sn||{};g.Ta=this||self;db="closure_uid_"+(1E9*Math.random()>>>0);maa=0;g.k=sb.prototype;g.k.L5=function(a){var b=g.Ia.apply(1,arguments),c=this.mO(b);c?c.push(new paa(a)):this.h0(a,b)};
g.k.h0=function(a){this.j.set(this.lU(g.Ia.apply(1,arguments)),[new paa(a)])};
g.k.mO=function(){var a=this.lU(g.Ia.apply(0,arguments));return this.j.has(a)?this.j.get(a):void 0};
g.k.s7=function(){var a=this.mO(g.Ia.apply(0,arguments));return a&&a.length?a[0]:void 0};
g.k.clear=function(){this.j.clear()};
g.k.lU=function(){var a=g.Ia.apply(0,arguments);return a?a.join(","):"key"};g.y(tb,sb);tb.prototype.B=function(a){var b=g.Ia.apply(1,arguments),c=0,d=this.s7(b);d&&(c=d.j);this.h0(c+a,b)};g.y(ub,sb);ub.prototype.rg=function(a){this.L5(a,g.Ia.apply(1,arguments))};g.k=g.I.prototype;g.k.Yx=!1;g.k.Ma=function(){return this.Yx};
g.k.dispose=function(){this.Yx||(this.Yx=!0,this.va())};
g.k.addOnDisposeCallback=function(a,b){this.Yx?void 0!==b?a.call(b):a():(this.fn||(this.fn=[]),this.fn.push(void 0!==b?(0,g.gb)(a,b):a))};
g.k.va=function(){if(this.fn)for(;this.fn.length;)this.fn.shift()()};g.lb(xb,Error);xb.prototype.name="CustomError";var Sba;g.lb(yb,xb);yb.prototype.name="AssertionError";g.zb.prototype.stopPropagation=function(){this.B=!0};
g.zb.prototype.preventDefault=function(){this.defaultPrevented=!0};var saa,Tr,Ps;saa=Array.prototype.indexOf?function(a,b){return Array.prototype.indexOf.call(a,b,void 0)}:function(a,b){if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.indexOf(b,0);
for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
g.bib=Array.prototype.lastIndexOf?function(a,b){return Array.prototype.lastIndexOf.call(a,b,a.length-1)}:function(a,b){var c=a.length-1;
0>c&&(c=Math.max(0,a.length+c));if("string"===typeof a)return"string"!==typeof b||1!=b.length?-1:a.lastIndexOf(b,c);for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.$b=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.Ht=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h="string"===typeof a?a.split(""):a,l=0;l<d;l++)if(l in h){var m=h[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.Rr=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f="string"===typeof a?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));
return e};
Tr=Array.prototype.reduce?function(a,b,c){return Array.prototype.reduce.call(a,b,c)}:function(a,b,c){var d=c;
(0,g.$b)(a,function(e,f){d=b.call(void 0,d,e,f,a)});
return d};
Ps=Array.prototype.some?function(a,b){return Array.prototype.some.call(a,b,void 0)}:function(a,b){for(var c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;
return!1};
g.Sr=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e="string"===typeof a?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};var cc={};var iba=function(){if(!g.Ta.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{var c=function(){};
g.Ta.addEventListener("test",c,b);g.Ta.removeEventListener("test",c,b)}catch(d){}return a}();var cib=Ya(1,!0),rc=Ya(610401301,!1);Ya(899588437,!1);var Kea=Ya(188588736,!1);Ya(2147483644,!1);Ya(2147483645,!1);Ya(2147483646,cib);Ya(2147483647,!0);var tc=!!g.Xa("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var kc=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Haa=/&/g,Iaa=/</g,Jaa=/>/g,Kaa=/"/g,Laa=/'/g,Maa=/\x00/g,Gaa=/[\x00&<>"']/;var wc,dib=g.Ta.navigator;wc=dib?dib.userAgentData||null:null;Kc[" "]=function(){};var As,PY,lfb,eib,fib,gib,FR,GR,hib;g.HR=Ac();g.Bs=Naa();g.qD=yc("Edge");g.bS=g.qD||g.Bs;As=yc("Gecko")&&!(jc(g.pc(),"WebKit")&&!yc("Edge"))&&!(yc("Trident")||yc("MSIE"))&&!yc("Edge");g.Rc=jc(g.pc(),"WebKit")&&!yc("Edge");PY=Jc();lfb=Uaa();g.UB=Taa();eib=Gc();fib=yc("iPad");gib=yc("iPod");FR=Ic();GR=jc(g.pc(),"KaiOS");
a:{var iib="",jib=function(){var a=g.pc();if(As)return/rv:([^\);]+)(\)|;)/.exec(a);if(g.qD)return/Edge\/([\d\.]+)/.exec(a);if(g.Bs)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.Rc)return/WebKit\/(\S+)/.exec(a);if(g.HR)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
jib&&(iib=jib?jib[1]:"");if(g.Bs){var j2,kib=g.Ta.document;j2=kib?kib.documentMode:void 0;if(null!=j2&&j2>parseFloat(iib)){hib=String(j2);break a}}hib=iib}var Xaa=hib,Vaa={};var oZa=Yaa("AnimationEnd"),QVa=Yaa("TransitionEnd");g.lb(Sc,g.zb);var lib={2:"touch",3:"pen",4:"mouse"};
Sc.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)?As&&(Lc(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;d?(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=void 0!==a.clientX?
a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:lib[a.pointerType]||"";this.state=a.state;this.timeStamp=a.timeStamp;this.j=
a;a.defaultPrevented&&Sc.Of.preventDefault.call(this)};
Sc.prototype.stopPropagation=function(){Sc.Of.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
Sc.prototype.preventDefault=function(){Sc.Of.preventDefault.call(this);var a=this.j;a.preventDefault?a.preventDefault():a.returnValue=!1};var Zaa="closure_listenable_"+(1E6*Math.random()|0);var $aa=0;var fba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");g.k=pd.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=rd(a,b,d,e);-1<h?(b=a[h],c||(b.BH=!1)):(b=new aba(b,this.src,f,!!d,e),b.BH=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=rd(e,b,c,d);return-1<b?(Uc(e[b]),g.Gb(e,b),0==e.length&&(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,Uc(d[e]);delete this.listeners[c];this.j--}return b};
g.k.OD=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=rd(a,b,c,d));return-1<e?a[e]:null};
g.k.hasListener=function(a,b){var c=void 0!==a,d=c?a.toString():"",e=void 0!==b;return g.ad(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 zd="closure_lm_"+(1E6*Math.random()|0),Bd={},kba=0,Cd="__closure_events_fn_"+(1E9*Math.random()>>>0);g.lb(g.Dd,g.I);g.Dd.prototype[Zaa]=!0;g.k=g.Dd.prototype;g.k.addEventListener=function(a,b,c,d){g.td(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.cR;if(b){var c=[];for(var d=1;b;b=b.cR)c.push(b),++d}b=this.F5;d=a.type||a;if("string"===typeof a)a=new g.zb(a,b);else if(a instanceof g.zb)a.target=a.target||b;else{var e=a;a=new g.zb(d,b);g.od(a,e)}e=!0;if(c)for(var f=c.length-1;!a.B&&0<=f;f--){var h=a.currentTarget=c[f];e=Ed(h,d,!0,a)&&e}a.B||(h=a.currentTarget=b,e=Ed(h,d,!0,a)&&e,a.B||(e=Ed(h,d,!1,a)&&e));if(c)for(f=0;!a.B&&f<c.length;f++)h=a.currentTarget=c[f],e=Ed(h,d,!1,a)&&e;return e};
g.k.va=function(){g.Dd.Of.va.call(this);this.fm&&this.fm.removeAll(void 0);this.cR=null};
g.k.listen=function(a,b,c,d){return this.fm.add(String(a),b,!1,c,d)};
g.k.uJ=function(a,b,c,d){return this.fm.add(String(a),b,!0,c,d)};
g.k.Pc=function(a,b,c,d){this.fm.remove(String(a),b,c,d)};
g.k.OD=function(a,b,c,d){return this.fm.OD(String(a),b,c,d)};
g.k.hasListener=function(a,b){return this.fm.hasListener(void 0!==a?String(a):void 0,b)};Fd.prototype.get=function(){if(0<this.B){this.B--;var a=this.j;this.j=a.next;a.next=null}else a=this.C();return a};var mib={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={};Rd("");var Sd;g.Wd.prototype.toString=function(){return this.A_+""};
var sba={};g.Zd.prototype.toString=function(){return this.C_};
g.ee=new g.Zd("about:invalid#zClosurez");var a_a=de("tel"),ZZa=de("sms"),tba=[de("data"),de("http"),de("https"),de("mailto"),de("ftp"),new ce(function(a){return/^[^:]*([/?#]|$)/.test(a)})],uba=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var we={};g.ke.prototype.toString=function(){return this.z_.toString()};
var fla=new g.ke("",we),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.me.prototype.toString=function(){return this.y_.toString()};
var nib=/^[a-zA-Z0-9-]+$/,oib={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},pib={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.me(g.Ta.trustedTypes&&g.Ta.trustedTypes.emptyHTML||"",Fba);te.prototype.toString=function(){return this.j};ue.prototype.toString=function(){return this.B_.toString()};var qib=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.ne(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*="number"===typeof b?b:a;return this};g.k=g.Ie.prototype;g.k.clone=function(){return new g.Ie(this.width,this.height)};
g.k.area=function(){return this.width*this.height};
g.k.aspectRatio=function(){return this.width/this.height};
g.k.isEmpty=function(){return!this.area()};
g.k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){this.width*=a;this.height*="number"===typeof b?b:a;return this};g.rib=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};var Tba={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=af.prototype;g.k.Ib=function(a){return kf(this.j,a)};
g.k.getElementsByTagName=function(a,b){return(b||this.j).getElementsByTagName(String(a))};
g.k.Fa=function(a){return g.tf(a,this.j)};
g.k.setProperties=uf;g.k.createElement=function(a){return wf(this.j,a)};
g.k.appendChild=g.Af;g.k.append=function(a,b){Xba(bf(a),a,arguments,1)};
g.k.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.k.removeNode=g.Ff;g.k.getChildren=function(a){return void 0!=a.children?a.children:Array.prototype.filter.call(a.childNodes,function(b){return 1==b.nodeType})};
g.k.contains=g.Nf;var Rf;Vf.prototype.add=function(a,b){var c=dca.get();c.set(a,b);this.B?this.B.next=c:this.j=c;this.B=c};
Vf.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 dca=new Fd(function(){return new Wf},function(a){return a.reset()});
Wf.prototype.set=function(a,b){this.Ns=a;this.scope=b;this.next=null};
Wf.prototype.reset=function(){this.next=this.scope=this.Ns=null};var Xf,eg=!1,bca=new Vf;eca.prototype.reset=function(){this.context=this.B=this.C=this.j=null;this.D=!1};
var fca=new Fd(function(){return new eca},function(a){a.reset()});
g.hg.prototype.then=function(a,b,c){return pca(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)};
g.hg.prototype.$goog_Thenable=!0;g.k=g.hg.prototype;g.k.wl=function(a,b){return pca(this,null,a,b)};
g.k.catch=g.hg.prototype.wl;g.k.cancel=function(a){if(0==this.j){var b=new og(a);g.fg(function(){lca(this,b)},this)}};
g.k.Dda=function(a){this.j=0;gg(this,2,a)};
g.k.Eda=function(a){this.j=0;gg(this,3,a)};
g.k.c7=function(){for(var a;a=mca(this);)nca(this,a,this.j,this.N);this.K=!1};
var tca=Tf;g.lb(og,xb);og.prototype.name="cancel";g.lb(g.Ag,g.Dd);g.k=g.Ag.prototype;g.k.enabled=!1;g.k.fd=null;g.k.setInterval=function(a){this.Si=a;this.fd&&this.enabled?(this.stop(),this.start()):this.fd&&this.stop()};
g.k.oda=function(){if(this.enabled){var a=g.kb()-this.GY;0<a&&a<.8*this.Si?this.fd=this.DG.setTimeout(this.NV,this.Si-a):(this.fd&&(this.DG.clearTimeout(this.fd),this.fd=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
g.k.start=function(){this.enabled=!0;this.fd||(this.fd=this.DG.setTimeout(this.NV,this.Si),this.GY=g.kb())};
g.k.stop=function(){this.enabled=!1;this.fd&&(this.DG.clearTimeout(this.fd),this.fd=null)};
g.k.va=function(){g.Ag.Of.va.call(this);this.stop();delete this.DG};g.y(g.Dg,g.I);g.k=g.Dg.prototype;g.k.sendIsolatedPayload=function(a){this.G=a;this.C=1};
g.k.Im=function(){var a=this.B.values();a=[].concat(g.qa(a)).filter(function(b){return b.j.size});
a.length&&this.N.flush(a,this.G);wca(a);this.D=0;this.j.enabled&&this.j.stop()};
g.k.Nh=function(a){var b=g.Ia.apply(1,arguments);this.B.has(a)||this.B.set(a,new tb(a,b))};
g.k.ev=function(a){var b=g.Ia.apply(1,arguments);this.B.has(a)||this.B.set(a,new ub(a,b))};
g.k.Ji=function(a){this.kM(a,1,g.Ia.apply(1,arguments))};
g.k.kM=function(a,b){var c=g.Ia.apply(2,arguments),d=vca(this,a);d&&d instanceof tb&&(d.B(b,c),uca(this))};
g.k.rg=function(a,b){var c=g.Ia.apply(2,arguments),d=vca(this,a);d&&d instanceof ub&&(d.rg(b,c),uca(this))};zca.prototype.rg=function(a,b,c){this.j.rg("/client_streamz/bg/fil",a,b,c)};
Bca.prototype.rg=function(a,b,c){this.j.rg("/client_streamz/bg/fcd",a,b,c)};
Dca.prototype.rg=function(a,b,c){this.j.rg("/client_streamz/bg/fsl",a,b,c)};
Eca.prototype.rg=function(a,b,c,d,e){this.j.rg("/client_streamz/bg/wrl",a,b,c,d,e)};
Fca.prototype.rg=function(a,b,c){this.j.rg("/client_streamz/bg/el",a,b,c)};
Gca.prototype.B=function(a,b){this.j.Ji("/client_streamz/bg/cec",a,b)};
Hca.prototype.B=function(a,b){this.j.Ji("/client_streamz/bg/po/csc",a,b)};
Ica.prototype.B=function(a,b){this.j.Ji("/client_streamz/bg/po/ctav",a,b)};
Jca.prototype.B=function(a,b){this.j.Ji("/client_streamz/bg/po/cwsc",a,b)};Kca.prototype.rg=function(a,b,c,d,e){this.j.rg("/client_streamz/po/w/rl",a,b,c,d,e)};
Lca.prototype.rg=function(a,b,c){this.j.rg("/client_streamz/po/w/el",a,b,c)};
Mca.prototype.B=function(a,b){this.j.Ji("/client_streamz/po/w/cec",a,b)};
Nca.prototype.B=function(a,b){this.j.Ji("/client_streamz/po/w/csc",a,b)};
Oca.prototype.B=function(a,b){this.j.Ji("/client_streamz/po/w/ctav",a,b)};
Pca.prototype.B=function(a,b){this.j.Ji("/client_streamz/po/w/cwsc",a,b)};var Ih=void 0,Hh,wda="undefined"!==typeof TextDecoder,Tca,Sca="function"===typeof String.prototype.V8,Rca="undefined"!==typeof TextEncoder;var SB,TB;g.jR=Cc();SB=Gc()||yc("iPod");TB=yc("iPad");g.aSa=Paa();g.tK=Dc();g.VC=Ec()&&!Ic();var Yca={},Jg=null,Zca=As||g.Rc||"function"==typeof g.Ta.btoa;var hda="undefined"!==typeof Uint8Array,bda=!g.Bs&&"function"===typeof btoa,fda=/[-_.]/g,dda={"-":"+",_:"/",".":"="},ida,Mg={};var kda;Ng.prototype.isEmpty=function(){return null==this.j};
Ng.prototype.sizeBytes=function(){var a=Pg(this);return a?a.length:0};var sda="function"===typeof Uint8Array.prototype.slice,eh=0,fh=0,dfa;jh.prototype.init=function(a,b,c,d){d=void 0===d?{}:d;this.nH=void 0===d.nH?!1:d.nH;a&&(a=bh(a),this.B=a.buffer,this.G=a.jw,this.D=b||0,this.C=void 0!==c?this.D+c:this.B.length,this.j=this.D)};
jh.prototype.free=function(){this.clear();100>Dh.length&&Dh.push(this)};
jh.prototype.clear=function(){this.B=null;this.G=!1;this.j=this.C=this.D=0;this.nH=!1};
jh.prototype.reset=function(){this.j=this.D};
var Dh=[];Eh.prototype.free=function(){this.j.clear();this.B=this.D=-1;100>k2.length&&k2.push(this)};
Eh.prototype.reset=function(){this.j.reset();this.C=this.j.j;this.B=this.D=-1};
var k2=[];var zda,Cda;Kh.prototype.length=function(){return this.j.length};
Kh.prototype.end=function(){var a=this.j;this.j=[];return a};var l2=Sh(),bea=Sh("0di"),Dj=Sh("2ex"),oea=Sh("0dg");Math.max.apply(Math,g.qa(Object.values({bKa:1,VJa:2,MJa:4,IZa:8,HZa:16,MVa:32,jua:64,peb:128,IGa:256,FGa:512,WJa:1024,jGa:2048,ebb:4096,kGa:8192})));var Uh=l2?function(a,b){a[l2]|=b}:function(a,b){void 0!==a.Jn?a.Jn|=b:Object.defineProperties(a,{Jn:{value:b,
configurable:!0,writable:!0,enumerable:!1}})},Ij=l2?function(a,b){a[l2]&=~b}:function(a,b){void 0!==a.Jn&&(a.Jn&=~b)},mi=l2?function(a){return a[l2]|0}:function(a){return a.Jn|0},zj=l2?function(a){return a[l2]}:function(a){return a.Jn},Xh=l2?function(a,b){a[l2]=b;
return a}:function(a,b){void 0!==a.Jn?a.Jn=b:Object.defineProperties(a,{Jn:{value:b,
configurable:!0,writable:!0,enumerable:!1}});return a};var bj={},Kda={},sib,Hj,tib=[];Xh(tib,55);Hj=Object.freeze(tib);pi.prototype.next=function(){if(this.C<this.j.length){var a=this.j[this.C++];return{done:!1,value:this.B?this.B.call(this.D,a):a}}return{done:!0,value:void 0}};
pi.prototype[Symbol.iterator]=function(){return new pi(this.j,this.B,this.D)};
var qi,Qea;Object.freeze(new function(){});
Object.freeze(new function(){});var rea;var Uda=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var dj,fj,cea;var uib=function(){try{var a=function(){return Xhb(Map,[],this.constructor)};
g.y(a,Map);Kc(new a);return!1}catch(b){return!0}}();
g.k=hj.prototype;g.k.get=function(a){return this.j.get(a)};
g.k.set=function(a,b){this.j.set(a,b);this.size=this.j.size;return this};
g.k.delete=function(a){a=this.j.delete(a);this.size=this.j.size;return a};
g.k.clear=function(){this.j.clear();this.size=this.j.size};
g.k.has=function(a){return this.j.has(a)};
g.k.entries=function(){return this.j.entries()};
g.k.keys=function(){return this.j.keys()};
g.k.values=function(){return this.j.values()};
g.k.forEach=function(a,b){return this.j.forEach(a,b)};
hj.prototype[Symbol.iterator]=function(){return this.entries()};
var ij=function(){function a(){return Xhb(Map,[],this.constructor)}
if(uib)return Object.setPrototypeOf(hj.prototype,Map.prototype),Object.defineProperties(hj.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),hj;g.y(a,Map);return a}();
g.y(jj,ij);g.k=jj.prototype;g.k.getLength=function(){return this.size};
g.k.clear=function(){kj(this);ij.prototype.clear.call(this)};
g.k.delete=function(a){kj(this);return ij.prototype.delete.call(this,this.yE(a,!0,!1))};
g.k.del=function(a){return this.delete(a)};
g.k.entries=function(){var a=Array.from(ij.prototype.keys.call(this));return new pi(a,iea,this)};
g.k.keys=function(){return ij.prototype.keys.call(this)};
g.k.values=function(){var a=Array.from(ij.prototype.keys.call(this));return new pi(a,jj.prototype.get,this)};
g.k.forEach=function(a,b){var c=this;ij.prototype.forEach.call(this,function(d,e){a.call(b,c.get(e),e,c)})};
g.k.set=function(a,b){kj(this);a=this.yE(a,!0,!1);return null==a?this:null==b?(ij.prototype.delete.call(this,a),this):ij.prototype.set.call(this,a,this.WS(b,!0,!0,this.CL,!1,this.pH))};
g.k.has=function(a){return ij.prototype.has.call(this,this.yE(a,!1,!1))};
g.k.get=function(a){a=this.yE(a,!1,!1);var b=ij.prototype.get.call(this,a);if(void 0!==b){var c=this.CL;return c?(c=this.WS(b,!1,!0,c,this.bnb,this.pH),c!==b&&ij.prototype.set.call(this,a,c),c):b}};
jj.prototype[Symbol.iterator]=function(){return this.entries()};
jj.prototype.toJSON=void 0;jj.prototype.n9=Kda;g.k=T.prototype;g.k.toJSON=function(){return sib?Mk(this,this.ea,!1):Mk(this,mj(this.ea,mea,void 0,void 0,!1),!0)};
g.k.yk=function(){sib=!0;try{return JSON.stringify(this.toJSON(),kea)}finally{sib=!1}};
g.k.clone=function(){var a=this.ea;return ej(this.constructor,Aj(a,zj(a),!1))};
g.k.jw=function(){return!!(mi(this.ea)&2)};
g.k.HJ=bj;g.k.toString=function(){return Mk(this,this.ea,!1).toString()};var Nea=Symbol(),Pk,Qk,tl=Symbol(),Vea=Symbol(),wl=Symbol(),xl=Symbol(),vib=yl(function(a,b,c){if(1!==a.B)return!1;Al(b,c,ph(a.j));return!0},Bl),wib=yl(function(a,b,c){if(1!==a.B)return!1;
a=ph(a.j);Al(b,c,0===a?void 0:a);return!0},Bl),xib=yl(function(a,b,c,d){if(1!==a.B)return!1;
Uj(b,c,d,ph(a.j));return!0},Bl),yib=yl(function(a,b,c){if(0!==a.B)return!1;
Al(b,c,lh(a.j));return!0},Cl),zib=yl(function(a,b,c){if(0!==a.B)return!1;
a=lh(a.j);Al(b,c,0===a?void 0:a);return!0},Cl),Aib=yl(function(a,b,c,d){if(0!==a.B)return!1;
Uj(b,c,d,lh(a.j));return!0},Cl),Bib=yl(function(a,b,c){if(0!==a.B)return!1;
Al(b,c,mh(a.j));return!0},Dl),Cib=yl(function(a,b,c){if(0!==a.B)return!1;
a=mh(a.j);Al(b,c,0===a?void 0:a);return!0},Dl),Dib=yl(function(a,b,c,d){if(0!==a.B)return!1;
Uj(b,c,d,mh(a.j));return!0},Dl),Eib=yl(function(a,b,c){if(1!==a.B)return!1;
Al(b,c,oh(a.j));return!0},function(a,b,c){Hda(a,c,$da(b))}),Fib=zl(function(a,b,c){if(1!==a.B&&2!==a.B)return!1;
b=Jj(b,zj(b),c,2,!1);if(2==a.B)for(c=mh(a.j)>>>0,c=a.j.j+c;a.j.j<c;)b.push(oh(a.j));else b.push(oh(a.j));return!0},function(a,b,c){b=Nk($da,b,!1);
if(null!=b)for(var d=0;d<b.length;d++)Hda(a,c,b[d])}),Gib=yl(function(a,b,c){if(0!==a.B)return!1;
Al(b,c,qh(a.j));return!0},efa),Hib=yl(function(a,b,c,d){if(0!==a.B)return!1;
Uj(b,c,d,qh(a.j));return!0},efa),m2=yl(function(a,b,c){if(2!==a.B)return!1;
Al(b,c,Jh(a));return!0},ffa),Iib=zl(function(a,b,c){if(2!==a.B)return!1;
a=Jh(a);Qj(b,c,yea,a);return!0},function(a,b,c){b=Nk($i,b,!0);
if(null!=b)for(var d=0;d<b.length;d++){var e=a,f=c,h=b[d];null!=h&&Ph(e,f,Uca(h))}}),Jib=yl(function(a,b,c,d){if(2!==a.B)return!1;
Uj(b,c,d,Jh(a));return!0},ffa),Lea=new Qh(function(a,b,c,d,e){if(2!==a.B)return!1;
Gh(a,pk(b,d,c,!0),e);return!0},El,!1,!0),Uea=new Qh(function(a,b,c,d,e){if(2!==a.B)return!1;
Gh(a,pk(b,d,c),e);return!0},El,!1,!0),n2;
n2=new Qh(function(a,b,c,d,e){if(2!==a.B)return!1;d=P(void 0,d[0],d[1]);var f=zj(b);oi(f);var h=Jj(b,f,c,3);f=zj(b);mi(h)&4&&(h=Rh(h),Xh(h,(mi(h)|1)&-2079),Ej(b,f,c,h));h.push(d);Gh(a,d,e);return!0},function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)El(a,b[f],c,d,e)},!0,!0);
var o2=new Qh(function(a,b,c,d,e,f){if(2!==a.B)return!1;var h=zj(b);oi(h);(f=Sj(b,h,f))&&c!==f&&Ej(b,h,f);b=pk(b,d,c);Gh(a,b,e);return!0},El,!1,!0),Kib=yl(function(a,b,c){if(2!==a.B)return!1;
Al(b,c,xda(a));return!0},function(a,b,c){b=aea(b);
null!=b&&Ph(a,c,bh(b).buffer)}),Lib=zl(function(a,b,c){if(2!==a.B)return!1;
a=xda(a);Qj(b,c,yea,a);return!0},function(a,b,c){b=Nk(aea,b,!1);
if(null!=b)for(var d=0;d<b.length;d++){var e=a,f=c,h=b[d];null!=h&&Ph(e,f,bh(h).buffer)}}),p2=yl(function(a,b,c){if(0!==a.B)return!1;
Al(b,c,mh(a.j)>>>0);return!0},function(a,b,c){b=yi(b);
null!=b&&null!=b&&(Oh(a,c,0),Lh(a.j,b))}),Mib=yl(function(a,b,c){if(0!==a.B)return!1;
Al(b,c,mh(a.j));return!0},function(a,b,c){b=xi(b);
null!=b&&(b=parseInt(b,10),Oh(a,c,0),Fda(a.j,b))});g.y(Gl,T);Gl.ub=[1,2,3,4];g.y(Hl,T);var Nl=[1,2,3],Nib=[0,Nl,Jib,Dib,Hib];var Oib=[0,n2,[0,vib,yib]];g.y(Il,T);var Ml=[1,2,3],Pib=[0,Ml,Aib,xib,o2,Oib];g.y(Jl,T);Jl.ub=[1];var Qib=[0,n2,Nib,Pib];var Rib=[0,[1,2,3],o2,[0,m2,-1,Gib],o2,[0,m2,-1,Bib,Gib],o2,[0,m2]];g.y(Kl,T);Kl.prototype.Kq=function(){var a=Eea(this,3,3,void 0,!0);Mda(a);return a[void 0]};
Kl.ub=[3,6,4];Kl.prototype.j=gfa([0,m2,Rib,Iib,n2,Qib,Eib,Fib]);g.y(Ll,T);Ll.ub=[1];var nfa={};g.k=Ol.prototype;g.k.isEnabled=function(){if(!g.Ta.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{OE:60});if("1"!==this.get("TESTCOOKIESENABLED"))return!1;this.remove("TESTCOOKIESENABLED");return!0};
g.k.set=function(a,b,c){var d=!1;if("object"===typeof c){var e=c.Bca;d=c.secure||!1;var f=c.domain||void 0;var h=c.path||void 0;var l=c.OE}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');void 0===l&&(l=-1);c=f?";domain="+f:"";h=h?";path="+h:"";d=d?";secure":"";l=0>l?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.j.cookie=a+"="+b+c+h+l+d+(null!=e?";samesite="+
e:"")};
g.k.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(";"),e=0,f;e<d.length;e++){f=kc(d[e]);if(0==f.lastIndexOf(c,0))return f.slice(c.length);if(f==a)return""}return b};
g.k.remove=function(a,b,c){var d=void 0!==this.get(a);this.set(a,"",{OE:0,path:b,domain:c});return d};
g.k.An=function(){return Pl(this).keys};
g.k.lm=function(){return Pl(this).values};
g.k.isEmpty=function(){return!this.j.cookie};
g.k.clear=function(){for(var a=Pl(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var KB=new Ol("undefined"==typeof document?null:document);g.y(Rl,T);Rl.ub=[2];Sl.prototype.setInterval=function(a){this.intervalMs=a;this.kf&&this.enabled?(this.stop(),this.start()):this.kf&&this.stop()};
Sl.prototype.start=function(){var a=this;this.enabled=!0;this.kf||(this.kf=setTimeout(function(){a.tick()},this.intervalMs),this.B=this.j())};
Sl.prototype.stop=function(){this.enabled=!1;this.kf&&(clearTimeout(this.kf),this.kf=void 0)};
Sl.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.j()-this.B,0);b<.8*this.intervalMs?this.kf=setTimeout(function(){a.tick()},this.intervalMs-b):(this.kf&&(clearTimeout(this.kf),this.kf=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.kf=void 0};g.y(Tl,T);g.y(Ul,T);g.Bm.prototype.B=0;g.Bm.prototype.reset=function(){this.j=this.C=this.D;this.B=0};
g.Bm.prototype.getValue=function(){return this.C};g.y(Dm,T);Dm.prototype.KI=function(){return vi(Cj(this,1))};g.y(Em,T);g.y(Fm,T);Fm.ub=[1];g.y(Gm,T);var sfa=["platform","platformVersion","architecture","model","uaFullVersion"],Im=new Fm,Hm=null;g.y(Jm,T);g.y(Km,T);Km.ub=[1,2,3,4,5];g.y(Lm,T);g.y(Mm,T);Mm.prototype.L=function(){return Gj(this,Km,7)};
Mm.prototype.Uy=function(){return Fj(this,16)};
Mm.ub=[3,20,27];g.y(Nm,T);Nm.prototype.hG=function(a){return S(this,2,a)};
Nm.ub=[3,5];g.y(Om,T);var Sib=Fl(Om);Om.ub=[5,6,7];g.y(ufa,T);var q2;q2=new function(a,b){this.B=a;this.j=b;this.isRepeated=0;this.C=g.qk;this.defaultValue=void 0}(175237375,ufa);g.y(Rm,g.I);g.k=Rm.prototype;g.k.va=function(){this.cO();this.j.stop();this.qa.stop();g.I.prototype.va.call(this)};
g.k.dispatch=function(a){if(this.N)if(a instanceof Mm)this.log(a);else{var b=new Mm;a=a.yk();b=Q(b,8,a);this.log(b)}};
g.k.log=function(a){if(this.N){a=a.clone();var b=this.Ga++;a=Gk(a,21,b);this.componentId&&Q(a,26,this.componentId);if(!Dea(a)){var c=Date.now();b=a;c=Number.isFinite(c)?c.toString():"0";Fj(b,1,Bi(c))}null!=vk(a,15)||Gk(a,15,60*(new Date).getTimezoneOffset());this.experimentIds&&(b=a,c=this.experimentIds.clone(),rk(b,Rl,16,c));b=this.C.length-1E3+1;0<b&&(this.C.splice(0,b),this.G+=b);this.C.push(a);this.jD||this.j.enabled||this.j.start()}};
g.k.flush=function(a,b){var c=this;if(0===this.C.length)a&&a();else{var d=Date.now();if(this.Ba>d&&this.Y<d)b&&b("throttled");else{this.network&&("function"===typeof this.network.KI?xfa(this.B,this.network.KI()):xfa(this.B,0));var e=this.B.build(this.C,this.G,this.Z,this.eB,0,0);d={};var f=this.CD();f&&(d.Authorization=f);this.K||(this.K=Qm());try{var h=(new URL(this.K)).toString()}catch(m){h=(new URL(this.K,vf().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.ra===f)b&&b("stale-auth-token");else{this.C=[];this.j.enabled&&this.j.stop();this.G=0;var l=e.yk();d={url:h.toString(),body:l,Zmb: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=Sib(p)}catch(q){}n&&(m=Number,p="-1",p=void 0===p?"0":p,p=xk(Dea(n),p),m=m(p),0<m&&(c.Y=Date.now(),c.Ba=c.Y+m),n=q2.j?q2.C(n,q2.j,q2.B,!0):q2.C(n,q2.B,null,!0),n=null===n?void 0:n)&&(n=yk(n,1,-1),-1!==n&&(c.D=new g.Bm(1>n?1:n,3E5,.1),c.j.setInterval(c.D.getValue())))}a&&a();c.Z=0};
l=function(m,n){var p=Bea(e,Mm);var q=vk(e,14);g.Cm(c.D);c.j.setInterval(c.D.getValue());401===m&&f&&(c.ra=f);q&&(c.G+=q);void 0===n&&(n=c.isRetryable(m));n&&(c.C=p.concat(c.C),c.jD||c.j.enabled||c.j.start());b&&b("net-send-failed",m);++c.Z};
c.network&&c.network.send(d,h,l)}}}};
g.k.cO=function(){yfa(this.B,!0);this.flush();yfa(this.B,!1)};
g.k.isRetryable=function(a){return 500<=a&&600>a||401===a||0===a};
Pm.prototype.hG=function(a){this.j.hG(a);return this};
Pm.prototype.build=function(a,b,c,d,e,f){b=void 0===b?0:b;e=void 0===e?0:e;f=void 0===f?0:f;c=void 0===c?0:c;if(Gj(Tm(this),Gm,11)){var h=Um(this);Ek(h,3,c)}Gj(Tm(this),Gm,11)&&(c=Um(this),Ek(c,4,e));Gj(Tm(this),Gm,11)&&(e=Um(this),Ek(e,5,f));f=this.j.clone();e=Date.now().toString();f=Fj(f,4,Bi(e));a=tk(f,Mm,3,a);d&&(f=new Tl,d=Ek(f,13,d),f=new Ul,d=rk(f,Tl,2,d),f=new Lm,d=rk(f,Ul,1,d),d=S(d,2,9),rk(a,Lm,18,d));b&&Gk(a,14,b);return a};Vm.prototype.send=function(a,b,c){var d=this,e,f,h,l,m,n,p,q,r,t,v,w;return g.H(function(A){switch(A.j){case 1:return f=(e=d.E5?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,g.Ba(A,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(A,fetch(a.url,h),5);case 5:l=A.B;if(200!==l.status){null==(m=c)||m(l.status);A.Ia(3);break}if(null==(n=b)){A.Ia(7);break}q=p=n;return g.z(A,l.text(),8);case 8:q(A.B);case 7:case 3:g.Ea(A);clearTimeout(f);g.Fa(A,0);break;case 2:r=g.Da(A);switch(null==(t=r)?void 0:t.name){case "AbortError":null==(v=c)||v(408);break;default:null==(w=c)||w(400)}A.Ia(3)}})};
Vm.prototype.KI=function(){return 4};g.y(Wm,g.I);Wm.prototype.vW=function(){this.D=!0;return this};
Wm.prototype.build=function(){this.network||(this.network=new Vm);var a=new Rm({logSource:this.logSource,CD:this.CD?this.CD:qfa,sessionIndex:this.sessionIndex,Nda:this.B,pw:this.C,jD:!1,vW:this.D,JV:this.JV,network:this.network});g.O(this,a);if(this.j){var b=this.j,c=Sm(a.B);Q(c,7,b)}this.componentId&&(a.componentId=this.componentId);this.eB&&(a.eB=this.eB);this.pageId&&(a.pageId=this.pageId);this.Uy&&((c=this.Uy)?(a.experimentIds||(a.experimentIds=new Rl),b=a.experimentIds,c=c.yk(),Q(b,4,c)):a.experimentIds&&
Fj(a.experimentIds,4));zfa(a.B);this.network.hG&&this.network.hG(this.logSource);this.network.Qca&&this.network.Qca(a);return a};g.y(Xm,g.I);Xm.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Ll,c=[],d=0;d<a.length;d++){var e=a[d],f=g.hfa(e);c.push(f);e.clear()}tk(b,Kl,1,c);this.j.dispatch(b);this.j.flush()}};g.y(Zm,Error);Zm.prototype.toString=function(){var a="RpcError("+(Afa(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};
Zm.prototype.name="RpcError";Bfa.prototype.yk=function(a){var b=[];an(this,a,b);return b.join("")};
var Efa={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Dfa=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;bn.prototype.C=null;bn.prototype.getOptions=function(){return this.C||(this.C=this.D())};var Tib;g.lb(cn,bn);cn.prototype.j=function(){return new XMLHttpRequest};
cn.prototype.D=function(){return{}};
Tib=new cn;var fn=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),Mfa=/#|$/,Nfa=/[?&]($|#)/;g.lb(g.Qn,g.Dd);var Vfa=/^https?$/i,Uib=["POST","PUT"],Pfa=[];g.k=g.Qn.prototype;g.k.l6=function(){this.dispose();g.Hb(Pfa,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.Ga=!1;this.C=!0;this.j=this.N?this.N.j():Tib.j();this.Ba=this.N?this.N.getOptions():Tib.getOptions();this.j.onreadystatechange=(0,g.gb)(this.TZ,this);try{this.getStatus(),this.Da=!0,this.j.open(b,String(a),!0),this.Da=!1}catch(h){this.getStatus();Sfa(this,h);return}a=c||"";c=new Map(this.headers);if(d)if(Object.getPrototypeOf(d)===
Object.prototype)for(var e in d)c.set(e,d[e]);else if("function"===typeof d.keys&&"function"===typeof d.get){e=g.u(d.keys());for(var f=e.next();!f.done;f=e.next())f=f.value,c.set(f,d.get(f))}else throw Error("Unknown input type for opt_headers: "+String(d));d=Array.from(c.keys()).find(function(h){return"content-type"==h.toLowerCase()});
e=g.Ta.FormData&&a instanceof g.Ta.FormData;!g.Fb(Uib,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=g.u(c);for(d=b.next();!d.done;d=b.next())c=g.u(d.value),d=c.next().value,c=c.next().value,this.j.setRequestHeader(d,c);this.La&&(this.j.responseType=this.La);"withCredentials"in this.j&&this.j.withCredentials!==this.K&&(this.j.withCredentials=this.K);try{Ufa(this),0<this.ra&&(this.getStatus(),this.qa=g.Bg(this.v4,this.ra,this)),this.getStatus(),this.Z=!0,this.j.send(a),
this.Z=!1}catch(h){this.getStatus(),Sfa(this,h)}};
g.k.v4=function(){"undefined"!=typeof Sn&&this.j&&(this.D="Timed out after "+this.ra+"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"),Rn(this))};
g.k.va=function(){this.j&&(this.C&&(this.C=!1,this.G=!0,this.j.abort(),this.G=!1),Rn(this,!0));g.Qn.Of.va.call(this)};
g.k.TZ=function(){this.Ma()||(this.Da||this.Z||this.G?Tfa(this):this.uaa())};
g.k.uaa=function(){Tfa(this)};
g.k.isActive=function(){return!!this.j};
g.k.isComplete=function(){return 4==g.Tn(this)};
g.k.getStatus=function(){try{return 2<g.Tn(this)?this.j.status:-1}catch(a){return-1}};
g.k.getResponseHeader=function(a){if(this.j&&this.isComplete())return a=this.j.getResponseHeader(a),null===a?void 0:a};
g.k.getLastError=function(){return"string"===typeof this.D?this.D:String(this.D)};Yn.prototype.send=function(a,b,c){b=void 0===b?function(){}:b;
c=void 0===c?function(){}:c;
Qfa(a.url,function(d){d=d.target;Un(d)?b(g.Vn(d)):c(d.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};
Yn.prototype.KI=function(){return 1};$n.prototype.done=function(){this.logger.JE(this.j,Zn()-this.startMillis)};
g.k=Xfa.prototype;g.k.vJ=function(){};
g.k.JE=function(){};
g.k.OP=function(a,b,c){return c};
g.k.VY=function(){};
g.k.Fw=function(){};
g.k.HE=function(){};
g.k=Yfa.prototype;g.k.vJ=function(a){this.clientError.B(a,this.Xi)};
g.k.JE=function(a,b){this.D.rg(b,a,this.Xi)};
g.k.OP=function(a,b,c){function d(h){var l=Zn()-f;e.G.rg(l,a,b,h,e.Xi)}
var e=this,f=Zn();c.then(function(){d(0)},function(h){h instanceof Zm?d(h.code):d(-1)});
return c};
g.k.VY=function(a){this.C.B(a,this.Xi)};
g.k.Fw=function(a){this.B.B(a,this.Xi)};
g.k.HE=function(a){this.j.B(a,this.Xi)};var Vib,$fa=null!=(Vib=Math.imul)?Vib:function(a,b){return a*b|0};
bo.prototype.yk=function(){return String(this.j)+","+this.B.join()};
bo.prototype.wh=function(a,b){var c=void 0;if(this.B[this.j]!==a){var d=this.B.indexOf(a);-1!==d?(this.B.splice(d,1),d<this.j&&this.j--,this.B.splice(this.j,0,a)):(c=this.B[this.j],this.B[this.j]=a)}this.j=(this.j+1)%this.maxItems;a=Zfa("iU5q-!O9@$",this.yk());c&&a&&b(c);return a};
var co=[196,200,224,18];var iga={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);0<a;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};go.prototype.start=function(){this.startMillis=fo()};
go.prototype.done=function(){null!=this.startMillis&&this.logger.JE(this.event,fo()-this.startMillis)};
g.k=kga.prototype;g.k.PP=function(){};
g.k.JE=function(){};
g.k.wJ=function(){};
g.k.UY=function(){};
g.k.Im=function(){};
g.y(ho,g.I);g.k=ho.prototype;g.k.PP=function(){this.Y.j.Ji("/client_streamz/bg/fsc",this.C,this.B)};
g.k.JE=function(a,b){0===a?this.Z.rg(b,this.C,this.B):1===a&&this.qa.rg(b,this.C,this.B)};
g.k.wJ=function(a,b){this.N.j.Ji("/client_streamz/bg/fiec",this.C,this.B,a,b)};
g.k.UY=function(a,b,c,d,e){d?io(this,a,4):e?io(this,a,5):b?io(this,a,1):c?io(this,a,2):io(this,a,3)};
g.k.Im=function(){this.j.Im()};g.y(jo,T);g.y(ko,T);g.y(lo,T);var rga=Fl(lo);lo.messageId="bfkj";g.y(no,g.I);no.prototype.snapshot=function(a){var b=this;if(this.Ma())throw Error("Already disposed");this.Tg.PP();return this.B.then(function(c){var d=c.Z5;return new Promise(function(e){var f=new go(b.Tg,1);d(function(h){f.done();b.j&&b.Tg.Im();e(h)},[a.Av,
a.Vca,a.M1,a.Yca])})})};
no.prototype.y0=function(a){if(this.Ma())throw Error("Already disposed");this.Tg.PP();var b=new go(this.Tg,1);a=this.C([a.Av,a.Vca,a.M1,a.Yca]);b.done();this.j&&this.Tg.Im();return a};g.y(qo,T);g.y(ro,T);g.y(so,T);to.prototype.uD=function(a,b){var c=this,d,e,f,h,l;return g.H(function(m){if(1==m.j){var n=new qo;d=Jk(n,1,c.Xi);a&&Jk(d,2,a);b&&Jk(d,3,b);e=c.j();return g.z(m,c.client.create(d,e),2)}f=m.B;h=$g(Oj(f,2));if(h.length)return m.return(sga(h));l=g.qk(f,lo,1);if(!l)throw Error("Missing field");return m.return(l)})};
to.prototype.MW=function(a){var b=this,c,d;return g.H(function(e){c=b.j();var f=new ro;f=Jk(f,1,b.Xi);d=Jk(f,2,a);f=e.return;var h=b.client;h=Wp(h.j,h.B+"/$rpc/google.internal.waa.v1.Waa/GenerateIT",d,c||{},Wib);return f.call(e,h)})};
to.prototype.ping=function(a,b){var c=this,d,e;return g.H(function(f){d=c.j();e=b||new so;var h=Q(e,1,c.Xi);Q(h,2,a);return g.z(f,c.client.ping(e,d),0)})};g.y(uo,T);var Xib=Fl(uo);vo.prototype.yI=function(){return this.C};
vo.prototype.getMetadata=function(){return this.B};wo.prototype.getMetadata=function(){return this.j};
wo.prototype.yI=function(){return this.B};
wo.prototype.getStatus=function(){return null};xo.prototype.getName=function(){return this.name};
xo.prototype.getName=xo.prototype.getName;var Yib=new xo("/google.internal.waa.v1.Waa/Create",qo,uo,function(a){return a.yk()},Xib);g.y(yo,T);var Zib=Fl(yo);var Wib=new xo("/google.internal.waa.v1.Waa/GenerateIT",ro,yo,function(a){return a.yk()},Zib);g.y(zo,T);var $ib=new xo("/google.internal.waa.v1.Waa/Ping",so,zo,function(a){return a.yk()},Fl(zo));var Pga=Promise;g.y(Ao,T);Ao.prototype.getValue=function(){var a=Cj(this,2);if(Array.isArray(a)||a instanceof T)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Oj(this,2)};g.y(Bo,T);Bo.prototype.getMessage=function(){return Bk(this,2)};
var yga=Fl(Bo);Bo.ub=[3];Co.prototype.on=function(a,b){"data"==a?this.C.push(b):"metadata"==a?this.G.push(b):"status"==a?this.K.push(b):"end"==a?this.D.push(b):"error"==a&&this.B.push(b);return this};
Co.prototype.removeListener=function(a,b){"data"==a?Go(this.C,b):"metadata"==a?Go(this.G,b):"status"==a?Go(this.K,b):"end"==a?Go(this.D,b):"error"==a&&Go(this.B,b);return this};
Co.prototype.cancel=function(){this.j.abort()};
Co.prototype.cancel=Co.prototype.cancel;Co.prototype.removeListener=Co.prototype.removeListener;Co.prototype.on=Co.prototype.on;g.lb(g.Ho,bn);g.Ho.prototype.j=function(){var a=new Io(this.K,this.G);this.B&&a.setCredentialsMode(this.B);return a};
g.Ho.prototype.D=Gd({});g.Ho.prototype.setCredentialsMode=function(a){this.B=a};
g.lb(Io,g.Dd);g.k=Io.prototype;g.k.open=function(a,b){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.qa=a;this.Y=b;this.readyState=1;Jo(this)};
g.k.send=function(a){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.Z,method:this.qa,credentials:this.G,cache:void 0};a&&(b.body=a);(this.ra||g.Ta).fetch(new Request(this.Y,b)).then(this.m8.bind(this),this.UI.bind(this))};
g.k.abort=function(){this.response=this.responseText="";this.Z=new Headers;this.status=0;this.C&&this.C.cancel("Request was aborted.").catch(function(){});
1<=this.readyState&&this.j&&4!=this.readyState&&(this.j=!1,Ko(this));this.readyState=0};
g.k.m8=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,Jo(this)),this.j&&(this.readyState=3,Jo(this),this.j)))if("arraybuffer"===this.responseType)a.arrayBuffer().then(this.k8.bind(this),this.UI.bind(this));else if("undefined"!==typeof g.Ta.ReadableStream&&"body"in a){this.C=a.body.getReader();if(this.K){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=
[]}else this.response=this.responseText="",this.N=new TextDecoder;zga(this)}else a.text().then(this.l8.bind(this),this.UI.bind(this))};
g.k.b8=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?Ko(this):Jo(this);3==this.readyState&&zga(this)}};
g.k.l8=function(a){this.j&&(this.response=this.responseText=a,Ko(this))};
g.k.k8=function(a){this.j&&(this.response=a,Ko(this))};
g.k.UI=function(){this.j&&Ko(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(Io.prototype,"withCredentials",{get:function(){return"include"===this.G},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});g.xp.prototype.toString=function(){var a=[],b=this.G;b&&a.push(Ep(b,ajb,!0),":");var c=this.j;if(c||"file"==b)a.push("//"),(b=this.Z)&&a.push(Ep(b,ajb,!0),"@"),a.push(g.Se(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,null!=c&&a.push(":",String(c));if(c=this.C)this.j&&"/"!=c.charAt(0)&&a.push("/"),a.push(Ep(c,"/"==c.charAt(0)?bjb:cjb,!0));(c=this.B.toString())&&a.push("?",c);(c=this.K)&&a.push("#",Ep(c,djb));return a.join("")};
g.xp.prototype.resolve=function(a){var b=this.clone(),c=!!a.G;c?g.yp(b,a.G):c=!!a.Z;c?b.Z=a.Z:c=!!a.j;c?g.zp(b,a.j):c=null!=a.D;var d=a.C;if(c)g.Ap(b,a.D);else if(c=!!a.C){if("/"!=d.charAt(0))if(this.j&&!this.C)d="/"+d;else{var e=b.C.lastIndexOf("/");-1!=e&&(d=b.C.slice(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(g.ic(e,"./")||g.ic(e,"/.")){d=dc(e,"/");e=e.split("/");for(var f=[],h=0;h<e.length;){var l=e[h++];"."==l?d&&h==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),
d&&h==e.length&&f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?b.C=d:c=""!==a.B.toString();c?Bp(b,a.B.clone()):c=!!a.K;c&&(b.K=a.K);return b};
g.xp.prototype.clone=function(){return new g.xp(this)};
var ajb=/[#\/\?@]/g,cjb=/[#\?:]/g,bjb=/[#\?]/g,Bga=/[#\?@]/g,djb=/#/g;g.k=Dp.prototype;g.k.add=function(a,b){Hp(this);this.C=null;a=Ip(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){Hp(this);a=Ip(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(){Hp(this);return 0==this.B};
g.k.forEach=function(a,b){Hp(this);this.j.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
g.k.An=function(){Hp(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){Hp(this);var b=[];if("string"===typeof a)Dga(this,a)&&(b=b.concat(this.j.get(Ip(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){Hp(this);this.C=null;a=Ip(this,a);Dga(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 0<a.length?String(a[0]):b};
g.k.toString=function(){if(this.C)return this.C;if(!this.j)return"";for(var a=[],b=Array.from(this.j.keys()),c=0;c<b.length;c++){var d=b[c],e=g.Se(d);d=this.lm(d);for(var f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+g.Se(d[f]));a.push(h)}}return this.C=a.join("&")};
g.k.clone=function(){var a=new Dp;a.C=this.C;this.j&&(a.j=new Map(this.j),a.B=this.B);return a};g.lb(g.Kp,g.I);var ejb=[];g.k=g.Kp.prototype;g.k.listen=function(a,b,c,d){Array.isArray(b)||(b&&(ejb[0]=b.toString()),b=ejb);for(var e=0;e<b.length;e++){var f=g.td(a,b[e],c||this.handleEvent,d||!1,this.B||this);if(!f)break;this.j[f.key]=f}return this};
g.k.uJ=function(a,b,c,d){return Gga(this,a,b,c,d)};
g.k.Pc=function(a,b,c,d,e){if(Array.isArray(b))for(var f=0;f<b.length;f++)this.Pc(a,b[f],c,d,e);else c=c||this.handleEvent,d=g.bb(d)?!!d.capture:!!d,e=e||this.B||this,c=xd(c),d=!!d,b=Tc(a)?a.OD(b,c,d,e):a?(a=yd(a))?a.OD(b,c,d,e):null:null,b&&(Ad(b),delete this.j[b.key])};
g.k.removeAll=function(){g.Vc(this.j,function(a,b){this.j.hasOwnProperty(b)&&Ad(a)},this);
this.j={}};
g.k.va=function(){g.Kp.Of.va.call(this);this.removeAll()};
g.k.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Hga.prototype.isInputValid=function(){return this.C};Lp.prototype.isInputValid=function(){return 3!=this.j};
Lp.prototype.wf=function(){return this.K};
Lp.prototype.kH=function(){return!0};
Lp.prototype.parse=function(a){function b(m){m&128&&Mp(f,h,l,"invalid tag");2!=(m&7)&&Mp(f,h,l,"invalid wire type");f.C=m>>>3;1!=f.C&&2!=f.C&&15!=f.C&&Mp(f,h,l,"unexpected tag");f.j=1;f.B=0;f.D=0}
function c(m){f.D++;5==f.D&&m&240&&Mp(f,h,l,"message length too long");f.B|=(m&127)<<7*(f.D-1);m&128||(f.j=2,f.Z=0,"undefined"!==typeof Uint8Array?f.G=new Uint8Array(f.B):f.G=Array(f.B),0==f.B&&e())}
function d(m){f.G[f.Z++]=m;f.Z==f.B&&e()}
function e(){if(15>f.C){var m={};m[f.C]=f.G;f.N.push(m)}f.j=0}
for(var f=this,h=a instanceof Array?a:new Uint8Array(a),l=0;l<h.length;){switch(f.j){case 3:Mp(f,h,l,"stream already broken");break;case 0:b(h[l]);break;case 1:c(h[l]);break;case 2:d(h[l]);break;default:throw Error("unexpected parser state: "+f.j);}f.Y++;l++}a=f.N;f.N=[];return 0<a.length?a:null};Np.prototype.isInputValid=function(){return null===this.j};
Np.prototype.wf=function(){return this.j};
Np.prototype.kH=function(){return!1};
Np.prototype.parse=function(a){null!==this.j&&Jga(this,a,"stream already broken");var b=null;try{var c=this.C;c.C||Iga(c,a,"stream already broken");c.j+=a;var d=Math.floor(c.j.length/4);if(0==d)var e=null;else{try{var f=ada(c.j.slice(0,4*d))}catch(h){Iga(c,c.j,h.message)}c.B+=4*d;c.j=c.j.slice(4*d);e=f}b=null===e?null:this.D.parse(e)}catch(h){Jga(this,a,h.message)}this.B+=a.length;return b};var fjb={INIT:0,HC:1,GM:2,py:3,TB:4,SB:5,STRING:6,AM:7,KU:8,XU:9,YU:10,ZU:11,kT:12,lT:13,mT:14,nT:15,OU:16,PU:17,QU:18,l5:19,EM:20};g.k=Pp.prototype;g.k.isInputValid=function(){return 3!=this.G};
g.k.wf=function(){return this.Y};
g.k.done=function(){return 2===this.G};
g.k.kH=function(){return!1};
g.k.parse=function(a){function b(){for(;r<a.length;)if(Op(a[r]))r++,f.C++;else break;return r<n}
function c(){for(var v;;){v=a[r++];if(!v)break;f.C++;switch(f.j){case m.INIT:"{"===v?f.j=m.GM:"["===v?f.j=m.TB:Op(v)||Qp(f,a,r);continue;case m.AM:case m.GM:if(Op(v))continue;if(f.j===m.AM)h.push(m.KU);else if("}"===v){e("{}");f.j=d();continue}else h.push(m.py);'"'===v?f.j=m.STRING:Qp(f,a,r);continue;case m.KU:case m.py:if(Op(v))continue;":"===v?(f.j===m.py&&(h.push(m.py),f.B++),f.j=m.HC):"}"===v?(f.B--,e(),f.j=d()):","===v?(f.j===m.py&&h.push(m.py),f.j=m.AM):Qp(f,a,r);continue;case m.TB:case m.HC:if(Op(v))continue;
if(f.j===m.TB)if(f.B++,f.j=m.HC,"]"===v){f.B--;if(0===f.B){f.j=m.SB;return}e("[]");f.j=d();continue}else h.push(m.SB);'"'===v?f.j=m.STRING:"{"===v?f.j=m.GM:"["===v?f.j=m.TB:"t"===v?f.j=m.XU:"f"===v?f.j=m.kT:"n"===v?f.j=m.OU:"-"!==v&&(-1!=="0123456789".indexOf(v)?f.j=m.EM:Qp(f,a,r));continue;case m.SB:if(","===v)h.push(m.SB),f.j=m.HC,1===f.B&&(q=r);else if("]"===v){f.B--;if(0===f.B)return;e();f.j=d()}else if(Op(v))continue;else Qp(f,a,r);continue;case m.STRING:var w=r;a:for(;;){for(;0<f.Z;)if(v=a[r++],
4===f.Z?f.Z=0:f.Z++,!v)break a;if('"'===v&&!f.N){f.j=d();break}if("\\"===v&&!f.N&&(f.N=!0,v=a[r++],!v))break;if(f.N)if(f.N=!1,"u"===v&&(f.Z=1),v=a[r++])continue;else break;l.lastIndex=r;v=l.exec(a);if(!v){r=a.length+1;break}r=v.index+1;v=a[v.index];if(!v)break}f.C+=r-w;continue;case m.XU:if(!v)continue;"r"===v?f.j=m.YU:Qp(f,a,r);continue;case m.YU:if(!v)continue;"u"===v?f.j=m.ZU:Qp(f,a,r);continue;case m.ZU:if(!v)continue;"e"===v?f.j=d():Qp(f,a,r);continue;case m.kT:if(!v)continue;"a"===v?f.j=m.lT:
Qp(f,a,r);continue;case m.lT:if(!v)continue;"l"===v?f.j=m.mT:Qp(f,a,r);continue;case m.mT:if(!v)continue;"s"===v?f.j=m.nT:Qp(f,a,r);continue;case m.nT:if(!v)continue;"e"===v?f.j=d():Qp(f,a,r);continue;case m.OU:if(!v)continue;"u"===v?f.j=m.PU:Qp(f,a,r);continue;case m.PU:if(!v)continue;"l"===v?f.j=m.QU:Qp(f,a,r);continue;case m.QU:if(!v)continue;"l"===v?f.j=d():Qp(f,a,r);continue;case m.l5:"."===v?f.j=m.EM:Qp(f,a,r);continue;case m.EM:if(-1!=="0123456789.eE+-".indexOf(v))continue;else r--,f.C--,f.j=
d();continue;default:Qp(f,a,r)}}}
function d(){var v=h.pop();return null!=v?v:m.HC}
function e(v){1<f.B||(v||(v=-1===q?f.D+a.substring(p,r):a.substring(q,r)),f.qa?f.K.push(v):f.K.push(JSON.parse(v)),q=r)}
for(var f=this,h=f.ra,l=f.Ba,m=fjb,n=a.length,p=0,q=-1,r=0;r<n;)switch(f.G){case 3:return Qp(f,a,r),null;case 2:return b()&&Qp(f,a,r),null;case 0:if(b()){var t=a[r++];f.C++;if("["===t){f.G=1;p=r;f.j=m.TB;continue}else Qp(f,a,r)}return null;case 1:return c(),0===f.B&&f.j==m.SB?(f.G=2,f.D=a.substring(r)):f.D=-1===q?f.D+a.substring(p):a.substring(q),0<f.K.length?(t=f.K,f.K=[],t):null}return null};Rp.prototype.isInputValid=function(){return null===this.G};
Rp.prototype.wf=function(){return this.G};
Rp.prototype.kH=function(){return!1};
Rp.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 Pp({Vmb:!0,I6:!0})}
function d(m){if(m)for(var n=0;n<m.length;n++){var p={};p[1]=m[n];f.D.push(p)}}
function e(m){if(m){(f.K||1<m.length)&&b("extra status: "+m);f.K=!0;var n={};n[2]=m[0];f.D.push(n)}}
for(var f=this,h=0;h<a.length;){var l;if(l=2!==f.B){a:{for(;h<a.length;){if(!Op(a[h])){l=!0;break a}h++;f.j++}l=!1}l=!l}if(l)return null;switch(f.B){case 6:b("stream already broken");break;case 0:"["===a[h]?(f.B=1,h++,f.j++):b("unexpected input token");break;case 1:"["===a[h]?(f.B=2,c()):","===a[h]||"null,"==a.slice(h,h+5)?f.B=3:"]"===a[h]?(f.B=5,h++,f.j++):b("unexpected input token");break;case 2:l=f.C.parse(a.substring(h));d(l);f.C.done()?(f.B=3,l=f.C.D,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-
h,h=a.length);break;case 3:","===a[h]||"null,"==a.slice(h,h+5)?(f.B=4,c(),f.C.parse("["),h+=","===a[h]?1:5,f.j++):"]"===a[h]&&(f.B=5,h++,f.j++);break;case 4:l=f.C.parse(a.substring(h));e(l);f.C.done()?(f.B=5,l=f.C.D,f.j+=a.length-h-l.length,a=l,h=0):(f.j+=a.length-h,h=a.length);break;case 5:b("extra input after stream end")}}return 0<f.D.length?(a=f.D,f.D=[],a):null};Sp.prototype.PO=function(){return this.j};
Sp.prototype.getStatus=function(){return this.D};
Sp.prototype.qa=function(a){a=a.target;try{if(a==this.j)a:{var b=g.Tn(this.j),c=this.j.B,d=this.j.getStatus(),e=g.Vn(this.j);a=[];if(g.Wn(this.j)instanceof Array){var f=g.Wn(this.j);0<f.length&&f[0]instanceof Uint8Array&&(this.Y=!0,a=f)}if(!(3>b||3==b&&!e&&0==a.length))if(d=200==d||206==d,4==b&&(8==c?Tp(this,7):7==c?Tp(this,8):d||Tp(this,3)),this.B||(this.B=Kga(this.j),null==this.B&&Tp(this,5)),2<this.D)Up(this);else{if(a.length>this.C){var h=a.length;c=[];try{if(this.B.kH())for(var l=0;l<h;l++){var m=
this.B.parse(Array.from(a[l]));m&&(c=c.concat(m))}else{m="";if(!this.K){if("undefined"===typeof TextDecoder)throw Error("TextDecoder is not supported by this browser.");this.K=new TextDecoder}for(l=0;l<h;l++)m+=this.K.decode(a[l],{stream:4==b&&l==h-1});c=this.B.parse(m)}a.splice(0,h);c&&this.G(c)}catch(p){Tp(this,5);Up(this);break a}}else if(e.length>this.C){l=e.slice(this.C);this.C=e.length;try{var n=this.B.parse(l);null!=n&&this.G&&this.G(n)}catch(p){Tp(this,5);Up(this);break a}}4==b?(0!=e.length||
this.Y?Tp(this,2):Tp(this,4),Up(this)):Tp(this,1)}}}catch(p){Tp(this,6),Up(this)}};g.k=Lga.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.Hb(c,b);(a=this.j[a])&&g.Hb(a,b);return this};
g.k.once=function(a,b){var c=this.j[a];c||(c=[],this.j[a]=c);c.push(b);return this};
g.k.o$=function(a){var b=this.B.data;b&&Mga(a,b);(b=this.j.data)&&Mga(a,b);this.j.data=[]};
g.k.dba=function(){switch(this.C.getStatus()){case 1:Vp(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Vp(this,"error");break;case 8:Vp(this,"close");break;case 2:Vp(this,"end")}};Nga.prototype.serverStreaming=function(a,b,c,d){var e=this,f=a.substr(0,a.length-d.name.length);return Oga(function(h){var l=h.yI(),m=h.getMetadata(),n=Rga(e,!1);m=Sga(e,m,n,f+l.getName());var p=Tga(n,l.B,!0);h=l.j(h.j);n.send(m,"POST",h);return p},this.D).call(this,tga(d,b,c))};Xp.prototype.create=function(a,b){return Wp(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",a,b||{},Yib)};
Xp.prototype.ping=function(a,b){return Wp(this.j,this.B+"/$rpc/google.internal.waa.v1.Waa/Ping",a,b||{},$ib)};var gjb=1,dq=new WeakMap;g.y(Yp,g.I);Yp.prototype.signal=function(){var a=new $p(!1);this.signals.add(a);g.O(this,a);return a};
Yp.prototype.hA=function(a){this.signals.has(a);return a.hA()};
g.y($p,g.I);g.k=$p.prototype;g.k.cN=function(){var a=this,b=gjb++;aq(function(){Vga(a,b)});
return b};
g.k.detach=function(a){var b=this;aq(function(){var c=b.slots.get(a);c&&c.sW()})};
g.k.value=function(a){return this.promise(!0,a)};
g.k.hA=function(){return this.EY};
g.k.next=function(a){return this.promise(!1,a)};
g.k.promise=function(a,b){var c=this,d=kca();aq(function(){if(c.Ma())d.reject(new og("Signal initially disposed"));else if(b&&b.Ma())d.reject(new og("Owner initially disposed"));else if(a&&c.PV&&c.QX)d.resolve(c.EY);else if(c.mB.add(d),ng(d.promise,function(){c.mB.delete(d)}),b){var e=function(){d.reject(new og("Owner asynchronously disposed"))};
ng(d.promise,function(){var f=dq.get(b);f&&g.Hb(f,e)});
Zga(b,e)}});
return d.promise};
g.k.va=function(){var a=this;g.I.prototype.va.call(this);aq(function(){for(var b=g.u(a.slots.values()),c=b.next();!c.done;c=b.next())c=c.value.sW,c();a.slots.clear();b=g.u(a.mB);for(c=b.next();!c.done;c=b.next())c.value.reject(new og("Signal asynchronously disposed"));a.mB.clear()})};
var bq=[],cq=!1;g.y(eq,g.I);eq.prototype.start=function(){var a=this;if(this.Ma())throw new gq("Cannot start a disposed timer.");if(!this.K){this.D=0;if(this.N){var b=Date.now();this.handle=setInterval(function(){a.D=0<a.milliseconds?Math.trunc((Date.now()-b)/a.milliseconds):a.D+1;var c;null==(c=a.B)||c.resolve();a.B=void 0;if(a.C){var d;null==(d=a.j)||Zp(d,a.C,a)}a.Cb.eK(a)},this.milliseconds)}else this.handle=setTimeout(function(){a.state=3;
a.handle=void 0;a.D=1;var c;null==(c=a.B)||c.resolve();a.B=void 0;if(a.C){var d;null==(d=a.j)||Zp(d,a.C,a)}a.Cb.eK(a)},this.milliseconds);
this.state=1}};
eq.prototype.cancel=function(){if(this.K){this.clear();this.state=2;var a;null==(a=this.B)||a.reject(new fq);var b;null==(b=this.Cb.qQ)||b.call(this);if(this.G){var c;null==(c=this.j)||Zp(c,this.G)}}};
eq.prototype.va=function(){this.clear();var a;null==(a=this.B)||a.reject(new gq);this.state=4;g.I.prototype.va.call(this)};
eq.prototype.clear=function(){this.N?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0};
g.ha.Object.defineProperties(eq.prototype,{K:{configurable:!0,enumerable:!0,get:function(){return 1===this.state}},
isCancelled:{configurable:!0,enumerable:!0,get:function(){return 2===this.state}},
isExpired:{configurable:!0,enumerable:!0,get:function(){return 3===this.state}},
tick:{configurable:!0,enumerable:!0,get:function(){return this.D}},
Z:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return null!=this.B||(this.B=new g.mo),this.B.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new fq("Timer has been cancelled."));case 4:return Promise.reject(new gq("Timer has been disposed."));default:Le(this.state)}}},
eK:{configurable:!0,enumerable:!0,get:function(){if(this.Ma())throw new gq("Cannot attach a signal to a disposed timer.");this.C||(null!=this.j||(this.j=new Yp(this)),this.C=this.j.signal());return this.C}},
qQ:{configurable:!0,enumerable:!0,get:function(){if(this.Ma())throw new gq("Cannot attach a signal to a disposed timer.");this.G||(null!=this.j||(this.j=new Yp(this)),this.G=this.j.signal());return this.G}}});
g.y(fq,xb);g.y(gq,xb);var aha=globalThis.TextEncoder?new TextEncoder:void 0;g.y(jq,Error);g.y(kq,g.I);kq.prototype.G=function(a){a=this.j(a);return dha(a,this.B,this.logger)};
g.y(mq,kq);mq.prototype.j=function(a){++this.Y>=this.qa&&this.D.resolve();var b=hq(a,this.logger),c=new $n(this.logger,"C"),d=this.Z(b);c.done();if(void 0===d)throw new jq(17,"YNJ:Undefined");if(!(d instanceof Uint8Array))throw new jq(18,"ODM:Invalid");var e;if(null==(e=a.Py)?0:e.eda)try{var f;null==(f=this.N())||gga(f,b,d,a.Py.OV,this.K)}catch(h){iq(new jq(24,"ELX:write",h),this.logger,this.onError)}return d};
g.y(nq,kq);nq.prototype.j=function(){return this.K};
g.y(oq,kq);oq.prototype.j=function(){return Ig(this.K)};
oq.prototype.G=function(){return this.K};
g.y(pq,kq);pq.prototype.j=function(){if(this.K)return this.K;this.K=eha(this,function(a){return"_"+jga(a)});
return eha(this,function(a){return a})};
g.y(qq,kq);qq.prototype.j=function(a){var b=hq(a,this.logger);if(118<b.length)throw new jq(19,"DFO:Invalid");a=Math.floor(Date.now()/1E3);var c=[255*Math.random(),255*Math.random()],d=c.concat([this.K&255,this.clientState],[a>>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+d.length+b.length);a[0]=34;a[1]=d.length+b.length;a.set(d,2);a.set(b,2+d.length);b=a.subarray(2);for(d=c=c.length;d<b.length;++d)b[d]^=b[d%c];this.logger.VY(this.clientState);return a};
g.y(rq,g.I);g.k=rq.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.uD=function(a){return gha(this,this.logger.OP("c",void 0===a?1:a,this.rz.uD(po().j,null)),new jq(10,"JVZ:Timeout"))};
g.k.prefetch=function(){1===this.state&&(this.B=this.uD())};
g.k.start=function(){if(1===this.state){this.state=2;var a=new $n(this.logger,"r");this.ready().finally(function(){return void a.done()});
iha(this)}};var nha={NONE:0,Axa:1},Uha={B2:0,F4a:1,E4a:2,G4a:3},$r={Z1:"a",Ywa:"d",VIDEO:"v"};rr.prototype.isVisible=function(){return this.lw?.3<=this.Ce:.5<=this.Ce};var Br={wua:0,QDa:1},Sha={NONE:0,eJa:1,nGa:2};sr.prototype.getValue=function(){return this.B};
g.y(tr,sr);tr.prototype.C=function(a){null===this.B&&g.gd(this.D,a)&&(this.B=a)};
g.y(ur,sr);ur.prototype.C=function(a){null===this.B&&"number"===typeof a&&(this.B=a)};
g.y(vr,sr);vr.prototype.C=function(a){null===this.B&&"string"===typeof a&&(this.B=a)};wr.prototype.disable=function(){this.B=!1};
wr.prototype.enable=function(){this.B=!0};
wr.prototype.isEnabled=function(){return this.B};
wr.prototype.reset=function(){this.j={};this.B=!0;this.C={}};var Rs=document,Fr=window;var Wia=!g.Bs&&!Ec();Cr.prototype.now=function(){return 0};
Cr.prototype.B=function(){return 0};
Cr.prototype.C=function(){return 0};
Cr.prototype.j=function(){return 0};g.y(Er,Cr);Er.prototype.now=function(){return Dr()&&Fr.performance.now?Fr.performance.now():Cr.prototype.now.call(this)};
Er.prototype.B=function(){return Dr()&&Fr.performance.memory?Fr.performance.memory.totalJSHeapSize||0:Cr.prototype.B.call(this)};
Er.prototype.C=function(){return Dr()&&Fr.performance.memory?Fr.performance.memory.usedJSHeapSize||0:Cr.prototype.C.call(this)};
Er.prototype.j=function(){return Dr()&&Fr.performance.memory?Fr.performance.memory.jsHeapSizeLimit||0:Cr.prototype.j.call(this)};var qha=Kd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
g.Ta.addEventListener("test",null,b)}catch(c){}return a});rha.prototype.isVisible=function(){return 1===Ir(Rs)};Rd("csi.gstatic.com");Rd("googleads.g.doubleclick.net");Rd("partner.googleadservices.com");Rd("pubads.g.doubleclick.net");Rd("securepubads.g.doubleclick.net");Rd("tpc.googlesyndication.com");var tha={ika:"allow-forms",jka:"allow-modals",kka:"allow-orientation-lock",lka:"allow-pointer-lock",mka:"allow-popups",nka:"allow-popups-to-escape-sandbox",oka:"allow-presentation",pka:"allow-same-origin",qka:"allow-scripts",rka:"allow-top-navigation",ska:"allow-top-navigation-by-user-activation"},xha=Kd(function(){return uha()});var Bha=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Nr.prototype.Oe=function(a,b,c){a=a+"//"+b+c;var d=Fha(this)-c.length;if(0>d)return"";this.j.sort(function(n,p){return n-p});
c=null;b="";for(var e=0;e<this.j.length;e++)for(var f=this.j[e],h=this.B[f],l=0;l<h.length;l++){if(!d){c=null==c?f:c;break}var m=Eha(h[l],this.C,",$");if(m){m=b+m;if(d>=m.length){d-=m.length;a+=m;b=this.C;break}c=null==c?f:c}}d="";null!=c&&(d=b+"trn="+c);return a+d};Vr.prototype.setInterval=function(a,b){return Fr.setInterval(a,b)};
Vr.prototype.clearInterval=function(a){Fr.clearInterval(a)};
Vr.prototype.setTimeout=function(a,b){return Fr.setTimeout(a,b)};
Vr.prototype.clearTimeout=function(a){Fr.clearTimeout(a)};g.y(Xr,T);Xr.prototype.j=gfa([0,wib,zib,-2,Cib]);var Tha={Q1a:1,B5:2,xVa:3};Vha.prototype.oR=function(a){if("string"===typeof a&&0!=a.length){var b=this.Gc;if(b.B){a=a.split("&");for(var c=a.length-1;0<=c;c--){var d=a[c].split("="),e=decodeURIComponent(d[0]);1<d.length?(d=decodeURIComponent(d[1]),d=/^[0-9]+$/g.exec(d)?parseInt(d,10):d):d=1;(e=b.j[e])&&e.C(d)}}}};var r2=null;var cs=g.Ta.performance,hjb=!!(cs&&cs.mark&&cs.measure&&cs.clearMarks),as=Kd(function(){var a;if(a=hjb){var b;if(null===r2){r2="";try{a="";try{a=g.Ta.top.location.hash}catch(c){a=g.Ta.location.hash}a&&(r2=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=r2;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
bs.prototype.disable=function(){this.j=!1;this.events!=this.B.google_js_reporting_queue&&(as()&&g.$b(this.events,aia),this.events.length=0)};
bs.prototype.start=function(a,b){if(!this.j)return null;var c=Zha()||Yha();a=new $ha(a,b,c);b="goog_"+a.label+"_"+a.uniqueId+"_start";cs&&as()&&cs.mark(b);return a};
bs.prototype.end=function(a){if(this.j&&"number"===typeof a.value){var b=Zha()||Yha();a.duration=b-a.value;b="goog_"+a.label+"_"+a.uniqueId+"_end";cs&&as()&&cs.mark(b);!this.j||2048<this.events.length||this.events.push(a)}};bia.prototype.SP=function(a,b,c,d,e){e=e||this.IW;try{var f=new Nr;f.j.push(1);f.B[1]=Or("context",a);b.error&&b.meta&&b.id||(b=new gs(hs(b)));if(b.msg){var h=b.msg.substring(0,512);f.j.push(2);f.B[2]=Or("msg",h)}var l=b.meta||{};if(this.XM)try{this.XM(l)}catch(q){}if(d)try{d(l)}catch(q){}b=[l];f.j.push(3);f.B[3]=b;var m=Dha();if(m.B){var n=m.B.url||"";f.j.push(4);f.B[4]=Or("top",n)}var p=[{url:m.j.url||""},{url:m.j.url?Hfa(m.j.url):""}];f.j.push(5);f.B[5]=p;Wha(this.j,e,f,c)}catch(q){try{Wha(this.j,
e,{context:"ecmserr",rctx:a,msg:hs(q),url:m&&m.j.url},c)}catch(r){}}return this.pS};
g.y(gs,Xha);var es,fs,ds=new bs;es=new function(){var a="https:";Fr&&Fr.location&&"http:"===Fr.location.protocol&&(a="http:");this.B=a;this.j=.01};
fs=new bia;Fr&&Fr.document&&("complete"==Fr.document.readyState?dia():ds.j&&Hr(Fr,"load",function(){dia()}));var gia=Date.now(),os=-1,ms=-1,xja,ps=-1,ns=!1;g.k=qs.prototype;g.k.getHeight=function(){return this.bottom-this.top};
g.k.clone=function(){return new qs(this.top,this.right,this.bottom,this.left)};
g.k.contains=function(a){return this&&a?a instanceof qs?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.k.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.k.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.k.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};us.prototype.Ib=function(){return this.N};var ijb={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Yt={u5:"start",I2:"firstquartile",g5:"midpoint",v5:"thirdquartile",COMPLETE:"complete",ERROR:"error",f5:"metric",PAUSE:"pause",p5:"resume",q5:"skip",A5:"viewable_impression",k5:"mute",z5:"unmute",J2:"fullscreen",H2:"exitfullscreen",n2:"bufferstart",m2:"bufferfinish",K2:"fully_viewable_audible_half_duration_impression",e5:"measurable_impression",W1:"abandon",G2:"engagedview",N2:"impression",w2:"creativeview",d5:"loaded",
t3a:"progress",CLOSE:"close",Mta:"collapse",N_a:"overlay_resize",O_a:"overlay_unmeasurable_impression",P_a:"overlay_unviewable_impression",R_a:"overlay_viewable_immediate_impression",Q_a:"overlay_viewable_end_of_session_impression",A2:"custom_metric_viewable",b2:"audio_audible",e2:"audio_measurable",d2:"audio_impression"},Ika="start firstquartile midpoint thirdquartile resume loaded".split(" "),Jka=["start","firstquartile","midpoint","thirdquartile"],zja=["abandon"],ru={UNKNOWN:-1,u5:0,I2:1,g5:2,
v5:3,COMPLETE:4,f5:5,PAUSE:6,p5:7,q5:8,A5:9,k5:10,z5:11,J2:12,H2:13,K2:14,e5:15,W1:16,G2:17,N2:18,w2:19,d5:20,A2:21,n2:22,m2:23,d2:27,e2:28,b2:29};var jia={ifa:"addEventListener",pGa:"getMaxSize",qGa:"getScreenSize",rGa:"getState",sGa:"getVersion",y4a:"removeEventListener",iKa:"isViewable"};g.k=g.ws.prototype;g.k.clone=function(){return new g.ws(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.Ie(this.width,this.height)};
g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.k.scale=function(a,b){b="number"===typeof b?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var nia={};wia.prototype.update=function(a){a&&a.document&&(this.N=vs(!1,a,this.isMobileDevice),this.j=vs(!0,a,this.isMobileDevice),yia(this,a),xia(this,a))};Ts.prototype.cancel=function(){Wr().clearTimeout(this.j);this.j=null};
Ts.prototype.schedule=function(){var a=this,b=Wr(),c=Zr().j.j;this.j=b.setTimeout(Yr(c,js(143,function(){a.B++;a.C.sample()})),hia())};g.k=Us.prototype;g.k.pC=function(){return!1};
g.k.initialize=function(){return this.isInitialized=!0};
g.k.xz=function(){return this.j.Da};
g.k.dE=function(){return this.j.qa};
g.k.lj=function(a,b){if(!this.qa||(void 0===b?0:b))this.qa=!0,this.Da=a,this.Z=0,this.j!=this||Ws(this)};
g.k.getName=function(){return this.j.Ra};
g.k.Ts=function(){return this.j.eX()};
g.k.eX=function(){return{}};
g.k.Qq=function(){return this.j.Z};
g.k.mU=function(){var a=Qs();a.j=vs(!0,this.C,a.isMobileDevice)};
g.k.nU=function(){xia(Qs(),this.C)};
g.k.tX=function(){return this.D.j};
g.k.sample=function(){};
g.k.isActive=function(){return this.j.K};
g.k.Gz=function(a){var b=this.j;this.j=a.Qq()>=this.Z?a:this;b!==this.j?(this.K=this.j.K,Ws(this)):this.K!==this.j.K&&(this.K=this.j.K,Ws(this))};
g.k.kt=function(a){if(a.B===this.j){var b=this.D,c=this.Y;if(c=a&&(void 0===c||!c||b.volume==a.volume)&&b.C==a.C)b=b.j,c=a.j,c=b==c?!0:b&&c?b.top==c.top&&b.right==c.right&&b.bottom==c.bottom&&b.left==c.left:!1;this.D=a;!c&&Bia(this)}};
g.k.Xp=function(){return this.Y};
g.k.dispose=function(){this.Ga=!0};
g.k.Ma=function(){return this.Ga};g.k=Xs.prototype;g.k.lM=function(){return!0};
g.k.cH=function(){};
g.k.dispose=function(){if(!this.Ma()){var a=this.B;g.Hb(a.G,this);a.Y&&this.Xp()&&Aia(a);this.cH();this.qa=!0}};
g.k.Ma=function(){return this.qa};
g.k.Ts=function(){return this.B.Ts()};
g.k.Qq=function(){return this.B.Qq()};
g.k.xz=function(){return this.B.xz()};
g.k.dE=function(){return this.B.dE()};
g.k.Gz=function(){};
g.k.kt=function(){this.xs()};
g.k.Xp=function(){return this.ra};g.k=Ys.prototype;g.k.Qq=function(){return this.j.Qq()};
g.k.xz=function(){return this.j.xz()};
g.k.dE=function(){return this.j.dE()};
g.k.create=function(a,b,c){var d=null;this.j&&(d=this.dH(a,b,c),Vs(this.j,d));return d};
g.k.oU=function(){return this.qC()};
g.k.qC=function(){return!1};
g.k.init=function(a){return this.j.initialize()?(Vs(this.j,this),this.D=a,!0):!1};
g.k.Gz=function(a){0==a.Qq()&&this.D(a.xz(),this)};
g.k.kt=function(){};
g.k.Xp=function(){return!1};
g.k.dispose=function(){this.G=!0};
g.k.Ma=function(){return this.G};
g.k.Ts=function(){return{}};Zs.prototype.add=function(a,b,c){++this.C;a=new Cia(a,b,c);this.j.push(new Cia(a.B,a.j,a.C+this.C/4096));this.B=!0;return this};Hia.prototype.toString=function(){var a="//pagead2.googlesyndication.com//pagead/gen_204",b=lt(this.j);0<b.length&&(a+="?"+b);return a};mt.prototype.update=function(a,b,c){a&&(this.j+=b,this.B+=b,this.D+=b,this.C=Math.max(this.C,this.D));if(void 0===c?!a:c)this.D=0};var Mia=[1,.75,.5,.3,0];nt.prototype.update=function(a,b,c,d,e,f){f=void 0===f?!0:f;b=e?Math.min(a,b):b;for(e=0;e<this.B.length;e++){var h=this.B[e],l=0<b&&b>=h;h=!(0<a&&a>=h)||c;this.j[e].update(f&&l,d,!f||h)}};ut.prototype.update=function(a,b,c,d){this.N=-1!=this.N?Math.min(this.N,b.Ce):b.Ce;this.ra=Math.max(this.ra,b.Ce);this.Ba=-1!=this.Ba?Math.min(this.Ba,b.xk):b.xk;this.Da=Math.max(this.Da,b.xk);this.bb.update(b.xk,c.xk,b.j,a,d);this.B.update(b.Ce,c.Ce,b.j,a,d);c=d||c.lw!=b.lw?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.j;this.Ra.update(c,a,b)};
ut.prototype.gr=function(){return this.Ra.C>=this.Za};if(Rs&&Rs.URL){var jjb=Rs.URL,kjb;if(kjb=!!jjb){var ljb;a:{if(jjb){var mjb=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var s2=mjb.exec(decodeURIComponent(jjb));if(s2){ljb=s2[1]&&1<s2[1].length?s2[1].substring(1):"true";break a}}catch(a){}}ljb=""}kjb=0<ljb.length}fs.pS=!kjb};var njb=new qs(0,0,0,0);var Uia=new qs(0,0,0,0);g.y(At,g.I);g.k=At.prototype;
g.k.va=function(){if(this.Pj.j){if(this.Bv.dQ){var a=this.Pj.j;a.removeEventListener&&a.removeEventListener("mouseover",this.Bv.dQ,Gr());this.Bv.dQ=null}this.Bv.cQ&&(a=this.Pj.j,a.removeEventListener&&a.removeEventListener("mouseout",this.Bv.cQ,Gr()),this.Bv.cQ=null)}this.uG&&this.uG.dispose();this.Vf&&this.Vf.dispose();delete this.EJ;delete this.TP;delete this.o1;delete this.Pj.Lt;delete this.Pj.j;delete this.Bv;delete this.uG;delete this.Vf;delete this.Gc;g.I.prototype.va.call(this)};
g.k.Ws=function(){return this.Vf?this.Vf.j:this.position};
g.k.oR=function(a){Zr().oR(a)};
g.k.Xp=function(){return!1};
g.k.BI=function(){return new ut};
g.k.nj=function(){return this.EJ};
g.k.jX=function(a){return Yia(this,a,1E4)};
g.k.Sa=function(a,b,c,d,e,f,h){this.vt||(this.mD&&(a=this.iN(a,c,e,h),d=d&&this.Yh.Ce>=(this.lw()?.3:.5),this.QS(f,a,d),this.Ip=b,0<a.Ce&&-1===this.N0&&(this.N0=b),-1==this.S0&&this.gr()&&(this.S0=b),-2==this.NP&&(this.NP=xt(this.Ws())?a.Ce:-1),this.Yh=a),this.TP(this))};
g.k.QS=function(a,b,c){this.nj().update(a,b,this.Yh,c)};
g.k.CO=function(){return new rr};
g.k.iN=function(a,b,c,d){c=this.CO();c.j=b;b=Wr().B;b=0===Ir(Rs)?-1:b.isVisible()?0:1;c.B=b;c.Ce=this.BN(a);c.lw=this.lw();c.xk=d;return c};
g.k.BN=function(a){return 0===this.opacity&&1===zr(this.Gc,"opac")?0:a};
g.k.lw=function(){return!1};
g.k.fL=function(){return this.Q8||this.U8};
g.k.Jw=function(){ls()};
g.k.AA=function(){ls()};
g.k.vp=function(){return 0};
g.k.gr=function(){return this.EJ.gr()};
g.k.wX=function(){var a=this.mD;a=(this.hasCompleted||this.Ma())&&!a;var b=2!==Zr().B||this.wda;return this.vt||b&&a?2:this.gr()?4:3};
g.k.pI=function(){return 0};g.Ct.prototype.next=function(){return g.t2};
g.t2={done:!0,value:void 0};g.Ct.prototype.Sl=function(){return this};g.y(dja,rr);var u2=fja([void 0,1,2,3,4,8,16]),v2=fja([void 0,4,8,16]),ojb={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Gt("p0",v2),p1:Gt("p1",v2),p2:Gt("p2",v2),p3:Gt("p3",v2),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Ft("mtos1",[0,2,4],!1,v2),mtos2:Ft("mtos2",[0,2,4],!1,v2),mtos3:Ft("mtos3",[0,2,4],!1,v2),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Gt("a0",v2),a1:Gt("a1",v2),a2:Gt("a2",v2),a3:Gt("a3",v2),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:Gt("c0",v2),c1:Gt("c1",v2),c2:Gt("c2",v2),c3:Gt("c3",v2),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Gt("qmtos",u2),qnc:Gt("qnc",u2),qmv:Gt("qmv",u2),qnv:Gt("qnv",u2),
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:Gt("ss0",v2),ss1:Gt("ss1",v2),ss2:Gt("ss2",v2),ss3:Gt("ss3",v2),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"},pjb=Object.assign({},ojb,{avid:Gd("audio"),avas:"avas",vs:"vs"}),qjb={atos:"atos",avt:Ft("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return void 0===c[a]&&void 0!==b?b:c[a]}}("ss",0),
t:"t"};Kt.prototype.getValue=function(){return this.B};
Kt.prototype.update=function(a,b){32<=a||(this.j&1<<a&&!b?this.B&=~(1<<a):this.j&1<<a||!b||(this.B|=1<<a),this.j|=1<<a)};g.y(Lt,ut);
Lt.prototype.update=function(a,b,c,d){if(!b.paused){ut.prototype.update.call(this,a,b,c,d);var e=Et(b)&&Et(c),f=.5<=(d?Math.min(b.Ce,c.Ce):c.Ce);Os(b.volume)&&(this.D=-1!=this.D?Math.min(this.D,b.volume):b.volume,this.K=Math.max(this.K,b.volume));f&&(this.Ga+=a,this.Y+=e?a:0);this.j.update(b.Ce,c.Ce,b.j,a,d,e);this.C.update(!0,a);this.G.update(e,a);this.qa.update(c.fullscreen,a);this.fb.update(e&&!f,a);a=Math.floor(b.mediaTime/1E3);this.La.update(a,b.isVisible());this.Wa.update(a,1<=b.Ce);this.Va.update(a,
Et(b))}};lja.prototype.B=function(a){this.C||(this.j(a)?(a=wka(this.Y,this.D,a),this.G|=a,a=0==a):a=!1,this.C=a)};g.y(Nt,lja);Nt.prototype.j=function(){return!0};
Nt.prototype.K=function(){return!1};
Nt.prototype.getId=function(){var a=this,b=hd(Yt,function(c){return c==a.D});
return ru[b].toString()};
Nt.prototype.toString=function(){var a="";this.K()&&(a+="c");this.C&&(a+="s");0<this.G&&(a+=":"+this.G);return this.getId()+a};g.y(Ot,Nt);Ot.prototype.B=function(a,b){b=void 0===b?null:b;null!=b&&this.N.push(b);Nt.prototype.B.call(this,a)};g.y(Pt,mja);Pt.prototype.B=function(){return null};
Pt.prototype.C=function(){return[]};g.y(Qt,Xs);g.k=Qt.prototype;g.k.mN=function(){if(this.element){var a=this.element,b=this.B.j.C;try{try{var c=tia(a.getBoundingClientRect())}catch(n){c=new qs(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=qia(a,b),h=f.x,l=f.y;var m=new qs(Math.round(l),Math.round(h+d),Math.round(l+e),Math.round(h))}catch(n){m=njb.clone()}this.j=m}};
g.k.QV=function(){this.D=this.B.D.j};
g.k.sY=function(a){var b=1==zr(this.Gc,"od");return Tia(a,this.D,this.element,b)};
g.k.RV=function(){this.timestamp=ls()};
g.k.xs=function(){this.RV();this.mN();if(this.element&&"number"===typeof this.element.videoWidth&&"number"===typeof this.element.videoHeight){var a=this.element;var b=new g.Ie(a.videoWidth,a.videoHeight);a=this.j;var c=rs(a),d=a.getHeight(),e=b.width;b=b.height;0>=e||0>=b||0>=c||0>=d||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,0<d&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),0<c&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.j=a}this.QV();
a=this.j;c=this.D;a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new qs(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 qs(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new qs(0,0,0,0):a;a=this.B.D;b=e=d=0;0<(this.j.bottom-this.j.top)*(this.j.right-this.j.left)&&(this.sY(c)?c=new qs(0,0,0,0):(d=Qs().D,b=new qs(0,d.height,d.width,0),d=zt(c,this.j),e=zt(c,Qs().j),b=zt(c,b)));c=c.top>=c.bottom||c.left>=c.right?new qs(0,0,0,
0):ts(c,-this.j.left,-this.j.top);Ss()||(e=d=0);this.N=new us(a,this.element,this.j,c,d,e,this.timestamp,b)};
g.k.getName=function(){return this.B.getName()};var rjb=new qs(0,0,0,0);g.y(Rt,Qt);g.k=Rt.prototype;g.k.lM=function(){this.C();return!0};
g.k.kt=function(){Qt.prototype.xs.call(this)};
g.k.RV=function(){};
g.k.mN=function(){};
g.k.xs=function(){this.C();Qt.prototype.xs.call(this)};
g.k.Gz=function(a){a=a.isActive();a!==this.K&&(a?this.C():(Qs().j=new qs(0,0,0,0),this.j=new qs(0,0,0,0),this.D=new qs(0,0,0,0),this.timestamp=-1));this.K=a};var w2={},wja=(w2.firstquartile=0,w2.midpoint=1,w2.thirdquartile=2,w2.complete=3,w2);g.y(Tt,At);g.k=Tt.prototype;g.k.Xp=function(){return!0};
g.k.Pn=function(){return 2==this.bk};
g.k.jX=function(a){return Yia(this,a,Math.max(1E4,this.C/3))};
g.k.Sa=function(a,b,c,d,e,f,h){var l=this,m=this.N(this)||{};g.od(m,e);this.C=m.duration||this.C;this.Y=m.isVpaid||this.Y;this.Ra=m.isYouTube||this.Ra;Wr();this.rb=!1;e=oja(this,b);1===nja(this)&&(f=e);At.prototype.Sa.call(this,a,b,c,d,m,f,h);this.jr&&this.jr.C&&g.$b(this.K,function(n){n.B(l)})};
g.k.QS=function(a,b,c){At.prototype.QS.call(this,a,b,c);Wt(this).update(a,b,this.Yh,c);this.fb=Et(this.Yh)&&Et(b);-1==this.Da&&this.bb&&(this.Da=this.nj().C.j);this.Hg.C=0;a=this.gr();b.isVisible()&&Jt(this.Hg,"vs");a&&Jt(this.Hg,"vw");Os(b.volume)&&Jt(this.Hg,"am");Et(b)?Jt(this.Hg,"a"):Jt(this.Hg,"mut");this.Tz&&Jt(this.Hg,"f");-1!=b.B&&(Jt(this.Hg,"bm"),1==b.B&&(Jt(this.Hg,"b"),Et(b)&&Jt(this.Hg,"umutb")));Et(b)&&b.isVisible()&&Jt(this.Hg,"avs");this.fb&&a&&Jt(this.Hg,"avw");0<b.Ce&&Jt(this.Hg,
"pv");Xt(this,this.nj().C.j,!0)&&Jt(this.Hg,"gdr");2E3<=rt(this.nj().B,1)&&Jt(this.Hg,"pmx");this.rb&&Jt(this.Hg,"tvoff")};
g.k.BI=function(){return new Lt};
g.k.nj=function(){return this.EJ};
g.k.CO=function(){return new dja};
g.k.iN=function(a,b,c,d){a=At.prototype.iN.call(this,a,b,c,void 0===d?-1:d);a.fullscreen=this.Tz;a.paused=this.Pn();a.volume=c.volume;Os(a.volume)||(this.Hb++,b=this.Yh,Os(b.volume)&&(a.volume=b.volume));c=c.currentTime;a.mediaTime=void 0!==c&&0<=c?c:-1;return a};
g.k.BN=function(a){return Qs(),this.Tz?1:At.prototype.BN.call(this,a)};
g.k.vp=function(){return 1};
g.k.getDuration=function(){return this.C};
g.k.wX=function(){return this.vt?2:qja(this)?5:this.gr()?4:3};
g.k.pI=function(){return this.zb?2E3<=this.nj().G.C?4:3:2};var sjb=g.kb();Hja.prototype.reset=function(){this.j=[];this.B=[]};
var cu=Ur(Hja);g.y(fu,Ys);g.k=fu.prototype;g.k.getName=function(){return(this.B?this.B:this.j).getName()};
g.k.Ts=function(){return(this.B?this.B:this.j).Ts()};
g.k.Qq=function(){return(this.B?this.B:this.j).Qq()};
g.k.init=function(a){var b=!1;(0,g.$b)(this.C,function(c){c.initialize()&&(b=!0)});
b&&(this.D=a,Vs(this.j,this));return b};
g.k.dispose=function(){(0,g.$b)(this.C,function(a){a.dispose()});
Ys.prototype.dispose.call(this)};
g.k.oU=function(){return Ps(this.C,function(a){return a.pC()})};
g.k.qC=function(){return Ps(this.C,function(a){return a.pC()})};
g.k.dH=function(a,b,c){return new Qt(a,this.j,b,c)};
g.k.kt=function(a){this.B=a.B};var Qja={threshold:[0,.3,.5,.75,1]};g.y(gu,Qt);g.k=gu.prototype;g.k.lM=function(){var a=this;this.Y||(this.Y=ls());if(fia(298,function(){return Rja(a)}))return!0;
this.B.lj("msf");return!1};
g.k.cH=function(){if(this.C&&this.element)try{this.C.unobserve(this.element),this.K?(this.K.unobserve(this.element),this.K=null):this.G&&(this.G.disconnect(),this.G=null)}catch(a){}};
g.k.xs=function(){var a=hu(this);0<a.length&&iu(this,a);Qt.prototype.xs.call(this)};
g.k.mN=function(){};
g.k.sY=function(){return!1};
g.k.QV=function(){};
g.k.Ts=function(){var a={};return Object.assign(this.B.Ts(),(a.niot_obs=this.Y,a.niot_cbk=this.Z,a))};
g.k.getName=function(){return"nio"};g.y(ju,Ys);ju.prototype.getName=function(){return"nio"};
ju.prototype.qC=function(){return!Qs().B&&null!=this.j.j.C.IntersectionObserver};
ju.prototype.dH=function(a,b,c){return new gu(a,this.j,b,c)};g.y(ku,Us);ku.prototype.tX=function(){return Qs().j};
ku.prototype.pC=function(){var a=Tja();this.Z!==a&&(this.j!=this&&a>this.j.Z&&(this.j=this,Ws(this)),this.Z=a);return 2==a};lu.prototype.sample=function(){ou(this,du(),!1)};
lu.prototype.D=function(){var a=Ss(),b=ls();a?(ns||(os=b,g.$b(cu.j,function(c){var d=c.nj();d.Na=Mt(d,b,1!=c.bk)})),ns=!0):(this.N=Yja(this,b),ns=!1,xja=b,g.$b(cu.j,function(c){c.mD&&(c.nj().Z=b)}));
ou(this,du(),!a)};
var mu=Ur(lu);var $ja=null,Mu="",Lu=!1;var cka=bka().fp,qu=bka().hp;var fka={RDa:"visible",cpa:"audible",Ocb:"time",Rcb:"timetype"},gka={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},
audible:function(a){return"0"==a||"1"==a},
timetype:function(a){return"mtos"==a||"tos"==a},
time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}};
eka.prototype.setTime=function(a,b,c){"ms"==b?(this.C=a,this.D=-1):(this.C=-1,this.D=a);this.G=void 0===c?"tos":c;return this};g.y(vu,Nt);vu.prototype.getId=function(){return this.N};
vu.prototype.K=function(){return!0};
vu.prototype.j=function(a){var b=a.nj(),c=a.getDuration();return Ps(this.Z,function(d){if(void 0!=d.j)var e=ika(d,b);else b:{switch(d.G){case "mtos":e=d.B?b.G.C:b.C.j;break b;case "tos":e=d.B?b.G.j:b.C.j;break b}e=0}0==e?d=!1:(d=-1!=d.C?d.C:void 0!==c&&0<c?d.D*c:-1,d=-1!=d&&e>=d);return d})};g.y(wu,hja);wu.prototype.j=function(a){var b=new gja;b.j=It(a,ojb);b.B=It(a,qjb);return b};g.y(xu,Nt);xu.prototype.j=function(a){return qja(a)};g.y(yu,mja);g.y(zu,Nt);zu.prototype.j=function(a){return a.nj().gr()};g.y(Au,Ot);Au.prototype.j=function(a){var b=g.Fb(this.N,zr(Zr().Gc,"ovms"));return!a.vt&&(0!=a.bk||b)};g.y(Bu,yu);Bu.prototype.B=function(){return new Au(this.j)};
Bu.prototype.C=function(){return[new zu("viewable_impression",this.j),new xu(this.j)]};g.y(Cu,Rt);Cu.prototype.C=function(){var a=g.Xa("ima.admob.getViewability"),b=zr(this.Gc,"queryid");"function"===typeof a&&b&&a(b)};
Cu.prototype.getName=function(){return"gsv"};g.y(Du,Ys);Du.prototype.getName=function(){return"gsv"};
Du.prototype.qC=function(){var a=Qs();Zr();return a.B&&!1};
Du.prototype.dH=function(a,b,c){return new Cu(this.j,b,c)};g.y(Eu,Rt);Eu.prototype.C=function(){var a=this,b=g.Xa("ima.bridge.getNativeViewability"),c=zr(this.Gc,"queryid");"function"===typeof b&&c&&b(c,function(d){g.id(d)&&a.G++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.j=uia(d.opt_nativeViewBounds||{});var h=a.B.D;h.j=f?rjb.clone():uia(e);a.timestamp=d.opt_nativeTime||-1;Qs().j=h.j;d=d.opt_nativeVolume;void 0!==d&&(h.volume=d)})};
Eu.prototype.getName=function(){return"nis"};g.y(Fu,Ys);Fu.prototype.getName=function(){return"nis"};
Fu.prototype.qC=function(){var a=Qs();Zr();return a.B&&!1};
Fu.prototype.dH=function(a,b,c){return new Eu(this.j,b,c)};g.y(Gu,Us);g.k=Gu.prototype;g.k.pC=function(){return null!=this.B.Tn};
g.k.eX=function(){var a={};this.La&&(a.mraid=this.La);this.Ba&&(a.mlc=1);a.mtop=this.B.Xca;this.N&&(a.mse=this.N);this.Na&&(a.msc=1);a.mcp=this.B.compatibility;return a};
g.k.du=function(a){var b=g.Ia.apply(1,arguments);try{return this.B.Tn[a].apply(this.B.Tn,b)}catch(c){ks(538,c,.01,function(d){d.method=a})}};
g.k.initialize=function(){var a=this;if(this.isInitialized)return!this.dE();this.isInitialized=!0;if(2===this.B.compatibility)return this.N="ng",this.lj("w"),!1;if(1===this.B.compatibility)return this.N="mm",this.lj("w"),!1;Qs().Z=!0;this.C.document.readyState&&"complete"==this.C.document.readyState?mka(this):wt(this.C,"load",function(){Wr().setTimeout(js(292,function(){return mka(a)}),100)},292);
return!0};
g.k.mU=function(){var a=Qs(),b=rka(this,"getMaxSize");a.j=new qs(0,b.width,b.height,0)};
g.k.nU=function(){Qs().D=rka(this,"getScreenSize")};
g.k.dispose=function(){oka(this);Us.prototype.dispose.call(this)};var Qha=new function(a,b){this.key=a;this.defaultValue=void 0===b?!1:b;this.valueType="boolean"}("45378663");g.k=Iu.prototype;g.k.UH=function(a){Bt(a,!1);Lja(a)};
g.k.LI=function(){};
g.k.LF=function(a,b,c,d){var e=this;a=new Tt(Fr,a,c?b:-1,7,this.KN(),this.lW());a.Vi=d;lha(a.Gc);yr(a.Gc,"queryid",a.Vi);a.oR("");aja(a,function(){return e.DX.apply(e,g.qa(g.Ia.apply(0,arguments)))},function(){return e.o8.apply(e,g.qa(g.Ia.apply(0,arguments)))});
(d=Ur(eu).j)&&Xia(a,d);a.Pj.Lt&&Ur(Uja);return a};
g.k.Gz=function(a){switch(a.Qq()){case 0:if(a=Ur(eu).j)a=a.j,g.Hb(a.G,this),a.Y&&this.Xp()&&Aia(a);Ku();break;case 2:nu()}};
g.k.kt=function(){};
g.k.Xp=function(){return!1};
g.k.o8=function(a,b){a.vt=!0;switch(a.vp()){case 1:xka(a,b);break;case 2:this.zR(a)}};
g.k.x8=function(a){var b=a.N(a);b&&(b=b.volume,a.zb=Os(b)&&0<b);tja(a,0);return Zt(a,"start",Ss())};
g.k.LB=function(a,b,c){ou(mu,[a],!Ss());return this.wp(a,b,c)};
g.k.wp=function(a,b,c){return Zt(a,c,Ss())};
g.k.s8=function(a){return Qu(a,"firstquartile",1)};
g.k.u8=function(a){a.bb=!0;return Qu(a,"midpoint",2)};
g.k.y8=function(a){return Qu(a,"thirdquartile",3)};
g.k.p8=function(a){var b=Qu(a,"complete",4);Ut(a);return b};
g.k.q8=function(a){a.bk=3;return Zt(a,"error",Ss())};
g.k.Q_=function(a,b,c){b=Ss();if(a.Pn()&&!b){var d=a.nj(),e=ls();d.Z=e}ou(mu,[a],!b);a.Pn()&&(a.bk=1);return Zt(a,c,b)};
g.k.w8=function(a,b){b=this.LB(a,b||{},"skip");Ut(a);return b};
g.k.t8=function(a,b){Bt(a,!0);return this.LB(a,b||{},"fullscreen")};
g.k.r8=function(a,b){Bt(a,!1);return this.LB(a,b||{},"exitfullscreen")};
g.k.eR=function(a,b,c){b=a.nj();var d=ls();b.Na=Mt(b,d,1!=a.bk);ou(mu,[a],!Ss());1==a.bk&&(a.bk=2);return Zt(a,c,Ss())};
g.k.v8=function(a){ou(mu,[a],!Ss());return a.B()};
g.k.YO=function(a){ou(mu,[a],!Ss());this.L_(a);Ut(a);return a.B()};
g.k.DX=function(){};
g.k.zR=function(){};
g.k.L_=function(){};
g.k.pU=function(){};
g.k.LN=function(){};
g.k.lW=function(){this.j||(this.j=this.LN());return null==this.j?new Pt:new Bu(this.j)};
g.k.KN=function(){return new wu};g.y(Ru,Nt);Ru.prototype.j=function(a){return 4==a.pI()};g.y(Su,Ot);Su.prototype.j=function(a){a=a.pI();return 3==a||4==a};g.y(Tu,yu);Tu.prototype.B=function(){return new Su(this.j)};
Tu.prototype.C=function(){return[new Ru(this.j)]};g.y(Uu,hja);Uu.prototype.j=function(a){a&&(28===a.e&&(a=Object.assign({},a,{avas:3})),4===a.vs||5===a.vs)&&(a=Object.assign({},a,{vs:3}));var b=new gja;b.j=It(a,pjb);b.B=It(a,qjb);return b};Bka.prototype.B=function(){return g.Xa(this.j)};g.y(Vu,Iu);g.k=Vu.prototype;g.k.LI=function(a,b){var c=this,d=Ur(eu);if(null!=d.j)switch(d.j.getName()){case "nis":var e=Fka(this,a,b);break;case "gsv":e=Eka(this,a,b);break;case "exc":e=Gka(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=zka(this,a,b.opt_adElement,b.opt_osdId)));e&&1==e.vp()&&(e.N==g.Jd&&(e.N=function(f){return c.pU(f)}),Dka(this,e,b));
return e};
g.k.pU=function(a){a.B=0;a.Ga=0;if("h"==a.D||"n"==a.D){Zr();a.Za&&(Zr(),"h"!=Ou(this)&&Ou(this));var b=g.Xa("ima.common.getVideoMetadata");if("function"===typeof b)try{var c=b(a.Vi)}catch(e){a.B|=4}else a.B|=2}else if("b"==a.D)if(b=g.Xa("ytads.bulleit.getVideoMetadata"),"function"===typeof b)try{c=b(a.Vi)}catch(e){a.B|=4}else a.B|=2;else if("ml"==a.D)if(b=g.Xa("ima.common.getVideoMetadata"),"function"===typeof b)try{c=b(a.Vi)}catch(e){a.B|=4}else a.B|=2;else a.B|=1;a.B||(void 0===c?a.B|=8:null===
c?a.B|=16:g.id(c)?a.B|=32:null!=c.errorCode&&(a.Ga=c.errorCode,a.B|=64));null==c&&(c={});b=c;a.Z=0;for(var d in ijb)null==b[d]&&(a.Z|=ijb[d]);Aka(b,"currentTime");Aka(b,"duration");Os(c.volume)&&Os()&&(c.volume*=NaN);return c};
g.k.LN=function(){Zr();"h"!=Ou(this)&&Ou(this);var a=Hka(this);return null!=a?new Bka(a):null};
g.k.zR=function(a){!a.j&&a.vt&&Pu(this,a,"overlay_unmeasurable_impression")&&(a.j=!0)};
g.k.L_=function(a){a.u0&&(a.gr()?Pu(this,a,"overlay_viewable_end_of_session_impression"):Pu(this,a,"overlay_unviewable_impression"),a.u0=!1)};
g.k.DX=function(){};
g.k.LF=function(a,b,c,d){if(Rha()){var e=zr(Zr().Gc,"mm"),f={};(e=(f[$r.Z1]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[$r.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&Lka(this,e);"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"===this.C&&ks(1044,Error())}a=Iu.prototype.LF.call(this,a,b,c,d);this.D&&(b=this.G,null==a.G&&(a.G=new bja),b.j[a.Vi]=a.G,a.G.G=sjb);return a};
g.k.UH=function(a){a&&1==a.vp()&&this.D&&delete this.G.j[a.Vi];return Iu.prototype.UH.call(this,a)};
g.k.lW=function(){this.j||(this.j=this.LN());return null==this.j?new Pt:"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new Tu(this.j):new Bu(this.j)};
g.k.KN=function(){return"ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"===this.C?new Uu:new wu};
var tjb=is(193,Nka,void 0,yka);g.Va("Goog_AdSense_Lidar_sendVastEvent",tjb);var ujb=js(194,function(a,b){b=void 0===b?{}:b;a=Kka(Ur(Vu),a,b);return Mka(a)});
g.Va("Goog_AdSense_Lidar_getViewability",ujb);var vjb=is(195,function(){return Lha()});
g.Va("Goog_AdSense_Lidar_getUrlSignalsArray",vjb);var wjb=js(196,function(){return JSON.stringify(Lha())});
g.Va("Goog_AdSense_Lidar_getUrlSignalsList",wjb);var gBa=pa(["//tpc.googlesyndication.com/sodar/",""]);var cNa={F5a:0,C5a:1,z5a:2,A5a:3,B5a:4,E5a:5,D5a:6};var npa=(new Date).getTime();var Pka="://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(" "),Qka=/\bocr\b/;var Ska=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.y(Yu,g.Dd);Yu.prototype.dispose=function(){window.removeEventListener("offline",this.C);window.removeEventListener("online",this.C);this.Qn.Mj(this.G);delete Yu.instance};
Yu.prototype.Wh=function(){return this.j};
Yu.prototype.rf=function(){var a=this;this.G=this.Qn.Mi(function(){var b;return g.H(function(c){if(1==c.j)return a.j?(null==(b=window.navigator)?0:b.onLine)?c.Ia(3):g.z(c,Xu(a),3):g.z(c,Xu(a),3);a.rf();g.Aa(c)})},3E4)};$u.prototype.set=function(a,b){b=void 0===b?!0:b;0<=a&&52>a&&Number.isInteger(a)&&this.data[a]!==b&&(this.data[a]=b,this.j=-1)};
$u.prototype.get=function(a){return!!this.data[a]};var gv;g.lb(g.jv,g.I);g.k=g.jv.prototype;g.k.start=function(){this.stop();this.D=!1;var a=Vka(this),b=Wka(this);a&&!b&&this.B.mozRequestAnimationFrame?(this.j=g.td(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=Vka(this),b=Wka(this);a&&!b&&this.B.mozRequestAnimationFrame?Ad(this.j):a&&b?b.call(this.B,this.j):this.B.clearTimeout(this.j)}this.j=null};
g.k.isActive=function(){return null!=this.j};
g.k.w4=function(){this.D&&this.j&&Ad(this.j);this.j=null;this.K.call(this.G,g.kb())};
g.k.va=function(){this.stop();g.jv.Of.va.call(this)};g.lb(g.lv,g.I);g.k=g.lv.prototype;g.k.rC=0;g.k.va=function(){g.lv.Of.va.call(this);this.stop();delete this.j;delete this.B};
g.k.start=function(a){this.stop();this.rC=g.Bg(this.C,void 0!==a?a:this.Si)};
g.k.stop=function(){this.isActive()&&g.Ta.clearTimeout(this.rC);this.rC=0};
g.k.isActive=function(){return 0!=this.rC};
g.k.qU=function(){this.rC=0;this.j&&this.j.call(this.B)};g.pv.prototype[Symbol.iterator]=function(){return this};
g.pv.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.zv,g.Dd);g.k=g.zv.prototype;g.k.isPlaying=function(){return 1==this.j};
g.k.isPaused=function(){return-1==this.j};
g.k.TJ=function(){this.un("begin")};
g.k.vr=function(){this.un("end")};
g.k.onFinish=function(){this.un("finish")};
g.k.onStop=function(){this.un("stop")};
g.k.un=function(a){this.dispatchEvent(a)};var xjb=Kd(function(){var a=g.yf("DIV"),b=g.Rc?"-webkit":As?"-moz":g.Bs?"-ms":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");c={style:c};if(!nib.test("div"))throw Error("");if("DIV"in pib)throw Error("");b=void 0;var d="";if(c)for(n in c)if(Object.prototype.hasOwnProperty.call(c,n)){if(!nib.test(n))throw Error("");var e=c[n];if(null!=e){var f=void 0;var h=n;if(e instanceof Pd)e=Qd(e);else if("style"==h.toLowerCase()){if(!g.bb(e))throw Error("");if(!(e instanceof
g.ke)){var l="";for(f in e)if(Object.prototype.hasOwnProperty.call(e,f)){if(!/^[-_a-zA-Z0-9]+$/.test(f))throw Error("Name allows only [-_a-zA-Z0-9], got: "+f);var m=e[f];null!=m&&(m=Array.isArray(m)?m.map(Bba).join(" "):Bba(m),l+=f+":"+m+";")}e=l?new g.ke(l,we):fla}e=le(e)}else{if(/^on/i.test(h))throw Error("");if(h.toLowerCase()in oib)if(e instanceof g.Wd)e=g.Xd(e).toString();else if(e instanceof g.Zd)e=g.be(e);else if("string"===typeof e)e=g.ie(e).toString();else throw Error("");}f=h+'="'+gc(String(e))+
'"';d+=" "+f}}var n="<div"+d;null==b?b=[]:Array.isArray(b)||(b=[b]);!0===mib.div?n+=">":(b=Eba(b),n+=">"+g.ne(b).toString()+"</div>");n=re(n);if(qib())for(;a.lastChild;)a.removeChild(a.lastChild);a.innerHTML=g.ne(n);return""!=g.Cs(a.firstChild,"transition")});g.lb(Av,g.zv);g.k=Av.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.TJ();this.un("play");this.startTime=g.kb();this.j=1;if(xjb())return g.zs(this.B,this.K),this.C=g.Bg(this.Jba,void 0,this),!0;this.mM(!1);return!1};
g.k.Jba=function(){g.Ls(this.B);Zka(this.B,this.N);g.zs(this.B,this.D);this.C=g.Bg((0,g.gb)(this.mM,this,!1),1E3*this.G)};
g.k.stop=function(){this.isPlaying()&&this.mM(!0)};
g.k.mM=function(a){g.zs(this.B,"transition","");g.Ta.clearTimeout(this.C);g.zs(this.B,this.D);this.endTime=g.kb();this.j=0;if(a)this.onStop();else this.onFinish();this.vr()};
g.k.va=function(){this.stop();Av.Of.va.call(this)};
g.k.pause=function(){};var ala={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};Bv("Element","attributes")||Bv("Node","attributes");Bv("Element","innerHTML")||Bv("HTMLElement","innerHTML");Bv("Node","nodeName");Bv("Node","nodeType");Bv("Node","parentNode");Bv("Node","childNodes");Bv("HTMLElement","style")||Bv("Element","style");Bv("HTMLStyleElement","sheet");var ila=dla("getPropertyValue"),jla=dla("setProperty");Bv("Element","namespaceURI")||Bv("Node","namespaceURI");var hla={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var nla,Uhb,mla,lla,ola;nla=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]");Uhb=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.yjb=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.Cv=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]");mla=/^http:\/\/.*/;g.zjb=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");lla=/\s+/;ola=/[\d\u06f0-\u06f9]/;Ev.prototype.Sl=function(){return new Fv(this.B())};
Ev.prototype[Symbol.iterator]=function(){return new Gv(this.B())};
Ev.prototype.j=function(){return new Gv(this.B())};
g.y(Fv,g.Ct);Fv.prototype.next=function(){return this.B.next()};
Fv.prototype[Symbol.iterator]=function(){return new Gv(this.B)};
Fv.prototype.j=function(){return new Gv(this.B)};
g.y(Gv,Ev);Gv.prototype.next=function(){return this.C.next()};Iv.prototype.clone=function(){return new Iv(this.j,this.C,this.x1,this.y1,this.x2,this.y2,this.B,this.D)};Kv.prototype.clone=function(){return new Kv(this.start,this.end)};
Kv.prototype.getLength=function(){return this.end-this.start};(function(){if(lfb){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.pc()))?a[1]:"0"}return PY?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(g.pc()))?a[0].replace(/_/g,"."):"10"):g.UB?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.pc()))?a[1]:""):eib||fib||gib?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.pc()))?a[1].replace(/_/g,"."):""):""})();var qla=function(){if(g.jR)return Lv(/Firefox\/([0-9.]+)/);if(g.Bs||g.qD||g.HR)return Xaa;if(g.tK){if(Ic()||Jc()){var a=Lv(/CriOS\/([0-9.]+)/);if(a)return a}return Lv(/Chrome\/([0-9.]+)/)}if(g.VC&&!Ic())return Lv(/Version\/([0-9.]+)/);if(SB||TB){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.pc()))return a[1]+"."+a[2]}else if(g.aSa)return(a=Lv(/Android\s+([0-9.]+)/))?a:Lv(/Version\/([0-9.]+)/);return""}();g.lb(g.Nv,g.I);g.k=g.Nv.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.Jh(a)}return!1};
g.k.Jh=function(a){var b=this.j[a];if(b){var c=this.B[b];0!=this.D?(this.C.push(a),this.j[a+1]=function(){}):(c&&g.Hb(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];rla(this.j[h+1],this.j[h+2],d)}else{this.D++;try{for(e=0,f=c.length;e<f&&!this.Ma();e++)h=c[e],this.j[h+1].apply(this.j[h+2],d)}finally{if(this.D--,0<this.C.length&&0==this.D)for(;c=this.C.pop();)this.Jh(c)}}return 0!=e}return!1};
g.k.clear=function(a){if(a){var b=this.B[a];b&&(b.forEach(this.Jh,this),delete this.B[a])}else this.j.length=0,this.B={}};
g.k.va=function(){g.Nv.Of.va.call(this);this.clear();this.C.length=0};g.Ov.prototype.set=function(a,b){void 0===b?this.j.remove(a):this.j.set(a,g.$m(b))};
g.Ov.prototype.get=function(a){try{var b=this.j.get(a)}catch(c){return}if(null!==b)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.Ov.prototype.remove=function(a){this.j.remove(a)};g.lb(Pv,g.Ov);Pv.prototype.set=function(a,b){Pv.Of.set.call(this,a,tla(b))};
Pv.prototype.B=function(a){a=Pv.Of.get.call(this,a);if(void 0===a||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
Pv.prototype.get=function(a){if(a=this.B(a)){if(a=a.data,void 0===a)throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.lb(Qv,Pv);Qv.prototype.set=function(a,b,c){if(b=tla(b)){if(c){if(c<g.kb()){Qv.prototype.remove.call(this,a);return}b.expiration=c}b.creation=g.kb()}Qv.Of.set.call(this,a,b)};
Qv.prototype.B=function(a,b){var c=Qv.Of.B.call(this,a);if(c)if(!b&&g.ula(c))Qv.prototype.remove.call(this,a);else return c};g.lb(g.Rv,Qv);g.lb(Sv,vla);Sv.prototype[Symbol.iterator]=function(){return g.Hv(this.Sl(!0)).j()};
Sv.prototype.clear=function(){var a=Array.from(this);a=g.u(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};g.lb(Tv,Sv);g.k=Tv.prototype;g.k.isAvailable=function(){var a=this.j;if(a)try{a.setItem("__sak","1");a.removeItem("__sak");var b=!0}catch(c){b=c instanceof DOMException&&("QuotaExceededError"===c.name||22===c.code||1014===c.code||"NS_ERROR_DOM_QUOTA_REACHED"===c.name)&&a&&0!==a.length}else b=!1;return this.B=b};
g.k.set=function(a,b){Uv(this);try{this.j.setItem(a,b)}catch(c){if(0==this.j.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.k.get=function(a){Uv(this);a=this.j.getItem(a);if("string"!==typeof a&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.k.remove=function(a){Uv(this);this.j.removeItem(a)};
g.k.Sl=function(a){Uv(this);var b=0,c=this.j,d=new g.Ct;d.next=function(){if(b>=c.length)return g.t2;var e=c.key(b++);if(a)return g.Dt(e);e=c.getItem(e);if("string"!==typeof e)throw"Storage mechanism: Invalid value was encountered";return g.Dt(e)};
return d};
g.k.clear=function(){Uv(this);this.j.clear()};
g.k.key=function(a){Uv(this);return this.j.key(a)};g.lb(Vv,Tv);g.lb(wla,Tv);g.lb(Wv,Sv);Wv.prototype.set=function(a,b){this.B.set(this.j+a,b)};
Wv.prototype.get=function(a){return this.B.get(this.j+a)};
Wv.prototype.remove=function(a){this.B.remove(this.j+a)};
Wv.prototype.Sl=function(a){var b=this.B[Symbol.iterator](),c=this,d=new g.Ct;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.Dt(a?e.slice(c.j.length):c.B.get(e))};
return d};Yv.prototype.getValue=function(){return this.B};
Yv.prototype.clone=function(){return new Yv(this.j,this.B)};g.k=Zv.prototype;g.k.wh=function(a,b){var c=this.j;c.push(new Yv(a,b));a=c.length-1;b=this.j;for(c=b[a];0<a;){var d=a-1>>1;if(b[d].j>c.j)b[a]=b[d],a=d;else break}b[a]=c};
g.k.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)a.length=0;else{a[0]=a.pop();a=0;b=this.j;for(var d=b.length,e=b[a];a<d>>1;){var f=2*a+1,h=2*a+2;f=h<d&&b[h].j<b[f].j?h:f;if(b[f].j>e.j)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.k.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.An=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 Zv(this)};
g.k.isEmpty=function(){return 0===this.j.length};
g.k.clear=function(){this.j.length=0};g.y($v,Zv);$v.prototype.enqueue=function(a,b){this.wh(a,b)};aw.dh=void 0;aw.getInstance=function(){return aw.dh?aw.dh:aw.dh=new aw};
aw.prototype.j=0;var bw={},Ajb="undefined"!==typeof Uint8Array&&"undefined"!==typeof Uint16Array&&"undefined"!==typeof Int32Array;bw.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if("object"!==typeof c)throw new TypeError(c+"must be non-object");for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}}return a};
bw.oS=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
var Bjb={Ky: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]},
QW: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}},Cjb={Ky:function(a,b,c,d,e){for(var f=0;f<d;f++)a[e+f]=b[c+f]},
QW:function(a){return[].concat.apply([],a)}};
bw.Rca=function(){Ajb?(bw.Ox=Uint8Array,bw.lq=Uint16Array,bw.q2=Int32Array,bw.assign(bw,Bjb)):(bw.Ox=Array,bw.lq=Array,bw.q2=Array,bw.assign(bw,Cjb))};
bw.Rca();var Djb=!0;try{new Uint8Array(1)}catch(a){Djb=!1};var Bw={};Bw=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var f;0!==c;){f=2E3<c?2E3:c;c-=f;do e=e+b[d++]|0,a=a+e|0;while(--f);e%=65521;a%=65521}return e|a<<16|0};for(var Cw={},x2,Ejb=[],y2=0;256>y2;y2++){x2=y2;for(var Fjb=0;8>Fjb;Fjb++)x2=x2&1?3988292384^x2>>>1:x2>>>1;Ejb[y2]=x2}Cw=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^Ejb[(a^b[d])&255];return a^-1};var rw={};rw={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 kw=[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],nw=[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],Tla=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ila=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ww=Array(576);cw(ww);var xw=Array(60);cw(xw);var mw=Array(512);cw(mw);var jw=Array(256);cw(jw);var lw=Array(29);cw(lw);var ow=Array(30);cw(ow);var Qla,Rla,Sla,Pla=!1;var Hw;Hw=[new Gw(0,0,0,0,function(a,b){var c=65535;for(c>a.Dm-5&&(c=a.Dm-5);;){if(1>=a.hc){Dw(a);if(0===a.hc&&0===b)return 1;if(0===a.hc)break}a.Ab+=a.hc;a.hc=0;var d=a.Ik+c;if(0===a.Ab||a.Ab>=d)if(a.hc=a.Ab-d,a.Ab=d,yw(a,!1),0===a.ye.Je)return 1;if(a.Ab-a.Ik>=a.cj-262&&(yw(a,!1),0===a.ye.Je))return 1}a.wh=0;if(4===b)return yw(a,!0),0===a.ye.Je?3:4;a.Ab>a.Ik&&yw(a,!1);return 1}),
new Gw(4,4,8,4,Ew),new Gw(4,5,16,8,Ew),new Gw(4,6,32,32,Ew),new Gw(4,4,16,16,Fw),new Gw(8,16,32,32,Fw),new Gw(8,16,128,128,Fw),new Gw(8,32,128,256,Fw),new Gw(32,128,258,1024,Fw),new Gw(32,258,258,4096,Fw)];var Ola={};Ola=function(){this.input=null;this.Ix=this.hj=this.Mw=0;this.output=null;this.GS=this.Je=this.CA=0;this.msg="";this.state=null;this.ON=2;this.Wd=0};var Ula=Object.prototype.toString;
Iw.prototype.push=function(a,b){var c=this.ye,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:!0===b?4:0;"string"===typeof a?c.input=xla(a):"[object ArrayBuffer]"===Ula.call(a)?c.input=new Uint8Array(a):c.input=a;c.Mw=0;c.hj=c.input.length;do{0===c.Je&&(c.output=new bw.Ox(d),c.CA=0,c.Je=d);a=Nla(c,e);if(1!==a&&0!==a)return this.vr(a),this.ended=!0,!1;if(0===c.Je||0===c.hj&&(4===e||2===e))if("string"===this.options.to){var f=bw.oS(c.output,c.CA);b=f;f=f.length;if(65537>f&&(b.subarray&&
Djb||!b.subarray))b=String.fromCharCode.apply(null,bw.oS(b,f));else{for(var h="",l=0;l<f;l++)h+=String.fromCharCode(b[l]);b=h}this.chunks.push(b)}else b=bw.oS(c.output,c.CA),this.chunks.push(b)}while((0<c.hj||0===c.Je)&&1!==a);if(4===e)return(c=this.ye)&&c.state?(d=c.state.status,42!==d&&69!==d&&73!==d&&91!==d&&103!==d&&113!==d&&666!==d?a=tw(c,-2):(c.state=null,a=113===d?tw(c,-3):0)):a=-2,this.vr(a),this.ended=!0,0===a;2===e&&(this.vr(0),c.Je=0);return!0};
Iw.prototype.vr=function(a){0===a&&(this.result="string"===this.options.to?this.chunks.join(""):bw.QW(this.chunks));this.chunks=[];this.err=a;this.msg=this.ye.msg};var Kw="@@redux/INIT"+Jw(),$la="@@redux/REPLACE"+Jw();var ama="function"===typeof Symbol&&Symbol.observable||"@@observable";var Gjb=[0,Kib,-3,p2];g.y(Nw,T);Nw.prototype.getType=function(){return Ck(this,11)};
Nw.ub=[2,13,14];var G7a=function(){var a=[0,Mib,Lib,m2,Kib,m2,-1,p2,Kib,p2,-1,Mib,p2,Lib,n2,Gjb,m2,-1,p2];return function(b,c){a:{if(k2.length){var d=k2.pop();uda(d,c);d.j.init(b,void 0,void 0,c);b=d}else b=new Eh(b,c);try{var e=new Nw,f=e.ea;Rk(a)(f,b);var h=e;break a}finally{b.free()}h=void 0}return h}}();var Cxa=new g.Ow("adInfoDialogEndpoint");var Wza=new g.Ow("adPingingEndpoint");var HDa=new g.Ow("crossDeviceProgressCommand");var uFa=new g.Ow("actionCompanionAdRenderer");var gK=new g.Ow("adActionInterstitialRenderer");var Hjb=new g.Ow("adDurationRemainingRenderer");var wM=new g.Ow("adHoverTextButtonRenderer");var Axa=new g.Ow("adInfoDialogRenderer");var OM=new g.Ow("adMessageRenderer");var xM=new g.Ow("adPreviewRenderer");var wFa=new g.Ow("adsEngagementPanelRenderer");var pFa=new g.Ow("dismissablePanelTextPortraitImageRenderer");var Ijb=new g.Ow("flyoutCtaRenderer");var vFa=new g.Ow("imageCompanionAdRenderer");var fK=new g.Ow("instreamAdPlayerOverlayRenderer");var Jjb=new g.Ow("instreamAdPlayerUnderlayRenderer");var ohb=new g.Ow("instreamSurveyAdBackgroundImageRenderer");var EFa=new g.Ow("instreamSurveyAdPlayerOverlayRenderer");var pM=new g.Ow("instreamSurveyAdRenderer"),vM=new g.Ow("instreamSurveyAdSingleSelectQuestionRenderer"),uM=new g.Ow("instreamSurveyAdMultiSelectQuestionRenderer"),z2=new g.Ow("instreamSurveyAdAnswerRenderer"),Kjb=new g.Ow("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var nM=new g.Ow("instreamVideoAdRenderer");var Ljb=new g.Ow("textOverlayAdContentRenderer"),Mjb=new g.Ow("enhancedTextOverlayAdContentRenderer"),Njb=new g.Ow("imageOverlayAdContentRenderer");var LCa=new g.Ow("playerOverlayLayoutRenderer");var tFa=new g.Ow("aboveFeedAdLayoutRenderer");var zFa=new g.Ow("belowPlayerAdLayoutRenderer");var sFa=new g.Ow("inPlayerAdLayoutRenderer");var mFa=new g.Ow("playerBytesAdLayoutRenderer");var tM=new g.Ow("playerUnderlayAdLayoutRenderer");var oM=new g.Ow("adIntroRenderer");var kFa=new g.Ow("playerBytesSequentialLayoutRenderer");var LGa=new g.Ow("slidingTextPlayerOverlayRenderer");var qM=new g.Ow("surveyTextInterstitialRenderer");var Ojb=new g.Ow("simpleAdBadgeRenderer");var GL=new g.Ow("skipAdRenderer"),Pjb=new g.Ow("skipButtonRenderer");var BM=new g.Ow("adSlotRenderer");var sM=new g.Ow("squeezebackPlayerSidePanelRenderer");var Qjb=new g.Ow("timedPieCountdownRenderer");var Rjb=new g.Ow("adAvatarViewModel");var Sjb=new g.Ow("adButtonViewModel");var Tjb=new g.Ow("adPreviewViewModel");var Ujb=new g.Ow("playerAdAvatarLockupCardButtonedViewModel");var Vjb=new g.Ow("skipAdButtonViewModel");var Wjb=new g.Ow("skipAdViewModel");var Xjb=new g.Ow("visitAdvertiserLinkViewModel");var xFa=new g.Ow("bannerImageLayoutViewModel");var yFa=new g.Ow("topBannerImageTextIconButtonedLayoutViewModel");g.y(Pw,T);g.y(Qw,T);g.y(Rw,T);g.y(Sw,T);g.y(Tw,T);Tw.prototype.clearVideo=function(){return Fj(this,1)};
var IO=[1,2,3,4];var mJa={xka:0,vka:1,wka:2};var nJa={Bka:0,Aka:1,zka:2,yka:3};var rJa={Poa:0,Ooa:1,Noa:2};var GO={Sra:0,Tra:1,Qra:2,Pra:3,Nra:4,Rra:5,Ora:6,Mra:7};var qJa={Osa:0,Nsa:1,Jsa:2,Fsa:3,Msa:4,Psa:5,Isa:6,Esa:7,Hsa:8,Lsa:9,Ksa:10,Qsa:11,Gsa:12,Rsa:13};var eKa={gta:0,Tsa:1,Wsa:2,hta:3,Usa:4,Vsa:5,bta:6,eta:7,Ysa:8,Ssa:9,ata:10,fta:11,Zsa:12,Xsa:13,dta:14};var pJa={nxa:0,lxa:1,mxa:2};var dKa={S4a:0,R4a:1,Q4a:2,P4a:3};var cKa={Z4a:0,T4a:1,U4a:5,V4a:6,X4a:2,Y4a:3,W4a:4};var bKa={c5a:0,d5a:1,b5a:2,a5a:3};var aKa={h5a:0,f5a:1,g5a:2};var $Ja={Njb:0,Cjb:1,Jjb:2,Djb:3,Kjb:4,Gjb:5,Ljb:6,Hjb:7,Fjb:8,Ejb:9,Ijb:10,Mjb:11,Bjb:12};g.y(Uw,T);Uw.prototype.getType=function(){return Ck(this,1)};g.y(Vw,T);g.y(Ww,T);g.y(Xw,T);Xw.prototype.getViews=function(){return Ck(this,1)};g.y(Yw,T);g.y(Zw,T);g.y($w,T);$w.prototype.getViews=function(){return Ck(this,1)};
$w.prototype.j=function(a,b){return Rj(this,2,ui,a,b)};
$w.ub=[2];g.y(ax,T);ax.prototype.j=function(a,b){return Rj(this,3,ui,a,b)};
ax.ub=[3];g.y(bx,T);g.y(cx,T);g.y(dx,T);g.y(ex,T);g.y(fx,T);g.y(gx,T);g.y(hx,T);hx.prototype.getViews=function(){return Ck(this,1)};g.y(ix,T);g.y(jx,T);g.y(kx,T);var EO=[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17];var zJa={nma:0,rla:2,pma:3,sla:4,qla:5,dma:6,fma:58,Ela:17,gla:18,jma:15,lma:7,Lla:8,Kka:10,Lka:26,jla:45,nla:11,Dla:14,rma:16,Gka:19,Mka:20,Hka:21,tma:22,Nka:23,ola:25,Cka:27,Dka:53,Jla:28,ila:30,Ula:31,dla:32,Oka:33,Nla:34,Gla:35,Ala:36,Ika:37,ama:39,wla:41,Bla:42,yla:43,xla:44,Jka:40,Vla:46,Wla:50,zla:51,Cla:52,qma:54,Rka:57,Tka:91,Uka:93,Ska:92,bma:60,ela:67,Eka:64,kla:65,Wka:68,Fka:69,Mla:70,ula:71,tla:72,Zka:73,Yka:75,oma:76,Tla:77,Hla:78,ema:79,Zla:80,fla:81,lla:82,Xka:83,mla:84,gma:85,Yla:89,
Ila:86,Qla:87,Rla:88,Pla:90,Ola:100,Qka:94,Pka:95,Sla:96,Kla:97,hla:98,kma:99,mma:101,hma:102,Vka:103,Fla:104,Xla:105,cma:106};var xJa={Cma:0,uma:1,Bma:2,wma:3,vma:4,Ama:5,zma:6,yma:7,xma:8,Dma:9};var wJa={Kma:0,Fma:1,Ema:2,Ima:3,Lma:4,Gma:5,Hma:6,Jma:7};var yJa={Vma:0,Rma:1,Qma:2,Tma:3,Nma:4,Mma:5,Sma:6,Oma:7,Wma:8,Uma:9,Pma:10};var vJa={jna:0,ina:1,hna:2};var AJa={ZOa:0,SOa:1,VOa:2,vOa:3,XOa:4,iOa:5,OOa:6,yOa:7,YOa:8,rOa:9,LOa:10,sOa:11,QOa:12,TNa:13,COa:14,AOa:15,BOa:16,POa:17,EOa:18,NOa:19,MOa:20,IOa:21,nOa:22,UNa:23,zOa:24,GOa:25,pOa:26,oOa:27,FOa:28,VNa:29,JOa:30,uOa:31,WOa:32,hOa:33,HOa:34,gOa:35,jOa:36,kOa:37,qOa:38,mOa:39,lOa:40,KOa:41,DOa:42,ROa:43,wOa:44,TOa:45,UOa:46,xOa:47,tOa:70,dOa:48,aOa:49,fOa:50,eOa:51,cOa:52,ZNa:53,WNa:54,bOa:55,YNa:56,XNa:57,RNa:58,QNa:59,PNa:60,JNa:61,ONa:62,KNa:63,LNa:64,INa:65,MNa:66,SNa:67,NNa:68,HNa:69};var lJa={Fra:0,Ara:1,zra:18,pra:2,ira:3,ora:9,jra:10,mra:14,kra:4,hra:5,lra:6,Hra:11,nra:12,cra:13,ara:15,sra:16,Bra:17,Cra:19,Jra:20,yra:21,vra:22,xra:23,gra:24,Dra:25,fra:26,dra:34,Gra:27,ura:28,wra:29,rra:30,Era:31,Ira:32,tra:33,qra:7};var BJa={fna:0,gna:1,ana:2,bna:3,cna:4,Xma:5,Zma:6,dna:7,ena:8,Yma:9};var FO={Hna:0,tna:1,Gna:3,Ena:4,Dna:5,una:25,Ina:6,rna:7,lna:8,wna:9,kna:12,vna:22,yna:23,zna:26,Ana:27,Bna:28,Fna:24,Cna:13,Jna:14,xna:15,mna:16,pna:17,nna:18,ona:19,qna:20,sna:21};g.y(lx,T);g.y(mx,T);mx.prototype.j=function(a,b){return uk(this,1,lx,a,b)};
mx.ub=[1];g.y(nx,T);nx.prototype.j=function(a,b){return Rj(this,2,ui,a,b)};
nx.prototype.getMetrics=function(a){return Iea(this,2,a)};
nx.ub=[2];g.y(ox,T);var CJa=[1,2];g.kT=new g.Ow("browseEndpoint");var Yjb=new g.Ow("confirmDialogEndpoint");var cva=new g.Ow("rawColdConfigGroup");var bva=new g.Ow("rawHotConfigGroup");var hKa={P1a:0,O1a:1,K1a:2,I1a:3,L1a:4,J1a:5,N1a:6,M1a:7};g.qG=new g.Ow("commandExecutorCommand");g.y(px,T);g.y(qx,T);g.y(rx,T);g.y(sx,T);var FJa=[1,2,3];g.y(tx,T);g.y(ux,T);ux.prototype.B=function(a,b){return Rj(this,1,Yi,a,b)};
ux.prototype.j=function(a,b){return Rj(this,2,Yi,a,b)};
ux.prototype.Gf=function(){return wk(this,3)};
ux.ub=[1,2];g.y(vx,T);g.y(wx,T);wx.prototype.j=function(a,b){return Rj(this,1,ui,a,b)};
wx.prototype.getMetrics=function(a){return Iea(this,1,a)};
wx.ub=[1];g.y(xx,T);g.y(yx,T);g.y(zx,T);g.y(Ax,T);g.y(Bx,T);g.y(Px,T);g.y(Qx,T);g.y(Rx,T);g.y(Sx,T);g.y(Tx,T);var PJa=[1,2],SJa=[3,4,5];g.y(Ux,T);Ux.prototype.getName=function(){return wk(this,2)};g.y(Vx,T);g.y(Wx,T);g.y(Xx,T);Xx.prototype.getId=function(){return wk(this,1)};g.y(Yx,T);Yx.prototype.getType=function(){return vi(Cj(this,1))};g.y(Zx,T);Zx.prototype.getType=function(){return vi(Cj(this,1))};g.y($x,T);$x.prototype.getType=function(){return vi(Cj(this,1))};g.y(ay,T);var LO=[1,2,3,4];g.y(by,T);g.y(cy,T);g.y(dy,T);var KO=[1,2,3,4];g.y(ey,T);g.y(fy,T);fy.prototype.j=function(a,b){return uk(this,2,dy,a,b)};
fy.ub=[2];var JO=[3,4,5,6,7];g.y(gy,T);g.y(hy,T);var sKa=[1,2];g.y(iy,T);iy.prototype.getId=function(){return g.qk(this,gy,2)};g.y(jy,T);jy.prototype.j=function(a,b){return uk(this,2,iy,a,b)};
jy.ub=[2];g.y(ky,T);ky.prototype.j=function(a,b){return uk(this,1,iy,a,b)};
ky.prototype.B=function(a,b){return uk(this,2,jy,a,b)};
ky.ub=[1,2];g.y(ly,T);var HJa=[1,2,3];g.y(my,T);g.y(ny,T);ny.prototype.j=function(a,b){return Rj(this,2,ui,a,b)};
ny.ub=[2];g.y(fma,T);g.y(gma,T);g.y(hma,T);g.y(ima,T);g.y(jma,T);g.y(oy,T);oy.prototype.j=function(a,b){return Rj(this,1,ui,a,b)};
oy.ub=[1];g.y(kma,T);g.y(lma,T);g.y(mma,T);var gKa=[1,2,3];g.y(py,T);py.prototype.j=function(a,b){return uk(this,1,mma,a,b)};
py.ub=[1];g.y(nma,T);g.y(oma,T);g.y(pma,T);g.y(qy,T);qy.prototype.j=function(a,b){return uk(this,1,pma,a,b)};
qy.ub=[1];g.y(qma,T);g.y(ry,T);g.y(sy,T);sy.prototype.j=function(a,b){return uk(this,1,ry,a,b)};
sy.ub=[1];g.y(ty,T);ty.prototype.j=function(a,b){return uk(this,1,ry,a,b)};
ty.ub=[1];g.y(uy,T);g.y(vy,T);var KKa={Cib:0,ukb:1,Qkb:32,Zkb:61,nlb:67,blb:86,Okb:42,Rkb:60,Bkb:62,Xkb:73,Vkb:76,dlb:88,flb:90,tlb:99,Lkb:98,glb:100,Alb:41,Blb:69,Clb:70,Dlb:71,NVa:2,iWa:27,ANDROID:3,Pna:54,Qna:14,Yna:91,Rna:55,Sna:24,Tna:20,Una:18,Wna:21,aoa:30,doa:29,eoa:28,foa:34,Zna:36,Vna:38,IOS:5,jJa:15,tJa:92,kJa:40,mJa:25,nJa:17,oJa:19,pJa:64,qJa:66,rJa:26,vJa:22,GJa:33,HJa:68,IJa:35,sJa:53,uJa:37,lJa:39,Hgb:7,Ihb:57,Xhb:43,iib:59,Yhb:93,coa:74,pib:75,qib:85,rib:65,tib:80,uib:8,Fgb:10,wib:58,vib:63,sib:72,boa:23,dmb:11,
fmb:13,vta:12,Ggb:16,Mkb:56,alb:31,KVa:77,tGa:84,Ukb:87,vGa:89,uGa:94,JSa:95};var Zjb={x5:0,t2:1,b5:2,O2:3,z2:4,j5:5,L2:6,cV:7};g.y(wy,T);wy.prototype.t7=function(){return Bk(this,3)};
wy.prototype.B7=function(){return Bk(this,5)};
wy.prototype.Hr=function(a){return Q(this,5,a)};g.y(yy,T);g.y(sma,T);g.y(tma,T);g.y(zy,T);g.y(uma,T);uma.ub=[2];g.y(Ay,T);Ay.prototype.getDeviceId=function(){return Bk(this,6)};
Ay.prototype.getPlayerType=function(){return Ck(this,36)};
Ay.prototype.setHomeGroupInfo=function(a){return rk(this,uma,81,a)};
Ay.prototype.clearLocationPlayabilityToken=function(){return Fj(this,89)};
Ay.ub=[9,66,32,86,100,101];g.y(By,T);By.prototype.getValue=function(){return Bk(this,Vj(this,Wua,2))};
var Wua=[2,3,4,5,6];g.y(Cy,T);Cy.ub=[15,26,28];g.y(Dy,T);Dy.ub=[5];g.y(Ey,T);Ey.prototype.getToken=function(){return wk(this,2)};
Ey.prototype.setToken=function(a){return Q(this,2,a)};g.y(Fy,T);Fy.prototype.setSafetyMode=function(a){return S(this,5,a)};
Fy.ub=[12];g.y(Gy,T);Gy.prototype.vx=function(a){return rk(this,Ay,1,a)};
Gy.ub=[12];var zM=new g.Ow("thumbnailLandscapePortraitRenderer");var pKa={Q$a:0,L$a:1,O$a:2,P$a:3,M$a:4,N$a:5};var nKa={Bab:0,Aab:1,R$a:2,S$a:3,T$a:4,U$a:5,V$a:6,W$a:7,X$a:8,Z$a:9,aab:10,bab:11,cab:12,dab:13,eab:14,hab:15,jab:16,mab:17,pab:18,qab:19,rab:20,vab:21,sab:22,uab:23,wab:24,xab:25,yab:26,zab:27,oab:28,Y$a:29,iab:30,nab:31};var mKa={Lab:0,Cab:1,Dab:2,Eab:3,Fab:4,Gab:5,Hab:6,Iab:7,Jab:8,Kab:9,Mab:10};var oKa={Qab:0,Oab:1,Pab:2,Nab:3};var QJa={xsa:0,Yra:1,ysa:2,qsa:3,Ura:4,Vra:5,lsa:6,Wra:7,jsa:8,ksa:13,dsa:9,fsa:10,isa:11,zsa:12,bsa:14,hsa:15,esa:16,ssa:17,nsa:18,vsa:19,tsa:20,csa:21,usa:22,Zra:23,gsa:24,rsa:25,msa:26,wsa:27,Xra:28};var RJa={Dsa:0,Csa:1,Bsa:2,Asa:3};var iKa={fdb:0,ddb:1,edb:2};var JJa={Woa:0,Uoa:4,Toa:2,Roa:5,Soa:8,Voa:9,Qoa:3,Xoa:6,Yoa:7};var KJa={rua:0,oua:1,pua:2,sua:3,tua:4,qua:5};var IJa={Tua:0,Rua:8,Pua:2,Nua:5,Oua:9,Qua:3,Mua:4,Uua:6,Vua:7,Sua:10};var VJa={Gja:0,Eja:1,Fja:2,Ija:3,Jja:4,Hja:5};var rKa={W2a:0,P2a:1,R2a:2,V2a:3,T2a:4,S2a:6,Q2a:7,U2a:5};var $jb={yjb:0,xjb:1,sjb:2,wjb:3,ujb:4,vjb:5,tjb:6};var fKa={Sjb:0,Rjb:1,Tjb:2};var WJa={qjb:0,hjb:1,ijb:2,jjb:3,kjb:4,ljb:5,mjb:6,njb:7,ojb:8,pjb:9};var akb={Vjb:0,Ujb:1};var XJa={B$a:0,o$a:1,A$a:2,p$a:3,q$a:4,u$a:5,t$a:6,s$a:7,C$a:8,m$a:9,n$a:10,z$a:11,y$a:12,x$a:13,r$a:14,w$a:15,v$a:16};var DLa={gea:0,eea:1,dea:2,fea:3};g.bkb=new g.Ow("changeEngagementPanelVisibilityAction");var nya=new g.Ow("continuationCommand");g.ckb=new g.Ow("openPopupAction");g.A2=new g.Ow("webCommandMetadata");var aUa=new g.Ow("metadataBadgeRenderer");var mya=new g.Ow("signalServiceEndpoint");var GMa={Xja:0,Yja:1,Tja:2,Wja:3,Uja:4,Vja:5};var HMa={gka:0,cka:1,Zja:2,fka:3,hka:4,bka:5,aka:6,dka:7};g.y(Hy,T);Hy.prototype.getType=function(){return Ck(this,1)};var RO={qKa:0,rKa:1,pKa:2,lKa:3,nKa:4,oKa:5,sKa:6,mKa:7};var dkb={IVa:0,AVa:1,BVa:2,HVa:11,GVa:3,FVa:6,EVa:7,CVa:8,DVa:9,zVa:10};var ekb={OWa:0,LWa:1,NWa:2,MWa:3,KWa:4};var fkb={r0a:0,c0a:1,s0a:2,q0a:3,p0a:4,o0a:5,n0a:6,f0a:7,d0a:8,j0a:9,w0a:10,e0a:11,l0a:12,u0a:13,v0a:14,m0a:15,i0a:16,h0a:17,k0a:18,g0a:19,t0a:20};var EJa={A0a:0,z0a:86};var SO={o3a:0,n3a:1,g3a:2,d3a:3,f3a:4,p3a:5,m3a:6,b3a:7,q3a:8,Z2a:9,k3a:10,r3a:11,l3a:12,c3a:13,Y2a:14,e3a:15,i3a:16,h3a:17,j3a:18,a3a:19};var gkb={i$a:0,d$a:1,k$a:2,e$a:3,j$a:4,g$a:5,h$a:6,f$a:7};var hF=new g.Ow("innertubeCommand");var Dhb=new g.Ow("loggingDirectives");var hkb={F2:0,C2:1,E2:2,D2:3};var fqa={F2:"EMBEDDED_PLAYER_MODE_UNKNOWN",C2:"EMBEDDED_PLAYER_MODE_DEFAULT",E2:"EMBEDDED_PLAYER_MODE_PFP",D2:"EMBEDDED_PLAYER_MODE_PFL"};var zUa=new g.Ow("channelThumbnailEndpoint");var yUa=new g.Ow("embeddedPlayerErrorMessageRenderer");var uUa=new g.Ow("embeddedPlayerOverlayVideoDetailsRenderer"),AUa=new g.Ow("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),BUa=new g.Ow("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var YTa=new g.Ow("embedsInfoPanelRenderer");var TJa={nRa:0,bRa:14,lRa:15,mRa:16,cRa:17,gRa:18,iRa:19,eRa:20,fRa:21,kRa:22,hRa:23,jRa:24,dRa:25};var ikb=new g.Ow("feedbackEndpoint");var jkb=new g.Ow("callToActionButtonViewModel");g.y(vma,T);g.y(wma,T);g.y(xma,T);var SLa=[1,2];var kkb={AKa:0,BKa:1,zKa:2,uKa:3,tKa:4,vKa:5,xKa:6,wKa:7,yKa:8};var lkb={VKa:0,JKa:1,UKa:2,TKa:3,EKa:4,GKa:5,HKa:6,FKa:7,NKa:8,KKa:9,LKa:10,MKa:16,CKa:11,WKa:12,DKa:13,RKa:14,IKa:15,SKa:17,OKa:18,PKa:19,QKa:20};var mkb={aLa:0,XKa:1,ZKa:2,YKa:3};var nkb={HHa:0,oHa:1,IHa:8,zHa:16,AHa:17,DHa:2,BHa:3,CHa:4,rHa:5,pHa:6,qHa:7,GHa:9,EHa:10,FHa:11,yHa:12,vHa:13,xHa:14,wHa:15,uHa:18,sHa:19,tHa:20,nHa:21};var okb={T_a:0,U_a:1,S_a:2};var pkb={a0a:0,W_a:1,Y_a:2,V_a:3,X_a:4,Z_a:5};var qkb={pLa:0,gLa:1,hLa:2,iLa:3,nLa:4,kLa:5,lLa:6,jLa:7,mLa:8,fLa:9,oLa:10};var rkb={RPa:0,NPa:1,APa:2,MPa:3,vPa:4,KPa:5,JPa:6,IPa:7,UPa:8,CPa:9,wPa:10,DPa:11,EPa:12,xPa:13,HPa:14,TPa:15,GPa:16,FPa:17,yPa:18,zPa:19,BPa:20,OPa:21,PPa:22,QPa:23,SPa:24,LPa:25};var skb={qQa:0,mQa:9,gQa:8,sQa:1,xQa:2,vQa:3,wQa:13,nQa:4,iQa:21,jQa:20,kQa:5,cQa:6,bQa:7,eQa:14,dQa:15,zQa:17,AQa:10,lQa:16,fQa:18,pQa:19,ZPa:11,aQa:12,tQa:22,uQa:23,YPa:24,rQa:25,XPa:26,yQa:27,hQa:28,oQa:29};var tkb={Bqa:0,zqa:1,Aqa:2};var ukb={lPa:0,dPa:1,gPa:2,jPa:3,ePa:4,bPa:5,hPa:6,iPa:7,aPa:8,kPa:9,fPa:10,cPa:11};var vkb={Eqa:0,Cqa:1,Fqa:2,Dqa:3};var wkb=new g.Ow("interactionLoggingCommandMetadata");var Csa={Jkb:"WEB_DISPLAY_MODE_UNKNOWN",Fkb:"WEB_DISPLAY_MODE_BROWSER",Hkb:"WEB_DISPLAY_MODE_MINIMAL_UI",Ikb:"WEB_DISPLAY_MODE_STANDALONE",Gkb:"WEB_DISPLAY_MODE_FULLSCREEN"};g.y(yma,T);g.y(zma,T);g.y(Iy,T);Iy.prototype.j=function(a,b){return uk(this,1,zma,a,b)};
Iy.ub=[1];var dNa={Wea:0,xea:1,Hea:2,Mea:3,Sea:4,Tea:5,Xea:6,Nea:7,wea:8,Eea:9,Dea:10,hea:11,Gea:12,rea:14,Aea:15,Lea:16,Kea:17,Jea:43,Fea:18,yea:29,Bea:19,oea:20,tea:21,Vea:22,iea:23,Zea:24,Cea:25,pea:26,Pea:27,qea:28,Qea:30,Rea:31,Iea:32,Uea:33,jea:34,Oea:35,afa:36,mea:37,nea:38,Yea:39,uea:40,vea:41,lea:42,zea:44,sea:45};var xkb={eua:0,cua:1,aua:2};g.y(Ama,T);g.y(Bma,T);var ykb={Dha:0,xha:114,tga:1,rha:4,sha:14,ega:15,tha:17,Pfa:6,Sfa:7,Ufa:8,Tfa:9,cga:5,Mga:16,Iga:101,qha:20,pha:26,fha:28,iga:104,Afa:105,Eha:50,oha:88,iha:89,lha:90,jha:91,jga:2,zga:92,Aga:19,Dfa:25,zha:107,Rfa:29,nga:93,pga:94,oga:95,Bha:30,Jga:31,yga:116,wga:3,qga:82,lga:83,kga:84,vga:85,hha:11,Fha:27,Nga:10,wha:115,xfa:12,zfa:13,yfa:49,wfa:106,Nfa:18,Hga:21,Yfa:22,vfa:23,nha:24,lfa:32,Fga:33,pfa:34,Mha:35,Kfa:36,Vga:37,gga:38,yha:39,uha:40,vha:41,Hha:42,Ofa:43,Cha:44,fga:45,Xfa:46,Oga:47,Kga:48,
rga:51,dga:52,Qfa:53,gha:54,hga:55,Cfa:56,Jfa:57,Lfa:99,Bfa:58,Sga:59,Zfa:60,Tga:61,Pga:62,Cga:63,Lha:64,Iha:65,Gha:66,Kha:67,Jha:68,kfa:69,Rga:70,Wga:71,Xga:72,aha:73,bha:74,Yga:75,Zga:117,Gfa:76,Ifa:77,sfa:78,Mfa:79,xga:80,aga:81,Efa:86,ufa:87,nfa:97,mfa:103,Bga:98,Uga:100,qfa:102,eha:108,dha:109,ofa:110,tfa:111,Dga:112,cha:113,Vfa:118,Aha:119,Gga:120,Ega:121,Wfa:122,mha:123,rfa:124,Qga:125,Lga:126,Ffa:127,Hfa:128};var zkb={bia:0,Vha:1,Xha:2,Zha:3,Tha:4,Oha:5,Qha:6,Sha:7,Yha:8,Pha:9,Rha:10,Wha:13,aia:14,Nha:11,Uha:12};var Akb={Zia:0,fia:1,gia:2,iia:3,qia:4,Tia:42,Lia:9,Uia:10,oia:11,Ria:12,Qia:13,yia:43,Kia:14,zia:15,Xia:47,Bia:46,Gia:16,Fia:17,jia:18,Oia:19,mia:20,Pia:21,Yia:22,Via:23,Wia:24,lia:25,hia:26,Sia:27,Dia:28,Iia:38,Jia:39,Hia:49,Nia:5,Aia:6,pia:7,uia:8,Eia:29,Mia:30,Cia:31,cia:32,via:33,tia:34,ria:35,bja:36,xia:37,aja:40,wia:41,dia:44,sia:45,kia:48};var qMa={gja:0,fja:1,cja:2,eja:3,dja:4};var oMa={Bua:0,yua:1,xua:2,Aua:3,zua:4};var Bkb={eva:0,cva:1,Zua:2,dva:3,ava:4,bva:5};var Ckb={hva:0,fva:1,gva:2};var Dkb={qva:0,pva:1,nva:2,ova:3,mva:4};var Ekb={tva:0,rva:1,sva:2,uva:3};var Fkb={Ava:0,vva:1,zva:2,yva:3,xva:4,wva:5};var Gkb={Gva:0,Fva:1,Bva:2};var Hkb={Eva:0,Cva:1,Dva:2};var Ikb={Jva:0,Hva:1,Iva:2};var Jkb={Xva:0,Tva:1,Sva:2,Nva:3,Rva:4,Lva:5,Mva:6,Uva:7,Ova:8,Vva:9,Qva:10,Kva:11,Pva:12,Wva:13};var Kkb={dwa:0,bwa:1,cwa:2,Zva:3,Yva:4};var nMa={YMa:0,uMa:1,vMa:2,DLa:3,lMa:4,wMa:5,mMa:6,ELa:7,xMa:8,wLa:9,xLa:10,MLa:11,CLa:12,FLa:13,oMa:14,KLa:15,vLa:16,NMa:17,jMa:18,GLa:19,rMa:20,pMa:21,qMa:22,uLa:23,WMa:25,MMa:26,DNa:61,bMa:35,QLa:36,OLa:37,VLa:38,WLa:113,TLa:93,ULa:114,ZLa:39,YLa:115,XLa:40,fMa:41,TMa:97,UMa:106,VMa:102,cMa:42,aMa:43,gMa:44,hMa:45,zLa:24,ALa:27,BLa:28,vNa:29,yNa:75,wNa:104,xNa:30,pNa:98,sNa:108,qNa:105,rNa:89,zNa:31,ANa:86,tNa:32,uNa:91,dNa:51,fNa:52,oNa:62,hNa:70,lNa:63,jNa:64,eNa:65,nNa:66,gNa:71,kNa:67,iNa:68,
mNa:69,CNa:33,dMa:46,eMa:47,OMa:49,PMa:50,QMa:94,GMa:77,zMa:78,yMa:79,AMa:80,nMa:53,ZMa:54,bNa:55,aNa:56,IMa:112,HMa:57,JMa:101,LMa:110,KMa:96,cNa:58,sMa:59,tMa:60,BMa:72,CMa:107,FMa:84,DMa:92,ILa:73,RMa:74,yLa:76,XMa:81,PLa:82,SMa:83,RLa:85,SLa:95,BNa:87,kMa:88,LLa:90,EMa:99,NLa:100,HLa:103,JLa:109,iMa:111};var rMa={v2:0,Ata:1,tLa:2,kua:3,m5:4,n5:5,C4a:6,s5a:7,i1a:8,C5:9,Bta:10,jja:11,mja:12,kkb:13,Aja:14,Cja:15,uja:16,vja:17,nja:18,iqa:19,nya:20,mIa:21,cJa:22,D5:23,Qcb:24,ija:25,lUa:26,kUa:47,r5:27,hqa:28,B4a:29,hEa:30,lIa:31,Zta:32,bjb:33,Uib:34,Rib:35,Zib:36,ajb:37,Wib:38,Xib:39,Yib:40,Tib:41,Sib:42,yqa:43,c5:44,upa:45,X1:46,ffa:48,M2:49,Kcb:50,kxa:51,CQa:52,Nmb:53};var Lkb={YZa:0,NZa:1,SZa:2,QZa:3,RZa:4,MZa:5,WZa:6,XZa:7,LZa:8,UZa:9,OZa:10,PZa:11,TZa:12,VZa:13};var Mkb={d_a:0,e_a:1,ZZa:2,a_a:3,c_a:4,b_a:5};var mMa={F_a:0,A_a:1,v_a:2,w_a:3,x_a:21,q_a:4,k_a:5,n_a:6,m_a:7,p_a:8,l_a:24,E_a:9,j_a:10,D_a:11,C_a:12,u_a:22,z_a:13,y_a:20,r_a:14,t_a:15,s_a:16,i_a:17,h_a:19,o_a:18,g_a:23,B_a:25};var tMa={I9a:0,C9a:1,D9a:14,F9a:15,H9a:20,G9a:21,q9a:2,y9a:3,v9a:4,w9a:5,n9a:6,z9a:7,u9a:8,r9a:9,p9a:10,B9a:11,x9a:12,A9a:13,o9a:16,E9a:17,t9a:18,s9a:19};var Nkb={U9a:0,T9a:1,M9a:2,N9a:3,R9a:4,Q9a:5,S9a:6,O9a:7,P9a:8};var uMa={dfb:0,afb:1,cfb:2,bfb:3,Ueb:4,Yeb:5,Xeb:6,Web:8,Veb:9,Zeb:7};var QO={Dgb:0,efb:1,Nfb:2,xgb:3,sgb:4,nfb:5,Yfb:6,Cfb:7,fgb:8,Vfb:9,pgb:10,ugb:11,hgb:12,ofb:13,Wfb:14,Afb:15,lfb:16,Tfb:17,ggb:18,tgb:19,xfb:20,Ffb:21,Bgb:22,Agb:57,Efb:23,wfb:24,mfb:25,Cgb:26,Rfb:27,vgb:28,wgb:29,agb:30,zgb:31,zfb:32,igb:33,Jfb:34,Lfb:35,Ufb:36,Sfb:37,kgb:38,Xfb:39,Egb:40,Gfb:41,Hfb:42,Ifb:43,jfb:44,ifb:45,hfb:46,ffb:58,gfb:59,ngb:47,ogb:48,bgb:67,cgb:68,Bfb:49,jgb:50,mgb:51,lgb:52,Pfb:53,ufb:54,ygb:55,Kfb:56,dgb:60,Ofb:61,Dfb:62,qgb:63,yfb:64,Qfb:69,pfb:65,kfb:66,tfb:70,sfb:71,
Zfb:74,vfb:72,egb:73,rfb:75,qfb:76,Mfb:77};g.y(Cma,T);g.y(Dma,T);g.y(Jy,T);Jy.prototype.uh=function(){return Bk(this,1)};g.y(Ema,T);g.y(Fma,T);g.y(Gma,T);var wMa=[1,2];g.y(Ky,T);Ky.prototype.getType=function(){return Ck(this,1)};
var vMa=[3,4];g.y(Ly,T);g.k=Ly.prototype;g.k.Mv=function(){return Bk(this,1)};
g.k.U5=function(a,b){return uk(this,2,Ky,a,b)};
g.k.V5=function(a,b){return uk(this,3,Ky,a,b)};
g.k.T5=function(a,b){return uk(this,4,Ky,a,b)};
g.k.X5=function(a,b){return uk(this,5,Ky,a,b)};
g.k.W5=function(a,b){return uk(this,6,Ky,a,b)};
Ly.ub=[2,3,4,5,6];g.y(My,T);My.prototype.getType=function(){return Ck(this,2)};
My.prototype.j=function(a,b){return Rj(this,5,ui,a,b)};
My.ub=[5];g.y(Ny,T);Ny.prototype.B=function(a,b){return Rj(this,2,ui,a,b)};
Ny.prototype.j=function(a,b){return uk(this,4,Ky,a,b)};
Ny.prototype.D=function(a,b){return uk(this,5,Ky,a,b)};
Ny.prototype.C=function(a,b){return uk(this,6,Ky,a,b)};
Ny.ub=[2,4,5,6];g.y(Oy,T);Oy.prototype.getType=function(){return Ck(this,2)};g.y(Py,T);Py.prototype.j=function(a,b){return uk(this,1,Oy,a,b)};
Py.ub=[1];g.y(Hma,T);g.y(Qy,T);Qy.prototype.j=function(a,b){return Rj(this,1,ui,a,b)};
Qy.ub=[1];g.y(Ry,T);Ry.prototype.j=function(a,b){return Rj(this,1,ui,a,b)};
Ry.prototype.B=function(a,b){return Rj(this,2,ui,a,b)};
Ry.ub=[1,2];g.y(Sy,T);Sy.prototype.j=function(a,b){return uk(this,2,Qy,a,b)};
Sy.ub=[2];g.y(Ty,T);g.y(Ima,T);g.y(Uy,T);Uy.prototype.uh=function(){return Bk(this,1)};
Uy.prototype.j=function(a,b){return uk(this,3,Ima,a,b)};
Uy.ub=[3];g.y(Vy,T);Vy.prototype.Xg=function(){return Ck(this,1)};g.y(Wy,T);Wy.prototype.wf=function(){return Ck(this,2)};g.y(Jma,T);g.y(Kma,T);g.y(Xy,T);Xy.prototype.getType=function(){return Ck(this,1)};
Xy.prototype.uh=function(){return Bk(this,8)};g.y(Yy,T);Yy.prototype.uh=function(){return Bk(this,1)};g.y(Zy,T);Zy.prototype.uh=function(){return Bk(this,1)};g.y($y,T);$y.prototype.uh=function(){return Bk(this,1)};g.y(az,T);az.prototype.uh=function(){return Bk(this,2)};
az.prototype.nI=function(){return Bk(this,4)};g.y(bz,T);bz.prototype.uh=function(){return Bk(this,1)};g.y(cz,T);cz.prototype.uh=function(){return Bk(this,1)};g.y(dz,T);g.y(Lma,T);g.y(Mma,T);g.y(ez,T);ez.prototype.uh=function(){return Bk(this,2)};g.y(Nma,T);g.y(Oma,T);g.y(Pma,T);var B2=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];g.y(fz,T);g.y(Qma,T);g.y(Rma,T);g.y(Sma,T);g.y(gz,T);gz.prototype.getState=function(){return Ck(this,1)};
gz.prototype.Bc=function(a){return S(this,1,a)};g.y(Tma,T);g.y(hz,T);hz.prototype.j=function(a,b){return uk(this,1,Tma,a,b)};
hz.ub=[1];g.y(iz,T);iz.prototype.j=function(a,b){return uk(this,2,hz,a,b)};
iz.prototype.B=function(a,b){return uk(this,3,Sma,a,b)};
iz.ub=[2,3];g.y(jz,T);jz.prototype.B=function(a,b){return uk(this,1,iz,a,b)};
jz.prototype.j=function(a,b){return uk(this,2,Rma,a,b)};
jz.ub=[1,2];g.y(Uma,T);g.y(kz,T);g.y(Vma,T);g.y(lz,T);lz.prototype.hm=function(){return Gea(this,4)};g.y(mz,T);mz.prototype.getStatus=function(){return yk(this,2)};g.y(Wma,T);g.y(nz,T);nz.prototype.setConfig=function(a){return rk(this,Wma,2,a)};g.y(Xma,T);g.y(oz,T);oz.prototype.getValue=function(){return Bk(this,2)};g.y(Yma,T);g.y(Zma,T);g.y($ma,T);g.y(pz,T);pz.prototype.j=function(a,b){return uk(this,3,$ma,a,b)};
pz.ub=[3];g.y(ana,T);g.y(qz,T);g.y(rz,T);g.y(sz,T);g.k=sz.prototype;g.k.getSettings=function(){return g.qk(this,rz,1)};
g.k.kh=function(a){return rk(this,rz,1,a)};
g.k.getState=function(){return Ck(this,2)};
g.k.Bc=function(a){return S(this,2,a)};
g.k.hm=function(){return Ak(this,3)};g.y(bna,T);g.y(tz,T);tz.prototype.hm=function(){return Ak(this,4)};g.y(cna,T);g.y(uz,T);g.k=uz.prototype;g.k.getType=function(){return Ck(this,1)};
g.k.P5=function(a,b){return uk(this,2,cna,a,b)};
g.k.hm=function(){return Ak(this,6)};
g.k.getPlaybackRate=function(){return Hea(this,7)};
g.k.setPlaybackRate=function(a){return Ik(this,7,a)};
g.k.setEnabled=function(a){return Dk(this,8,a)};
uz.ub=[2];g.y(vz,T);vz.prototype.hm=function(){return Ak(this,3)};g.y(wz,T);wz.prototype.j=function(a,b){return uk(this,1,uz,a,b)};
wz.prototype.B=function(a,b){return uk(this,2,vz,a,b)};
wz.ub=[1,2];g.y(xz,T);xz.prototype.getState=function(){return Ck(this,1)};
xz.prototype.Bc=function(a){return S(this,1,a)};g.y(g.yz,T);g.y(g.zz,T);g.k=g.zz.prototype;g.k.vx=function(a){return S(this,1,a)};
g.k.M5=function(a,b){return uk(this,4,wz,a,b)};
g.k.setComposition=function(a,b){Cea(this,4,wz,b,a,!1,1);return this};
g.k.getDeviceInfo=function(){return g.qk(this,qz,8)};
g.k.Sv=da(0);g.k.jc=function(){return g.qk(this,ana,12)};
g.zz.ub=[4];g.y(Az,T);Az.prototype.Gf=function(){return Ck(this,4)};g.y(Bz,T);Bz.prototype.j=function(a,b){return Rj(this,1,ui,a,b)};
Bz.prototype.Bg=function(a,b){zea(this,1,ui,a,b,Fea)};
Bz.ub=[1];g.y(Cz,T);g.k=Cz.prototype;g.k.oe=function(){return Bk(this,1)};
g.k.setVideoId=function(a){return Q(this,1,a)};
g.k.getPlaylistId=function(){return Bk(this,2)};
g.k.getPlaylistIndex=function(){return zk(this,3)};
g.k.getPlayerType=function(){return Ck(this,5)};g.y(dna,T);g.y(Dz,T);Dz.prototype.j=function(a,b){return uk(this,4,oz,a,b)};
Dz.prototype.B=function(a,b){return Rj(this,5,Xda,a,b)};
Dz.ub=[4,5];g.y(Ez,T);g.y(Fz,T);g.y(ena,T);g.y(Gz,T);Gz.prototype.Gf=function(){return Bk(this,2)};g.y(Hz,T);Hz.prototype.j=function(a,b){return uk(this,1,Gz,a,b)};
Hz.ub=[1];g.y(Iz,T);Iz.prototype.Gf=function(){return Bk(this,2)};g.y(Jz,T);Jz.prototype.j=function(a,b){return uk(this,1,Iz,a,b)};
Jz.ub=[1];g.y(fna,T);var NLa=[1,2,3];g.y(Kz,T);Kz.prototype.j=function(a,b){return uk(this,1,fna,a,b)};
Kz.ub=[1];g.y(Lz,T);var gF=[2,3,4,5];g.y(Mz,T);Mz.prototype.getMessage=function(){return Bk(this,1)};g.y(Nz,T);g.y(Oz,T);g.y(gna,T);g.y(Pz,T);Pz.prototype.Lj=function(a,b){return uk(this,5,gna,a,b)};
Pz.ub=[5];g.y(hna,T);g.y(Qz,T);Qz.prototype.j=function(a,b){return uk(this,3,hna,a,b)};
Qz.prototype.B=function(a,b){return Rj(this,4,ui,a,b)};
Qz.ub=[3,4];g.y(ina,T);g.y(jna,T);g.y(Rz,T);Rz.prototype.B=function(a,b){return uk(this,19,tma,a,b)};
Rz.prototype.j=function(a,b){return uk(this,20,sma,a,b)};
Rz.ub=[19,20];g.y(Sz,T);g.y(kna,T);g.y(Tz,T);Tz.prototype.j=function(a,b){return uk(this,2,Sz,a,b)};
Tz.prototype.setConfig=function(a){return rk(this,kna,3,a)};
Tz.prototype.C=function(a,b){return uk(this,5,Sz,a,b)};
Tz.prototype.B=function(a,b){return uk(this,9,xma,a,b)};
Tz.ub=[2,5,9];g.y(Uz,T);Uz.prototype.hm=function(){return Gea(this,2)};g.y(Vz,T);Vz.prototype.j=function(a,b){return uk(this,9,Uz,a,b)};
Vz.ub=[9];g.y(lna,T);g.y(mna,T);g.y(nna,T);g.y(ona,T);g.y(Wz,T);Wz.prototype.getType=function(){return Ck(this,2)};
Wz.prototype.j=function(a,b){return uk(this,3,ona,a,b)};
Wz.ub=[3];g.y(Xz,T);Xz.prototype.j=function(a,b){return uk(this,10,Uma,a,b)};
Xz.prototype.B=function(a,b){return uk(this,17,Vz,a,b)};
Xz.ub=[10,17];g.y(pna,T);var ALa={Koa:0,Joa:1,Goa:2,Hoa:3,Ioa:4};var Okb={Upa:0,Qpa:1,Spa:2,Rpa:3,Tpa:4};var Pkb={gqa:0,dqa:1,cqa:2,eqa:3,bqa:4,Zpa:5,aqa:6,fqa:7,Ypa:8,Wpa:9,Vpa:10,Xpa:11};g.y(Yz,T);g.k=Yz.prototype;g.k.Gf=function(){return Bk(this,2)};
g.k.uh=function(){return Bk(this,3)};
g.k.O5=function(a,b){return Rj(this,10,ui,a,b)};
g.k.nI=function(){return Bk(this,7)};
g.k.hm=function(){return yk(this,11)};
Yz.ub=[10];var RKa={kqa:0,jqa:1,mqa:2,lqa:3};var QKa={wqa:0,vqa:1,oqa:2,pqa:3,qqa:4,rqa:5,tqa:6,uqa:7,nqa:8,sqa:9};var fLa={jya:0,kya:3,lya:1,iya:2};var MKa={Aza:0,tya:1,Cya:2,Eya:3,Hya:4,Iya:5,Nya:6,Oya:7,Pya:8,Qya:9,Rya:10,Uya:11,Vya:12,Wya:13,Xya:14,Yya:15,eza:16,iza:17,jza:18,mza:19,oza:20,qza:21,rza:22,tza:23,vza:24,Bza:25,Cza:26,gza:27,wza:28,hza:29,Tya:30,Kya:31,Sya:32,Gza:33,Iza:34,sya:35,zya:36,xza:37,yza:38,Dya:39,aza:40,bza:51,yya:41,uya:42,Fya:43,cza:44,Aya:45,fza:46,pza:47,xya:48,lza:49,dza:50,Bya:52,Gya:53,Jya:54,sza:55,uza:56,Eza:57,Dza:58,nza:59,vya:60,Lya:61,wya:62,Fza:63,Hza:64,kza:65,Mya:66,Zya:67};var PKa={rDa:0,kAa:1,ZBa:2,oDa:3,LDa:4,SBa:5,aCa:6,tAa:7,wAa:8,vAa:9,oCa:10,RBa:11,QBa:12,yCa:13,KCa:14,pDa:15,FDa:16,sAa:17,Sza:18,hBa:19,HAa:20,XBa:21,eCa:22,qDa:23,Uza:24,Xza:25,tCa:26,PAa:116,kBa:27,lBa:28,nCa:29,nAa:30,dBa:31,WBa:32,mCa:33,Qza:34,Rza:35,Oza:36,Pza:37,bCa:38,cCa:39,BCa:40,rAa:41,JDa:42,rCa:43,lCa:44,pCa:45,TBa:46,qCa:47,YAa:48,CAa:49,BAa:160,NDa:50,jBa:51,iBa:52,EAa:53,FAa:54,lDa:55,kDa:56,jDa:57,mDa:58,MAa:59,ZAa:60,EDa:61,xCa:62,sCa:63,vCa:64,dCa:65,fBa:69,gBa:121,MDa:70,cBa:71,
fDa:72,gDa:73,zCa:74,ACa:75,bBa:76,aBa:77,kCa:78,jCa:80,Lza:81,cAa:115,aAa:120,bAa:122,jAa:123,nBa:124,mBa:125,Zza:126,OCa:127,MCa:128,NCa:129,KDa:130,Nza:131,Yza:132,Vza:133,eBa:152,XAa:178,GAa:179,uCa:181,WAa:193,qAa:198,HDa:212,fAa:213,qBa:82,sBa:83,IBa:84,tBa:85,OBa:86,rBa:87,vBa:88,CBa:89,FBa:90,KBa:91,HBa:92,JBa:93,pBa:94,wBa:95,GBa:96,yBa:97,xBa:98,oBa:99,uBa:100,LBa:101,DBa:102,PBa:103,MBa:104,ABa:105,NBa:106,EBa:107,BBa:118,zBa:214,tDa:108,xDa:109,wDa:110,vDa:111,yDa:112,uDa:113,sDa:114,
Mza:134,Wza:138,dAa:139,eAa:140,iAa:141,oAa:142,uAa:144,xAa:165,pAa:143,DAa:135,JAa:145,KAa:146,YBa:147,ADa:148,CDa:149,GDa:150,iDa:153,Jza:154,BDa:155,IDa:156,Tza:157,IAa:158,PCa:159,RAa:161,Kza:162,LCa:163,nDa:164,QAa:166,LAa:167,iCa:168,OAa:169,NAa:170,hCa:171,wCa:172,TAa:173,SAa:210,hAa:174,UAa:175,GCa:176,VAa:177,lAa:182,eDa:183,dDa:184,VBa:136,UBa:137,hDa:151,zAa:180,AAa:190,yAa:192,DCa:185,FCa:186,ECa:187,CCa:191,gAa:188,zDa:189,fCa:194,gCa:199,ZCa:66,UCa:67,VCa:117,aDa:68,cDa:197,WCa:195,
bDa:196,QCa:201,XCa:202,RCa:203,JCa:204,ICa:205,HCa:206,SCa:207,TCa:208,YCa:209,mAa:200,DDa:211};var Qkb={zta:0,yta:1,wta:2,xta:3};var oNa={r7a:0,b8a:1,j8a:2,M7a:3,N7a:4,O7a:5,l8a:39,m8a:6,h8a:7,a8a:50,k8a:69,c8a:70,d8a:71,W7a:74,P7a:32,Q7a:44,R7a:33,i8a:8,S7a:9,T7a:10,V7a:11,U7a:12,X7a:73,Y7a:77,Z7a:78,g8a:84,e8a:87,f8a:88,s7a:56,t7a:57,u7a:58,v7a:59,w7a:60,x7a:61,N8a:13,O8a:14,P8a:15,X8a:16,S8a:17,Z8a:18,Y8a:19,U8a:20,V8a:21,Q8a:34,W8a:35,T8a:36,R8a:49,B7a:37,C7a:38,E7a:40,G7a:41,F7a:42,H7a:43,I7a:51,D7a:52,A7a:67,y7a:22,z7a:23,q8a:24,w8a:25,x8a:62,v8a:26,t8a:27,p8a:48,n8a:53,o8a:63,y8a:66,s8a:54,u8a:68,z8a:72,r8a:76,K7a:64,
J7a:65,A8a:28,D8a:29,C8a:30,B8a:31,K8a:45,M8a:46,L8a:47,J8a:83,H8a:55,F8a:79,E8a:80,G8a:81,I8a:82,L7a:86};var lNa={b9a:0,c9a:1,a9a:2};var qNa={f9a:0,e9a:1,d9a:2};var pNa={m9a:0,k9a:1,i9a:2,l9a:3,g9a:4,h9a:5,j9a:6};var VMa={Ecb:0,Dcb:1,Ccb:2};var UMa={Icb:0,Gcb:1,Fcb:2,Hcb:3};g.y(qna,T);g.y(rna,T);g.y(sna,T);g.y(tna,T);g.y(una,T);g.y(Zz,T);Zz.prototype.hasFeature=function(){return null!=vi(Cj(this,2))};g.y(vna,T);g.y(wna,T);g.y(xna,T);g.y($z,T);$z.prototype.getName=function(){return Ck(this,1)};
$z.prototype.getStatus=function(){return Ck(this,2)};
$z.prototype.getState=function(){return Ck(this,3)};
$z.prototype.Bc=function(a){return S(this,3,a)};g.y(aA,T);aA.prototype.j=function(a,b){return uk(this,2,$z,a,b)};
aA.ub=[2];g.y(yna,T);g.y(bA,T);bA.prototype.j=function(a,b){return uk(this,1,aA,a,b)};
bA.prototype.B=function(a,b){return uk(this,2,aA,a,b)};
bA.ub=[1,2];var kNa={dLa:0,bLa:1,cLa:2};var SMa={BRa:0,vRa:1,yRa:2,CRa:3,wRa:4,xRa:5,zRa:6,ARa:7};var TMa={FRa:0,ERa:1,DRa:2};var RMa={PVa:0,QVa:1,OVa:2};var QMa={gWa:0,TVa:1,cWa:2,hWa:3,eWa:4,WVa:5,SVa:6,UVa:7,VVa:8,fWa:9,dWa:10,XVa:11,aWa:12,bWa:13,ZVa:14,YVa:15,RVa:16};var NMa={kbb:0,fbb:1,jbb:2,hbb:3,gbb:4};var MMa={obb:0,mbb:1,nbb:2,lbb:3};var OMa={vbb:0,rbb:1,tbb:2,pbb:3,ubb:4,qbb:5,sbb:6};var LMa={Fbb:0,Hbb:1,Gbb:2,Abb:3,xbb:4,zbb:5,Kbb:6,Bbb:7,Lbb:8,Dbb:9,Ebb:10,wbb:11,Cbb:12,Jbb:13,Ibb:14};var PMa={Obb:0,Nbb:1,Mbb:2};var ZMa={Tgb:0,Rgb:1,Qgb:2,Lgb:3,Ngb:4,Ogb:5,Kgb:6,Mgb:7,Sgb:8,Vgb:9,Pgb:10,Igb:11,Jgb:12,Ugb:13};var YMa={Xgb:0,Wgb:1};var hNa={ahb:0,bhb:1,Ygb:2,Zgb:3};var fNa={yhb:0,dhb:1,xhb:2,whb:3,Chb:4,Bhb:5,vhb:19,hhb:6,jhb:7,rhb:8,ihb:24,uhb:25,shb:20,lhb:21,fhb:22,thb:23,ehb:9,ghb:10,khb:11,mhb:12,nhb:13,ohb:14,qhb:15,phb:16,zhb:17,Ahb:18};var $Ma={Ghb:0,Fhb:1,Hhb:2,Dhb:3,Ehb:4};var WMa={Whb:0,Phb:1,Khb:2,Thb:3,Ohb:4,Vhb:5,Jhb:6,Lhb:7,Qhb:8,Mhb:9,Rhb:10,Shb:11,Nhb:12,Uhb:13};var bNa={dib:0,bib:1,Zhb:2,aib:3,cib:4};var aNa={hib:0,eib:1,fib:2,gib:3};var XMa={lib:0,kib:1,jib:2};var gNa={oib:0,mib:1,nib:2};var iNa={Jib:0,Iib:1,Hib:2,Fib:3,Gib:4};var jNa={Nib:0,Lib:1,Kib:2,Mib:3};var Rkb={Tta:0,Qta:1,Rta:2,Ota:3,Sta:4,Pta:5};var JKa={dfa:0,bfa:1,cfa:2};var iJa={y5:0,zIa:1,lGa:2,mGa:3,eLa:4,wWa:5,bpa:6};var NO={Ewa:0,lwa:101,rwa:102,gwa:103,jwa:104,owa:105,pwa:106,swa:107,twa:108,vwa:109,wwa:110,Dwa:111,qwa:112,mwa:113,uwa:114,ywa:115,Fwa:116,iwa:117,nwa:118,Gwa:119,zwa:120,Awa:121,kwa:122,hwa:123,xwa:124,Cwa:125,Bwa:126};var LLa={Pwa:0,Mwa:1,Nwa:2,Kwa:3,Lwa:4,Jwa:5,Owa:6};var Skb={Gxa:0,Fxa:1,Dxa:2,Exa:3};var Tkb={Rxa:0,Pxa:1,Ixa:2,Oxa:3,Hxa:4,Lxa:5,Nxa:6,Qxa:7,Mxa:8,Kxa:9,Jxa:10};var Ukb={Txa:0,Uxa:1,Sxa:2};g.y(zna,T);g.y(Ana,T);g.y(cA,T);cA.prototype.getState=function(){return yk(this,1)};
cA.prototype.Bc=function(a){return Ek(this,1,a)};g.y(Bna,T);g.y(Cna,T);g.y(Dna,T);g.y(Ena,T);g.y(dA,T);dA.prototype.oe=function(){return Bk(this,1)};
dA.prototype.setVideoId=function(a){return Q(this,1,a)};g.y(eA,T);eA.prototype.setTrackingParams=function(a){return Kk(this,1,a)};g.y(fA,T);fA.prototype.hasVe=function(){return Gj(this,eA,2)};g.y(gA,T);gA.prototype.hasFeature=function(){return null!=vi(Cj(this,1))};g.y(Fna,T);g.y(Gna,T);g.y(hA,T);hA.prototype.Gf=function(){return Ck(this,2)};
var Vkb=[1];g.y(Hna,T);g.y(Ina,T);g.y(Jna,T);g.y(Kna,T);g.y(iA,T);iA.prototype.getVideoAspectRatio=function(){return Hea(this,2)};g.y(Lna,T);g.y(Mna,T);g.y(Nna,T);g.y(Ona,T);g.y(Pna,T);g.y(Qna,T);g.y(Rna,T);g.y(Sna,T);g.y(Tna,T);g.y(jA,T);jA.prototype.getId=function(){return Bk(this,1)};g.y(Una,T);g.y(kA,T);g.y(lA,T);lA.prototype.j=function(a,b){return uk(this,5,kA,a,b)};
lA.ub=[5];g.y(Vna,T);g.y(Wna,T);g.y(mA,T);mA.prototype.j=function(a,b){return uk(this,27,Wna,a,b)};
mA.ub=[27];g.y(Xna,T);g.y(Yna,T);g.y(Zna,T);g.y($na,T);var C2=[1,2,3,4];g.y(aoa,T);g.y(boa,T);g.y(coa,T);g.y(doa,T);g.y(nA,T);nA.prototype.hm=function(){return Ak(this,2)};g.y(eoa,T);g.y(foa,T);g.y(goa,T);g.y(oA,T);g.y(hoa,T);g.y(ioa,T);g.y(pA,T);pA.prototype.j=function(a,b){return Rj(this,1,ui,a,b)};
pA.ub=[1];g.y(qA,T);qA.prototype.Gf=function(){return Ck(this,3)};g.y(joa,T);g.y(koa,T);g.y(rA,T);g.y(sA,T);g.y(loa,T);g.y(tA,T);tA.prototype.j=function(a,b){return uk(this,2,sA,a,b)};
tA.prototype.B=function(a,b){return uk(this,3,sA,a,b)};
tA.ub=[2,3];g.y(moa,T);g.y(uA,T);g.y(noa,T);g.y(vA,T);vA.prototype.oe=function(){return g.qk(this,uA,Vj(this,D2,2))};
vA.prototype.setVideoId=function(a){return sk(this,uA,2,D2,a)};
vA.prototype.getPlaylistId=function(){return g.qk(this,rA,Vj(this,D2,4))};
vA.prototype.getChannelId=function(){return g.qk(this,koa,Vj(this,D2,10))};
var D2=[2,3,4,5,9,10];g.y(wA,T);wA.prototype.getType=function(){return Ck(this,1)};
wA.prototype.oe=function(){return Bk(this,3)};
wA.prototype.setVideoId=function(a){return Q(this,3,a)};g.y(ooa,T);g.y(poa,T);g.y(xA,T);var JMa=[3];g.y(qoa,T);g.y(roa,T);g.y(yA,T);yA.prototype.wf=function(){return Bk(this,2)};g.y(soa,T);g.y(toa,T);var Wkb=[1];g.y(uoa,T);g.y(voa,T);g.y(woa,T);g.y(xoa,T);g.y(yoa,T);g.y(zoa,T);g.y(Aoa,T);g.y(Boa,T);g.y(zA,T);zA.prototype.getStarted=function(){var a=void 0===a?!1:a;var b=Tda(Cj(this,1));return xk(b,a)};g.y(Coa,T);g.y(Doa,T);g.y(AA,T);AA.prototype.getDuration=function(){return yk(this,2)};
AA.prototype.jl=function(a){Ek(this,2,a)};g.y(Eoa,T);g.y(BA,T);g.y(CA,T);g.y(Foa,T);g.y(Goa,T);g.y(DA,T);DA.prototype.Me=function(){return g.qk(this,Foa,8)};
DA.prototype.z8=function(){return Gj(this,Foa,8)};
DA.prototype.getVideoData=function(){return g.qk(this,Goa,15)};
DA.prototype.kG=function(a){rk(this,Goa,15,a)};
DA.ub=[4];g.y(Hoa,T);g.y(EA,T);EA.prototype.j=function(a){return Q(this,2,a)};g.y(FA,T);FA.prototype.j=function(a){return Q(this,1,a)};
FA.ub=[3];g.y(GA,T);GA.prototype.j=function(a){return Q(this,1,a)};
GA.prototype.hasVe=function(){return Gj(this,eA,2)};g.y(HA,T);HA.prototype.j=function(a){return Q(this,1,a)};
HA.prototype.hasVe=function(){return Gj(this,eA,2)};g.y(IA,T);IA.prototype.j=function(a){return Q(this,1,a)};
IA.prototype.hasVe=function(){return Gj(this,eA,2)};g.y(JA,T);JA.prototype.j=function(a){return Q(this,1,a)};
JA.prototype.hasVe=function(){return Gj(this,eA,2)};g.y(Loa,T);g.y(KA,T);KA.prototype.getId=function(){return Bk(this,2)};g.y(NA,T);NA.prototype.getVisibilityState=function(){return Ck(this,5)};
NA.ub=[16];g.y(Moa,T);g.y(OA,T);OA.prototype.getPlayerType=function(){return Ck(this,7)};
OA.prototype.oe=function(){return Bk(this,19)};
OA.prototype.setVideoId=function(a){return Q(this,19,a)};
OA.ub=[112,83,118,68];g.y(Noa,T);g.y(Ooa,T);g.y(QA,T);QA.prototype.oe=function(){return Bk(this,1)};
QA.prototype.setVideoId=function(a){return Q(this,1,a)};
QA.prototype.j=function(a,b){return uk(this,9,Ooa,a,b)};
QA.ub=[9];g.y(RA,T);RA.prototype.j=function(a,b){return uk(this,3,QA,a,b)};
RA.ub=[3];g.y(SA,T);SA.prototype.oe=function(){return Bk(this,1)};
SA.prototype.setVideoId=function(a){return Q(this,1,a)};g.y(Poa,T);g.y(TA,T);TA.prototype.j=function(a,b){return uk(this,1,SA,a,b)};
TA.prototype.B=function(a,b){return uk(this,2,Poa,a,b)};
TA.ub=[1,2];g.y(Qoa,T);g.y(Roa,T);g.y(Soa,T);g.y(UA,T);UA.prototype.getId=function(){return Bk(this,1)};
UA.prototype.j=function(a,b){return Rj(this,2,Yi,a,b)};
UA.prototype.setVideoIds=function(a,b){return zea(this,2,Yi,a,b,Eea)};
UA.ub=[2];g.y(Toa,T);g.y(Uoa,T);g.y(Voa,T);g.y(VA,T);VA.prototype.j=function(a,b){return Rj(this,9,ui,a,b)};
VA.ub=[9];g.y(Woa,T);g.y(Xoa,T);g.y(WA,T);WA.prototype.getId=function(){return Bk(this,1)};
WA.prototype.j=function(a,b){return uk(this,14,Voa,a,b)};
WA.prototype.B=function(a,b){return uk(this,17,Woa,a,b)};
WA.ub=[14,17];g.y(XA,T);XA.prototype.B=function(a,b){return uk(this,1,WA,a,b)};
XA.prototype.j=function(a,b){return uk(this,2,UA,a,b)};
XA.ub=[1,2];g.y(Yoa,T);g.y(YA,T);YA.prototype.getOrigin=function(){return Bk(this,3)};
YA.prototype.Xg=function(){return yk(this,6)};g.y(Zoa,T);g.y($oa,T);g.y(ZA,T);
var XE=[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 Xkb={hxa:0,exa:1,dxa:2,gxa:3,fxa:4,bxa:5,cxa:6};var Ykb={YEa:0,HEa:1,KEa:2,IEa:3,NEa:4,JEa:5,rEa:6,TEa:7,BEa:8,kEa:9,CEa:10,OEa:11,LEa:12,uEa:13,pEa:14,sEa:15,XEa:16,lEa:17,mEa:18,UEa:19,vEa:20,qEa:21,SEa:22,eFa:23,dFa:24,ZEa:25,DEa:26,MEa:27,fFa:28,wEa:29,iEa:30,bFa:31,aFa:32,AEa:33,jFa:34,zEa:35,PEa:36,iFa:37,EEa:38,REa:39,yEa:40,xEa:41,oEa:42,GEa:43,hFa:44,WEa:45,VEa:53,cFa:46,FEa:47,jEa:48,nEa:49,gFa:50,QEa:51,tEa:52};var Zkb={XFa:0,GFa:1,JFa:2,HFa:3,MFa:4,IFa:5,uFa:6,SFa:7,AFa:8,mFa:9,BFa:10,NFa:11,KFa:12,xFa:13,sFa:14,vFa:15,WFa:16,oFa:17,pFa:18,TFa:19,yFa:20,tFa:21,RFa:22,cGa:23,bGa:24,YFa:25,CFa:26,LFa:27,dGa:28,zFa:29,kFa:30,ZFa:31,nFa:32,hGa:33,OFa:34,gGa:35,DFa:36,QFa:37,rFa:38,FFa:39,fGa:40,VFa:41,UFa:49,aGa:42,EFa:43,lFa:44,qFa:45,eGa:46,PFa:47,wFa:48};var $kb={cIa:0,bIa:1,dIa:2};var aLa={PGa:0,NGa:1,KGa:2,OGa:3,LGa:4,MGa:5};var alb={cHa:0,aHa:1,WGa:3,YGa:4,ZGa:5,bHa:6,XGa:7};var blb={iHa:0,fHa:1,hHa:2,gHa:3,eHa:4,dHa:5};var clb={SHa:0,THa:1,RHa:2,QHa:3,PHa:4};var dlb={WHa:0,UHa:1,VHa:2};var elb={iIa:0,jIa:1,kIa:2,hIa:3,fIa:4,gIa:5};var swa={TIa:0,AIa:1,GIa:2,HIa:4,NIa:8,IIa:16,JIa:32,SIa:64,RIa:128,CIa:256,EIa:512,LIa:1024,DIa:2048,FIa:4096,BIa:8192,KIa:16384,OIa:32768,MIa:65536,PIa:131072,QIa:262144};var KLa={zJa:0,yJa:1,xJa:2,wJa:4};var JLa={EJa:0,BJa:1,CJa:2,FJa:3,DJa:4,AJa:5};var flb={UDa:0,TDa:1,SDa:2};var glb={JRa:0,IRa:1,HRa:2};var hlb={BSa:0,hSa:1,zSa:2,lSa:3,rSa:4,DSa:5,ASa:6,XRa:7,WRa:8,VRa:9,bSa:10,gSa:11,fSa:12,YRa:13,sSa:14,nSa:15,pSa:16,NRa:17,ySa:18,RRa:19,oSa:20,MRa:21,qSa:22,eSa:23,ORa:24,QRa:25,vSa:26,CSa:27,wSa:28,mSa:29,ZRa:30,cSa:31,dSa:32,URa:33,ESa:34,SRa:35,aSa:36,tSa:37,PRa:38,KRa:39,TRa:41,kSa:42,uSa:43,xSa:44,iSa:45,jSa:46,LRa:47};var ilb={ISa:0,HSa:1,GSa:2,FSa:3};var XKa={Qqa:0,Pqa:1,Oqa:2};var TKa={tTa:0,sTa:1,pTa:2,qTa:7,oTa:8,nTa:25,WSa:3,XSa:4,fTa:5,gTa:27,eTa:28,YSa:9,MSa:10,KSa:11,LSa:6,VSa:12,TSa:13,USa:14,SSa:15,aTa:16,bTa:17,ZSa:18,dTa:19,cTa:20,PSa:26,QSa:21,OSa:22,RSa:23,NSa:24,vTa:34,uTa:35,xTa:39,wTa:29,kTa:30,lTa:32,mTa:33,iTa:36,jTa:38,hTa:37,rTa:31};var VKa={ETa:0,ATa:1,CTa:2,DTa:3,yTa:4,BTa:5,zTa:6};var UKa={KTa:0,ITa:1,JTa:2,GTa:3,HTa:4,FTa:5};var wKa={RTa:0,LTa:1,NTa:2,MTa:3,OTa:4,PTa:5,QTa:6,STa:7};var YKa={sUa:0,mUa:1,rUa:2,oUa:3,pUa:4,nUa:5,qUa:6};var $Ka={FUa:0,tUa:1,xUa:2,CUa:3,DUa:4,yUa:5,AUa:6,BUa:7,vUa:8,uUa:9,wUa:10,EUa:11,zUa:12};var ZKa={JUa:0,GUa:1,HUa:2,IUa:3};var XLa={zxa:0,xxa:1,yxa:2,uxa:3,vxa:4,wxa:5};var bMa={PYa:0,OYa:1,HYa:2,MYa:3,IYa:4,LYa:5,NYa:6,KYa:7,JYa:8};var wLa={jZa:0,bZa:1,kZa:2,iZa:4,fZa:8,eZa:16,dZa:32,gZa:64,cZa:128,hZa:256};var YLa={DZa:0,xZa:1,CZa:2,uZa:3,mZa:4,sZa:5,nZa:6,oZa:7,qZa:8,vZa:9,zZa:10,yZa:11,AZa:12,pZa:13,rZa:14,tZa:15,wZa:16,lZa:17,BZa:18};var tLa={EYa:0,BYa:1,CYa:2,DYa:3};var zLa={WYa:0,YYa:1,VYa:2,RYa:3,XYa:4,SYa:5,TYa:6,UYa:7};var CKa={Aib:0,hua:1,tRa:2,BWa:3,DWa:4,EWa:5,yWa:6,Xcb:7,UWa:8,TWa:9,zWa:10,CWa:11,Feb:12,pja:13,xja:14,qja:15,f1a:16,wYa:17,VWa:18,YWa:19,aZa:20,XWa:21,QYa:22,EZa:23,eXa:24,GYa:25,AWa:26,Ucb:27,Xab:28,J4a:29,Rqa:30,Lmb:31,FYa:32};var BKa={Dib:0,gfa:1,GZa:2,FZa:3,SUCCESS:4,Jcb:5,FAILED:6,x4a:7,VGa:9,iua:10,ewa:11,CANCELLED:12,I4a:13,Yab:14,dbb:15,Vib:16};var AKa={Teb:0,Keb:1,Peb:2,Oeb:3,Leb:4,Meb:5,Geb:6,Seb:7,Reb:8,Jeb:9,Ieb:10,Neb:11,Qeb:12,Heb:13};var OKa={T0a:0,G0a:1,L0a:2,J0a:3,S0a:4,K0a:5,O0a:6,N0a:7,M0a:8,H0a:9,P0a:10,Q0a:11,R0a:12,I0a:13};var jlb={f2a:0,e2a:1,d2a:2};var klb={i2a:0,g2a:1,h2a:2};var cLa={o4a:0,i4a:1,V3a:2,p4a:3,R3a:4,Q3a:5,W3a:6,S3a:7,P3a:8,e4a:9,Z3a:10,d4a:11,f4a:12,U3a:13,T3a:14,O3a:15,l4a:16,k4a:17,j4a:18,m4a:27,Y3a:19,b4a:20,a4a:21,c4a:22,h4a:23,X3a:24,n4a:25,g4a:26};var bLa={v4a:0,u4a:1,t4a:2,s4a:3,q4a:4,r4a:5};var SKa={P5a:0,N5a:1,O5a:3,K5a:4,L5a:2,M5a:5};var WKa={U5a:0,Q5a:1,R5a:2,T5a:3,S5a:4,V5a:5};var llb={b6a:0,d6a:1};var EMa={j6a:0,h6a:1,i6a:2,k6a:3};var mlb={L9a:0,J9a:1,K9a:2};var nlb={hcb:0,dcb:1,ecb:2,fcb:3,gcb:4};var yLa={X9a:0,V9a:1,W9a:2};var aMa={K$a:0,H$a:1,I$a:2,J$a:3};var oLa={Ona:0,Nna:1,Lna:2,Mna:3};var rLa={Doa:0,woa:1,Coa:2,zoa:3,soa:4,toa:5,roa:6,yoa:7,Boa:8,voa:9,Eoa:10,Foa:11,uoa:12,Aoa:13,xoa:14};var RLa={Npa:0,Hpa:1,Kpa:2,Lpa:3,Jpa:4,Mpa:5,Opa:6,Ipa:7};var iLa={Kua:0,Jua:1,Lua:2};var FKa={yib:0,jta:1,kta:2,ita:3,lta:4};var EKa={zib:0,V1a:1,y0a:2};var ULa={dEa:0,ZDa:1,VDa:2,cEa:3,XDa:4,aEa:5,YDa:6,WDa:7,bEa:8};var WLa={aIa:0,ZHa:1,YHa:2};var QLa={sRa:0,rRa:1,qRa:2};var TLa={nWa:0,mWa:1,lWa:2};var PLa={o5a:0,m5a:1,n5a:2};var mLa={Ncb:0,Mcb:1,Lcb:2};var olb={MQa:0,IQa:1,JQa:2,KQa:3,LQa:4,NQa:5};var plb={d1a:0,Z0a:1,X0a:2,U0a:3,Y0a:4,a1a:5,V0a:6,W0a:7,b1a:8,e1a:9};var qlb={Yta:0,Uta:5,Xta:4,Vta:2,Wta:3};var rlb={feb:0,Edb:1,jeb:2,keb:3,heb:4,geb:16,ieb:47,zdb:17,Fdb:33,ydb:35,qdb:36,Bdb:34,eeb:38,Ddb:45,Kdb:8,wdb:39,tdb:40,mdb:41,pdb:42,sdb:43,ldb:46,odb:44,Cdb:5,Jdb:6,beb:7,Zdb:9,ndb:10,Ydb:11,rdb:12,Xdb:13,xdb:14,Idb:15,Hdb:18,Gdb:19,vdb:20,Adb:21,udb:22,Udb:23,Wdb:24,Ndb:25,Vdb:26,Ldb:27,Qdb:28,Mdb:29,Pdb:30,Rdb:31,Odb:32,Sdb:37,Tdb:48};var slb={neb:0,meb:1,oeb:2};var DMa={Gmb:0,pmb:1,ymb:2,xmb:3,omb:4,Hmb:5,Emb:6,qmb:7,rmb:8,wmb:9,vmb:12,lmb:10,Fmb:11,Amb:13,Bmb:14,Imb:15,zmb:16,Cmb:17,mmb:18,Dmb:19,nmb:20,Jmb:21,tmb:22};var xMa={XIa:0,VIa:1,WIa:2,UIa:3};g.y(apa,T);g.y($A,T);$A.prototype.oe=function(){return wk(this,Vj(this,OE,1))};
$A.prototype.setVideoId=function(a){return Tj(this,1,OE,Zi(a))};
$A.prototype.getPlaylistId=function(){return wk(this,Vj(this,OE,2))};
var OE=[1,2];g.y(bpa,T);bpa.ub=[3];var YS=new g.Ow("changeKeyedMarkersVisibilityCommand");var tlb=new g.Ow("changeMarkersVisibilityCommand");var cUa=new g.Ow("loadMarkersCommand");var ulb=new g.Ow("suggestedActionDataViewModel");var K_a=new g.Ow("productListItemRenderer");var vlb=new g.Ow("shoppingOverlayRenderer");var vUa=new g.Ow("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var wlb=new g.Ow("adFeedbackEndpoint");var xlb=new g.Ow("menuEndpoint");var $Za=new g.Ow("phoneDialerEndpoint");var YZa=new g.Ow("sendSmsEndpoint");var tUa=new g.Ow("copyTextEndpoint");var ylb=new g.Ow("webPlayerShareEntityServiceEndpoint");g.TF=new g.Ow("urlEndpoint");g.WS=new g.Ow("watchEndpoint");var zlb=new g.Ow("watchPlaylistEndpoint");var gMa={Nqa:0,Mqa:1,Lqa:2,Jqa:3,Kqa:4};var vLa={SWa:0,QWa:1,RWa:2,PWa:3};var Alb={jXa:0,iXa:1,gXa:2,hXa:3};var Blb={nXa:0,kXa:1,lXa:2,mXa:3,oXa:4};var Clb={gYa:0,aYa:1,hYa:2,cYa:3,TXa:4,KXa:37,vXa:5,sXa:36,xXa:38,FXa:39,GXa:40,BXa:41,fYa:42,yXa:27,PXa:31,RXa:6,UXa:7,VXa:8,WXa:9,XXa:10,YXa:11,bYa:29,zXa:30,QXa:32,JXa:12,IXa:13,uXa:14,OXa:15,pXa:16,rXa:35,wXa:43,AXa:28,MXa:17,LXa:18,NXa:19,eYa:20,EXa:25,tXa:33,iYa:21,HXa:22,DXa:26,jYa:46,CXa:34,SXa:44,dYa:45,ZXa:23,qXa:24};var eMa={AYa:0,yYa:1,xYa:2,zYa:3};var OO={cbb:0,Zab:1,bbb:2,abb:3};var DKa={Eeb:0,reb:1,qeb:2,xeb:3,Deb:4,seb:5,Aeb:6,yeb:7,zeb:8,teb:9,Beb:10,ueb:11,Ceb:12,veb:13};var sLa={ZYa:0,fXa:1,WWa:2,cXa:3,dXa:4,ZWa:5,aXa:6,bXa:7};var Dlb={X5a:0,W5a:1};var Elb={kcb:0,jcb:1,icb:2,lcb:3};var Flb={ocb:0,ncb:1,mcb:2};var Glb={ycb:0,scb:1,tcb:2,ucb:5,xcb:7,zcb:8,vcb:9,wcb:10};var Hlb={rcb:0,qcb:1,pcb:2};var pWa=new g.Ow("compositeVideoOverlayRenderer");var Ilb=new g.Ow("miniplayerRenderer");var ITa=new g.Ow("playerMutedAutoplayOverlayRenderer"),JTa=new g.Ow("playerMutedAutoplayEndScreenRenderer");var SSa=new g.Ow("unserializedPlayerResponse"),KTa=new g.Ow("unserializedPlayerResponse");var cMa={vYa:0,sYa:1,qYa:2,pYa:3,oYa:4,nYa:5,rYa:6,uYa:7,mYa:8,tYa:9,lYa:10,kYa:11};var Jlb=new g.Ow("playlistEditEndpoint");var E2;g.yM=new g.Ow("buttonRenderer");E2=new g.Ow("toggleButtonRenderer");var uLa={Bib:0,ENa:4,q5a:1,QGa:2,qpa:3,FNa:5,t5a:6,RGa:7,SGa:8,TGa:9,UGa:10};var nFa=new g.Ow("counterfactualRenderer");var Klb=new g.Ow("resolveUrlCommandMetadata");var Llb=new g.Ow("modifyChannelNotificationPreferenceEndpoint");var Vza=new g.Ow("pingingEndpoint");var Mlb=new g.Ow("unsubscribeEndpoint");var kJa={Eib:0,uVa:1,qVa:2,pVa:3,QUa:71,PUa:4,sVa:5,vVa:6,tVa:16,rVa:69,RUa:70,MUa:56,NUa:64,OUa:65,dVa:7,TUa:8,YUa:9,UUa:10,XUa:11,WUa:12,VUa:13,aVa:43,gVa:44,hVa:45,iVa:46,jVa:47,kVa:48,lVa:49,mVa:50,nVa:51,oVa:52,eVa:53,fVa:54,cVa:63,SUa:14,bVa:15,ZUa:68,wlb:17,Flb:18,Kkb:19,vlb:20,hlb:21,xlb:22,Ckb:23,plb:24,klb:25,Pkb:26,Akb:27,Wkb:28,slb:29,xkb:30,wkb:31,ykb:32,Dkb:33,qlb:34,olb:35,ilb:36,mlb:37,ylb:38,Skb:39,Elb:40,Ykb:41,Nkb:42,zlb:55,llb:66,Ylb:67,clb:57,rlb:58,Ekb:59,zkb:60,Tkb:61,jlb:62};var Nlb={Q6a:0,U6a:1,G6a:2,y6a:3,M6a:4,O6a:5,V6a:6,l6a:7,m6a:8,t6a:9,I6a:10,z6a:11,D6a:12,B6a:13,C6a:14,E6a:15,F6a:19,o6a:16,L6a:17,J6a:18,q6a:20,A6a:21,n6a:22,R6a:23,w6a:24,p6a:25,P6a:26,s6a:27,K6a:28,H6a:29,v6a:30,N6a:31,T6a:32,S6a:33,x6a:34,u6a:35,r6a:36};g.lT=new g.Ow("subscribeButtonRenderer");var Olb=new g.Ow("subscribeEndpoint");var pLa={b$a:0,Z9a:1,a$a:2};var cWa=new g.Ow("buttonViewModel");var eNa={m7a:0,n7a:1,l7a:2,h7a:3,k7a:4,i7a:5,g7a:6,j7a:7};var oFa=new g.Ow("qrCodeRenderer");var LKa={Jta:0,Hta:1,Eta:2,Fta:3,Gta:4,Ita:5};var fSa={XQa:"LIVING_ROOM_APP_MODE_UNSPECIFIED",UQa:"LIVING_ROOM_APP_MODE_MAIN",TQa:"LIVING_ROOM_APP_MODE_KIDS",VQa:"LIVING_ROOM_APP_MODE_MUSIC",WQa:"LIVING_ROOM_APP_MODE_UNPLUGGED",SQa:"LIVING_ROOM_APP_MODE_GAMING"};var UTa=new g.Ow("autoplaySwitchButtonRenderer");var $Sa,x0a,aTa,d1a;$Sa=new g.Ow("decoratedPlayerBarRenderer");x0a=new g.Ow("chapteredPlayerBarRenderer");aTa=new g.Ow("multiMarkersPlayerBarRenderer");d1a=new g.Ow("chapterRenderer");g.B0a=new g.Ow("markerRenderer");var ZTa=new g.Ow("desktopOverlayConfigRenderer");var XTa=new g.Ow("gatedActionsOverlayViewModel");var a1a=new g.Ow("heatMarkerRenderer");var E0a=new g.Ow("heatmapRenderer");var bUa=new g.Ow("watchToWatchTransitionRenderer");var wUa=new g.Ow("playlistPanelRenderer");var Plb=new g.Ow("productUpsellSuggestedActionViewModel");var FWa=new g.Ow("speedmasterEduViewModel");var Qlb=new g.Ow("suggestedActionTimeRangeTrigger"),Rlb=new g.Ow("suggestedActionsRenderer"),Slb=new g.Ow("suggestedActionRenderer");var b1a=new g.Ow("timedMarkerDecorationRenderer");var Tlb={Xlb:0,Tlb:1,Ulb:2,Wlb:3,Vlb:4,Slb:5,Rlb:6,Nlb:7,Plb:8,Qlb:9,Olb:10,Jlb:11,Hlb:12,Glb:13,Mlb:14,Ilb:15,Klb:16,Llb:17};var HO={y5:0,USER:74,Loa:459,TRACK:344,Moa:493,Zoa:419,fKa:494,Iqa:337,MINUTE:237,HOUR:236,DAY:3,WEEK:78,Zlb:248,MONTH:79,QUARTER:246,YEAR:247,HWa:382,GWa:383,FWa:384,Pcb:235,VIDEO:4,cmb:186,vua:126,ccb:127,Dua:117,v3a:125,l5a:151,Zwa:515,nua:6,wGa:132,BGa:154,zGa:222,AGa:155,xGa:221,yGa:156,bcb:209,acb:210,gkb:7,M3a:124,Y9a:96,sWa:97,rkb:93,pPa:574,skb:275,Epa:110,Dpa:120,c2a:121,pIa:72,Yjb:351,W6a:495,Wjb:377,Zjb:378,fEa:496,gEa:497,X6a:498,Fpa:381,Xjb:386,tkb:387,qoa:410,dJa:437,qya:338,Bpa:380,
efa:352,D0a:113,E0a:114,gdb:82,hdb:112,Xwa:354,bdb:21,poa:556,x0a:567,K4a:566,leb:568,qxa:523,sxa:375,rxa:514,rja:302,Hua:136,qIa:85,Lja:22,gmb:23,kdb:252,jdb:253,G_a:562,Gua:563,zpa:254,oja:165,Zbb:304,TJa:421,e5a:463,PLAYLIST:63,ekb:27,dkb:28,fkb:29,Rbb:30,Ubb:31,Tbb:324,Vbb:32,Ppa:398,Kmb:613,Xbb:399,Ybb:400,uWa:411,tWa:413,vWa:414,xWa:415,F3a:39,G3a:143,K3a:144,B3a:40,C3a:145,E3a:146,Qjb:504,J3a:325,t1a:262,v1a:263,u1a:264,x1a:355,hJa:615,iJa:616,x5a:617,y1a:249,A1a:250,z1a:251,Nta:46,Y5a:49,
a6a:50,hja:62,adb:561,UTa:105,YJa:242,Wab:397,l2a:83,C0a:135,moa:87,ooa:153,noa:187,hoa:89,goa:88,ioa:139,koa:91,joa:104,loa:137,qta:99,Oib:100,qWa:326,Rwa:148,Qwa:149,Pbb:150,Qbb:395,dpa:166,jpa:199,epa:534,ipa:167,fpa:168,npa:169,opa:170,gpa:171,hpa:172,kpa:179,lpa:180,ppa:512,mpa:513,djb:200,Pib:476,ejb:213,apa:191,w1a:192,p1a:305,q1a:306,C1a:329,D$a:327,E$a:328,l1a:195,m1a:197,F0a:301,g1a:223,h1a:224,RJa:227,gJa:396,gKa:356,ZJa:490,hKa:394,Sqa:230,rpa:297,zjb:298,QJa:342,axa:346,ODa:245,idb:261,
tIa:265,yIa:266,uIa:267,rIa:268,sIa:269,xIa:270,vIa:271,wIa:272,DQa:303,qPa:391,rPa:503,tPa:277,OQa:499,QQa:500,BQa:501,PQa:611,RQa:612,FQa:278,sPa:489,EQa:598,Zxa:332,bya:333,Xxa:334,aya:335,Yxa:336,pta:340,KJa:341,Pjb:349,Ojb:420,I3a:281,D3a:282,Z5a:286,Sbb:288,H3a:291,L3a:292,nPa:295,Wbb:296,mPa:299,tja:417,kKa:308,hmb:309,imb:310,jmb:311,E1a:590,F1a:591,tka:350,gjb:418,JHa:424,Qib:425,IWa:429,rWa:430,eKa:426,Rab:460,pWa:427,N4a:428,O4a:542,L4a:461,F$a:464,aUa:431,XTa:432,YTa:589,fUa:433,WTa:434,
cUa:435,dUa:436,ZTa:438,eUa:439,gUa:453,bUa:454,VTa:472,xib:557,M4a:558,Apa:559,Cpa:560,xpa:565,u2a:545,p2a:546,F2a:547,I2a:548,H2a:549,G2a:550,v2a:551,E2a:552,m2a:554,r2a:577,q2a:587,t2a:579,o2a:580,ypa:583,K2a:584,L2a:586,x2a:516,y2a:544,z2a:553,A2a:570,C2a:571,w2a:572,D2a:573,B2a:588,J2a:585,M_a:592,K_a:593,L_a:594,J_a:595,pkb:604,nkb:605,okb:606,qkb:607,mkb:608,Tcb:520,n2a:521,s2a:522,aKa:543,U1a:440,W1a:441,a2a:442,S1a:448,T1a:449,X1a:450,b2a:451,Z1a:491,POST:445,R1a:446,Y1a:447,O2a:456,JWa:483,
Kja:569,fua:576,X2a:529,gua:581,cdb:555,N2a:458,e6a:480,f6a:502,g6a:482,LJa:452,Z6a:465,a7a:466,fwa:467,M2a:468,cya:469,Dta:470,Cta:471,JJa:475,Wua:477,NJa:478,GGa:479,D1a:484,B1a:485,o1a:486,n1a:487,yja:488,Cxa:492,eya:505,pxa:506,hkb:507,sLa:508,EGa:509,HGa:510,JGa:511,rjb:524,akb:530,v5a:531,dya:532,e7a:533,u5a:575,OJa:535,jKa:536,UJa:537,cKa:538,PJa:539,XJa:540,SJa:541,uRa:578,kja:582,H1a:596,Fua:597,uPa:599,VPa:600,WPa:601,GQa:602,HQa:603,PODCAST:609,Eua:610,dKa:614};var KOa=new g.Ow("cipher");var TSa=new g.Ow("playerVars");var LTa=new g.Ow("playerVars");var F2=g.Ta.window,Ulb,Vlb,aB=(null==F2?void 0:null==(Ulb=F2.yt)?void 0:Ulb.config_)||(null==F2?void 0:null==(Vlb=F2.ytcfg)?void 0:Vlb.data_)||{};g.Va("yt.config_",aB);var eB=[];var kpa=/^[\w.]*$/,hpa={q:!0,search_query:!0},gpa=String(iB);var lpa=new function(){var a=window.document;this.j=window;this.B=a};
g.Va("yt.ads_.signals_.getAdSignalsString",function(a){return jB(tB(a))});g.kb();var opa="XMLHttpRequest"in g.Ta?function(){return new XMLHttpRequest}:null;var Wlb="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.qa(Wlb);var wpa={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"},xpa="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.qa(Wlb)),Fpa=!1,tpa=ypa,Cpa=vpa;g.y(DB,xb);GB.prototype.then=function(a,b,c){return this.j?this.j.then(a,b,c):1===this.C&&a?(a=a.call(c,this.B))&&"function"===typeof a.then?a:IB(a):2===this.C&&b?(a=b.call(c,this.B))&&"function"===typeof a.then?a:HB(a):this};
GB.prototype.getValue=function(){return this.B};
GB.prototype.$goog_Thenable=!0;var JB=!1;var pD=SB||TB;var $pa=/^([0-9\.]+):([0-9\.]+)$/;g.y(gqa,xb);gqa.prototype.name="BiscottiError";g.y(bC,xb);bC.prototype.name="BiscottiMissingError";var iqa={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},cC=null;var pqa=pa(["data-"]),sqa={};var Xlb=0,tqa=g.Rc?"webkit":As?"moz":g.Bs?"ms":g.HR?"o":"",Ylb=g.Xa("ytDomDomGetNextId")||function(){return++Xlb};
g.Va("ytDomDomGetNextId",Ylb);var yqa={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};hC.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
hC.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
hC.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var iC=g.Ta.ytEventsEventsListeners||{};g.Va("ytEventsEventsListeners",iC);var Bqa=g.Ta.ytEventsEventsCounter||{count:0};g.Va("ytEventsEventsCounter",Bqa);var Gqa=Kd(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a}),Cqa=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 G2;G2=window;g.$C=G2.ytcsi&&G2.ytcsi.now?G2.ytcsi.now:G2.performance&&G2.performance.timing&&G2.performance.now&&G2.performance.timing.navigationStart?function(){return G2.performance.timing.navigationStart+G2.performance.now()}:function(){return(new Date).getTime()};g.lb(mC,g.I);mC.prototype.Y=function(a){void 0===a.j&&zqa(a);var b=a.j;void 0===a.B&&zqa(a);this.j=new g.Ge(b,a.B)};
mC.prototype.Ws=function(){return this.j||new g.Ge};
mC.prototype.qa=function(){if(this.j){var a=(0,g.$C)();if(0!=this.D){var b=this.K,c=this.j,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.D);this.B[this.C]=.5<Math.abs((d-this.G)/this.G)?1:0;for(c=b=0;4>c;c++)b+=this.B[c]||0;3<=b&&this.N();this.G=d}this.D=a;this.K=this.j;this.C=(this.C+1)%4}};
mC.prototype.va=function(){g.zB(this.Z);g.kC(this.ra)};g.y(nC,g.I);nC.prototype.T=function(a,b,c,d,e){c=g.gB((0,g.gb)(c,d||this.rb));c={target:a,name:b,callback:c};var f;e&&Gqa()&&(f={passive:!0});a.addEventListener(b,c.callback,f);this.N.push(c);return c};
nC.prototype.Pc=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}};
nC.prototype.va=function(){g.pC(this);g.I.prototype.va.call(this)};qC.prototype.clone=function(){var a=new qC,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]="object"==$a(c)?g.md(c):c}return a};var WUa=["att/get"],VXa=["embedded_player"],Zlb=["share/get_web_player_share_panel"],$lb=["feedback"],amb=["notification/modify_channel_preference"],vdb=["player"],bmb=["browse/edit_playlist"],cmb=["subscription/subscribe"],dmb=["subscription/unsubscribe"],zdb=["next","unplugged/watch_next"];var Iqa;g.rC=Kd(function(){var a=new Vv;return a.isAvailable()?new g.Rv(a):null});
Iqa=Kd(function(){var a=new wla;return a.isAvailable()?new g.Rv(a):null});wC.prototype.DD=function(a,b){a={};var c=qfa([]);c&&(a.Authorization=c,c=b=null==b?void 0:b.sessionIndex,void 0===c&&(c=Number(g.cB("SESSION_INDEX",0)),c=isNaN(c)?0:c),g.AB("voice_search_auth_header_removal")||(a["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in aB||(a["X-Origin"]=window.location.origin),void 0===b&&"DELEGATED_SESSION_ID"in aB&&(a["X-Goog-PageId"]=g.cB("DELEGATED_SESSION_ID")));return a};var DD={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var zC=g.Xa("ytglobal.prefsUserPrefsPrefs_")||{};g.Va("ytglobal.prefsUserPrefsPrefs_",zC);var Pqa;g.k=Oqa.prototype;g.k.get=function(a,b){Tqa(a);Sqa(a);a=void 0!==zC[a]?zC[a].toString():null;return null!=a?a:b?b:""};
g.k.set=function(a,b){Tqa(a);Sqa(a);if(null==b)throw Error("ExpectedNotNull");zC[a]=b.toString()};
g.k.remove=function(a){Tqa(a);Sqa(a);delete zC[a]};
g.k.save=function(){var a=!0;g.AB("web_secure_pref_cookie_killswitch")&&(a=!1);g.LB(this.j,this.dump(),63072E3,this.B,a)};
g.k.clear=function(){g.eba(zC)};
g.k.dump=function(){var a=[],b;for(b in zC)zC.hasOwnProperty(b)&&a.push(b+"="+encodeURIComponent(String(zC[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])&&(zC[d]=c.toString())}};var Vqa={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"},Dsa={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},Esa={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},Xqa={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};g.y(g.AC,Error);DC.prototype.Mi=function(a,b){return EC(a,1,b)};
DC.prototype.e6=function(a){(a=this.j.get(a))&&a()};g.Xa("yt.scheduler.instance.timerIdMap_");g.y(GC,DC);GC.prototype.Mj=function(a){if(void 0===a||!Number.isNaN(Number(a))){var b=g.Xa("yt.scheduler.instance.cancelJob");b?b(a):g.yB(a)}};
GC.prototype.start=function(){var a=g.Xa("yt.scheduler.instance.start");a&&a()};
GC.prototype.pause=function(){var a=g.Xa("yt.scheduler.instance.pause");a&&a()};
g.Zu=g.HC();KC.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.j)try{this.j.set(a,b,Date.now()+1E3*c);return}catch(f){}var e="";if(d)try{e=escape(g.$m(b))}catch(f){return}else e=escape(b);g.LB(a,e,c,this.B)};
KC.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.MB(a))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
KC.prototype.remove=function(a){this.j&&this.j.remove(a);g.Kpa(a,"/",this.B)};
KC.prototype.getCreationTime=function(a){return this.j&&(a=(this.j.B(a)||{}).creation,"number"===typeof a)?a:null};var $qa=function(){var a;return function(){a||(a=new KC("ytidb"));return a}}();var NC=[],LC,OC=!1;var H2={},era=(H2.AUTH_INVALID="No user identifier specified.",H2.EXPLICIT_ABORT="Transaction was explicitly aborted.",H2.IDB_NOT_SUPPORTED="IndexedDB is not supported.",H2.MISSING_INDEX="Index not created.",H2.MISSING_OBJECT_STORES="Object stores not created.",H2.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",H2.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",H2.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",H2.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",H2.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",H2.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",H2.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",H2),I2={},fra=(I2.AUTH_INVALID="ERROR",I2.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",I2.EXPLICIT_ABORT="IGNORED",
I2.IDB_NOT_SUPPORTED="ERROR",I2.MISSING_INDEX="WARNING",I2.MISSING_OBJECT_STORES="ERROR",I2.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",I2.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",I2.QUOTA_EXCEEDED="WARNING",I2.QUOTA_MAYBE_EXCEEDED="WARNING",I2.UNKNOWN_ABORT="WARNING",I2.INCOMPATIBLE_DB_VERSION="WARNING",I2),J2={},gra=(J2.AUTH_INVALID=!1,J2.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,J2.EXPLICIT_ABORT=!1,J2.IDB_NOT_SUPPORTED=!1,J2.MISSING_INDEX=!1,J2.MISSING_OBJECT_STORES=!1,J2.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,J2.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,J2.QUOTA_EXCEEDED=!1,J2.QUOTA_MAYBE_EXCEEDED=!0,J2.UNKNOWN_ABORT=!0,J2.INCOMPATIBLE_DB_VERSION=!1,J2);g.y(g.TC,g.AC);g.y(hra,g.TC);g.y(UC,Error);var ira=["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.YC.all=function(a){return new g.YC(new XC(function(b,c){var d=[],e=a.length;0===e&&b(d);for(var f={Nz:0};f.Nz<a.length;f={Nz:f.Nz},++f.Nz)g.YC.resolve(a[f.Nz]).then(function(h){return function(l){d[h.Nz]=l;e--;0===e&&b(d)}}(f)).catch(function(h){c(h)})}))};
g.YC.resolve=function(a){return new g.YC(new XC(function(b,c){a instanceof g.YC?a.then(b,c):b(a)}))};
g.YC.reject=function(a){return new g.YC(new XC(function(b,c){c(a)}))};
g.YC.prototype.then=function(a,b){var c=this,d=null!=a?a:lra,e=null!=b?b:kra;return new g.YC(new XC(function(f,h){"PENDING"===c.state.status?(c.j.push(function(){nra(c,c,d,f,h)}),c.B.push(function(){ora(c,c,e,f,h)})):"FULFILLED"===c.state.status?nra(c,c,d,f,h):"REJECTED"===c.state.status&&ora(c,c,e,f,h)}))};
g.YC.prototype.catch=function(a){return this.then(void 0,a)};g.k=vra.prototype;g.k.add=function(a,b,c){return g.cD(this,[a],{mode:"readwrite",Nb:!0},function(d){return d.objectStore(a).add(b,c)})};
g.k.clear=function(a){return g.cD(this,[a],{mode:"readwrite",Nb:!0},function(b){return b.objectStore(a).clear()})};
g.k.close=function(){this.j.close();var a;(null==(a=this.options)?0:a.closed)&&this.options.closed()};
g.k.count=function(a,b){return g.cD(this,[a],{mode:"readonly",Nb:!0},function(c){return c.objectStore(a).count(b)})};
g.k.delete=function(a,b){return g.cD(this,[a],{mode:"readwrite",Nb:!0},function(c){return c.objectStore(a).delete(b)})};
g.k.get=function(a,b){return g.cD(this,[a],{mode:"readonly",Nb:!0},function(c){return c.objectStore(a).get(b)})};
g.k.getAll=function(a,b,c){return g.cD(this,[a],{mode:"readonly",Nb:!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=wra.prototype;g.k.add=function(a,b){return ZC(this.j.add(a,b))};
g.k.autoIncrement=function(){return this.j.autoIncrement};
g.k.clear=function(){return ZC(this.j.clear()).then(function(){})};
g.k.count=function(a){return ZC(this.j.count(a))};
g.k.delete=function(a){return a instanceof IDBKeyRange?Ara(this,a):ZC(this.j.delete(a))};
g.k.get=function(a){return ZC(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?ZC(this.j.getAll(a,b)):Bra(this,a,b)};
g.k.index=function(a){try{return new Gra(this.j.index(a))}catch(b){if(b instanceof Error&&"NotFoundError"===b.name)throw new UC(a,this.j.name);throw b;}};
g.k.getName=function(){return this.j.name};
g.k.keyPath=function(){return this.j.keyPath};
fD.prototype.abort=function(){this.j.abort();this.B=!0;throw new g.TC("EXPLICIT_ABORT");};
fD.prototype.objectStore=function(a){a=this.j.objectStore(a);var b=this.C.get(a);b||(b=new wra(a),this.C.set(a,b));return b};
g.k=Gra.prototype;g.k.count=function(a){return ZC(this.j.count(a))};
g.k.delete=function(a){return g.jD(this,{query:a},function(b){return b.delete().then(function(){return g.iD(b)})})};
g.k.get=function(a){return ZC(this.j.get(a))};
g.k.getAll=function(a,b){return"getAll"in IDBIndex.prototype?ZC(this.j.getAll(a,b)):Hra(this,a,b)};
g.k.keyPath=function(){return this.j.keyPath};
g.k.unique=function(){return this.j.unique};
kD.prototype.delete=function(){return ZC(this.cursor.delete()).then(function(){})};
kD.prototype.getValue=function(){return this.cursor.value};
kD.prototype.update=function(a){return ZC(this.cursor.update(a))};mD.prototype.B=function(a,b,c){c=void 0===c?{}:c;return Jra(a,b,c)};
mD.prototype.delete=function(a){a=void 0===a?{}:a;return lD(this.name,a)};
mD.prototype.open=function(){function a(){var f,h,l,m,n,p,q,r,t,v;return g.H(function(w){switch(w.j){case 1:return h=null!=(f=Error().stack)?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.u(Object.keys(C.rr)),L=G.next();!L.done;L=G.next()){L=L.value;var M=C.rr[L],R=void 0===M.nca?Number.MAX_VALUE:M.nca;!(A.j.version>=M.Zm)||A.j.version>=R||A.j.objectStoreNames.contains(L)||F.push(L)}m=F;if(0===m.length){w.Ia(5);break}n=Object.keys(c.options.rr);
p=l.objectStoreNames();if(c.G<g.BB("ytidb_reopen_db_retries",0))return c.G++,l.close(),PC(new g.TC("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),w.return(a());if(!(c.D<g.BB("ytidb_remake_db_retries",1))){w.Ia(6);break}c.D++;return g.z(w,c.delete(),7);case 7:return PC(new g.TC("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:c.name,expectedObjectStores:n,foundObjectStores:p})),w.return(a());case 6:throw new hra(p,n);case 5:return w.return(l);case 2:q=
g.Da(w);if(q instanceof DOMException?"VersionError"!==q.name:"DOMError"in self&&q instanceof DOMError?"VersionError"!==q.name:!(q instanceof Object&&"message"in q)||"An attempt was made to open a database using a lower version than the existing version."!==q.message){w.Ia(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(void 0!==c.options.version&&t>c.options.version+1)throw r.close(),c.C=!1,Kra(c,t);return w.return(r);case 8:throw b(),
q instanceof Error&&!g.AB("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+h.substring(h.indexOf("\n")+1)),jra(q,c.name,"",null!=(v=c.options.version)?v:-1);}})}
function b(){c.j===d&&(c.j=void 0)}
var c=this;if(!this.C)throw Kra(this);if(this.j)return this.j;var d,e={blocking:function(f){f.close()},
closed:b,lda:b,upgrade:this.options.upgrade};return this.j=d=a()};var Lra=new mD("YtIdbMeta",{rr:{databases:{Zm:1}},upgrade:function(a,b){b(1)&&g.aD(a,"databases",{keyPath:"actualName"})}});var Rra,Pra=new function(){}(new function(){});new g.mo;g.y(tD,mD);tD.prototype.B=function(a,b,c){c=void 0===c?{}:c;return(this.options.shared?Wra:Vra)(a,b,Object.assign({},c))};
tD.prototype.delete=function(a){a=void 0===a?{}:a;return(this.options.shared?$ra:Xra)(this.name,a)};var emb={},bsa=g.uD("ytGcfConfig",{rr:(emb.coldConfigStore={Zm:1},emb.hotConfigStore={Zm:1},emb),shared:!1,upgrade:function(a,b){b(1)&&(g.gD(g.aD(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.gD(g.aD(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});g.y(hsa,g.I);hsa.prototype.va=function(){for(var a=g.u(this.B),b=a.next();!b.done;b=a.next()){var c=this.j;b=c.indexOf(b.value);0<=b&&c.splice(b,1)}this.B.length=0;g.I.prototype.va.call(this)};AD.prototype.Hr=function(a){this.hotHashData=a;g.Va("yt.gcf.config.hotHashData",this.hotHashData||null)};var fmb="undefined"!==typeof TextEncoder?new TextEncoder:null,Ysa=fmb?function(a){return fmb.encode(a)}:function(a){a=g.Fg(a);
for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};var bza={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},eza={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};ED.prototype.yk=function(){return{version:this.version,args:this.args}};FD.prototype.toString=function(){return this.topic};var gmb=g.Xa("ytPubsub2Pubsub2Instance")||new g.Nv;g.Nv.prototype.subscribe=g.Nv.prototype.subscribe;g.Nv.prototype.unsubscribeByKey=g.Nv.prototype.Jh;g.Nv.prototype.publish=g.Nv.prototype.publish;g.Nv.prototype.clear=g.Nv.prototype.clear;g.Va("ytPubsub2Pubsub2Instance",gmb);var HD=g.Xa("ytPubsub2Pubsub2SubscribedKeys")||{};g.Va("ytPubsub2Pubsub2SubscribedKeys",HD);var ID=g.Xa("ytPubsub2Pubsub2TopicToKeys")||{};g.Va("ytPubsub2Pubsub2TopicToKeys",ID);var Hsa=g.Xa("ytPubsub2Pubsub2IsAsync")||{};
g.Va("ytPubsub2Pubsub2IsAsync",Hsa);g.Va("ytPubsub2Pubsub2SkipSubKey",null);var Osa=void 0,Msa=void 0;var Usa=g.BB("max_body_size_to_compress",5E5),Vsa=g.BB("min_body_size_to_compress",500),LD=!0,OD=0,ND=0,Zsa=g.BB("compression_performance_threshold_lr",250),$sa=g.BB("slow_compressions_before_abandon_count",4),Qsa=!1,KD=new Map,Xsa=1,Wsa=!0;g.k=QD.prototype;g.k.writeThenSend=function(a,b){var c=this;b=void 0===b?{}:b;if(PD(this)&&this.j){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.Bh.set(d,this.Ff).then(function(e){d.id=e;c.fh.Wh()&&c.hE(d)}).catch(function(e){c.hE(d);
RD(c,e)})}else this.sendFn(a,b)};
g.k.sendThenWrite=function(a,b,c){var d=this;b=void 0===b?{}:b;if(PD(this)&&this.j){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.jb&&this.jb("nwl_skip_retry")&&(e.skipRetry=c);if(this.fh.Wh()||this.jb&&this.jb("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var f=b.onError?b.onError:function(){};
b.onError=function(h,l){return g.H(function(m){if(1==m.j)return g.z(m,d.Bh.set(e,d.Ff).catch(function(n){RD(d,n)}),2);
f(h,l);g.Aa(m)})}}this.sendFn(a,b,e.skipRetry)}else this.Bh.set(e,this.Ff).catch(function(h){d.sendFn(a,b,e.skipRetry);
RD(d,h)})}else this.sendFn(a,b,this.jb&&this.jb("nwl_skip_retry")&&c)};
g.k.sendAndWrite=function(a,b){var c=this;b=void 0===b?{}:b;if(PD(this)&&this.j){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,f=b.onSuccess?b.onSuccess:function(){};
d.options.onSuccess=function(h,l){void 0!==d.id?c.Bh.lz(d.id,c.Ff):e=!0;c.fh.Kw&&c.jb&&c.jb("vss_network_hint")&&c.fh.Kw(!0);f(h,l)};
this.sendFn(d.url,d.options,void 0,!0);this.Bh.set(d,this.Ff).then(function(h){d.id=h;e&&c.Bh.lz(d.id,c.Ff)}).catch(function(h){RD(c,h)})}else this.sendFn(a,b,void 0,!0)};
g.k.GB=function(){var a=this;if(!PD(this))throw Error("IndexedDB is not supported: throttleSend");this.B||(this.B=this.Qn.Mi(function(){var b;return g.H(function(c){if(1==c.j)return g.z(c,a.Bh.kX("NEW",a.Ff),2);if(3!=c.j)return b=c.B,b?g.z(c,a.hE(b),3):(a.pN(),c.return());a.B&&(a.B=0,a.GB());g.Aa(c)})},this.M0))};
g.k.pN=function(){this.Qn.Mj(this.B);this.B=0};
g.k.hE=function(a){var b=this,c;return g.H(function(d){switch(d.j){case 1:if(!PD(b))throw Error("IndexedDB is not supported: immediateSend");if(void 0===a.id){d.Ia(2);break}return g.z(d,b.Bh.o9(a.id,b.Ff),3);case 3:(c=d.B)||b.Hz(Error("The request cannot be found in the database."));case 2:if(b.QK(a,b.M_)){d.Ia(4);break}b.Hz(Error("Networkless Logging: Stored logs request expired age limit"));if(void 0===a.id){d.Ia(5);break}return g.z(d,b.Bh.lz(a.id,b.Ff),5);case 5:return d.return();case 4:a.skipRetry||
(a=fta(b,a));if(!a){d.Ia(0);break}if(!a.skipRetry||void 0===a.id){d.Ia(8);break}return g.z(d,b.Bh.lz(a.id,b.Ff),8);case 8:b.sendFn(a.url,a.options,!!a.skipRetry),g.Aa(d)}})};
g.k.QK=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0};
g.k.TK=function(){var a=this;if(!PD(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Bh.kX("QUEUED",this.Ff).then(function(b){b&&!a.QK(b,a.H_)?a.Qn.Mi(function(){return g.H(function(c){if(1==c.j)return void 0===b.id?c.Ia(2):g.z(c,a.Bh.HR(b.id,a.Ff),2);a.TK();g.Aa(c)})}):a.fh.Wh()&&a.GB()})};var SD;var fva={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,mbsConnectionInitiated:138,
mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,kidsParentalGateTracking:168,
kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,
dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,
tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,
tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496};var hmb={},pta=g.uD("ServiceWorkerLogsDatabase",{rr:(hmb.SWHealthLog={Zm:1},hmb),shared:!0,upgrade:function(a,b){b(1)&&g.gD(g.aD(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var wta={},vta=0;var yta;WD.prototype.requestComplete=function(a,b){b&&(this.B=!0);a=this.removeParams(a);this.j.get(a)||this.j.set(a,b)};
WD.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.j.get(a))?!1:!1===a&&this.B?!0:null};
WD.prototype.removeParams=function(a){return a.split("?")[0]};
WD.prototype.removeParams=WD.prototype.removeParams;WD.prototype.isEndpointCFR=WD.prototype.isEndpointCFR;WD.prototype.requestComplete=WD.prototype.requestComplete;WD.getInstance=XD;g.y(YD,g.Dd);g.k=YD.prototype;g.k.Wh=function(){return this.j.Wh()};
g.k.Kw=function(a){this.j.j=a};
g.k.T7=function(){var a=window.navigator.onLine;return void 0===a?!0:a};
g.k.V6=function(){this.B=!0};
g.k.listen=function(a,b){return this.j.listen(a,b)};
g.k.WK=function(a){a=Xu(this.j,a);a.then(function(b){g.AB("use_cfr_monitor")&&XD().requestComplete("generate_204",b)});
return a};
YD.prototype.sendNetworkCheckRequest=YD.prototype.WK;YD.prototype.listen=YD.prototype.listen;YD.prototype.enableErrorFlushing=YD.prototype.V6;YD.prototype.getWindowStatus=YD.prototype.T7;YD.prototype.networkStatusHint=YD.prototype.Kw;YD.prototype.isNetworkAvailable=YD.prototype.Wh;YD.getInstance=Ata;g.y(g.ZD,g.Dd);g.ZD.prototype.Wh=function(){var a=g.Xa("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.B)():!0};
g.ZD.prototype.Kw=function(a){var b=g.Xa("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);b&&b(a)};
g.ZD.prototype.WK=function(a){var b=this,c;return g.H(function(d){c=g.Xa("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.B);return g.AB("skip_network_check_if_cfr")&&XD().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var f;b.Kw((null==(f=window.navigator)?void 0:f.onLine)||!0);e(b.Wh())})):c?d.return(c(a)):d.return(!0)})};var Cta;g.y($D,QD);$D.prototype.writeThenSend=function(a,b){b||(b={});b=Gta(a,b);g.CC()||(this.j=!1);QD.prototype.writeThenSend.call(this,a,b)};
$D.prototype.sendThenWrite=function(a,b,c){b||(b={});b=Gta(a,b);g.CC()||(this.j=!1);QD.prototype.sendThenWrite.call(this,a,b,c)};
$D.prototype.sendAndWrite=function(a,b){b||(b={});b=Gta(a,b);g.CC()||(this.j=!1);QD.prototype.sendAndWrite.call(this,a,b)};
$D.prototype.awaitInitialization=function(){return this.C.promise};var Hta=g.Ta.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Va("ytNetworklessLoggingInitializationOptions",Hta);g.bE.prototype.isReady=function(){!this.config_&&usa()&&(this.config_=g.CD());return!!this.config_};var imb,eE,gE;imb=g.Ta.ytPubsubPubsubInstance||new g.Nv;eE=g.Ta.ytPubsubPubsubSubscribedKeys||{};gE=g.Ta.ytPubsubPubsubTopicToKeys||{};g.fE=g.Ta.ytPubsubPubsubIsSynchronous||{};g.Nv.prototype.subscribe=g.Nv.prototype.subscribe;g.Nv.prototype.unsubscribeByKey=g.Nv.prototype.Jh;g.Nv.prototype.publish=g.Nv.prototype.publish;g.Nv.prototype.clear=g.Nv.prototype.clear;g.Va("ytPubsubPubsubInstance",imb);g.Va("ytPubsubPubsubTopicToKeys",gE);g.Va("ytPubsubPubsubIsSynchronous",g.fE);
g.Va("ytPubsubPubsubSubscribedKeys",eE);var Ota={};g.y(mE,g.I);mE.prototype.append=function(a){if(!this.B)throw Error("This does not support the append operation");a=a.Ib();this.Ib().appendChild(a)};
g.y(nE,mE);nE.prototype.Ib=function(){return this.j};g.y(Tta,g.I);var oE=Date.now().toString();var Yta={};var wE=Symbol("injectionDeps");uE.prototype.toString=function(){return"InjectionToken("+this.name+")"};
Zta.prototype.resolve=function(a){return a instanceof vE?xE(this,a.key,[],!0):xE(this,a,[])};var bua;var zE=window;var AE=g.AB("web_enable_lifecycle_monitoring")&&0!==cua(),lua=g.AB("web_enable_lifecycle_monitoring");gua.prototype.cancel=function(){for(var a=g.u(this.j),b=a.next();!b.done;b=a.next())b=b.value,void 0===b.jobId||b.DK||this.scheduler.Mj(b.jobId),b.DK=!0;this.B.resolve()};g.k=BE.prototype;g.k.install=function(a){this.plugins.push(a);return this};
g.k.uninstall=function(){var a=this;g.Ia.apply(0,arguments).forEach(function(b){b=a.plugins.indexOf(b);-1<b&&a.plugins.splice(b,1)})};
g.k.transition=function(a,b){var c=this;AE&&eua(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&&(hua(this.B),this.B=void 0);mua(this,a,b);this.state=a;AE&&dua(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(f){return f[a]}).map(function(f){return f[a]});
d(jua(this,e),b)}else throw Error("no transition specified from "+this.state+" to "+a);};
g.k.wca=function(a){var b=g.Ia.apply(1,arguments);g.HC();for(var c=g.u(a),d=c.next(),e={};!d.done;e={FE:void 0},d=c.next())e.FE=d.value,Zqa(function(f){return function(){kua(f.FE.name);f.FE.callback.apply(f.FE,g.qa(b));CE(f.FE.name)}}(e))};
g.k.vca=function(a){var b=g.Ia.apply(1,arguments),c,d,e,f;return g.H(function(h){1==h.j&&(g.HC(),c=g.u(a),d=c.next(),e={});if(3!=h.j){if(d.done)return h.Ia(0);e.mA=d.value;e.qH=void 0;f=function(l){return function(){kua(l.mA.name);var m=l.mA.callback.apply(l.mA,g.qa(b));"function"===typeof(null==m?void 0:m.then)?l.qH=m.then(function(){CE(l.mA.name)}):CE(l.mA.name)}}(e);
Zqa(f);return e.qH?g.z(h,e.qH,3):h.Ia(3)}e={mA:void 0,qH:void 0};d=c.next();return h.Ia(2)})};
g.k.m0=function(a){var b=g.Ia.apply(1,arguments),c=this,d=a.map(function(e){return{FP:function(){kua(e.name);e.callback.apply(e,g.qa(b));CE(e.name)},
priority:iua(c,e)}});
d.length&&(this.B=new gua(d))};
g.ha.Object.defineProperties(BE.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var nua;g.y(DE,BE);DE.prototype.G=function(a,b){var c=this;this.j=g.FC(0,function(){"application_navigating"===c.currentState&&c.transition("none")},5E3);
a(null==b?void 0:b.event)};
DE.prototype.K=function(a,b){this.j&&(g.Zu.Mj(this.j),this.j=null);a(null==b?void 0:b.event)};var ava=[];g.Va("yt.logging.transport.getScrapedGelPayloads",function(){return ava});EE.prototype.storePayload=function(a,b){a=pua(a);this.store[a]?this.store[a].push(b):(this.B={},this.store[a]=[b]);this.j++;return a};
EE.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=qua(this,a.keys.splice(0,1)[0]),c=[],d=0;d<b.length;d++)this.store[b[d]]&&a.sizeLimit&&(this.store[b[d]].length<=a.sizeLimit?(c.push.apply(c,g.qa(this.store[b[d]])),delete this.store[b[d]]):c.push.apply(c,g.qa(this.store[b[d]].splice(0,a.sizeLimit))));this.j-=c.length;(null==a?0:a.sizeLimit)&&c.length<(null==a?void 0:a.sizeLimit)&&(a.sizeLimit-=c.length,c.push.apply(c,g.qa(this.smartExtractMatchingEntries(a))));
return c};
EE.prototype.extractMatchingEntries=function(a){a=qua(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,g.qa(this.store[a[c]])),delete this.store[a[c]]);this.j-=b.length;return b};
EE.prototype.getSequenceCount=function(a){a=qua(this,a);for(var b=0,c=0;c<a.length;c++){var d=void 0;b+=(null==(d=this.store[a[c]])?void 0:d.length)||0}return b};
EE.prototype.getSequenceCount=EE.prototype.getSequenceCount;EE.prototype.extractMatchingEntries=EE.prototype.extractMatchingEntries;EE.prototype.smartExtractMatchingEntries=EE.prototype.smartExtractMatchingEntries;EE.prototype.storePayload=EE.prototype.storePayload;var Oua=g.BB("initial_gel_batch_timeout",2E3),Nua=g.BB("gel_queue_timeout_max_ms",6E4),$ua=Math.pow(2,16)-1,Pua=g.BB("gel_min_batch_size",5),NE=void 0,eva=new GE,dva=new GE,Mua=new GE,Lua=new GE,Eua,RE=!0,Zua=1,IE=new Map,QE=g.Ta.ytLoggingTransportTokensToCttTargetIds_||{};g.Va("ytLoggingTransportTokensToCttTargetIds_",QE);var PE=g.Ta.ytLoggingTransportTokensToJspbCttTargetIds_||{};g.Va("ytLoggingTransportTokensToJspbCttTargetIds_",PE);var LE={},rua=!1;var SE=g.Ta.ytLoggingGelSequenceIdObj_||{};g.Va("ytLoggingGelSequenceIdObj_",SE);var jva,UE,kva,mva=g.bE,iva=!1,pva=[];var rva=g.Ta.ytLoggingGelSequenceIdObj_||{};g.Va("ytLoggingGelSequenceIdObj_",rva);var K2=g.Ta.ytLoggingDocDocumentNonce_;K2||(K2=g.qE(16),g.Va("ytLoggingDocDocumentNonce_",K2));var Kva=K2;var Hva={B2:0,mta:1,Cua:2,i5:3,Swa:4,jkb:5,LVa:6,SHARE:7,y3a:8,i5a: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 zva=1;g.k=YE.prototype;g.k.getAsJson=function(){var a={};void 0!==this.j.trackingParams?a.trackingParams=this.j.trackingParams:(a.veType=this.j.veType,void 0!==this.j.veCounter&&(a.veCounter=this.j.veCounter),void 0!==this.j.elementIndex&&(a.elementIndex=this.j.elementIndex));void 0!==this.j.dataElement&&(a.dataElement=this.j.dataElement.getAsJson());void 0!==this.j.youtubeData&&(a.youtubeData=this.j.youtubeData);this.j.isCounterfactual&&(a.isCounterfactual=!0);return a};
g.k.getAsJspb=function(){var a=new eA;void 0!==this.j.trackingParams?a.setTrackingParams(this.j.trackingParams):(void 0!==this.j.veType&&Ek(a,2,this.j.veType),void 0!==this.j.veCounter&&Ek(a,6,this.j.veCounter),void 0!==this.j.elementIndex&&Ek(a,3,this.j.elementIndex),this.j.isCounterfactual&&Dk(a,5,!0));if(void 0!==this.j.dataElement){var b=this.j.dataElement.getAsJspb();rk(a,eA,7,b)}void 0!==this.j.youtubeData&&rk(a,vy,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",Eva);g.Va("yt_logging_screen.getCurrentCsn",g.aF);g.Va("yt_logging_screen.getCttAuthInfo",bF);g.Va("yt_logging_screen.setCurrentScreen",Lva);var Pva="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var bwa=[{WP:function(a){return"Cannot read property '"+a.key+"'"},
sK:{Error:[{Aj:/(Permission denied) to access property "([^']+)"/,groups:["reason","key"]}],TypeError:[{Aj:/Cannot read property '([^']+)' of (null|undefined)/,groups:["key","value"]},{Aj:/\u65e0\u6cd5\u83b7\u53d6\u672a\u5b9a\u4e49\u6216 (null|undefined) \u5f15\u7528\u7684\u5c5e\u6027\u201c([^\u201d]+)\u201d/,groups:["value","key"]},{Aj:/\uc815\uc758\ub418\uc9c0 \uc54a\uc74c \ub610\ub294 (null|undefined) \ucc38\uc870\uc778 '([^']+)' \uc18d\uc131\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4./,
groups:["value","key"]},{Aj:/No se puede obtener la propiedad '([^']+)' de referencia nula o sin definir/,groups:["key"]},{Aj:/Unable to get property '([^']+)' of (undefined or null) reference/,groups:["key","value"]},{Aj:/(null) is not an object \(evaluating '(?:([^.]+)\.)?([^']+)'\)/,groups:["value","base","key"]}]}},{WP:function(a){return"Cannot call '"+a.key+"'"},
sK:{TypeError:[{Aj:/(?:([^ ]+)?\.)?([^ ]+) is not a function/,groups:["base","key"]},{Aj:/([^ ]+) called on (null or undefined)/,groups:["key","value"]},{Aj:/Object (.*) has no method '([^ ]+)'/,groups:["base","key"]},{Aj:/Object doesn't support property or method '([^ ]+)'/,groups:["key"]},{Aj:/\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f '([^']+)' \u30d7\u30ed\u30d1\u30c6\u30a3\u307e\u305f\u306f\u30e1\u30bd\u30c3\u30c9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u305b\u3093/,groups:["key"]},
{Aj:/\uac1c\uccb4\uac00 '([^']+)' \uc18d\uc131\uc774\ub098 \uba54\uc11c\ub4dc\ub97c \uc9c0\uc6d0\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4./,groups:["key"]}]}},{WP:function(a){return a.key+" is not defined"},
sK:{ReferenceError:[{Aj:/(.*) is not defined/,groups:["key"]},{Aj:/Can't find variable: (.*)/,groups:["key"]}]}}];var Uva={lr:[],ys:[{callback:Qva,weight:500}]};var Sva;var fF=new g.Nv;var cwa=new Set,$va=0,fwa=0,ewa=0,awa=[],hwa=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var jwa=new g.Ow("parallelCommand");var mwa=new g.Ow("performOnceCommand");var lwa=new g.Ow("serialCommand");var iF=void 0;g.y(qwa,ED);var twa=new FD("screen-created",qwa),pF=[],rwa=Ewa,Fwa=0,lF=new Map,uwa=new Map,vwa=new Map;g.lb(g.wF,g.I);g.wF.prototype.subscribe=function(a,b,c){return this.Ma()?0:this.pj.subscribe(a,b,c)};
g.wF.prototype.unsubscribe=function(a,b,c){return this.Ma()?!1:this.pj.unsubscribe(a,b,c)};
g.wF.prototype.Jh=function(a){return this.Ma()?!1:this.pj.Jh(a)};
g.wF.prototype.publish=function(a,b){return this.Ma()?!1:this.pj.publish.apply(this.pj,arguments)};var l5a=16/9,jmb=[.25,.5,.75,1,1.25,1.5,1.75,2],kmb=jmb.concat([3,4,5,6,7,8,9,10,15]);var Hwa=1;g.y(g.AF,g.I);g.k=g.AF.prototype;
g.k.createElement=function(a,b){b=b||"svg"===a.I;var c=a.S,d=a.Ka;if(b){var e=document.createElementNS("http://www.w3.org/2000/svg",a.I);g.bS&&(a.X||(a.X={}),a.X.focusable="false")}else e=g.yf(a.I);if(c){if(c=BF(this,e,"class",c))CF(this,e,"class",c),this.Hb[c]=e}else if(d){c=g.u(d);for(var f=c.next();!f.done;f=c.next())this.Hb[f.value]=e;CF(this,e,"class",d.join(" "))}d=a.xa;c=a.V;if(d)b=BF(this,e,"child",d),void 0!==b&&e.appendChild(g.zf(b));else if(c)for(d=0,c=g.u(c),f=c.next();!f.done;f=c.next())if(f=
f.value)if("string"===typeof f)f=BF(this,e,"child",f),null!=f&&e.appendChild(g.zf(f));else if(f.element)e.appendChild(f.element);else{var h=f;f=this.createElement(h,b);e.appendChild(f);h.Cc&&(h=zF(),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),Ef(e,f,d++))}if(a=a.X)for(b=e,d=g.u(Object.keys(a)),c=d.next();!c.done;c=d.next())c=c.value,f=a[c],CF(this,b,c,"string"===typeof f?
BF(this,b,c,f):f);return e};
g.k.Fa=function(a){return this.Hb[a]};
g.k.Ja=function(a,b){"number"===typeof b?Ef(a,this.element,b):a.appendChild(this.element)};
g.k.detach=function(){g.Ff(this.element)};
g.k.update=function(a){for(var b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next())c=c.value,this.updateValue(c,a[c])};
g.k.updateValue=function(a,b){(a=this.ke["{{"+a+"}}"])&&CF(this,a[0],a[1],b)};
g.k.va=function(){this.Hb={};this.ke={};this.detach();g.I.prototype.va.call(this)};g.y(g.W,g.AF);g.k=g.W.prototype;g.k.Ld=function(a,b){this.updateValue(b||"content",a)};
g.k.show=function(){this.Eb||(g.zs(this.element,"display",""),this.Eb=!0)};
g.k.hide=function(){this.Eb&&(g.zs(this.element,"display","none"),this.Eb=!1)};
g.k.Hc=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.gb)(c,d||this);d={target:a,type:b,listener:c};this.listeners.push(d);a.addEventListener(b,c);return d};
g.k.Pc=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.va=function(){for(;this.listeners.length;){var a=this.listeners.pop();a&&a.target.removeEventListener(a.type,a.listener)}g.AF.prototype.va.call(this)};g.y(g.EF,g.W);g.EF.prototype.subscribe=function(a,b,c){return this.Ra.subscribe(a,b,c)};
g.EF.prototype.unsubscribe=function(a,b,c){return this.Ra.unsubscribe(a,b,c)};
g.EF.prototype.Jh=function(a){return this.Ra.Jh(a)};
g.EF.prototype.publish=function(a){return this.Ra.publish.apply(this.Ra,[a].concat(g.qa(g.Ia.apply(1,arguments))))};var lmb=new WeakSet;g.y(FF,g.EF);g.k=FF.prototype;g.k.bind=function(a){this.Za||a.renderer&&this.init(a.id,a.renderer,{},a);return Promise.resolve()};
g.k.init=function(a,b,c){this.Za=a;this.element.setAttribute("id",this.Za);this.zb&&g.uv(this.element,this.zb);this.qa=b&&b.adRendererCommands;this.La=b.interaction;var d;(null==(d=this.La)?0:d.onTap)&&g.uv(this.element,"ytp-ad-component--clickable");this.macros=c;this.N=b.trackingParams||null;this.K=b.loggingDirectives;null!=this.N?this.createServerVe(this.element,this.N):this.K&&(a=this.element,b=this.K,this.api.createServerVe(a,this,!0),this.api.setTrackingParams(a,b.trackingParams||null))};
g.k.clear=function(){};
g.k.hide=function(){g.EF.prototype.hide.call(this);(null!=this.N||this.K)&&this.logVisibility(this.element,!1)};
g.k.show=function(){g.EF.prototype.show.call(this);if(!this.Gb){this.Gb=!0;var a=this.qa&&this.qa.impressionCommand,b,c=null==(b=this.La)?void 0:b.onFirstVisible;a?this.aG(a):c&&(a=nwa(c))&&this.aG(a)}(null!=this.N||this.K)&&this.logVisibility(this.element,!0)};
g.k.onClick=function(a){if((this.N||this.K)&&!lmb.has(a)){var b=this.element;this.api.hasVe(b)&&this.Eb&&this.api.logClick(b,this.interactionLoggingClientData);lmb.add(a)}var c=this.qa&&this.qa.clickCommand,d;b=null==(d=this.La)?void 0:d.onTap;if(c)b=this.F_(c),this.aG(b);else{if(d=b)a:{d=this.element;a=a.composedPath();a=g.u(a);for(c=a.next();!c.done;c=a.next()){c=c.value;if(c===d)break;if(0<=c.className.indexOf("ytp-ad-component--clickable")){d=!1;break a}}d=!0}d&&(b=nwa(b))&&this.aG(b)}};
g.k.F_=function(a){return a};
g.k.z4=function(a){var b=this.Ba;b.N=!0;b.B=a.touches.length;b.j.isActive()&&(b.j.stop(),b.G=!0);a=a.touches;b.K=Uta(b,a)||1!=a.length;var c=a.item(0);b.K||!c?(b.Z=Infinity,b.Y=Infinity):(b.Z=c.clientX,b.Y=c.clientY);for(c=b.C.length=0;c<a.length;c++){var d=a.item(c);b.C.push(d.identifier)}};
g.k.y4=function(a){var b=this.Ba;a=a.changedTouches.item(0);var c;if(c=Ic()){c=g.pc();var d="";if(Uaa())d=/Windows (?:NT|Phone) ([0-9.]+)/,d=(c=d.exec(c))?c[1]:"0.0";else if(Ic())d=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,d=(c=d.exec(c))&&c[1].replace(/_/g,".");else if(Jc())d=/Mac OS X ([0-9_.]+)/,d=(c=d.exec(c))?c[1].replace(/_/g,"."):"10";else if(jc(g.pc(),"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(Fc()?"Chrome OS"===
wc.platform:yc("CrOS"))d=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,d=(c=d.exec(c))&&c[1];c=!(0<=g.mc(d||"",8))}if(c||a&&Math.pow(a.clientX-b.Z,2)+Math.pow(a.clientY-b.Y,2)>Math.pow(5,2))b.D=!0};
g.k.x4=function(a){if(this.Ba){var b=this.Ba,c=a.changedTouches;c&&b.N&&1==b.B&&!b.D&&!b.G&&!b.K&&Uta(b,c)&&(b.qa=a,b.j.start());b.B=a.touches.length;0===b.B&&(b.N=!1,b.D=!1,b.C.length=0);b.G=!1}};
g.k.aG=function(a){this.layoutId?this.ib.executeCommand(a,this.layoutId):g.dF(new g.AC("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.va=function(){this.clear(null);this.Pc(this.rb);for(var a=g.u(this.Ga),b=a.next();!b.done;b=a.next())this.Pc(b.value);g.EF.prototype.va.call(this)};g.y(PF,FF);
PF.prototype.init=function(a,b,c){FF.prototype.init.call(this,a,b,c);this.j=b;if(null==b.text&&null==b.icon)g.eF(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":a="ytp-ad-button-link";break;default:a=null}null!=a&&g.uv(this.element,a);null!=b.text&&(a=g.HF(b.text),g.ec(a)||(this.element.setAttribute("aria-label",a),this.C=new g.EF({I:"span",S:"ytp-ad-button-text",xa:a}),g.O(this,this.C),this.C.Ja(this.element)));this.api.U().L("use_accessibility_data_on_desktop_player_button")&&b.accessibilityData&&
b.accessibilityData.accessibilityData&&b.accessibilityData.accessibilityData.label&&!g.ec(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);null!=b.icon&&(b=OF(b.icon),null!=b&&(this.B=new g.EF({I:"span",S:"ytp-ad-button-icon",V:[b]}),g.O(this,this.B)),this.D?Ef(this.element,this.B.element,0):this.B.Ja(this.element))}};
PF.prototype.clear=function(){this.hide()};
PF.prototype.onClick=function(a){FF.prototype.onClick.call(this,a);a=g.u(jxa(this));for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.ib.executeCommand(b,this.layoutId):g.dF(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.y(QF,g.I);QF.prototype.va=function(){this.B&&g.kC(this.B);this.j.clear();RF=null;g.I.prototype.va.call(this)};
QF.prototype.register=function(a,b){b&&this.j.set(a,b)};
var RF=null;g.y(UF,FF);
UF.prototype.init=function(a,b,c){FF.prototype.init.call(this,a,b,c);a=b.hoverText||null;b=b.button&&g.V(b.button,g.yM)||null;null==b?g.dF(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new PF(this.api,this.layoutId,this.interactionLoggingClientData,this.ib),g.O(this,this.button),this.button.init(uF("button"),b,this.macros),a&&this.button.element.setAttribute("aria-label",g.HF(a)),this.button.Ja(this.element),this.G&&!g.tv(this.button.element,"ytp-ad-clickable")&&g.uv(this.button.element,
"ytp-ad-clickable"),a&&(this.B=new g.EF({I:"div",S:"ytp-ad-hover-text-container"}),this.D&&(b=new g.EF({I:"div",S:"ytp-ad-hover-text-callout"}),b.Ja(this.B.element),g.O(this,b)),g.O(this,this.B),this.B.Ja(this.element),b=SF(a),Ef(this.B.element,b,0)),this.show())};
UF.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();FF.prototype.hide.call(this)};
UF.prototype.show=function(){this.button&&this.button.show();FF.prototype.show.call(this)};g.y(WF,FF);
WF.prototype.init=function(a,b,c){FF.prototype.init.call(this,a,b,c);c=(a=b.thumbnail)&&VF(a)||"";g.ec(c)?.01>Math.random()&&g.eF(Error("Found AdImage without valid image URL")):(this.j?g.zs(this.element,"backgroundImage","url("+c+")"):uf(this.element,{src:c}),uf(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())};
WF.prototype.clear=function(){this.hide()};g.y(XF,FF);g.k=XF.prototype;g.k.hide=function(){FF.prototype.hide.call(this);this.C&&this.C.focus()};
g.k.show=function(){this.C=document.activeElement;FF.prototype.show.call(this);this.D.focus()};
g.k.init=function(a,b,c){FF.prototype.init.call(this,a,b,c);this.B=b;b.dialogMessages||null!=b.title?null==b.confirmLabel?g.dF(Error("ConfirmDialogRenderer.confirmLabel was not set.")):null==b.cancelLabel?g.dF(Error("ConfirmDialogRenderer.cancelLabel was not set.")):nxa(this,b):g.dF(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))};
g.k.clear=function(){g.pC(this.j);this.hide()};
g.k.rQ=function(){this.hide()};
g.k.nM=function(){var a=this.B.cancelEndpoint;a&&(this.layoutId?this.ib.executeCommand(a,this.layoutId):g.dF(Error("Missing layoutId for confirm dialog.")));this.hide()};
g.k.sQ=function(){var a=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;a&&(this.layoutId?this.ib.executeCommand(a,this.layoutId):g.dF(Error("Missing layoutId for confirm dialog.")));this.hide()};g.y(YF,FF);g.k=YF.prototype;
g.k.init=function(a,b,c){FF.prototype.init.call(this,a,b,c);this.C=b;if(null==b.defaultText&&null==b.defaultIcon)g.dF(Error("ToggleButtonRenderer must have either text or icon set."));else if(null==b.defaultIcon&&null!=b.toggledIcon)g.dF(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":a="ytp-ad-toggle-button-default-style";break;default:a=null}null!=a&&g.uv(this.D,a)}a={};b.defaultText?
(c=g.HF(b.defaultText),g.ec(c)||(a.buttonText=c,this.api.U().experiments.jb("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",c),this.api.U().experiments.jb("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",c))):g.Ms(this.Da,!1);b.defaultTooltip&&(a.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.B.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(c=OF(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",c),b.toggledIcon?(this.ra=
!0,c=OF(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",c)):(g.Ms(this.Y,!0),g.Ms(this.G,!1)),g.Ms(this.j,!1)):g.Ms(this.B,!1);g.id(a)||this.update(a);b.isToggled&&(g.uv(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));oxa(this);this.T(this.element,"change",this.rU);this.show()}};
g.k.onClick=function(a){0<this.Ga.length&&(this.toggleButton(!this.isToggled()),this.rU());FF.prototype.onClick.call(this,a)};
g.k.rU=function(){g.yv(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var a=g.u(pxa(this,this.isToggled())),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.ib.executeCommand(b,this.layoutId):g.dF(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);oxa(this)};
g.k.clear=function(){this.hide()};
g.k.toggleButton=function(a){g.yv(this.D,"ytp-ad-toggle-button-toggled",a);this.j.checked=a;oxa(this)};
g.k.isToggled=function(){return this.j.checked};g.y(ZF,nC);ZF.prototype.K=function(a){if(Array.isArray(a)){a=g.u(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b instanceof qxa&&this.D(b)}};g.y(rxa,FF);g.k=rxa.prototype;g.k.init=function(a,b,c){FF.prototype.init.call(this,a,b,c);b.reasons?null==b.confirmLabel?g.dF(Error("AdFeedbackRenderer.confirmLabel was not set.")):(null==b.cancelLabel&&g.eF(Error("AdFeedbackRenderer.cancelLabel was not set.")),null==b.title&&g.eF(Error("AdFeedbackRenderer.title was not set.")),vxa(this,b)):g.dF(Error("AdFeedbackRenderer.reasons were not set."))};
g.k.clear=function(){Fqa(this.G);Fqa(this.Y);this.D.length=0;this.hide()};
g.k.hide=function(){this.j&&this.j.hide();this.B&&this.B.hide();FF.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;FF.prototype.show.call(this);this.G.focus()};
g.k.BZ=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()};
g.k.tba=function(){this.hide()};
$F.prototype.Ib=function(){return this.j.element};
$F.prototype.getCommand=function(){return this.B};
$F.prototype.isChecked=function(){return this.C.checked};g.y(aG,XF);aG.prototype.rQ=function(a){XF.prototype.rQ.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
aG.prototype.nM=function(a){XF.prototype.nM.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")};
aG.prototype.sQ=function(a){XF.prototype.sQ.call(this,a);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.y(wxa,FF);g.k=wxa.prototype;
g.k.init=function(a,b,c){FF.prototype.init.call(this,a,b,c);this.G=b;if(null==b.dialogMessage&&null==b.title)g.dF(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{null==b.confirmLabel&&g.eF(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(a=b.closeOverlayRenderer&&g.V(b.closeOverlayRenderer,g.yM)||null)this.j=new PF(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"),
g.O(this,this.j),this.j.init(uF("button"),a,this.macros),this.j.Ja(this.element);b.title&&(a=g.HF(b.title),this.updateValue("title",a));if(b.adReasons)for(a=b.adReasons,c=0;c<a.length;c++){var d=SF(a[c]);if(!g.ec(d.textContent)){var e=xf("LI");e.appendChild(d);this.Na.appendChild(e)}}else g.Ms(this.Na,!1);b.dialogMessage&&(a=SF(b.dialogMessage,!0),this.Wa.appendChild(a));b.confirmLabel&&(a=g.HF(b.confirmLabel),this.updateValue("confirmLabel",a));b.muteAdRenderer&&(b=g.V(b.muteAdRenderer,g.yM)||null)&&
(a=b.navigationEndpoint&&g.V(b.navigationEndpoint,wlb)||null,c=b.navigationEndpoint&&g.V(b.navigationEndpoint,Yjb)||null,null==a&&null==c?g.eF(Error("AdInfoDialogRenderer.muteAdRenderer was specified but contains neither an AdFeedbackEndpoint, nor a ConfirmDialogEndpoint.")):(a?xxa(this,a):c&&yxa(this,c),this.C=new PF(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,["ytp-ad-info-dialog-mute-button"],"button",!0),g.O(this,this.C),this.C.init(uF("button"),b,this.macros),this.C.listen("click",
this.T$,this),this.C.Ja(this.bb)));zxa(this)}};
g.k.clear=function(){Fqa(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();FF.prototype.hide.call(this);this.ra&&this.ra.focus()};
g.k.show=function(){this.j&&this.j.show();this.C&&this.C.show();if(!this.Va){for(var a=g.u(this.G&&this.G.impressionEndpoints||[]),b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.ib.executeCommand(b,this.layoutId):g.dF(Error("Missing layoutId for ad info dialog."));this.Va=!0}this.ra=document.activeElement;FF.prototype.show.call(this);this.Y.focus()};
g.k.sU=function(){if(this.G&&this.G.confirmServiceEndpoint){var a=this.G.confirmServiceEndpoint;this.layoutId?this.ib.executeCommand(a,this.layoutId):g.dF(Error("Missing layoutId for ad info dialog."))}this.api.onAdUxClicked("ad-info-dialog-close-button",this.layoutId);this.publish("d");this.hide()};
g.k.T$=function(){var a=this.B?this.B:this.D;a&&!a.Eb&&(this.hide(),a.show())};g.y(bG,UF);bG.prototype.init=function(a,b,c){UF.prototype.init.call(this,a,b,c);a=b.button&&g.V(b.button,g.yM)||null;null!=a&&(Exa(this,a,c),this.show())};
bG.prototype.hide=function(){this.button&&this.button.hide();this.j&&this.j.hide();UF.prototype.hide.call(this)};
bG.prototype.show=function(){this.button&&this.button.show();UF.prototype.show.call(this)};
bG.prototype.clear=function(){this.hide()};g.y(cG,FF);
cG.prototype.init=function(a,b,c){FF.prototype.init.call(this,a,b,c);this.j=b;this.isTemplated()||g.Of(this.element,GF(this.j));if(b.backgroundImage&&(a=(a=b.backgroundImage.thumbnail)?VF(a):"",c=(c=this.api.getVideoData(1))&&c.Il,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.Ye(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()};
cG.prototype.isTemplated=function(){return this.j.isTemplated||!1};
cG.prototype.clear=function(){this.hide()};var Txa={seekableStart:0,seekableEnd:1,current:0};g.y(dG,FF);dG.prototype.clear=function(){this.dispose()};g.y(g.gG,g.I);g.k=g.gG.prototype;g.k.show=function(a){1!==this.state&&2!==this.state&&(4===this.state&&this.eH(),5===this.state?(this.element.show(),this.state=null,this.delay.stop(),this.j&&this.j()):this.element.Eb||(hG(this,!0),this.state=1,a?this.delay.start(a):this.eH()))};
g.k.hide=function(){4!==this.state&&(1===this.state||2===this.state?(this.element.hide(),this.state=null,this.delay.stop()):this.element.Eb&&(hG(this,!0),this.state=4,this.delay.start(this.C)))};
g.k.eH=function(){switch(this.state){case 1:this.element.show();this.state=2;this.delay.start(10);break;case 2:hG(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();hG(this,!1);this.state=5;this.delay.start(0);break;case 5:if(this.state=null,this.onHidden)this.onHidden()}};
g.k.stop=function(){for(;null!==this.state&&5!==this.state;)this.delay.stop(),this.eH()};
g.k.va=function(){this.element.Ma()||this.element.element.removeAttribute("aria-hidden");g.I.prototype.va.call(this)};g.y(iG,dG);g.k=iG.prototype;
g.k.init=function(a,b,c){dG.prototype.init.call(this,a,b,c);a=b.durationMilliseconds;"number"===typeof a&&0>a&&g.dF(Error("durationMilliseconds was specified incorrectly in AdPreviewRenderer with a value of: "+a));this.fb&&(this.D?g.uv(this.B.element,"modern-countdown-next-to-thumbnail"):g.uv(this.B.element,"countdown-next-to-thumbnail"));a=b.durationMilliseconds;this.Na=null==a||0===a?this.j.hm():a;if(b.templatedCountdown)var d=b.templatedCountdown.templatedAdText;else b.staticPreview&&(d=b.staticPreview);
this.C.init(uF("ad-text"),d,c);(d=this.api.getVideoData(1))&&d.Il&&b.thumbnail?this.G.init(uF("ad-image"),b.thumbnail,c):(this.ra.hide(),this.D&&this.fb&&g.uv(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();fG(this);dG.prototype.hide.call(this)};
g.k.show=function(){eG(this);this.B.show();this.C.show();this.G.show();dG.prototype.show.call(this)};
g.k.Vp=function(){this.hide()};
g.k.oo=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.Wa&&a>=this.Na?(this.Da.hide(),this.Wa=!0,this.publish("i")):this.C&&this.C.isTemplated()&&(a=Math.max(0,Math.ceil((this.Na-a)/1E3)),a!=this.bb&&(Fxa(this.C,{TIME_REMAINING:String(a)}),this.bb=a)))}};g.y(Hxa,dG);g.k=Hxa.prototype;
g.k.init=function(a,b,c){dG.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.yM))&&a.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d)if(b.image&&b.image.thumbnail){var e=b.image.thumbnail.thumbnails;null!=e&&0<e.length&&g.ec(g.Ye(e[0].url))&&(e[0].url=d.profilePicture)}else g.eF(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.C.init(uF("ad-image"),b.image,c);this.G.init(uF("ad-text"),
b.headline,c);this.D.init(uF("ad-text"),b.description,c);this.B.init(uF("button"),a,c);c=iv(this.B.element);hv(this.B.element,c+" This link opens in new tab");this.ra=a.navigationEndpoint;this.api.tE()||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.tU.bind(this));this.Da=b.startMs||0;eG(this)}else g.dF(Error("FlyoutCtaRenderer has no valid action button."));else g.dF(Error("FlyoutCtaRenderer has no description AdText."));else g.dF(Error("FlyoutCtaRenderer has no headline AdText."));else g.eF(Error("FlyoutCtaRenderer has no image."))};
g.k.onClick=function(a){dG.prototype.onClick.call(this,a);this.api.pauseVideo();!g.Nf(this.B.element,a.target)&&this.ra&&(this.layoutId?this.ib.executeCommand(this.ra,this.layoutId):g.dF(Error("Missing layoutId for flyout cta.")))};
g.k.oo=function(){if(this.j){var a=this.j.getProgressState();(a&&a.current||this.Na)&&1E3*a.current>=this.Da&&(fG(this),g.wv(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}};
g.k.Vp=function(){this.clear()};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.tU.bind(this))};
g.k.show=function(){this.B&&this.B.show();dG.prototype.show.call(this)};
g.k.hide=function(){this.B&&this.B.hide();dG.prototype.hide.call(this)};
g.k.tU=function(a){"hidden"==a?this.show():this.hide()};g.y(Ixa,FF);g.k=Ixa.prototype;
g.k.init=function(a,b,c){FF.prototype.init.call(this,a,b,c);this.j=b;if(this.j.rectangle)for(a=this.j.likeButton&&g.V(this.j.likeButton,E2),b=this.j.dislikeButton&&g.V(this.j.dislikeButton,E2),this.C.init(uF("toggle-button"),a,c),this.B.init(uF("toggle-button"),b,c),this.T(this.element,"change",this.uU),this.D.show(100),this.show(),c=g.u(this.j&&this.j.impressionCommands||[]),a=c.next();!a.done;a=c.next())a=a.value,this.layoutId?this.ib.executeCommand(a,this.layoutId):g.dF(Error("Missing layoutId for instream user sentiment."))};
g.k.clear=function(){this.hide()};
g.k.hide=function(){this.C.hide();this.B.hide();FF.prototype.hide.call(this)};
g.k.show=function(){this.C.show();this.B.show();FF.prototype.show.call(this)};
g.k.uU=function(){Yka(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.gb("onYtShowToast",this.j.postMessageAction);this.D.hide()};
g.k.onClick=function(a){0<this.Ga.length&&this.uU();FF.prototype.onClick.call(this,a)};g.y(jG,g.I);g.k=jG.prototype;g.k.va=function(){this.reset();g.I.prototype.va.call(this)};
g.k.reset=function(){g.pC(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.wU,this);this.D.T(this.B,"mouseout",this.vU,this);this.qa&&(this.D.T(this.B,"focusin",this.wU,this),this.D.T(this.B,"focusout",this.vU,this));this.j?this.j.start():(this.K=this.C=!0,g.zs(this.B,{opacity:this.Y}))};
g.k.wU=function(){this.C&&(this.C=!1,this.N.play());this.G.stop();this.j&&this.j.stop()};
g.k.vU=function(){this.K?this.G.start():this.j&&this.j.start()};
g.k.EV=function(){this.C||(this.C=!0,this.Z.play(),this.K=!0)};g.y(pG,dG);g.k=pG.prototype;
g.k.init=function(a,b,c){dG.prototype.init.call(this,a,b,c);this.ra=b;(this.Da=Qxa(this))&&g.eF(Error("hasAdControlInClickCommands_ is true."));if(!b||g.id(b))g.dF(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.id(b.message))g.dF(Error("SkipButtonRenderer.message was not specified or empty."));else{a=this.G?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};b=OF(a);null==b?g.dF(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+a.iconType+".")):
(this.C=new g.EF({I:"button",Ka:[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.O(this,this.C),this.C.Ja(this.D.element),this.B=new cG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,"ytp-ad-skip-button-text"),this.G&&this.B.element.classList.add("ytp-ad-skip-button-text-centered"),this.B.init(uF("ad-text"),this.ra.message,c),g.O(this,this.B),Ef(this.C.element,this.B.element,
0));var d=void 0===d?null:d;c=this.api.U();!(0<this.Ga.length)&&c.B&&(GR?0:"ontouchstart"in document.documentElement&&(sha()||Jr()))&&(this.Pc(this.rb),d&&this.Pc(d),this.Ga=[this.T(this.element,"touchstart",this.z4,this),this.T(this.element,"touchmove",this.y4,this),this.T(this.element,"touchend",this.x4,this)])}};
g.k.clear=function(){this.Na.reset();this.hide()};
g.k.hide=function(){this.D.hide();this.B&&this.B.hide();fG(this);dG.prototype.hide.call(this)};
g.k.onClick=function(a){if(null!=this.C){if(a){var b=a||window.event;b.returnValue=!1;b.preventDefault&&b.preventDefault()}var c;if(0===Mxa(a,{contentCpn:(null==(c=this.api.getVideoData(1))?void 0:c.clientPlaybackNonce)||""})&&(this.api.U().L("enable_isk_gating")&&this.api.gb("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;dG.prototype.onClick.call(this,a);this.publish("j");this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.gb("onAdSkip");if(this.Wa||!this.Da)this.api.onAdUxClicked(this.componentType,
this.layoutId)}};
g.k.F_=function(a){if(!this.Wa)return this.Da&&kG("SkipButton click commands not pruned while ALC exist"),a;var b,c=null==(b=g.V(a,g.qG))?void 0:b.commands;if(!c)return a;a=[];for(b=0;b<c.length;b++){var d=c[b];d.adLifecycleCommand&&Pxa(d.adLifecycleCommand)||d.pingingEndpoint||d.adPingingEndpoint||a.push(d)}return{commandExecutorCommand:{commands:a}}};
g.k.show=function(){this.Na.start();this.D.show();this.B&&this.B.show();eG(this);dG.prototype.show.call(this);this.bb&&this.api.U().L("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};
g.k.Vp=function(){this.publish("k")};
g.k.oo=function(){};g.y(rG,dG);g.k=rG.prototype;
g.k.init=function(a,b,c){dG.prototype.init.call(this,a,b,c);a=b&&b.preskipRenderer&&g.V(b.preskipRenderer,xM)||{};(a=g.id(a)?null:a)?(this.G=null!=a.durationMilliseconds&&void 0!==a.durationMilliseconds?a.durationMilliseconds:5E3,this.B=new iG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.j,"countdown_next_to_thumbnail"==pR(this.api.U().experiments,"preskip_button_style_ads_backend")&&hJ(this.api.U())),this.B.init(uF("preskip-component"),a,c),Gxa(this.B),g.O(this,this.B),this.B.Ja(this.element)):
b.skipOffsetMilliseconds&&(this.G=b.skipOffsetMilliseconds);a=b&&b.skippableRenderer&&g.V(b.skippableRenderer,Pjb)||{};a=g.id(a)?null:a;null==a?g.dF(Error("SkipButtonRenderer was not set in player response.")):(this.C=new pG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.j,this.ra),this.C.init(uF("skip-button"),a,c),g.O(this,this.C),this.C.Ja(this.element),this.api.U().experiments.jb("enable_skip_to_next_messaging")&&(b=g.Ye(b.targetId))&&(c=this.C,null!=c.C&&(c.bb=!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();eG(this);dG.prototype.show.call(this)};
g.k.Vp=function(){};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();fG(this);dG.prototype.hide.call(this)};
g.k.hide=function(){this.B&&this.B.hide();this.C&&this.C.hide();fG(this);dG.prototype.hide.call(this)};
g.k.oo=function(){1E3*this.j.getProgressState().current>=this.G&&Rxa(this,!0)};g.y(Sxa,PF);Sxa.prototype.init=function(a,b,c){PF.prototype.init.call(this,a,b,c);a=!1;null!=b.text&&(a=g.HF(b.text),a=!g.ec(a));a?null==b.navigationEndpoint?g.eF(Error("No visit advertiser clickthrough provided in renderer,")):"STYLE_UNKNOWN"!==b.style?g.eF(Error("Button style was not a link-style type in renderer,")):this.show():g.eF(Error("No visit advertiser text was present in the renderer."))};g.y(yG,FF);
yG.prototype.init=function(a,b,c){FF.prototype.init.call(this,a,b,c);a=b.text;g.ec(GF(a))?g.eF(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 cG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib),a.init(uF("simple-ad-badge"),b,c),a.Ja(this.element),g.O(this,a)),this.api.U().experiments.jb("enable_unified_ad_badge_style_fix")&&this.C&&
this.j.classList.add("ytp-ad-simple-ad-badge-unified"),this.show())};
yG.prototype.clear=function(){this.hide()};g.y(zG,vF);g.y(AG,g.wF);g.k=AG.prototype;g.k.hm=function(){return this.durationMs};
g.k.stop=function(){this.j&&this.Fd.Pc(this.j)};
g.k.Nc=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.A4=function(a){g.oG(a,2)&&this.publish("g")};g.y(BG,g.wF);g.k=BG.prototype;g.k.hm=function(){return this.durationMs};
g.k.start=function(){this.j||(this.j=!0,this.kf.start())};
g.k.stop=function(){this.j&&(this.j=!1,this.kf.stop())};
g.k.Nc=function(){this.Zi+=100;var a=!1;this.Zi>this.durationMs&&(this.Zi=this.durationMs,this.kf.stop(),a=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Zi/1E3};this.publish("h");a&&this.publish("g")};
g.k.getProgressState=function(){return this.B};g.y(EG,dG);g.k=EG.prototype;g.k.init=function(a,b,c){dG.prototype.init.call(this,a,b,c);var d;if(null==b?0:null==(d=b.templatedCountdown)?0:d.templatedAdText){a=b.templatedCountdown.templatedAdText;if(!a.isTemplated){g.eF(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new cG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib);this.B.init(uF("ad-text"),a,{});this.B.Ja(this.element);g.O(this,this.B)}this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){fG(this);dG.prototype.hide.call(this)};
g.k.Vp=function(){this.hide()};
g.k.oo=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&this.B&&(a=(this.j instanceof AG?void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:a.seekableEnd:void 0!==this.videoAdDurationSeconds?this.videoAdDurationSeconds:this.j instanceof BG?a.seekableEnd:this.api.getDuration(2,!1))-a.current,Fxa(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.CG(a)),TIME_REMAINING:String(Math.ceil(a))}))}};
g.k.show=function(){eG(this);dG.prototype.show.call(this)};g.y(Uxa,cG);Uxa.prototype.onClick=function(a){cG.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType)};FG.prototype.getLength=function(){return this.j-this.B};g.y(HG,g.EF);HG.prototype.Nc=function(){var a=this.B.getProgressState();a=GG(new FG(a.seekableStart,a.seekableEnd),a.current,0);this.progressBar.style.width=100*a+"%"};
HG.prototype.onStateChange=function(){g.OR(this.api.U())||(2===this.api.getPresentingPlayerType()?-1===this.j&&(this.show(),this.j=this.B.subscribe("h",this.Nc,this),this.Nc()):-1!==this.j&&(this.hide(),this.B.Jh(this.j),this.j=-1))};g.y(IG,FF);
IG.prototype.init=function(a,b,c,d){FF.prototype.init.call(this,a,b,c);b.skipOrPreviewRenderer&&(c=b.skipOrPreviewRenderer,a=g.V(c,GL),c=g.V(c,xM),a?(c=new rG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.B,this.Y),c.Ja(this.G),c.init(uF("skip-button"),a,this.macros),g.O(this,c)):c&&(a=new iG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.B,!1),a.Ja(this.G),a.init(uF("ad-preview"),c,this.macros),Gxa(a),g.O(this,a)));b.brandInteractionRenderer&&(a=b.brandInteractionRenderer.brandInteractionRenderer,
c=new Ixa(this.api,this.layoutId,this.interactionLoggingClientData,this.ib),c.Ja(this.ra),c.init(uF("instream-user-sentiment"),a,this.macros),g.O(this,c));if(a=g.V(b,Ijb))if(a=g.V(a,Ijb))c=new Hxa(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.B,!!b.showWithoutLinkedMediaLayout),g.O(this,c),c.Ja(this.C),c.init(uF("flyout-cta"),a,this.macros);d=d&&d.videoAdDurationSeconds;b.adBadgeRenderer&&(a=b.adBadgeRenderer.simpleAdBadgeRenderer,null==a&&(a={text:{text:"Reklam",isTemplated:!1}}),
c=new yG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,!0,!1),g.O(this,c),c.Ja(this.j),c.init(uF("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&!b.showWithoutLinkedMediaLayout&&(a=b.adDurationRemaining.adDurationRemainingRenderer,null==a&&(a={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),d=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.B,d),g.O(this,d),d.Ja(this.j),d.init(uF("ad-duration-remaining"),
a,this.macros));b.adInfoRenderer&&(d=g.V(b.adInfoRenderer,wM))&&(a=new bG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.element),g.O(this,a),a.Ja(this.j),a.init(uF("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserRenderer&&(d=g.V(b.visitAdvertiserRenderer,g.yM))&&(a=Vxa(this)&&this.D?this.D:this.j)&&(b=new Sxa(this.api,this.layoutId,this.interactionLoggingClientData,this.ib),g.O(this,b),b.Ja(a),b.init(uF("visit-advertiser"),d,this.macros),av(b.element),d=iv(b.element),
hv(b.element,d+" This link opens in new tab"));(b=this.api.U())&&!g.MR(b)&&"3"==b.controlsType&&(b=new HG(this.api,this.B),b.Ja(this.Da),g.O(this,b));this.api.U().L("enable_updated_html5_player_focus_style")&&g.uv(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()};
IG.prototype.clear=function(){this.hide()};LG.prototype.set=function(a,b,c){c=void 0!==c?Date.now()+c:void 0;this.j.set(a,b,c)};
LG.prototype.get=function(a){return this.j.get(a)};
LG.prototype.remove=function(a){this.j.remove(a)};var aya=null,cya=null,eya=null,gya=null;g.Va("yt.www.ads.eventcache.getLastCompanionData",function(){return aya});
g.Va("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null});
g.Va("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return cya});
g.Va("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return eya});
g.Va("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return gya});var iya=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);OG.prototype.handleResponse=function(a,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var c,d;b=(null==(c=b.Bp.context)?void 0:null==(d=c.request)?void 0:d.consistencyTokenJars)||[];var e;(a=null==(e=a.responseContext)?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
OG.prototype.replace=function(a,b){a=g.u(a);for(var c=a.next();!c.done;c=a.next())delete this.j[c.value.encryptedTokenJarContents];kya(this,b)};var mmb=window.location.hostname.split(".").slice(-2).join("."),L2;PG.getInstance=function(){L2=g.Xa("yt.clientLocationService.instance");L2||(L2=new PG,g.Va("yt.clientLocationService.instance",L2));return L2};
g.k=PG.prototype;
g.k.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});this.j?(a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(1E7*this.j.coords.latitude),a.client.locationInfo.longitudeE7=Math.floor(1E7*this.j.coords.longitude),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0):this.locationPlayabilityToken&&(a.client.locationPlayabilityToken=this.locationPlayabilityToken)};
g.k.handleResponse=function(a){var b;a=null==(b=a.responseContext)?void 0:b.locationPlayabilityToken;void 0!==a&&(this.locationPlayabilityToken=a,this.j=void 0,"TVHTML5"===g.cB("INNERTUBE_CLIENT_NAME")?(this.localStorage=lya(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):g.LB("YT_CL",JSON.stringify({loctok:a}),15552E3,mmb,!0))};
g.k.clearLocationPlayabilityToken=function(a){"TVHTML5"===a?(this.localStorage=lya(this))&&this.localStorage.remove("yt-location-playability-token"):g.Kpa("YT_CL")};
g.k.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var b=!1,c=1E4;"MWEB"===g.cB("INNERTUBE_CLIENT_NAME")&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(f){a.j=f;d(f)},function(f){e(f)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
g.k.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);if(null==a?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};
g.k.createLocationInfo=function(a){var b={};a=a.coords;if(null==a?0:a.latitude)b.latitudeE7=Math.floor(1E7*a.latitude);if(null==a?0:a.longitude)b.longitudeE7=Math.floor(1E7*a.longitude);return b};g.k=qya.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.An=function(){return Object.keys(this.j)};
g.k.remove=function(a){delete this.j[a]};RG.prototype.getModuleId=function(a){return a.serviceId.getModuleId()};
RG.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=Le(b)}}return a};
RG.prototype.registerService=function(a,b){this.mappings.set(a.toString(),{type:"mapping",value:b});return a};
new RG;var M2={},rya=(M2.WEB_UNPLUGGED="^unplugged/",M2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",M2.WEB_UNPLUGGED_OPS="^unplugged/",M2.WEB_UNPLUGGED_PUBLIC="^unplugged/",M2.WEB_CREATOR="^creator/",M2.WEB_KIDS="^kids/",M2.WEB_EXPERIMENTS="^experiments/",M2.WEB_MUSIC="^music/",M2.WEB_REMIX="^music/",M2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",M2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",M2);tya.prototype.G=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?DD:c;var d={context:g.QG(a.clickTrackingParams,!1,this.D)};var e=this.B(a);if(e){this.j(d,e,b);var f;b=g.TG(this.C());(e=null==(f=g.V(a.commandMetadata,g.A2))?void 0:f.apiUrl)&&(b=e);f=Npa(Mpa(b));a=Object.assign({},{command:a},void 0);d={input:f,au:Opa(f),Bp:d,config:a};d.config.hv?d.config.hv.identity=c:d.config.hv={identity:c};return d}g.dF(new g.AC("Error: Failed to create Request from Command.",a))};
g.ha.Object.defineProperties(tya.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}});
g.y(UG,tya);g.y(VG,UG);VG.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",au:Opa("/getDatasyncIdsEndpoint","GET"),Bp:{}}};
VG.prototype.C=function(){return[]};
VG.prototype.B=function(){};
VG.prototype.j=function(){};var nmb={},hza=(nmb.GET_DATASYNC_IDS=SG(VG),nmb);var N2={},Aya=(N2.auto_search="LATENCY_ACTION_AUTO_SEARCH",N2.ad_to_ad="LATENCY_ACTION_AD_TO_AD",N2.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",N2["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",N2.app_startup="LATENCY_ACTION_APP_STARTUP",N2["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",N2["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",N2["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",N2["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",
N2["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",N2["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP",N2["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",N2["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",N2["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",N2["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",N2["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",N2["asset.metadata"]=
"LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",N2["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",N2["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY",N2["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",N2["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",N2["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",N2["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",N2["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",
N2["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",N2["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA",N2["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",N2.browse="LATENCY_ACTION_BROWSE",N2.cast_splash="LATENCY_ACTION_CAST_SPLASH",N2.channels="LATENCY_ACTION_CHANNELS",N2.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",N2["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",N2["channel.comments"]=
"LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",N2["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",N2["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",N2["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",N2["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING",N2["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",N2["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",N2["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",
N2["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",N2["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",N2["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",N2["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",N2.chips="LATENCY_ACTION_CHIPS",N2.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",N2["dialog.copyright_strikes"]="LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",N2["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",
N2["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",N2.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",N2.embed="LATENCY_ACTION_EMBED",N2.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",N2.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",N2.explore="LATENCY_ACTION_EXPLORE",N2.favorites="LATENCY_ACTION_FAVORITES",N2.home="LATENCY_ACTION_HOME",N2.inboarding="LATENCY_ACTION_INBOARDING",N2.library="LATENCY_ACTION_LIBRARY",N2.live=
"LATENCY_ACTION_LIVE",N2.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",N2.mini_app="LATENCY_ACTION_MINI_APP_PLAY",N2.onboarding="LATENCY_ACTION_ONBOARDING",N2.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",N2["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",N2["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",N2["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",N2["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",N2["owner.asset_groups"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",
N2["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",N2["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",N2["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",N2["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",N2["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",N2["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",N2["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",N2["owner.delivery"]="LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",
N2["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",N2["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",N2["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",N2["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",N2["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",N2["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",N2["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",N2["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS",N2.parent_profile_settings=
"LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",N2.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",N2.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",N2.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",N2["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",N2["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",N2["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",N2.prebuffer="LATENCY_ACTION_PREBUFFER",N2.prefetch="LATENCY_ACTION_PREFETCH",N2.profile_settings=
"LATENCY_ACTION_KIDS_PROFILE_SETTINGS",N2.profile_switcher="LATENCY_ACTION_LOGIN",N2.reel_watch="LATENCY_ACTION_REEL_WATCH",N2.results="LATENCY_ACTION_RESULTS",N2["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",N2.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",N2.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",N2.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",N2.search_ui="LATENCY_ACTION_SEARCH_UI",N2.search_suggest="LATENCY_ACTION_SUGGEST",N2.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",
N2.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",N2.seek="LATENCY_ACTION_PLAYER_SEEK",N2.settings="LATENCY_ACTION_SETTINGS",N2.store="LATENCY_ACTION_STORE",N2.tenx="LATENCY_ACTION_TENX",N2.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",N2.watch="LATENCY_ACTION_WATCH",N2.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",N2["watch,watch7"]="LATENCY_ACTION_WATCH",N2["watch,watch7_html5"]="LATENCY_ACTION_WATCH",N2["watch,watch7ad"]="LATENCY_ACTION_WATCH",N2["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",
N2.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",N2.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",N2["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",N2["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",N2["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",N2["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",N2["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT",N2["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR",N2["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_VIDEO_EDITOR_ASYNC",
N2["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",N2["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",N2["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",N2["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",N2["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",N2["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS",N2.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",N2.cast_load_by_entity_to_watch=
"LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",N2.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",N2.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",N2.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",N2);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_DOWNLOADS_DATA_ACCESS:180,LATENCY_ACTION_BLOCKS_PERFORMANCE:148,LATENCY_ACTION_ASSISTANT_QUERY:138,
LATENCY_ACTION_ASSISTANT_SETTINGS:137,LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF:129,LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF:128,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN:244,LATENCY_ACTION_PROOF_OF_ORIGIN_TOKEN_CREATE:127,LATENCY_ACTION_EMBEDS_SDK_INITIALIZATION:123,LATENCY_ACTION_NETWORKLESS_PERFORMANCE:122,LATENCY_ACTION_DOWNLOADS_EXPANSION:133,LATENCY_ACTION_ENTITY_TRANSFORM:131,LATENCY_ACTION_DOWNLOADS_COMPATIBILITY_LAYER:96,LATENCY_ACTION_EMBEDS_SET_VIDEO:95,LATENCY_ACTION_SETTINGS:93,LATENCY_ACTION_ABANDONED_STARTUP:81,
LATENCY_ACTION_MEDIA_BROWSER_ALARM_PLAY:80,LATENCY_ACTION_MEDIA_BROWSER_SEARCH:79,LATENCY_ACTION_MEDIA_BROWSER_LOAD_TREE:78,LATENCY_ACTION_WHO_IS_WATCHING:77,LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH:76,LATENCY_ACTION_LITE_SWITCH_ACCOUNT:73,LATENCY_ACTION_LOCATION_SIGNAL_COLLECTION:69,LATENCY_ACTION_MODIFY_CHANNEL_NOTIFICATION:65,LATENCY_ACTION_OFFLINE_STORE_START:61,LATENCY_ACTION_REEL_EDITOR:58,LATENCY_ACTION_CHANNEL_SUBSCRIBE:56,LATENCY_ACTION_CHANNEL_PREVIEW:55,LATENCY_ACTION_PREFETCH:52,LATENCY_ACTION_ABANDONED_WATCH:45,
LATENCY_ACTION_LOAD_COMMENT_REPLIES:26,LATENCY_ACTION_LOAD_COMMENTS:25,LATENCY_ACTION_EDIT_COMMENT:24,LATENCY_ACTION_NEW_COMMENT:23,LATENCY_ACTION_OFFLINE_SHARING_RECEIVER_PAIRING:19,LATENCY_ACTION_EMBED:18,LATENCY_ACTION_MDX_LAUNCH:15,LATENCY_ACTION_RESOLVE_URL:13,LATENCY_ACTION_CAST_SPLASH:149,LATENCY_ACTION_MDX_CONNECT_TO_SESSION:190,LATENCY_ACTION_MDX_STREAM_TRANSFER:178,LATENCY_ACTION_MDX_CAST:120,LATENCY_ACTION_MDX_COMMAND:12,LATENCY_ACTION_MOBILE_LIVE_NAV_MDE:231,LATENCY_ACTION_REEL_SELECT_SEGMENT:136,
LATENCY_ACTION_ACCELERATED_EFFECTS:145,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_IMAGE_DOWNLOAD:272,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_VIDEO_DOWNLOAD:271,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_AUDIO_DOWNLOAD:270,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_IMAGE:275,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_VIDEO:274,LATENCY_ACTION_DYNAMIC_CREATION_ASSET_GENERATE_AUDIO:273,LATENCY_ACTION_GET_SHORTS_SOURCE_VIDEO:278,LATENCY_ACTION_SHORTS_AUTO_CROP_DATA_DOWNLOAD:267,LATENCY_ACTION_SHORTS_FETCH_DYNAMIC_ASSET:251,
LATENCY_ACTION_SHORTS_LOAD_PROJECT:234,LATENCY_ACTION_SHORTS_TRIM_TO_EDITOR_TRANSCODING:229,LATENCY_ACTION_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_MODE_SWITCH:236,LATENCY_ACTION_CREATION_MODES_GLOBAL_ENTRYPOINT:235,LATENCY_ACTION_SWITCH_CAMERA:246,LATENCY_ACTION_OPEN_CAMERA:245,LATENCY_ACTION_MEDIA_ENGINE_TRANSCODE:250,
LATENCY_ACTION_MEDIA_ENGINE_DISPLAY_FIRST_FRAME:242,LATENCY_ACTION_MEDIA_ENGINE_EXPORT:241,LATENCY_ACTION_PRODUCER_IMPORT_LOCAL_MEDIA:233,LATENCY_ACTION_PRODUCER_EXPORT_PROJECT:193,LATENCY_ACTION_PRODUCER_EDITOR:192,LATENCY_ACTION_PARENT_TOOLS_DASHBOARD:102,LATENCY_ACTION_PARENT_TOOLS_COLLECTION:101,LATENCY_ACTION_MUSIC_OFFLINE_PLAYLIST_DETAIL:238,LATENCY_ACTION_MUSIC_OFFLINE_ALBUM_DETAIL:237,LATENCY_ACTION_MUSIC_LOAD_RECOMMENDED_MEDIA_ITEMS:116,LATENCY_ACTION_MUSIC_LOAD_MEDIA_ITEMS:115,LATENCY_ACTION_MUSIC_ALBUM_DETAIL:72,
LATENCY_ACTION_MUSIC_PLAYLIST_DETAIL:71,LATENCY_ACTION_STORE:175,LATENCY_ACTION_CHIPS:68,LATENCY_ACTION_SEARCH_ZERO_STATE:67,LATENCY_ACTION_LIVE_PAGINATION:117,LATENCY_ACTION_LIVE:20,LATENCY_ACTION_PREBUFFER:40,LATENCY_ACTION_TENX:39,LATENCY_ACTION_KIDS_PROFILE_SETTINGS:94,LATENCY_ACTION_KIDS_WATCH_IT_AGAIN:92,LATENCY_ACTION_KIDS_SECRET_CODE:91,LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS:89,LATENCY_ACTION_KIDS_ONBOARDING:88,LATENCY_ACTION_KIDS_VOICE_SEARCH:82,LATENCY_ACTION_KIDS_CURATED_COLLECTION:62,
LATENCY_ACTION_KIDS_LIBRARY:53,LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS:38,LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT:219,LATENCY_ACTION_CREATOR_VIDEO_POLICY:217,LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION:74,LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING:141,LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS:142,LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC:51,LATENCY_ACTION_CREATOR_VIDEO_EDITOR:50,LATENCY_ACTION_CREATOR_VIDEO_EDIT:36,LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT:218,LATENCY_ACTION_CREATOR_VIDEO_COMMENTS:34,
LATENCY_ACTION_CREATOR_VIDEO_CLAIMS:216,LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS:33,LATENCY_ACTION_CREATOR_SONG_ANALYTICS:176,LATENCY_ACTION_CREATOR_PROMOTION_LIST:186,LATENCY_ACTION_CREATOR_PROMOTION_EDIT:185,LATENCY_ACTION_CREATOR_POST_LIST:112,LATENCY_ACTION_CREATOR_POST_EDIT:110,LATENCY_ACTION_CREATOR_POST_COMMENTS:111,LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST:265,LATENCY_ACTION_CREATOR_LIVE_STREAMING:108,LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT:174,LATENCY_ACTION_CREATOR_DIALOG_UPLOADS:86,
LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES:87,LATENCY_ACTION_CREATOR_CMS_VIDEOS:202,LATENCY_ACTION_CREATOR_CMS_REPORTS:201,LATENCY_ACTION_CREATOR_CMS_RELEASES:226,LATENCY_ACTION_CREATOR_CMS_POLICIES:225,LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC:224,LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING:200,LATENCY_ACTION_CREATOR_CMS_LICENSES:223,LATENCY_ACTION_CREATOR_CMS_ISSUES:191,LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES:252,LATENCY_ACTION_CREATOR_CMS_DASHBOARD:199,LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY:198,
LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS:197,LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES:261,LATENCY_ACTION_CREATOR_CMS_CHANNELS:196,LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS:222,LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY:253,LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS:214,LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES:254,LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES:209,LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY:208,LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP:207,LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA:205,
LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES:212,LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES:206,LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY:282,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA:258,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS:260,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS:259,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS:257,LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS:221,LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS:210,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY:256,LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP:255,
LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION:213,LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS:211,LATENCY_ACTION_CREATOR_CMS_ASSETS:195,LATENCY_ACTION_CREATOR_CMS_ART_TRACKS:220,LATENCY_ACTION_CREATOR_CMS_ANALYTICS:194,LATENCY_ACTION_CREATOR_CMS_ALLOWLIST:227,LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS:32,LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS:48,LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS:139,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT:177,LATENCY_ACTION_CREATOR_CHANNEL_MUSIC:99,LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION:43,
LATENCY_ACTION_CREATOR_CHANNEL_EDITING:113,LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD:49,LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT:44,LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS:66,LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS:31,LATENCY_ACTION_CREATOR_ARTIST_PROFILE:85,LATENCY_ACTION_CREATOR_ARTIST_CONCERTS:84,LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS:83,LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE:140,LATENCY_ACTION_EXPERIMENTAL_WATCH_UI:181,LATENCY_ACTION_FINE_SCRUBBING_THUMBNAILS:228,LATENCY_ACTION_STORYBOARD_THUMBNAILS:118,
LATENCY_ACTION_SEARCH_THUMBNAILS:59,LATENCY_ACTION_ON_DEVICE_MODEL_DOWNLOAD:54,LATENCY_ACTION_VOICE_ASSISTANT:47,LATENCY_ACTION_SEARCH_UI:35,LATENCY_ACTION_SUGGEST:30,LATENCY_ACTION_AUTO_SEARCH:126,LATENCY_ACTION_PLAYLIST_AGGREGATION:266,LATENCY_ACTION_DOWNLOADS:98,LATENCY_ACTION_EXPLORE:75,LATENCY_ACTION_VIDEO_LIST:63,LATENCY_ACTION_HOME_RESUME:60,LATENCY_ACTION_SUBSCRIPTIONS_LIST:57,LATENCY_ACTION_FIRST_THUMBNAIL_LOAD:29,LATENCY_ACTION_SUBSCRIPTIONS_FEED:109,LATENCY_ACTION_SUBSCRIPTIONS:28,LATENCY_ACTION_TRENDING:27,
LATENCY_ACTION_LIBRARY:21,LATENCY_ACTION_VIDEO_THUMBNAIL:8,LATENCY_ACTION_SHOW_MORE:7,LATENCY_ACTION_VIDEO_PREVIEW:6,LATENCY_ACTION_AD_TO_AD:22,LATENCY_ACTION_VIDEO_TO_AD:17,LATENCY_ACTION_AD_TO_VIDEO:16,LATENCY_ACTION_DIRECT_PLAYBACK:132,LATENCY_ACTION_NETWORK_INSTRUMENTATION:281,LATENCY_ACTION_IMAGE_LOAD:268,LATENCY_ACTION_PREBUFFER_VIDEO:144,LATENCY_ACTION_PREFETCH_VIDEO:143,LATENCY_ACTION_STARTUP:106,LATENCY_ACTION_ELEMENTS_PERFORMANCE:70,LATENCY_ACTION_INFRASTRUCTURE_CONTAINER:276,LATENCY_ACTION_INBOARDING:284,
LATENCY_ACTION_FAVORITES:283,LATENCY_ACTION_INLINE_TO_WATCH:232,LATENCY_ACTION_MUSIC_IMMERSIVE_WATCH:230,LATENCY_ACTION_ONBOARDING:135,LATENCY_ACTION_LOGIN:97,LATENCY_ACTION_REEL_WATCH:41,LATENCY_ACTION_WATCH:3,LATENCY_ACTION_RESULTS:2,LATENCY_ACTION_CHANNELS:4,LATENCY_ACTION_HOME:1,LATENCY_ACTION_BROWSE:11,LATENCY_ACTION_USER_ACTION:189,LATENCY_ACTION_INFRASTRUCTURE:188,LATENCY_ACTION_PAGE_NAVIGATION:187,LATENCY_ACTION_UNKNOWN:0};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_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_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_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_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_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 lH={LATENCY_NETWORK_MOBILE:2,LATENCY_NETWORK_WIFI:1,LATENCY_NETWORK_UNKNOWN:0};lH[lH.LATENCY_NETWORK_MOBILE]="LATENCY_NETWORK_MOBILE";lH[lH.LATENCY_NETWORK_WIFI]="LATENCY_NETWORK_WIFI";
lH[lH.LATENCY_NETWORK_UNKNOWN]="LATENCY_NETWORK_UNKNOWN";var mH={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};mH[mH.CONN_INVALID]="CONN_INVALID";mH[mH.CONN_WIRED]="CONN_WIRED";mH[mH.CONN_CELLULAR_5G_NSA]="CONN_CELLULAR_5G_NSA";mH[mH.CONN_CELLULAR_5G_SA]="CONN_CELLULAR_5G_SA";
mH[mH.CONN_WIFI_METERED]="CONN_WIFI_METERED";mH[mH.CONN_CELLULAR_5G]="CONN_CELLULAR_5G";mH[mH.CONN_DISCO]="CONN_DISCO";mH[mH.CONN_CELLULAR_UNKNOWN]="CONN_CELLULAR_UNKNOWN";mH[mH.CONN_CELLULAR_4G]="CONN_CELLULAR_4G";mH[mH.CONN_CELLULAR_3G]="CONN_CELLULAR_3G";mH[mH.CONN_CELLULAR_2G]="CONN_CELLULAR_2G";mH[mH.CONN_WIFI]="CONN_WIFI";mH[mH.CONN_NONE]="CONN_NONE";mH[mH.CONN_UNKNOWN]="CONN_UNKNOWN";mH[mH.CONN_DEFAULT]="CONN_DEFAULT";
var nH={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};nH[nH.DETAILED_NETWORK_TYPE_NR_NSA]="DETAILED_NETWORK_TYPE_NR_NSA";
nH[nH.DETAILED_NETWORK_TYPE_NR_SA]="DETAILED_NETWORK_TYPE_NR_SA";nH[nH.DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED]="DETAILED_NETWORK_TYPE_INTERNAL_WIFI_IMPAIRED";nH[nH.DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT]="DETAILED_NETWORK_TYPE_APP_WIFI_HOTSPOT";nH[nH.DETAILED_NETWORK_TYPE_DISCONNECTED]="DETAILED_NETWORK_TYPE_DISCONNECTED";nH[nH.DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_NON_MOBILE_UNKNOWN";nH[nH.DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN]="DETAILED_NETWORK_TYPE_MOBILE_UNKNOWN";
nH[nH.DETAILED_NETWORK_TYPE_WIMAX]="DETAILED_NETWORK_TYPE_WIMAX";nH[nH.DETAILED_NETWORK_TYPE_ETHERNET]="DETAILED_NETWORK_TYPE_ETHERNET";nH[nH.DETAILED_NETWORK_TYPE_BLUETOOTH]="DETAILED_NETWORK_TYPE_BLUETOOTH";nH[nH.DETAILED_NETWORK_TYPE_WIFI]="DETAILED_NETWORK_TYPE_WIFI";nH[nH.DETAILED_NETWORK_TYPE_LTE]="DETAILED_NETWORK_TYPE_LTE";nH[nH.DETAILED_NETWORK_TYPE_HSPAP]="DETAILED_NETWORK_TYPE_HSPAP";nH[nH.DETAILED_NETWORK_TYPE_EHRPD]="DETAILED_NETWORK_TYPE_EHRPD";nH[nH.DETAILED_NETWORK_TYPE_EVDO_B]="DETAILED_NETWORK_TYPE_EVDO_B";
nH[nH.DETAILED_NETWORK_TYPE_UMTS]="DETAILED_NETWORK_TYPE_UMTS";nH[nH.DETAILED_NETWORK_TYPE_IDEN]="DETAILED_NETWORK_TYPE_IDEN";nH[nH.DETAILED_NETWORK_TYPE_HSUPA]="DETAILED_NETWORK_TYPE_HSUPA";nH[nH.DETAILED_NETWORK_TYPE_HSPA]="DETAILED_NETWORK_TYPE_HSPA";nH[nH.DETAILED_NETWORK_TYPE_HSDPA]="DETAILED_NETWORK_TYPE_HSDPA";nH[nH.DETAILED_NETWORK_TYPE_EVDO_A]="DETAILED_NETWORK_TYPE_EVDO_A";nH[nH.DETAILED_NETWORK_TYPE_EVDO_0]="DETAILED_NETWORK_TYPE_EVDO_0";nH[nH.DETAILED_NETWORK_TYPE_CDMA]="DETAILED_NETWORK_TYPE_CDMA";
nH[nH.DETAILED_NETWORK_TYPE_1_X_RTT]="DETAILED_NETWORK_TYPE_1_X_RTT";nH[nH.DETAILED_NETWORK_TYPE_GPRS]="DETAILED_NETWORK_TYPE_GPRS";nH[nH.DETAILED_NETWORK_TYPE_EDGE]="DETAILED_NETWORK_TYPE_EDGE";nH[nH.DETAILED_NETWORK_TYPE_UNKNOWN]="DETAILED_NETWORK_TYPE_UNKNOWN";var oH={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};
oH[oH.LATENCY_PLAYER_RTSP]="LATENCY_PLAYER_RTSP";oH[oH.LATENCY_PLAYER_HTML5_INLINE]="LATENCY_PLAYER_HTML5_INLINE";oH[oH.LATENCY_PLAYER_HTML5_FULLSCREEN]="LATENCY_PLAYER_HTML5_FULLSCREEN";oH[oH.LATENCY_PLAYER_HTML5]="LATENCY_PLAYER_HTML5";oH[oH.LATENCY_PLAYER_FRAMEWORK]="LATENCY_PLAYER_FRAMEWORK";oH[oH.LATENCY_PLAYER_FLASH]="LATENCY_PLAYER_FLASH";oH[oH.LATENCY_PLAYER_EXO]="LATENCY_PLAYER_EXO";oH[oH.LATENCY_PLAYER_UNKNOWN]="LATENCY_PLAYER_UNKNOWN";
var pH={LATENCY_AD_BREAK_TYPE_POSTROLL:3,LATENCY_AD_BREAK_TYPE_MIDROLL:2,LATENCY_AD_BREAK_TYPE_PREROLL:1,LATENCY_AD_BREAK_TYPE_UNKNOWN:0};pH[pH.LATENCY_AD_BREAK_TYPE_POSTROLL]="LATENCY_AD_BREAK_TYPE_POSTROLL";pH[pH.LATENCY_AD_BREAK_TYPE_MIDROLL]="LATENCY_AD_BREAK_TYPE_MIDROLL";pH[pH.LATENCY_AD_BREAK_TYPE_PREROLL]="LATENCY_AD_BREAK_TYPE_PREROLL";pH[pH.LATENCY_AD_BREAK_TYPE_UNKNOWN]="LATENCY_AD_BREAK_TYPE_UNKNOWN";var qH={LATENCY_ACTION_ERROR_STARTUP_TIMEOUT:1,LATENCY_ACTION_ERROR_UNSPECIFIED:0};
qH[qH.LATENCY_ACTION_ERROR_STARTUP_TIMEOUT]="LATENCY_ACTION_ERROR_STARTUP_TIMEOUT";qH[qH.LATENCY_ACTION_ERROR_UNSPECIFIED]="LATENCY_ACTION_ERROR_UNSPECIFIED";var rH={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};rH[rH.LIVE_STREAM_MODE_WINDOW]="LIVE_STREAM_MODE_WINDOW";rH[rH.LIVE_STREAM_MODE_POST]="LIVE_STREAM_MODE_POST";rH[rH.LIVE_STREAM_MODE_LP]="LIVE_STREAM_MODE_LP";
rH[rH.LIVE_STREAM_MODE_LIVE]="LIVE_STREAM_MODE_LIVE";rH[rH.LIVE_STREAM_MODE_DVR]="LIVE_STREAM_MODE_DVR";rH[rH.LIVE_STREAM_MODE_UNKNOWN]="LIVE_STREAM_MODE_UNKNOWN";var sH={VIDEO_STREAM_TYPE_VOD:3,VIDEO_STREAM_TYPE_DVR:2,VIDEO_STREAM_TYPE_LIVE:1,VIDEO_STREAM_TYPE_UNSPECIFIED:0};sH[sH.VIDEO_STREAM_TYPE_VOD]="VIDEO_STREAM_TYPE_VOD";sH[sH.VIDEO_STREAM_TYPE_DVR]="VIDEO_STREAM_TYPE_DVR";sH[sH.VIDEO_STREAM_TYPE_LIVE]="VIDEO_STREAM_TYPE_LIVE";sH[sH.VIDEO_STREAM_TYPE_UNSPECIFIED]="VIDEO_STREAM_TYPE_UNSPECIFIED";
var tH={YT_IDB_TRANSACTION_TYPE_READ:2,YT_IDB_TRANSACTION_TYPE_WRITE:1,YT_IDB_TRANSACTION_TYPE_UNKNOWN:0};tH[tH.YT_IDB_TRANSACTION_TYPE_READ]="YT_IDB_TRANSACTION_TYPE_READ";tH[tH.YT_IDB_TRANSACTION_TYPE_WRITE]="YT_IDB_TRANSACTION_TYPE_WRITE";tH[tH.YT_IDB_TRANSACTION_TYPE_UNKNOWN]="YT_IDB_TRANSACTION_TYPE_UNKNOWN";var uH={PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN:2,PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT:1,PLAYER_ROTATION_TYPE_UNKNOWN:0};uH[uH.PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN]="PLAYER_ROTATION_TYPE_PORTRAIT_TO_FULLSCREEN";
uH[uH.PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT]="PLAYER_ROTATION_TYPE_FULLSCREEN_TO_PORTRAIT";uH[uH.PLAYER_ROTATION_TYPE_UNKNOWN]="PLAYER_ROTATION_TYPE_UNKNOWN";var Eya="actionVisualElement spinnerInfo cacheAttempts resourceInfo preloadThumbnailInfo startupEdgeCaseInfo startupInfo playerInfo commentInfo mdxInfo watchInfo thumbnailLoadInfo imageLoadInfo creatorInfo unpluggedInfo reelInfo subscriptionsFeedInfo requestIds mediaBrowserActionInfo musicLoadActionInfo shoppingInfo webViewInfo prefetchInfo accelerationSession commerceInfo inlineToWatchInfo mediaEngineMetadata miniAppInfo dynamicAssetFetchInfo webInfo tvInfo kabukiInfo mwebInfo musicInfo transcodingContext creationModesContext cameraMetadata producerMediaAssetMetadata".split(" ");g.y(Bya,ED);var Vya=new FD("aft-recorded",Bya);var eH=g.Ta.ytLoggingLatencyUsageStats_||{};g.Va("ytLoggingLatencyUsageStats_",eH);cH.prototype.tick=function(a,b,c,d){fH(this,"tick_"+a+"_"+b)||(c={timestamp:c,cttAuthInfo:d},g.AB("web_csi_via_jspb")?(d=new Noa,Q(d,1,a),Q(d,2,b),a=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA,sk(a,Noa,5,XE,d),WE("latencyActionTicked",a,c)):g.MC("latencyActionTicked",{tickName:a,clientActionNonce:b},c))};
cH.prototype.info=function(a,b,c){var d=Object.keys(a).join("");fH(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,g.MC("latencyActionInfo",a,{cttAuthInfo:c}))};
cH.prototype.jspbInfo=function(a,b,c){for(var d="",e=0;e<a.toJSON().length;e++)void 0!==a.toJSON()[e]&&(d=0===e?d.concat(""+e):d.concat("_"+e));fH(this,"info_"+d+"_"+b)||(Q(a,2,b),b={cttAuthInfo:c},c=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA,sk(c,OA,7,XE,a),WE("latencyActionInfo",c,b))};
cH.prototype.span=function(a,b,c){var d=Object.keys(a).join("");fH(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,g.MC("latencyActionSpan",a,{cttAuthInfo:c}))};var O2=window,gH=O2.performance||O2.mozPerformance||O2.msPerformance||O2.webkitPerformance||new Cya;var Uya=!1,Gya=!1,Pya={'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"},Wya=(0,g.gb)(gH.clearResourceTimings||gH.webkitClearResourceTimings||gH.mozClearResourceTimings||gH.msClearResourceTimings||gH.oClearResourceTimings||g.Jd,gH);var omb=window;omb.ytcsi&&(omb.ytcsi.infoGel=g.AH,omb.ytcsi.tick=CH);var nza="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD".split(" "),pza=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];var tza=new uE("INNERTUBE_TRANSPORT_TOKEN");g.y(HH,UG);HH.prototype.C=function(){return cmb};
HH.prototype.B=function(a){return g.V(a,Olb)||void 0};
HH.prototype.j=function(a,b,c){c=void 0===c?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
g.ha.Object.defineProperties(HH.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.y(IH,UG);IH.prototype.C=function(){return dmb};
IH.prototype.B=function(a){return g.V(a,Mlb)||void 0};
IH.prototype.j=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
g.ha.Object.defineProperties(IH.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.y(JH,UG);JH.prototype.C=function(){return $lb};
JH.prototype.B=function(a){return g.V(a,ikb)||void 0};
JH.prototype.j=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
g.ha.Object.defineProperties(JH.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!0}}});g.y(KH,UG);KH.prototype.C=function(){return amb};
KH.prototype.B=function(a){return g.V(a,Llb)||void 0};
KH.prototype.j=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};g.y(LH,UG);LH.prototype.C=function(){return bmb};
LH.prototype.B=function(a){return g.V(a,Jlb)||void 0};
LH.prototype.j=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};g.y(MH,UG);MH.prototype.C=function(){return Zlb};
MH.prototype.B=function(a){return g.V(a,ylb)};
MH.prototype.j=function(a,b,c){c=void 0===c?{}:c;b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);c.includeListId&&(a.includeListId=!0)};g.y(g.NH,g.AC);var pmb=new uE("NETWORK_SLI_TOKEN");OH.prototype.fetch=function(a,b,c){var d=this,e;return g.H(function(f){e=qza(d,a,b);return f.return(fetch(e).then(function(h){return d.handleResponse(h,c)}).catch(function(h){g.eF(h);
if((null==c?0:c.Eq)&&h instanceof g.NH&&1===h.errorType)return Promise.reject(h)}))})};
OH.prototype.handleResponse=function(a,b){var c=a.text().then(function(d){if((null==b?0:b.X8)&&a.ok)return Jea(b.X8,d);d=d.replace(")]}'","");if((null==b?0:b.Eq)&&d)try{var e=JSON.parse(d)}catch(h){throw new g.NH(1,"JSON parsing failed after fetch");}var f;return null!=(f=e)?f:JSON.parse(d)});
a.redirected||a.ok?this.j&&this.j.success():(this.j&&this.j.ynb(),c=c.then(function(d){g.eF(new g.AC("Error: API fetch failed",a.status,a.url,d));return Object.assign({},d,{errorMetadata:{status:a.status}})}));
return c};
OH[wE]=[new vE(pmb)];var sza=new uE("NETWORK_MANAGER_TOKEN");var rza;var IMa={Rja:0,Sja:1,Qja:2,Nja:3,Mja:4,Oja:5,Pja:6};var vza=[],uza=!1;SH.prototype.C=function(){var a=this;return g.H(function(b){return 1==b.j?g.z(b,Promise.race([a.j,null]),2):b.return(!!b.B)})};
SH.prototype.B=function(a,b,c){var d=this,e,f,h;return g.H(function(l){null===d.j&&(d.j=RH(d,0));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.kq){"c1a"in m.zq&&(f.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");q.Ia(3);break}n=Object.assign({},{c:m.challenge,e:a},b);g.Ba(q,4);e=!0;return g.z(q,m.kq.snapshot({Av: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("ENGAGEMENT_TYPE_PLAYBACK"===a){var r=m.zq,t={};r.c6a&&(t.reportingStatus=String(Number(r.c)^QH()));r.c6b&&(t.broadSpectrumDetectionResult=String(Number(r.c)^Number(g.cB("CATSTAT",0))));f.adblockReporting=t}return q.return(f)}})};
return l.return(Promise.race([h(),Aza(c,function(){var m=Object.assign({},f);e&&(m.error="ATTESTATION_ERROR_VM_TIMEOUT");return m})]))})};var Dza=["APP_STATE","PI"];g.k=Jza.prototype;g.k.initialize=function(a,b,c){if(a.program){var d,e=null!=(d=a.interpreterUrl)?d:null;if(a.interpreterSafeScript)d=bma(a.interpreterSafeScript);else{var f;d=null!=(f=a.interpreterScript)?f:null}a.interpreterSafeUrl&&(e=Lw(a.interpreterSafeUrl).toString());Lza(this,d,e,a.program,b,c)}else g.eF(Error("Cannot initialize botguard without program"))};
g.k.isInitialized=function(){return this.ZS()};
g.k.getState=function(){return this.state};
g.k.isLoading=function(){return 2===this.state};
g.k.invoke=function(a){a=void 0===a?{}:a;return this.ZS()?this.L1({Av:a}):null};
g.k.dispose=function(){this.eS(null);this.Bc(8)};
g.k.ZS=function(){return!!this.kq};
g.k.L1=function(a){return this.kq.y0(a)};
g.k.eS=function(a){g.vb(this.kq);this.kq=a};
g.k.Bc=function(a){this.state=a};g.y(TH,Jza);TH.prototype.eS=function(a){var b;null==(b=Mza())||b.bgvma();a?(b={bgvma:a.dispose.bind(a),bgvmb:a.snapshot.bind(a),bgvmc:a.y0.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))};
TH.prototype.ZS=function(){return!!Mza()};
TH.prototype.L1=function(a){return Mza().bgvmc(a)};Nza.prototype.Kq=function(){return"crossDeviceProgressCommand"};
Nza.prototype.Zs=function(a){if(a.crossDevicePings){var b=[];a=g.u(a.crossDevicePings);for(var c=a.next();!c.done;c=a.next())b.push({baseUrl:c.value.baseUrl});g.MC("crossDeviceNotificationTransfer",{crossDevicePings:b})}};Pza.prototype.Kq=function(){return"muteAdEndpoint"};
Pza.prototype.Zs=function(a,b){switch(a.type){case "SKIP":Oza(this.Tk,this.Un,b)}};Qza.prototype.Kq=function(){return"openPopupAction"};
Qza.prototype.Zs=function(){};Rza.prototype.Kq=function(){return"pingingEndpoint"};
Rza.prototype.Zs=function(){};var Yza={clickTrackingParams:!0,commandMetadata:!0,loggingUrls:!0};g.y(Tza,g.I);var ugb={cea:"FINAL",X1:"AD_BREAK_LENGTH",lja:"AD_CPN",sja:"AH",wja:"AD_MT",zja:"ASR",Dja:"AW",sta:"NM",tta:"NX",uta:"NY",v2:"CONN",Iua:"CPN",oxa:"DV_VIEWABILITY",fya:"ERRORCODE",oya:"ERROR_MSG",rya:"EI",M2:"GOOGLE_VIEWABILITY",eIa:"IAS_VIEWABILITY",rLa:"LACT",c5:"LIVE_TARGETING_CONTEXT",oRa:"I_X",pRa:"I_Y",TTa:"MT",iUa:"MIDROLL_POS",jUa:"MIDROLL_POS_MS",KUa:"MOAT_INIT",LUa:"MOAT_VIEWABILITY",m5:"P_H",j1a:"PV_H",k1a:"PV_W",n5:"P_W",G1a:"TRIGGER_TYPE",r5a:"SDKV",r5:"SLOT_POS",Bcb:"SURVEY_LOCAL_TIME_EPOCH_S",
Acb:"SURVEY_ELAPSED_MS",B5:"VIS",bkb:"VIEWABILITY",ikb:"VED",C5:"VOL",lkb:"WT",D5:"YT_ERROR_CODE"};Zza.prototype.Kq=function(){return"urlEndpoint"};
Zza.prototype.Zs=function(a,b,c){var d=this.Oa.get(),e=UHa(d.B.get(),b);e?b=UJ(d,ngb(e),e,void 0,void 0,c):(kG("Trying to ping from an unknown layout",void 0,void 0,{layoutId:b}),b={});b=Object.assign({},b);NM(this.j,"h5_inplayer_enable_adcpn_macro_substitution_for_click_pings")&&(c=this.Nf.Me(2))&&(b.AD_CPN=c.clientPlaybackNonce);b=g.Wu(a.url,b);"1"===(new g.xp(b)).B.get("ase")?g.NG(b,void 0,void 0,b+"&asr=1"):g.NG(b,void 0,void 0,void 0,void 0,"ATTRIBUTION_SRC_MODE_LABEL_CHROME"===a.attributionSrcMode)};WH.prototype.get=function(){return this.value};
g.y(XH,WH);XH.prototype.getType=function(){return"metadata_type_action_companion_ad_renderer"};
g.y(YH,WH);YH.prototype.getType=function(){return"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"};
g.y($za,WH);$za.prototype.getType=function(){return"metadata_type_ads_engagement_panel_renderer"};
g.y(aAa,WH);aAa.prototype.getType=function(){return"metadata_type_panel_text_icon_image_tiles_button_layout_view_model"};
g.y(ZH,WH);ZH.prototype.getType=function(){return"metadata_type_ad_next_params"};
g.y($H,WH);$H.prototype.getType=function(){return"metadata_type_ad_video_clickthrough_endpoint"};
g.y(bAa,WH);bAa.prototype.getType=function(){return"metadata_type_invideo_overlay_ad_renderer"};
g.y(cAa,WH);cAa.prototype.getType=function(){return"metadata_type_image_companion_ad_renderer"};
g.y(dAa,WH);dAa.prototype.getType=function(){return"metadata_type_banner_image_layout_view_model"};
g.y(eAa,WH);eAa.prototype.getType=function(){return"metadata_type_shopping_companion_carousel_renderer"};
g.y(fAa,WH);fAa.prototype.getType=function(){return"metadata_type_ad_info_ad_metadata"};
g.y(gAa,WH);gAa.prototype.getType=function(){return"metadata_ad_video_is_listed"};
g.y(aI,WH);aI.prototype.getType=function(){return"metadata_type_ad_placement_config"};
g.y(bI,WH);bI.prototype.getType=function(){return"metadata_type_ad_pod_info"};
g.y(cI,WH);cI.prototype.getType=function(){return"metadata_type_ad_pod_skip_index"};
g.y(dI,WH);dI.prototype.getType=function(){return"metadata_type_ad_pod_skip_target"};
g.y(eI,WH);eI.prototype.getType=function(){return"metadata_type_ad_pod_skip_target_callback_ref"};
g.y(fI,WH);fI.prototype.getType=function(){return"metadata_type_ad_video_id"};
g.y(gI,WH);gI.prototype.getType=function(){return"metadata_type_content_cpn"};
g.y(hI,WH);hI.prototype.getType=function(){return"metadata_type_instream_ad_player_overlay_renderer"};
g.y(iI,WH);iI.prototype.getType=function(){return"metadata_type_player_overlay_layout_renderer"};
g.y(jI,WH);jI.prototype.getType=function(){return"metadata_type_player_underlay_renderer"};
g.y(kI,WH);kI.prototype.getType=function(){return"metadata_type_player_underlay_ad_slot_renderer"};
g.y(hAa,WH);hAa.prototype.getType=function(){return"metadata_type_media_associated_in_player_slot"};
g.y(iAa,WH);iAa.prototype.getType=function(){return"metadata_type_shrunken_player_bytes_config"};
g.y(lI,WH);lI.prototype.getType=function(){return"metadata_type_ad_action_interstitial_renderer"};
g.y(jAa,WH);jAa.prototype.getType=function(){return"metadata_type_valid_survey_text_interstitial_renderer"};
g.y(kAa,WH);kAa.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_DAI"};
g.y(lAa,WH);lAa.prototype.getType=function(){return"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"};
g.y(mAa,WH);mAa.prototype.getType=function(){return"metadata_type_sliding_text_player_overlay_renderer"};
g.y(mI,WH);mI.prototype.getType=function(){return"metadata_type_linked_player_bytes_layout_id"};
g.y(nI,WH);nI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_id"};
g.y(oI,WH);oI.prototype.getType=function(){return"metadata_type_linked_in_player_layout_type"};
g.y(pI,WH);pI.prototype.getType=function(){return"metadata_type_linked_in_player_slot_id"};
g.y(nAa,WH);nAa.prototype.getType=function(){return"metadata_type_player_bytes_callback"};
g.y(qI,WH);qI.prototype.getType=function(){return"metadata_type_player_bytes_callback_ref"};
g.y(rI,WH);rI.prototype.getType=function(){return"metadata_type_player_bytes_layout_controls_callback_ref"};
g.y(sI,WH);sI.prototype.getType=function(){return"metadata_type_sub_layouts"};
g.y(oAa,WH);oAa.prototype.getType=function(){return"metadata_type_cue_point"};
g.y(tI,WH);tI.prototype.getType=function(){return"metadata_type_video_length_seconds"};
g.y(uI,WH);uI.prototype.getType=function(){return"metadata_type_player_vars"};
g.y(vI,WH);vI.prototype.getType=function(){return"metadata_type_preload_player_vars"};
g.y(wI,WH);wI.prototype.getType=function(){return"metadata_type_sodar_extension_data"};
g.y(xI,WH);xI.prototype.getType=function(){return"metadata_type_layout_enter_ms"};
g.y(yI,WH);yI.prototype.getType=function(){return"metadata_type_layout_exit_ms"};
g.y(zI,WH);zI.prototype.getType=function(){return"metadata_type_media_sub_layout_index"};
g.y(AI,WH);AI.prototype.getType=function(){return"metadata_type_dai"};
g.y(BI,WH);BI.prototype.getType=function(){return"metadata_type_ad_intro"};
g.y(pAa,WH);pAa.prototype.getType=function(){return"metadata_type_client_forecasting_ad_renderer"};
g.y(CI,WH);CI.prototype.getType=function(){return"metadata_type_drift_recovery_ms"};
g.y(DI,WH);DI.prototype.getType=function(){return"metadata_type_fulfilled_layout"};
g.y(EI,WH);EI.prototype.getType=function(){return"metadata_type_ad_break_request_data"};
g.y(qAa,WH);qAa.prototype.getType=function(){return"metadata_type_ad_break_response_data"};
g.y(FI,WH);FI.prototype.getType=function(){return"metadata_type_remote_slots_data"};
g.y(GI,WH);GI.prototype.getType=function(){return"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"};
g.y(HI,WH);HI.prototype.getType=function(){return"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"};
g.y(II,WH);II.prototype.getType=function(){return"metadata_type_legacy_info_card_vast_extension"};
g.y(rAa,WH);rAa.prototype.getType=function(){return"metadata_type_valid_ad_message_renderer"};
g.y(JI,WH);JI.prototype.getType=function(){return"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS"};
g.y(KI,WH);KI.prototype.getType=function(){return"metadata_type_served_from_live_infra"};
g.y(sAa,WH);sAa.prototype.getType=function(){return"metadata_type_survey_overlay"};
g.y(LI,WH);LI.prototype.getType=function(){return"metadata_type_active_view_traffic_type"};
g.y(tAa,WH);tAa.prototype.getType=function(){return"metadata_type_active_view_identifier"};
g.y(uAa,WH);uAa.prototype.getType=function(){return"metadata_type_ssdai_ads_config"};
g.y(MI,WH);MI.prototype.getType=function(){return"metadata_type_eligible_for_ssap"};
g.y(vAa,WH);vAa.prototype.getType=function(){return"metadata_type_allow_pause_ad_break_request_slot_reschedule"};var PAa=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 $Aa=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.y(QI,xb);g.y(RI,xb);new Promise(function(){});var zAa=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"]]),xAa=new Map([["normal",{tx:"ADS_CLIENT_EVENT_TYPE_NORMAL_EXIT_LAYOUT_REQUESTED",Fx:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY"}],["skipped",{tx:"ADS_CLIENT_EVENT_TYPE_SKIP_EXIT_LAYOUT_REQUESTED",Fx:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP"}],
["muted",{tx:"ADS_CLIENT_EVENT_TYPE_MUTE_EXIT_LAYOUT_REQUESTED",Fx:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE"}],["abandoned",{tx:"ADS_CLIENT_EVENT_TYPE_ABANDON_EXIT_LAYOUT_REQUESTED",Fx:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON"}],["user_input_submitted",{tx:"ADS_CLIENT_EVENT_TYPE_USER_INPUT_SUBMITTED_EXIT_LAYOUT_REQUESTED",Fx:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED"}],["user_cancelled",{tx:"ADS_CLIENT_EVENT_TYPE_USER_CANCELLED_EXIT_LAYOUT_REQUESTED",Fx:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_CANCELLED"}],
["error",{tx:"ADS_CLIENT_EVENT_TYPE_ABORTED_EXIT_LAYOUT_REQUESTED",Fx:"ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED"}]]);g.y(FAa,g.I);g.k=FAa.prototype;g.k.HO=function(a,b){return this.j.HO(a,b)};
g.k.Lg=function(a,b){this.Ob.iH("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",a,b);for(var c=g.u(this.B),d=c.next();!d.done;d=c.next())d.value.Lg(a,b)};
g.k.yf=function(a){if(cJ(this.j,a)){this.Ob.Ij("ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.j.yf(a);for(var b=g.u(this.B),c=b.next();!c.done;c=b.next())c.value.yf(a);IAa(this,a)}};
g.k.zf=function(a){if(cJ(this.j,a)){this.Ob.Ij("ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.j.zf(a);for(var b=g.u(this.B),c=b.next();!c.done;c=b.next())c.value.zf(a);cJ(this.j,a)&&dJ(this.j,a).G&&bJ(this,a,!1)}};
g.k.dK=function(a){this.Ob.Ij("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLMENT_CANCELLED",a);cJ(this.j,a)&&(this.j.dK(a),bJ(this,a,!1))};
g.k.vc=function(a,b){if(cJ(this.j,a)){this.Ob.Lh("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",a,b);for(var c=g.u(this.B),d=c.next();!d.done;d=c.next())d.value.vc(a,b)}};
g.k.Oc=function(a,b,c){if(cJ(this.j,a)){this.Ob.Lh(yAa(c),a,b);this.j.Oc(a,b);for(var d=g.u(this.B),e=d.next();!e.done;e=d.next())e.value.Oc(a,b,c);(c=mJ(this.j,a))&&b.layoutId===c.layoutId&&WAa(this,a,!1)}};
g.k.nf=function(a,b,c,d){c.Gk&&d?(kG(c,a,b,void 0,c.fv),this.Ob.Rl(d,c.Gk,a,b)):kG("adsClientErrorMessage is missing.",a,b);bJ(this,a,!0)};
g.k.va=function(){var a=ZAa(this.j);a=g.u(a);for(var b=a.next();!b.done;b=a.next())bJ(this,b.value,!1);g.I.prototype.va.call(this)};
g.k.jg=function(a,b){this.Ob.Lh("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",a,b);this.Ob.Lh("ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",a,b);for(var c=g.u(this.B),d=c.next();!d.done;d=c.next())d=d.value,b&&d.jg(a,b)};XAa.prototype.isActive=function(){switch(this.j){case "entered":case "rendering":case "rendering_stop_requested":case "exit_requested":return!0;default:return!1}};g.y(YAa,g.I);g.k=YAa.prototype;g.k.HO=function(a,b){b=lJ(this,a+"_"+b);a=[];b=g.u(b.values());for(var c=b.next();!c.done;c=b.next())a.push(c.value.slot);return a};
g.k.Mg=function(a){a=dJ(this,a);"not_scheduled"!==a.j&&nJ(a.slot,a.j,"onSlotScheduled");a.j="scheduled"};
g.k.vD=function(a){a=dJ(this,a);a.D="fill_requested";a.N.vD()};
g.k.yf=function(a){a=dJ(this,a);"enter_requested"!==a.j&&nJ(a.slot,a.j,"onSlotEntered");a.j="entered"};
g.k.dK=function(a){dJ(this,a).D="fill_canceled"};
g.k.zf=function(a){a=dJ(this,a);"exit_requested"!==a.j&&nJ(a.slot,a.j,"onSlotExited");a.j="scheduled"};
g.k.Oc=function(a,b){a=dJ(this,a);null!=a.layout&&a.layout.layoutId===b.layoutId&&("rendering_stop_requested"!==a.j&&nJ(a.slot,a.j,"onLayoutExited"),a.j="entered")};g.y(dBa,g.I);dBa.prototype.get=function(){this.Ma()&&kG("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.I8());return this.instance};g.y(fBa,g.I);fBa.prototype.C=function(){return this.j};rJ.prototype.executeCommand=function(a,b){VH(this.j(),a,b)};uJ.prototype.addListener=function(a){this.listeners.add(a)};
uJ.prototype.removeListener=function(a){this.listeners.delete(a)};var P2={},CJ=(P2.AD_MARKER="ytp-ad-progress",P2.CHAPTER_MARKER="ytp-chapter-marker",P2.TIME_MARKER="ytp-time-marker",P2);var AVa=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/)"),nBa=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]+)?/)"),
BVa=RegExp("^https?://(www\\.google\\.com/pagead/xsul|www\\.youtube\\.com/pagead/slav)"),vBa=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)|$))"),
tBa=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)|$))"),qBa=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)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|play\\.google\\.com|prod\\.google\\.com|currents\\.google\\.com|video\\.google\\.com|youtube\\.com|ytimg\\.com|ytimg\\.sandbox\\.google\\.com|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|s2\\.googleusercontent\\.com/s2/favicons\\?|yt[3-4]\\.ggpht\\.com/)"),
CVa=RegExp("^https?.*#ocr$|^https?://(aksecure\\.imrworldwide\\.com/|cdn\\.imrworldwide\\.com/|secure\\-..\\.imrworldwide\\.com/)"),rBa=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)"),pBa=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)|(dp[3-6]\\.googleusercontent\\.cn)|(dp4\\.googleusercontent\\.com)|((photos|drive|contribution)\\-image\\-(dev|qa)(-auth|-cookie)?\\.corp\\.google\\.com)|(photos\\-image\\-dev\\-dl\\-(auth|eu|us)\\.corp\\.google\\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\\.sandbox\\.google\\.com\\/image)|(image\\-(dev|qa)\\-lighthouse(-auth)?\\.sandbox\\.google\\.com(\\/image)?))\\/|^https://([A-Za-z0-9-]{1,63}\\.)+demos\\.corp\\.google\\.com(/(?!url\\b)|$)|^https://([A-Za-z0-9-]{1,63}\\.)+sslproxy\\.corp\\.google\\.com(/|$)|^https?://(([A-Za-z0-9-]{1,63}\\.)*(corp\\.google\\.com|proxy\\.googleprod\\.com|c\\.googlers\\.com|proxy\\.googlers\\.com|borg\\.google\\.com|docs\\.google\\.com|drive\\.google\\.com|googleplex\\.com|googlevideo\\.com|prod\\.google\\.com|lh3\\.photos\\.google\\.com|currents\\.google\\.com|mail\\.google\\.com|youtube\\.com|yt\\.akamaized\\.net|chat\\.google\\.com)[.]?(:[0-9]+)?/|([A-Za-z0-9-]{1,63}\\.)*(sandbox\\.google\\.com)(:[0-9]+)?(/(?!url\\b)|$)|([A-Za-z0-9-]{1,63}\\.)*c\\.lh3(-d[a-gyz]|-testonly)?\\.(googleusercontent|photos\\.google)\\.com/.*$)"),
YRa=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)"),
WRa=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)"),
XRa=RegExp("^https?://([A-Za-z0-9-]{1,63}\\.)*(stadia\\.google\\.com)[.]?(:[0-9]+)?(/|$)"),qmb=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$)"),
rmb=RegExp("^(https://stadia\\.google\\.com)$");var mBa=!1;g.DJ.prototype.getId=function(){return this.id};
g.DJ.prototype.toString=function(){return"CueRange{"+this.namespace+":"+this.id+"}["+zBa(this.start)+", "+zBa(this.end)+"]"};
g.DJ.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a===this.end&&this.start===this.end)&&(null==b||a<b&&b<=this.end)};
var yBa=1;g.DJ.prototype.getId=g.DJ.prototype.getId;CBa.prototype.vD=function(){var a=this,b=0;kBa(this.j,function(){var c=TI(a.slot.Aa,"metadata_type_ad_break_request_data");b=Date.now();FL(a.Oa.get(),"abrs","ct."+b+";cmt."+a.Ha.get().getCurrentTimeSec(1,!1)+";sid."+a.slot.slotId+";");return a.B.get().fetch({E1:c.getAdBreakUrl,oW:new g.DJ(c.uR,c.tR),Cv:TI(a.slot.Aa,"metadata_type_cue_point"),cueProcessedMs:c.cueProcessedMs})},function(){DBa(a)},function(c){var d=Date.now()-b;
FL(a.Oa.get(),"abrr","ct."+(new Date).getTime()+";cmt."+a.Ha.get().getCurrentTimeSec(1,!1)+";l."+d.toString()+";sid."+a.slot.slotId+";");d=c.Zu;2<=d.length&&c.ssdaiAdsConfig&&kG("Unexpected ad placement renderers length",a.slot,null,{length:d.length});d.some(function(e){var f,h,l,m;return!!(null==(f=e.renderer)?0:null==(h=f.linearAdSequenceRenderer)?0:null==(l=h.linearAds)?0:l.length)||!(null==(m=e.renderer)||!m.instreamVideoAdRenderer)})||DBa(a)})};
CBa.prototype.oN=function(){lBa(this.j)};EBa.prototype.vD=function(){var a=this;kBa(this.j,function(){var b=TI(a.slot.Aa,"metadata_type_ad_break_request_data");return a.B.get().fetch({E1:b.getAdBreakUrl,oW:new g.DJ(b.uR,b.tR)})})};
EBa.prototype.oN=function(){lBa(this.j)};FBa.prototype.vD=function(){var a=this.slot.Aa,b,c=null!=(b=this.slot.fulfilledLayout)?b:TI(a,"metadata_type_fulfilled_layout");JAa(this.callback,this.slot,c)};
FBa.prototype.oN=function(){GAa(this.callback,this.slot,new RI("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")};HBa.prototype.build=function(a,b){return b.fulfilledLayout||GBa(b,{Kd:["metadata_type_fulfilled_layout"]})?new FBa(a,b):this.C(a,b)};g.y(GJ,HBa);
GJ.prototype.C=function(a,b){if(GBa(b,{Kd:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new CBa(a,b,this.j,this.B,this.Se,this.Ca,this.Oa,this.Ha,this.Uc);if(GBa(b,{Kd:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new EBa(a,b,this.j,this.B,this.Se,this.Ca);throw new RI("Unsupported slot with type: "+b.slotType+" and client metadata: "+UI(b.Aa)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.y(HJ,HBa);HJ.prototype.C=function(a,b){throw new RI("Unsupported slot with type: "+b.slotType+" and client metadata: "+UI(b.Aa)+" in DefaultFulfillmentAdapterFactory.");};g.k=IBa.prototype;g.k.Zb=function(){return this.slot};
g.k.ob=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.nf(this.slot,a,new QI("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=TI(a.Aa,"metadata_type_ad_break_response_data");"SLOT_TYPE_AD_BREAK_REQUEST"===this.slot.slotType?(this.callback.vc(this.slot,a),KFa(this.B,this.slot,
b)):kG("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,a)}};
g.k.Qe=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.nf(this.slot,a,new QI("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.Oc(this.slot,a,b),KBa(this))};g.y(LJ,g.wF);g.k=LJ.prototype;g.k.Zb=function(){return this.B.slot};
g.k.ob=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.WO=function(){};
g.k.TO=function(){};
g.k.SO=function(){};
g.k.RI=function(){};
g.k.startRendering=function(a){var b=this;NBa(this.B,a,function(){return void b.gL()})};
g.k.gL=function(){this.C.get().gL(this.j)};
g.k.Qe=function(a,b){var c=this;NBa(this.B,a,function(){var d=c.C.get();Egb(d,c.j,3);c.j=[];c.callback.Oc(c.slot,a,b)})};
g.k.va=function(){this.C.Ma()||this.C.get().removeListener(this);g.wF.prototype.va.call(this)};
g.ha.Object.defineProperties(LJ.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.B.slot}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.B.layout}}});SJ.prototype.Hh=function(a,b){b=void 0===b?!1:b;var c=(this.C.get(a)||[]).concat();if(b=b&&OBa(a)){var d=this.C.get(b);d&&c.push.apply(c,g.qa(d))}PBa(this,a,c);this.j.add(a);b&&this.j.add(b)};
SJ.prototype.Vb=function(a,b){b=void 0===b?!1:b;if(!this.j.has(a)){var c=b&&OBa(a);c&&(b=!this.j.has(c));this.Hh(a,b)}};
SJ.prototype.Rr=function(a,b){b=void 0===b?!1:b;this.j.has(a)?PBa(this,a,[]):this.Vb(a,b)};g.y(SBa,vF);g.y(TBa,LJ);g.k=TBa.prototype;g.k.fg=function(a,b){OJ("banner-image",a,this.K.get().Yi,this.Oa.get(),this.D,this.G,this.Zb(),this.ob(),b)};
g.k.startRendering=function(a){NJ(this.Xa,this.Zb(),this.ob(),this.callback,"metadata_type_banner_image_layout_view_model",function(b,c,d,e,f){return new SBa(b,c,d,e,f)},this.j);
LJ.prototype.startRendering.call(this,a)};
g.k.vc=function(a,b){this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Ai():kG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Oc=function(){};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.Ch=function(){};
g.k.yf=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.Lg=function(){};
g.k.va=function(){aJ(this.Ec(),this);LJ.prototype.va.call(this)};g.y(VBa,vF);g.y(WBa,LJ);g.k=WBa.prototype;g.k.fg=function(a,b){OJ("action-companion",a,this.K.get().Yi,this.Oa.get(),this.D,this.G,this.Zb(),this.ob(),b)};
g.k.startRendering=function(a){NJ(this.Xa,this.Zb(),this.ob(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new VBa(b,c,d,e,f)},this.j);
LJ.prototype.startRendering.call(this,a)};
g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.Xa.Vb("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Ai():kG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Oc=function(){};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.Ch=function(){};
g.k.yf=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.Lg=function(){};
g.k.va=function(){aJ(this.Ec(),this);LJ.prototype.va.call(this)};g.y(YBa,vF);g.y(ZBa,LJ);g.k=ZBa.prototype;g.k.fg=function(a,b){OJ("image-companion",a,this.K.get().Yi,this.Oa.get(),this.D,this.G,this.Zb(),this.ob(),b)};
g.k.startRendering=function(a){NJ(this.Xa,this.Zb(),this.ob(),this.callback,"metadata_type_image_companion_ad_renderer",function(b,c,d,e,f){return new YBa(b,c,d,e,f)},this.j);
LJ.prototype.startRendering.call(this,a)};
g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.Xa.Vb("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Ai():kG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Oc=function(){};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.Ch=function(){};
g.k.yf=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.Lg=function(){};
g.k.va=function(){aJ(this.Ec(),this);LJ.prototype.va.call(this)};g.y(aCa,vF);g.y(bCa,LJ);g.k=bCa.prototype;g.k.fg=function(a,b){OJ("shopping-companion",a,this.K.get().Yi,this.Oa.get(),this.D,this.G,this.Zb(),this.ob(),b)};
g.k.startRendering=function(a){NJ(this.Xa,this.Zb(),this.ob(),this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,c,d,e,f){return new aCa(b,c,d,e,f)},this.j);
LJ.prototype.startRendering.call(this,a)};
g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.Xa.Vb("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Ai():kG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Oc=function(){};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.Ch=function(){};
g.k.yf=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.Lg=function(){};
g.k.va=function(){aJ(this.Ec(),this);LJ.prototype.va.call(this)};g.y(gCa,LJ);g.k=gCa.prototype;g.k.startRendering=function(a){NJ(this.Xa,this.Zb(),this.ob(),this.callback,"metadata_type_action_companion_ad_renderer",function(b,c,d,e,f){return new VBa(b,c,d,e,f)},this.j);
LJ.prototype.startRendering.call(this,a)};
g.k.vc=function(){};
g.k.Oc=function(){};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.Ch=function(){};
g.k.yf=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.Lg=function(){};
g.k.va=function(){aJ(this.Ec(),this);LJ.prototype.va.call(this)};
g.k.fg=function(){};g.k=iCa.prototype;g.k.Zb=function(){return this.slot};
g.k.ob=function(){return this.layout};
g.k.init=function(){this.Ha.get().addListener(this);this.Ha.get().cD.push(this);var a=TI(this.layout.Aa,"metadata_type_video_length_seconds"),b=TI(this.layout.Aa,"metadata_type_active_view_traffic_type");PJ(this.layout.Bb)&&p1(this.Ca.get())&&v1(this.xb.get(),this.layout.layoutId,b,a,this)};
g.k.release=function(){this.Ha.get().removeListener(this);xgb(this.Ha.get(),this);PJ(this.layout.Bb)&&p1(this.Ca.get())&&w1(this.xb.get(),this.layout.layoutId)};
g.k.startRendering=function(a){this.callback.vc(this.slot,a)};
g.k.Qe=function(a,b){Zfb(this.Ca.get())&&!this.j&&(this.Xa.Vb("abandon"),this.j=!0);this.callback.Oc(this.slot,a,b)};
g.k.uj=function(a){switch(a.id){case "part2viewed":this.Xa.Vb("start");p1(this.Ca.get())&&this.Xa.Vb("impression");break;case "videoplaytime25":this.Xa.Vb("first_quartile");break;case "videoplaytime50":this.Xa.Vb("midpoint");break;case "videoplaytime75":this.Xa.Vb("third_quartile");break;case "videoplaytime100":Zfb(this.Ca.get())?this.j||(this.Xa.Vb("complete"),this.j=!0):this.Xa.Vb("complete");XJ(this.Xa)&&VJ(this.Xa,Infinity,!0);break;case "engagedview":XJ(this.Xa)||this.Xa.Vb("progress");break;
case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:kG("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.Ui=function(){};
g.k.hh=function(){};
g.k.vj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Ei=function(){};
g.k.Di=function(){};
g.k.tQ=function(a){XJ(this.Xa)&&VJ(this.Xa,1E3*a,!1);0<a&&!p1(this.Ca.get())&&this.Xa.Vb("impression")};
g.k.xj=function(){};
g.k.Rw=function(){this.Xa.Vb("active_view_measurable")};
g.k.Sw=function(){this.Xa.Vb("active_view_viewable")};
g.k.Qw=function(){this.Xa.Vb("active_view_fully_viewable_audible_half_duration")};
g.k.Pw=function(){this.Xa.Vb("audio_measurable")};
g.k.Ow=function(){this.Xa.Vb("audio_audible")};g.y(jCa,LJ);g.k=jCa.prototype;g.k.init=function(){LJ.prototype.init.call(this);var a=TI(this.layout.Aa,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.ac};this.j.push(new zG(a,this.layout.layoutId,TI(this.layout.Aa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,!0))};
g.k.Mp=function(){this.D||this.Ha.get().resumeVideo(1)};
g.k.startRendering=function(a){LJ.prototype.startRendering.call(this,a);C1(this.Ha.get(),"ad-showing");this.callback.vc(this.slot,a);this.G.ls=this};
g.k.Qe=function(a,b){LJ.prototype.Qe.call(this,a,b);D1(this.Ha.get(),"ad-showing");e2(this.G,this)};
g.k.fg=function(a){switch(a){case "ad-info-icon-button":(this.D=this.Ha.get().Pn(1))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo()}};
g.k.va=function(){LJ.prototype.va.call(this)};g.y(kCa,vF);g.y(lCa,LJ);g.k=lCa.prototype;g.k.startRendering=function(a){NJ(this.Xa,this.Zb(),this.ob(),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new kCa(b,c,d,e,f)},this.j);
LJ.prototype.startRendering.call(this,a)};
g.k.vc=function(){};
g.k.Oc=function(){};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.Ch=function(){};
g.k.yf=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.Lg=function(){};
g.k.va=function(){aJ(this.Ec(),this);LJ.prototype.va.call(this)};
g.k.fg=function(){};g.y(YJ,vF);g.y(ZJ,LJ);ZJ.prototype.init=function(){LJ.prototype.init.call(this);var a=g.V(this.layout.renderingContent,gK)||TI(this.layout.Aa,"metadata_type_ad_action_interstitial_renderer"),b=MJ(this.Xa);this.j.push(new YJ(a,b,this.layout.layoutId,{adsClientData:this.layout.ac},!0,!0))};
ZJ.prototype.startRendering=function(a){LJ.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a)};
ZJ.prototype.fg=function(a,b){if(b===this.layout.layoutId)switch(a){case "skip-button":var c;(a=null==(c=TI(this.layout.Aa,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:c.current)&&XDa(a,this.Zb(),this.layout)}};
ZJ.prototype.va=function(){LJ.prototype.va.call(this)};aK.prototype.build=function(a,b,c,d){if($J(d,{Kd:["metadata_type_ad_break_response_data"],Fe:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new IBa(a,c,d,this.B,this.C,this.j);throw new QI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UI(d.Aa)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.y(oCa,vF);g.y(pCa,LJ);g.k=pCa.prototype;g.k.fg=function(a,b){OJ("ads-engagement-panel",a,this.K.get().Yi,this.Oa.get(),this.D,this.G,this.Zb(),this.ob(),b)};
g.k.startRendering=function(a){NJ(this.Xa,this.Zb(),this.ob(),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,c,d,e,f){return new oCa(b,c,d,e,f)},this.j);
LJ.prototype.startRendering.call(this,a)};
g.k.vc=function(a,b){b.layoutId===this.layout.layoutId?this.Xa.Vb("impression"):this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Ai():kG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Oc=function(){};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.Ch=function(){};
g.k.yf=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.Lg=function(){};
g.k.va=function(){aJ(this.Ec(),this);LJ.prototype.va.call(this)};g.y(rCa,vF);g.y(sCa,LJ);g.k=sCa.prototype;g.k.fg=function(a,b){OJ("panel-text-icon-image-tiles-button",a,this.K.get().Yi,this.Oa.get(),this.D,this.G,this.Zb(),this.ob(),b)};
g.k.startRendering=function(a){NJ(this.Xa,this.Zb(),this.ob(),this.callback,"metadata_type_panel_text_icon_image_tiles_button_layout_view_model",function(b,c,d,e,f){return new rCa(b,c,d,e,f)},this.j);
LJ.prototype.startRendering.call(this,a)};
g.k.vc=function(a,b){this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Ai():kG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Oc=function(){};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.Ch=function(){};
g.k.yf=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.Lg=function(){};
g.k.va=function(){aJ(this.Ec(),this);LJ.prototype.va.call(this)};g.y(uCa,LJ);g.k=uCa.prototype;g.k.fg=function(a,b){OJ("top-banner-image-text-icon-buttoned",a,this.K.get().Yi,this.Oa.get(),this.D,this.G,this.Zb(),this.ob(),b)};
g.k.startRendering=function(a){NJ(this.Xa,this.Zb(),this.ob(),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,c,d,e,f){return new kCa(b,c,d,e,f)},this.j);
LJ.prototype.startRendering.call(this,a)};
g.k.vc=function(a,b){this.G===b.layoutId&&(null===this.D?this.D=this.Oa.get().Ai():kG("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))};
g.k.Oc=function(){};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.Ch=function(){};
g.k.yf=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.Lg=function(){};
g.k.va=function(){aJ(this.Ec(),this);LJ.prototype.va.call(this)};wCa.prototype.build=function(a,b,c,d){if($J(d,qCa()))return new pCa(a,c,d,this.yc,this.Oa,this.Ec,this.xb,this.j);if($J(d,XBa()))return new WBa(a,c,d,this.yc,this.Oa,this.Ec,this.xb,this.j);if($J(d,$Ba()))return new ZBa(a,c,d,this.yc,this.Oa,this.Ec,this.xb,this.j);if($J(d,cCa()))return new bCa(a,c,d,this.yc,this.Oa,this.Ec,this.xb,this.j);if($J(d,hCa()))return new gCa(a,c,d,this.yc,this.Oa,this.Ec,this.xb,this.j);if($J(d,UBa()))return new TBa(a,c,d,this.yc,this.Oa,this.Ec,this.xb,this.j);if($J(d,
vCa()))return new uCa(a,c,d,this.yc,this.Oa,this.Ec,this.xb,this.j);if($J(d,mCa()))return new lCa(a,c,d,this.yc,this.Oa,this.Ec,this.xb,this.j);if($J(d,tCa()))return new sCa(a,c,d,this.yc,this.Oa,this.Ec,this.xb,this.j);throw new QI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UI(d.Aa)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};g.y(xCa,vF);g.y(bK,LJ);bK.prototype.init=function(){LJ.prototype.init.call(this);var a=TI(this.layout.Aa,"metadata_type_player_underlay_renderer");this.j.push(new xCa(g.V(a,Jjb),this.layout.layoutId,{adsClientData:this.layout.ac}))};
bK.prototype.fg=function(){};
bK.prototype.startRendering=function(a){LJ.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a)};
bK.prototype.va=function(){LJ.prototype.va.call(this)};yCa.prototype.build=function(a,b,c,d){b=["metadata_type_player_underlay_renderer"];for(var e=g.u(TJ()),f=e.next();!f.done;f=e.next())b.push(f.value);if($J(d,{Kd:b,Fe:["LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON"]}))return new bK(a,c,d,this.yc);throw new QI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UI(d.Aa)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.k=zCa.prototype;g.k.Zb=function(){return this.slot};
g.k.ob=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.nf(this.slot,a,new QI("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.vc(this.slot,a),this.Xa.Vb("impression"),CL(this.gk,a))};
g.k.Qe=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.nf(this.slot,a,new QI("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.Oc(this.slot,a,b)};g.k=BCa.prototype;g.k.Zb=function(){return this.slot};
g.k.ob=function(){return this.layout};
g.k.init=function(){};
g.k.release=function(){};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.nf(this.slot,a,new QI("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.vc(this.slot,a),this.Xa.Vb("impression"),CL(this.gk,a))};
g.k.Qe=function(a,b){a.layoutId!==this.layout.layoutId?this.callback.nf(this.slot,a,new QI("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.Oc(this.slot,a,b)};cK.prototype.build=function(a,b,c,d){if(!this.Ca.get().J.U().L("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if($J(d,ACa()))return new zCa(a,c,d,this.Oa,this.gk)}else if($J(d,{Kd:[],Fe:["LAYOUT_TYPE_FORECASTING"]}))return new BCa(a,c,d,this.Oa,this.gk);throw new QI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UI(d.Aa)+" in ForecastingLayoutRenderingAdapterFactory.");};g.y(ECa,vF);g.y(FCa,LJ);g.k=FCa.prototype;g.k.init=function(){LJ.prototype.init.call(this);var a=g.V(this.layout.renderingContent,LCa)||TI(this.layout.Aa,"metadata_type_player_overlay_layout_renderer"),b={adsClientData:this.layout.ac};this.j.push(new ECa(a,TI(this.layout.Aa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,b))};
g.k.Mp=function(){this.D||this.Ha.get().resumeVideo(2)};
g.k.startRendering=function(a){LJ.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a);this.G.ls=this};
g.k.Qe=function(a,b){LJ.prototype.Qe.call(this,a,b);e2(this.G,this)};
g.k.fg=function(a){if(THa(this.K.get(),this.N))switch(a){case "visit-advertiser-link":this.Oa.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ha.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ha.get().Pn(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser-link":this.Ha.get().pauseVideo();GCa(this).MK();
break;case "skip-button":if(a=GCa(this),!this.layout.renderingContent&&a.iJ)kG("Requesting to skip by LegacyPlayerBytes when components enabled"),a.PA(this.Zb(),this.layout);else{var b;(a=null==(b=TI(this.layout.Aa,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&XDa(a,this.Zb(),this.layout)}}};
g.k.va=function(){LJ.prototype.va.call(this)};g.y(dK,LJ);g.k=dK.prototype;g.k.init=function(){LJ.prototype.init.call(this);var a=g.V(this.layout.renderingContent,fK)||TI(this.layout.Aa,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.ac},c;(c=!!this.layout.renderingContent)||(c=!ICa(this).iJ);this.j.push(new zG(a,this.layout.layoutId,TI(this.layout.Aa,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,c))};
g.k.Mp=function(){this.D||this.Ha.get().resumeVideo(2)};
g.k.startRendering=function(a){LJ.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a);this.G.ls=this};
g.k.Qe=function(a,b){LJ.prototype.Qe.call(this,a,b);e2(this.G,this)};
g.k.fg=function(a){if(THa(this.K.get(),this.N))switch(a){case "visit-advertiser":this.Oa.get().J.sendVideoStatsEngageEvent(3,void 0,2)}switch(a){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.Ha.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.Ha.get().Pn(2))||this.Ha.get().pauseVideo();break;case "visit-advertiser":this.Ha.get().pauseVideo();ICa(this).MK();break;case "skip-button":if(a=
ICa(this),!this.layout.renderingContent&&a.iJ)kG("Requesting to skip by LegacyPlayerBytes"),a.PA(this.Zb(),this.layout);else{var b;(a=null==(b=TI(this.layout.Aa,"metadata_type_ad_pod_skip_target_callback_ref"))?void 0:b.current)&&XDa(a,this.Zb(),this.layout)}}};
g.k.va=function(){LJ.prototype.va.call(this)};g.y(JCa,vF);g.y(eK,LJ);g.k=eK.prototype;g.k.startRendering=function(a){var b=this;NBa(this.B,a,function(){b.j.push(new JCa(TI(b.layout.Aa,"metadata_type_valid_ad_message_renderer"),a.layoutId,a.ac));b.gL();b.callback.vc(b.slot,a);g.mG(u1(b.Ha.get(),1),512)&&b.callback.nf(b.Zb(),b.ob(),new QI("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})};
g.k.Di=function(){};
g.k.Ei=function(a){if(a.state.isError()){var b;this.callback.nf(this.Zb(),this.ob(),new QI("A player error happened during adNotify",{playerErrorCode:null==(b=a.state.Ig)?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.hh=function(){};
g.k.vj=function(){};
g.k.Ui=function(){};
g.k.onVolumeChange=function(){};
g.k.uj=function(){};
g.k.xj=function(){};
g.k.fg=function(){};MCa.prototype.build=function(a,b,c,d){if(a=hK(a,c,d,this.yc,this.Ha,this.Oa,this.B,this.j,this.Ca))return a;throw new QI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UI(d.Aa)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.k=OCa.prototype;g.k.Zb=function(){return this.slot};
g.k.ob=function(){return this.layout};
g.k.init=function(){this.Ha.get().addListener(this);this.Ha.get().cD.push(this);var a=TI(this.layout.Aa,"metadata_type_video_length_seconds"),b=TI(this.layout.Aa,"metadata_type_active_view_traffic_type"),c=TI(this.layout.Aa,"metadata_type_active_view_identifier");PJ(this.layout.Bb)&&p1(this.Ca.get())&&v1(this.xb.get(),this.layout.layoutId,b,a,this,c)};
g.k.release=function(){this.Ha.get().removeListener(this);xgb(this.Ha.get(),this);PJ(this.layout.Bb)&&p1(this.Ca.get())&&w1(this.xb.get(),this.layout.layoutId)};
g.k.startRendering=function(a){this.callback.vc(this.slot,a)};
g.k.Qe=function(a,b){PCa(this,"abandon");this.callback.Oc(this.slot,a,b)};
g.k.uj=function(a){switch(a.id){case "part2viewed":this.Xa.Vb("start");p1(this.Ca.get())&&this.Xa.Vb("impression");break;case "videoplaytime25":this.Xa.Vb("first_quartile");break;case "videoplaytime50":this.Xa.Vb("midpoint");break;case "videoplaytime75":this.Xa.Vb("third_quartile");break;case "videoplaytime100":PCa(this,"complete");XJ(this.Xa)&&VJ(this.Xa,Infinity,!0);break;case "engagedview":XJ(this.Xa)||this.Xa.Vb("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;
default:kG("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}};
g.k.onVolumeChange=function(){};
g.k.Ui=function(){};
g.k.hh=function(){};
g.k.vj=function(){};
g.k.onFullscreenToggled=function(){};
g.k.Ei=function(a){this.j||(g.oG(a,4)&&!g.oG(a,2)?this.Xa.Rr("pause"):0>nG(a,4)&&!(0>nG(a,2))&&this.Xa.Rr("resume"))};
g.k.Di=function(){};
g.k.tQ=function(a){XJ(this.Xa)&&VJ(this.Xa,1E3*a,!1);0<a&&!p1(this.Ca.get())&&this.Xa.Vb("impression")};
g.k.xj=function(){PCa(this,"swipe")};
g.k.Rw=function(){this.Xa.Vb("active_view_measurable")};
g.k.Sw=function(){this.Xa.Vb("active_view_viewable")};
g.k.Qw=function(){this.Xa.Vb("active_view_fully_viewable_audible_half_duration")};
g.k.Pw=function(){this.Xa.Vb("audio_measurable")};
g.k.Ow=function(){this.Xa.Vb("audio_audible")};QCa.prototype.build=function(a,b,c,d){b=["metadata_type_ad_placement_config"];for(var e=g.u(TJ()),f=e.next();!f.done;f=e.next())b.push(f.value);if($J(d,{Kd:b,Fe:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"===c.slotType?new OCa(a,c,d,this.Ha,this.Oa,this.Ca,this.xb):new iCa(a,c,d,this.Ha,this.Oa,this.Ca,this.xb);throw new QI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UI(d.Aa)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");
};var kK={contentCpn:"",As:new Map};WCa.prototype.Am=function(a,b){jK(this.Nf,a,b)};var smb,Q2,XCa;
smb={uka:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",spa:"AUTHENTICATION_MALFORMED",tpa:"AUTHENTICATION_MISSING",Gpa:"BAD_REQUEST",Vqa:"CAST_SESSION_DEVICE_MISMATCHED",Wqa:"CAST_SESSION_VIDEO_MISMATCHED",Xqa:"CAST_TOKEN_EXPIRED",Yqa:"CAST_TOKEN_FAILED",Zqa:"CAST_TOKEN_MALFORMED",Kra:"CGI_PARAMS_MALFORMED",Lra:"CGI_PARAMS_MISSING",Iwa:"DEVICE_FALLBACK",gya:"GENERIC_WITH_LINK_AND_CPN",hya:"ERROR_HDCP",mya:"LICENSE",pya:"VIDEO_UNAVAILABLE",iGa:"FORMAT_UNAVAILABLE",oGa:"GEO_FAILURE",
KHa:"HTML5_AUDIO_RENDERER_ERROR",LHa:"GENERIC_WITHOUT_LINK",MHa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",NHa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",OHa:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",XHa:"HTML5_SPS_UMP_STATUS_REJECTED",fJa:"INVALID_DRM_MESSAGE",w3a:"PURCHASE_NOT_FOUND",x3a:"PURCHASE_REFUNDED",z4a:"RENTAL_EXPIRED",H4a:"RETRYABLE_ERROR",G5a:"SERVER_ERROR",f7a:"SIGNATURE_EXPIRED",G$a:"STOPPED_BY_ANOTHER_PLAYBACK",Sab:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Uab:"STREAMING_NOT_ALLOWED",
Vab:"STREAM_LICENSE_NOT_FOUND",Vcb:"TOO_MANY_REQUESTS",Wcb:"TOO_MANY_REQUESTS_WITH_LINK",Ycb:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Zcb:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",fjb:"VIDEO_FORBIDDEN",Ajb:"VIDEO_NOT_FOUND"};Q2={};
g.OV=(Q2.ALREADY_PINNED_ON_A_DEVICE="Bu video telif hakk\u0131 sahibinin izin verdi\u011fi maksimum say\u0131da cihaza zaten indirildi. Videonun burada oynat\u0131labilmesi i\u00e7in ba\u015fka bir cihazdan sabitlemesinin kald\u0131r\u0131lmas\u0131 gerekir.",Q2.DEVICE_FALLBACK="Maalesef, bu video bu cihazda kullan\u0131lam\u0131yor.",Q2.GENERIC_WITH_LINK_AND_CPN="Bir hata olu\u015ftu. L\u00fctfen daha sonra tekrar deneyin. (Oynatma kimli\u011fi: $CPN) $BEGIN_LINKDaha fazla bilgi edinin$END_LINK",
Q2.LICENSE="Maalesef bu videonun lisanslanmas\u0131nda bir hata olu\u015ftu.",Q2.VIDEO_UNAVAILABLE="Video kullan\u0131lam\u0131yor",Q2.FORMAT_UNAVAILABLE="Bu video se\u00e7ilen kalitede g\u00f6r\u00fcnt\u00fclenemiyor. L\u00fctfen daha sonra tekrar deneyin.",Q2.GEO_FAILURE="Bu video \u00fclkenizde kullan\u0131lam\u0131yor.",Q2.HTML5_AUDIO_RENDERER_ERROR="Ses olu\u015fturucu hatas\u0131. L\u00fctfen bilgisayar\u0131n\u0131z\u0131 yeniden ba\u015flat\u0131n.",Q2.GENERIC_WITHOUT_LINK="Bir hata olu\u015ftu. L\u00fctfen daha sonra tekrar deneyin.",
Q2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="Bu video bi\u00e7imi desteklenmiyor.",Q2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Taray\u0131c\u0131n\u0131z \u015fu anda mevcut video bi\u00e7imlerinin hi\u00e7birini tan\u0131m\u0131yor. $BEGIN_LINKHTML5 videosu hakk\u0131ndaki s\u0131k sorulan sorular\u0131 ziyaret etmek i\u00e7in buray\u0131 t\u0131klay\u0131n.$END_LINK",Q2.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Taray\u0131c\u0131n\u0131z bu videoyu oynatam\u0131yor. $BEGIN_LINKDaha fazla bilgi$END_LINK",
Q2.HTML5_SPS_UMP_STATUS_REJECTED="Bir hata olu\u015ftu. Yenileyin veya daha sonra tekrar deneyin. $BEGIN_LINKDaha fazla bilgi edinin$END_LINK.",Q2.INVALID_DRM_MESSAGE="DRM sistemine \u00f6zel mesaj ge\u00e7ersiz.",Q2.PURCHASE_NOT_FOUND="Bu video \u00f6deme gerektiriyor.",Q2.PURCHASE_REFUNDED="Bu videonun sat\u0131n alma i\u015fleminin \u00fccreti iade edildi.",Q2.RENTAL_EXPIRED="Bu videonun kiralanma s\u00fcresi sona erdi.",Q2.CAST_SESSION_DEVICE_MISMATCHED="Yay\u0131n oturumundaki cihaz, istenen cihazla e\u015fle\u015fmiyor.",
Q2.CAST_SESSION_VIDEO_MISMATCHED="Yay\u0131n oturumundaki video, istenen videoyla e\u015fle\u015fmiyor.",Q2.CAST_TOKEN_FAILED="Yay\u0131n oturumu yok. L\u00fctfen yenileyin veya daha sonra tekrar deneyin.",Q2.CAST_TOKEN_EXPIRED="Yay\u0131n oturumunun s\u00fcresi doldu. L\u00fctfen yenileyin.",Q2.CAST_TOKEN_MALFORMED="Ge\u00e7ersiz yay\u0131n oturumu. L\u00fctfen yenileyin veya daha sonra tekrar deneyin.",Q2.SERVER_ERROR="Dahili bir sunucu hatas\u0131 olu\u015ftu. L\u00fctfen daha sonra tekrar deneyin.",
Q2.STOPPED_BY_ANOTHER_PLAYBACK="Hesab\u0131n\u0131z bu videoyu ba\u015fka bir konumda oynat\u0131yor. \u0130zlemeye devam etmek i\u00e7in l\u00fctfen bu sayfay\u0131 yeniden y\u00fckleyin.",Q2.STREAM_LICENSE_NOT_FOUND="Video oynat\u0131m\u0131 kesildi. L\u00fctfen tekrar deneyin.",Q2.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="24 saatlik s\u00fcre i\u00e7inde \u00e7ok fazla cihaz/IP adresi kullan\u0131ld\u0131.",Q2.STREAMING_NOT_ALLOWED="Bu video ba\u015fka bir cihazda sabitlendi\u011fi i\u00e7in oynatmaya izin verilmiyor.",
Q2.RETRYABLE_ERROR="Ge\u00e7ici bir sunucu hatas\u0131 olu\u015ftu. L\u00fctfen daha sonra tekrar deneyin.",Q2.TOO_MANY_REQUESTS="Bu videoyu izlemek i\u00e7in l\u00fctfen giri\u015f yap\u0131n.",Q2.TOO_MANY_REQUESTS_WITH_LINK="Bu videoyu YouTube'da izlemek i\u00e7in l\u00fctfen $BEGIN_LINKburay\u0131 t\u0131klay\u0131n$END_LINK.",Q2.TOO_MANY_STREAMS_PER_USER="Ayn\u0131 hesaba ait \u00e7ok fazla video oynat\u0131ld\u0131\u011f\u0131 i\u00e7in oynatma durduruldu.",Q2.TOO_MANY_STREAMS_PER_ENTITLEMENT=
"Bu video \u00e7ok fazla cihazda oynat\u0131ld\u0131\u011f\u0131 i\u00e7in oynatma durduruldu.",Q2.UNSUPPORTED_DEVICE="Oynatma bu cihazda desteklenmiyor.",Q2.VIDEO_FORBIDDEN="Bu videoya eri\u015fim yasakland\u0131.",Q2.VIDEO_NOT_FOUND="Bu video bulunam\u0131yor.",Q2);
XCa={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 tmb;var umb=g.pc(),vmb=umb.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!vmb||2>vmb.length)tmb=void 0;else{var wmb=umb.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);tmb=wmb&&6===wmb.length?Number(wmb[5].replace("_",".")):0}var PS=tmb,JV=0<=PS;g.y(g.vK,nC);g.vK.prototype.T=function(a,b,c,d,e){return nC.prototype.T.call(this,a,b,c,d,e)};var R2={},IQa=(R2.FAIRPLAY="fairplay",R2.PLAYREADY="playready",R2.WIDEVINE="widevine",R2.CLEARKEY=null,R2.FLASHACCESS=null,R2.UNKNOWN=null,R2.WIDEVINE_CLASSIC=null,R2);wK.prototype.isMultiChannelAudio=function(){return 2<this.numChannels};var S2={},yP=(S2.WIDTH={name:"width",video:!0,valid:640,Kn:99999},S2.HEIGHT={name:"height",video:!0,valid:360,Kn:99999},S2.FRAMERATE={name:"framerate",video:!0,valid:30,Kn:9999},S2.BITRATE={name:"bitrate",video:!0,valid:3E5,Kn:2E9},S2.EOTF={name:"eotf",video:!0,valid:"bt709",Kn:"catavision"},S2.CHANNELS={name:"channels",video:!1,valid:2,Kn:99},S2.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Kn:"invalidformat"},S2.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false",
Kn:"nope"},S2.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Kn:"av99.0.05M.08"},S2.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Kn:"invalid"},S2);var xmb=["h","H"],ymb=["9","("],zmb=["9h","(h"],Amb=["8","*"],Bmb=["a","A"],Cmb=["o","O"],Dmb=["m","M"],Emb=["mac3","MAC3"],Fmb=["meac3","MEAC3"],T2={},dRa=(T2.h=xmb,T2.H=xmb,T2["9"]=ymb,T2["("]=ymb,T2["9h"]=zmb,T2["(h"]=zmb,T2["8"]=Amb,T2["*"]=Amb,T2.a=Bmb,T2.A=Bmb,T2.o=Cmb,T2.O=Cmb,T2.m=Dmb,T2.M=Dmb,T2.mac3=Emb,T2.MAC3=Emb,T2.meac3=Fmb,T2.MEAC3=Fmb,T2),Gmb=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),uOa=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var U2={},BK=(U2["0"]="f",U2["160"]="h",U2["133"]="h",U2["134"]="h",U2["135"]="h",U2["136"]="h",U2["137"]="h",U2["264"]="h",U2["266"]="h",U2["138"]="h",U2["298"]="h",U2["299"]="h",U2["304"]="h",U2["305"]="h",U2["214"]="h",U2["216"]="h",U2["374"]="h",U2["375"]="h",U2["140"]="a",U2["141"]="ah",U2["327"]="sa",U2["258"]="m",U2["380"]="mac3",U2["328"]="meac3",U2["161"]="H",U2["142"]="H",U2["143"]="H",U2["144"]="H",U2["222"]="H",U2["223"]="H",U2["145"]="H",U2["224"]="H",U2["225"]="H",U2["146"]="H",U2["226"]=
"H",U2["227"]="H",U2["147"]="H",U2["384"]="H",U2["376"]="H",U2["385"]="H",U2["377"]="H",U2["149"]="A",U2["261"]="M",U2["381"]="MAC3",U2["329"]="MEAC3",U2["598"]="9",U2["278"]="9",U2["242"]="9",U2["243"]="9",U2["244"]="9",U2["775"]="9",U2["776"]="9",U2["777"]="9",U2["778"]="9",U2["779"]="9",U2["780"]="9",U2["781"]="9",U2["782"]="9",U2["783"]="9",U2["247"]="9",U2["248"]="9",U2["353"]="9",U2["355"]="9",U2["356"]="9",U2["271"]="9",U2["577"]="9",U2["313"]="9",U2["579"]="9",U2["272"]="9",U2["302"]="9",
U2["303"]="9",U2["407"]="9",U2["408"]="9",U2["308"]="9",U2["315"]="9",U2["330"]="9h",U2["331"]="9h",U2["332"]="9h",U2["333"]="9h",U2["334"]="9h",U2["335"]="9h",U2["336"]="9h",U2["337"]="9h",U2["338"]="so",U2["600"]="o",U2["250"]="o",U2["251"]="o",U2["194"]="*",U2["195"]="*",U2["220"]="*",U2["221"]="*",U2["196"]="*",U2["197"]="*",U2["279"]="(",U2["280"]="(",U2["317"]="(",U2["318"]="(",U2["273"]="(",U2["274"]="(",U2["357"]="(",U2["358"]="(",U2["275"]="(",U2["359"]="(",U2["360"]="(",U2["276"]="(",U2["583"]=
"(",U2["584"]="(",U2["314"]="(",U2["585"]="(",U2["561"]="(",U2["277"]="(",U2["361"]="(h",U2["362"]="(h",U2["363"]="(h",U2["364"]="(h",U2["365"]="(h",U2["366"]="(h",U2["591"]="(h",U2["592"]="(h",U2["367"]="(h",U2["586"]="(h",U2["587"]="(h",U2["368"]="(h",U2["588"]="(h",U2["562"]="(h",U2["409"]="(",U2["410"]="(",U2["411"]="(",U2["412"]="(",U2["557"]="(",U2["558"]="(",U2["394"]="1",U2["395"]="1",U2["396"]="1",U2["397"]="1",U2["398"]="1",U2["399"]="1",U2["400"]="1",U2["401"]="1",U2["571"]="1",U2["402"]=
"1",U2["694"]="1h",U2["695"]="1h",U2["696"]="1h",U2["697"]="1h",U2["698"]="1h",U2["699"]="1h",U2["700"]="1h",U2["701"]="1h",U2["702"]="1h",U2["703"]="1h",U2["386"]="3",U2["387"]="w",U2["406"]="6",U2["645"]="(",U2["646"]="(",U2["647"]="(",U2["648"]="(",U2["649"]="(",U2["650"]="(",U2["651"]="(",U2["652"]="(",U2["653"]="(",U2["654"]="(",U2["655"]="(",U2["656"]="(",U2["657"]="(",U2["658"]="(",U2["659"]="(",U2["660"]="(",U2["661"]="(",U2["662"]="(",U2["663"]="(",U2["664"]="(",U2["665"]="(",U2["666"]="(",
U2["667"]="(",U2["668"]="(",U2["669"]="(",U2["670"]="(",U2["671"]="(",U2["672"]="(",U2["673"]="(",U2["674"]="(h",U2["675"]="(h",U2["676"]="(h",U2["677"]="(h",U2["678"]="(h",U2["679"]="(h",U2["680"]="(h",U2["681"]="(h",U2["682"]="(h",U2["683"]="(h",U2["684"]="(h",U2["685"]="(h",U2["686"]="(h",U2["687"]="(h",U2["688"]="A",U2["689"]="A",U2["690"]="A",U2["691"]="MEAC3",U2["773"]="i",U2);var V2={},FQa=(V2.STEREO_LAYOUT_UNKNOWN=0,V2.STEREO_LAYOUT_LEFT_RIGHT=1,V2.STEREO_LAYOUT_TOP_BOTTOM=2,V2);var W2,mP;W2={};g.xK=(W2.auto=0,W2.tiny=144,W2.light=144,W2.small=240,W2.medium=360,W2.large=480,W2.hd720=720,W2.hd1080=1080,W2.hd1440=1440,W2.hd2160=2160,W2.hd2880=2880,W2.highres=4320,W2);mP={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var zK="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");yK.prototype.isHdr=function(){return"smpte2084"===this.B||"arib-std-b67"===this.B};CK.prototype.Pe=function(){return 2===this.containerType};
CK.prototype.isEncrypted=function(){return!!this.le};
CK.prototype.yh=function(){return!!this.audio};
CK.prototype.yg=function(){return!!this.video};g.y(VK,g.wF);g.k=VK.prototype;g.k.appendBuffer=function(a,b,c){if(this.Sd.BD()!==this.appendWindowStart+this.start||this.Sd.oI()!==this.appendWindowEnd+this.start||this.Sd.Lc()!==this.timestampOffset+this.start)this.Sd.supports(1),this.Sd.VR(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Sd.aq(this.timestampOffset+this.start);this.Sd.appendBuffer(a,b,c)};
g.k.abort=function(){this.Sd.abort()};
g.k.remove=function(a,b){this.Sd.remove(a+this.start,b+this.start)};
g.k.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)};
g.k.clear=function(){this.Sd.clear()};
g.k.VR=function(a,b){this.appendWindowStart=a;this.appendWindowEnd=b};
g.k.NO=function(){return this.timestampOffset+this.start};
g.k.BD=function(){return this.appendWindowStart};
g.k.oI=function(){return this.appendWindowEnd};
g.k.aq=function(a){this.timestampOffset=a};
g.k.Lc=function(){return this.timestampOffset};
g.k.Ke=function(a){a=this.Sd.Ke(void 0===a?!1:a);return UK(a,this.start,this.end)};
g.k.Xj=function(){return this.Sd.Xj()};
g.k.NI=function(){return this.Sd.NI()};
g.k.qm=function(){return this.Sd.qm()};
g.k.tP=function(){return this.Sd.tP()};
g.k.Ty=function(){this.Sd.Ty()};
g.k.uw=function(a){return this.Sd.uw(a)};
g.k.Kv=function(){return this.Sd.Kv()};
g.k.vI=function(){return this.Sd.vI()};
g.k.yL=function(a,b){this.Sd.yL(a,b)};
g.k.supports=function(a){return this.Sd.supports(a)};
g.k.xI=function(){return this.Sd.xI()};
g.k.isView=function(){return!0};
g.k.DH=function(){return this.Sd.DH()?this.isActive:!1};
g.k.isLocked=function(){return this.bT&&!this.isActive};
g.k.jc=function(a){a=this.Sd.jc(a);a.vw=this.start+"-"+this.end;return a};
g.k.wI=function(){return this.Sd.wI()};
g.k.MD=function(){return this.Sd.MD()};
g.k.GO=function(){return this.Sd.GO()};
g.k.va=function(){yF(this.Sd,this.KX);g.wF.prototype.va.call(this)};
g.k.l0=function(a){this.isActive=a;this.bT=this.bT||this.isActive};var fY=!1;g.y(WK,g.wF);g.k=WK.prototype;g.k.appendBuffer=function(a,b,c){this.ZC=!1;c&&(this.AE=c);if(a.length){var d;(null==(d=this.Sb)?0:d.appendBuffer)?this.Sb.appendBuffer(a):this.Sb?this.Sb.append(a):this.qg&&this.qg.webkitSourceAppend(this.id,a)}b&&(b.isEncrypted()&&(this.JP=this.AE),3===b.type&&(this.Lf=b),this.zE.push(b.Dd()),4<this.zE.length&&this.zE.shift());this.nB&&(2<=this.nB.length||1048576<a.length?delete this.nB:this.nB.push(a))};
g.k.abort=function(){try{this.Sb?this.Sb.abort():this.qg&&this.qg.webkitSourceAbort(this.id)}catch(a){N3a&&g.dF(new g.AC("Error while abort the source buffer: "+a.name+", "+a.message))}this.AE=this.Lf=null};
g.k.remove=function(a,b,c){this.ZC=!1;var d;if(null==(d=this.Sb)?0:d.remove)c&&c({b:OK(this.Ke()),s:a,e:b}),this.Sb.remove(a,b)};
g.k.removeAll=function(){this.remove(this.BD(),this.oI())};
g.k.clear=function(){this.qm()||(this.abort(),this.removeAll(),this.JP=this.AE=this.Lf=null,this.appendWindowStart=this.timestampOffset=0,this.lN=NK([],[]),this.ZC=!1,this.nB=lDa?[]:void 0,this.IH=!0)};
g.k.BD=function(){if(fY&&this.yg)return this.appendWindowStart;var a;return(null==(a=this.Sb)?void 0:a.appendWindowStart)||0};
g.k.oI=function(){var a;return(null==(a=this.Sb)?void 0:a.appendWindowEnd)||0};
g.k.VR=function(a,b){this.Sb&&(fY&&this.yg?(this.appendWindowStart=a,this.Sb.appendWindowEnd=b):a>this.BD()?(this.Sb.appendWindowEnd=b,this.Sb.appendWindowStart=a):(this.Sb.appendWindowStart=a,this.Sb.appendWindowEnd=b))};
g.k.NO=function(){return this.timestampOffset};
g.k.aq=function(a){fY?this.timestampOffset=a:this.supports(1)&&(this.Sb.timestampOffset=a)};
g.k.Lc=function(){return fY?this.timestampOffset:this.supports(1)?this.Sb.timestampOffset:0};
g.k.Ke=function(a){if(void 0===a?0:a)return this.ZC||this.Xj()||(this.lN=this.Ke(!1),this.ZC=!0),this.lN;try{return this.Sb?this.Sb.buffered:this.qg?this.qg.webkitSourceBuffered(this.id):NK([0],[Infinity])}catch(b){return NK([],[])}};
g.k.Xj=function(){var a;return(null==(a=this.Sb)?void 0:a.updating)||!1};
g.k.qm=function(){return this.IH};
g.k.tP=function(){return!this.IH&&this.Xj()};
g.k.Ty=function(){this.IH=!1};
g.k.uw=function(a){var b=null==a?void 0:a.qb;a=null==a?void 0:a.containerType;return!b&&!a||b===this.qb&&a===this.containerType};
g.k.Kv=function(){return this.AE};
g.k.vI=function(){return this.JP};
g.k.yL=function(a,b){this.containerType!==a&&(this.supports(4),XK()&&this.Sb.changeType(b));this.containerType=a};
g.k.xI=function(){return this.Lf};
g.k.isView=function(){return!1};
g.k.supports=function(a){switch(a){case 1:var b;return void 0!==(null==(b=this.Sb)?void 0:b.timestampOffset);case 0:var c;return!(null==(c=this.Sb)||!c.appendBuffer);case 2:var d;return!(null==(d=this.Sb)||!d.remove);case 3:var e,f;return!!((null==(e=this.Sb)?0:e.addEventListener)&&(null==(f=this.Sb)?0:f.removeEventListener));case 4:return!(!this.Sb||!this.Sb.changeType);default:return!1}};
g.k.DH=function(){return!this.Xj()};
g.k.isLocked=function(){return!1};
g.k.jc=function(a){a.to=this.Lc();a.up=this.Xj();var b,c=(null==(b=this.Sb)?void 0:b.appendWindowStart)||0,d;b=(null==(d=this.Sb)?void 0:d.appendWindowEnd)||Infinity;a.aw=c.toFixed(3)+"-"+b.toFixed(3);try{a.bu=OK(this.Ke())}catch(e){}return a};
g.k.NI=function(){var a;return(null==(a=this.Sb)?void 0:a.writeHead)||0};
g.k.wI=function(){for(var a={},b=0;b<this.zE.length;b++)a["s"+b]=this.zE[b];return a};
g.k.va=function(){this.supports(3)&&(this.Sb.removeEventListener("updateend",this.Fd),this.Sb.removeEventListener("error",this.Fd));g.wF.prototype.va.call(this)};
g.k.MD=function(){return this.containerType};
g.k.GO=function(){return this.nB};
var lDa=!1,N3a=!1;YK.prototype.dispose=function(){if(!this.Ma){if(this.j)try{URL.revokeObjectURL(this.resource)}catch(a){}this.B=!0}};
YK.prototype.Ma=function(){return this.B};
YK.prototype.toString=function(){return"MediaResource {"+this.resource+"}"};g.y(ZK,g.I);g.k=ZK.prototype;g.k.getDuration=function(){var a;return(null==(a=this.Qa)?void 0:a.duration)||this.ra};
g.k.jl=function(a){try{this.Qa?this.Qa.duration=a:(this.ra=a,this.qg.webkitSourceSetDuration(a))}catch(b){}};
g.k.Jg=function(){try{return"closed"===eL(this)}catch(a){return!0}};
g.k.Xj=function(){return!!(this.j&&this.j.Xj()||this.B&&this.B.Xj())};
g.k.isAsync=function(){return this.j?!!this.j.supports(0):qDa()};
g.k.bba=function(){!this.Ma()&&$K(this)&&this.callback&&(this.callback(this),this.callback=null)};
g.k.aba=function(){this.dispose()};
g.k.B4=function(a){if(aL&&!this.G&&a.qm()&&0===a.Ke().length){var b;bL(this.mediaElement,{l:"mswoue",sr:null==(b=this.mediaElement.oa)?void 0:cL(b)},!1);a.Ty();this.qm()||(this.mediaElement.bJ=!0,this.mediaElement.setCurrentTime(0))}};
g.k.nN=function(){return!!this.j.supports(2)};
g.k.clear=function(){nDa(this,function(){});
var a;null==(a=this.j)||a.clear();var b;null==(b=this.B)||b.clear()};
g.k.qm=function(){var a,b;return(null==(a=this.B)?void 0:a.qm())||(null==(b=this.j)?void 0:b.qm())};
g.k.uw=function(a,b){return!!this.j&&!!this.B&&this.j.uw(b)&&this.B.uw(a)};
var aL=!1;fL.prototype.then=function(a,b){return this.promise.then(a,b)};
fL.prototype.resolve=function(a){this.JR(a)};
fL.prototype.reject=function(a){this.wR(a)};g.y(gL,g.I);g.k=gL.prototype;g.k.fH=function(){return this.resource};
g.k.activate=function(a){var b="";a&&(yDa(this,a),b=a.resource);if(!this.Gf()||b)b&&this.Gf()!==b&&(this.hH(b),delete this.B,this.C&&(this.C.reject(),delete this.C),!window.MediaSource&&window.ManagedMediaSource&&this.XR(!(null==a||!a.j))),a&&a.j||this.load(),this.N||(this.addEventListener("volumechange",this.cW),this.N=!0)};
g.k.Nq=function(a,b){if(this.B)if(M3a&&dL(this.B)&&!this.B.uw(a,b)){var c;bL(this,{l:"megms",sr:null==(c=this.oa)?void 0:cL(c)});wDa(this);this.stopVideo()}else return this.Qa=this.B,this.B=void 0,this.Qa;a=window.MediaSource?new ZK(this,new window.MediaSource,!1):window.ManagedMediaSource?new ZK(this,new window.ManagedMediaSource,!1):window.WebKitMediaSource?new ZK(this,new window.WebKitMediaSource,!1):new ZK(this,void 0,!1);this.activate(a.C);this.Qa=a;this.bJ=!1;return a};
g.k.playVideo=function(){var a=this;this.isEnded()&&this.seekTo(0);!this.Gf()&&this.resource&&(g.dF(Error("playVideo without src")),this.hH(this.resource.resource),this.resource.j||this.load());var b=this.play(),c;(null==(c=this.oa)?0:c.L("html5_remove_ios_7_hack_force_play"))||!b&&JV&&7<=(PS||0)&&ZCa(this,function(){g.wB(function(){xDa(a,a.getCurrentTime(),0)},500)});
return b};
g.k.seekTo=function(a){0<this.Fk()&&(JV&&4>PS&&(a=Math.max(.1,a)),this.setCurrentTime(a))};
g.k.uo=function(){if(!this.B&&this.Qa)if(this.Qa.K)try{var a;bL(this,{l:"mer",sr:null==(a=this.oa)?void 0:cL(a),rs:eL(this.Qa)});this.Qa.clear();this.B=this.Qa;this.Qa=void 0}catch(b){a=new g.AC("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.dF(a),this.stopVideo()}else this.stopVideo()};
g.k.stopVideo=function(){var a=this;if(!this.B){var b;null==(b=this.Qa)||tDa(b);if(K3a){if(!this.C){var c=new fL;c.then(void 0,function(){});
this.C=c;L3a&&this.pause();g.wB(function(){a.C===c&&(BDa(a),c.resolve())},200)}}else BDa(this)}};
g.k.Az=function(){var a=this.Rh();return 0<SK(a)&&this.getDuration()?RK(a,this.getCurrentTime()):0};
g.k.Ov=function(){var a=this.getDuration();return Infinity===a?1:a?this.Az()/a:0};
g.k.jc=function(){try{var a=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:OK(this.Rv(),",",3),vbu:OK(this.Rh()),vpa:""+ +this.isPaused(),vsk:""+ +this.Uf(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.Fk(),vns:""+this.AI(),vec:""+this.Xg(),vemsg:this.wf(),vvol:""+this.getVolume(),vdom:""+ +this.uP(),vsrc:""+ +!!this.Gf(),vw:""+a.width,vh:""+a.height}}catch(b){return{}}};
g.k.hasError=function(){return 0<this.Xg()};
g.k.addEventListener=function(a,b){this.D.listen(a,b,!1,this);this.YN(a)};
g.k.removeEventListener=function(a,b){this.D.Pc(a,b,!1,this)};
g.k.dispatchEvent=function(a){if(this.C&&"pause"===a.type)return!1;if(M3a){var b,c=(null==(b=a.j)?void 0:b.timeStamp)||Infinity;b=c>performance.now()?c-Date.now()+performance.now():c;c=this.B||this.Qa;if((null==c?0:c.qm())||b<=((null==c?void 0:c.N)||0)){var d;bL(this,{l:"mede",sr:null==(d=this.oa)?void 0:cL(d),et:a.type});return!1}if(this.bJ)return bL(this,{l:"medes",et:a.type}),c&&"seeking"===a.type&&(c.N=performance.now(),this.bJ=!1),!1}return this.D.dispatchEvent(a)};
g.k.UN=function(){this.K=!1};
g.k.RN=function(){this.K=!0;this.tB(!0)};
g.k.cW=function(){this.K&&!this.zI()&&this.tB(!0)};
g.k.va=function(){this.N&&this.removeEventListener("volumechange",this.cW);K3a&&BDa(this);g.I.prototype.va.call(this)};
var K3a=!1,L3a=!1,M3a=!1,ADa=!1;g.k=g.iL.prototype;g.k.isPaused=function(){return g.mG(this,4)};
g.k.isPlaying=function(){return g.mG(this,8)&&!g.mG(this,512)&&!g.mG(this,64)&&!g.mG(this,2)};
g.k.isCued=function(){return g.mG(this,64)&&!g.mG(this,8)&&!g.mG(this,4)};
g.k.isError=function(){return g.mG(this,128)};
g.k.isSuspended=function(){return g.mG(this,512)};
g.k.sE=function(){return g.mG(this,64)&&g.mG(this,4)};
g.k.toString=function(){return"PSt."+this.state.toString(16)};
var X2={},Y2=(X2.BUFFERING="buffering-mode",X2.CUED="cued-mode",X2.ENDED="ended-mode",X2.PAUSED="paused-mode",X2.PLAYING="playing-mode",X2.SEEKING="seeking-mode",X2.UNSTARTED="unstarted-mode",X2);g.y(tL,g.I);g.k=tL.prototype;g.k.Zb=function(){return this.slot};
g.k.ob=function(){return this.layout};
g.k.init=function(){var a=TI(this.layout.Aa,"metadata_type_video_length_seconds"),b=TI(this.layout.Aa,"metadata_type_active_view_traffic_type");PJ(this.layout.Bb)&&v1(this.xb.get(),this.layout.layoutId,b,a,this);pgb(this.Oa.get(),this);this.ew()};
g.k.release=function(){PJ(this.layout.Bb)&&w1(this.xb.get(),this.layout.layoutId);qgb(this.Oa.get(),this);this.nx()};
g.k.zr=function(){};
g.k.Dr=function(){};
g.k.startRendering=function(a){var b=sL(this),c=b.layoutId,d=b.Ep;if(b.qw){var e={};mK(b.Nf,"slse",(e.ec=c,e.is=d,e.ctp=lK(c),e))}a.layoutId!==this.layout.layoutId?this.HB.nf(this.slot,a,new QI("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.Mc="rendering_start_requested",this.DF(-1),this.Cx(a),this.rd()||
this.tH(!1))};
g.k.vc=function(a,b){if(b.layoutId===this.layout.layoutId){this.Mc="rendering";this.vE=this.Ha.get().isMuted()||0===this.Ha.get().getVolume();this.Vb("impression");this.Vb("start");if(this.Ha.get().isMuted()){this.Rr("mute");var c;a=(null==(c=rL(this))?void 0:c.muteCommands)||[];sJ(this.Mb.get(),a,this.layout.layoutId)}if(this.Ha.get().isFullscreen()){this.Hh("fullscreen");var d;c=(null==(d=rL(this))?void 0:d.fullscreenCommands)||[];sJ(this.Mb.get(),c,this.layout.layoutId)}this.rd()||(d=this.Ic.get(),
d.D&&!d.B&&(d.G=!1,d.B=!0,"ad_to_video"!==d.actionType&&(d.J.L("html5_no_video_to_ad_on_preroll")?DH("pbs",void 0,d.actionType):CH("pbs",void 0,d.actionType),g.AB("finalize_all_timelines")&&$ya(d.actionType))));this.DF(1);this.IZ(b);var e;b=(null==(e=rL(this))?void 0:e.impressionCommands)||[];sJ(this.Mb.get(),b,this.layout.layoutId)}};
g.k.DA=function(a,b,c){this.Yu={GL:3,LG:"load_timeout"===a?402:400,errorMessage:b.message};this.Vb("error");var d;a=(null==(d=rL(this))?void 0:d.errorCommands)||[];sJ(this.Mb.get(),a,this.layout.layoutId);this.rd()||this.HB.nf(this.slot,this.layout,b,c)};
g.k.QI=function(){this.rd()&&kG("Unexpected ad player in SSAP",this.slot,this.layout);this.NH()};
g.k.JX=function(){var a=sL(this),b=a.layoutId,c=a.Ep;if(a.qw){var d={};mK(a.Nf,"slhe",(d.xc=b,d.is=c,d.ctp=lK(b),d))}this.NH()};
g.k.BX=function(){if("rendering"===this.Mc){this.Rr("pause");var a,b=(null==(a=rL(this))?void 0:a.pauseCommands)||[];sJ(this.Mb.get(),b,this.layout.layoutId);this.DF(2)}};
g.k.CX=function(){if("rendering"===this.Mc){this.Rr("resume");var a,b=(null==(a=rL(this))?void 0:a.resumeCommands)||[];sJ(this.Mb.get(),b,this.layout.layoutId)}};
g.k.Ez=function(a,b){b=void 0===b?!1:b;if("rendering"===this.Mc){VJ(this.Xa,1E3*a,b);this.vE||VJ(this.Xa,1E3*a,void 0===b?!1:b);var c=this.zz();if(c){c/=1E3;(a>=.25*c||b)&&this.Vb("first_quartile");(a>=.5*c||b)&&this.Vb("midpoint");(a>=.75*c||b)&&this.Vb("third_quartile");c=this.Yba;a*=1E3;b=IDa(this)?b:!1;b=void 0===b?!1:b;var d=c.G();if(d){for(;c.D<c.B.length;){var e=c.B[c.D];if(e.adVideoOffset.percent*d<=a)c.Mb.get().executeCommand(e.command,c.layoutId),c.D++;else break}for(;c.C<c.j.length;)if(d=
c.j[c.C],Number(d.adVideoOffset.milliseconds)<=a||b)c.Mb.get().executeCommand(d.command,c.layoutId),c.C++;else break}}}};
g.k.uh=function(){var a;return(null==(a=this.Ta.get().Me(1))?void 0:a.clientPlaybackNonce)||""};
g.k.nI=function(){var a;return(null==(a=this.Ta.get().Me(2))?void 0:a.clientPlaybackNonce)||""};
g.k.Qe=function(a,b){if(a.layoutId!==this.layout.layoutId)this.HB.nf(this.slot,a,new QI("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED");else if("rendering_stop_requested"!==this.Mc){this.Mc="rendering_stop_requested";this.layoutExitReason=b;switch(b){case "normal":this.Vb("complete");break;case "skipped":this.Vb("skip");
break;case "abandoned":WJ(this.Xa,"impression")&&this.Vb("abandon")}this.Dx(a,b)}};
g.k.Oc=function(a,b,c){if(b.layoutId===this.layout.layoutId)switch(this.Mc="not_rendering",this.layoutExitReason=void 0,this.rd()||(a="normal"!==c||this.position+1===this.U0)&&this.tH(a),this.YJ(b,c),this.DF(0),c){case "abandoned":if(WJ(this.Xa,"impression")){var d,e=(null==(d=rL(this))?void 0:d.abandonCommands)||[];sJ(this.Mb.get(),e,this.layout.layoutId)}break;case "normal":d=(null==(e=rL(this))?void 0:e.completeCommands)||[];sJ(this.Mb.get(),d,this.layout.layoutId);break;case "skipped":var f;d=
(null==(f=rL(this))?void 0:f.skipCommands)||[];sJ(this.Mb.get(),d,this.layout.layoutId)}};
g.k.Mv=function(){return this.layout.layoutId};
g.k.jO=function(){return this.Yu};
g.k.Ei=function(a){if("not_rendering"!==this.Mc){this.X_||(a=new g.lG(a.state,new g.iL),this.X_=!0);if(!this.rd()){var b=2===this.Ha.get().getPresentingPlayerType();if("rendering_start_requested"===this.Mc){b&&NCa(a)&&this.CN();return}if(!b){this.QI();return}if(g.oG(a,2)){this.EX();return}}NCa(a)?this.DF(1):g.oG(a,4)&&!g.oG(a,2)&&this.BX();0>nG(a,4)&&!(0>nG(a,2))&&this.CX()}};
g.k.Rw=function(){if("rendering"===this.Mc){this.Xa.Vb("active_view_measurable");var a,b=(null==(a=rL(this))?void 0:a.activeViewMeasurableCommands)||[];sJ(this.Mb.get(),b,this.layout.layoutId)}};
g.k.Qw=function(){if("rendering"===this.Mc){this.Xa.Vb("active_view_fully_viewable_audible_half_duration");var a,b=(null==(a=rL(this))?void 0:a.activeViewFullyViewableAudibleHalfDurationCommands)||[];sJ(this.Mb.get(),b,this.layout.layoutId)}};
g.k.Sw=function(){if("rendering"===this.Mc){this.Xa.Vb("active_view_viewable");var a,b=(null==(a=rL(this))?void 0:a.activeViewViewableCommands)||[];sJ(this.Mb.get(),b,this.layout.layoutId)}};
g.k.Ow=function(){if("rendering"===this.Mc){this.Xa.Vb("audio_audible");var a,b=(null==(a=rL(this))?void 0:a.activeViewAudioAudibleCommands)||[];sJ(this.Mb.get(),b,this.layout.layoutId)}};
g.k.Pw=function(){if("rendering"===this.Mc){this.Xa.Vb("audio_measurable");var a,b=(null==(a=rL(this))?void 0:a.activeViewAudioMeasurableCommands)||[];sJ(this.Mb.get(),b,this.layout.layoutId)}};
g.k.tH=function(a){this.Ic.get().tH(TI(this.layout.Aa,"metadata_type_ad_placement_config").kind,a,this.position,this.U0,!1)};
g.k.onFullscreenToggled=function(a){if("rendering"===this.Mc)if(a){this.Hh("fullscreen");var b,c=(null==(b=rL(this))?void 0:b.fullscreenCommands)||[];sJ(this.Mb.get(),c,this.layout.layoutId)}else this.Hh("end_fullscreen"),b=(null==(c=rL(this))?void 0:c.endFullscreenCommands)||[],sJ(this.Mb.get(),b,this.layout.layoutId)};
g.k.onVolumeChange=function(){if("rendering"===this.Mc)if(this.Ha.get().isMuted()){this.Rr("mute");var a,b=(null==(a=rL(this))?void 0:a.muteCommands)||[];sJ(this.Mb.get(),b,this.layout.layoutId)}else this.Rr("unmute"),a=(null==(b=rL(this))?void 0:b.unmuteCommands)||[],sJ(this.Mb.get(),a,this.layout.layoutId)};
g.k.hh=function(){};
g.k.vj=function(){};
g.k.Ui=function(){};
g.k.uj=function(){};
g.k.xj=function(){};
g.k.Hh=function(a){this.Xa.Hh(a,!this.vE)};
g.k.Vb=function(a){this.Xa.Vb(a,!this.vE)};
g.k.Rr=function(a){this.Xa.Rr(a,!this.vE)};
g.k.rd=function(){var a=TI(this.slot.Aa,"metadata_type_eligible_for_ssap");return void 0===a?(kG("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Ca.get().rd(a)};g.y(JDa,tL);g.k=JDa.prototype;g.k.ew=function(){};
g.k.nx=function(){var a=this.Oa.get();a.AG===this&&(a.AG=null);this.kf.stop()};
g.k.Cx=function(){this.rd()?this.Oa.get().AG=this:(GDa(this),Agb(this.Ha.get()),this.Oa.get().AG=this,zH("pbp")||zH("pbs")||DH("pbp"),zH("pbp","watch")||zH("pbs","watch")||DH("pbp",void 0,"watch"));this.CN()};
g.k.IZ=function(a){if(NM(this.Ca.get(),"h5_enable_ad_mbs")&&!this.rd()){this.Ic.get();var b=TI(a.Aa,"metadata_type_ad_placement_config").kind,c=0===this.position;a=TI(a.Aa,"metadata_type_linked_in_player_layout_type");a={adBreakType:uL(b),adType:PDa(a)};var d=void 0;c?"AD_PLACEMENT_KIND_START"!==b&&(d="video_to_ad"):d="ad_to_ad";CH("ad_mbs",void 0,d);g.AH(a,d)}MDa(this)};
g.k.EX=function(){};
g.k.zr=function(){this.kf.stop();tL.prototype.BX.call(this)};
g.k.Dr=function(){MDa(this);tL.prototype.CX.call(this)};
g.k.zz=function(){return TI(this.ob().Aa,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")};
g.k.Dx=function(){this.kf.stop()};
g.k.Nc=function(){var a=Date.now(),b=a-this.LP;this.LP=a;this.Zi+=b;this.Zi>=this.zz()?(this.Zi=this.zz(),this.Ez(this.Zi/1E3,!0),LDa(this,this.Zi),this.rd()?this.HB.TF(this.Zb(),this.ob(),"normal"):this.NH()):(this.Ez(this.Zi/1E3),LDa(this,this.Zi))};
g.k.YJ=function(){};
g.k.Di=function(){};g.y(yL,tL);g.k=yL.prototype;g.k.ew=function(){TI(this.ob().Aa,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=TI(this.ob().Aa,"metadata_type_shrunken_player_bytes_config")};
g.k.nx=function(){TI(this.ob().Aa,"metadata_type_player_bytes_callback_ref").current=null;this.Cs&&this.Qc.get().removeCueRange(this.Cs);this.Cs=void 0;var a;null==(a=this.GJ)||a.dispose();this.wA&&this.wA.dispose()};
g.k.Cx=function(a){var b=wL(this.Ca.get()),c=xL(this.Ca.get());if(b&&c&&!this.rd()){c=TI(a.Aa,"metadata_type_preload_player_vars");var d=g.YI(this.Ca.get().J.U().experiments,"html5_preload_wait_time_secs");c&&this.wA&&this.wA.start(1E3*d)}c=TI(a.Aa,"metadata_type_ad_video_id");d=TI(a.Aa,"metadata_type_legacy_info_card_vast_extension");c&&d&&this.hg.get().J.U().Na.add(c,{FH:d});(c=TI(a.Aa,"metadata_type_sodar_extension_data"))&&hBa(this.tf.get(),c);Bgb(this.Ha.get(),!1);if(this.rd())this.CN();else{GDa(this);
b?(c=this.Md.get(),a=TI(a.Aa,"metadata_type_player_vars"),c.J.loadVideoByPlayerVars(a,!1,2)):Kgb(this.Md.get(),TI(a.Aa,"metadata_type_player_vars"));var e;null==(e=this.GJ)||e.start();b||this.Md.get().J.playVideo(2)}};
g.k.IZ=function(){var a;null==(a=this.GJ)||a.stop();this.Cs="adcompletioncuerange:"+this.ob().layoutId;this.Qc.get().addCueRange(this.Cs,0x7ffffffffffff,0x8000000000000,!1,this,2,2);YM(this.context.Ca.get())&&(a={},this.context.Aq.Am("mccr",(a.cid=this.Cs,a)));(this.adCpn=this.nI())||kG("Media layout confirmed started, but ad CPN not set.");this.qd.get().Yt("onAdStart",this.adCpn);this.vV=Date.now()};
g.k.EX=function(){this.NH()};
g.k.zz=function(){var a;return null==(a=this.Ta.get().Me(2))?void 0:a.Kba};
g.k.MK=function(){this.Xa.Hh("clickthrough")};
g.k.Dx=function(){var a;null==(a=this.GJ)||a.stop();this.wA&&this.wA.stop();Bgb(this.Ha.get(),!0);var b;(null==(b=this.shrunkenPlayerBytesConfig)?0:b.shouldRequestShrunkenPlayerBytes)&&this.Ha.get().yB(!1)};
g.k.onCueRangeEnter=function(a){a!==this.Cs?kG("Received CueRangeEnter signal for unknown layout.",this.Zb(),this.ob(),{cueRangeId:a}):(this.Qc.get().removeCueRange(this.Cs),this.Cs=void 0,a=TI(this.ob().Aa,"metadata_type_video_length_seconds"),this.Ez(a,!0),this.Vb("complete"))};
g.k.YJ=function(a,b){"abandoned"!==b&&this.qd.get().Yt("onAdComplete");this.qd.get().Yt("onAdEnd",this.adCpn)};
g.k.onCueRangeExit=function(){};
g.k.Di=function(a){"rendering"===this.Mc&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&a>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Ha.get().yB(!0),this.Ez(a))};
g.k.Ez=function(a,b){tL.prototype.Ez.call(this,a,void 0===b?!1:b);if(5<=a&&!this.PX){b=Date.now()-this.vV;a*=1E3;var c={contentCpn:this.uh(),adCpn:this.nI()},d=1E3>b?0:1;Lxa(d,"i.k_",{metadata:c,I5:b,J5:Math.floor(a/1E3)});bB("IKDSTAT",d);0===d&&this.Ca.get().J.U().experiments.jb("enable_ips_gating")&&this.qd.get().Yt("onAbnormalityDetected");this.PX=!0}};g.y(RDa,g.I);g.k=RDa.prototype;g.k.init=function(){var a=TI(this.layout.Aa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ta.get().addListener(this);this.Hd.init();RCa([this.layout],this.Ta.get());this.YM()};
g.k.YM=function(){var a=TI(this.Hd.ob().Aa,"metadata_type_player_vars");a?this.Md.get().addPlayerResponseForAssociation({playerVars:a}):(a=QDa(this.Hd.ob()),this.Md.get().addPlayerResponseForAssociation({RH:a}))};
g.k.release=function(){this.Ta.get().removeListener(this);this.Hd.release();SCa()};
g.k.bK=function(){};
g.k.iK=function(a,b,c){VCa({cpn:a,Nf:this.Ta.get(),Ep:!0});if(this.layout.layoutId===a)if(void 0!==this.j){var d=this.j;3!==c&&kG("Unexpected transition reason when core initiated the exit",this.slot,this.layout,{exitingCpn:a,enteringCpn:b,transitionReason:c});this.callback.Oc(this.slot,this.layout,d);this.j=void 0}else this.B&&kG("Expected a video to exit at most once",this.slot,this.layout),this.B=!0,2===c?CL(this.xf,this.layout):4===c?(a=new QI("Non video ad expired during SSAP single layout.",
{playerErrorCode:"non_video_expired"},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),this.Hd.DA("non_video_expired",a,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),this.callback.nf(this.slot,this.layout,a,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")):kG("Unexpected transition reason when player initiated the exit",this.slot,this.layout,{exitingCpn:a,enteringCpn:b,transitionReason:c})};
g.k.hK=function(a){UCa({cpn:a,Nf:this.Ta.get(),Ep:!0});this.layout.layoutId===a&&eIa(this.Ze,this.slot.slotId)};
g.k.startRendering=function(a){a.layoutId!==this.layout.layoutId?this.callback.nf(this.Zb(),a,new QI("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.Ha.get().addListener(this),$I(this.Ec(),this),this.Hd.startRendering(this.layout),this.callback.vc(this.slot,this.layout))};
g.k.Qe=function(a,b){this.Hd.Qe(this.layout,b);this.Ha.get().removeListener(this);this.B?(this.callback.Oc(this.slot,this.layout,b),this.B=!1):(void 0!==this.j&&kG("Expected the layout to be requested to exit at most once",this.slot,this.layout),this.j=b,this.Uc.get().finishSegmentByCpn(this.layout.layoutId,this.Ta.get().Me(1).clientPlaybackNonce))};
g.k.Zb=function(){return this.slot};
g.k.ob=function(){return this.layout};
g.k.zr=function(){this.Hd.zr()};
g.k.Dr=function(){this.Hd.Dr()};
g.k.PA=function(a,b){kG("Unexpected onSkipRequested from PlayerBytesSsapSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.slot,this.layout,{requestingSlot:a,requestingLayout:b})};
g.k.vc=function(a,b){this.Hd.vc(a,b)};
g.k.Oc=function(a,b,c){b.layoutId===this.layout.layoutId&&aJ(this.Ec(),this);this.Hd.Oc(a,b,c)};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.Ch=function(){};
g.k.yf=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.Lg=function(){};
g.k.Di=function(a){this.Hd.Di(a)};
g.k.Ei=function(a){if(a.state.isError()){var b,c=new QI("There was a player error during SSAP single media layout.",{playerErrorCode:null==(b=a.state.Ig)?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),d;this.Hd.DA(null==(d=a.state.Ig)?void 0:d.errorCode,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");this.callback.nf(this.slot,this.layout,c,"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Hd.Ei(a)};
g.k.onFullscreenToggled=function(a){this.Hd.onFullscreenToggled(a)};
g.k.hh=function(a){this.Hd.hh(a)};
g.k.Ui=function(a){this.Hd.Ui(a)};
g.k.onVolumeChange=function(){this.Hd.onVolumeChange()};
g.k.uj=function(){};
g.k.xj=function(){};
g.k.vj=function(){};g.y(TDa,g.I);g.k=TDa.prototype;g.k.Zb=function(){return this.slot};
g.k.ob=function(){return this.layout};
g.k.bK=function(){};
g.k.iK=function(a,b){var c=this;VCa(Object.assign({},zL(this),{cpn:a}));var d=this.ud[this.kd];d&&this.aP&&(d.ob().layoutId!==a&&kG("Unexpected active subLRA when previous playback ends",this.slot,this.layout),this.ZV=function(e){e.layoutId!==a&&kG("Unexpected previous CPN when sublayout exit is confirmed",c.slot,c.layout);c.ud.some(function(f){return f.ob().layoutId===b})||(c.kd=c.ud.length,CL(c.gk,c.layout))},d.JX())};
g.k.hK=function(a){UCa(Object.assign({},zL(this),{cpn:a}));var b=this.ud.findIndex(function(c){return c.ob().layoutId===a});
-1!==b&&(-1===this.kd&&eIa(this.Ze,this.slot.slotId),bEa(this,b))};
g.k.zr=function(a,b){var c=this.ud[this.kd];b.layoutId!==AL(c,a,b)?kG("pauseLayout for a PlayerBytes layout that is not currently active",a,b):c.zr()};
g.k.Dr=function(a,b){var c=this.ud[this.kd];b.layoutId!==AL(c,a,b)?kG("resumeLayout for a PlayerBytes layout that is not currently active",a,b):c.Dr()};
g.k.PA=function(a,b){var c=this.ud[this.kd];this.kd===this.ud.length-1&&kG("Unexpected skip requested during the last sublayout",c.Zb(),c.ob(),{requestingSlot:a,requestingLayout:b});b.layoutId!==AL(c,a,b)?kG("onSkipRequested for a PlayerBytes layout that is not currently active",c.Zb(),c.ob(),{requestingSlot:a,requestingLayout:b}):$Da(this,c.Zb(),c.ob(),"skipped")};
g.k.eba=function(a,b){var c=Object.assign({},zL(this),{layoutId:b.layoutId}),d=c.layoutId,e=c.Ep;if(c.qw){var f={};mK(c.Nf,"wrse",(f.ec=d,f.is=e,f.ctp=lK(d),f))}NAa(this.wG,a,b)};
g.k.vc=function(a,b){var c=this.ud[this.kd];c&&c.vc(a,b)};
g.k.Oc=function(a,b,c){b.layoutId===this.ob().layoutId&&(this.dw=!1,aJ(this.Ec(),this));var d=this.ud[this.kd];d&&d.Oc(a,b,c)};
g.k.QP=function(){var a=this.ud[this.kd];a&&a.QI()};
g.k.Di=function(a){var b=this.ud[this.kd];b&&b.Di(a)};
g.k.UO=function(a,b,c){-1===this.kd&&(this.callback.vc(this.slot,this.layout),this.kd++);var d=this.ud[this.kd];d?(d.DA(a,b,c),this.rd()&&this.callback.nf(this.slot,this.layout,b,c)):kG("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.kd),layoutId:this.ob().layoutId})};
g.k.onFullscreenToggled=function(a){var b=this.ud[this.kd];if(b)b.onFullscreenToggled(a)};
g.k.hh=function(a){var b=this.ud[this.kd];b&&b.hh(a)};
g.k.Ui=function(a){var b=this.ud[this.kd];b&&b.Ui(a)};
g.k.onVolumeChange=function(){var a=this.ud[this.kd];if(a)a.onVolumeChange()};
g.k.hba=function(a,b,c){if(this.rd()){a=Object.assign({},zL(this),{layoutId:b.layoutId,layoutExitReason:c});var d=a.layoutId,e=a.layoutExitReason,f={};mK(a.Nf,"prse",(f.xc=d,f.ler=e,f.ctp=lK(d),f));YDa(this,b,c)}else $Da(this,a,b,c)};
g.k.TF=function(a,b,c){VDa(this,b,this.kd+1,c)};
g.k.fba=function(a,b,c,d){this.rd()?this.callback.nf(this.slot,this.layout,c,d):$Da(this,a,b,"error")};
g.k.init=function(){var a=TI(this.ob().Aa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.Ta.get().Me(1).daiEnabled&&kG("Unexpected VOD LRA on DAI content",this.slot,this.layout);if(1>this.ud.length)throw new RI("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.ud.length)});if(a=TI(this.ob().Aa,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=this;a=g.u(this.ud);for(var b=a.next();!b.done;b=a.next())b=
b.value,b.init(),KAa(this.wG,this.slot,b.ob()),LAa(this.wG,this.slot,b.ob());if(this.rd())for(this.Ta.get().addListener(this),RCa(UDa(this),this.Ta.get()),a=UDa(this),a=g.u(a),b=a.next();!b.done;b=a.next())this.YM(b.value)};
g.k.YM=function(a){var b=TI(a.Aa,"metadata_type_player_vars");b?("LAYOUT_TYPE_MEDIA"!==a.layoutType&&kG("Non-video ad contains playerVars",this.slot,a),this.Md.get().addPlayerResponseForAssociation({playerVars:b})):(a=QDa(a),this.Md.get().addPlayerResponseForAssociation({RH:a}))};
g.k.release=function(){var a=TI(this.ob().Aa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);if(a=TI(this.ob().Aa,"metadata_type_ad_pod_skip_target_callback_ref"))a.current=null;a=g.u(this.ud);for(var b=a.next();!b.done;b=a.next())b=b.value,MAa(this.wG,this.slot,b.ob()),b.release();this.rd()&&(this.Ta.get().removeListener(this),SCa())};
g.k.startRendering=function(a){a.layoutId!==this.ob().layoutId?this.callback.nf(this.Zb(),a,new QI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.ob().layoutId+("and LayoutType: "+this.ob().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ha.get().addListener(this),$I(this.Ec(),this),r1(this.Ca.get())&&!this.rd()&&l1(this.Ic.get()),Yfb(this.Ca.get())||this.rd()||Agb(this.Ha.get()),r1(this.Ca.get())||
this.rd()||l1(this.Ic.get()),this.rd()||-1===this.kd&&ZDa(this,this.kd+1))};
g.k.Qe=function(a,b){var c=this;if(this.rd()){if(this.kd===this.ud.length)this.callback.Oc(this.slot,this.layout,b);else{a=this.ud[this.kd];if(!a){kG("Expected active sublayout when composite layout stops rendering",this.slot,this.layout,{activeSubLayoutIndex:this.kd,subLraCount:this.ud.length});return}a.Qe(a.ob(),b);this.jP=function(){c.callback.Oc(c.slot,c.layout,b)};
this.Uc.get().finishSegmentByCpn(a.ob().layoutId,this.Ta.get().Me(1).clientPlaybackNonce)}this.Ha.get().removeListener(this)}else this.dw=!0,this.kd===this.ud.length?this.callback.Oc(this.slot,this.layout,b):(a=this.ud[this.kd],a.Qe(a.ob(),b),this.jP=function(){c.callback.Oc(c.slot,c.layout,b)}),this.Ha.get().J.ox(),Kgb(this.Md.get(),{}),a=u1(this.Ha.get(),1),a.isPaused()&&!g.mG(a,2)&&this.Ha.get().playVideo(),this.Ha.get().removeListener(this),this.dw&&this.QP()};
g.k.Ei=function(a){if(a.state.isError()){var b,c;this.UO(null==(b=a.state.Ig)?void 0:b.errorCode,new QI("There was a player error during this media layout.",{playerErrorCode:null==(c=a.state.Ig)?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(b=this.ud[this.kd])&&b.Ei(a)};
g.k.rd=function(){var a=TI(this.Zb().Aa,"metadata_type_eligible_for_ssap");return void 0===a?(kG("Expected SSAP eligibility in PlayerBytes slots",this.Zb(),this.ob()),!1):this.Ca.get().rd(a)};
g.k.vj=function(){};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.Ch=function(){};
g.k.yf=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.Lg=function(){};
g.k.uj=function(){};
g.k.xj=function(){};g.y(cEa,g.I);g.k=cEa.prototype;g.k.Zb=function(){return this.Hd.Zb()};
g.k.ob=function(){return this.Hd.ob()};
g.k.init=function(){var a=TI(this.ob().Aa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=this);this.ew()};
g.k.ew=function(){this.Hd.init()};
g.k.release=function(){var a=TI(this.ob().Aa,"metadata_type_player_bytes_layout_controls_callback_ref");a&&(a.current=null);this.nx()};
g.k.nx=function(){this.Hd.release()};
g.k.zr=function(){this.Hd.zr()};
g.k.Dr=function(){this.Hd.Dr()};
g.k.PA=function(a,b){kG("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter.  Skip should be handled by Triggers",this.Zb(),this.ob(),{requestingSlot:a,requestingLayout:b})};
g.k.startRendering=function(a){a.layoutId!==this.ob().layoutId?this.callback.nf(this.Zb(),a,new QI("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.ob().layoutId+("and LayoutType: "+this.ob().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Ha.get().addListener(this),$I(this.Ec(),this),r1(this.Ca.get())&&l1(this.Ic.get()),Yfb(this.Ca.get())||Agb(this.Ha.get()),r1(this.Ca.get())||l1(this.Ic.get()),this.Cx(a))};
g.k.Cx=function(a){this.Hd.startRendering(a)};
g.k.Qe=function(a,b){this.dw=!0;this.Dx(a,b);this.Ha.get().J.ox();Kgb(this.Md.get(),{});a=u1(this.Ha.get(),1);a.isPaused()&&!g.mG(a,2)&&this.Ha.get().playVideo();this.Ha.get().removeListener(this);this.dw&&this.QP()};
g.k.Dx=function(a,b){this.Hd.Qe(a,b)};
g.k.vc=function(a,b){this.Hd.vc(a,b)};
g.k.Oc=function(a,b,c){this.YJ(b,c);this.Hd.Oc(a,b,c);b.layoutId===this.ob().layoutId&&aEa(this.Ic.get())};
g.k.YJ=function(a){a.layoutId===this.ob().layoutId&&(this.dw=!1,aJ(this.Ec(),this))};
g.k.QP=function(){this.Hd.QI()};
g.k.Di=function(a){this.Hd.Di(a)};
g.k.Ei=function(a){if(a.state.isError()){var b,c;this.UO(null==(b=a.state.Ig)?void 0:b.errorCode,new QI("There was a player error during this media layout.",{playerErrorCode:null==(c=a.state.Ig)?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Hd.Ei(a)};
g.k.UO=function(a,b,c){this.Hd.DA(a,b,c)};
g.k.onFullscreenToggled=function(a){this.Hd.onFullscreenToggled(a)};
g.k.hh=function(a){this.Hd.hh(a)};
g.k.Ui=function(a){this.Hd.Ui(a)};
g.k.onVolumeChange=function(){this.Hd.onVolumeChange()};
g.k.vj=function(){};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.Ch=function(){};
g.k.yf=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.Lg=function(){};
g.k.uj=function(){};
g.k.xj=function(){};g.k=DL.prototype;g.k.Zb=function(){return this.slot};
g.k.ob=function(){return this.layout};
g.k.init=function(){this.Df.get().addListener(this);this.Ha.get().addListener(this);this.ew();var a=TI(this.layout.Aa,"metadata_type_layout_enter_ms"),b=TI(this.layout.Aa,"metadata_type_layout_exit_ms"),c,d=null==(c=this.Ta.get().Dv)?void 0:c.clientPlaybackNonce;c=this.layout.ac.adClientDataEntry;EL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:b-a,contentCpn:d,adClientData:c}});var e=this.Df.get();e=fEa(e.C,a,b);null!==e&&(EL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:e-a,contentCpn:d,
cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:c}}),this.Uc.get().Sy(e,b))};
g.k.release=function(){this.nx();this.Df.get().removeListener(this);this.Ha.get().removeListener(this)};
g.k.startRendering=function(){this.Cx();this.callback.vc(this.slot,this.layout)};
g.k.Qe=function(a,b){this.Dx(b);null!==this.driftRecoveryMs&&(hEa(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(gEa(this)-TI(this.layout.Aa,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(1E3*this.Ha.get().J.Mq()).toString()}),this.driftRecoveryMs=null);this.callback.Oc(this.slot,this.layout,b)};
g.k.JZ=function(){return!1};
g.k.EZ=function(a){var b=TI(this.layout.Aa,"metadata_type_layout_enter_ms"),c=TI(this.layout.Aa,"metadata_type_layout_exit_ms");a*=1E3;if(b<=a&&a<c){var d;EL(this.Oa.get(),{daiStateTrigger:{filledAdsDurationMs:a-b,contentCpn:null==(d=this.Ta.get().Dv)?void 0:d.clientPlaybackNonce,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:this.layout.ac.adClientDataEntry}});this.Uc.get().Sy(a,c)}};
g.k.Di=function(a){this.vZ(a);a=this.Ha.get().getCurrentTimeSec(2,!0);if(THa(this.D.get(),this.layout.layoutId)){var b=TI(this.layout.Aa,"metadata_type_layout_enter_ms"),c=this.driftRecoveryMs;if(!(null===c||1E3*a<b+c)){this.driftRecoveryMs=null;var d=gEa(this),e=this.Ha.get().J.Mq(),f=Math.min(a+e,d/1E3);f<=a?hEa(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-b).toString(),driftFromHeadMs:Math.round(1E3*e).toString()}):(hEa(this,{driftRecoveryMs:c.toString(),breakDurationMs:Math.round(d-
b).toString(),driftFromHeadMs:Math.round(1E3*e).toString(),appliedDriftRecoveryMs:Math.round(1E3*a-b).toString(),destinationMs:Math.round(1E3*f-b).toString()}),this.Ha.get().J.seekTo(f,void 0,void 0,1))}}};
g.k.hh=function(){};
g.k.vj=function(){};
g.k.Ui=function(){};
g.k.onVolumeChange=function(){};
g.k.uj=function(){};
g.k.xj=function(){};g.y(iEa,DL);g.k=iEa.prototype;g.k.ew=function(){this.Ta.get().addListener(this);this.C.forEach(function(a){a.init()});
null!=this.B&&FL(this.Oa.get(),"ads_ssmplra_init","lid."+this.layout.layoutId+";smlid."+this.B)};
g.k.nx=function(){this.Ta.get().removeListener(this);this.j=null;this.C.forEach(function(a){a.release()})};
g.k.Cx=function(){if(this.j)kG("Failed to restart rendering",this.slot,this.layout,{hasSurveyMediaSubLayout:String(!!this.B)});else{var a,b=null==(a=this.Ta.get().Dv)?void 0:a.layoutId;kEa(this,b)}};
g.k.Dx=function(a){var b,c,d,e;null==(d=this.j)||null==(e=d.Ul)||e.Qe(null==(b=this.j)?void 0:null==(c=b.Ul)?void 0:c.ob(),a);this.j=null};
g.k.bK=function(a){var b=a.videoId;a=a.layoutId;if("nPpU29QrbiU"===b){var c,d;FL(this.Oa.get(),"ads_ssmplra_opdcs","vid."+b+";lid."+this.layout.layoutId+";smlid."+this.B+";slrs."+!!this.j+";slrslid."+(null==(c=this.j)?void 0:null==(d=c.Ul)?void 0:d.ob().layoutId))}var e;if(this.j&&(null==(e=this.j.Ul)?void 0:e.ob().layoutId)!==a){var f,h;null==(h=this.j.Ul)||h.Qe(null==(f=this.j.Ul)?void 0:f.ob(),"normal");kEa(this,a)}};
g.k.iK=function(){};
g.k.hK=function(){};
g.k.vZ=function(){};
g.k.Ei=function(){};
g.k.onFullscreenToggled=function(){};g.k=yEa.prototype;g.k.Zb=function(){return this.slot};
g.k.ob=function(){return this.layout};
g.k.init=function(){var a=this;TI(this.layout.Aa,"metadata_type_player_bytes_callback_ref").current=this;this.bd=lEa(this.slot,this.layout,TI(this.layout.Aa,"metadata_type_player_vars"),TI(this.layout.Aa,"metadata_type_layout_enter_ms"),TI(this.layout.Aa,"metadata_type_layout_exit_ms"),1E3*TI(this.layout.Aa,"metadata_type_video_length_seconds"),this.Uc.get(),this.Nr.get(),function(){var d=Object,e=d.assign,f=BEa(a.layout);var h=TI(a.slot.Aa,"metadata_type_fulfilled_layout");h=Object.assign({},BEa(h),
{adPlacementConfig:TI(h.Aa,"metadata_type_ad_placement_config"),subLayouts:TI(h.Aa,"metadata_type_sub_layouts").map(BEa)});return e.call(d,{},{layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"},f,{compositeLayout:h,hasSurveyOverlay:NI(a.layout.Aa,"metadata_type_survey_overlay"),surveyOverlay:TI(a.layout.Aa,"metadata_type_survey_overlay")})},this.Oa.get());
this.Ha.get().addListener(this);var b=TI(this.layout.Aa,"metadata_type_video_length_seconds"),c=TI(this.layout.Aa,"metadata_type_active_view_traffic_type");PJ(this.layout.Bb)&&v1(this.xb.get(),this.layout.layoutId,c,b,this);KAa(this.callback,this.slot,this.layout);LAa(this.callback,this.slot,this.layout)};
g.k.release=function(){this.Ha.get().removeListener(this);PJ(this.layout.Bb)&&w1(this.xb.get(),this.layout.layoutId);this.Ca.get();MAa(this.callback,this.slot,this.layout)};
g.k.startRendering=function(){var a=this;NI(this.layout.Aa,"metadata_type_survey_overlay")&&FL(this.Oa.get(),"ads_ssmlra_srs","lid."+this.layout.layoutId);if(this.Mc)kG("Expected the layout not to be entered before start rendering",this.slot,this.layout,{hasSurveyOverlay:NI(this.layout.Aa,"metadata_type_survey_overlay"),surveyOverlay:TI(this.layout.Aa,"metadata_type_survey_overlay")});else{this.Mc={Rn:null,cG:!1};if(Wfb(this.Ca.get())){var b;this.adCpn=null==(b=this.Ta.get().Me(2))?void 0:b.clientPlaybackNonce}this.Ca.get().J.U().experiments.jb("html5_disable_sodar_for_tvhtml5")||
mEa(this.slot,this.layout,this.tf.get());this.Xa.Vb("start");if(SM(this.Ca.get())){b=u1(this.Ha.get());var c=TI(this.layout.Aa,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);oEa(this.Xa,this.Mc.Rn,b,c,d,function(){return void AEa(a,"teois")})}NAa(this.callback,this.slot,this.layout);
NI(this.layout.Aa,"metadata_type_survey_overlay")&&FL(this.Oa.get(),"ads_ssmlra_sre","lid."+this.layout.layoutId)}};
g.k.Qe=function(a,b){var c=this;if(this.Mc){if(SM(this.Ca.get()))if(null===this.bd)kG("Unexpected media sub layout exited without a timeline playback ID");else{a=TI(this.layout.Aa,"metadata_type_video_length_seconds");var d=ygb(this.Ha.get(),this.bd);Wfb(this.Ca.get())&&void 0===this.adCpn&&kG("Expected ad CPN in SSDAI macro data",this.slot,this.layout,{contentCpn:TI(this.layout.Aa,"metadata_type_content_cpn")});QBa(this.Xa,d,this.adCpn);pEa(this.Xa,null,this.Mc.Rn,a,d,function(e){return void zEa(c,
e,"fue")},Wfb(this.Ca.get()))}this.Mc=null;
OAa(this.callback,this.slot,this.layout,b)}else kG("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.DA=function(){};
g.k.QI=function(){};
g.k.JX=function(){};
g.k.Di=function(a){var b=this;if(this.Mc){if(WJ(this.Xa,"impression")){var c=u1(this.Ha.get()),d=TI(this.layout.Aa,"metadata_type_video_length_seconds");qEa(this.Xa,c,a,this.Mc.Rn,d,function(e){return void zEa(b,e,"tpaqe")})}this.Mc.Rn=a}};
g.k.Ei=function(a){var b=this;if(this.Mc){SM(this.Ca.get())||this.Mc.cG||(this.Mc.cG=!0,a=new g.lG(a.state,new g.iL));var c=TI(this.layout.Aa,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);nEa(this.Xa,this.Mc.Rn,a,c,d,!SM(this.Ca.get()),function(){return void AEa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){rEa(this.Xa,a)};
g.k.hh=function(){};
g.k.vj=function(){};
g.k.Ui=function(){};
g.k.PA=function(a,b){var c;a=this.Oa.get();var d="ti."+WJ(this.Xa,"impression")+";ts."+WJ(this.Xa,"skip")+";hp.",e;var f=!(null==(e=this.Xa.C.get("skip"))||!e.length);FL(a,"ads_dsr",d+f+";cpn."+TI(this.layout.Aa,"metadata_type_content_cpn")+";acpn."+(null==(c=this.Ta.get().Me(2))?void 0:c.clientPlaybackNonce)+";sl."+(TI(b.Aa,"metadata_type_linked_player_bytes_layout_id")===this.layout.layoutId));WJ(this.Xa,"impression")&&this.Xa.Vb("skip");this.Uc.get().Mr()||kG("Unexpected failure to skip a server stitched ad",
this.slot,this.layout)};
g.k.onVolumeChange=function(){};
g.k.vc=function(){};
g.k.Oc=function(){};
g.k.zr=function(){};
g.k.Dr=function(){};
g.k.MK=function(){sEa(this.Xa)};
g.k.Rw=function(){tEa(this.Xa)};
g.k.Qw=function(){uEa(this.Xa)};
g.k.Sw=function(){vEa(this.Xa)};
g.k.Ow=function(){wEa(this.Xa)};
g.k.Pw=function(){xEa(this.Xa)};
g.k.uj=function(){};
g.k.xj=function(){};g.y(CEa,DL);g.k=CEa.prototype;
g.k.ew=function(){var a=this;TI(this.layout.Aa,"metadata_type_player_bytes_callback_ref").current=this;var b=TI(this.layout.Aa,"metadata_type_layout_enter_ms"),c=TI(this.layout.Aa,"metadata_type_layout_exit_ms");this.bd=lEa(this.slot,this.layout,TI(this.layout.Aa,"metadata_type_player_vars"),b,c,1E3*TI(this.layout.Aa,"metadata_type_video_length_seconds"),this.Uc.get(),this.Nr.get(),function(){return{layoutType:"LAYOUT_TYPE_MEDIA",enterMs:b,exitMs:c,adPlacementConfig:TI(a.layout.Aa,"metadata_type_ad_placement_config")}},
this.Oa.get());
var d=TI(this.layout.Aa,"metadata_type_video_length_seconds"),e=TI(this.layout.Aa,"metadata_type_active_view_traffic_type");PJ(this.layout.Bb)&&v1(this.xb.get(),this.layout.layoutId,e,d,this)};
g.k.nx=function(){PJ(this.layout.Bb)&&w1(this.xb.get(),this.layout.layoutId)};
g.k.Cx=function(){var a=this;if(this.Mc)kG("Expected the layout not to be entered before start rendering",this.slot,this.layout);else if(this.Mc={Rn:null,cG:!1},mEa(this.slot,this.layout,this.tf.get()),this.Xa.Vb("start"),SM(this.Ca.get())){var b=u1(this.Ha.get()),c=TI(this.layout.Aa,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);oEa(this.Xa,this.Mc.Rn,b,c,d,function(){return void DEa(a,"teois")})}};
g.k.Dx=function(){var a=this;if(this.Mc){if(SM(this.Ca.get()))if(null===this.bd)kG("Unexpected single media layout exited without a timeline playback ID");else{var b=TI(this.layout.Aa,"metadata_type_video_length_seconds"),c=ygb(this.Ha.get(),this.bd);QBa(this.Xa,c);pEa(this.Xa,null,this.Mc.Rn,b,c,function(d){return void EEa(a,d,"fue")})}this.Mc=null}else kG("Expected the layout to be entered before stop rendering",this.slot,this.layout)};
g.k.vZ=function(a){var b=this;if(this.Mc){if(WJ(this.Xa,"impression")){var c=u1(this.Ha.get()),d=TI(this.layout.Aa,"metadata_type_video_length_seconds");qEa(this.Xa,c,a,this.Mc.Rn,d,function(e){return void EEa(b,e,"tpaqe")})}this.Mc.Rn=a}};
g.k.Ei=function(a){var b=this;if(this.Mc){SM(this.Ca.get())||this.Mc.cG||(this.Mc.cG=!0,a=new g.lG(a.state,new g.iL));var c=TI(this.layout.Aa,"metadata_type_video_length_seconds"),d=this.Ha.get().getCurrentTimeSec(2,!1);nEa(this.Xa,this.Mc.Rn,a,c,d,!SM(this.Ca.get()),function(){return void DEa(b,"teosc")})}};
g.k.onFullscreenToggled=function(a){rEa(this.Xa,a)};
g.k.MK=function(){sEa(this.Xa)};
g.k.Rw=function(){tEa(this.Xa)};
g.k.Qw=function(){uEa(this.Xa)};
g.k.Sw=function(){vEa(this.Xa)};
g.k.Ow=function(){wEa(this.Xa)};
g.k.Pw=function(){xEa(this.Xa)};FEa.prototype.build=function(a,b,c,d){if(NI(c.Aa,"metadata_type_dai")){var e=TI(d.Aa,"metadata_type_ad_placement_config");$J(d,{Kd:"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(" "),Fe:["LAYOUT_TYPE_MEDIA"]})&&void 0!==e?(e=new SJ(d.Bb,this.Oa,e,d.layoutId,null),e=new CEa(a,c,d,this.Ta,this.Uc,this.Nr,this.Df,this.Ha,e,this.Oa,this.tf,this.j,this.xb,this.Ca)):
e=null;if(e)return e;a:{var f=TI(d.Aa,"metadata_type_sub_layouts"),h=TI(d.Aa,"metadata_type_ad_placement_config");if($J(d,{Kd:["metadata_type_layout_enter_ms","metadata_type_drift_recovery_ms","metadata_type_layout_exit_ms"],Fe:["LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES"]})&&void 0!==f&&void 0!==h){e=[];f=g.u(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=TI(l.Aa,"metadata_type_media_sub_layout_index");if(!$J(l,{Kd:"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(" "),
Fe:["LAYOUT_TYPE_MEDIA"]})||void 0===m){a=null;break a}m=new SJ(l.Bb,this.Oa,h,l.layoutId,m);e.push(new yEa(b,c,l,this.Uc,m,this.Ha,this.Nr,this.xb,this.tf,this.Ca,this.Oa,this.Ta))}b=new SJ(d.Bb,this.Oa,h,d.layoutId);a=new iEa(a,c,d,this.Ta,this.Uc,this.Df,this.Ha,b,this.Oa,this.j,e)}else a=null}if(a)return a}else if(a=eEa(a,b,c,d,this.Ec,this.Ze,this.gk,this.Oa,this.xb,this.tf,this.Md,this.Ta,this.Ha,this.Qc,this.Ic,this.qd,this.Mb,this.hg,this.Ca,this.Uc,this.context))return a;throw new QI("Unsupported layout with type: "+
d.layoutType+" and client metadata: "+UI(d.Aa)+" in PlayerBytesLayoutRenderingAdapterFactory.");};HL.prototype.build=function(a,b,c,d){if(a=eEa(a,b,c,d,this.Ec,this.Ze,this.gk,this.Oa,this.xb,this.tf,this.Md,this.Ta,this.Ha,this.Qc,this.Ic,this.qd,this.Mb,this.hg,this.Ca,this.Uc,this.context))return a;throw new QI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UI(d.Aa)+" in PlayerBytesVodOnlyLayoutRenderingAdapterFactory.");};g.y(GEa,vF);g.y(IL,LJ);IL.prototype.startRendering=function(a){var b=MJ(this.Xa),c={adsClientData:this.layout.ac};this.j.push(new GEa(TI(this.layout.Aa,"metadata_type_valid_survey_text_interstitial_renderer"),b,this.ob().layoutId,c));LJ.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a)};
IL.prototype.fg=function(a,b){b!==this.layout.layoutId||"survey-interstitial"!==a&&"button"!==a||((a=TI(this.layout.Aa,"metadata_type_player_bytes_layout_controls_callback_ref").current)?a.PA(this.slot,this.layout):kG("Tried to skip SurveyInterstitial but PlayerBytes callback is null"))};
IL.prototype.va=function(){LJ.prototype.va.call(this)};var HEa=new g.Ie(320,63);g.y(KEa,vF);g.y(LL,LJ);g.k=LL.prototype;g.k.Di=function(){};
g.k.Ei=function(){};
g.k.onFullscreenToggled=function(){};
g.k.hh=function(a){a&&fN(this.D,this.layout)};
g.k.vj=function(){};
g.k.Ui=function(a){var b=KL(this.layout);if(this.Yu=IEa(a,zgb(this.Ha.get())))b.onErrorCommand&&this.Mb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),fN(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Mv=function(){return this.ob().layoutId};
g.k.jO=function(){return this.Yu};
g.k.fg=function(a){this.G.fg(a);"in_video_overlay_close_button"===a&&fN(this.D,this.layout)};
g.k.RI=function(a){"invideo-overlay"===a&&fN(this.D,this.layout)};
g.k.Mp=function(){this.G.Mp()};
g.k.startRendering=function(a){LJ.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a);this.K.ls=this};
g.k.Qe=function(a,b){LJ.prototype.Qe.call(this,a,b);e2(this.K,this)};
g.k.init=function(){LJ.prototype.init.call(this);pgb(this.Oa.get(),this);this.Ha.get().addListener(this);this.j.push(new KEa(KL(this.layout),MJ(this.Xa),this.layout.layoutId,{adsClientData:this.layout.ac}))};
g.k.release=function(){LJ.prototype.release.call(this);this.Ha.get().removeListener(this);qgb(this.Oa.get(),this)};
g.k.uj=function(){};
g.k.xj=function(){};g.y(ML,LJ);g.k=ML.prototype;g.k.init=function(){LJ.prototype.init.call(this);pgb(this.Oa.get(),this);this.Ha.get().addListener(this);this.j.push(new KEa(KL(this.layout),MJ(this.Xa),this.layout.layoutId,{adsClientData:this.layout.ac}))};
g.k.Mp=function(){this.G.Mp()};
g.k.startRendering=function(a){LJ.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a);this.K.ls=this};
g.k.Qe=function(a,b){LJ.prototype.Qe.call(this,a,b);e2(this.K,this)};
g.k.fg=function(a){this.G.fg(a);"in_video_overlay_close_button"===a&&fN(this.D,this.layout)};
g.k.TO=function(a){if("invideo-overlay"===a){a=dIa(this.N,this.layout);a=g.u(a);for(var b=a.next();!b.done;b=a.next())b.value.stop()}};
g.k.RI=function(a){"invideo-overlay"===a&&fN(this.D,this.layout)};
g.k.SO=function(a){if("invideo-overlay"===a){a=dIa(this.N,this.layout);a=g.u(a);for(var b=a.next();!b.done;b=a.next())b.value.start()}};
g.k.Di=function(){};
g.k.Ei=function(){};
g.k.onFullscreenToggled=function(){};
g.k.hh=function(a){a&&fN(this.D,this.layout)};
g.k.vj=function(){};
g.k.Ui=function(a){var b=KL(this.layout),c=b.contentSupportedRenderer.imageOverlayAdContentRenderer,d=zgb(this.Ha.get());a:{c=c.image;c=void 0===c?null:c;if(null!=c&&(c=c.thumbnail,null!=c&&null!=c.thumbnails&&0!=c.thumbnails.length&&null!=c.thumbnails[0].width&&null!=c.thumbnails[0].height)){c=new g.Ie(c.thumbnails[0].width||0,c.thumbnails[0].height||0);break a}c=new g.Ie(0,0)}if(this.Yu=IEa(a,d,c))b.onErrorCommand&&this.Mb.get().executeCommand(b.onErrorCommand,this.layout.layoutId),fN(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Mv=function(){return this.ob().layoutId};
g.k.jO=function(){return this.Yu};
g.k.release=function(){LJ.prototype.release.call(this);this.Ha.get().removeListener(this);qgb(this.Oa.get(),this)};
g.k.uj=function(){};
g.k.xj=function(){};NL.prototype.fg=function(a){"ad-info-hover-text-button"===a&&((this.j=this.Ha.get().Pn(1))||this.Ha.get().pauseVideo())};
NL.prototype.Mp=function(){this.j||this.Ha.get().resumeVideo(1)};g.y(NEa,vF);g.y(OEa,LJ);g.k=OEa.prototype;g.k.init=function(){LJ.prototype.init.call(this);this.Ha.get().addListener(this)};
g.k.startRendering=function(a){var b=TI(this.layout.Aa,"METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD");this.j.push(new NEa(b,this.layout.layoutId,{adsClientData:this.layout.ac}));LJ.prototype.startRendering.call(this,a);this.callback.vc(this.slot,a)};
g.k.vc=function(){};
g.k.fg=function(a,b){b!==this.layout.layoutId||"ad-info-icon-button"!==a&&"ad-info-dialog-close-button"!==a||((b=TI(this.layout.Aa,"metadata_type_player_bytes_layout_controls_callback_ref").current)?"ad-info-icon-button"===a?b.zr(this.slot,this.layout):"ad-info-dialog-close-button"===a&&b.Dr(this.slot,this.layout):kG("Tried to use LayoutControlsCallback on Survey but it is null",this.slot,this.layout,{ComponentType:a}))};
g.k.Ui=function(a){450>a.width&&fN(this.D,this.layout)};
g.k.onVolumeChange=function(){};
g.k.Di=function(){};
g.k.onFullscreenToggled=function(){};
g.k.hh=function(){};
g.k.vj=function(){};
g.k.Ei=function(){};
g.k.uj=function(){};
g.k.xj=function(){};
g.k.va=function(){LJ.prototype.va.call(this)};
g.k.release=function(){LJ.prototype.release.call(this);this.Ha.get().removeListener(this)};PEa.prototype.build=function(a,b,c,d){if(b=hK(a,c,d,this.yc,this.Ha,this.Oa,this.D,this.j,this.Ca))return b;if($J(d,MEa()))return new ML(c,d,this.Oa,this.xb,this.yc,a,this.B,this.C,this.Ha,this.Mb,this.Ca,this.j,new NL(this.Ha));if($J(d,LEa()))return new LL(c,d,this.Oa,this.xb,this.yc,a,this.B,this.Ha,this.Mb,this.Ca,this.j,new NL(this.Ha));if($J(d,{Kd:["METADATA_TYPE_VALID_INSTREAM_SURVEY_AD_RENDERER_FOR_VOD"],Fe:["LAYOUT_TYPE_SURVEY"]}))return new OEa(c,d,a,this.yc,this.B,this.Ha,this.Ca);if($J(d,
{Kd:["metadata_type_player_bytes_layout_controls_callback_ref","metadata_type_valid_survey_text_interstitial_renderer","metadata_type_ad_placement_config"],Fe:["LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"]}))return new IL(c,d,a,this.yc,this.Oa);if($J(d,KCa()))return new eK(c,d,a,this.yc,this.Ha,this.Ca);throw new QI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UI(d.Aa)+" in WebDesktopMainInPlayerLayoutRenderingAdapterFactory.");};QEa.prototype.build=function(a,b,c,d){if(b=hK(a,c,d,this.yc,this.Ha,this.Oa,this.D,this.j,this.Ca))return b;if($J(d,MEa()))return new ML(c,d,this.Oa,this.xb,this.yc,a,this.B,this.C,this.Ha,this.Mb,this.Ca,this.j,new NL(this.Ha));if($J(d,LEa()))return new LL(c,d,this.Oa,this.xb,this.yc,a,this.B,this.Ha,this.Mb,this.Ca,this.j,new NL(this.Ha));throw new QI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UI(d.Aa)+" in WebEmbeddedInPlayerLayoutRenderingAdapterFactory.");};g.y(OL,dK);OL.prototype.startRendering=function(a){dK.prototype.startRendering.call(this,a);if(a.renderingContent?DCa(a,this.Ta.get().Me(2)||void 0):TI(this.layout.Aa,"metadata_ad_video_is_listed"))a=a.renderingContent?CCa(a,this.Ta.get().Me(2)||void 0):TI(this.layout.Aa,"metadata_type_ad_info_ad_metadata"),this.Xm.get().J.gb("onAdMetadataAvailable",a)};SEa.prototype.build=function(a,b,c,d){if($J(d,REa())||"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"===d.layoutType&&void 0!==g.V(d.renderingContent,fK))return new OL(a,c,d,this.yc,this.Ha,this.Oa,this.B,this.Xm,this.j,this.Ta);throw new QI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UI(d.Aa)+" in WebRemixInPlayerLayoutRenderingAdapterFactory.");};TEa.prototype.build=function(a,b,c,d){if($J(d,REa()))return new OL(a,c,d,this.yc,this.Ha,this.Oa,this.B,this.Xm,this.j,this.Ta);if(a=hK(a,c,d,this.yc,this.Ha,this.Oa,this.B,this.j,this.Ca))return a;throw new QI("Unsupported layout with type: "+d.layoutType+" and client metadata: "+UI(d.Aa)+" in WebUnpluggedInPlayerLayoutRenderingAdapterFactory.");};cM.prototype.clone=function(a){var b=this;return new cM(function(){return b.triggerId},a)};dM.prototype.clone=function(a){var b=this;return new dM(function(){return b.triggerId},a)};eM.prototype.clone=function(a){var b=this;return new eM(function(){return b.triggerId},a)};fM.prototype.clone=function(a){var b=this;return new fM(function(){return b.triggerId},a)};gM.prototype.clone=function(a){var b=this;return new gM(function(){return b.triggerId},a)};hM.prototype.clone=function(a){var b=this;return new hM(function(){return b.triggerId},a)};g.y(AM,g.I);var uGa={layoutExitMuteTriggers:[],layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],Tc:[],layoutExitUserInputSubmittedTriggers:[]};var YGa={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 RR={YQa:1,ZQa:2,aRa:3,1:"LOAD_POLICY_ALWAYS",2:"LOAD_POLICY_BY_PREFERENCE",3:"LOAD_POLICY_BY_REQUEST"};g.y(RM,g.I);g.k=RM.prototype;g.k.JZ=function(a){if(!this.j){var b;null==(b=this.Uc)||b.get().Ut(a.identifier);return!1}MHa(this,this.j,a);return!0};
g.k.EZ=function(){};
g.k.fk=function(a){this.j&&this.j.contentCpn!==a&&(kG("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:a,fetchInstructionsCpn:this.j.contentCpn}),this.j=null)};
g.k.Vn=function(a){this.j&&this.j.contentCpn!==a&&kG("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.va=function(){g.I.prototype.va.call(this);this.j=null};var N1=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_instream_ad_player_overlay_renderer","metadata_type_ad_placement_config"],Hmb=["metadata_type_content_cpn","metadata_type_player_bytes_callback_ref","metadata_type_player_overlay_layout_renderer","metadata_type_ad_placement_config"];g.y(UM,g.I);g.k=UM.prototype;g.k.vc=function(a,b){var c=this;if("LAYOUT_TYPE_MEDIA"===b.layoutType&&(OI(b,this.K)||OI(b,Hmb))){var d=this.Ta.get().Me(2),e=this.D(b,d||void 0);e?IJ(this.C.get(),"OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",function(){var f=[jGa(c.j.get(),e.contentCpn,e.fq,function(h){return c.G(h.slotId,"core",e,XI(c.Se.get(),h))},e.inPlayerSlotId)];
e.instreamAdPlayerUnderlayRenderer&&kGa(c.Ca.get())&&f.push(SHa(c,e,e.instreamAdPlayerUnderlayRenderer));return f}):kG("Expected MediaLayout to carry valid opportunity on entered",a,b)}};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.yf=function(){};
g.k.Ch=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.Lg=function(){};
g.k.Oc=function(){};g.y(VM,g.I);VM.prototype.fk=function(a,b,c,d,e,f,h){var l=this,m=this.Ta.get().Me(1);q1(this.Ca.get())&&NM(this.Ca.get(),"html5_ssap_play_cached_preroll")||!m.Xo?(Tfb(this.Ic.get(),d),IJ(this.B.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return LFa(l.j.get(),d,e,f,a,b,h,m,"")}),Ohb(this.C)):B1(this.Ha.get())};
VM.prototype.Vn=function(){};g.y(WM,g.I);g.y(XM,g.I);XM.prototype.onCueRangeEnter=function(){};
XM.prototype.onCueRangeExit=function(a){var b=this,c=this.j.get(a);c&&(this.j.delete(a),this.Qc.get().removeCueRange(a),IJ(this.B.get(),"OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",function(){var d=b.C.get();d=JJ(d.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");return[Object.assign({},c,{slotId:d,slotEntryTrigger:c.slotEntryTrigger?lIa(c.slotId,d,c.slotEntryTrigger):void 0,slotFulfillmentTriggers:mIa(c.slotId,d,c.slotFulfillmentTriggers),slotExpirationTriggers:mIa(c.slotId,d,c.slotExpirationTriggers)})]},
c.slotId))};
XM.prototype.fk=function(){for(var a=g.u(this.j.keys()),b=a.next();!b.done;b=a.next())b=b.value,this.Qc.get().removeCueRange(b);this.j.clear()};
XM.prototype.Vn=function(){};g.y(ZM,g.I);g.k=ZM.prototype;g.k.Mg=function(){};
g.k.Fh=function(a){var b=this;g.FC(g.HC(),function(){var c=b.j.get(a);c&&kG("Expected layouts to be properly unscheduled",a,void 0,{slotType:a.slotType,layoutTypes:[].concat(g.qa(c)).map(function(d){return d.layoutType})})},0)};
g.k.yf=function(){};
g.k.Ch=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(a,b){this.j.has(a)||this.j.set(a,new Set);this.j.get(a).add(b)};
g.k.jg=function(a,b){this.Yi.has(a)&&this.Yi.get(a)===b&&kG("Unscheduled a Layout that is currently entered.",a,b);if(this.j.has(a)){var c=this.j.get(a);c.has(b)?(c.delete(b),0===c.size&&this.j.delete(a)):kG("Trying to unscheduled a Layout that was not scheduled.",a,b)}else kG("Trying to unscheduled a Layout that was not scheduled.",a,b)};
g.k.vc=function(a,b){this.Yi.set(a,b)};
g.k.Oc=function(a){this.Yi.delete(a)};
g.k.Lg=function(){};g.k=VHa.prototype;g.k.init=function(){};
g.k.Zb=function(){return this.slot};
g.k.fI=function(){this.callback.yf(this.slot)};
g.k.iI=function(){this.callback.zf(this.slot)};
g.k.release=function(){};$M.prototype.build=function(a,b){return new VHa(a,b)};g.k=WHa.prototype;g.k.init=function(){};
g.k.Zb=function(){return this.slot};
g.k.fI=function(){C1(this.Ha.get(),"ad-showing");this.callback.yf(this.slot)};
g.k.iI=function(){this.callback.zf(this.slot);D1(this.Ha.get(),"ad-showing")};
g.k.release=function(){};g.k=XHa.prototype;g.k.init=function(){};
g.k.Zb=function(){return this.slot};
g.k.fI=function(){C1(this.Ha.get(),"ad-showing");C1(this.Ha.get(),"ad-interrupting");this.B=this.Ha.get().isAtLiveHead();this.j=Math.ceil(Date.now()/1E3);this.callback.yf(this.slot)};
g.k.iI=function(){D1(this.Ha.get(),"ad-showing");D1(this.Ha.get(),"ad-interrupting");var a=this.B?Infinity:this.Ha.get().getCurrentTimeSec(1,!0)+Math.floor(Date.now()/1E3)-this.j;this.Ha.get().J.seekTo(a,void 0,void 0,1);this.callback.zf(this.slot)};
g.k.release=function(){};g.k=YHa.prototype;g.k.init=function(){};
g.k.Zb=function(){return this.slot};
g.k.fI=function(){C1(this.Ha.get(),"ad-showing");C1(this.Ha.get(),"ad-interrupting");this.callback.yf(this.slot)};
g.k.iI=function(){B1(this.Ha.get());D1(this.Ha.get(),"ad-showing");D1(this.Ha.get(),"ad-interrupting");this.callback.zf(this.slot)};
g.k.release=function(){B1(this.Ha.get())};aN.prototype.build=function(a,b){if(VI(b,["metadata_type_dai"],"SLOT_TYPE_PLAYER_BYTES"))return new WHa(a,b,this.Ha);if(b.slotEntryTrigger instanceof YL&&VI(b,["metadata_type_served_from_live_infra"],"SLOT_TYPE_PLAYER_BYTES"))return new XHa(a,b,this.Ha);if(VI(b,[],"SLOT_TYPE_PLAYER_BYTES"))return new YHa(a,b,this.Ha);throw new RI("Unsupported slot with type "+b.slotType+" and client metadata: "+(UI(b.Aa)+" in PlayerBytesSlotAdapterFactory."));};g.y(bN,g.I);bN.prototype.j=function(a){for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof bM&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED"===d.category&&e.triggeringLayoutId===a&&b.push(d)}b.length?jJ(this.oM(),b):kG("Mute requested but no registered triggers can be activated.")};g.y(cN,bN);g.k=cN.prototype;g.k.fg=function(a,b){if(b)if("skip-button"===a){a=[];for(var c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof bM&&"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED"===d.category&&e.triggeringLayoutId===b&&a.push(d)}a.length&&jJ(this.oM(),a)}else NM(this.Ca.get(),"supports_multi_step_on_desktop")?"ad-action-submit-survey"===a&&ZHa(this,b):"survey-submit"===a?ZHa(this,b):"survey-single-select-answer-button"===a&&ZHa(this,b)};
g.k.WO=function(a){bN.prototype.j.call(this,a)};
g.k.bl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new RI("Tried to register duplicate trigger for slot.");if(!(b instanceof iM||b instanceof bM))throw new RI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdUxUpdateTriggerAdapter.");this.Wb.set(b.triggerId,new kM(a,b,c,d))};
g.k.Al=function(a){this.Wb.delete(a.triggerId)};
g.k.TO=function(){};
g.k.SO=function(){};
g.k.RI=function(){};g.y(dN,g.I);g.k=dN.prototype;
g.k.bl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new RI("Tried to register duplicate trigger for slot.");if(!(b instanceof cM||b instanceof dM||b instanceof eM||b instanceof fM||b instanceof gM||b instanceof hM||b instanceof aFa||b instanceof VL||b instanceof XL||b instanceof WL||b instanceof ZL||b instanceof UL))throw new RI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in AdsControlFlowEventTriggerAdapter");a=new kM(a,b,c,d);this.Wb.set(b.triggerId,a);b instanceof
gM&&this.G.has(b.triggeringSlotId)&&jJ(this.j(),[a]);b instanceof cM&&this.C.has(b.triggeringSlotId)&&jJ(this.j(),[a]);b instanceof VL&&this.B.has(b.triggeringLayoutId)&&jJ(this.j(),[a])};
g.k.Al=function(a){this.Wb.delete(a.triggerId)};
g.k.Mg=function(a){this.G.add(a.slotId);for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof gM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&jJ(this.j(),b)};
g.k.Fh=function(a){this.G.delete(a.slotId);for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof hM&&e.triggeringSlotId===a.slotId&&b.push(d)}0<b.length&&jJ(this.j(),b)};
g.k.Ch=function(a){for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.trigger;e instanceof aFa&&e.slotType===a.slotType&&e.j!==a.slotId&&b.push(d)}0<b.length&&jJ(this.j(),b)};
g.k.yf=function(a){this.C.add(a.slotId);for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof cM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&jJ(this.j(),b)};
g.k.zf=function(a){this.C.delete(a.slotId);this.D.add(a.slotId);for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.trigger instanceof dM)a.slotId===d.trigger.triggeringSlotId&&b.push(d);else if(d.trigger instanceof UL){var e=d.trigger;a.slotId===e.slotId&&this.B.has(e.triggeringLayoutId)&&b.push(d)}0<b.length&&jJ(this.j(),b)};
g.k.Dh=function(a){for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof eM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&jJ(this.j(),b)};
g.k.Eh=function(a){for(var b=[],c=g.u(this.Wb.values()),d=c.next();!d.done;d=c.next())d=d.value,d.trigger instanceof fM&&a.slotId===d.trigger.triggeringSlotId&&b.push(d);0<b.length&&jJ(this.j(),b)};
g.k.gh=function(a,b){this.K.add(b.layoutId)};
g.k.jg=function(a,b){this.K.delete(b.layoutId)};
g.k.vc=function(a,b){this.B.add(b.layoutId);for(var c=[],d=g.u(this.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof VL)b.layoutId===e.trigger.triggeringLayoutId&&c.push(e);else if(e.trigger instanceof ZL){var f=e.trigger;a.slotType===f.slotType&&b.layoutType===f.layoutType&&b.layoutId!==f.j&&c.push(e)}else e.trigger instanceof UL&&(f=e.trigger,b.layoutId===f.triggeringLayoutId&&this.D.has(f.slotId)&&c.push(e));0<c.length&&jJ(this.j(),c)};
g.k.Oc=function(a,b,c){this.B.delete(b.layoutId);a=[];for(var d=g.u(this.Wb.values()),e=d.next();!e.done;e=d.next())if(e=e.value,e.trigger instanceof XL&&b.layoutId===e.trigger.triggeringLayoutId&&a.push(e),e.trigger instanceof WL){var f=e.trigger;b.layoutId===f.triggeringLayoutId&&f.j.includes(c)&&a.push(e)}0<a.length&&jJ(this.j(),a)};
g.k.Lg=function(){};
g.k.fk=function(){this.D.clear()};
g.k.Vn=function(){};g.y(eN,g.I);eN.prototype.bl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new RI("Tried to register duplicate trigger for slot.");if(!(b instanceof SL))throw new RI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.Wb.set(b.triggerId,new kM(a,b,c,d))};
eN.prototype.Al=function(a){this.Wb.delete(a.triggerId)};g.y(gN,g.I);gN.prototype.bl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new RI("Tried to register duplicate trigger for slot.");if(!(b instanceof RL||b instanceof aM))throw new RI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Wb.set(b.triggerId,new kM(a,b,c,d))};
gN.prototype.Al=function(a){this.Wb.delete(a.triggerId)};
gN.prototype.fk=function(a,b,c){b=[];for(var d=b.push,e=d.apply,f=[],h=g.u(this.Wb.values()),l=h.next();!l.done;l=h.next())l=l.value,l.trigger instanceof RL&&l.trigger.Cu===a&&f.push(l);e.call(d,b,g.qa(f));b.push.apply(b,g.qa($Ha(this.Wb,a,!1,c)));b.length&&jJ(this.j(),b)};
gN.prototype.Vn=function(a){var b=[];b.push.apply(b,g.qa($Ha(this.Wb,a,!0,!1)));b.length&&jJ(this.j(),b)};g.y(hN,g.I);g.k=hN.prototype;g.k.bl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new RI("Tried to register duplicate trigger for slot.");var e="adtriggercuerange:"+b.triggerId;if(b instanceof YL)aIa(this,a,b,c,d,e,b.j.start,b.j.end,b.Cu,b.visible);else if(b instanceof TL)aIa(this,a,b,c,d,e,0x7ffffffffffff,0x8000000000000,b.Cu,b.visible);else throw new RI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");};
g.k.Al=function(a){var b=this.Wb.get(a.triggerId);b&&this.Qc.get().removeCueRange(b.SH);this.Wb.delete(a.triggerId)};
g.k.onCueRangeEnter=function(a){var b=bIa(this,a);if(b&&(b=this.Wb.get(b)))if(g.mG(u1(this.Ha.get()),32))this.j.add(b.SH);else{var c=null==b?void 0:b.XC.trigger;if(c instanceof YL||c instanceof TL){if(YM(this.context.Ca.get())){var d=b.XC.slot,e=b.XC.layout,f={};this.context.Aq.Am("cre",(f.ca=b.XC.category,f.tt=c.triggerType,f.st=d.slotType,f.lt=null==e?void 0:e.layoutType,f.cid=a,f))}jJ(this.B(),[b.XC])}}};
g.k.onCueRangeExit=function(a){(a=bIa(this,a))&&(a=this.Wb.get(a))&&this.j.delete(a.SH)};
g.k.Ei=function(a){if(0>nG(a,16)){a=g.u(this.j);for(var b=a.next();!b.done;b=a.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.Ch=function(){};
g.k.yf=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.vc=function(){};
g.k.Oc=function(){};
g.k.Lg=function(){};
g.k.Di=function(){};
g.k.onFullscreenToggled=function(){};
g.k.hh=function(){};
g.k.vj=function(){};
g.k.Ui=function(){};
g.k.onVolumeChange=function(){};
g.k.uj=function(){};
g.k.xj=function(){};g.y(iN,g.I);g.k=iN.prototype;
g.k.bl=function(a,b,c,d){if(this.B.has(b.triggerId)||this.C.has(b.triggerId))throw new RI("Tried to re-register the trigger.");a=new kM(a,b,c,d);if(a.trigger instanceof XEa)this.B.set(a.trigger.triggerId,a);else if(a.trigger instanceof WEa)this.C.set(a.trigger.triggerId,a);else throw new RI("Incorrect TriggerType: Tried to register trigger of type "+a.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(a.trigger.triggerId)&&a.slot.slotId===this.j&&jJ(this.D(),[a])};
g.k.Al=function(a){this.B.delete(a.triggerId);this.C.delete(a.triggerId)};
g.k.bK=function(a){a=a.slotId;if(this.j!==a){var b=[];null!=this.j&&b.push.apply(b,g.qa(cIa(this.C,this.j)));null!=a&&b.push.apply(b,g.qa(cIa(this.B,a)));this.j=a;b.length&&jJ(this.D(),b)}};
g.k.iK=function(){};
g.k.hK=function(){};g.y(jN,g.I);g.k=jN.prototype;g.k.bl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new RI("Tried to register duplicate trigger for slot.");if(!(b instanceof $L))throw new RI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Wb.set(b.triggerId,new kM(a,b,c,d))};
g.k.Al=function(a){this.Wb.delete(a.triggerId)};
g.k.vc=function(){};
g.k.Oc=function(){};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.Ch=function(){};
g.k.yf=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.Lg=function(){};g.y(kN,g.I);g.k=kN.prototype;g.k.Lg=function(a,b){for(var c=[],d=g.u(this.Wb.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&&jJ(this.j(),c)};
g.k.bl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new RI("Tried to register duplicate trigger for slot.");if(!(b instanceof jBa))throw new RI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.Wb.set(b.triggerId,new kM(a,b,c,d))};
g.k.Al=function(a){this.Wb.delete(a.triggerId)};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.Ch=function(){};
g.k.yf=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.vc=function(){};
g.k.Oc=function(){};g.y(lN,g.I);g.k=lN.prototype;g.k.bl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new RI("Tried to register duplicate trigger for slot.");if(!(b instanceof jM))throw new RI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Wb.set(b.triggerId,new kM(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.Al=function(a){this.Wb.delete(a.triggerId);if(!(a instanceof jM))throw new RI("Incorrect TriggerType: Tried to unregister trigger of type "+a.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.B.get(a.triggerId);b&&(b.dispose(),this.B.delete(a.triggerId));if(b=this.j.get(a.triggeringLayoutId))b.delete(a),0===b.size&&this.j.delete(a.triggeringLayoutId)};
g.k.Mg=function(){};
g.k.Fh=function(){};
g.k.Ch=function(){};
g.k.yf=function(){};
g.k.zf=function(){};
g.k.Dh=function(){};
g.k.Eh=function(){};
g.k.gh=function(){};
g.k.jg=function(){};
g.k.Lg=function(){};
g.k.vc=function(a,b){var c=this;if(this.j.has(b.layoutId)){a=this.j.get(b.layoutId);a=g.u(a);var d=a.next();for(b={};!d.done;b={rL:void 0},d=a.next())b.rL=d.value,d=new g.lv(function(e){return function(){var f=c.Wb.get(e.rL.triggerId);jJ(c.C(),[f])}}(b),b.rL.durationMs),d.start(),this.B.set(b.rL.triggerId,d)}};
g.k.Oc=function(){};g.y(mN,g.I);mN.prototype.bl=function(a,b,c,d){if(this.Wb.has(b.triggerId))throw new RI("Tried to register duplicate trigger for slot.");if(!(b instanceof PL))throw new RI("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.Wb.set(b.triggerId,new kM(a,b,c,d))};
mN.prototype.Al=function(a){this.Wb.delete(a.triggerId)};g.y(rN,g.I);g.k=rN.prototype;g.k.logEvent=function(a){this.ir(a)};
g.k.Ij=function(a,b,c){this.ir(a,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,void 0,c)};
g.k.Lh=function(a,b,c,d){this.ir(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.pM=function(a,b,c,d){NM(this.Ca.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"trigger:",c,"slot:",b,"layout:",d);EAa(this.j.get())&&this.ir(a,void 0,void 0,void 0,b,d?d:void 0,void 0,c,b.adSlotLoggingData,d?d.adLayoutLoggingData:void 0)};
g.k.iH=function(a,b,c,d,e){this.ir(a,b,c,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)};
g.k.Rl=function(a,b,c,d){this.ir("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.ir=function(a,b,c,d,e,f,h,l,m,n,p,q){var r=this;q=void 0===q?0:q;NM(this.Ca.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+a,"slot:",e,"layout:",f,"ping:",h,"Opportunity:",{opportunityType:b,associatedSlotId:c,Ypb:d,cqb:l,adSlotLoggingData:m,adLayoutLoggingData:n});try{var t=function(){if(!r.Ca.get().J.U().L("html5_disable_client_tmp_logs")&&("ADS_CLIENT_EVENT_TYPE_ERROR"!==a||r.kS())&&"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"!==a){a||kG("Empty PACF event type",e,f);var v=EAa(r.j.get()),
w={eventType:a,eventOrder:++r.eventCount},A={};e&&(A.slotData=AAa(v,e));f&&(A.layoutData=BAa(v,f));h&&(A.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:h.ping.serializedAdPingMetadata,pingIndex:h.index});l&&(A.triggerData=WI(l.trigger,l.category));b&&(A.opportunityData=CAa(v,b,c,d));v={organicPlaybackContext:{contentCpn:r.Ta.get().Me(1).clientPlaybackNonce}};v.organicPlaybackContext.isLivePlayback=r.Ta.get().Me(1).dc;var C;v.organicPlaybackContext.isMdxPlayback=
null==(C=r.Ta.get().Me(1))?void 0:C.isMdxPlayback;var F;if(null==(F=r.Ta.get().Me(1))?0:F.daiEnabled)v.organicPlaybackContext.isDaiContent=!0;var G;if(C=null==(G=r.Ta.get().Me(2))?void 0:G.clientPlaybackNonce)v.adVideoPlaybackContext={adVideoCpn:C};v&&(A.externalContext=v);w.adClientData=A;m&&(w.serializedSlotAdServingData=m.serializedSlotAdServingDataEntry);n&&(w.serializedAdServingData=n.serializedAdServingDataEntry);p&&(w.errorInfo=p);g.MC("adsClientStateChange",{adsClientEvent:w})}};
q&&0<q?g.FC(g.HC(),function(){return t()},q):t()}catch(v){NM(this.Ca.get(),"html5_log_pacf_logging_errors")&&g.FC(g.HC(),function(){kG(v instanceof Error?v:String(v),e,f,{pacf_message:"exception during pacf logging"})})}};
g.k.kS=function(){return this.Ca.get().kS()};g.y(rIa,rN);g.k=rIa.prototype;g.k.Ij=function(a,b,c){rN.prototype.Ij.call(this,a,b,c);YM(this.Ca.get())&&(c={},this.context.Aq.Am("pacf",(c.et=a,c.st=b.slotType,c.si=b.slotId,c)))};
g.k.Lh=function(a,b,c,d){rN.prototype.Lh.call(this,a,b,c,d);YM(this.Ca.get())&&(d={},this.context.Aq.Am("pacf",(d.et=a,d.st=b.slotType,d.si=b.slotId,d.lt=null==c?void 0:c.layoutType,d.li=null==c?void 0:c.layoutId,d)))};
g.k.iH=function(a,b,c,d,e){rN.prototype.iH.call(this,a,b,c,d,e);YM(this.Ca.get())&&(c={},this.context.Aq.Am("pacf",(c.et=a,c.ot=b,c.ss=null==d?void 0:d.length,c)))};
g.k.pM=function(a,b,c,d){rN.prototype.pM.call(this,a,b,c,d);if(YM(this.Ca.get())){var e={};this.context.Aq.Am("pacf",(e.et=a,e.tt=c.trigger.triggerType,e.tc=c.category,e.st=b.slotType,e.si=b.slotId,e.lt=null==d?void 0:d.layoutType,e.li=null==d?void 0:d.layoutId,e))}};
g.k.Rl=function(a,b,c,d){rN.prototype.Rl.call(this,a,b,c,d);if(YM(this.Ca.get())){var e={};this.context.Aq.Am("perror",(e.ert=a,e.erm=b,e.st=c.slotType,e.si=c.slotId,e.lt=null==d?void 0:d.layoutType,e.li=null==d?void 0:d.layoutId,e))}};
g.k.ir=function(a,b,c,d,e,f,h,l,m,n,p){if(g.iJ(this.Ca.get().J.U())){var q=this.Ca.get();q=g.YI(q.J.U().experiments,"H5_async_logging_delay_ms")}else q=void 0;rN.prototype.ir.call(this,a,b,c,d,e,f,h,l,m,n,p,q)};sN.prototype.clear=function(){this.j.clear()};var sIa=!1,uN,vN,wN,xN,yN;g.y(zN,g.I);
zN.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.B,d=0;d<b&&16>this.j;)a[d++]^=c[this.j++];for(var e=b-(b-d)%16;d<e;)tIa(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(tIa(this),this.j=0;d<b;)a[d++]^=c[this.j++];return a};
zN.prototype.YK=function(a){for(var b=0;4>b;b++)this.counter[b]=a[4*b]<<24|a[4*b+1]<<16|a[4*b+2]<<8|a[4*b+3];this.j=16};var uIa=!1;(function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a})();
var AN;vIa.prototype.rg=function(a,b){b=void 0===b?1:b;this.Qy+=b;this.B+=a;a/=b;for(var c=0;c<CN.length&&!(a<CN[c]);++c)this.j[c]+=b};
vIa.prototype.toString=function(){return""};
var CN=[20,100,500,2E3];g.k=yIa.prototype;g.k.isActive=function(){return!0};
g.k.fJ=function(a,b){var c=this;if(b){var d={},e;for(e in b)d={f_:void 0,J_:void 0},b.hasOwnProperty(e)&&(d.f_=a.prototype[e],d.J_=b[e],a.prototype[e]=function(f){return function(){var h=g.Ia.apply(0,arguments),l=(0,g.$C)();h=f.f_.apply(this,h);return BIa(c,h,f.J_,l)}}(d))}};
g.k.nY=function(a,b){if(b){var c=this,d={},e;for(e in b)d={fW:void 0,hZ:void 0},b.hasOwnProperty(e)&&(d.hZ=a.prototype[e],d.fW=b[e],a.prototype[e]=function(f){return function(){var h=g.Ia.apply(0,arguments),l=this,m=(0,g.$C)(),n=f.hZ.apply(l,h);return BIa(c,n,null,m,function(p){return f.fW.apply(l,[p].concat(h))})}}(d))}};
g.k.uu=function(a){return new xIa(a)};
g.k.Ls=function(a,b){b=void 0===b?1:b;a instanceof xIa&&(zIa(this,a.name,(0,g.$C)()-a.startTimeMs,b),a.j=!0)};
g.k.al=function(a,b){var c=(0,g.$C)();b=b();return BIa(this,b,a,c)};
g.k.RW=function(){var a={},b;for(b in this.j)if(this.j.hasOwnProperty(b)){var c=this.j[b];if(0===c.Qy)c=null;else{for(var d=Math.ceil(c.Qy).toFixed(0)+"."+c.B.toFixed(0),e=0;e<CN.length;++e)if(0<c.j[e])d+="."+CN[e].toFixed(0)+"_"+c.j[e].toFixed(0);else break;c=d}c&&(a[b]=c)}this.j=new wIa;return a};
g.k.toString=function(){return""};g.k=CIa.prototype;g.k.isActive=function(){return!1};
g.k.fJ=function(){};
g.k.nY=function(){};
g.k.uu=function(){};
g.k.Ls=function(){};
g.k.al=function(a,b){return b()};
g.k.RW=function(){return{}};
g.k.toString=function(){return""};var Z2,Imb,Jmb,Kmb,Lmb,Mmb,$2,AV,gZ,Deb,mR;Z2=new CIa;Imb=!!+dB("html5_enable_profiler");Jmb=!!+dB("html5_onesie_enable_profiler");Kmb=!!+dB("html5_offline_encryption_enable_profiler");Lmb=!!+dB("html5_performance_impact_profiling_timer_ms");Mmb=!!+dB("html5_drm_enable_profiler");$2=Imb||Jmb||Kmb||Lmb||Mmb?new yIa:Z2;g.QX=Imb?$2:Z2;AV=Jmb?$2:Z2;gZ=Kmb?$2:Z2;Deb=Lmb?$2:Z2;mR=Mmb?$2:Z2;g.k=DN.prototype;g.k.encrypt=function(a){this.Id.exports.AES128CTRCipher_encrypt(this.cipher,a.byteOffset,a.byteLength);return a};
g.k.YK=function(a){this.Id.exports.AES128CTRCipher_setCounter(this.cipher,a.byteOffset)};
g.k.K8=function(a,b){return{profile:this.Id.Xq?"oals":"oalw",Qy:Math.ceil(b.byteLength/16)}};
g.k.Ma=function(){return 0===this.cipher};
g.k.dispose=function(){this.Id.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};
AV.nY(DN,{encrypt:DN.prototype.K8});g.EN.prototype.encrypt=function(a,b){var c=this,d,e;return g.H(function(f){if(1==f.j){d=BN();if(!d)return f.return(c.j(a,b));g.Ba(f,3);return g.z(f,c.B(a,b,d),5)}if(3!=f.j)return f.return(f.B);e=g.Da(f);g.eF(e);uIa=!0;return f.return(c.j(a,b))})};
g.EN.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.Ia(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.EN.prototype.j=function(a,b){this.C||(this.C=new zN(this.D));this.C.YK(b);return this.C.encrypt(a)};
g.EN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
g.y(g.FN,g.I);g.FN.prototype.encrypt=function(a,b){this.j||(this.j=new zN(this.B),g.O(this,this.j));this.j.YK(b);return this.j.encrypt(a)};
g.FN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
GN.prototype.encrypt=function(a,b){this.j.YK(b);return this.j.encrypt(a)};
GN.prototype.decrypt=function(a,b){return this.encrypt(a,b)};
GN.prototype.Ma=function(){return this.j.Ma()};
GN.prototype.dispose=function(){this.j.dispose()};DIa.prototype.reset=function(){FIa(this);this.update(this.C)};
DIa.prototype.update=function(a){var b=0,c=a.length;this.D+=c;this.B&&64<=this.B+c&&(this.K.set(a.subarray(0,64-this.B),this.B),b=64-this.B,this.B=0,EIa(this,this.K,0));for(;b+64<=c;b+=64)EIa(this,a,b);b<c&&(a=a.subarray(b),this.K.set(a,this.B),this.B+=a.length)};
var HN=[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 Nmb;Nmb={};g.Omb=g.uD("yt-idb-pref-storage",{rr:(Nmb.prefs={Zm:1},Nmb),shared:!1,upgrade:function(a,b){b(1)&&g.gD(g.aD(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});IN.prototype.getState=function(){return this.store.getState()};
IN.prototype.dispatch=function(a){return this.store.dispatch(a)};
IN.prototype.subscribe=function(a){return this.store.subscribe(a)};
IN.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
IN.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};g.k=JN.prototype;g.k.getLength=function(){return this.totalLength};
g.k.append=function(a){if(PIa(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);QIa(this)}else this.j.push(a);this.totalLength+=a.length};
g.k.split=function(a){for(var b=new JN,c=new JN,d=g.u(this.j),e=d.next();!e.done;e=d.next())e=e.value,a>=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{YI:b,Km:c}};
g.k.isFocused=function(a){return a>=this.C&&a<this.C+this.j[this.B].length};
g.k.focus=function(a){if(!this.isFocused(a)){for(a<this.C&&QIa(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 ZN,XN,aO;g.mZ=function(){function a(d){for(var e=new Uint8Array(d.length),f=0;f<d.length;f++)e[f]=d[f];return e}
function b(d){return new Uint8Array(d)}
var c=new Uint8Array([1]);return 1===c.length&&1===c[0]?b:a}();
ZN=Array(1024);XN=window.TextDecoder?new TextDecoder:void 0;aO=window.TextEncoder?new TextEncoder:void 0;for(var bJa={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},aJa={},Pmb=g.u(Object.entries(bJa)),Qmb=Pmb.next();!Qmb.done;Qmb=Pmb.next()){var Rmb=g.u(Qmb.value),Smb=Rmb.next().value,Tmb=Rmb.next().value,
Umb=Smb,Vmb=Tmb;Vmb&&(aJa[Vmb]=Umb)};var a3;a3={};g.Wmb=(a3.INVALID_ENCODER_VERSION="Invalid encoder version",a3.KEY_CREATION_FAILED="Failed to create encoder key",a3.UNKNOWN_DECODE_ERROR="Failed to decode PES data",a3.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",a3.WRONG_DATA_TYPE="Encoder cannot process the data type",a3);var zO=window.Mmb||"tr";var rNa=[3611,27686,85013,23462,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,98349,168271,168954,168277,168273,168270,123695,6827,29434,171388,7282,124448,196088,198104,32276,195115,195114,76278,200635,147868,147869,93911,106531,177843,27259,27262,27263,21759,160866,204249,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,180627,177960,177958,180629,205717,197879,177565,
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,68728,80353,80356,180635,74610,45707,83962,83970,46713,166591,89711,74612,179607,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,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,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,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,205913,51879,16623,32594,27240,32633,74858,213915,156999,3945,16989,45520,25488,25492,25494,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,195529,189660,46220,11721,147994,49954,96369,
3854,151633,56251,205192,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,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,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,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,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,211189,111059,211188,5754,20445,151308,151152,130975,130976,210815,191925,167637,197196,214295,110386,113746,66557,183215,17310,28631,201935,21589,164817,168011,154946,68012,162617,60480,184431,138664,194E3,141121,164502,31571,195002,206793,141978,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,4724,59369,43927,43928,12924,197853,100355,56219,27669,
209928,10337,203648,203649,47896,122629,186204,139723,139722,121258,107598,127991,96639,107536,130169,96661,145188,213904,96658,116646,159428,168611,168612,121122,96660,127738,127083,155281,162959,163566,186641,147842,104443,96659,147595,106442,182423,162776,134840,63667,63668,63669,130686,147036,189810,78314,147799,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,49956,190190,31961,26388,23811,5E4,126250,96370,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,53969,8213,93926,210542,212552,102852,110099,22678,69076,137575,139224,100856,154430,209757,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 qeb={adNotify:function(a){var b=new Bma,c=0;try{var d=a.adMediaTimeSec;void 0!==d&&(Ek(b,1,d),c++);var e=a.adMediaTimeMs;void 0!==e&&(Gk(b,6,e),c++);var f=a.timeToAdBreakSec;void 0!==f&&(Ek(b,2,f),c++);var h=a.clientScreenNonce;void 0!==h&&(Q(b,3,h),c++);var l=a.clientPlaybackNonce;void 0!==l&&(Q(b,4,l),c++);var m=a.videoAdBreakOffsetSec;void 0!==m&&(Ek(b,5,m),c++);var n=a.videoAdBreakOffsetMs;void 0!==n&&(Gk(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 Yz,c=0;try{var d=a.detected;void 0!==d&&(Dk(b,1,d),c++);var e=a.source;void 0!==e&&(Q(b,2,e),c++);var f=a.contentCpn;void 0!==f&&(Q(b,3,f),c++);var h=a.contentCsn;void 0!==h&&(Q(b,4,h),c++);var l=a.method;void 0!==l&&(Ek(b,5,l),c++);var m=a.result;void 0!==m&&(Ek(b,6,m),c++);var n=a.detectionResult;void 0!==n&&(S(b,9,Okb[n]),c++);var p=a.detectionStates;void 0!==p&&(CO(b.O5.bind(b),p,Pkb),c++);var q=a.adCpn;void 0!==q&&(Q(b,7,q),c++);var r=a.playbackType;
void 0!==r&&(Q(b,8,r),c++);return[c===Object.keys(a).length,b]}catch(t){return Y(t),[!1,void 0]}},
adNotifyFilled:function(a){var b=new Ama,c=0;try{var d=a.notifyCompositeType;void 0!==d&&(S(b,1,xkb[d]),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
idbTransactionEnded:function(a){var b=new AA,c=0;try{var d=a.objectStoreNames;void 0!==d&&(Q(b,1,d),c++);var e=a.duration;void 0!==e&&(b.jl(e),c++);var f=a.isSuccessful;void 0!==f&&(Dk(b,3,f),c++);var h=a.connectionHasUnknownAbortedTransaction;void 0!==h&&(Dk(b,4,h),c++);var l=a.tryCount;void 0!==l&&(Ek(b,5,l),c++);var m=a.tag;void 0!==m&&(S(b,6,elb[m]),c++);return[c===Object.keys(a).length,b]}catch(n){return Y(n),[!1,void 0]}},
idbUnexpectedlyClosed:function(a){var b=new Eoa,c=0;try{var d=a.dbName;void 0!==d&&(Q(b,1,d),c++);var e=a.dbVersion;void 0!==e&&(Ek(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 yoa,c=0;try{var d=a.flowNonce;void 0!==d&&(Q(b,1,d),c++);var e=a.flowEventType;if(e){var f=new xoa,h=0;try{var l=e.flowEventNamespace;void 0!==l&&(S(f,1,Ykb[l]),h++);var m=e.flowEventType;void 0!==m&&(Ek(f,2,m),h++);var n=[h===Object.keys(e).length,f]}catch(Ra){Y(Ra),n=[!1,void 0]}var p=n;p[0]&&(rk(b,xoa,2,p[1]),c++)}var q=a.flowMetadata;if(q){var r=new woa,t=0;try{var v=q.notaireContext;if(v){var w=new Una,A=0;try{var C=v.serverInfo;if(C){var F=new jA,G=0;try{var L=
C.id;void 0!==L&&(Q(F,1,L),G++);var M=C.forceLog;void 0!==M&&(Dk(F,2,M),G++);var R=[G===Object.keys(C).length,F]}catch(Ra){Y(Ra),R=[!1,void 0]}var ea=R;ea[0]&&(rk(w,jA,1,ea[1]),A++)}var ma=v.clientInfo;if(ma){var oa=new Tna,ia=0;try{var va=ma.timeSinceReceivedMs;void 0!==va&&(Gk(oa,1,va),ia++);var aa=[ia===Object.keys(ma).length,oa]}catch(Ra){Y(Ra),aa=[!1,void 0]}var U=aa;U[0]&&(rk(w,Tna,2,U[1]),A++)}var La=[A===Object.keys(v).length,w]}catch(Ra){Y(Ra),La=[!1,void 0]}var x=La;x[0]&&(rk(r,Una,1,x[1]),
t++)}var ba=q.offlineTransferStatusChangedContext;if(ba){var Ja=new Xna,cb=0;try{var ob=ba.offlineTransferStatusChanged;if(ob){var Qa=BLa(ob);Qa[0]&&(rk(Ja,mA,1,Qa[1]),cb++)}var Ua=[cb===Object.keys(ba).length,Ja]}catch(Ra){Y(Ra),Ua=[!1,void 0]}var ib=Ua;ib[0]&&(rk(r,Xna,2,ib[1]),t++)}var qb=q.offlineOrchestrationContext;if(qb){var rb=new lA,B=0;try{var D=qb.entityType;void 0!==D&&(Ek(rb,1,D),B++);var E=qb.entityId;void 0!==E&&(Q(rb,7,E),B++);var J=qb.offlineOrchestrationActionType;void 0!==J&&(S(rb,
6,Blb[J]),B++);var K=qb.offlineOrchestrationActionResult;void 0!==K&&(S(rb,2,Alb[K]),B++);var ca=qb.offlineOrchestrationFailureReason;void 0!==ca&&(S(rb,10,Clb[ca]),B++);var sa=qb.isRetryable;void 0!==sa&&(Dk(rb,3,sa),B++);var ka=qb.isRestored;void 0!==ka&&(Dk(rb,11,ka),B++);var N=qb.orchestrationAction;if(N){var Z=BMa(N);Z[0]&&(rk(rb,kA,4,Z[1]),B++)}var ya=qb.additionalOrchestrationActions;ya&&(BO(rb.j.bind(rb),ya,BMa),B++);var xa=qb.intervalSinceEnqueuedMs;void 0!==xa&&(Gk(rb,8,xa),B++);var Za=
qb.executionIntervalMs;void 0!==Za&&(Gk(rb,9,Za),B++);var Wa=qb.offlineModeType;void 0!==Wa&&(S(rb,12,sLa[Wa]),B++);var Bb=[B===Object.keys(qb).length,rb]}catch(Ra){Y(Ra),Bb=[!1,void 0]}var Qb=Bb;Qb[0]&&(rk(r,lA,3,Qb[1]),t++)}var eb=q.shortsCreationContext;if(eb){var Rb=new pA,hc=0;try{var Bc=eb.shortsCreationSurfaces;void 0!==Bc&&(CO(Rb.j.bind(Rb),Bc,Nlb),hc++);var ac=[hc===Object.keys(eb).length,Rb]}catch(Ra){Y(Ra),ac=[!1,void 0]}var uc=ac;uc[0]&&(rk(r,pA,4,uc[1]),t++)}var Wc=q.mdxConnectionContext;
if(Wc){var Nc=new Qna,Oc=0;try{var Pc=Wc.isReconnection;void 0!==Pc&&(Dk(Nc,1,Pc),Oc++);var Vb=Wc.disconnectReason;void 0!==Vb&&(S(Nc,2,hlb[Vb]),Oc++);var ud=Wc.isRetry;void 0!==ud&&(Dk(Nc,3,ud),Oc++);var kd=[Oc===Object.keys(Wc).length,Nc]}catch(Ra){Y(Ra),kd=[!1,void 0]}var fc=kd;fc[0]&&(rk(r,Qna,5,fc[1]),t++)}var Yb=q.premiumMultiStepPurchaseContext;if(Yb){var Qc=new doa,Ib=0;try{var Zc=Yb.selectedOption;if(Zc){var vd=new coa,Ob=0;try{var oe=Zc.offerType;void 0!==oe&&(S(vd,1,dkb[oe]),Ob++);var Md=
Zc.itemType;void 0!==Md&&(S(vd,2,RO[Md]),Ob++);var Nd=Zc.itemExternalId;void 0!==Nd&&(Q(vd,3,Nd),Ob++);var Oe=[Ob===Object.keys(Zc).length,vd]}catch(Ra){Y(Ra),Oe=[!1,void 0]}var xe=Oe;xe[0]&&(rk(Qc,coa,1,xe[1]),Ib++)}var Hd=Yb.itemType;void 0!==Hd&&(S(Qc,2,RO[Hd]),Ib++);var Cf=Yb.productType;void 0!==Cf&&(S(Qc,3,SO[Cf]),Ib++);var Ve=Yb.landingPageVariantId;void 0!==Ve&&(Q(Qc,4,Ve),Ib++);var $d=Yb.experimentStatus;void 0!==$d&&(S(Qc,5,jlb[$d]),Ib++);var Df=Yb.themeKey;void 0!==Df&&(Q(Qc,6,Df),Ib++);
var ae=Yb.signupType;void 0!==ae&&(S(Qc,7,klb[ae]),Ib++);var pe=[Ib===Object.keys(Yb).length,Qc]}catch(Ra){Y(Ra),pe=[!1,void 0]}var Id=pe;Id[0]&&(rk(r,doa,6,Id[1]),t++)}var wd=q.mdxReceiverConnectionContext;if(wd){var $c=new Rna,Od=0;try{var We=wd.isFromAppLaunch;void 0!==We&&(Dk($c,1,We),Od++);var Uf=wd.dialServerType;void 0!==Uf&&(S($c,2,glb[Uf]),Od++);var lg=wd.supportsSmoothPairing;void 0!==lg&&(Dk($c,3,lg),Od++);var qe=wd.hasManuallyPairedRemotesOnAppStartup;void 0!==qe&&(Dk($c,4,qe),Od++);var qc=
wd.mismatchedTheme;void 0!==qc&&(S($c,5,Zjb[qc]),Od++);var Xe=wd.mdxSenderConnectedCounter;void 0!==Xe&&(Ek($c,6,Xe),Od++);var Vh=wd.externalRouteSource;void 0!==Vh&&(S($c,7,flb[Vh]),Od++);var fe=wd.appReloadCount;void 0!==fe&&(Ek($c,8,fe),Od++);var ai=[Od===Object.keys(wd).length,$c]}catch(Ra){Y(Ra),ai=[!1,void 0]}var Ei=ai;Ei[0]&&(rk(r,Rna,7,Ei[1]),t++)}var Hf=q.parentToolsOnboardingContext;if(Hf){var cf=new Zna,ze=0;try{var bi=Hf.triggerPoint;void 0!==bi&&(S(cf,1,pkb[bi]),ze++);var sc=Hf.kidsFlowInfo;
if(sc){var vc=new Yna,Hc=0;try{var oj=sc.kidsFlowVersion;void 0!==oj&&(S(vc,1,mkb[oj]),Hc++);var If=sc.flowLabel;void 0!==If&&(Q(vc,2,If),Hc++);var Qg=sc.hostClientName;void 0!==Qg&&(S(vc,3,nkb[Qg]),Hc++);var pg=sc.hostClientVersion;void 0!==pg&&(Q(vc,4,pg),Hc++);var Fi=sc.kidsFlowType;void 0!==Fi&&(S(vc,5,lkb[Fi]),Hc++);var pj=[Hc===Object.keys(sc).length,vc]}catch(Ra){Y(Ra),pj=[!1,void 0]}var Gi=pj;Gi[0]&&(rk(cf,Yna,2,Gi[1]),ze++)}var of=Hf.kidsCorpusPreferenceNew;void 0!==of&&(S(cf,3,kkb[of]),
ze++);var fd=Hf.appChoice;void 0!==fd&&(S(cf,4,okb[fd]),ze++);var Jf=Hf.isKidSignedIn;void 0!==Jf&&(Dk(cf,5,Jf),ze++);var Hi=Hf.alreadyOnboardedYtk;void 0!==Hi&&(Dk(cf,6,Hi),ze++);var df=Hf.alreadyOnboardedSupex;void 0!==df&&(Dk(cf,7,df),ze++);var qg=[ze===Object.keys(Hf).length,cf]}catch(Ra){Y(Ra),qg=[!1,void 0]}var Yf=qg;Yf[0]&&(rk(r,Zna,8,Yf[1]),t++)}var Ii=q.hashtagAutoCompleteContext;if(Ii){var Zf=new Fna,rg=0;try{var rh=Ii.suggestionSelected;void 0!==rh&&(Ek(Zf,1,rh),rg++);var sh=[rg===Object.keys(Ii).length,
Zf]}catch(Ra){Y(Ra),sh=[!1,void 0]}var sg=sh;sg[0]&&(rk(r,Fna,9,sg[1]),t++)}var Ae=q.liveStreamingContext;if(Ae){var ef=new Pna,ge=0;try{var th=Ae.broadcastSource;void 0!==th&&(S(ef,1,vkb[th]),ge++);var ff=Ae.isAutoDashboard;void 0!==ff&&(Dk(ef,2,ff),ge++);var pf=Ae.externalVideoId;void 0!==pf&&(Q(ef,3,pf),ge++);var Kf=Ae.broadcastConferenceType;void 0!==Kf&&(S(ef,4,tkb[Kf]),ge++);var tg=Ae.eventData;if(tg){var Rg=new Ona,se=0;try{var ug=tg.webrtcHandshakeOffer;if(ug){var Lf=new Nna,Ji=0;try{var uh=
ug.localVideoSsrc;void 0!==uh&&(Fk(Lf,1,uh),Ji++);var Vl=ug.localAudioSsrc;void 0!==Vl&&(Fk(Lf,2,Vl),Ji++);var Wl=ug.participantId;void 0!==Wl&&(Hk(Lf,3,Wl),Ji++);var Sk=[Ji===Object.keys(ug).length,Lf]}catch(Ra){Y(Ra),Sk=[!1,void 0]}var Xl=Sk;Xl[0]&&(rk(Rg,Nna,1,Xl[1]),se++)}var Wj=tg.webrtcHandshakeAnswer;if(Wj){var gf=new Lna,Be=0;try{var Td=Wj.remoteVideoSsrc;void 0!==Td&&(Fk(gf,1,Td),Be++);var Sg=Wj.remoteAudioSsrc;void 0!==Sg&&(Fk(gf,2,Sg),Be++);var Ki=[Be===Object.keys(Wj).length,gf]}catch(Ra){Y(Ra),
Ki=[!1,void 0]}var Yl=Ki;Yl[0]&&(rk(Rg,Lna,2,Yl[1]),se++)}var Tk=tg.webrtcHandshakeError;if(Tk){var Xj=new Mna,vh=0;try{var Tg=Tk.description;void 0!==Tg&&(Q(Xj,1,Tg),vh++);var qf=[vh===Object.keys(Tk).length,Xj]}catch(Ra){Y(Ra),qf=[!1,void 0]}var ci=qf;ci[0]&&(rk(Rg,Mna,3,ci[1]),se++)}var Uk=tg.costreamStartNotification;if(Uk){var Zl=new Ina,di=0;try{var Li=Uk.broadcastStartTimeMs;void 0!==Li&&(Gk(Zl,1,Li),di++);var ei=[di===Object.keys(Uk).length,Zl]}catch(Ra){Y(Ra),ei=[!1,void 0]}var vg=ei;vg[0]&&
(rk(Rg,Ina,4,vg[1]),se++)}var fi=tg.remoteParticipant;if(fi){var Mi=new Kna,Yj=0;try{var $l=fi.videoSsrc;void 0!==$l&&(Fk(Mi,1,$l),Yj++);var Zj=fi.audioSsrc;void 0!==Zj&&(Fk(Mi,2,Zj),Yj++);var Vk=[Yj===Object.keys(fi).length,Mi]}catch(Ra){Y(Ra),Vk=[!1,void 0]}var am=Vk;am[0]&&(rk(Rg,Kna,5,am[1]),se++)}var rf=tg.webcamEventData;if(rf){var $f=new iA,Mf=0;try{var ag=rf.videoFrameRate;void 0!==ag&&(Ik($f,1,ag),Mf++);var bm=rf.videoAspectRatio;void 0!==bm&&(Ik($f,2,bm),Mf++);var cm=rf.videoHeight;void 0!==
cm&&(Fk($f,3,cm),Mf++);var nc=rf.videoWidth;void 0!==nc&&(Fk($f,4,nc),Mf++);var Lo=rf.videoCaptureCursor;void 0!==Lo&&(Q($f,5,Lo),Mf++);var qj=rf.videoCaptureSurface;void 0!==qj&&(Q($f,6,qj),Mf++);var Wk=rf.videoCaptureAudioEnabled;void 0!==Wk&&(Dk($f,7,Wk),Mf++);var rj=[Mf===Object.keys(rf).length,$f]}catch(Ra){Y(Ra),rj=[!1,void 0]}var Mo=rj;Mo[0]&&(rk(Rg,iA,6,Mo[1]),se++)}var sj=tg.errorEventData;if(sj){var Xk=new Jna,dm=0;try{var No=sj.liveClientErrorType;void 0!==No&&(S(Xk,1,rkb[No]),dm++);var em=
sj.liveServerErrorType;void 0!==em&&(S(Xk,2,skb[em]),dm++);var Yk=sj.kioskClientApiErrorType;void 0!==Yk&&(S(Xk,3,qkb[Yk]),dm++);var tq=[dm===Object.keys(sj).length,Xk]}catch(Ra){Y(Ra),tq=[!1,void 0]}var jn=tq;jn[0]&&(rk(Rg,Jna,7,jn[1]),se++)}var kn=tg.adsAutomationEventData;if(kn){var Oo=new Hna,Po=0;try{var tj=kn.adsAutomationSettingsType;void 0!==tj&&(S(Oo,1,$jb[tj]),Po++);var gi=kn.adsAutomationIntervalSec;void 0!==gi&&(Ek(Oo,2,gi),Po++);var Ug=kn.isNonConcurrent;void 0!==Ug&&(Dk(Oo,3,Ug),Po++);
var Zk=[Po===Object.keys(kn).length,Oo]}catch(Ra){Y(Ra),Zk=[!1,void 0]}var uq=Zk;uq[0]&&(rk(Rg,Hna,8,uq[1]),se++)}var Qo=[se===Object.keys(tg).length,Rg]}catch(Ra){Y(Ra),Qo=[!1,void 0]}var vq=Qo;vq[0]&&(rk(ef,Ona,5,vq[1]),ge++)}var Ro=Ae.isMonetizationOn;void 0!==Ro&&(Dk(ef,6,Ro),ge++);var wq=Ae.sharedmdeEnabled;void 0!==wq&&(Dk(ef,7,wq),ge++);var xq=Ae.isScreencast;void 0!==xq&&(Dk(ef,8,xq),ge++);var Vg=Ae.broadcastLifecycleStatus;void 0!==Vg&&(S(ef,9,ukb[Vg]),ge++);var Ni=Ae.hasCreatedMobileLivestream;
void 0!==Ni&&(Dk(ef,10,Ni),ge++);var Oi=[ge===Object.keys(Ae).length,ef]}catch(Ra){Y(Ra),Oi=[!1,void 0]}var yq=Oi;yq[0]&&(rk(r,Pna,10,yq[1]),t++)}var Wg=q.touAppealContext;if(Wg){var Ud=new vA,Qe=0;try{var ln=Wg.scope;void 0!==ln&&(Q(Ud,1,ln),Qe++);var So=Wg.videoId;if(So){var zq=new uA,mn=0;try{var nn=So.externalVideoId;void 0!==nn&&(Q(zq,1,nn),mn++);var fm=[mn===Object.keys(So).length,zq]}catch(Ra){Y(Ra),fm=[!1,void 0]}var Aq=fm;Aq[0]&&(Ud.setVideoId(Aq[1]),Qe++)}var Pi=Wg.videoThumbnailId;if(Pi){var uj=
new noa,ak=0;try{var $k=Pi.externalVideoId;void 0!==$k&&(Q(uj,1,$k),ak++);var al=Pi.thumbnailVersion;void 0!==al&&(Hk(uj,3,al),ak++);var gm=Pi.checksum;void 0!==gm&&(Hk(uj,4,gm),ak++);var Bq=[ak===Object.keys(Pi).length,uj]}catch(Ra){Y(Ra),Bq=[!1,void 0]}var Cq=Bq;Cq[0]&&(sk(Ud,noa,3,D2,Cq[1]),Qe++)}var To=Wg.playlistId;if(To){var on=new rA,Uo=0;try{var Vo=To.externalPlaylistId;void 0!==Vo&&(Q(on,1,Vo),Uo++);var Xg=[Uo===Object.keys(To).length,on]}catch(Ra){Y(Ra),Xg=[!1,void 0]}var hi=Xg;hi[0]&&(sk(Ud,
rA,4,D2,hi[1]),Qe++)}var oc=Wg.urlHostname;void 0!==oc&&(Tj(Ud,5,D2,Zi(oc)),Qe++);var wh=Wg.postId;if(wh){var Wo=new moa,hm=0;try{var im=wh.externalPostId;void 0!==im&&(Q(Wo,1,im),hm++);var jm=[hm===Object.keys(wh).length,Wo]}catch(Ra){Y(Ra),jm=[!1,void 0]}var Xo=jm;Xo[0]&&(sk(Ud,moa,9,D2,Xo[1]),Qe++)}var Yo=Wg.encodedTouViolativeContentId;void 0!==Yo&&(Q(Ud,6,Yo),Qe++);var Dq=Wg.encodedChannelTouViolativeContentId;void 0!==Dq&&(Q(Ud,7,Dq),Qe++);var vj=Wg.trainingData;if(vj){var wj=new tA,bl=0;try{var km=
vj.question;if(km){var pn=new loa,Zo=0;try{var bk=km.questionId;void 0!==bk&&(Ek(pn,1,bk),Zo++);var ck=km.supplementaryInfoId;void 0!==ck&&(Ek(pn,2,ck),Zo++);var cl=[Zo===Object.keys(km).length,pn]}catch(Ra){Y(Ra),cl=[!1,void 0]}var qn=cl;qn[0]&&(rk(wj,loa,1,qn[1]),bl++)}var Eq=vj.answers;Eq&&(BO(wj.j.bind(wj),Eq,CMa),bl++);var $o=vj.correctAnswers;$o&&(BO(wj.B.bind(wj),$o,CMa),bl++);var dl=vj.strikeId;void 0!==dl&&(Q(wj,4,dl),bl++);var lm=vj.preTrainingMaterialId;void 0!==lm&&(Ek(wj,5,lm),bl++);
var Qi=[bl===Object.keys(vj).length,wj]}catch(Ra){Y(Ra),Qi=[!1,void 0]}var Fq=Qi;Fq[0]&&(rk(Ud,tA,8,Fq[1]),Qe++)}var Gq=[Qe===Object.keys(Wg).length,Ud]}catch(Ra){Y(Ra),Gq=[!1,void 0]}var Hq=Gq;Hq[0]&&(rk(r,vA,11,Hq[1]),t++)}var rn=q.dragAndDropContext;if(rn){var sn=new fA,dk=0;try{var el=rn.rootVe;if(el){var tn=DO(el);tn[0]&&(rk(sn,eA,1,tn[1]),dk++)}var mm=rn.ve;if(mm){var ap=DO(mm);ap[0]&&(rk(sn,eA,2,ap[1]),dk++)}var Iq=[dk===Object.keys(rn).length,sn]}catch(Ra){Y(Ra),Iq=[!1,void 0]}var Jq=Iq;Jq[0]&&
(rk(r,fA,12,Jq[1]),t++)}var nm=q.socialSuggestionsContext;if(nm){var om=new qA,wg=0;try{var xh=nm.socialSuggestionsType;void 0!==xh&&(S(om,1,mlb[xh]),wg++);var ii=nm.suggestionSelected;void 0!==ii&&(Ek(om,2,ii),wg++);var hf=nm.source;void 0!==hf&&(S(om,3,nlb[hf]),wg++);var Kq=[wg===Object.keys(nm).length,om]}catch(Ra){Y(Ra),Kq=[!1,void 0]}var bp=Kq;bp[0]&&(rk(r,qA,13,bp[1]),t++)}var cp=q.featureEnablementContext;if(cp){var fl=new gA,xg=0;try{var yg=cp.feature;void 0!==yg&&(S(fl,1,QJa[yg]),xg++);var gl=
[xg===Object.keys(cp).length,fl]}catch(Ra){Y(Ra),gl=[!1,void 0]}var dp=gl;dp[0]&&(rk(r,gA,14,dp[1]),t++)}var ek=q.iapContext;if(ek){var fk=new hA,hl=0;try{var pm=ek.playIapProduct;if(pm){var ep=new Gna,fp=0;try{var Lq=pm.packageId;void 0!==Lq&&(Q(ep,1,Lq),fp++);var un=pm.productId;void 0!==un&&(Q(ep,2,un),fp++);var vn=[fp===Object.keys(pm).length,ep]}catch(Ra){Y(Ra),vn=[!1,void 0]}var il=vn;il[0]&&(sk(fk,Gna,1,Vkb,il[1]),hl++)}var gp=ek.source;void 0!==gp&&(S(fk,2,$kb[gp]),hl++);var jl=ek.attributionId;
void 0!==jl&&(Gk(fk,3,jl),hl++);var wn=ek.externalVideoId;void 0!==wn&&(Q(fk,4,wn),hl++);var xn=ek.externalChannelId;void 0!==xn&&(Q(fk,5,xn),hl++);var Mq=[hl===Object.keys(ek).length,fk]}catch(Ra){Y(Ra),Mq=[!1,void 0]}var at=Mq;at[0]&&(rk(r,hA,15,at[1]),t++)}var qm=q.shoppingCheckoutContext;if(qm){var hp=new ioa,ip=0;try{var Nq=qm.shoppingFlowParams;if(Nq){var jp=FMa(Nq);jp[0]&&(rk(hp,oA,1,jp[1]),ip++)}var rm=qm.shoppingCheckoutErrorReason;void 0!==rm&&(S(hp,2,llb[rm]),ip++);var sm=[ip===Object.keys(qm).length,
hp]}catch(Ra){Y(Ra),sm=[!1,void 0]}var yn=sm;yn[0]&&(rk(r,ioa,16,yn[1]),t++)}var zn=q.ypcCancellationContext;if(zn){var kp=new roa,lp=0;try{var Oq=zn.itemType;void 0!==Oq&&(S(kp,1,RO[Oq]),lp++);var mp=zn.productType;void 0!==mp&&(S(kp,2,SO[mp]),lp++);var Pq=[lp===Object.keys(zn).length,kp]}catch(Ra){Y(Ra),Pq=[!1,void 0]}var Qq=Pq;Qq[0]&&(rk(r,roa,17,Qq[1]),t++)}var he=q.ypcBrowseOffersContext;if(he){var Ce=new qoa,De=0;try{var An=he.commerceFlowLoggingParams;if(An){var Bn=KMa(An);Bn[0]&&(rk(Ce,xA,
1,Bn[1]),De++)}var np=he.offerType;void 0!==np&&(S(Ce,2,ekb[np]),De++);var Rq=he.entityType;void 0!==Rq&&(S(Ce,3,Rkb[Rq]),De++);var Sq=[De===Object.keys(he).length,Ce]}catch(Ra){Y(Ra),Sq=[!1,void 0]}var Tq=Sq;Tq[0]&&(rk(r,qoa,18,Tq[1]),t++)}var op=q.mdxStreamTransferContext;if(op){var Ri=new Sna,yh=0;try{var ji=op.completedReason;void 0!==ji&&(S(Ri,1,ilb[ji]),yh++);var Uq=[yh===Object.keys(op).length,Ri]}catch(Ra){Y(Ra),Uq=[!1,void 0]}var Vq=Uq;Vq[0]&&(rk(r,Sna,19,Vq[1]),t++)}var tm=q.pdgBuyFlowContext;
if(tm){var um=new boa,vm=0;try{var pp=tm.productType;void 0!==pp&&(S(um,1,SO[pp]),vm++);var gk=tm.entryPointClickedContext;if(gk){var wm=new $na,Si=0;try{var Cn=gk.superVodBuyFlowEntryPoint;void 0!==Cn&&(Lk(wm,1,C2,Glb[Cn]),Si++);var Dn=gk.superChatBuyFlowEntryPoint;void 0!==Dn&&(Lk(wm,2,C2,Elb[Dn]),Si++);var qp=gk.sharedPdgBuyFlowEntryPoint;void 0!==qp&&(Lk(wm,3,C2,Dlb[qp]),Si++);var Wq=gk.superStickerBuyFlowEntryPoint;void 0!==Wq&&(Lk(wm,4,C2,Flb[Wq]),Si++);var hk=[Si===Object.keys(gk).length,wm]}catch(Ra){Y(Ra),
hk=[!1,void 0]}var kl=hk;kl[0]&&(rk(um,$na,2,kl[1]),vm++)}var ik=tm.itemSelectionPageDisplayedContext;if(ik){var Xq=new aoa,En=0;try{var rp=ik.superStickerBuyFlowType;void 0!==rp&&(S(Xq,1,Hlb[rp]),En++);var sp=[En===Object.keys(ik).length,Xq]}catch(Ra){Y(Ra),sp=[!1,void 0]}var Yq=sp;Yq[0]&&(rk(um,aoa,3,Yq[1]),vm++)}var Zq=[vm===Object.keys(tm).length,um]}catch(Ra){Y(Ra),Zq=[!1,void 0]}var $q=Zq;$q[0]&&(rk(r,boa,20,$q[1]),t++)}var ll=q.ypcPurchaseContext;if(ll){var ml=new voa,xm=0;try{var ar=ll.commerceFlowLoggingParams;
if(ar){var Yg=KMa(ar);Yg[0]&&(rk(ml,xA,1,Yg[1]),xm++)}var bg=ll.offerType;void 0!==bg&&(S(ml,2,ekb[bg]),xm++);var cg=ll.transactionType;void 0!==cg&&(S(ml,3,slb[cg]),xm++);var br=ll.paymentProcessor;void 0!==br&&(S(ml,4,fkb[br]),xm++);var nl=[xm===Object.keys(ll).length,ml]}catch(Ra){Y(Ra),nl=[!1,void 0]}var xj=nl;xj[0]&&(rk(r,voa,21,xj[1]),t++)}var zh=q.webViewContext;if(zh){var dg=new ooa,zg=0;try{var ki=zh.hostname;void 0!==ki&&(Q(dg,1,ki),zg++);var bt=zh.webViewUseCase;void 0!==bt&&(S(dg,2,Tlb[bt]),
zg++);var Zg=zh.isFirstPartyHost;void 0!==Zg&&(Dk(dg,5,Zg),zg++);var cr=zh.isLoaded;void 0!==cr&&(Dk(dg,3,cr),zg++);var dr=zh.webViewEngagementSec;void 0!==dr&&(Ek(dg,4,dr),zg++);var ol=[zg===Object.keys(zh).length,dg]}catch(Ra){Y(Ra),ol=[!1,void 0]}var er=ol;er[0]&&(rk(r,ooa,22,er[1]),t++)}var Ah=q.videoSuggestionsContext;if(Ah){var Fn=new wA,tp=0;try{var ct=Ah.type;void 0!==ct&&(S(Fn,1,akb[ct]),tp++);var fr=Ah.serializedSuggestionData;void 0!==fr&&(Kk(Fn,2,fr),tp++);var gr=Ah.videoId;void 0!==gr&&
(Fn.setVideoId(gr),tp++);var hr=[tp===Object.keys(Ah).length,Fn]}catch(Ra){Y(Ra),hr=[!1,void 0]}var ir=hr;ir[0]&&(rk(r,wA,23,ir[1]),t++)}var ym=q.actionSheetContext;if(ym){var Bh=new Ena,jk=0;try{var kk=ym.parentScreenUiType;void 0!==kk&&(Ek(Bh,1,kk),jk++);var pl=[jk===Object.keys(ym).length,Bh]}catch(Ra){Y(Ra),pl=[!1,void 0]}var up=pl;up[0]&&(rk(r,Ena,24,up[1]),t++)}var zm=q.producerExportContext;if(zm){var dt=new goa,et=0;try{var lk=zm.exportDetails;if(lk){var Ti=new foa,Ch=0;try{var mk=lk.project;
if(mk){var nk=new nA,ok=0;try{var ft=mk.projectId;void 0!==ft&&(Q(nk,1,ft),ok++);var gt=mk.durationMs;void 0!==gt&&(Hk(nk,2,gt),ok++);var ht=[ok===Object.keys(mk).length,nk]}catch(Ra){Y(Ra),ht=[!1,void 0]}var jr=ht;jr[0]&&(rk(Ti,nA,1,jr[1]),Ch++)}var ql=lk.renderDetails;if(ql){var Ui=new eoa,Vi=0;try{var Am=ql.sizeBytes;void 0!==Am&&(Gk(Ui,1,Am),Vi++);var kr=ql.pixelWidth;void 0!==kr&&(Ek(Ui,2,kr),Vi++);var vp=ql.pixelHeight;void 0!==vp&&(Ek(Ui,3,vp),Vi++);var lr=[Vi===Object.keys(ql).length,Ui]}catch(Ra){Y(Ra),
lr=[!1,void 0]}var mr=lr;mr[0]&&(rk(Ti,eoa,2,mr[1]),Ch++)}var wp=[Ch===Object.keys(lk).length,Ti]}catch(Ra){Y(Ra),wp=[!1,void 0]}var nr=wp;nr[0]&&(rk(dt,foa,1,nr[1]),et++)}var or=[et===Object.keys(zm).length,dt]}catch(Ra){Y(Ra),or=[!1,void 0]}var rl=or;rl[0]&&(rk(r,goa,25,rl[1]),t++)}var sf=q.downloadMyVideoContext;if(sf){var li=new dA,Wi=0;try{var Gn=sf.videoId;void 0!==Gn&&(li.setVideoId(Gn),Wi++);var bv=sf.videoSid;void 0!==bv&&(Gk(li,2,bv),Wi++);var Cx=sf.downloadError;void 0!==Cx&&(S(li,3,Xkb[Cx]),
Wi++);var Dx=sf.totalAssetSize;void 0!==Dx&&(Gk(li,4,Dx),Wi++);var Ex=sf.totalDownloadedPercent;void 0!==Ex&&(Fk(li,5,Ex),Wi++);var Fx=sf.mddDownloadErrorCode;void 0!==Fx&&(Fk(li,6,Fx),Wi++);var cv=[Wi===Object.keys(sf).length,li]}catch(Ra){Y(Ra),cv=[!1,void 0]}var Gx=cv;Gx[0]&&(rk(r,dA,26,Gx[1]),t++)}var pr=q.miniAppContext;if(pr){var it=new ina,jt=0;try{var Hx=pr.externalPostId;void 0!==Hx&&(Q(it,1,Hx),jt++);var kt=pr.miniAppReleaseId;void 0!==kt&&(Ek(it,3,kt),jt++);var qr=pr.postPlayNonce;void 0!==
qr&&(Q(it,4,qr),jt++);var dv=[jt===Object.keys(pr).length,it]}catch(Ra){Y(Ra),dv=[!1,void 0]}var Ix=dv;Ix[0]&&(rk(r,ina,27,Ix[1]),t++)}var ev=q.shoppingCartContext;if(ev){var Jx=new hoa,Kx=0;try{var Lx=ev.shoppingFlowParams;if(Lx){var Mx=FMa(Lx);Mx[0]&&(rk(Jx,oA,1,Mx[1]),Kx++)}var Nx=[Kx===Object.keys(ev).length,Jx]}catch(Ra){Y(Ra),Nx=[!1,void 0]}var Ox=Nx;Ox[0]&&(rk(r,hoa,28,Ox[1]),t++)}var Na=q.sponsorshipsPurchaseContext;if(Na){var NN=new joa,ON=0;try{var rB=Na.joinMethod;void 0!==rB&&(S(NN,1,
gkb[rB]),ON++);var sG=[ON===Object.keys(Na).length,NN]}catch(Ra){Y(Ra),sG=[!1,void 0]}var tG=sG;tG[0]&&(rk(r,joa,29,tG[1]),t++)}var sB=q.ypcCujContext;if(sB){var uG=new uoa,vG=0;try{var PN=sB.serializedYpcCujLoggingParams;void 0!==PN&&(Kk(uG,1,PN),vG++);var wG=sB.ypcCujLoggingClientPayload;if(wG){var QN=new toa,RN=0;try{var xG=wG.ypcAcquisitionCujLoggingClientPayload;if(xG){var SN=new soa,TN=0;try{var fv=xG.ypcAcquisitionDebugLoggingParams;if(fv){var nb=new yA,TQ=0;try{var F0a=fv.transactionErrorType;
void 0!==F0a&&(S(nb,1,rlb[F0a]),TQ++);var G0a=fv.commerceErrorType;void 0!==G0a&&(S(nb,4,qlb[G0a]),TQ++);var H0a=fv.errorMessage;void 0!==H0a&&(Q(nb,2,H0a),TQ++);var I0a=fv.errorInfo;void 0!==I0a&&(Q(nb,3,I0a),TQ++);var J0a=[TQ===Object.keys(fv).length,nb]}catch(Ra){Y(Ra),J0a=[!1,void 0]}var K0a=J0a;K0a[0]&&(rk(SN,yA,1,K0a[1]),TN++)}var L0a=[TN===Object.keys(xG).length,SN]}catch(Ra){Y(Ra),L0a=[!1,void 0]}var M0a=L0a;M0a[0]&&(sk(QN,soa,1,Wkb,M0a[1]),RN++)}var N0a=[RN===Object.keys(wG).length,QN]}catch(Ra){Y(Ra),
N0a=[!1,void 0]}var O0a=N0a;O0a[0]&&(rk(uG,toa,2,O0a[1]),vG++)}var P0a=[vG===Object.keys(sB).length,uG]}catch(Ra){Y(Ra),P0a=[!1,void 0]}var Q0a=P0a;Q0a[0]&&(rk(r,uoa,30,Q0a[1]),t++)}var R0a=[t===Object.keys(q).length,r]}catch(Ra){Y(Ra),R0a=[!1,void 0]}var S0a=R0a;S0a[0]&&(rk(b,woa,3,S0a[1]),c++)}var T0a=a.flowType;void 0!==T0a&&(S(b,4,Zkb[T0a]),c++);var U0a=a.flowEventStatus;void 0!==U0a&&(Ek(b,5,U0a),c++);var V0a=a.csn;void 0!==V0a&&(Q(b,6,V0a),c++);var W0a=a.can;void 0!==W0a&&(Q(b,7,W0a),c++);var aqa=
a.cuiAssociations;if(aqa){var bqa=new Iy,X0a=0;try{var Y0a=aqa.association;Y0a&&(BO(bqa.j.bind(bqa),Y0a,yMa),X0a++);var Z0a=[X0a===Object.keys(aqa).length,bqa]}catch(Ra){Y(Ra),Z0a=[!1,void 0]}var $0a=Z0a;$0a[0]&&(rk(b,Iy,8,$0a[1]),c++)}return[c===Object.keys(a).length,b]}catch(Ra){return Y(Ra),[!1,void 0]}},
idbQuotaExceeded:function(a){var b=new Coa,c=0;try{var d=a.deviceStorageUsageMbytes;void 0!==d&&(Gk(b,1,d),c++);var e=a.deviceStorageQuotaMbytes;void 0!==e&&(Gk(b,2,e),c++);var f=a.isIframe;void 0!==f&&(Dk(b,3,f),c++);var h=a.isSw;void 0!==h&&(Dk(b,4,h),c++);var l=a.dbName;void 0!==l&&(Q(b,5,l),c++);var m=a.objectStoreNames;void 0!==m&&(Q(b,6,m),c++);var n=a.transactionCount;void 0!==n&&(Ek(b,7,n),c++);var p=a.transactionMode;void 0!==p&&(Q(b,8,p),c++);return[c===Object.keys(a).length,b]}catch(q){return Y(q),
[!1,void 0]}},
idbTransactionAborted:function(a){var b=new Doa,c=0;try{var d=a.objectStoreNames;void 0!==d&&(Q(b,1,d),c++);var e=a.hasWindowUnloaded;void 0!==e&&(Dk(b,2,e),c++);var f=a.transactionCount;void 0!==f&&(Ek(b,3,f),c++);var h=a.transactionDuration;void 0!==h&&(Ek(b,4,h),c++);var l=a.dbDuration;void 0!==l&&(Ek(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 Yoa,c=0;try{var d=a.serializedIncrementBatch;void 0!==d&&(Kk(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 bA,c=0;try{var d=a.loggedEvents;d&&(BO(b.j.bind(b),d,nNa),c++);var e=a.unloggedEvents;e&&(BO(b.B.bind(b),e,nNa),c++);var f=a.playerClientVersion;void 0!==f&&(Hk(b,3,f),c++);var h=a.playerCanaryState;void 0!==h&&(S(b,4,Qkb[h]),c++);var l=a.dimensions;if(l){var m=new yna;d=0;try{var n=l.playerClientVersion;void 0!==n&&(Hk(m,1,n),d++);var p=l.playerCanaryState;void 0!==p&&(S(m,2,Qkb[p]),d++);var q=[d===Object.keys(l).length,m]}catch(r){Y(r),q=[!1,void 0]}l=q;l[0]&&
(rk(b,yna,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 CA,c=0;try{var d=a.cpn;void 0!==d&&(Q(b,1,d),c++);var e=a.playbackVe;if(e){var f=DO(e);f[0]&&(rk(b,eA,2,f[1]),c++)}var h=a.csn;void 0!==h&&(Q(b,3,h),c++);var l=a.queueInfo;if(l){var m=new BA;d=0;try{var n=l.enqueueingVe;if(n){var p=DO(n);p[0]&&(rk(m,eA,1,p[1]),d++)}var q=l.enqueueingCsn;void 0!==q&&(Q(m,2,q),d++);var r=l.clientEnqueueingTimeMs;void 0!==r&&(Gk(m,3,r),d++);var t=[d===Object.keys(l).length,m]}catch(v){Y(v),t=[!1,void 0]}l=t;l[0]&&(rk(b,BA,4,l[1]),
c++)}return[c===Object.keys(a).length,b]}catch(v){return Y(v),[!1,void 0]}},
autoplayTriggered:function(a){var b=new Ana,c=0;try{var d=a.intentional;void 0!==d&&(Dk(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 YA,c=0;try{var d=a.callerUrl;void 0!==d&&(Q(b,1,d),c++);var e=a.methodName;void 0!==e&&(Q(b,2,e),c++);var f=a.origin;void 0!==f&&(Q(b,3,f),c++);var h=a.playerStyle;void 0!==h&&(Q(b,4,h),c++);var l=a.embeddedPlayerMode;void 0!==l&&(S(b,5,hkb[l]),c++);var m=a.errorCode;void 0!==m&&(Ek(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 zna,c=0;try{var d=a.eventType;void 0!==d&&(S(b,1,Tkb[d]),c++);var e=a.breakType;void 0!==e&&(S(b,2,Skb[e]),c++);var f=a.packageName;void 0!==f&&(Q(b,3,f),c++);var h=a.embedUrl;void 0!==h&&(Q(b,4,h),c++);var l=a.adSource;void 0!==l&&(S(b,5,Ukb[l]),c++);var m=a.youtubeHost;void 0!==m&&(Q(b,6,m),c++);var n=a.embeddedPlayerMode;void 0!==n&&(S(b,7,hkb[n]),c++);return[c===Object.keys(a).length,b]}catch(p){return Y(p),[!1,void 0]}},
embedsShouldRequestStorageAccessResult:function(a){var b=new Cna,c=0;try{var d=a.result;void 0!==d&&(Dk(b,1,d),c++);var e=a.returnsUndefined;void 0!==e&&(Dk(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 Bna,c=0;try{var d=a.isCued;void 0!==d&&(Dk(b,1,d),c++);var e=a.isAutoplayBlocked;void 0!==e&&(Dk(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 cA,c=0;try{var d=a.state;void 0!==d&&(b.Bc(d),c++);return[c===Object.keys(a).length,b]}catch(e){return Y(e),[!1,void 0]}},
heartbeatActionPlayerHalted:function(a){var b=new Aoa,c=0;try{var d=a.serializedServerContext;void 0!==d&&(Kk(b,1,d),c++);var e=a.enforcedPolicyToHaltOnNetworkFailure;void 0!==e&&(Dk(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 Boa,c=0;try{var d=a.reason;void 0!==d&&(S(b,1,alb[d]),c++);var e=a.trigger;void 0!==e&&(S(b,2,blb[e]),c++);var f=a.serializedServerContext;void 0!==f&&(Kk(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 Dna,c=0;try{var d=a.accepted;void 0!==d&&(Dk(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 zA,c=0;try{var d=a.started;void 0!==d&&(Dk(b,1,d),c++);var e=a.stateAtSend;void 0!==e&&(S(b,2,plb[e]),c++);var f=a.joinLatencySecs;void 0!==f&&(Ik(b,4,f),c++);var h=a.playTimeSecs;void 0!==h&&(Ik(b,5,h),c++);var l=a.rebufferTimeSecs;void 0!==l&&(Ik(b,6,l),c++);var m=a.playerCanaryType;void 0!==m&&(S(b,7,dlb[m]),c++);var n=a.isAd;void 0!==n&&(Dk(b,8,n),c++);var p=a.liveMode;void 0!==p&&(S(b,9,olb[p]),c++);var q=a.isGapless;void 0!==q&&(Dk(b,10,q),c++);var r=
a.hasDrm;void 0!==r&&(Dk(b,11,r),c++);var t=a.seekCount;void 0!==t&&(Ek(b,12,t),c++);var v=a.networkErrorCount;void 0!==v&&(Ek(b,13,v),c++);var w=a.nonNetworkErrorCount;void 0!==w&&(Ek(b,14,w),c++);var A=a.isServerStitchedDai;void 0!==A&&(Dk(b,15,A),c++);var C=a.playerCanaryStage;void 0!==C&&(S(b,16,clb[C]),c++);var F=a.encounteredSabrFallback;void 0!==F&&(Dk(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 Pma,c=0;try{var d=a.cuepointTrigger;if(d){var e=new Xy,f=0;try{var h=d.type;void 0!==h&&(S(e,1,Ckb[h]),f++);var l=d.event;void 0!==l&&(S(e,2,Bkb[l]),f++);var m=d.cuepointId;void 0!==m&&(Q(e,3,m),f++);var n=d.totalCueDurationMs;void 0!==n&&(Ik(e,4,n),f++);var p=d.playheadTimeMs;void 0!==p&&(Ik(e,5,p),f++);var q=d.cueStartTimeMs;void 0!==q&&(Ik(e,6,q),f++);var r=d.cuepointReceivedTimeMs;void 0!==r&&(Ik(e,7,r),f++);var t=d.contentCpn;void 0!==t&&(Q(e,8,t),f++);
var v=d.externalChannelId;void 0!==v&&(Q(e,9,v),f++);var w=[f===Object.keys(d).length,e]}catch(nc){Y(nc),w=[!1,void 0]}var A=w;A[0]&&(sk(b,Xy,1,B2,A[1]),c++)}var C=a.daiStateTrigger;if(C){var F=new bz,G=0;try{var L=C.contentCpn;void 0!==L&&(Q(F,1,L),G++);var M=C.totalCueDurationMs;void 0!==M&&(Ik(F,2,M),G++);var R=C.filledAdsDurationMs;void 0!==R&&(Ik(F,3,R),G++);var ea=C.cueStartChange;void 0!==ea&&(S(F,4,Ikb[ea]),G++);var ma=C.cueDurationChange;void 0!==ma&&(S(F,5,Gkb[ma]),G++);var oa=C.cueDurationChangeReason;
void 0!==oa&&(S(F,6,Hkb[oa]),G++);var ia=C.errorType;void 0!==ia&&(S(F,7,Jkb[ia]),G++);var va=C.externalChannelId;void 0!==va&&(Q(F,8,va),G++);var aa=C.adClientData;if(aa){var U=sMa(aa);U[0]&&(rk(F,Ty,9,U[1]),G++)}var La=[G===Object.keys(C).length,F]}catch(nc){Y(nc),La=[!1,void 0]}var x=La;x[0]&&(sk(b,bz,2,B2,x[1]),c++)}var ba=a.daiAdBreakCriticalError;if(ba){var Ja=new Yy,cb=0;try{var ob=ba.contentCpn;void 0!==ob&&(Q(Ja,1,ob),cb++);var Qa=ba.errorType;void 0!==Qa&&(S(Ja,2,Jkb[Qa]),cb++);var Ua=ba.externalChannelId;
void 0!==Ua&&(Q(Ja,3,Ua),cb++);var ib=ba.msg;void 0!==ib&&(Q(Ja,4,ib),cb++);var qb=ba.cueIdentifier;void 0!==qb&&(Q(Ja,5,qb),cb++);var rb=[cb===Object.keys(ba).length,Ja]}catch(nc){Y(nc),rb=[!1,void 0]}var B=rb;B[0]&&(sk(b,Yy,3,B2,B[1]),c++)}var D=a.daiAdBreakWarning;if(D){var E=new $y,J=0;try{var K=D.contentCpn;void 0!==K&&(Q(E,1,K),J++);var ca=D.errorType;void 0!==ca&&(S(E,2,Jkb[ca]),J++);var sa=D.externalChannelId;void 0!==sa&&(Q(E,3,sa),J++);var ka=D.msg;void 0!==ka&&(Q(E,4,ka),J++);var N=D.cueIdentifier;
void 0!==N&&(Q(E,5,N),J++);var Z=[J===Object.keys(D).length,E]}catch(nc){Y(nc),Z=[!1,void 0]}var ya=Z;ya[0]&&(sk(b,$y,4,B2,ya[1]),c++)}var xa=a.daiAdBreakInfo;if(xa){var Za=new Zy,Wa=0;try{var Bb=xa.contentCpn;void 0!==Bb&&(Q(Za,1,Bb),Wa++);var Qb=xa.totalCueDurationMs;void 0!==Qb&&(Gk(Za,2,Qb),Wa++);var eb=xa.filledAdsDurationMs;void 0!==eb&&(Gk(Za,3,eb),Wa++);var Rb=xa.cueStartChange;void 0!==Rb&&(S(Za,4,Ikb[Rb]),Wa++);var hc=xa.cueDurationChange;void 0!==hc&&(S(Za,5,Gkb[hc]),Wa++);var Bc=xa.cueDurationChangeReason;
void 0!==Bc&&(S(Za,6,Hkb[Bc]),Wa++);var ac=xa.externalChannelId;void 0!==ac&&(Q(Za,7,ac),Wa++);var uc=xa.cueIdentifier;void 0!==uc&&(Q(Za,8,uc),Wa++);var Wc=xa.infoType;void 0!==Wc&&(S(Za,9,Kkb[Wc]),Wa++);var Nc=xa.msg;void 0!==Nc&&(Q(Za,10,Nc),Wa++);var Oc=xa.filledAdCount;void 0!==Oc&&(Ek(Za,11,Oc),Wa++);var Pc=[Wa===Object.keys(xa).length,Za]}catch(nc){Y(nc),Pc=[!1,void 0]}var Vb=Pc;Vb[0]&&(sk(b,Zy,5,B2,Vb[1]),c++)}var ud=a.visibilityErrorDebugInfo;if(ud){var kd=new Oma,fc=0;try{var Yb=ud.elementName;
void 0!==Yb&&(Q(kd,1,Yb),fc++);var Qc=ud.contentVideoPlaybackEventId;void 0!==Qc&&(Q(kd,2,Qc),fc++);var Ib=ud.errorList;void 0!==Ib&&(Q(kd,3,Ib),fc++);var Zc=ud.htmlDump;void 0!==Zc&&(Q(kd,4,Zc),fc++);var vd=[fc===Object.keys(ud).length,kd]}catch(nc){Y(nc),vd=[!1,void 0]}var Ob=vd;Ob[0]&&(sk(b,Oma,6,B2,Ob[1]),c++)}var oe=a.playbackTimelineAdBreakStateTrigger;if(oe){var Md=new Mma,Nd=0;try{var Oe=oe.cueIdentifier;void 0!==Oe&&(Q(Md,1,Oe),Nd++);var xe=oe.timestampUnixEpochSec;void 0!==xe&&(Gk(Md,2,
xe),Nd++);var Hd=oe.adRequestState;void 0!==Hd&&(S(Md,3,Dkb[Hd]),Nd++);var Cf=oe.segmentState;void 0!==Cf&&(S(Md,4,Ekb[Cf]),Nd++);var Ve=oe.timestampUnixEpochMs;void 0!==Ve&&(Gk(Md,5,Ve),Nd++);var $d=[Nd===Object.keys(oe).length,Md]}catch(nc){Y(nc),$d=[!1,void 0]}var Df=$d;Df[0]&&(sk(b,Mma,7,B2,Df[1]),c++)}var ae=a.extraLongAdBreakDebugInfo;if(ae){var pe=new Lma,Id=0;try{var wd=ae.contentVideoPlaybackEventId;void 0!==wd&&(Q(pe,1,wd),Id++);var $c=ae.adPlacementKindCuepointInitiatedCueRange;if($c){var Od=
zMa($c);Od[0]&&(rk(pe,dz,2,Od[1]),Id++)}var We=ae.adPlacementConfigImpliedCueRange;if(We){var Uf=zMa(We);Uf[0]&&(rk(pe,dz,3,Uf[1]),Id++)}var lg=ae.adPlacementKindMillisecondsInitiatedCueRange;if(lg){var qe=zMa(lg);qe[0]&&(rk(pe,dz,4,qe[1]),Id++)}var qc=ae.cueIdentifier;void 0!==qc&&(Q(pe,5,qc),Id++);var Xe=[Id===Object.keys(ae).length,pe]}catch(nc){Y(nc),Xe=[!1,void 0]}var Vh=Xe;Vh[0]&&(sk(b,Lma,8,B2,Vh[1]),c++)}var fe=a.comparePyvAdTagInfo;if(fe){var ai=new Kma,Ei=0;try{var Hf=fe.pyvAdTagUrlFromPlayer;
void 0!==Hf&&(Q(ai,1,Hf),Ei++);var cf=fe.pyvAdTagUrlFromWatchNext;void 0!==cf&&(Q(ai,2,cf),Ei++);var ze=[Ei===Object.keys(fe).length,ai]}catch(nc){Y(nc),ze=[!1,void 0]}var bi=ze;bi[0]&&(sk(b,Kma,9,B2,bi[1]),c++)}var sc=a.driftRecoveryInfo;if(sc){var vc=new cz,Hc=0;try{var oj=sc.contentCpn;void 0!==oj&&(Q(vc,1,oj),Hc++);var If=sc.cueIdentifier;void 0!==If&&(Q(vc,2,If),Hc++);var Qg=sc.driftRecoveryMs;void 0!==Qg&&(Gk(vc,3,Qg),Hc++);var pg=sc.breakDurationMs;void 0!==pg&&(Gk(vc,4,pg),Hc++);var Fi=sc.driftFromHeadMs;
void 0!==Fi&&(Gk(vc,5,Fi),Hc++);var pj=sc.appliedDriftRecoveryMs;void 0!==pj&&(Gk(vc,6,pj),Hc++);var Gi=sc.destinationMs;void 0!==Gi&&(Gk(vc,7,Gi),Hc++);var of=sc.adClientData;if(of){var fd=sMa(of);fd[0]&&(rk(vc,Ty,8,fd[1]),Hc++)}var Jf=[Hc===Object.keys(sc).length,vc]}catch(nc){Y(nc),Jf=[!1,void 0]}var Hi=Jf;Hi[0]&&(sk(b,cz,10,B2,Hi[1]),c++)}var df=a.adsClientEvent;if(df){var qg=new Jma,Yf=0;try{var Ii=df.eventType;void 0!==Ii&&(S(qg,1,Akb[Ii]),Yf++);var Zf=df.adClientData;if(Zf){var rg=sMa(Zf);
rg[0]&&(rk(qg,Ty,3,rg[1]),Yf++)}var rh=df.serializedAdServingData;void 0!==rh&&(Kk(qg,4,rh),Yf++);var sh=df.eventOrder;void 0!==sh&&(Ek(qg,5,sh),Yf++);var sg=df.serializedSlotAdServingData;void 0!==sg&&(Kk(qg,6,sg),Yf++);var Ae=df.errorInfo;if(Ae){var ef=new Wy,ge=0;try{var th=Ae.errorType;void 0!==th&&(S(ef,1,zkb[th]),ge++);var ff=Ae.errorMessage;void 0!==ff&&(S(ef,2,ykb[ff]),ge++);var pf=[ge===Object.keys(Ae).length,ef]}catch(nc){Y(nc),pf=[!1,void 0]}var Kf=pf;Kf[0]&&(rk(qg,Wy,7,Kf[1]),Yf++)}var tg=
[Yf===Object.keys(df).length,qg]}catch(nc){Y(nc),tg=[!1,void 0]}var Rg=tg;Rg[0]&&(sk(b,Jma,11,B2,Rg[1]),c++)}var se=a.daiAdStateTracking;if(se){var ug=new az,Lf=0;try{var Ji=se.eventType;void 0!==Ji&&(S(ug,1,Fkb[Ji]),Lf++);var uh=se.contentCpn;void 0!==uh&&(Q(ug,2,uh),Lf++);var Vl=se.externalChannelId;void 0!==Vl&&(Q(ug,3,Vl),Lf++);var Wl=se.adCpn;void 0!==Wl&&(Q(ug,4,Wl),Lf++);var Sk=se.adCount;void 0!==Sk&&(Gk(ug,5,Sk),Lf++);var Xl=se.msg;void 0!==Xl&&(Q(ug,6,Xl),Lf++);var Wj=[Lf===Object.keys(se).length,
ug]}catch(nc){Y(nc),Wj=[!1,void 0]}var gf=Wj;gf[0]&&(sk(b,az,12,B2,gf[1]),c++)}var Be=a.adTrimmingInfo;if(Be){var Td=new Uy,Sg=0;try{var Ki=Be.contentCpn;void 0!==Ki&&(Q(Td,1,Ki),Sg++);var Yl=Be.cueIdentifier;void 0!==Yl&&(Q(Td,2,Yl),Sg++);var Tk=Be.adMediaInfo;Tk&&(BO(Td.j.bind(Td),Tk,AMa),Sg++);var Xj=[Sg===Object.keys(Be).length,Td]}catch(nc){Y(nc),Xj=[!1,void 0]}var vh=Xj;vh[0]&&(sk(b,Uy,13,B2,vh[1]),c++)}var Tg=a.adsAttributionEvent;if(Tg){var qf=new Vy,ci=0;try{var Uk=Tg.errorCode;void 0!==
Uk&&(S(qf,1,Lkb[Uk]),ci++);var Zl=Tg.attributionStep;void 0!==Zl&&(S(qf,2,Mkb[Zl]),ci++);var di=Tg.innerErrorDomain;void 0!==di&&(Q(qf,3,di),ci++);var Li=Tg.innerErrorCode;void 0!==Li&&(Gk(qf,4,Li),ci++);var ei=[ci===Object.keys(Tg).length,qf]}catch(nc){Y(nc),ei=[!1,void 0]}var vg=ei;vg[0]&&(sk(b,Vy,14,B2,vg[1]),c++)}var fi=a.playerDebugData;if(fi){var Mi=new ez,Yj=0;try{var $l=fi.pmlSignal;void 0!==$l&&(Dk(Mi,1,$l),Yj++);var Zj=fi.contentCpn;void 0!==Zj&&(Q(Mi,2,Zj),Yj++);var Vk=[Yj===Object.keys(fi).length,
Mi]}catch(nc){Y(nc),Vk=[!1,void 0]}var am=Vk;am[0]&&(sk(b,ez,15,B2,am[1]),c++)}var rf=a.sourceRegistrationEvent;if(rf){var $f=new Nma,Mf=0;try{var ag=rf.eventType;void 0!==ag&&(S($f,1,Nkb[ag]),Mf++);var bm=[Mf===Object.keys(rf).length,$f]}catch(nc){Y(nc),bm=[!1,void 0]}var cm=bm;cm[0]&&(sk(b,Nma,16,B2,cm[1]),c++)}return[c===Object.keys(a).length,b]}catch(nc){return Y(nc),[!1,void 0]}},
offlineTransferStatusChanged:BLa,offlineStateSnapshot:function(a){var b=new XA,c=0;try{var d=a.offlineVideos;d&&(BO(b.B.bind(b),d,dMa),c++);var e=a.offlinePlaylists;e&&(BO(b.j.bind(b),e,fMa),c++);var f=a.freeDiskSpaceBytes;void 0!==f&&(Gk(b,3,f),c++);var h=a.lastOfflineUsageTimeMs;void 0!==h&&(Gk(b,4,h),c++);var l=a.lastOfflinePlaybackTimeMs;void 0!==l&&(Gk(b,5,l),c++);var m=a.lastOfflineSaveTimeMs;void 0!==m&&(Gk(b,6,m),c++);var n=a.lastOfflineDownloadSuccessTimeMs;void 0!==n&&(Gk(b,7,n),c++);var p=
a.isBatteryCharging;void 0!==p&&(Dk(b,8,p),c++);var q=a.detailedNetworkType;void 0!==q&&(S(b,9,NO[q]),c++);var r=a.batteryLevelPercentage;void 0!==r&&(Ek(b,10,r),c++);var t=a.isPostMigrationState;void 0!==t&&(Dk(b,11,t),c++);var v=a.offlineCacheVerificationFailure;if(v){var w=new RA;d=0;try{var A=v.numUncachedVideos;void 0!==A&&(Fk(w,1,A),d++);var C=v.numTotalCompletedVideos;void 0!==C&&(Fk(w,2,C),d++);var F=v.uncachedVideos;F&&(BO(w.j.bind(w),F,iMa),d++);var G=[d===Object.keys(v).length,w]}catch(aa){Y(aa),
G=[!1,void 0]}v=G;v[0]&&(rk(b,RA,12,v[1]),c++)}var L=a.additionalOfflineClientState;if(L){var M=new Qoa;v=0;try{var R=L.mainAppAdditionalOfflineClientState;if(R){var ea=new TA;G=0;try{var ma=R.downloadRecsVideos;ma&&(BO(ea.j.bind(ea),ma,jMa),G++);var oa=R.smartDownloadVideos;oa&&(BO(ea.B.bind(ea),oa,kMa),G++);var ia=[G===Object.keys(R).length,ea]}catch(aa){Y(aa),ia=[!1,void 0]}R=ia;R[0]&&(rk(M,TA,1,R[1]),v++)}var va=[v===Object.keys(L).length,M]}catch(aa){Y(aa),va=[!1,void 0]}L=va;L[0]&&(rk(b,Qoa,
13,L[1]),c++)}return[c===Object.keys(a).length,b]}catch(aa){return Y(aa),[!1,void 0]}}},reb={adNotify:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;
sk(d,Bma,184,XE,a);c?VE("adNotify",d,c,b):WE("adNotify",d,b)},
biscottiBasedDetection:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,Yz,439,XE,a);c?VE("biscottiBasedDetection",d,c,b):WE("biscottiBasedDetection",d,b)},
adNotifyFilled:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,Ama,300,XE,a);c?VE("adNotifyFilled",d,c,b):WE("adNotifyFilled",d,b)},
idbTransactionEnded:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,AA,352,XE,a);c?VE("idbTransactionEnded",d,c,b):WE("idbTransactionEnded",d,b)},
idbUnexpectedlyClosed:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,Eoa,348,XE,a);c?VE("idbUnexpectedlyClosed",d,c,b):WE("idbUnexpectedlyClosed",d,b)},
flowEvent:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,yoa,304,XE,a);c?VE("flowEvent",d,c,b):WE("flowEvent",d,b)},
idbQuotaExceeded:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,Coa,351,XE,a);c?VE("idbQuotaExceeded",d,c,b):WE("idbQuotaExceeded",d,b)},
idbTransactionAborted:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,Doa,353,XE,a);c?VE("idbTransactionAborted",d,c,b):WE("idbTransactionAborted",d,b)},
streamzIncremented:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,Yoa,126,XE,a);c?VE("streamzIncremented",d,c,b):WE("streamzIncremented",d,b)},
sliEventBatch:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,bA,344,XE,a);c?VE("sliEventBatch",d,c,b):WE("sliEventBatch",d,b)},
playbackAssociated:xva,autoplayTriggered:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,Ana,209,XE,a);c?VE("autoplayTriggered",d,c,b):WE("autoplayTriggered",d,b)},
webPlayerApiCalled:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,YA,76,XE,a);c?VE("webPlayerApiCalled",d,c,b):WE("webPlayerApiCalled",d,b)},
embedsAdEvent:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,zna,327,XE,a);c?VE("embedsAdEvent",d,c,b):WE("embedsAdEvent",d,b)},
embedsShouldRequestStorageAccessResult:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,Cna,251,XE,a);c?VE("embedsShouldRequestStorageAccessResult",d,c,b):WE("embedsShouldRequestStorageAccessResult",d,b)},
embedsRequestStorageAccessState:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,Bna,256,XE,a);c?VE("embedsRequestStorageAccessState",d,c,b):WE("embedsRequestStorageAccessState",d,b)},
embedsRequestStorageAccessFailedState:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,cA,257,XE,a);c?VE("embedsRequestStorageAccessFailedState",d,c,b):WE("embedsRequestStorageAccessFailedState",d,b)},
heartbeatActionPlayerHalted:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,Aoa,332,XE,a);c?VE("heartbeatActionPlayerHalted",d,c,b):WE("heartbeatActionPlayerHalted",d,b)},
heartbeatActionPlayerTransitioned:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,Boa,330,XE,a);c?VE("heartbeatActionPlayerTransitioned",d,c,b):WE("heartbeatActionPlayerTransitioned",d,b)},
embedsItpWatchLaterResult:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,Dna,266,XE,a);c?VE("embedsItpWatchLaterResult",d,c,b):WE("embedsItpWatchLaterResult",d,b)},
html5PlayerHealthEvent:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,zA,293,XE,a);c?VE("html5PlayerHealthEvent",d,c,b):WE("html5PlayerHealthEvent",d,b)},
adsClientStateChange:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,Pma,197,XE,a);c?VE("adsClientStateChange",d,c,b):WE("adsClientStateChange",d,b)},
offlineTransferStatusChanged:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,mA,2,XE,a);c?VE("offlineTransferStatusChanged",d,c,b):WE("offlineTransferStatusChanged",d,b)},
offlineStateSnapshot:function(a,b,c){var d=g.AB("jspb_sparse_encoded_pivot")?new ZA([{}]):new ZA;sk(d,XA,22,XE,a);c?VE("offlineStateSnapshot",d,c,b):WE("offlineStateSnapshot",d,b)}};TO.prototype.vx=function(a){this.client=a};
TO.prototype.j=function(){this.clear();this.csn=g.aF()};
TO.prototype.clear=function(){this.C.clear();this.B.clear();this.D.clear();this.csn=null};VO.prototype.vx=function(a){g.gB(UO().vx).bind(UO())(a)};
VO.prototype.clear=function(){g.gB(UO().clear).bind(UO())()};g.k=WO.prototype;g.k.vx=function(a){this.client=a};
g.k.mW=function(a,b){var c=this;b=void 0===b?{}:b;g.gB(function(){var d,e,f,h=(null==(d=g.V(null==a?void 0:a.commandMetadata,g.A2))?void 0:d.rootVe)||(null==(e=g.V(null==a?void 0:a.commandMetadata,wkb))?void 0:null==(f=e.screenVisualElement)?void 0:f.uiType);if(h){d=g.V(null==a?void 0:a.commandMetadata,Klb);if(null==d?0:d.parentTrackingParams){var l=g.ZE(d.parentTrackingParams);if(d.parentCsn)var m=d.parentCsn}else b.clickedVisualElement?l=b.clickedVisualElement:a.clickTrackingParams&&(l=g.ZE(a.clickTrackingParams));
a:{d=g.V(a,g.WS);e=g.V(a,zlb);if(d){if(e=gJa(d,"VIDEO")){d={token:e,videoId:d.videoId};break a}}else if(e&&(d=gJa(e,"PLAYLIST"))){d={token:d,playlistId:e.playlistId};break a}d=void 0}b=Object.assign({},{cttAuthInfo:d,parentCsn:m},b);if(g.AB("expectation_logging")){var n;b.loggingExpectations=(null==(n=g.V(null==a?void 0:a.commandMetadata,wkb))?void 0:n.loggingExpectations)||void 0}YO(c,h,l,b)}else g.eF(new g.AC("Error: Trying to create a new screen without a rootVeType",a))})()};
g.k.clickCommand=function(a,b,c){a=a.clickTrackingParams;c=void 0===c?0:c;a?(c=g.aF(void 0===c?0:c))?(Cwa(this.client,c,g.ZE(a),b),b=!0):b=!1:b=!1;return b};
g.k.stateChanged=function(a,b,c){this.visualElementStateChanged(g.ZE(a),b,void 0===c?0:c)};
g.k.visualElementStateChanged=function(a,b,c){c=void 0===c?0:c;0===c&&this.B.has(c)?this.Z.push([a,b]):wNa(this,a,b,c)};aP.prototype.fetch=function(a,b,c){var d=this,e=zNa(a,b,c);return new Promise(function(f,h){function l(){if(null==c?0:c.Eq)try{var n=d.handleResponse(a,e.status,e.response,c);f(n)}catch(p){h(p)}else f(d.handleResponse(a,e.status,e.response,c))}
e.onerror=l;e.onload=l;var m;e.send(null!=(m=b.body)?m:null)})};
aP.prototype.handleResponse=function(a,b,c,d){c=c.replace(")]}'","");try{var e=JSON.parse(c)}catch(f){g.eF(new g.AC("JSON parsing failed after XHR fetch",a,b,c));if((null==d?0:d.Eq)&&c)throw new g.NH(1,"JSON parsing failed after XHR fetch");e={}}200!==b&&(g.eF(new g.AC("XHR API fetch failed",a,b,c)),e=Object.assign({},e,{errorMetadata:{status:b}}));return e};bP.getInstance=function(){var a=g.Xa("ytglobal.storage_");a||(a=new bP,g.Va("ytglobal.storage_",a));return a};
bP.prototype.estimate=function(){var a,b,c;return g.H(function(d){a=navigator;return(null==(b=a.storage)?0:b.estimate)?d.return(a.storage.estimate()):(null==(c=a.webkitTemporaryStorage)?0:c.queryUsageAndQuota)?d.return(ANa()):d.return()})};
g.Va("ytglobal.storageClass_",bP);bra.prototype.IE=function(a){this.handleError(a)};
bra.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":g.AB("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.AB("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":CNa(this,b);break;case "TRANSACTION_ENDED":this.C&&Math.random()<=g.BB("ytidb_transaction_ended_event_rate_limit_transaction",.1)&&this.j("idbTransactionEnded",
b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},b,{hasWindowUnloaded:this.B}),this.j("idbTransactionAborted",a)}};var b3={},fTa=g.uD("yt-player-local-media",{rr:(b3.index={Zm:2},b3.media={Zm:2},b3.captions={Zm:5},b3),shared:!1,upgrade:function(a,b){b(2)&&(g.aD(a,"index"),g.aD(a,"media"));b(5)&&g.aD(a,"captions");b(6)&&(bD(a,"metadata"),bD(a,"playerdata"))},
version:5});var Xmb={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},c3;a:{var d3=g.pc();d3=d3.toLowerCase();if(g.ic(d3,"android")){var Ymb=d3.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Ymb){var Zmb=parseFloat(Ymb[1]);if(100>Zmb){c3=Zmb;break a}}var $mb=d3.match("("+Object.keys(Xmb).join("|")+")");c3=$mb?Xmb[$mb[0]]:0}else c3=void 0}var LR=c3,bSa=0<=LR;var zbb=window;var DNa=Kd(function(){var a,b;return null==(b=(a=window).matchMedia)?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var FNa;g.cP=new TH;FNa=0;var dP={je:function(a,b){a.splice(0,b)},
Kz:function(a){a.reverse()},
zd:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b%a.length]=c}};var wdb=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var oR=PNa()?!0:"function"===typeof window.fetch&&window.ReadableStream&&window.AbortController&&!g.qD?!0:!1;var ZRa={Bja:"adunit",Hwa:"detailpage",txa:"editpage",Bxa:"embedded",GNa:"leanback",j2a:"previewpage",s3a:"profilepage",cV:"unplugged",s1a:"playlistoverview",l$a:"sponsorshipsoffer",Y6a:"shortspage",CGa:"handlesclaiming",nIa:"immersivelivepage",Xua:"creatormusic",oIa:"immersivelivepreviewpage",jfa:"admintoolyurt"};var eOa={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},fOa={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"},Ebb={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var CTa={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.hP.prototype.getLanguageInfo=function(){return this.kc};
g.hP.prototype.getXtags=function(){if(!this.xtags){var a=this.id.split(";");1<a.length&&(this.xtags=a[1])}return this.xtags};
g.hP.prototype.toString=function(){return this.kc.name};
g.hP.prototype.getLanguageInfo=g.hP.prototype.getLanguageInfo;iP.prototype.isLocked=function(){return this.C&&!!this.B&&this.B===this.j};
iP.prototype.compose=function(a){if(a.C&&lP(a))return KS;if(a.C||lP(this))return a;if(this.C||lP(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;jP&&(d=0!==this.sb&&0!==a.sb?Math.min(this.sb,a.sb):0===this.sb?a.sb:this.sb);return jP&&b===this.B&&c===this.j&&d===this.sb||!jP&&b===this.B&&c===this.j?this:jP?new iP(b,c,!1,c===this.j&&d===this.sb?this.reason:a.reason,d):new iP(b,c,!1,c===this.j?this.reason:a.reason)};
iP.prototype.D=function(a){return!a.video||jP&&0!==this.sb&&this.sb<a.sb?!1:iOa(this,a.video.quality)};
var anb=g.kP("auto","hd1080",!1,"l"),Jab=g.kP("auto","large",!1,"l"),KS=g.kP("auto","auto",!1,"p"),jP=!1;pP.prototype.Ss=function(a){a=a||KS;for(var b=g.Ht(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};
pP.prototype.FD=function(a){a=a||KS;return g.Ht(this.videoInfos,function(b){return a.D(b)})};
pP.prototype.getAvailableAudioTracks=function(){return this.audioTracks};var BOa=new Set(["356"]);g.y(jOa,g.I);jOa.prototype.va=function(){g.I.prototype.va.call(this)};g.zP.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.url="")};
g.zP.prototype.get=function(a){AP(this);return this.j[a]||null};
g.zP.prototype.Oe=function(){this.url||(this.url=IOa(this));return this.url};
g.zP.prototype.clone=function(){var a=new g.zP(this.B,this.D);a.scheme=this.scheme;a.path=this.path;a.C=this.C;a.j=g.md(this.j);a.url=this.url;return a};
var HOa=[ema];g.k=g.GP.prototype;g.k.qM=function(a){this.segments.push(a)};
g.k.In=function(a){return!!this.xn(a)};
g.k.getDuration=function(a){return(a=this.xn(a))?a.duration:0};
g.k.ZW=function(a){return this.getDuration(a)};
g.k.zn=function(){return this.segments.length?this.segments[0].Pa:-1};
g.k.df=function(a){return(a=this.xn(a))?a.ingestionTime:NaN};
g.k.Ed=function(){return this.segments.length?this.segments[this.segments.length-1].Pa:-1};
g.k.BP=function(a){return this.Ed()===a&&!this.B&&0<=a};
g.k.Vs=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:NaN};
g.k.Od=function(){return this.segments[0].startTime};
g.k.Cz=function(){return this.segments.length};
g.k.jm=function(){return 0};
g.k.Bi=function(a){return(a=this.sz(a))?a.Pa:-1};
g.k.HI=function(a){return(a=this.xn(a))?a.sourceURL:""};
g.k.getStartTime=function(a){return(a=this.xn(a))?a.startTime:0};
g.k.rI=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.JI=da(2);g.k.isLoaded=function(){return 0<this.segments.length};
g.k.xn=function(a){if(this.j&&this.j.Pa===a)return this.j;a=g.Tb(this.segments,new FP(a,0,0,0,""),function(b,c){return b.Pa-c.Pa});
return this.j=0<=a?this.segments[a]:null};
g.k.sz=function(a){if(this.j&&this.j.startTime<=a&&a<this.j.startTime+this.j.duration)return this.j;a=g.Tb(this.segments,{startTime:a},function(b,c){return b.startTime-c.startTime});
return this.j=0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.k.append=function(a){if(a.length)if(a=g.Lb(a),this.segments.length){var b=this.segments.length?g.Ab(this.segments).endTime:0,c=a[0].Pa-this.Ed();1<c&&taa(this.segments);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.segments.push(a[c])}}else this.segments=a};
g.k.hX=function(){return 0};MOa.prototype.skip=function(a){this.j+=a};var e3={},bnb=(e3.predictStart="predictStart",e3.start="start",e3["continue"]="continue",e3.stop="stop",e3),QOa={EVENT_PREDICT_START:"predictStart",EVENT_START:"start",EVENT_CONTINUE:"continue",EVENT_STOP:"stop"};PP.prototype.eE=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"])};
PP.prototype.toString=function(){for(var a="",b=g.u(Object.keys(this.data)),c=b.next();!c.done;c=b.next())c=c.value,a+=c+":"+this.data[c]+";";return a};ZP.prototype.Nn=function(){var a=this.pos;this.pos=0;var b=!1;try{cQ(this,440786851)&&(this.pos=0,cQ(this,408125543)&&(b=!0))}catch(c){if(c instanceof RangeError)this.pos=0,b=!1,g.eF(c);else throw c;}this.pos=a;return b};lQ.prototype.set=function(a,b){this.base.get(a);this.j[a]=b;this.url=""};
lQ.prototype.get=function(a){return this.j[a]||this.base.get(a)};
lQ.prototype.Oe=function(){this.url||(this.url=oPa(this));return this.url};mQ.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};qQ.prototype.isEncrypted=function(){return this.j.info.isEncrypted()};
qQ.prototype.yg=function(){return!!this.j.info.video};
qQ.prototype.Dd=function(){var a=vQ(this),b="";g.Vc(a,function(c,d){b+=d+"_"+c+"_"});
return b.slice(0,-1)};g.k=wQ.prototype;g.k.wz=function(){return this.j?this.j.Oe():""};
g.k.Cp=function(){return!!(this.j||this.D&&this.D.Fm)};
g.k.gp=function(){return sQ(this.eb[0])};
g.k.Mn=function(){return 6===this.eb[0].type};
g.k.Ok=function(a,b){this.resource.Ok(a,b);if(this.j){this.j=pPa(a,b);b=g.u(["acpns","cpn","daistate","skipsq"]);for(var c=b.next();!c.done;c=b.next())this.j.set(c.value,null)}this.requestId=a.get("req_id")};AQ.prototype.CI=function(a){return this.C.get(a)};
AQ.prototype.Ok=function(a,b){a.base===this.j&&(this.j=pPa(a,b));a.base===this.D&&(this.D=pPa(a,b))};BQ.prototype.gg=function(){return!!this.j&&this.index.isLoaded()};
BQ.prototype.dA=function(){return!1};
BQ.prototype.xU=function(a){return[a]};
BQ.prototype.lB=function(a){return[a]};g.y(CQ,BQ);g.k=CQ.prototype;g.k.wm=function(){return!1};
g.k.mw=function(){return!0};
g.k.qE=function(){return!1};
g.k.dA=function(){return!this.G};
g.k.Pv=function(){return new wQ([new qQ(1,this,this.initRange,"getMetadataRequestInfo")],this.G)};
g.k.Zx=function(){return null};
g.k.sC=function(a){this.gs(a);return this.mw()&&a.B&&!a.hf?new wQ([new qQ(a.type,a.j,a.range,"liveGetNextRequestInfoBySegment",a.Pa,a.startTime,a.duration,a.Rb+a.B,NaN,!0)],this.index.HI(a.Pa)):this.hs(uPa(a),!1)};
g.k.Oq=function(a,b){b=void 0===b?!1:b;a=this.index.Bi(a);b&&(a=Math.min(this.index.Ed(),a+1));return this.hs(a,!0)};
g.k.VO=function(a){lQa(a)};
g.k.gs=function(a){return 0===a.B?!0:this.index.Ed()>a.Pa&&this.index.zn()<=a.Pa+1};
g.k.update=function(a,b,c){this.index.append(a);LOa(this.index,c);this.index.B=b};
g.k.gg=function(){return this.dA()?!0:BQ.prototype.gg.call(this)};
g.k.hs=function(a,b){var c=this.index.HI(a),d=this.index.getStartTime(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.sb?this.info.sb*e:1E3;return new wQ([new qQ(3,this,void 0,"liveCreateRequestInfoForSegment",a,d,e,0,f,!b)],c)};
g.k.BO=function(){return this.dA()?0:this.initRange.length};
g.k.gR=function(){return!1};FQ.prototype.update=function(a){var b=void 0;this.B&&(b=this.B);var c=new FQ,d=Array.from(a.getElementsByTagName("S"));if(d.length){var e=+DQ(a,"timescale")||1,f=(+d[0].getAttribute("t")||0)/e,h=+DQ(a,"startNumber")||0;c.D=f;var l=b?b.startSecs+b.rh:0,m=Date.parse(SPa(DQ(a,"yt:segmentIngestTime")))/1E3;c.G="SegmentTemplate"===a.parentElement.tagName;c.G&&(c.N=DQ(a,"media"));a=b?h-b.Pa:1;c.K=0<a?0:-a+1;a=g.u(d);for(d=a.next();!d.done;d=a.next()){d=d.value;for(var n=+d.getAttribute("d")/e,p=(+d.getAttribute("yt:sid")||
0)/e,q=+d.getAttribute("r")||0,r=0;r<=q;r++)if(b&&h<=b.Pa)h++;else{var t=new QPa(h,l,n,m+p,f);c.j.push(t);var v=d;var w=e,A=t.startSecs;t=v.getAttribute("yt:cuepointTimeOffset");var C=v.getAttribute("yt:cuepointDuration");if(t&&C){t=Number(t);A=-t/w+A;w=Number(C)/w;C=v.getAttribute("yt:cuepointContext")||null;var F=v.getAttribute("yt:cuepointIdentifier")||"";v=v.getAttribute("yt:cuepointEvent")||"";v=new NP(A,w,C,F,bnb[v]||"unknown",t)}else v=null;v&&c.C.push(v);h++;l+=n;f+=n;m+=n+p}}c.j.length&&
(c.B=g.Ab(c.j))}this.K=c.K;this.B=c.B||this.B;g.Mb(this.j,c.j);g.Mb(this.C,c.C);this.G=c.G;this.N=c.N;-1===this.D&&(this.D=c.getStreamTimeOffset())};
FQ.prototype.getStreamTimeOffset=function(){return-1===this.D?0:this.D};g.y($Pa,g.GP);g.k=$Pa.prototype;g.k.In=function(a,b){a=GQ(this,a);return 0<=a&&(b||!this.segments[a].pending)};
g.k.zn=function(){return this.cn?this.segments.length?this.sz(this.Od()).Pa:-1:g.GP.prototype.zn.call(this)};
g.k.Od=function(){if(this.Zd)return 0;if(!this.cn)return g.GP.prototype.Od.call(this);if(!this.segments.length)return 0;var a=Math.max(g.Ab(this.segments).endTime-this.Bq,0);return 0<this.jf&&this.sz(a).Pa<this.jf?this.xn(this.jf).startTime:a};
g.k.Vs=function(){if(!this.segments.length)return g.GP.prototype.Vs.call(this);var a=this.Ed();if(!this.cn||a<=this.segments[this.segments.length-1].Pa)a=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];a=new FP(a,Math.max(0,b.startTime-(b.Pa-a)*this.Fj),this.Fj,0,"sq/"+a,void 0,void 0,!0)}return this.Zd?Math.min(this.Bq,a.endTime):a.endTime};
g.k.Cz=function(){return this.cn?this.segments.length?this.Ed()-this.zn()+1:0:g.GP.prototype.Cz.call(this)};
g.k.Ed=function(){var a=Math.min(this.Ci,Math.max(g.GP.prototype.Ed.call(this),this.zp)),b=1E3*this.Bq;b=0<this.Uq&&this.Uq<b;this.Zd&&0<this.Bq&&0<this.zp&&!b&&(b=this.sz(this.Bq))&&(a=Math.min(b.Pa-1,a));return a};
g.k.Lv=function(){return this.segments.length?this.segments[this.segments.length-1]:null};
g.k.qM=function(a){var b=GQ(this,a.Pa);if(0<=b)this.segments[b]=a;else if(this.segments.splice(-(b+1),0,a),this.tA&&0===a.Pa%(300/this.Fj)){var c=this.segments[0].Pa,d=Math.floor(this.tA/this.Fj);a=a.Pa-d;b=-(b+1)-d;0<b&&a>c&&(this.segments=this.segments.slice(b))}};
g.k.uI=function(){return this.zp};
g.k.sz=function(a){if(!this.cn)return g.GP.prototype.sz.call(this,a);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(a<this.segments[0].startTime)b=Math.max(0,this.segments[0].Pa-Math.ceil((this.segments[0].startTime-a)/this.Fj));else if(a>=b.endTime)b=b.Pa+Math.floor((a-b.endTime)/this.Fj+1);else{b=Ub(this.segments,function(d){return a<d.startTime?-1:a>=d.endTime?1:0});
if(0<=b)return this.segments[b];var c=-(b+1);b=this.segments[c-1];c=this.segments[c];b=Math.floor((a-b.endTime)/((c.startTime-b.endTime)/(c.Pa-b.Pa-1))+1)+b.Pa}return this.xn(b)};
g.k.xn=function(a){if(!this.cn)return g.GP.prototype.xn.call(this,a);if(!this.segments.length)return null;var b=GQ(this,a);if(0<=b)return this.segments[b];var c=-(b+1);b=this.Fj;if(0===c)var d=Math.max(0,this.segments[0].startTime-(this.segments[0].Pa-a)*b);else c===this.segments.length?(d=this.segments[this.segments.length-1],d=d.endTime+(a-d.Pa-1)*b):(d=this.segments[c-1],b=this.segments[c],b=(b.startTime-d.endTime)/(b.Pa-d.Pa-1),d=d.endTime+(a-d.Pa-1)*b);return new FP(a,d,b,0,"sq/"+a,void 0,void 0,
!0)};g.y(HQ,CQ);g.k=HQ.prototype;g.k.qE=function(){return!0};
g.k.gg=function(){return!0};
g.k.gs=function(a){return this.mw()&&a.B&&!a.hf||!a.j.index.BP(a.Pa)};
g.k.Pv=function(){};
g.k.Oq=function(a,b){return"number"!==typeof a||isFinite(a)?CQ.prototype.Oq.call(this,a,void 0===b?!1:b):new wQ([new qQ(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Ej,void 0,this.Ej*this.info.sb)],"")};
g.k.hs=function(a,b){var c=void 0===c?!1:c;if(this.index.In(a))return CQ.prototype.hs.call(this,a,b);var d=this.index.getStartTime(a),e=Math.round(this.Ej*this.info.sb),f=this.Ej;b&&(f=e=0);return new wQ([new qQ(c?7:3,this,void 0,"mlLiveCreateReqInfoForSeg",a,d,f,void 0,e,!b)],0<=a?"sq/"+a:"")};g.y(IQ,BQ);g.k=IQ.prototype;g.k.wm=function(){return!1};
g.k.mw=function(){return!1};
g.k.qE=function(){return!1};
g.k.Pv=function(){return new wQ([new qQ(1,this,void 0,"otfInit")],this.G)};
g.k.Zx=function(){return null};
g.k.sC=function(a){this.gs(a);return aQa(this,uPa(a),!1)};
g.k.Oq=function(a,b){b=void 0===b?!1:b;a=this.index.Bi(a);b&&(a=Math.min(this.index.Ed(),a+1));return aQa(this,a,!0)};
g.k.VO=function(a){1===a.info.type&&(this.j||(this.j=UN(a.j)),a.B&&"http://youtube.com/streaming/otf/durations/112015"===a.B.uri&&bQa(this,a.B))};
g.k.gs=function(a){return 0===a.B?!0:this.index.Ed()>a.Pa&&this.index.zn()<=a.Pa+1};
g.k.BO=function(){return 0};
g.k.gR=function(){return!1};g.k=g.mQa.prototype;g.k.In=function(a){return a<=this.Ed()};
g.k.jm=function(a){return this.offsets[a]};
g.k.getStartTime=function(a){return this.Ng[a]/this.j};
g.k.rI=function(a){return this.getStartTime(a)+this.getDuration(a)};
g.k.JI=da(1);g.k.df=function(){return NaN};
g.k.getDuration=function(a){a=this.ZW(a);return 0<=a?a/this.j:-1};
g.k.ZW=function(a){return a+1<this.count||this.B?this.Ng[a+1]-this.Ng[a]:-1};
g.k.zn=function(){return 0};
g.k.Ed=function(){return this.count-1};
g.k.BP=function(a){return this.Ed()===a&&0<=a};
g.k.Vs=function(){return this.B?this.Ng[this.count]/this.j:NaN};
g.k.Od=function(){return 0};
g.k.Cz=function(){return this.count};
g.k.HI=function(){return""};
g.k.Bi=function(a){a=g.Tb(this.Ng.subarray(0,this.count),a*this.j);return 0<=a?a:Math.max(0,-a-2)};
g.k.isLoaded=function(){return 0<=this.Ed()};
g.k.hX=function(a,b){if(a>=this.Ed())return 0;var c=0;for(b=this.getStartTime(a)+b;a<this.Ed()&&b>this.getStartTime(a);a++)c=Math.max(c,nQa(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.Ng;this.Ng=new Float64Array(a+1);for(a=0;a<this.count+1;a++)this.offsets[a]=b[a],this.Ng[a]=c[a]};
g.k.cap=function(a,b){oQa(this);this.B=!0;this.Ng[this.count]=b;this.offsets[this.count]=a};g.y(NQ,BQ);g.k=NQ.prototype;g.k.Pv=function(a,b){var c=new qQ(2,this,this.indexRange,"indexInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),d=[new qQ(1,this,this.initRange,"initInfo",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b),c];0<this.info.contentLength&&a&&(c=c.range.end+1,a=Math.min(a,this.info.contentLength-c),0<a&&d.push(new qQ(4,this,oQ(c,a),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)));return new wQ(d)};
g.k.VO=function(a){if(1===a.info.type){if(this.j)return;this.j=UN(a.j)}else if(2===a.info.type){if(this.G||0<=this.index.Ed())return;if(g.GK(this.info)){var b=this.index,c=KQ(a);a=a.info.range.start;var d=g.RP(c,0,1936286840);c=aPa(d);b.j=c.Or;var e=c.Q6;b.offsets[0]=c.i7+a+d.size;b.Ng[0]=e;b.B=!0;a=c.xS.length;for(d=0;d<a;d++){e=b;var f=c.dca[d],h=c.xS[d];e.count++;oQa(e);e.offsets[e.count]=e.offsets[e.count-1]+f;e.Ng[e.count]=e.Ng[e.count-1]+h}}else this.G=KQ(a)}if(this.info.Pe()&&this.j&&this.G){c=
new DataView(this.j.buffer);b=this.index;d=this.G;a=this.indexRange.end;e=new ZP(c);c=e;e=c.pos;f={O0:1E6,P0:1E9,duration:0,Y_:0,SR:0};if(cQ(c,408125543))if(f.Y_=dQ(c,!0),f.SR=c.start+c.pos,cQ(c,357149030)){for(h=bQ(c);!$P(h);){var l=dQ(h,!1);2807729===l?f.O0=fQ(h):2807730===l?f.P0=fQ(h):17545===l?f.duration=hQ(h):gQ(h)}c.pos=e;c=f}else c.pos=e,c=null;else c.pos=e,c=null;if(null!==c){b.j=c.P0/c.O0;e=new ZP(d);d=e;h=c.SR;e=d.pos;f=[];if(cQ(d,475249515)){for(l=bQ(d);cQ(l,187);){var m=bQ(l);if(cQ(m,
179)){var n=fQ(m);if(cQ(m,183)){m=bQ(m);for(var p=h;cQ(m,241);)p=fQ(m)+h;f.push({LH:p,z6:n})}}}if(0<f.length&&a===f[0].LH)for(a=0;a<f.length;a++)f[a].LH+=1;d.pos=e;a=f}else d.pos=e,a=null;if(null!==a){a=g.u(a);for(d=a.next();!d.done;d=a.next())f=d.value,d=b,e=f.LH,f=f.z6,oQa(d),d.offsets[d.count]=e,d.Ng[d.count]=f,d.count++;b.cap(c.Y_+c.SR,c.duration)}}this.G=null}};
g.k.UD=function(a,b,c,d){for(var e=[],f=a;f<=this.index.Ed();f++){var h=oQ(this.index.jm(f),nQa(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 qQ(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.dF(new g.AC("b189619593",""+a,""+b,""+c));return new wQ(e)};
g.k.xU=function(a){for(var b=this.lB(a.info),c=a.info.range.start+a.info.Rb,d=[],e=0;e<b.length;e++){var f=LN(a.j,b[e].range.start+b[e].Rb-c,b[e].B);d.push(new JQ(b[e],f))}return d};
g.k.lB=function(a){for(var b=a.range.start+a.Rb,c=0;c<this.index.Ed()&&b>=this.index.jm(c+1);)c++;return this.UD(c,b,a.B).eb};
g.k.gs=function(a){rQ(a);return this.gg()?!0:a.range.end+1<this.info.contentLength};
g.k.Zx=function(a,b){this.gs(a);if(!this.gg())return b=oQ(a.range.end+1,b),b.end+1>this.info.contentLength&&(b=new mQ(b.start,this.info.contentLength-1)),new wQ([new qQ(4,a.j,b,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,a.clipId)]);4===a.type&&(a=this.lB(a),a=a[a.length-1]);var c=0,d=a.range.start+a.Rb+a.B;3===a.type&&(rQ(a),c=a.Pa,d===a.range.end+1&&(c+=1));return this.UD(c,d,b)};
g.k.sC=function(){return null};
g.k.Oq=function(a,b,c){b=void 0===b?!1:b;a=this.index.Bi(a);b&&(a=Math.min(this.index.Ed(),a+1));return this.UD(a,this.index.jm(a),0,c)};
g.k.wm=function(){return!0};
g.k.mw=function(){return!0};
g.k.qE=function(){return!1};
g.k.BO=function(){return this.indexRange.length+this.initRange.length};
g.k.gR=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var f3={},GQa=(f3.COLOR_PRIMARIES_BT709="bt709",f3.COLOR_PRIMARIES_BT2020="bt2020",f3.COLOR_PRIMARIES_UNKNOWN=null,f3.COLOR_PRIMARIES_UNSPECIFIED=null,f3),g3={},qQa=(g3.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",g3.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",g3.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",g3.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",g3.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,g3.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,g3);g.OQ.prototype.getName=function(){return this.name};
g.OQ.prototype.getId=function(){return this.id};
g.OQ.prototype.getIsDefault=function(){return this.isDefault};
g.OQ.prototype.toString=function(){return this.name};
g.OQ.prototype.getName=g.OQ.prototype.getName;g.OQ.prototype.getId=g.OQ.prototype.getId;g.OQ.prototype.getIsDefault=g.OQ.prototype.getIsDefault;var vQa=/action_display_post/;var wQa;g.y(QQ,g.wF);g.k=QQ.prototype;g.k.isLoading=function(){return 1===this.state};
g.k.tm=function(){return 3===this.state};
g.k.Cba=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.dc=this.B=!0;this.timeline||(this.timeline=new UPa);YPa(this.timeline,a);this.publish("refresh");for(a=0;a<b.length;a++){var c=QQa(this,b[a]);if(!this.j[c.id]){var d=SQ(EQ(b[a],"BaseURL").textContent),e=EQ(b[a],"Initialization"),f=DQ(e,"sourceURL");e=nQ(DQ(e,"range"));this.j[c.id]=new CQ(d,c,f,e)}c=this.j[c.id];d=DQ(b[a],"id",
"AdaptationSet");d=""!==d?d:DQ(b[a],"mimetype","AdaptationSet");f=this.timeline;f=f.C[c.info.id]||f.B[d]||f.j||null;d=f.j;!this.K&&f.getStreamTimeOffset()&&(this.K=f.getStreamTimeOffset());if(f.G){e=[];d=g.u(d);for(var h=d.next();!h.done;h=d.next()){h=h.value;var l=c.info.id,m=8*c.info.sb,n=h.Pa;var p=h.startSecs;var q=f.N.split("$$");for(var r=0;r<q.length;r++)q[r]=q[r].replace("$RepresentationID$",l),q[r]=q[r].replace("$Number$",n.toString()),q[r]=q[r].replace("$Bandwidth$",m.toString()),q[r]=q[r].replace("$Time$",
p.toString());e.push(new FP(h.Pa,h.startSecs,h.rh,h.j,q.join("$"),null,h.B))}d=e}else{f=Nb(EQ(b[a],"SegmentList").getElementsByTagName("SegmentURL"),f.K);e=[];for(h=0;h<f.length;h++){l=e;m=l.push;n=d[h];p=void 0;r=f[h];q=r.getAttribute("media");if(r=r.getAttribute("mediaRange")){var t=r.split("-");t[1]&&0<=Number(t[1])?p=nQ(r):q=q+"?range="+r}m.call(l,new FP(n.Pa,n.startSecs,n.rh,n.j,q,p,n.B))}d=e}c.update(d,this.isLive,this.Wa)}ZPa(this.timeline);return!0}this.duration=RPa(DQ(a,"mediaPresentationDuration"));
a:{for(a=0;a<b.length;a++){f=b[a];c=QQa(this,f);d=SQ(EQ(f,"BaseURL").textContent);e=EQ(f,"SegmentBase");f=nQ(e.attributes.getNamedItem("indexRange").value);e=nQ(e.getElementsByTagName("Initialization")[0].attributes.getNamedItem("range").value);c=new NQ(d,c,e,f);if(!c){b=!1;break a}PQ(this,c)}b=!0}return b};
g.k.refresh=function(){if(!this.isLoading()&&!this.Ma()){var a=g.Mn(this.sourceUrl,{start_seq:WQa(this).toString()});SQa(this,a).wl(function(){})}};
g.k.resume=function(){RQa(this)};
g.k.Le=function(){if(this.isManifestless&&this.C&&UQ(this))return UQ(this);var a=this.j,b=!1,c=NaN,d=NaN,e;for(e in a){var f=a[e],h=f.index;h.isLoaded()&&!KK(f.info.mimeType)&&(f.D&&(b=!0),h=h.Vs(),f.info.yh()&&(isNaN(c)||h<c)?c=h:f.info.yg()&&(isNaN(d)||h<d)&&(d=h))}return b||isNaN(d)?c:Math.min(c,d)};
g.k.Od=function(){if(this.isManifestless){if(VQ(this))return VQ(this);if(this.pc){var a=this.df(this.Le());if(a&&(a-=this.pc,0<a))return this.Le()-a}}a=this.j;for(var b in a){var c=a[b].index;if(c.isLoaded()&&!KK(a[b].info.mimeType))return c.Od()}return 0};
g.k.getStreamTimeOffset=function(){return this.K};
g.k.df=function(a){for(var b in this.j){var c=this.j[b].index;if(c.isLoaded()){var d=c.Bi(a),e=c.df(d);if(e)return e+a-c.getStartTime(d)}}return NaN};
var ZQ=null,cnb,bRa=!(null==(cnb=navigator.mediaCapabilities)||!cnb.decodingInfo),PQa={commentary:1,alternate:2,dub:3,main:4};var P_=new Set,$Q=new Map;bR.prototype.clone=function(a){return new bR(this.flavor,a,this.B,this.experiments)};
bR.prototype.jc=function(){return{flavor:this.flavor,keySystem:this.keySystem}};
bR.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 dnb={},gRa=(dnb.playready=["com.youtube.playready","com.microsoft.playready"],dnb.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],dnb),h3={},vab=(h3.widevine="DRM_SYSTEM_WIDEVINE",h3.fairplay="DRM_SYSTEM_FAIRPLAY",h3.playready="DRM_SYSTEM_PLAYREADY",h3),i3={},enb=(i3.widevine=1,i3.fairplay=2,i3.playready=3,i3);var lR;g.y(kR,g.I);
kR.prototype.initialize=function(a,b){for(var c=this,d=g.u(Object.keys(a)),e=d.next();!e.done;e=d.next()){e=g.u(a[e.value]);for(var f=e.next();!f.done;f=e.next())if(f=f.value,f.le)for(var h=g.u(Object.keys(f.le)),l=h.next();!l.done;l=h.next()){var m=l.value;l=m;m=gRa[m];!m&&this.L("html5_enable_vp9_fairplay")&&"fairplay"===l&&(m=["com.youtube.fairplay.sbdl"]);if(m){m=g.u(m);for(var n=m.next();!n.done;n=m.next())n=n.value,this.C[n]=this.C[n]||new bR(l,n,f.le[l],this.Ea.experiments),this.j[l]=this.j[l]||
{},this.j[l][f.mimeType]=!0}}}QB()&&(this.C["com.youtube.fairplay"]=new bR("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=hRa(b,this.useCobaltWidevine,this.L("html5_enable_safari_fairplay"),this.L("html5_enable_vp9_fairplay")).filter(function(p){return!!c.C[p]})};
kR.prototype.L=function(a){return this.Ea.experiments.jb(a)};var eeb={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};var cSa={RED:"red",amb:"white"};qRa.prototype.jb=function(a){return"true"===this.flags[a]};var tRa=Promise.resolve(),yRa=window.queueMicrotask?window.queueMicrotask.bind(window):uRa;vRa.prototype.canPlayType=function(a,b){a=a.canPlayType?a.canPlayType(b):!1;pD?a=a||fnb[b]:2.2===LR?a=a||gnb[b]:OB()&&(a=a||hnb[b]);return!!a};
vRa.prototype.isTypeSupported=function(a){return this.Z?window.cast.receiver.platform.canDisplayType(a):uK(a)};
var gnb={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},hnb={"application/x-mpegURL":"maybe"},fnb={"application/x-mpegURL":"maybe"};g.y(rR,g.wF);rR.prototype.add=function(a,b){if(!this.items[a]&&(b.FH||b.rN||b.qL)){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)}};
rR.prototype.remove=function(a){var b=this.get(a);delete this.items[a];return b};
rR.prototype.get=function(a){return this.items[a]||null};
rR.prototype.isEmpty=function(){return g.id(this.items)};g.y(sR,g.EN);sR.prototype.j=function(a,b){var c=AV.uu("oap");b=g.EN.prototype.j.call(this,a,b);AV.Ls(c,Math.ceil(a.length/16));return b};
sR.prototype.B=function(a,b,c){var d=this,e,f;return g.H(function(h){if(1==h.j)return e=AV.uu("oan2"),g.z(h,g.EN.prototype.B.call(d,a,b,c),2);f=h.B;AV.Ls(e,Math.ceil(a.byteLength/16));return h.return(f)})};
g.y(tR,g.FN);tR.prototype.encrypt=function(a,b){var c=AV.uu("oap");b=g.FN.prototype.encrypt.call(this,a,b);AV.Ls(c,Math.ceil(a.byteLength/16));return b};
g.y(uR,GN);uR.prototype.encrypt=function(a,b){var c=DRa(this.Id,a),d=DRa(this.Id,b);GN.prototype.encrypt.call(this,c||a,d||b);d&&this.Id.exports.free(d.byteOffset);return c?rYa(this.Id,c):a};wR.prototype.Lj=function(a,b){var c=Math.pow(this.alpha,a);this.j=b*(1-c)+c*this.j;this.B+=a};
wR.prototype.Qi=function(){return this.j/(1-Math.pow(this.alpha,this.B))};xR.prototype.Lj=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.Zl=!0};
xR.prototype.Qi=function(){return this.K?(yR(this,this.D-this.K)+yR(this,this.D)+yR(this,this.D+this.K))/3:yR(this,this.D)};g.y(IRa,g.I);IRa.prototype.Ra=function(){var a;null==(a=this.Da)||a.start();if(ER(this)&&this.policy.N){var b;null==(b=this.Bd)||b.UE()}};g.y(SRa,g.I);var $Ra="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),iSa={Xna:"caoe",xqa:"cbrand",Gqa:"cbr",Hqa:"cbrver",nta:"cchip",Kta:"ccappver",Lta:"ccrv",eEa:"cfrmver",YIa:"c",bJa:"cver",aJa:"ctheme",ZIa:"cplayer",wVa:"cmodel",kWa:"cnetwork",H_a:"cos",I_a:"cosver",B0a:"cplatform",D4a:"crqyear"};g.y(gSa,g.I);g.k=gSa.prototype;g.k.L=function(a){return this.experiments.jb(a)};
g.k.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig};
g.k.getVideoUrl=function(a,b,c,d,e,f){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=g.UR(this);e="www.youtube.com"===c;!f&&d&&e?f="https://youtu.be/"+a:g.OR(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),pD&&(a=cpa())&&(b.ebc=a));return g.Mn(f,b)};
g.k.getVideoEmbedCode=function(a,b,c,d){b="https://"+g.UR(this)+"/embed/"+b;d&&(b=g.Mn(b,{list:d}));d=c.width;c=c.height;b=Ue(b);a=Ue(null!=a?a:"YouTube video player");return'<iframe width="'+d+'" height="'+c+'" src="'+b+'" title="'+(a+'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>')};
g.k.supportsGaplessAudio=function(){return g.tK&&!pD&&74<=Ppa()||g.jR&&g.Mc(68)?!0:!1};
g.k.supportsGaplessShorts=function(){return!this.L("html5_enable_short_gapless")||this.Wa||g.VC?!1:!0};
g.k.getPlayerType=function(){return this.j.cplayer};
g.k.uc=function(){return this.Rf};
g.k.Tt=function(){this.L("html5_enable_lawnmower_messaging")};
var oSa=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],hSa=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],lSa=[19];g.k=hS.prototype;g.k.getInfo=function(){return this.j};
g.k.tC=function(){return null};
g.k.yU=function(){var a=this.tC();return a?(a=g.lB(a.resource),Number(a.expire)):NaN};
g.k.TR=function(){};
g.k.getHeight=function(){return this.j.video.height};pSa.prototype.build=function(){tSa(this);var a=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var c=this.j;else{c="";for(var d=g.u(this.C),e=d.next();!e.done;e=d.next())if(e=e.value,e.kc){if(e.kc.getIsDefault()){c=e.kc.getId();break a}c||(c=e.kc.getId())}}d=g.u(this.C);for(e=d.next();!e.done;e=d.next())if(e=e.value,this.K||!e.kc||e.kc.getId()===c)b[e.itag]||(b[e.itag]=[]),b[e.itag].push(e);c=g.u(this.B);for(d=c.next();!d.done;d=c.next())if(d=d.value,e=b[d.j]){e=g.u(e);for(var f=e.next();!f.done;f=
e.next()){var h=a,l=h.push;f=f.value;var m="#EXT-X-MEDIA:TYPE=AUDIO,",n="YES",p="audio";if(f.kc){p=f.kc;var q=p.getId().split(".")[0];q&&(m+='LANGUAGE="'+q+'",');(this.j?this.j===p.getId():p.getIsDefault())||(n="NO");p=p.getName()}q="";null!==d&&(q=d.itag.toString());q=rSa(this,f.url,q);m=m+('NAME="'+p+'",DEFAULT='+(n+',AUTOSELECT=YES,GROUP-ID="'))+(sSa(f,d)+'",URI="'+(q+'"'));l.call(h,m)}}c=g.u(this.G);for(d=c.next();!d.done;d=c.next())d=d.value,e=inb,d=(h=d.kc)?'#EXT-X-MEDIA:URI="'+rSa(this,d.url)+
'",TYPE=SUBTITLES,GROUP-ID="'+e+'",LANGUAGE="'+h.getId()+'",NAME="'+h.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,d&&a.push(d);c=0<this.G.length?inb:void 0;d=g.u(this.B);for(e=d.next();!e.done;e=d.next())e=e.value,l=b[e.j],h=void 0,0<(null==(h=l)?void 0:h.length)&&(h=e,l=l[0],l="#EXT-X-STREAM-INF:BANDWIDTH="+(h.bitrate+l.bitrate)+',CODECS="'+(h.codecs+","+l.codecs+'",RESOLUTION=')+(h.width+"x"+h.height+',AUDIO="')+(sSa(l,h)+'",')+(c?'SUBTITLES="'+c+'",':"")+"CLOSED-CAPTIONS=NONE",1<h.fps&&(l+=
",FRAME-RATE="+h.fps),h.QB&&(l+=",VIDEO-RANGE="+h.QB),a.push(l),a.push(rSa(this,e.url,"")));return a.join("\n")};
var inb="text";g.y(jS,hS);jS.prototype.yU=function(){return this.expiration};
jS.prototype.tC=function(){if(!this.resource||this.resource.Ma()){var a=this.B.build();a="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a);this.resource=new YK(a)}return this.resource};g.y(kS,hS);kS.prototype.tC=function(){return new YK(this.B.Oe())};
kS.prototype.TR=function(){this.B=DP(this.B)};g.y(lS,hS);lS.prototype.tC=function(){return new YK(this.B)};var jnb={},FSa=(jnb.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",jnb.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",jnb);g.k=g.mS.prototype;g.k.getId=function(){return this.id};
g.k.getName=function(){return this.name};
g.k.isServable=function(){return this.j};
g.k.Oe=function(){return this.url};
g.k.toString=function(){return this.languageCode+": "+g.nS(this)+" - "+this.vssId+" - "+(this.captionId||"")};
g.k.qe=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var KSa={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},LSa={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},MSa=/^(\d*)_((\d*)_?(\d*))$/;var OSa={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},PSa={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var j3={},GTa=(j3.ALWAYS=1,j3.BY_REQUEST=3,j3.UNKNOWN=void 0,j3),k3={},NTa=(k3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",k3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",k3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",k3.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",k3);var NIa;
NIa=function(a){for(var b=Object.keys(a),c={},d=0;d<b.length;d++){var e=b[d];"function"===typeof a[e]&&(c[e]=a[e])}var f=Object.keys(c);try{Yla(c)}catch(l){var h=l}return function(l,m){l=void 0===l?{}:l;if(h)throw h;for(var n=!1,p={},q=0;q<f.length;q++){var r=f[q],t=l[r],v=(0,c[r])(t,m);if("undefined"===typeof v)throw l=m&&m.type,Error("When called with an action of type "+(l?'"'+String(l)+'"':"(unknown type)")+', the slice reducer for key "'+r+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.');p[r]=
v;n=n||v!==t}return(n=n||f.length!==Object.keys(l).length)?p:l}}({entities:function(a,b){a=void 0===a?{}:a;
return dJa(a,b)}});
g.ZS=new IN;uS.prototype.toString=function(){return this.type+this.id};g.vS.prototype.Yg=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b)return b;if("sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.j)return VR(this.Ea,this.j,a)};
g.vS.prototype.Nk=function(){return this.Ea.getVideoUrl(this.videoId,this.playlistId)};g.wS.prototype.Yg=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b?b:"pop1.jpg"===a||"pop2.jpg"===a||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a?b:VR(this.Ea,this.videoId,a)};
g.wS.prototype.Nk=function(a){return this.watchUrl||this.Ea.getVideoUrl(this.videoId,void 0,void 0,void 0,void 0,a)};var xS=void 0;Eza("LMS",function(){return g.H(function(a){return a.return(g.yS())})});var CS;CS=0;g.oTa=/^([\w\-_]+)\|(\d+)(;[\w\-_]+)?\|(\d+)\|(\d+)$/;Eza("LMDB",function(){var a,b;return g.H(function(c){if(1==c.j)return g.z(c,g.sD(),2);if(3!=c.j){a=c.B;if(!a)throw g.WC("edd");return g.z(c,g.BS(a),3)}b=c.B;return c.return(g.cD(b,["index","media","captions"],{mode:"readonly",Nb:!0},function(d){var e={};d=[g.hD(d.objectStore("index"),{},function(f){e[f.cursor.key]=f.getValue();return g.iD(f)}),
Dra(d.objectStore("media")),Dra(d.objectStore("captions"))];return g.YC.all(d).then(function(f){var h=g.u(f);h.next();f=h.next().value;h=h.next().value;return{index:e,media:pTa(f||[]),captions:h}})}))})});g.y(DS,g.wF);DS.prototype.va=function(){this.j&&(this.j=this.j.onload=null);g.wF.prototype.va.call(this)};g.k=g.HS.prototype;g.k.getHeight=function(){return this.height};
g.k.fX=da(3);g.k.tI=function(){return this.frameCount};
g.k.isDefault=function(){return-1!==this.C.indexOf("default")};
g.k.isLoaded=function(a){return this.loaded.has(a)};
g.k.Oe=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.Mn(b,{sigh:this.signature}));return BJ(b)};
g.k.jH=function(a){var b=this.tI()-1;return g.ye(0===this.j?Math.round(a*this.frameCount/this.videoLength):Math.round(1E3*a/this.j),0,b)};
g.k.ey=function(){return this.frameCount-1};
g.k.rM=function(){return this.frameCount?0:-1};
g.k.zU=function(){};g.y(IS,DS);IS.prototype.B=function(a,b){var c=[];a=a.split("|");for(var d=a[0],e=1;e<a.length;e++){var f=this.G(e-1,d,a[e],b);(this.N||180>f.getHeight())&&c.push(f)}return c};
IS.prototype.G=function(a,b,c,d){return new g.HS(a,b,c,d)};g.y(vTa,g.HS);g.k=vTa.prototype;g.k.tI=function(){return this.B.Cz()};
g.k.jH=function(a){var b=this.rows*this.columns*this.G,c=this.B,d=c.Ed();a=c.Bi(a);return a>d-b?-1:a};
g.k.ey=function(){return this.B.Ed()};
g.k.rM=function(){return this.B.zn()};
g.k.zU=function(a){this.B=a};g.y(JS,IS);JS.prototype.B=function(a,b){return IS.prototype.B.call(this,"$N|"+a,b)};
JS.prototype.G=function(a,b,c){return new vTa(a,b,c,this.isLive)};var TTa=[],STa=new Set;g.y(g.LS,g.wF);g.k=g.LS.prototype;g.k.U=function(){return this.Ea};
g.k.L=function(a){return this.Ea.L(a)};
g.k.Xh=function(){return!this.isLivePlayback||this.allowLiveDvr};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=this.Ie)||!a.rb)};
g.k.FZ=function(){this.Ma()||(this.j.B||this.j.unsubscribe("refresh",this.FZ,this),this.aW(-1))};
g.k.aW=function(a){if(!this.isLivePlayback||!this.K||"fairplay"!=this.K.flavor){var b=MQa(this.j,this.PE);if(0<b.length){for(var c=g.u(b),d=c.next();!d.done;d=c.next())d=d.value,d.startSecs=Math.max(d.startSecs,this.Od());this.publish("cuepointupdated",b,a);this.PE+=b.length;if(VS(this)&&this.Ea.uc())for(b=g.u(b),c=b.next();!c.done;c=b.next())c=c.value,this.ma("cuepoint",{segNum:a,event:c.event,startSecs:c.startSecs,id:c.identifier.slice(-16)}),"start"===c.event&&(c=c.startSecs,this.WB.start=this.PG,
this.WB.end=c+3)}}};
g.k.Ti=function(){return this.le?!0:!!this.j&&tP(this.j)};
g.k.uH=function(a){var b=this;if(this.Ma())return HB();this.hd=this.fb=this.C=null;RS(this,"html5_high_res_logging_always")&&(this.Ea.Rf=!0);return kUa(this,a).then(void 0,function(){return lUa(b,a)}).then(void 0,function(){return mUa(b)}).then(void 0,function(){return oUa(b)})};
g.k.Vj=function(){if(this.cotn)return null;var a=g.gJ(this.Ea)||this.L("web_l3_storyboard");if(!this.fl)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,c=b.playerStoryboardSpecRenderer;c&&c.spec?this.fl=new IS(c.spec,this.lengthSeconds,void 0,!1,a):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(c=cba(this.j.j).index)&&(this.fl=new JS(b.spec,this.j.isLive,c,a))}else this.Ey?this.fl=new IS(this.Ey,this.lengthSeconds,void 0,!1,a):this.vy&&this.j&&
(b=cba(this.j.j).index)&&(this.fl=new JS(this.vy,this.j.isLive,b,a));return this.fl};
g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var a=this.playerResponse.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.Ey||this.vy};
g.k.Le=function(){return this.j&&!isNaN(this.j.Le())?this.j.Le():VS(this)?this.L("html5_live_seek_timeline_timestamps")&&AT(this)?46800:0:this.lengthSeconds};
g.k.Od=function(){return this.j&&!isNaN(this.j.Od())?this.j.Od():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.Bi(a);b=b.index.getStartTime(c);return{sequence:c,elapsed:Math.floor(1E3*(a-b))}}return null};
g.k.qe=function(){return!this.Ma()&&!(!this.videoId&&!this.Ll)};
g.k.Vv=function(){var a,b,c;return!!this.adaptiveFormats||!!(null==(a=this.playerResponse)?0:null==(b=a.streamingData)?0:null==(c=b.adaptiveFormats)?0:c.length)};
g.k.isLoaded=function(){return MS(this)&&!this.Ki&&!this.Vm};
g.k.Yg=function(a){a||(a="hqdefault.jpg");var b=this.Z[a];return b||this.Ea.qa||"pop1.jpg"==a||"pop2.jpg"==a||"sddefault.jpg"==a||"hq720.jpg"==a||"maxresdefault.jpg"==a?b:VR(this.Ea,this.videoId,a)};
g.k.dc=function(){return this.isLivePlayback||this.Zd||this.Za||!(!this.liveUtcStartSeconds||!this.Fl)};
g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.Zd&&!this.isLivePlayback&&this.j.B)};
g.k.getAvailableAudioTracks=function(){return this.C?0<this.C.getAvailableAudioTracks().length?this.C.getAvailableAudioTracks():this.uy||[]:[]};
g.k.getAudioTrack=function(){var a=this;if(this.D&&!HK(this.D))return g.Db(this.getAvailableAudioTracks(),function(d){return d.id==a.D.id})||this.yl;
if(this.uy){if(!this.Po)for(var b=g.u(this.uy),c=b.next();!c.done;c=b.next())if(c=c.value,c.kc.getIsDefault()){this.Po=c;break}return this.Po||this.yl}return this.yl};
g.k.getPlayerResponse=function(){return this.playerResponse};
g.k.getWatchNextResponse=function(){return this.Ra};
g.k.getHeartbeatResponse=function(){return this.FC};
g.k.Nk=function(){return this.watchUrl?this.watchUrl:this.Ea.getVideoUrl(this.videoId)};
g.k.wP=function(){return!!this.j&&(zQa(this.j)||AQa(this.j)||BQa(this.j))};
g.k.getEmbeddedPlayerResponse=function(){return this.ri};
g.k.Rk=function(){return"shortspage"===(this.eventLabel||this.Ea.La)};
g.k.isAd=function(){return this.zD||!!this.adFormat};
g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)};
g.k.iS=function(){return HTa(this)?this.U_:this.Fp||this.Mh};
g.k.mG=function(){return this.zj||this.Mh};
g.k.ZM=function(){return RS(this,"html5_samsung_vp9_live")};
g.k.useInnertubeDrmService=function(){return!0};
g.k.ma=function(a,b,c){this.publish("ctmp",a,b,c)};
g.k.iB=function(a,b,c){this.publish("ctmpstr",a,b,c)};
g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)};
g.k.Yc=function(a,b){if(!g.IR(this.Ea)||"EMBEDDED_PLAYER_MODE_DEFAULT"!==(this.Ea.Da||"EMBEDDED_PLAYER_MODE_DEFAULT")||b)return!1;var c;return!!((null==(c=this.embeddedPlayerConfig)?0:c.isShortsExperienceEligible)&&a.width<=a.height)};
g.k.va=function(){g.wF.prototype.va.call(this);this.Iu=null;delete this.W8;delete this.accountLinkingConfig;delete this.j;this.C=this.FC=this.playerResponse=this.Ra=null;this.Rf=this.adaptiveFormats="";delete this.botguardData;this.Ae=this.suggestions=this.Lu=null};var SUa={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},TUa={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},RUa={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},UUa=!1,OUa={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"},QUa={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},PUa={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.y(GT,g.I);g.k=GT.prototype;g.k.handleExternalCall=function(a,b,c){var d=this.state.Y[a],e=this.state.qa[a],f=d;if(e)if(c&&yJ(c,qmb,rmb))f=e;else if(!d)throw Error('API call from an untrusted origin: "'+c+'"');this.logApiCall(a,c);if(f){c=!1;d=g.u(b);for(e=d.next();!e.done;e=d.next())if(String(e.value).includes("javascript:")){c=!0;break}c&&g.eF(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.No&&!this.state.ra.has(a)&&(this.state.ra.add(a),g.MC("webPlayerApiCalled",{callerUrl:d.loaderUrl,methodName:a,origin:b||void 0,playerStyle:d.playerStyle||void 0,embeddedPlayerMode:d.Da,errorCode:c}))};
g.k.publish=function(a){var b=g.Ia.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.qa(b)));if("videodatachange"===a||"resize"===a||"cardstatechange"===a)this.state.j.publish.apply(this.state.j,[a].concat(g.qa(b))),this.state.D.publish.apply(this.state.D,[a].concat(g.qa(b)))};
g.k.gb=function(a){var b=g.Ia.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.qa(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.qa(b)))};
g.k.wc=function(a){var b=g.Ia.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.qa(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.qa(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.qa(b)))};
g.k.Em=function(a){var b=g.Ia.apply(1,arguments);this.state.C.publish.apply(this.state.C,[a].concat(g.qa(b)));this.state.j.publish.apply(this.state.j,[a].concat(g.qa(b)));this.state.D.publish.apply(this.state.D,[a].concat(g.qa(b)));this.state.N.publish.apply(this.state.N,[a].concat(g.qa(b)))};
g.k.L=function(a){return this.app.U().L(a)};
g.k.va=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.va.call(this)};g.y(LT,g.Nv);LT.prototype.publish=function(a){var b=g.Ia.apply(1,arguments);if(this.G.has(a))return this.G.get(a).push(b),!0;var c=!1;try{for(b=[b],this.G.set(a,b);b.length;)c=g.Nv.prototype.publish.call.apply(g.Nv.prototype.publish,[this,a].concat(g.qa(b.shift())))}finally{this.G.delete(a)}return c};g.y(ZUa,g.I);ZUa.prototype.va=function(){this.N.dispose();this.D.dispose();this.j.dispose();this.C.dispose();this.ra=this.G=this.K=this.B=this.qa=this.Y=this.Z=void 0};var aVa=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn".split(" "));g.y(NT,GT);g.k=NT.prototype;g.k.getApiInterface=function(){return Array.from(this.state.Z)};
g.k.R5=function(a,b){this.state.N.subscribe(a,b)};
g.k.jca=function(a,b){this.state.N.unsubscribe(a,b)};
g.k.getPlayerState=function(a){return Yeb(this.app,a)};
g.k.G7=function(){return Yeb(this.app)};
g.k.Fca=function(a,b,c){eVa(this)&&(d1(this.app,!0,1),f1(this.app,a,b,c,1))};
g.k.getCurrentTime=function(a,b){var c=this.getPlayerState(a);if(2===this.app.getAppState()&&5===c){var d;return(null==(d=this.app.getVideoData())?void 0:d.startSeconds)||0}return this.L("web_player_max_seekable_on_ended")&&0===c?Ueb(this.app,a):a?this.app.getCurrentTime(a,b):this.app.getCurrentTime(this.playerType)};
g.k.u7=function(){return this.app.getCurrentTime(1)};
g.k.C7=function(){var a=this.app.df(1);return isNaN(a)?this.getCurrentTime():a};
g.k.y7=function(){return this.app.getDuration(1)};
g.k.cL=function(a,b){a=g.ye(Math.floor(a),0,100);isFinite(a)&&X0(this.app,{volume:a,muted:this.isMuted()},b)};
g.k.Sca=function(a){this.cL(a,!1)};
g.k.OJ=function(a){X0(this.app,{muted:!0,volume:this.getVolume()},a)};
g.k.H9=function(){this.OJ(!1)};
g.k.vL=function(a){g.OT(this.app)||X0(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},a)};
g.k.Cda=function(){this.vL(!1)};
g.k.getPlayerMode=function(){var a={};this.app.getVideoData().Kf&&(a.pfp={enableIma:g.ET(this.app.getVideoData())&&this.app.Nd().allowImaMonetization,autoplay:wT(this.app.Nd()),mutedAutoplay:this.app.Nd().mutedAutoplay});return a};
g.k.hR=function(){var a=this.app.getPresentingPlayerType();if(2===a&&!this.app.Jf()){var b=EV(this.app.yb());if(!Phb(b)||Qhb(b))return}3===a?ZT(this.app.yb()).bF("control_play"):this.app.playVideo(a)};
g.k.Iba=function(){d1(this.app,!0,1);this.hR()};
g.k.pauseVideo=function(a){var b=this.app.getPresentingPlayerType();if(2!==b||this.app.Jf()||Phb(EV(this.app.yb())))3===b?ZT(this.app.yb()).bF("control_pause"):this.app.pauseVideo(b,a)};
g.k.dda=function(){var a=this.app,b=!1;a.W.pc&&(a.Ua.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.Oo?kmb:jmb:[1]};
g.k.getPlaybackQuality=function(a){return(a=g.PT(this.app,a))?a.getPlaybackQuality():"unknown"};
g.k.Nca=function(){};
g.k.getAvailableQualityLevels=function(a){return(a=g.PT(this.app,a))?(a=g.Rr(a.Ss(),function(b){return b.quality}),a.length&&("auto"===a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.k.r7=function(){return this.getAvailableQualityLevels(1)};
g.k.L7=function(){return this.vX()};
g.k.M7=function(){return 1};
g.k.getVideoLoadedFraction=function(a){return this.app.getVideoLoadedFraction(a)};
g.k.vX=function(){return this.getVideoLoadedFraction()};
g.k.P7=function(){return 0};
g.k.getSize=function(){var a=this.app.kb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.setSize=function(){this.app.kb().resize()};
g.k.loadVideoById=function(a,b,c,d){if(!a)return!1;a=MT(a,b,c);return this.app.loadVideoByPlayerVars(a,d)};
g.k.e9=function(a,b,c){a=this.loadVideoById(a,b,c,1);d1(this.app,a,1)};
g.k.cueVideoById=function(a,b,c,d){a=MT(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
g.k.A6=function(a,b,c){this.cueVideoById(a,b,c,1)};
g.k.loadVideoByUrl=function(a,b,c,d){a=$Ua(a,b,c);return this.app.loadVideoByPlayerVars(a,d)};
g.k.h9=function(a,b,c){a=this.loadVideoByUrl(a,b,c,1);d1(this.app,a,1)};
g.k.cueVideoByUrl=function(a,b,c,d){a=$Ua(a,b,c);this.app.cueVideoByPlayerVars(a,d)};
g.k.D6=function(a,b,c){this.cueVideoByUrl(a,b,c,1)};
g.k.R7=function(){var a=this.app.U();if(a.qa)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.w7=function(){return this.app.getDebugText()};
g.k.getVideoEmbedCode=function(){var a=this.app.U();if(a.qa)return"";var b=this.app.Nd();return a.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.Nd().videoId,this.app.kb().getPlayerSize(),this.getPlaylistId()||void 0)};
g.k.N5=function(a,b,c){return ffb(this.app,a,b,c)};
g.k.removeCueRange=function(a){return hfb(this.app,a)};
g.k.loadPlaylist=function(a,b,c,d){this.app.loadPlaylist(a,b,c,d)};
g.k.d9=function(a,b,c,d){this.loadPlaylist(a,b,c,d);d1(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.I9=function(){this.nextVideo();d1(this.app,!0,1)};
g.k.previousVideo=function(a){this.app.previousVideo(a)};
g.k.Uba=function(){this.previousVideo();d1(this.app,!0,1)};
g.k.playVideoAt=function(a){this.app.playVideoAt(a)};
g.k.Hba=function(a){this.playVideoAt(a);d1(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.I7=function(){var a=this.app.getPlaylist();if(!a)return null;for(var b=[],c=0;c<a.getLength();c++){var d=g.nV(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.MY=function(a){"captions"===a&&(a=g.BV(this.app.yb()))&&!a.loaded&&a.load()};
g.k.n1=function(a){"captions"===a&&(a=g.BV(this.app.yb()))&&a.loaded&&a.Gda()};
g.k.aS=function(a,b,c){if(!b)return null;var d=this.app.yb();return"captions"===a?(a=g.BV(d))&&a.Oh(b,c):null};
g.k.D7=function(a,b,c){var d=g.PT(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.U().D?{}:this.aS(a,b,c)};
g.k.DO=function(a){var b=this.app.yb();if("captions"===a){var c;return(null==(c=g.BV(b))?void 0:c.getOptions())||null}return a?null:(a=[],g.BV(b)&&a.push("captions"),a)};
g.k.getVolume=function(){return this.app.Hi.volume};
g.k.isMuted=function(){return this.app.Hi.muted};
g.k.destroy=function(){this.app.dispose()};
g.k.logImaAdEvent=function(a,b){var c=this.app.U();g.ET(this.app.getVideoData())&&this.app.Nd().allowImaMonetization&&(a={adSource:"EMBEDS_AD_SOURCE_IMA",breakType:b,embedUrl:g.Gfa(this.app.U().loaderUrl),eventType:a,youtubeHost:g.hn(this.app.U().Ga)||""},a.embeddedPlayerMode=c.Da,g.MC("embedsAdEvent",a))};
g.k.mutedAutoplay=function(){var a=this.app.U(),b,c;(null==(b=a.getWebPlayerContextConfig())?0:null==(c=b.embedsHostFlags)?0:c.allowMutedAutoplay)&&!a.C&&this.app.mutedAutoplay()};
g.k.preloadVideoById=function(a,b,c,d){if(a){a=MT(a,b,c);var e,f;(null==(e=this.app.U().getWebPlayerContextConfig())?0:null==(f=e.embedsHostFlags)?0:f.allowPreloadVideoPlayerVars)&&this.app.preloadVideoByPlayerVars(a,d)}};
g.k.Qba=function(a,b,c){this.preloadVideoById(a,b,c,1)};
g.k.setFauxFullscreen=function(a){g.eC();this.app.Hm(a?2:0)};
g.k.Kca=function(a){var b,c;(null==(b=this.app.U().getWebPlayerContextConfig())?0:null==(c=b.embedsHostFlags)?0:c.allowSetFauxFullscreen)&&this.setFauxFullscreen(a)};g.y(fVa,NT);g.k=fVa.prototype;g.k.S5=function(a,b){this.state.D.subscribe(a,b)};
g.k.kca=function(a,b){this.state.D.unsubscribe(a,b)};
g.k.cueVideoByPlayerVars=function(a,b){this.app.cueVideoByPlayerVars(a,b)};
g.k.C6=function(a,b){b=void 0===b?1:b;this.cueVideoByPlayerVars(iVa(this,a),b)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){this.app.loadVideoByPlayerVars(a,c,b,d,e)};
g.k.g9=function(a,b,c,d){c=void 0===c?1:c;this.loadVideoByPlayerVars(iVa(this,a),b,c,d)};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.preloadVideoByPlayerVars(a,b,c,void 0===d?"":d,void 0===e?"":e)};
g.k.Sba=function(a,b,c,d){b=void 0===b?1:b;this.preloadVideoByPlayerVars(iVa(this,a),b,c,d)};
g.k.PY=function(a,b,c){this.loadVideoById(a,b,c,1)};
g.k.QY=function(a,b,c){this.loadVideoByUrl(a,b,c,1)};
g.k.H7=function(a){return this.getPlayerState(a)};
g.k.uX=function(a){a=void 0===a?1:a;var b=cVa(this,a);if(a=g.PT(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.Za;b.isManifestless=VS(a);b.allowLiveDvr=a.allowLiveDvr;b.isListed=a.isListed;null!=a.liveUtcStartSeconds&&(b.liveUtcStartSeconds=a.liveUtcStartSeconds);a.Ti()&&(b.isEncrypted=!0);if(a.C)for(var c=g.u(a.C.videoInfos),d=c.next();!d.done;d=c.next()){var e=void 0;if(null==(e=d.value.video)?
0:e.isHdr()){b.isHdr=!0;break}}var f,h;b.isMultiChannelAudio=!!(null==(f=a.D)?0:null==(h=f.audio)?0:h.isMultiChannelAudio())}return b};
g.k.seekBy=function(a,b,c,d){eVa(this)&&f1(this.app,this.app.getCurrentTime()+a,b,c,this.playerType,d)};
g.k.Dca=function(a,b,c){this.seekBy(a,b,c)};
g.k.seekTo=function(a,b,c,d,e){eVa(this)&&f1(this.app,a,b,c,d||this.playerType,e)};
g.k.Gca=function(a,b,c,d){this.seekTo(a,b,c,d)};
g.k.getStoryboardFormat=function(){return this.app.getStoryboardFormat()};
g.k.v7=function(a,b){return this.getCurrentTime(a,b)};
g.k.FI=function(){var a=this.app.getPresentingPlayerType(!0);2===a&&this.app.Jf()&&(a=1);return a};
g.k.getDuration=function(a,b){if(3===this.FI()){var c;return(null==(c=ZT(this.app.yb()).getProgressState())?void 0:c.duration)||0}return a?this.app.getDuration(a,b):this.app.getDuration(this.playerType)};
g.k.z7=function(a,b){return this.getDuration(a,b)};
g.k.O7=function(a){return this.getVideoLoadedFraction(a)};
g.k.loadModule=function(a){if("annotations_module"===a){var b=g.HV(this.app.yb());b&&!b.loaded&&b.load()}this.MY(a)};
g.k.unloadModule=function(a){if("annotations_module"===a){var b=g.HV(this.app.yb());b&&b.loaded&&b.unload()}this.n1(a)};
g.k.getOption=function(a,b,c){var d=g.PT(this.app,this.playerType);return d&&d.getVideoData().isPrivate&&this.app.U().D?{}:this.setOption(a,b,c)};
g.k.getOptions=function(a){var b=this.app.yb();switch(a){case "ad":var c,d;return(null==(c=EV(b))?void 0:null==(d=c.getOptions)?void 0:d.call(c))||null;case "remote":var e,f;return(null==(e=ZT(b))?void 0:null==(f=e.getOptions)?void 0:f.call(e))||null;case "annotations_module":var h,l;return(null==(h=g.HV(b))?void 0:null==(l=h.getOptions)?void 0:l.call(h))||null;case "creatorendscreen":var m,n;return(null==(m=HYa(b))?void 0:null==(n=m.getOptions)?void 0:n.call(m))||null;case "unplugged":var p,q;return(null==
(p=g.FV(b))?void 0:null==(q=p.getOptions)?void 0:q.call(p))||null;case "kids":var r,t;return(null==(r=GYa(b))?void 0:null==(t=r.getOptions)?void 0:t.call(r))||null}if(!a){a=this.DO();if(!a)return a;EV(b)&&a.push("ad");ZT(b)&&a.push("remote");g.HV(b)&&a.push("annotations_module");HYa(b)&&a.push("creatorendscreen");g.FV(b)&&a.push("unplugged");GYa(b)&&a.push("kids");return a}return this.DO(a)};
g.k.setOption=function(a,b,c){if(!b)return null;var d=this.app.yb();switch(a){case "ad":return(a=EV(d))&&a.Oh&&a.Oh(b,c);case "kids":return(a=GYa(d))&&a.Oh(b,c);case "remote":return(a=ZT(d))&&a.Oh(b,c);case "unplugged":return(a=g.FV(d))&&a.Oh(b,c);case "annotations_module":return(a=g.HV(d))&&a.Oh(b,c);case "creatorendscreen":return(a=HYa(d))&&a.Oh(b,c)}return this.aS(a,b,c)};
g.k.addCueRange=function(a,b,c,d,e){return ffb(this.app,a,b,c,d,e)};
g.k.getDebugText=function(a){return this.app.getDebugText(a)};
g.k.getCurrentBroadcastId=function(){return null};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var m=g.QT(this);m&&m.handleGlobalKeyDown(a,b,c,d,e,f,h,l)};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){b=void 0===b?!1:b;c=void 0===c?!1:c;d=void 0===d?!1:d;e=void 0===e?!1:e;var l=g.QT(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.QT(this);a&&a.showControls(!0)};
g.k.hideControls=function(){var a=g.QT(this);a&&a.showControls(!1)};
g.k.getVideoContentRect=function(a){a=this.app.kb().getVideoContentRect(a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.k.toggleFullscreen=function(){function a(c){g.eF(c)}
var b=this.app.U();if(b.externalFullscreen){if(!g.aS(b))return this.isFullscreen()?gC(window.document.documentElement):vqa(window.document.documentElement).catch(a)}else if(g.eC()||b.Z)return this.isFullscreen()?gC(fC()):"3"!==b.controlsType&&g.eC()?vqa(this.app.kb().element).catch(a):(b=this.app.Xe().Ib())?vqa(b).catch(a):Promise.reject(Error("Media element missing"));this.wc("onFullscreenToggled",this.isFullscreen());return Promise.resolve(void 0)};
g.k.isFullscreen=function(){return this.app.isFullscreen()};
g.k.cancelPlayback=function(){var a=EV(this.app.yb());a&&a.created&&a.destroy();(a=g.PT(this.app))&&a.stopVideo();(a=this.app.yb().Ge.get("endscreen"))&&a.O8()&&g.XT(this.app.Ua,!0)};
g.k.getProgressState=function(a){if(3===this.FI())return ZT(this.app.yb()).getProgressState();var b=this.app.getVideoData(),c=g.PT(this.app,a)||g.PT(this.app),d=c.getPlayerType();a:{var e=this.app.getVideoData();var f;if(null==(f=e.progressBarStartPosition)?0:f.utcTimeMillis)if(e=Number(e.progressBarStartPosition.utcTimeMillis)/1E3,!isNaN(e)){e=kVa(this,e,a);break a}e=0}var h;a:{f=this.app.getVideoData();if(null==(h=f.progressBarEndPosition)?0:h.utcTimeMillis)if(h=Number(f.progressBarEndPosition.utcTimeMillis)/
1E3,!isNaN(h)){h=kVa(this,h,a);break a}h=0}f=this.getCurrentTime(a);a=this.getDuration(a);var l=this.app.df(d),m=this.app.isAtLiveHead(d),n=this.app.Az();var p=this.app;var q=g.PT(p,d);q?(q=O0(p,q),p=Z0(p,g.BT(q.videoData)?q.videoData.Od():q.Od(),q)):p=0;q=Ueb(this.app,d);c=c.Lc();var r=this.app.getVideoData().vA;!r||isNaN(r)?d=0:(d=kVa(this,r,d),r=g.YI(this.app.U().experiments,"partial_rewind_buffer_seconds"),d-=r>d?d:r);return{airingStart:e,airingEnd:h,allowSeeking:this.app.Xh(),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.Q7=function(){return g.PT(this.app,1).jc(!0)};
g.k.toggleSubtitles=function(){var a=g.BV(this.app.yb());a&&a.sda()};
g.k.getPlayerSize=function(){var a=this.app.kb().getPlayerSize();return{width:a.width,height:a.height}};
g.k.wakeUpControls=function(){var a=g.QT(this);a&&a.Bu()};
g.k.setCenterCrop=function(a){this.app.kb().setCenterCrop(a)};
g.k.getLoopVideo=function(){return this.app.getLoopVideo()};
g.k.setLoopVideo=function(a){this.app.setLoopVideo(a)};
var gVa="BASE_URL BASE_YT_URL adformat adaptive_fmts allow_embed audio_only authuser autoplay cc_load_policy cpn dash dashmpd disable_native_context_menu disablekb docid el enable_faster_speeds enablecastapi end eventid external_fullscreen fmt_list hl hlsdvr hlsvp iurl iurlhq iurlmq length_seconds live_playback osig override_hl partnerid pause_at_start pipable player_response playsinline plid post_live_playback postid ps public raw_player_response rel show_loop_video_toggle start startSeconds status suggestedQuality timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoId".split(" "),
hVa="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 l3={},lVa=(l3["api.invalidparam"]=2,l3.auth=150,l3["drm.auth"]=150,l3["heartbeat.net"]=150,l3["heartbeat.servererror"]=150,l3["heartbeat.stop"]=150,l3["html5.unsupportedads"]=5,l3["fmt.noneavailable"]=5,l3["fmt.decode"]=5,l3["fmt.unplayable"]=5,l3["html5.missingapi"]=5,l3["html5.unsupportedlive"]=5,l3["drm.unavailable"]=5,l3["mrm.blocked"]=151,l3);g.y(g.RT,fVa);g.k=g.RT.prototype;g.k.isExternalMethodAvailable=function(a,b){return this.state.Y[a]?!0:!!(this.state.qa[a]&&b&&yJ(b,qmb,rmb))};
g.k.getBandwidthEstimate=function(){return DR(this.app.U().schedule)};
g.k.reportPlaybackIssue=function(a){a=void 0===a?"":a;var b=g.PT(this.app);b&&(a={gpu:(0,g.W_)(),d:a},b.handleError(new oK("feedback",a)))};
g.k.getInternalApi=function(){return Object.assign({},this.state.B)};
g.k.getInternalApiInterface=function(){return g.dd(this.state.B)};
g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;this.app.queueNextVideo(a,b,c,void 0===d?"":d,void 0===e?"":e)};
g.k.createSubtitlesModuleIfNeeded=function(){return this.app.createSubtitlesModuleIfNeeded()};
g.k.startSeekCsiAction=function(){this.app.zi().D.j=(0,g.$C)()};
g.k.seekToStreamTime=function(a,b,c,d){var e=this.app;b=void 0===b?!0:b;var f=g.PT(e,1),h=0;f&&f.getStreamTimeOffset()&&!f.Lc()&&(h=f.getStreamTimeOffset());f1(e,a-h,b,c,1,d)};
g.k.getStreamTimeOffset=function(){var a=g.PT(this.app,1);return a?a.getStreamTimeOffset():0};
g.k.seekToLiveHead=function(a,b){var c=g.PT(this.app,1);c&&(c=c.getVideoData())&&c.isLivePlayback&&f1(this.app,Infinity,a,b,1)};
g.k.requestSeekToWallTimeSeconds=function(a,b){var c=g.PT(this.app,1);c&&c.ER(a,b)};
g.k.setVolume=function(a,b){this.cL(a,void 0===b?!0:b)};
g.k.mute=function(a){this.OJ(void 0===a?!0:a)};
g.k.unMute=function(a){this.vL(void 0===a?!0:a)};
g.k.syncVolume=function(){var a=teb(this.app);X0(this.app,{volume:a.volume,muted:a.muted},!1)};
g.k.getAvailableQualityLabels=function(){var a=g.PT(this.app,1);return a?g.Rr(a.Ss(),function(b){return b.qualityLabel}):[]};
g.k.channelSubscribed=function(){this.gb("SUBSCRIBE",this.app.Nd().Bl)};
g.k.channelUnsubscribed=function(){this.gb("UNSUBSCRIBE",this.app.Nd().Bl)};
g.k.setScreenLayer=function(a){this.app.setScreenLayer(a)};
g.k.getCurrentPlaylistSequence=function(){return g.PT(this.app).getPlaylistSequenceForTime(this.app.getCurrentTime())};
g.k.getPlaylistSequenceForTime=function(a){return g.PT(this.app).getPlaylistSequenceForTime(a)};
g.k.shouldSendVisibilityState=function(){return!0};
g.k.confirmYpcRental=function(){var a=g.PT(this.app,1);a&&a.Cg("ypc_clickwrap")};
g.k.setHomeGroupInfo=function(a){this.app.U().homeGroupInfo=a};
g.k.setConnectedRemoteApps=function(a){this.app.U().rj=a};
g.k.setLivingRoomAppMode=function(a){this.app.U().livingRoomAppMode=XB("LIVING_ROOM_APP_MODE_UNSPECIFIED",a,fSa)};
g.k.setEnablePrivacyFilter=function(a){this.app.U().enablePrivacyFilter=void 0===a?!1:a};
g.k.togglePictureInPicture=function(){this.app.togglePictureInPicture()};
g.k.addUtcCueRange=function(a,b,c,d,e){return gfb(this.app,a,b,c,d,e)};
g.k.N7=function(a){a=void 0===a?1:a;var b=this.uX(a);if(a=g.PT(this.app,a)){a=a.getVideoData();b.hasProgressBarBoundaries=a.hasProgressBarBoundaries();b.isPremiere=a.isPremiere;b.itct=a.ra;b.playerResponseCpn=a.playerResponseCpn;var c;var d=a.hasProgressBarBoundaries()&&(null==(c=a.progressBarStartPosition)?0:c.utcTimeMillis)?$e(a.progressBarStartPosition.utcTimeMillis):null;b.progressBarStartPositionUtcTimeMillis=d;var e;c=a.hasProgressBarBoundaries()&&(null==(e=a.progressBarEndPosition)?0:e.utcTimeMillis)?
$e(a.progressBarEndPosition.utcTimeMillis):null;b.progressBarEndPositionUtcTimeMillis=c;b.ypcOriginalItct=a.o2;b.ypcPreview=a.ypcPreview;b.paidContentOverlayText=qUa(a);b.paidContentOverlayDurationMs=rUa(a);a.j&&qP(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.PT(this.app,1))?a.getPlayerState():null)?a.Ig:null;return!!(a&&b&&g.mG(a,128)&&5===mVa(b.errorCode))};
g.k.supportsGaplessAudio=function(){return this.app.U().supportsGaplessAudio()};
g.k.supportsGaplessShorts=function(){return this.app.U().supportsGaplessShorts()};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;this.app.enqueueVideoByPlayerVars(a,b,c,void 0===d?"":d)};
g.k.clearQueue=function(){this.app.clearQueue()};
g.k.xi=function(){return g.QT(this)};
g.k.sendAbandonmentPing=function(){var a=g.PT(this.app);a&&a.sendAbandonmentPing()};
g.k.setAutonavState=function(a,b){b=void 0===b?!1:b;if(this.L("web_player_autonav_use_server_provided_state")&&!b&&(b=this.app.Nd(),null==b?0:VTa(b))){if(this.L("web_player_autonav_server_provided_state_pause_killswitch"))return;if(3===a)3!==b.autonavState&&(b.aC=b.autonavState);else if(void 0!==b.aC)a=b.aC,b.aC=void 0;else return}nfb(this.app,a)};
g.k.setAutonav=function(a,b){this.setAutonavState(a?2:1,void 0===b?!1:b)};
g.k.setLoopRange=function(a){this.app.setLoopRange(a)};
g.k.getLoopRange=function(){return this.app.getLoopRange()};
g.k.hasSupportedAudio51Tracks=function(){var a;return!(null==(a=g.PT(this.app,1))||!a.hasSupportedAudio51Tracks())};
g.k.setUserAudio51Preference=function(a,b){b=void 0===b?!1:b;var c=g.PT(this.app,1);c&&c.setUserAudio51Preference(a,b)};
g.k.getUserAudio51Preference=function(){var a,b;return null!=(b=null==(a=g.PT(this.app,1))?void 0:a.getUserAudio51Preference())?b:1};
g.k.setProximaLatencyPreference=function(a){var b=g.PT(this.app,1);b&&b.setProximaLatencyPreference(a)};
g.k.getProximaLatencyPreference=function(){var a=g.PT(this.app,1);return a?a.getProximaLatencyPreference():0};
g.k.isProximaLatencyEligible=function(){var a=g.PT(this.app,1);return a?a.isProximaLatencyEligible():!1};
g.k.getAppState=function(){return this.app.getAppState()};
g.k.updateLastActiveTime=function(){rE()};
g.k.setBlackout=function(a){this.app.setBlackout(a)};
g.k.setUserEngagement=function(a){this.app.U().Ml!==a&&(this.app.U().Ml=a,(a=g.PT(this.app,1))&&F0(a))};
g.k.updateSubtitlesUserSettings=function(a,b){b=void 0===b?!0:b;g.BV(this.app.yb()).A1(a,b)};
g.k.getCaptionWindowContainerId=function(){var a=g.BV(this.app.yb());return a?a.getCaptionWindowContainerId():""};
g.k.toggleSubtitlesOn=function(){var a=g.BV(this.app.yb());a&&a.T0()};
g.k.isSubtitlesOn=function(){var a=g.BV(this.app.yb());return a?a.isSubtitlesOn():!1};
g.k.getPlayerResponse=function(a){return(a=g.PT(this.app,a))?a.getVideoData().getPlayerResponse():null};
g.k.F7=function(){return this.getPlayerResponse(1)};
g.k.getEmbeddedPlayerResponse=function(){var a=g.PT(this.app,1);return a?a.getVideoData().getEmbeddedPlayerResponse():null};
g.k.getWatchNextResponse=function(a){return(a=g.PT(this.app,a))?a.getVideoData().getWatchNextResponse():null};
g.k.S7=function(){return this.getWatchNextResponse(1)};
g.k.getHeartbeatResponse=function(a){return(a=g.PT(this.app,a))?a.getVideoData().getHeartbeatResponse():null};
g.k.A7=function(){return this.getHeartbeatResponse(1)};
g.k.getStoryboardFrame=function(a,b){var c=this.app.Vj();if(!c)return null;b=c.levels[b];return b?(a=g.GS(b,a))?{column:a.column,columns:a.columns,height:a.Iw,row:a.row,rows:a.rows,url:a.url,width:a.RE}:null:null};
g.k.getStoryboardFrameIndex=function(a,b){var c=this.app.Vj();if(!c)return-1;b=c.levels[b];if(!b)return-1;a-=this.Lc();return b.jH(a)};
g.k.getStoryboardLevel=function(a){var b=this.app.Vj();return b?(b=b.levels[a])?{index:a,intervalMs:b.j,maxFrameIndex:b.ey(),minFrameIndex:b.rM()}:null:null};
g.k.getNumberOfStoryboardLevels=function(){var a=this.app.Vj();return a?a.levels.length:0};
g.k.n7=function(){return this.getAudioTrack(1)};
g.k.getAudioTrack=function(a){return(a=g.PT(this.app,a))?a.getAudioTrack():this.app.getVideoData().yl};
g.k.setAudioTrack=function(a,b){3===this.FI()&&ZT(this.app.yb()).bF("control_set_audio_track",a);var c=g.PT(this.app,this.playerType);if(c)if(c.Ma()||g.mG(c.playerState,128))a=!1;else{var d;if(null==(d=c.videoData.C)?0:d.j){d=b?c.getCurrentTime()-c.Lc():NaN;if(b){var e=bdb(c.Zc);c.ma("aswh",{id:a.id,xtags:a.xtags,bh:e.toFixed(3)})}c.ya.setAudioTrack(a,d,b)}else if(Tdb(c)){b:{b=c.mediaElement.audioTracks();for(d=0;d<b.length;++d)if(e=b[d],e.label===a.kc.getName()){if(e.enabled){b=!1;break b}b=e.enabled=
!0;break b}b=void 0}b&&c.ma("hlsaudio",{id:a.id})}else{b:if(b=c.videoData,b.D&&!HK(b.D)||a==b.Po||!b.hd||0>=b.hd.length)b=!1;else{d=g.u(b.hd);for(e=d.next();!e.done;e=d.next()){e=e.value;if(!(e instanceof jS)){b=!1;break b}var f=a.kc.getId();e.B&&(qSa(e.B,f),e.resource=null)}b.Po=a;b=!0}b&&y0(c)&&(c.publish("internalaudioformatchange",c.videoData,!0),c.ma("hlsaudio",{id:a.id}))}a=!0}else a=!1;return a};
g.k.q7=function(){return this.getAvailableAudioTracks(1)};
g.k.getAvailableAudioTracks=function(a){return g.PT(this.app,a).getAvailableAudioTracks()};
g.k.getMaxPlaybackQuality=function(){var a=g.PT(this.app,1);return a&&a.getVideoData().B?nP(a.Mf?gbb(a.nk,a.Mf,a.Nv()):KS):"unknown"};
g.k.getUserPlaybackQualityPreference=function(){var a=g.PT(this.app,1);return a?a.getUserPlaybackQualityPreference():"auto"};
g.k.getSubtitlesUserSettings=function(){var a=g.BV(this.app.yb());return a?a.K7():null};
g.k.resetSubtitlesUserSettings=function(){g.BV(this.app.yb()).rca()};
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.kb().setGlobalCrop(a)};
g.k.getVisibilityState=function(){var a=this.isMinimized();return this.app.getVisibilityState(this.Vh(),this.isFullscreen()||g.MR(this.app.U()),a,this.isInline(),this.app.xt(),this.app.Xz(),this.app.eA())};
g.k.isMutedByMutedAutoplay=function(){return this.app.BA};
g.k.setInternalSize=function(a,b){this.app.kb().setInternalSize(new g.Ie(a,b))};
g.k.Lc=function(){var a=g.PT(this.app);return a?a.Lc():0};
g.k.isMinimized=function(){return this.app.isMinimized()};
g.k.Vh=function(){var a=g.PT(this.app,this.playerType);return!!a&&a.Vh()};
g.k.setSafetyMode=function(a){this.app.U().enableSafetyMode=a};
g.k.canPlayType=function(a){return this.app.canPlayType(a)};
g.k.updatePlaylist=function(a){if(a){var b=this.getPlaylistId(),c=!1;b&&b!==a.list&&(c=!0);void 0!==a.external_list&&(this.app.wi=WB(!1,a.external_list));var d=a.video;(b=this.app.getPlaylist())&&!c?this.isFullscreen()&&((c=d[b.index])&&c.encrypted_id!==g.nV(b).videoId||(a.index=b.index)):S0(this.app,{list:a.list,index:a.index,playlist_length:d.length});TXa(this.app.getPlaylist(),a);this.wc("onPlaylistUpdate")}else this.app.updatePlaylist()};
g.k.updateVideoData=function(a,b){var c=g.PT(this.app,this.playerType||1);c&&g.OS(c.getVideoData(),a,b)};
g.k.updateEnvironmentData=function(a){dSa(this.app.U(),a,!1)};
g.k.Ica=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,void 0===b?!0:b)};
g.k.getVideoAspectRatio=function(){return this.app.kb().getVideoAspectRatio()};
g.k.getPreferredQuality=function(){var a=g.PT(this.app);return a?a.getPreferredQuality():"unknown"};
g.k.getPlaybackQualityLabel=function(a){if(a=g.PT(this.app,a)){var b,c;return(null==(c=null==(b=a.getVideoData().B)?void 0:b.video)?void 0:c.qualityLabel)||""}return""};
g.k.setPlaybackQualityRange=function(a,b,c){var d=g.PT(this.app,this.playerType);d&&g.Qdb(d,g.kP(a,b||a,!0,"m"),!0,c)};
g.k.onAdUxClicked=function(a,b){this.publish("aduxclicked",a,b)};
g.k.showAirplayPicker=function(){this.app.showAirplayPicker()};
g.k.dispatchReduxAction=function(a){g.ZS.dispatch(a)};
g.k.changeMarkerVisibility=function(a,b){var c=this.app.getVideoData(),d=!1;a?b.forEach(function(e){c.Ae.includes(e)||(c.Ae.push(e),d=!0)}):b.forEach(function(e){c.visibleOnLoadKeys.includes(e)||g.Hb(c.Ae,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.Q5=function(a,b){this.state.j.subscribe(a,b)};
g.k.ica=function(a,b){this.state.j.unsubscribe(a,b)};
g.k.B6=function(a,b){this.cueVideoByPlayerVars(a,void 0===b?1:b)};
g.k.f9=function(a,b,c,d){this.loadVideoByPlayerVars(a,b,void 0===c?1:c,d)};
g.k.Rba=function(a,b,c,d){this.preloadVideoByPlayerVars(a,void 0===b?1:b,c,d)};
g.k.getFeedbackProductData=function(){return this.app.getFeedbackProductData()};
g.k.Ah=function(){return g.QT(this).Ah()};
g.k.Kg=function(){return g.QT(this).Kg()};
g.k.xm=function(){return g.QT(this).xm()};
g.k.Ne=function(){return this.xi().Ne()};
g.k.Xl=function(){var a=g.Ia.apply(0,arguments),b;(b=this.Ne()).Xl.apply(b,g.qa(a))};
g.k.Ph=function(){this.Ne().Ph()};
g.k.gP=function(){this.Ne().gP()};
g.k.Uh=function(){this.Ne().hide()};
g.k.iL=function(a,b,c,d,e,f,h,l){this.Ne().iL(a,b,c,d,e,f,h,l)};
g.k.oG=function(a,b){this.Ne().oG(a,b)};
g.k.Wt=function(a,b,c,d,e){this.xi().Wt(a,b,c,d,e)};
g.k.jG=function(a){this.Ne().setEnabled(a)};
g.k.Jy=function(a){this.xi().Jy(a)};
g.k.oD=function(a,b){this.xi().oD(a,b)};
g.k.pz=function(a,b){this.xi().pz(a,b)};
g.k.Dq=function(){this.xi().Dq()};
g.k.ZR=function(a,b){this.xi().ZR(a,b)};
g.k.uB=da(5);g.k.vB=da(7);g.k.Kr=da(10);g.k.Jr=da(13);g.k.NF=function(a,b){this.xi().NF(a,b)};
g.k.Iv=function(){this.xi().Iv()};
g.k.getWebPlayerContextConfig=function(){return this.app.U().getWebPlayerContextConfig()};
g.k.notifyShortsAdSwipeEvent=function(){this.publish("shortsadswipe")};g.y(g.VT,g.RT);g.k=g.VT.prototype;g.k.Io=function(a,b,c,d,e,f,h){return this.app.Io(a,b,c,d,e,f,h)};
g.k.ED=function(){return this.app.ED()};
g.k.Rs=da(15);g.k.yb=function(){return this.app.yb()};
g.k.If=function(){var a=this.yb().Ge.get("endscreen");return!!a&&a.If()};
g.k.getRootNode=function(){return this.kb().element};
g.k.U=function(){return this.app.U()};
g.k.Bz=da(17);g.k.im=function(a){return this.app.im(a)};
g.k.tp=function(){var a;return(null==(a=g.QT(this))?void 0:a.tp())||null};
g.k.Qb=function(a){return this.app.Qb(a)};
g.k.kb=function(){return this.app.kb()};
g.k.getPlaylist=function(){return this.app.getPlaylist()};
g.k.getVideoData=function(a){var b=g.PT(this.app,a);if(!b)return null;b=b.getVideoData();var c;if(b.enableServerStitchedDai&&2===a||g.BT(b)&&!a){var d=this.app;a=d.getVideoData();d.xe?(b=d.xe,d=d.getCurrentTime(),b=b.qn?void 0:null==(c=oY(b,1E3*d))?void 0:c.videoData,a=b||a):d.Ub&&d.tb&&(a=A4a(d.Ub)||a);c=a}else c=b;return c};
g.k.Vj=function(a){return this.app.Vj(a)};
g.k.xw=function(){return this.app.xw()};
g.k.isHdr=function(){var a=g.PT(this.app);return a?a.isHdr():!1};
g.k.CP=function(){return this.app.CP()};
g.k.Yc=function(){var a=g.QT(this),b=this.getVideoData();a=a?a.dJ:this.getPlayerSize();var c=!!this.getPlaylist();return!(!b||!b.Yc(new g.Ie(a.width,a.height),c))};
g.k.xB=function(a){this.app.xB(a)};
g.k.cg=function(a,b,c,d,e){this.app.Bg(a,b,c,d,e)};
g.k.Lr=function(a,b){this.app.Lr(a,b)};
g.k.playVideo=function(a){try{if(3===this.getPresentingPlayerType()){ZT(this.app.yb()).bF("control_play");return}if(!a&&2===this.getPresentingPlayerType()){var b=EV(this.app.yb());if(b&&Qhb(b))return}}catch(c){g.dF(c)}this.app.playVideo(a)};
g.k.stopVideo=function(a){g.PT(this.app,a).stopVideo()};
g.k.uo=function(a){g.PT(this.app,a).uo()};
g.k.addEventListener=function(a,b){this.state.C.subscribe(a,b)};
g.k.removeEventListener=function(a,b){this.state.C.unsubscribe(a,b)};
g.k.CF=function(a){this.app.CF(a)};
g.k.setPlaybackQuality=function(a,b){this.setPlaybackQualityRange(a,a,b)};
g.k.Ss=function(){var a={},b=g.PT(this.app).Ss();b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a[c.quality]=c;return a};
g.k.FD=function(){return g.PT(this.app).FD()};
g.k.QD=da(21);g.k.PK=function(a){this.app.PK(a);a&&nfb(this.app,a)};
g.k.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2===e;if(d&&f||3===e)f=!1,e=1;d=this.getVideoData(e);if(!d)return"";var h;a||d.isLivePlayback||(h=Math.floor(this.getCurrentTime(e)));a=f?void 0:this.getPlaylistId()||void 0;b&&"WL"===a&&(a=void 0);return this.app.getVideoUrl(d.videoId,a,h,b,c)};
g.k.RD=da(23);g.k.Wn=da(27);g.k.qo=function(a){var b=g.PT(this.app);b&&b.qo(a)};
g.k.oA=function(a,b){this.yb().oA(a,b)};
g.k.Hk=function(){var a=g.HV(this.yb());return!!a&&a.Hk()};
g.k.Wo=function(){var a=g.HV(this.yb());return!!a&&a.Wo()};
g.k.sB=function(a,b,c){var d=g.HV(this.yb());d&&d.sB(a,b,c)};
g.k.rB=da(28);g.k.Fo=function(){var a=g.PT(this.app);a&&a.Fo()};
g.k.XK=function(a){this.wc("onVideoAreaChange");this.wc(a?"onShowControls":"onHideControls")};
g.k.Dn=function(a,b){var c=g.QT(this);if(c)return c.Dn(a,b);a=this.app.kb().Th();return new g.ws(0,0,a.width,a.height)};
g.k.Fn=function(){return this.app.Fn()};
g.k.rE=function(){var a=this.yb().Ge.get("heartbeat");return!!a&&a.rE()};
g.k.Xh=function(){var a=this.U();if(a.Ra||a.disableSeek)return!1;var b=g.PT(this.app);if(!b)return!1;var c=b.getVideoData();return!c.qe()||g.mT(c)||2===this.getPresentingPlayerType()&&!this.app.Jf()||yT(c)&&2===this.getPresentingPlayerType(!0)||b.Hn()&&3!==this.getPresentingPlayerType()||g.aC(g.QR(a))&&!c.Pm||g.OT(this.app)?!1:!0};
g.k.mE=function(){var a;return(null==(a=g.PT(this.app))?void 0:a.mE)||!1};
g.k.isOrchestrationLeader=function(){return this.app.isOrchestrationLeader()};
g.k.mu=function(){var a=g.PT(this.app);a&&a.mu()};
g.k.sendVideoStatsEngageEvent=function(a,b,c){this.app.sendVideoStatsEngageEvent(a,c,b)};
g.k.lf=function(a,b,c){this.app.Iy(a,b,c)};
g.k.xo=function(a,b){this.app.MF(a,b)};
g.k.sf=function(a,b){Veb(this.app,a,b)};
g.k.IB=function(){this.app.IB()};
g.k.Cg=function(a,b){(b=g.PT(this.app,b))&&b.Cg(a)};
g.k.Hn=function(){var a=g.PT(this.app);return a?a.Hn():!0};
g.k.Vv=function(){var a=this.getVideoData();return!!a&&(a.Vv()||!!a.hlsFormats||!!a.Sc)};
g.k.getPlaybackRate=function(){return g.PT(this.app,1).getPlaybackRate()};
g.k.setPlaybackRate=function(a,b){this.app.setPlaybackRate(a,b)};
g.k.Xe=function(){return this.app.Xe()};
g.k.zi=function(){return this.app.zi()};
g.k.Ai=function(a){return this.app.Ai(a)};
g.k.createClientVe=function(a,b,c,d){this.U().bb&&this.app.Wq.createClientVe(a,b,c,void 0===d?!1:d)};
g.k.createServerVe=function(a,b,c){this.U().bb&&this.app.Wq.createServerVe(a,b,void 0===c?!1:c)};
g.k.setTrackingParams=function(a,b){this.U().bb&&this.app.Wq.setTrackingParams(a,b)};
g.k.logClick=function(a,b){this.U().bb&&(this.app.Wq.click(a,b),this.publish("veClickLogged",a))};
g.k.logVisibility=function(a,b,c){if(this.U().bb){var d=this.app.Wq;d.elements.has(a);b?d.j.add(a):d.j.delete(a);var e=g.aF(),f=a.visualElement;d.B.has(a)?e&&f&&(b?g.rF(e,[f]):g.sF(e,[f])):b&&!d.C.has(a)&&(e&&f&&g.qF(e,f,void 0,c),d.C.add(a))}};
g.k.hasVe=function(a){return this.U().bb?this.app.Wq.hasVe(a):!1};
g.k.destroyVe=function(a){this.U().bb&&this.app.Wq.destroyVe(a)};
g.k.Xc=function(){return g.PT(this.app)};
g.k.getPresentingPlayerType=function(a){return this.app.getPresentingPlayerType(a)};
g.k.ox=function(){this.app.ox()};
g.k.jz=function(a,b){return this.app.jz(a,b)};
g.k.Zp=function(a){this.app.Zp(a)};
g.k.rA=function(){this.app.rA()};
g.k.addPlayerResponseForAssociation=function(a){this.app.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.app.finishSegmentByCpn(a,b)};
g.k.QC=function(a,b,c,d,e,f,h){return this.app.QC(a,b,c,d,e,f,h)};
g.k.jE=function(a,b,c,d,e,f,h){return this.app.jE(a,b,c,d,e,f,h)};
g.k.Zz=function(){return this.app.Zz()};
g.k.Ut=function(a){this.app.Ut(a)};
g.k.Sy=function(a,b){b=void 0===b?Infinity:b;this.app.Sy(void 0===a?-1:a,b)};
g.k.xL=function(a){var b;null==(b=g.BV(this.yb()))||b.xL(a)};
g.k.IG=function(a,b,c){this.app.IG(a,b,c)};
g.k.Mq=function(){return this.app.Mq()};
g.k.eI=function(a,b,c){this.app.eI(a,b,void 0===c?0:c)};
g.k.Ct=function(){return this.app.Ct()};
g.k.Jf=function(){return this.app.Jf()};
g.k.Kt=function(a,b,c){return this.app.Kt(a,b,c)};
g.k.ma=function(a,b,c,d){c=void 0===c?!1:c;var e;null==(e=g.PT(this.app,d))||e.ma(a,b,c)};
g.k.nQ=function(a,b){this.publish("aduxmouseover",a,b)};
g.k.mQ=function(a,b){this.publish("aduxmouseout",a,b)};
g.k.MQ=function(a,b){this.publish("muteadaccepted",a,b)};
g.k.tE=function(){return this.app.kb().tE()};
g.k.yB=function(a){this.app.kb().yB(a)};
g.k.Mr=function(a){return a?this.app.rS():(a=g.PT(this.app))?a.Mr():!1};
g.k.bS=function(a){this.app.bS(a)};
g.k.CJ=function(a){var b,c=null==(b=g.PT(this.app))?void 0:b.ya;c&&c.CJ(a)};
g.k.Du=function(){g.PT(this.app,1).Du()};
g.k.LO=function(){var a=g.PT(this.app);return a?a.LO():0};
g.k.aL=function(a){var b=g.PT(this.app);b&&b.aL(a)};var vVa;g.y(uVa,wC);uVa.prototype.DD=function(a,b){a=wC.prototype.DD.call(this,a,b);return Object.assign({},a,this.requestHeaders)};g.y(g.gU,g.EF);g.k=g.gU.prototype;g.k.show=function(){var a=this.Wj();g.EF.prototype.show.call(this);this.Ga&&(this.N.T(window,"blur",this.Lb),this.N.T(document,"click",this.C4));a||this.publish("show",!0)};
g.k.hide=function(){var a=this.Wj();g.EF.prototype.hide.call(this);wVa(this);a&&this.publish("show",!1)};
g.k.od=function(a,b){this.B=a;this.qa.show();b?(this.Y||(this.Y=this.N.T(this.J,"appresize",this.AV)),this.AV()):this.Y&&(this.N.Pc(this.Y),this.Y=void 0)};
g.k.SW=function(){this.B&&this.element&&(this.B.getAttribute("aria-haspopup"),this.B.setAttribute("aria-expanded","true"),this.focus())};
g.k.AV=function(){var a=g.QT(this.J);this.B&&a.Wt(this.element,this.B)};
g.k.Lb=function(){var a=this.Wj();wVa(this);this.qa.hide();a&&this.publish("show",!1)};
g.k.C4=function(a){var b=lC(a);b&&(g.Nf(this.element,b)||this.B&&g.Nf(this.B,b)||!g.DG(a))||this.Lb()};
g.k.Wj=function(){return this.Eb&&4!==this.qa.state};g.y(xVa,g.gU);xVa.prototype.od=function(){g.gU.prototype.od.call(this);this.dialog.focus()};g.y(g.iU,g.EF);g.iU.prototype.setIcon=function(a){this.updateValue("icon",a)};
g.iU.prototype.zk=function(a){this.updateValue("label",a)};
g.iU.prototype.updateValue=function(a,b){g.EF.prototype.updateValue.call(this,a,b);this.publish("size-change")};g.vU={t5:14,w4a:13,p7a:12,i5:11,w5:10,f2:9,s2:8,Y1:7,AUDIO:6,SUBTITLES:5,s5:4,o5:3,oPa:2,REMOTE:1,uua:0,14:"STABLE_VOLUME",13:"REMOTE_SELECT",12:"SIZE",11:"MINIPLAYER",10:"THREED",9:"AUTONAV",8:"CINEMATIC",7:"ANNOTATIONS",6:"AUDIO",5:"SUBTITLES",4:"SPEED",3:"QUALITY",2:"LINKEDACCOUNT",1:"REMOTE",0:"CONTEXTMENU"};g.y(kU,g.iU);kU.prototype.Hc=function(a){this.B&&this.J.logVisibility(this.element,this.j&&a)};
kU.prototype.D=function(){var a,b,c=null==(a=this.J.getVideoData())?void 0:null==(b=a.accountLinkingConfig)?void 0:b.linked;if(c&&!this.j){var d;a=null==(d=this.J.getVideoData())?void 0:d.accountLinkingConfig;this.setIcon(MF());var e;this.zk(lU(null==a?void 0:null==(e=a.menuData)?void 0:e.connectedMenuLabel));var f,h,l;this.C=new xVa(this.J,lU(null==a?void 0:null==(f=a.menuData)?void 0:f.connectedDialogTitle),lU(null==a?void 0:null==(h=a.menuData)?void 0:h.connectedDialogMessage),lU(null==a?void 0:
null==(l=a.menuData)?void 0:l.confirmButtonText));g.O(this,this.C);var m;d=(null==a?void 0:null==(m=a.menuData)?void 0:m.trackingParams)||null;(this.B=!!d)&&this.J.setTrackingParams(this.element,d);this.Fb.Rc(this);this.j=!0}else!c&&this.j&&(this.Fb.jh(this),this.j=!1)};
kU.prototype.onClick=function(){this.B&&this.J.logClick(this.element);this.Fb.Lb();this.C&&this.C.od()};g.y(mU,g.I);mU.prototype.L=function(a){return this.api.L(a)};g.y(nU,mU);nU.prototype.onVideoDataChange=function(a){if(!a.accountLinkingConfig){var b,c=null==(b=a.getPlayerResponse())?void 0:b.accountLinkingConfig;a.accountLinkingConfig=c}var d;if(b=null==(d=a.accountLinkingConfig)?void 0:d.alsParam)a.aV=b};
nU.prototype.setAccountLinkState=function(a){this.api.getVideoData().aV=a;this.api.Fo()};
nU.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.y(zVa,mU);
zVa.prototype.B=function(a){var b=a.getId(),c=this.api.getVideoData(1),d=!this.api.isInline();if(!c.inlineMetricEnabled&&!this.api.L("enable_player_logging_lr_home_infeed_ads")||d){if("part2viewed"===b){if(c.SU&&g.UD(c.SU),c.KL&&pU(this,c.KL),c.Ay)for(var e={CPN:this.api.getVideoData().clientPlaybackNonce},f=g.u(c.Ay),h=f.next();!h.done;h=f.next())pU(this,g.Wu(h.value,e))}else"conversionview"===b?this.api.Du():"engagedview"===b&&c.mj&&(e={CPN:this.api.getVideoData().clientPlaybackNonce},g.UD(g.Wu(c.mj,
e)));c.TU&&(e=c.TU,f=a.getId(),e=mB(e,{label:f}),g.UD(e));switch(b){case "videoplaytime25":c.MU&&pU(this,c.MU);c.ML&&qU(this,c.ML);c.VU&&g.UD(c.VU);break;case "videoplaytime50":c.NU&&pU(this,c.NU);c.NL&&qU(this,c.NL);c.WU&&g.UD(c.WU);break;case "videoplaytime75":c.RU&&pU(this,c.RU);c.OL&&qU(this,c.OL);c.bV&&g.UD(c.bV);break;case "videoplaytime100":c.LU&&pU(this,c.LU),c.LL&&qU(this,c.LL),c.UU&&g.UD(c.UU)}(e=this.api.getVideoData().Iu)&&DVa(this,e,a.getId())&&DVa(this,e,a.getId()+"gaia")}if(c.inlineMetricEnabled&&
!d)switch(b){case "videoplaybackstart":var l,m=null==(l=c.By)?void 0:l.j;m&&pU(this,m);break;case "videoplayback2s":(l=null==(m=c.By)?void 0:m.C)&&pU(this,l);break;case "videoplayback10s":var n;(l=null==(n=c.By)?void 0:n.B)&&pU(this,l)}this.api.xo([a],1)};g.y(FVa,mU);g.y(HVa,g.W);g.k=HVa.prototype;
g.k.uC=function(){var a;if(a=3!==this.J.getPresentingPlayerType()&&g.dU(this.J)&&400<=this.J.kb().getPlayerSize().width)if(a=this.Nd(),this.J.U().L("client_respect_autoplay_switch_button_renderer"))a=!!a.autoplaySwitchButtonRenderer;else{var b,c,d,e;a=!1!==!!(null==(b=a.getWatchNextResponse())?0:null==(c=b.contents)?0:null==(d=c.twoColumnWatchNextResults)?0:null==(e=d.autoplay)?0:e.autoplay)}if(a)this.j||(this.j=!0,g.DF(this,this.j),this.J.U().L("web_player_autonav_toggle_always_listen")||GVa(this),
b=this.Nd(),this.AU(b.autonavState),this.J.logVisibility(this.element,this.j));else if(this.j=!1,g.DF(this,this.j),!this.J.U().L("web_player_autonav_toggle_always_listen"))for(this.J.U().L("web_player_autonav_toggle_always_listen"),b=g.u(this.B),c=b.next();!c.done;c=b.next())this.Pc(c.value)};
g.k.AU=function(a){JVa(this)?this.isChecked=1!==a:((a=1!==a)||(g.xC(),a=g.AB("web_autonav_allow_off_by_default")&&!g.yC(0,141)&&g.cB("AUTONAV_OFF_BY_DEFAULT")?!1:!g.yC(0,140)),this.isChecked=a);IVa(this)};
g.k.onClick=function(){this.isChecked=!this.isChecked;this.J.PK(this.isChecked?2:1);IVa(this);if(JVa(this)){var a=this.Nd().autoplaySwitchButtonRenderer;this.isChecked&&(null==a?0:a.onEnabledCommand)?this.J.gb("innertubeCommand",a.onEnabledCommand):!this.isChecked&&(null==a?0:a.onDisabledCommand)&&this.J.gb("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.y(KVa,mU);g.y(rU,g.iU);rU.prototype.onClick=function(){this.enabled&&(sU(this,!this.checked),this.publish("select",this.checked))};
rU.prototype.getValue=function(){return this.checked};
rU.prototype.setEnabled=function(a){(this.enabled=a)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var MVa=["en-CA","en","es-MX","fr-CA"];g.y(wU,rU);wU.prototype.Sa=function(a){a?this.j||(this.Fb.Rc(this),this.j=!0):this.j&&(this.Fb.jh(this),this.j=!1);this.j&&sU(this,ENa())};
wU.prototype.D=function(){g.wv(this.element,"ytp-menuitem-highlight-transition-enabled")};
wU.prototype.C=function(a){var b=ENa();a!==b&&(b=g.xC(),Rqa(190,a),Rqa(192,!0),b.save(),this.J.gb("cinematicSettingsToggleChange",a))};
wU.prototype.va=function(){this.j&&this.Fb.jh(this);rU.prototype.va.call(this)};g.y(SVa,mU);SVa.prototype.updateCinematicSettings=function(a){this.j=a;var b;null==(b=this.menuItem)||b.Sa(a);this.api.publish("onCinematicSettingsVisibilityChange",a)};g.y(xU,rU);xU.prototype.B=function(a){this.C(a?1:0)};
xU.prototype.onVideoDataChange=function(){var a=this.hasDrcAudioTrack(),b=1===this.j()&&a;sU(this,b);this.setEnabled(a)};
xU.prototype.va=function(){this.Fb.jh(this);rU.prototype.va.call(this)};g.y(yU,mU);yU.prototype.getDrcUserPreference=function(){return this.j};
yU.prototype.setDrcUserPreference=function(a){g.sC("yt-player-drc-pref",a,31536E3);a!==this.j&&(this.j=a,this.updateEnvironmentData(),(a=this.api.Xc())&&this.B()&&O_(a))};
yU.prototype.updateEnvironmentData=function(){this.api.U().Tf=1===this.j};
yU.prototype.B=function(){var a,b,c=null==(a=this.api.getVideoData())?void 0:null==(b=a.C)?void 0:b.j;return c?Ps(c,function(d){var e;return!0===(null==(e=d.audio)?void 0:e.j)}):!1};g.y(zU,mU);zU.prototype.onVideoDataChange=function(){var a=this,b=this.api.getVideoData();this.api.sf("embargo",1);var c=null==b?void 0:b.QL.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(null==c?0:c.length)?UVa(this,c.filter(function(d){return TVa(a,d)})):(null==b?0:b.cueRanges)&&UVa(this,b.cueRanges.filter(function(d){return TVa(a,d)}))};
zU.prototype.B=function(a){return void 0!==a.embargo};
zU.prototype.va=function(){mU.prototype.va.call(this);this.j={}};g.y(VVa,mU);
VVa.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||"");0<c.length&&(a.embeds_widget_referrer=c);0<d.length&&(a.embeds_referring_euri=d);b.D&&0<f.length&&(a.embeds_referring_origin=f);0<e.length&&(b.L("embeds_web_enable_lite_experiment_control_arm_logging")?e.unshift(28572):g.aC(g.QR(b))&&e.unshift(159628),b=e.join(","),b=g.PB()?b:g.Hg(b,4),a.source_ve_path=b);this.j.length=
0};g.y(WVa,mU);g.y(AU,g.W);AU.prototype.show=function(){g.W.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
AU.prototype.onVideoDataChange=function(a){var b,c,d=null==(b=this.api.getVideoData())?void 0:null==(c=b.getPlayerResponse())?void 0:c.playabilityStatus;d&&(b=XVa(d),g.mG(this.api.Qb(),128)||"dataloaderror"===a||!b?(this.B=0,$Va(this),this.hide()):(a=1E3*(b.remainingTimeSecs||0),0<a&&(this.show(),this.updateValue("label",hJa(b.label)),ZVa(this,a))))};
AU.prototype.va=function(){$Va(this);g.W.prototype.va.call(this)};g.y(aWa,mU);g.y(BU,g.W);BU.prototype.onClick=function(){this.Ua.logClick(this.element);this.Ua.gb("onFullerscreenEduClicked")};
BU.prototype.Sa=function(){this.Ua.isFullscreen()?this.B?this.j.hide():this.j.show():this.hide();this.Ua.logVisibility(this.element,this.Ua.isFullscreen()&&!this.B)};g.y(CU,mU);CU.prototype.updateFullerscreenEduButtonSubtleModeState=function(a){var b;null!=(b=this.j)&&(g.yv(b.element,"ytp-fullerscreen-edu-button-subtle",a),a&&!b.C&&(b.element.setAttribute("title","Ayr\u0131nt\u0131lar i\u00e7in kayd\u0131r\u0131n"),TT(b.Ua,b.element,b),b.C=!0))};
CU.prototype.updateFullerscreenEduButtonVisibility=function(a){var b;null!=(b=this.j)&&(b.B=a,b.Sa())};g.y(bWa,g.W);g.y(eWa,mU);g.y(fWa,mU);g.y(gWa,mU);g.y(DU,mU);DU.prototype.getSphericalProperties=function(){var a=g.aU(this.api.yb());return a?a.getSphericalProperties():{}};
DU.prototype.setSphericalProperties=function(a){if(a){var b=g.aU(this.api.yb());b&&b.setSphericalProperties(a,!0)}};g.y(hWa,mU);g.k=hWa.prototype;g.k.createClientVe=function(a,b,c,d){this.api.createClientVe(a,b,c,void 0===d?!1:d)};
g.k.createServerVe=function(a,b,c){this.api.createServerVe(a,b,void 0===c?!1:c)};
g.k.setTrackingParams=function(a,b){this.api.setTrackingParams(a,b)};
g.k.logClick=function(a,b){this.api.logClick(a,b)};
g.k.logVisibility=function(a,b,c){this.api.logVisibility(a,b,c)};
g.k.hasVe=function(a){return this.api.hasVe(a)};
g.k.destroyVe=function(a){this.api.destroyVe(a)};g.y(EU,mU);EU.prototype.seekToChapterWithAnimation=function(a){var b=this;if(g.QT(this.api)&&!(0>a)){var c=this.api.getVideoData(),d=c.wk;if(d&&a<d.length){d=g.u(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.index===a){iWa(this,e.startTime,e.title);return}}this.L("web_key_moments_markers")&&(c=c.hV)&&a<c.length&&c.forEach(function(f,h){h===a&&iWa(b,f.timeRangeStartMillis,f.title)})}};
EU.prototype.seekToTimeWithAnimation=function(a,b){g.QT(this.api)&&iWa(this,a,b)};
EU.prototype.setMacroMarkers=function(a,b){b={playerOverlays:{playerOverlayRenderer:{decoratedPlayerBarRenderer:{decoratedPlayerBarRenderer:{playerBar:{multiMarkersPlayerBarRenderer:b}}}}}};a=a.getVideoData();a.getWatchNextResponse();a&&null==a.getWatchNextResponse()&&(zTa(a,{raw_watch_next_response:b}),a.publish("dataupdated"))};g.y(lWa,mU);lWa.prototype.va=function(){navigator.mediaSession.playbackState="none";navigator.mediaSession.metadata=null;for(var a=g.u("nexttrack previoustrack play pause seekbackward seekforward".split(" ")),b=a.next();!b.done;b=a.next())FU(b.value,null);mU.prototype.va.call(this)};g.y(GU,mU);GU.prototype.D=function(a){return void 0!==a.compositeEmbargo};
GU.prototype.va=function(){mU.prototype.va.call(this);this.B.clear()};g.y(tWa,mU);g.k=tWa.prototype;g.k.queueOfflineAction=function(a,b,c,d){var e=this,f,h;return g.H(function(l){return 1==l.j?(f=GV(e.api.yb()))?g.z(l,f.cca([a],b,c,d),3):l.Ia(2):2!=l.j&&(h=l.B,h.length)?l.return(h[0]):l.return(Promise.reject())})};
g.k.updateDownloadState=function(a,b){var c=GV(this.api.yb());return c?c.updateDownloadState(a,b):Promise.reject()};
g.k.pauseVideoDownload=function(a){var b=GV(this.api.yb());b&&b.dR(a)};
g.k.resumeVideoDownload=function(a){var b=this,c;return g.H(function(d){return(c=GV(b.api.yb()))?d.return(c.XF(a)):d.return(Promise.reject())})};
g.k.isOrchestrationLeader=function(){return this.api.isOrchestrationLeader()};
g.k.refreshAllStaleEntities=function(a){void 0===a&&(a=14400);var b=GV(this.api.yb());return b?b.refreshAllStaleEntities(a):Promise.reject()};g.y(HU,mU);HU.prototype.getAvailableQualityDataAndMessaging=function(){return{qualityData:this.getAvailableQualityData(),qualityMessagingFormattedString:void 0}};
HU.prototype.getAvailableQualityData=function(){var a=this.api.getVideoData();if(!a)return[];var b=[],c,d,e=null==(c=a.getPlayerResponse())?void 0:null==(d=c.playabilityStatus)?void 0:d.paygatedQualitiesMetadata;d=(null==e?void 0:e.qualityDetails)||[];c=new Map;c=g.bb(d)&&!Array.isArray(d)?new Map(Object.entries(d)):new Map(d.map(function(h){return[h.key,h.value]}));
if(d=null==e?void 0:e.restrictedAdaptiveFormats){e=[];d=g.u(d);for(var f=d.next();!f.done;f=d.next())f=f.value,f=LK(f.mimeType,f.quality,f.itag.toString(),f.width.toString(),f.height.toString(),f.qualityLabel),e.push(f);a=bT(a);vP(e);d=[];e=g.u(e);for(f=e.next();!f.done;f=e.next())f=f.value,!0===sP(a,f,this.api.U().G)&&d.push(f);b=b.concat(uWa(d,!1,c))}a=this.api.FD();b=b.concat(uWa(a,!0,c));c=[];if(this.api.L("web_player_enable_premium_hbr_in_h5_api"))return b=wWa(b),vWa(b),b;a={};b=g.u(b);for(e=
b.next();!e.done;e=b.next())e=e.value,d=e.quality,a[d]||(e.formatId=void 0,c.push(e),a[d]=!0);return c};g.y(IU,g.W);IU.prototype.Sa=function(a){a=a?"Pencere i\u00e7inde pencere modundan \u00e7\u0131k":"Pencere i\u00e7inde pencere";this.update({"data-title-no-tooltip":a,title:a});this.api.Ph()};
IU.prototype.onClick=function(){this.api.togglePictureInPicture()};g.y(xWa,mU);xWa.prototype.createButton=function(){var a=this;this.button=new IU(this.api);g.O(this,this.button);this.api.Jy(this.button);this.events.T(this.api,"videodatachange",function(){yWa(a)});
yWa(this)};g.y(zWa,mU);g.y(LU,g.W);g.k=LU.prototype;g.k.YE=function(){};
g.k.Qt=function(){};
g.k.zx=function(){return!0};
g.k.Zca=function(){if(this.expanded){this.Za.show();var a=this.C.element.scrollWidth}else a=this.C.element.scrollWidth,this.Za.hide();this.Xb=34+a;g.yv(this.badge.element,"ytp-suggested-action-badge-expanded",this.expanded);this.badge.element.style.width=(this.expanded?34:this.Xb)+"px";this.Wa.start()};
g.k.Y6=function(){this.badge.element.style.width=(this.expanded?this.Xb:34)+"px";this.bb.start()};
g.k.VJ=function(a){this.Ba=a;KU(this);JU(this);this.Bk()};
g.k.Jda=function(){g.yv(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!0)};
g.k.eL=function(){return this.Y||this.Ba||!this.qa};
g.k.Bk=function(){this.zx()?this.ra.show():this.ra.hide();AWa(this)};
g.k.BU=function(){this.enabled=!1;this.Bk()};
g.k.Ida=function(){this.Bk()};
g.k.f$=function(a){this.zb=1===a;this.Bk();g.yv(this.badge.element,"ytp-suggested-action-badge-with-offline-slate",!1)};
g.k.y$=function(){g.yv(this.badge.element,"ytp-suggested-action-badge-fullscreen",this.J.isFullscreen());this.Bk()};g.y(NU,LU);g.k=NU.prototype;g.k.YE=function(a){a.target!==this.dismissButton.element&&a.target!==this.overflowButton.element&&(this.onClickCommand&&this.J.gb("innertubeCommand",this.onClickCommand),this.Qt())};
g.k.Qt=function(){this.enabled=!1;this.ra.hide()};
g.k.zx=function(){return!!this.j};
g.k.onVideoDataChange=function(a,b){this.g0(b);if(this.j){this.j0();var c,d;this.banner.update({title:null==(c=this.j)?void 0:c.title,subtitle:null==(d=this.j)?void 0:d.subtitle});var e;this.onClickCommand=null==(e=this.j)?void 0:e.onTap;var f;if(null==(f=this.j)?0:f.thumbnailImage){var h,l;a=(null==(h=this.j)?void 0:null==(l=h.thumbnailImage)?void 0:l.sources)||[];0!==a.length&&this.thumbnailImage.update({url:a[0].url})}else{var m;if(null==(m=this.j)?0:m.thumbnailIconName){var n;this.thumbnailIcon.update({icon:null==
(n=this.j)?void 0:n.thumbnailIconName})}}var p;this.shouldShowOverflowButton=!(null==(p=this.j)||!p.shouldShowOverflowButton);var q;this.shouldHideDismissButton=!(null==(q=this.j)||!q.shouldHideDismissButton);var r;this.banner.element.setAttribute("aria-label",(null==(r=this.j)?void 0:r.a11yLabel)||"");var t;this.Ra=null==(t=this.j)?void 0:t.dismissButtonA11yLabel}};
g.k.w$=function(){this.Y=this.enabled=!0;this.Bk();this.thumbnailImage.show();this.shouldHideDismissButton?this.shouldShowOverflowButton&&this.overflowButton.show():this.dismissButton.show()};
g.k.x$=function(){this.Y=this.enabled=!1;this.Bk();this.thumbnailImage.hide();this.shouldHideDismissButton?this.shouldShowOverflowButton&&this.overflowButton.hide():this.dismissButton.hide()};
g.k.g0=function(){};
g.k.j0=function(){};
g.k.va=function(){this.J.sf("suggested_action_view_model");LU.prototype.va.call(this)};g.y(OU,NU);OU.prototype.g0=function(a){var b,c,d;this.productUpsellSuggestedActionViewModel=g.V(null==(b=a.getWatchNextResponse())?void 0:null==(c=b.playerOverlays)?void 0:null==(d=c.playerOverlayRenderer)?void 0:d.suggestedActionViewModel,Plb);var e;if(null==(e=this.productUpsellSuggestedActionViewModel)?0:e.content){var f;this.j=g.V(null==(f=this.productUpsellSuggestedActionViewModel)?void 0:f.content,ulb)}};
OU.prototype.j0=function(){var a=[],b,c=g.u((null==(b=this.productUpsellSuggestedActionViewModel)?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.DJ(b,d,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.J.lf(a)};g.y(CWa,mU);g.y(g.QU,g.wF);g.k=g.QU.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),RU(this),PU(this))};
g.k.Jw=function(a){RU(this);this.T(SU("move"),this.CU);this.T(SU("out"),this.AA);this.T("touchstart",this.tM);this.j&&this.T(SU("down"),this.sM);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.CU=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&&He(new g.Ge(c.pageX,c.pageY),a))return}this.publish("hovermove",a.x,a.y,b)};
g.k.AA=function(a){var b=new g.Ge(a.pageX,a.pageY),c=a.relatedTarget;try{if(c&&g.Nf(this.target,c)){this.G=a;this.publish("hovermove",b.x,b.y,c);return}}catch(d){}RU(this);PU(this);this.B=!1;this.publish("hoverend",b.x,b.y,c)};
g.k.E9=function(a){this.Jw(a);this.sM(a)};
g.k.sM=function(a){if("number"!==typeof a.button||0===a.button){RU(this);this.D.T(document,SU("move"),this.D9);this.D.T(document,SU("up"),this.D4);var b=a.target;if(g.Rc)this.T("dragstart",this.M6);else if(a.preventDefault(),(g.bS||As)&&b)a:{for(var c=b;c;){if(Zba(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}document.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.M6=function(a){a.preventDefault()};
g.k.D9=function(a){var b=a.target;b===document&&(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.D4=function(a){RU(this);this.C=!1;var b=lC(a),c=a.target;a=new g.Ge(a.pageX,a.pageY);b&&g.Nf(this.target,b)?(this.T(SU("move"),this.CU),this.T(SU("out"),this.AA),this.T(SU("down"),this.sM),this.T("touchstart",this.tM),this.publish("dragend",a.x,a.y,c)):(PU(this),this.B=!1,this.publish("dragend",a.x,a.y,c),this.publish("hoverend",a.x,a.y,c))};
g.k.tM=function(a){var b=a.changedTouches[0];b&&(RU(this),this.Y||(this.T("touchmove",this.tda),this.T("touchend",this.DU),this.T("touchcancel",this.DU),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.tda=function(a){var b=DWa(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.DU=function(a){var b=DWa(this,a);if(b){RU(this);PU(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.va=function(){this.j&&(g.Rc&&this.target.removeAttribute("draggable"),this.target.style.touchAction="");RU(this);g.wF.prototype.va.call(this)};g.y(EWa,g.W);EWa.prototype.Uh=function(){g.zs(this.j,"display","none");this.J.logVisibility(this.j,!1)};g.y(UU,mU);UU.prototype.ra=function(a,b){this.Y=[a,b];this.j.subscribe("dragmove",this.N,this);this.j.subscribe("dragend",this.K,this);this.C||g.mv(this.delay)};
UU.prototype.Da=function(){if(this.D){this.C=!0;this.Ga=this.api.getPlaybackRate();this.La=this.api.Qb().isPaused();var a=this.speedmasterUserEdu;g.zs(a.j,"display","");a.J.logVisibility(a.j,!0);this.api.setPlaybackRate(this.Na);this.api.hideControls();this.api.playVideo();this.Z&&(this.Z.Sz=!0);this.qa&&(this.qa.cJ=!0)}};
UU.prototype.N=function(a,b){if(!this.C){a=[a,b];var c=this.Y;c&&a&&2===c.length&&2===a.length?(b=Math.abs(c[0]-a[0]),c=Math.abs(c[1]-a[1]),b=Math.sqrt(b*b+c*c)):b=-1;b<this.Ba?this.Y=a:VU(this)}};
UU.prototype.K=function(){VU(this)};g.y(IWa,mU);IWa.prototype.onVideoDataChange=function(a){"newdata"===a&&this.api.yb().createSubtitlesModuleIfNeeded()};g.y(WU,g.zb);WU.prototype.preventDefault=function(){g.zb.prototype.preventDefault.call(this);this.j&&this.j.preventDefault()};
WU.prototype.stopPropagation=function(){g.zb.prototype.stopPropagation.call(this);this.j&&this.j.stopPropagation()};g.y(g.XU,gL);g.k=g.XU.prototype;g.k.Wu=function(){return!0};
g.k.isView=function(){return!1};
g.k.FR=function(){return!1};
g.k.Ib=function(){return this.j};
g.k.Gf=function(){return this.j.src};
g.k.hH=function(a){var b=this.getPlaybackRate();this.j.src=a;this.setPlaybackRate(b)};
g.k.LK=function(){this.j.removeAttribute("src")};
g.k.getPlaybackRate=function(){try{return 0<=this.j.playbackRate?this.j.playbackRate:1}catch(a){return 1}};
g.k.setPlaybackRate=function(a){this.getPlaybackRate()!==a&&(this.j.playbackRate=a);return a};
g.k.Us=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.Uf=function(){return this.j.seeking};
g.k.isEnded=function(){return this.j.ended};
g.k.zI=function(){return this.j.muted};
g.k.tB=function(a){bDa();this.j.muted=a};
g.k.Rv=function(){return this.j.played||NK([],[])};
g.k.Rh=function(){try{var a=this.j.buffered}catch(b){}return a||NK([],[])};
g.k.VD=function(){return this.j.seekable||NK([],[])};
g.k.gH=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.Fk=function(){return this.j.readyState};
g.k.AI=function(){return this.j.networkState};
g.k.Xg=function(){return this.j.error?this.j.error.code:null};
g.k.wf=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.Vh=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless};
g.k.mu=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():aDa()&&a.webkitSetPresentationMode("picture-in-picture"===a.webkitPresentationMode?"inline":"picture-in-picture")};
g.k.Ws=function(){var a=this.j;return new g.Ge(a.offsetLeft,a.offsetTop)};
g.k.getSize=function(){return g.Ls(this.j)};
g.k.setSize=function(a){g.Ks(this.j,a)};
g.k.getVolume=function(){return this.j.volume};
g.k.setVolume=function(a){bDa();this.j.volume=a};
g.k.YN=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.RC=da(30);g.k.yG=da(32);g.k.zG=da(34);g.k.Vy=da(36);g.k.rD=function(){return gC(this.j)};
g.k.qs=function(a){g.uv(this.j,a)};
g.k.XD=function(a){return g.Cs(this.j,a)};
g.k.uP=function(){return g.Nf(document.body,this.j)};
g.k.audioTracks=function(){var a=this.j;if("audioTracks"in a)return a.audioTracks};
g.k.va=function(){for(var a=g.u(Object.keys(this.G)),b=a.next();!b.done;b=a.next())b=b.value,this.j.removeEventListener(b,this.G[b]);gL.prototype.va.call(this)};
g.k.XR=function(a){this.j.disableRemotePlayback=a};YU.prototype.add=function(a){this.j=(this.j+1)%this.data.length;this.data[this.j]=a};
YU.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)};
YU.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.y(ZU,g.I);ZU.prototype.start=function(){this.B.start()};
ZU.prototype.stop=function(){this.B.stop()};
ZU.prototype.clear=function(){for(var a=g.u(this.j.values()),b=a.next();!b.done;b=a.next())b.value.clear()};
ZU.prototype.sample=function(){for(var a=g.u(this.C),b=a.next();!b.done;b=a.next()){var c=g.u(b.value);b=c.next().value;c=c.next().value;this.j.has(b)||this.j.set(b,new KWa(knb.has(b)));this.j.get(b).update(c())}this.B.start()};
var knb=new Set(["networkactivity"]);KWa.prototype.update=function(a){this.j?(this.buffer.add(a-this.hA||0),this.hA=a):this.buffer.add(a)};
KWa.prototype.clear=function(){this.buffer.clear();this.hA=0};g.y(cV,g.W);g.y(eV,g.W);eV.prototype.show=function(){g.W.prototype.show.call(this);this.Sa();this.Ua.L("html5_enable_moving_s4n_window")&&g.iJ(this.Ua.U())&&this.N()};
eV.prototype.hide=function(){g.W.prototype.hide.call(this);this.delay.stop();this.D.stop()};
eV.prototype.Sa=function(){var a=(0,g.$C)(),b=NWa(this.Ua);dV(this.j,b.bandwidth_samples);dV(this.K,b.network_activity_samples);dV(this.C,b.live_latency_samples);dV(this.B,b.buffer_health_samples);var c={};b=g.u(Object.entries(b));for(var d=b.next();!d.done;d=b.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;this.Y[d]!==e&&(c[d]=" "+String(e));this.Y[d]=e}this.update(c);a=25<(0,g.$C)()-a?5E3:500;this.delay.start(a)};
eV.prototype.N=function(){this.G?(this.position+=1,15<this.position&&(this.G=!1)):(--this.position,0>=this.position&&(this.G=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.y(QWa,mU);g.y(fV,g.I);fV.prototype.j=function(){var a=(0,g.$C)()-this.startTime;a=a<this.duration?a/this.duration:1;this.B(Jv(lnb,a));1>a&&this.delay.start()};
var lnb=new Iv(0,0,.4,0,.2,1,1,1),WWa=/[0-9.-]+|[^0-9.-]+/g;g.y(gV,g.W);gV.prototype.onClick=function(){var a=this.api.app;a.Ua.gb("SIZE_CLICKED",!a.EP);this.api.logClick(this.element)};
gV.prototype.Sa=function(){g.DF(this,this.api.CP()&&!this.api.isFullscreen()&&3!==this.api.getPresentingPlayerType());if(this.Eb){var a=this.api.xw();if(this.xw!==a){var b=a?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,X:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,X:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",
fill:"#fff","fill-rule":"evenodd"}}]};null==this.xw?this.updateValue("icon",b):VWa(this.transition,this.element,b);this.xw=a;b=g.UT(this.api,"Varsay\u0131lan g\u00f6r\u00fcn\u00fcm","t");var c=g.UT(this.api,"Sinema modu","t");this.updateValue("title",a?b:c);this.update({"data-title-no-tooltip":a?"Varsay\u0131lan g\u00f6r\u00fcn\u00fcm":"Sinema modu"});this.api.Ph()}}this.api.logVisibility(this.element,this.Eb)};g.y(XWa,mU);g.y(YWa,mU);hV.prototype.send=function(a,b){var c;return g.H(function(d){if(1==d.j)return g.Ba(d,2),g.z(d,EB(a,b),4);if(2!=d.j)return d.return(d.B);c=g.Da(d);if(c instanceof DB)throw new Zm(Ym(uB(c.xhr)),c.message);throw c;})};
hV.prototype.uD=function(a,b){var c=this,d,e,f,h,l,m;return g.H(function(n){if(1==n.j){var p=new qo;d=Jk(p,1,c.Xi);a&&Jk(d,2,a);b&&Jk(d,3,b);return g.z(n,c.send(c.B,Object.assign({},{postBody:d.yk()},c.j)),2)}e=n.B;f=Xib(e.xhr.responseText);h=Oj(f,2);if(!h.isEmpty()){if(g.PB()&&10>Qpa())throw Error("Unsupported");l=Ig(lda(h));return n.return(sga(l))}m=g.qk(f,lo,1);if(!m)throw Error("Missing field");return n.return(m)})};
hV.prototype.MW=function(a){var b=this,c,d;return g.H(function(e){if(1==e.j){var f=new ro;f=Jk(f,1,b.Xi);c=Jk(f,2,a);return g.z(e,b.send(b.C,Object.assign({},{postBody:c.yk()},b.j)),2)}d=e.B;return e.return(Zib(d.xhr.responseText))})};var m3={},HXa=(m3[1]="pot_ss",m3[2]="pot_sf",m3[3]="pot_se",m3[4]="pot_xs",m3[5]="pot_xf",m3[6]="pot_xe",m3);g.y(iV,mU);iV.prototype.va=function(){this.C&&(g.zB(this.C),this.C=void 0);mU.prototype.va.call(this)};
iV.prototype.iO=function(a){var b=this;return g.H(function(c){return b.j?c.return(b.j.ready().then(function(){b.Kb.Gh("pot_if");return IXa(b,a)})):c.return(Promise.reject("web po not ready"))})};
iV.prototype.bQ=function(a){return IXa(this,a)};
iV.prototype.RS=function(){this.j&&!this.j.isReady()&&jV(this)};g.y(JXa,mU);g.y(kV,g.I);kV.prototype.j=function(){for(var a=g.u(g.Ia.apply(0,arguments)),b=a.next();!b.done;b=a.next())(b=b.value)&&this.features.push(b)};
kV.prototype.va=function(){for(var a=this.features.length-1;0<=a;a--)this.features[a].dispose();this.features.length=0;g.I.prototype.va.call(this)};lV.prototype.pQ=function(){this.B=(0,g.$C)()};
lV.prototype.reset=function(){this.j=this.B=NaN};
lV.prototype.vQ=function(a,b){if(a.clientPlaybackNonce&&!isNaN(this.j)){if(.01>Math.random()){b=b?"pbp":"pbs";var c={startTime:this.j};a.G&&(c.cttAuthInfo={token:a.G,videoId:a.videoId});BH("seek",c);g.AH({clientPlaybackNonce:a.clientPlaybackNonce},"seek");isNaN(this.B)||CH("pl_ss",this.B,"seek");CH(b,(0,g.$C)(),"seek")}this.reset()}};g.k=KXa.prototype;g.k.reset=function(){yH(this.timerName)};
g.k.tick=function(a,b){CH(a,b,this.timerName)};
g.k.Gh=function(a){return dza(a,this.timerName)};
g.k.yu=function(a){vL(a,void 0,this.timerName)};
g.k.infoGel=function(a){g.AH(a,this.timerName)};g.y(OXa,g.wF);g.k=OXa.prototype;g.k.Pk=function(a){return this.loop||!!a||this.index+1<this.length};
g.k.xp=function(a){return this.loop||!!a||0<=this.index-1};
g.k.setShuffle=function(a){this.shuffle=a;a=this.order&&null!=this.order[this.index]?this.order[this.index]:this.index;this.order=[];for(var b=0;b<this.items.length;b++)this.order.push(b);this.index=a;this.B++;if(this.shuffle){a=this.order[this.index];for(b=1;b<this.order.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.order[b];this.order[b]=this.order[c];this.order[c]=d}for(b=0;b<this.order.length;b++)this.order[b]===a&&(this.index=b);this.B++}this.publish("shuffle")};
g.k.Yg=function(a){a=a||"hqdefault.jpg";var b=this.Z[a];if(b||this.Ea.qa||"sddefault.jpg"===a||"hq720.jpg"===a||"maxresdefault.jpg"===a)return b;if(this.C.length)return VR(this.Ea,this.C[0],a)};
g.k.getLength=function(){return this.length};
g.k.findIndex=function(a){if(a&&(a=a.videoId,!this.items[this.index]||this.items[this.index].video_id!==a))for(var b=0;b<this.items.length;b++)if(this.items[b].video_id===a){this.index=b;break}};
g.k.onReady=function(a){this.j=a;this.loaded&&g.wB(this.j,0)};
g.k.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.k.Nk=function(){return this.Ea.getVideoUrl(g.nV(this).videoId,this.getPlaylistId())};
g.k.va=function(){this.j=null;g.wb(this.items);g.wF.prototype.va.call(this)};var oV=new Map;g.y(g.qV,g.wF);g.k=g.qV.prototype;g.k.create=function(){};
g.k.load=function(){this.loaded=!0};
g.k.unload=function(){this.loaded=!1};
g.k.Oh=function(){};
g.k.ll=function(){return!0};
g.k.va=function(){this.loaded&&this.unload();g.wF.prototype.va.call(this)};
g.k.jc=function(){return{}};
g.k.getOptions=function(){return[]};g.y(g.tV,g.I);g.k=g.tV.prototype;g.k.Jt=da(39);g.k.nA=function(){};
g.k.Tr=function(){};
g.k.Tv=function(){return""};
g.k.nR=da(40);g.k.va=function(){this.Tr();g.I.prototype.va.call(this)};g.y(g.uV,g.tV);g.uV.prototype.Jt=da(38);g.uV.prototype.nA=function(a){if(this.audioTrack)for(var b=g.u(this.audioTrack.captionTracks),c=b.next();!c.done;c=b.next())g.sV(this.B,c.value);a()};
g.uV.prototype.Tv=function(a,b){var c=a.Oe(),d={fmt:b};if("srv3"===b||"3"===b||"json3"===b)g.PB()?Object.assign(d,{xorb:2,xobt:1,xovt:1}):Object.assign(d,{xorb:2,xobt:3,xovt:3});a.translationLanguage&&(d.tlang=g.pS(a));this.W.L("web_player_topify_subtitles_for_shorts")&&this.C&&(d.xosf="1");Object.assign(d,this.W.j);return mB(c,d)};
g.uV.prototype.Tr=function(){this.j&&this.j.abort()};g.aYa.prototype.Tt=function(a){this.Ea.Tt(a)};g.mnb=new Map;g.y(g.yV,g.tV);g.yV.prototype.Jt=da(37);
g.yV.prototype.nA=function(a){var b=this,c=this.C,d={type:"list",tlangs:1,v:this.videoId,vssids:1};this.eY&&(d.asrs=1);c=mB(c,d);this.Tr();this.j=g.CB(c,{format:"RAW",onSuccess:function(e){b.j=null;if((e=e.responseXML)&&e.firstChild){for(var f=e.getElementsByTagName("track"),h=0;h<f.length;h++){var l=f[h],m=l.getAttribute("lang_code"),n=l.getAttribute("lang_translated"),p=l.getAttribute("name"),q=l.getAttribute("kind"),r=l.getAttribute("id"),t="true"===l.getAttribute("lang_default"),v="true"===l.getAttribute("cantran");
l=l.getAttribute("vss_id");g.sV(b.B,new g.mS({languageCode:m,languageName:n,name:p,kind:q,id:r,is_servable:!0,is_translateable:v,vss_id:l,is_default:t}))}e=e.getElementsByTagName("target");f=e.length;for(h=0;h<f;h++)m={languageCode:e[h].getAttribute("lang_code"),languageName:e[h].getAttribute("lang_translated"),languageOriginal:e[h].getAttribute("lang_original"),id:e[h].getAttribute("id"),isDefault:"true"===e[h].getAttribute("lang_default")},b.G[m.languageCode]=m.languageName,b.D.push(m)}a()},
withCredentials:!0})};
g.yV.prototype.Tv=function(a,b){var c=this.C;b={v:this.videoId,type:"track",lang:a.languageCode,name:a.getName(),kind:a.kind,fmt:b};this.W.L("captions_url_add_ei")&&(b.ei=this.eventId);a.translationLanguage&&(b.tlang=g.pS(a));Object.assign(b,this.W.j);return c=mB(c,b)};
g.yV.prototype.Tr=function(){this.j&&this.j.abort()};zV.prototype.preload=function(a){a=a?gYa(this.capabilities,a):this.capabilities;return a.Id?mYa(this,a).then(function(){}):Promise.resolve()};
zV.prototype.compile=function(a){var b=this;return fYa([{name:"compileStreaming",condition:function(){return!!b.B&&a.streaming},
func:function(){return WebAssembly.compileStreaming(fetch(b.path))},
onFailure:function(){return b.capabilities.streaming=!1}},
{name:"sync",condition:function(){return a.sync},
func:function(){return lYa(b).then(function(c){return new WebAssembly.Module(c)})},
onFailure:function(){return b.capabilities.sync=!1}},
{name:"async",condition:function(){return!0},
func:function(){return lYa(b).then(function(c){return WebAssembly.compile(c)})},
onFailure:function(){return b.capabilities.Id=!1}}],void 0,function(c,d,e){g.eF(Error("wasm module compile mode "+d.name+" failure",{cause:e}))})};
zV.prototype.instantiate=function(a,b){var c=this;return fYa([{name:"instantiateStreaming",condition:function(){return a.Id&&a.streaming&&!c.B&&!c.j},
func:function(){return WebAssembly.instantiateStreaming(fetch(c.path),b).then(function(d){c.j=Promise.resolve(d.module);return{instance:d.instance,Xq:!1}})},
onFailure:function(){return c.capabilities.streaming=!1}},
{name:"sync",condition:function(){return a.Id&&a.sync},
func:function(){return mYa(c,a).then(function(d){return{instance:new WebAssembly.Instance(d,b),Xq:!1}})},
onFailure:function(){return c.capabilities.sync=!1}},
{name:"async",condition:function(){return a.Id},
func:function(){return mYa(c,a).then(function(d){return WebAssembly.instantiate(d,b)}).then(function(d){return{instance:d,
Xq:!1}})},
onFailure:function(){return c.capabilities.Id=!1}},
{name:"asmjs",condition:function(){return a.Ly},
func:function(){return c.C(b).then(function(d){return{instance:{exports:d},Xq:!0}})},
onFailure:function(){return c.capabilities.Ly=!1}}],function(d){return c.D(b,d.instance.exports)},function(d,e,f){g.eF(Error("wasm module instantiation mode "+e.name+" failure",{cause:f}))})};nYa.prototype.emscripten_notify_memory_growth=function(){};
oYa.prototype.proc_exit=function(){};
oYa.prototype.fd_write=function(a,b,c){if(!this.exports)return 1;a=new Uint32Array(this.exports.memory.buffer,b,2*c);b=[];for(var d=0;d<c;++d){var e=new Uint8Array(this.exports.memory.buffer,a[2*d],a[2*d+1]);e=g.$N(e);b.push(e)}return b.reduce(function(f,h){return f+h.length},0)};var iYa,veb="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly);g.tK||g.jR&&!g.NB("windows nt")||g.VC||g.qD||Qpa();g.y(sYa,g.I);g.k=sYa.prototype;g.k.createSubtitlesModuleIfNeeded=function(){wYa(this)&&CV(this,"captions");return!!g.BV(this)};
g.k.mG=function(){return this.J.getVideoData().mG()};
g.k.iS=function(){return this.J.getVideoData().iS()};
g.k.kW=function(){var a=this.Ge.get("heartbeat");CV(this,"heartbeat",!1,!0,this.kW);!a&&this.Ge.has("heartbeat")&&this.J.publish("offlineslatestatechange")};
g.k.OH=function(){CV(this,"annotations_module",!0,void 0,this.OH);var a=this.Ge.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.IN=function(){if(!this.Ge.get("ad"))try{tYa(this)?CV(this,"ad",!1,!0,this.IN):this.J.Cg("ad")}catch(a){this.J.Cg("ad"),g.dF(a)}};
g.k.zi=function(){return this.B};
g.k.Pq=function(){var a={},b=g.BV(this);b&&Object.assign(a,b.Pq());return a};
g.k.oA=function(a,b){Object.assign(this.B,a||null);Object.assign(this.QH,b||null)};
g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.J.L("enable_wn_infocards")&&g.sT(a)&&!g.HV(this)&&this.OH()};
g.k.va=function(){g.I.prototype.va.call(this);DV(this,1,!0);for(var a=g.u(Object.entries(KYa)),b=a.next();!b.done;b=a.next()){var c=g.u(b.value);b=c.next().value;c=c.next().value;this.D.has(c)&&oV.delete(b)}this.D.clear()};
var n3={},KYa=(n3.ad="ad.js",n3.annotations_module="annotations_module.js",n3.asmjs="asmjs.js",n3.creatorendscreen="annotations_module.js",n3.embed="embed.js",n3.endscreen="endscreen.js",n3.heartbeat="heartbeat.js",n3.inline_preview="inline_preview.js",n3.kids="kids.js",n3.remote="remote.js",n3.miniplayer="miniplayer.js",n3.offline="offline.js",n3.captions="captions.js",n3.unplugged="unplugged.js",n3.ux="ux.js",n3.webgl="webgl.js",n3.ypc="ypc.js",n3.ypc_clickwrap="ypc_clickwrap.js",n3.yto="yto.js",
n3),FYa="ad annotations_module asmjs creatorendscreen embed endscreen heartbeat inline_preview kids remote miniplayer offline captions webgl ypc ypc_clickwrap yto unplugged ux".split(" ");g.y(MYa,g.wF);g.k=MYa.prototype;g.k.E4=function(a){a=new g.Ge(a.pageX,a.pageY);if(!He(a,this.D)){var b=2;this.K&&(b|=8);this.D=a;IV(this,b,!0)}};
g.k.F9=function(){this.K&&IV(this,8,!0);IV(this,2,!1)};
g.k.Jw=function(a){var b=new g.Ge(a.pageX,a.pageY);He(b,this.D)||(this.D=b,(a=a.target)&&this.EH(a)&&(IV(this,4,!0),this.j.Pc(this.C),this.C=this.j.T(this.target,"mouseover",this.AA),this.N=this.j.T(this.target,"mouseout",this.AA)))};
g.k.AA=function(a){a=a.relatedTarget;a&&this.EH(a)||(this.D=new g.Ge(NaN,NaN),NYa(this))};
g.k.Y8=function(){IV(this,1,!0)};
g.k.j7=function(a){a=a.target;a instanceof Element&&!(0<a.tabIndex)||IV(this,1,!0)};
g.k.EU=function(){this.K=!0;this.j.Pc(this.G);this.G=this.j.T(document,"mouseup",this.F4)};
g.k.F4=function(){this.K=!1;IV(this,8,!1);this.j.Pc(this.G);this.G=this.j.T(this.target,"mousedown",this.EU)};
g.k.FU=function(a){if(a=(a=a.changedTouches)&&a[0])this.Ba=a.identifier,this.j.Pc(this.Z),this.Z=this.j.T(this.target,"touchend",this.G4,void 0,!0),IV(this,1024,!0)};
g.k.G4=function(a){if(a=a.changedTouches)for(var b=0;b<a.length;b++){var c=a[b];if(c.identifier===this.Ba){var d=c;break}}d&&(this.j.Pc(this.Z),this.Z=this.j.T(this.target,"touchstart",this.FU,void 0,!0),IV(this,1024,!1))};
g.k.Bu=function(){IV(this,2,!0)};
g.k.resize=function(){g.tK&&NYa(this)};
g.k.toString=function(){return g.wF.prototype.toString.call(this)};g.y(g.KV,g.W);g.k=g.KV.prototype;g.k.Hda=function(){this.Sa()};
g.k.Sa=function(){var a=this.api.getVideoData(),b=this.api.U(),c=!!this.api.Yc();g.yv(this.element,"ytp-shorts-mode",c);c?b=[{I:"svg",X:{fill:"none",height:"100%",viewBox:"0 0 87 115",width:"100%"},V:[{I:"path",X:{"clip-rule":"evenodd",d:"M83.99 10.81C90.08 21.24 86.62 34.66 76.26 40.79L69.05 45.06L74.17 47.38C81.58 50.74 86.52 57.99 86.96 66.17C87.40 74.34 83.27 82.09 76.26 86.24L32.76 111.97C22.41 118.10 9.08 114.61 3.00 104.18C-3.08 93.75 .37 80.33 10.73 74.20L17.94 69.93L12.82 67.61C5.41 64.25 .47 57.00 .03 48.82C-0.40 40.65 3.72 32.90 10.73 28.75L54.23 3.02C64.58 -3.10 77.91 .38 83.99 10.81Z",
fill:"#f00","fill-rule":"evenodd"}},{I:"path",X:{"clip-rule":"evenodd",d:"M33 74L33 41L61 57.5L33 74Z",fill:"white","fill-rule":"evenodd"}}]}]:g.ET(a)?b=[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},V:[{I:"path",S:"ytp-dni-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}]:a.Kf&&a.jp?b=[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-dni-large-play-button-bg",
X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",fill:"#212121","fill-opacity":"0.8"}},{I:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]:b.K?(g.yv(this.element,"ytp-touch-device",b.B),b=[b.K?{I:"svg",X:{height:"100%",version:"1.1",
viewBox:"0 0 60 60",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",X:{d:"M30,0A30,30,0,1,0,60,30,30,30,0,0,0,30,0Z",fill:"#1f1f1f"}},{I:"path",X:{d:"M21,41.65V18L43.7,29.85Z",fill:"#fff"}}]}:{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#212121","fill-opacity":"0.8"}},{I:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}]):b=[{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},V:[{I:"path",S:"ytp-large-play-button-bg",X:{d:"M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z",
fill:"#f00"}},{I:"path",X:{d:"M 45,24 27,14 27,34",fill:"#fff"}}]}];this.updateValue("largePlayButtonChildren",b);a.Kf&&a.jp&&(a=a.jp?a.jp:"#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.Y7=function(){this.api.getVideoData().mutedAutoplay||(this.api.rA(),this.api.playVideo())};
g.k.Tba=function(a){this.api.getVideoData().mutedAutoplay||a.preventDefault()};g.y(g.LV,g.W);g.k=g.LV.prototype;g.k.show=function(){var a=this;this.Eb||(this.D.T(this.api,"videodatachange",function(){g.mv(a.j)}),this.D.T(this.api,"videoplayerreset",function(){g.mv(a.j)}));
g.W.prototype.show.call(this)};
g.k.hide=function(){this.D&&g.pC(this.D);g.W.prototype.hide.call(this)};
g.k.Tb=function(){g.mv(this.j)};
g.k.onStateChange=function(){g.mv(this.j)};
g.k.Bba=function(){g.mv(this.j)};
g.k.onReset=function(){this.B.stop();this.hide();g.mv(this.j)};
g.k.Sa=function(){var a=this.api.Qb();if(3===this.api.getPresentingPlayerType()&&(a.isPlaying()||a.isPaused()))var b=!0;else(b=this.api.yb().Ge.get("ypc"))&&b.oK?b=!0:(b=this.api.U(),b=g.mG(a,2)&&g.WT(this.api)&&b.Qg?!0:!1);b?(b=!0,this.C.hide()):this.api.L("web_player_show_frame_zero_when_cued")&&OYa(this)?(b=!0,this.C.hide()):(this.C.show(),b=a.isCued()&&2!==this.api.getPresentingPlayerType()||g.mG(a,2)&&!g.WT(this.api)&&!this.api.ED()||g.mG(a,1024)?!0:!1);var c=this.api.getVideoData();b&&!c.fV?
(this.B.show(),this.Mda(this.api.getPlaylist(),c)):(this.B.hide(),g.mG(a,1)||this.B.stop())};
g.k.Mda=function(){var a=g.Ia.apply(0,arguments),b=this.api.U(),c,d=null==(c=this.api.getVideoData())?void 0:c.videoId;if(b.L("web_player_show_frame_zero_when_cued")&&d&&OYa(this))var e="https://i.ytimg.com/vi/"+d+"/frame0.jpg";else for(a=g.u(a),c=a.next();!c.done;c=a.next())if(c=c.value,!(!c||c instanceof g.LS&&!c.videoId)){e=this.api.kb().getPlayerSize();var f=g.YR();d=e.width*f;f*=e.height;if(1280<d||720<f)if(e=c.Yg("maxresdefault.jpg"))break;if(640<d||480<f)if(e=c.Yg("maxresdefault.jpg"))break;
if(320<d||180<f)if(e=c.Yg("sddefault.jpg")||c.Yg("hqdefault.jpg")||c.Yg("mqdefault.jpg"))break;if(e=c.Yg("default.jpg"))break}g.aS(b)&&(b=new Image,b.addEventListener("load",function(){gza()}),b.src=e?e:"",this.api.zi().tick("ftr"));
this.G.style.backgroundImage=e?"url("+e+")":""};g.y(g.MV,g.W);g.MV.prototype.resize=function(){};
g.MV.prototype.B=function(a){var b=this;RYa(this);var c=a.ZN,d=this.api.U();"GENERIC_WITHOUT_LINK"!==c||d.K?"TOO_MANY_REQUESTS"===c?(d=this.api.getVideoData(),this.Ld(PV(this,"TOO_MANY_REQUESTS_WITH_LINK",d.Nk(),void 0,void 0,void 0,!1))):"HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!==c||d.K?this.api.U().L("html5_enable_bandaid_error_screen")&&"HTML5_SPS_UMP_STATUS_REJECTED"===c&&!d.K?(d=d.hostLanguage,a="//support.google.com/youtube/answer/3037019",d&&(a=g.Mn(a,{hl:d})),this.Ld(PV(this,"HTML5_SPS_UMP_STATUS_REJECTED",
a))):this.Ld(g.NV(a.errorMessage)):this.Ld(PV(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.Mn(c,{hl:a})),this.Ld(PV(this,"GENERIC_WITH_LINK_AND_CPN",c,!0)),d.pc&&!d.D&&QYa(this,function(e){if(g.tU(e,b.api,!WR(b.api.U()))){e={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var f=b.api;f.wc("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",
productData:e});f.isFullscreen()&&f.toggleFullscreen()}}))};
var PYa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;g.y(SYa,g.W);g.k=SYa.prototype;g.k.onClick=function(a){g.tU(a,this.J,!0);this.J.logClick(this.element)};
g.k.onVideoDataChange=function(a,b){UYa(this,b);this.Ee&&VYa(this,this.Ee)};
g.k.H4=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&UYa(this,b);this.j&&VYa(this,a.state);this.Ee=a.state};
g.k.od=function(){this.D.show();this.J.publish("paidcontentoverlayvisibilitychange",!0);this.J.logVisibility(this.element,!0)};
g.k.Lb=function(){this.D.hide();this.J.publish("paidcontentoverlayvisibilitychange",!1);this.J.logVisibility(this.element,!1)};g.y(QV,g.W);QV.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.W.prototype.hide.call(this)};
QV.prototype.onStateChange=function(a){this.Bc(a.state)};
QV.prototype.Bc=function(a){if(g.mG(a,128))var b=!1;else{var c;b=(null==(c=this.api.Xc())?0:c.At)?!1:g.mG(a,16)||g.mG(a,1)?!0:!1}b?this.j.start():this.hide()};
QV.prototype.B=function(){this.message.style.display="block"};g.y(RV,g.gU);RV.prototype.onMutedAutoplayChange=function(a){this.C&&(a?(WYa(this),this.od()):(this.j&&this.logClick(),this.Lb()))};
RV.prototype.hk=function(a){this.api.isMutedByMutedAutoplay()&&g.oG(a,2)&&this.Lb()};
RV.prototype.onClick=function(){this.api.unMute();this.logClick()};
RV.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.y(g.SV,g.vK);g.k=g.SV.prototype;g.k.init=function(){var a=this.api,b=a.Qb();this.dJ=a.getPlayerSize();this.Ac(b);this.hq();this.Tb();this.api.publish("basechromeinitialized",this);this.MO()&&this.api.publish("standardControlsInitialized")};
g.k.onVideoDataChange=function(a,b){var c=this.BE!==b.videoId;if(c||"newdata"===a){a=this.api;a.isFullscreen()||(this.dJ=a.getPlayerSize());var d;(null==(d=this.api.getVideoData(1))?0:g.BT(d))&&this.gq()}c&&(this.BE=b.videoId,c=this.Gg,c.Ga=3E3,IV(c,512,!0),this.hq());this.api.L("web_render_jump_buttons")&&b.showSeekingControls&&(this.x0=572)};
g.k.faa=function(){this.onVideoDataChange("newdata",this.api.getVideoData())};
g.k.AB=function(){var a=this.api.Hk()&&this.api.Wo(),b=this.api.Zz();return this.GN||a||this.eP||b};
g.k.gq=function(){var a=!this.AB();g.yv(this.api.getRootNode(),"ytp-menu-shown",!a);var b;(null==(b=this.api.getVideoData(1))?0:g.BT(b))&&g.yv(this.api.getRootNode(),"ytp-hide-controls",!a)};
g.k.EH=function(a){try{if(!g.Nf(this.api.getRootNode(),a))return!1}catch(b){return!1}for(;a&&!Zba(a);)a=a===this.api.getRootNode()?null:g.Gf(a);return!!a};
g.k.IA=function(a){var b=this.api.getRootNode();g.yv(b,"ytp-autohide",a);g.yv(b,"ytp-autohide-active",!0);this.FV.start(a?250:100);a&&(this.pL=!1,g.wv(b,"ytp-touch-mode"));this.HN=!a;this.api.XK(!a)};
g.k.oQ=function(){var a=this.api.getRootNode();g.yv(a,"ytp-autohide-active",!1)};
g.k.Maa=function(){this.HS=!0};
g.k.Laa=function(a){if(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)this.HS=!1,this.IS&&this.Pc(this.IS),0===this.VE&&TV(this,a)?(this.fP(),this.ZH.start(),this.IS=this.T(this.api.kb(),"touchmove",this.Maa,void 0,!0)):this.ZH.stop();$Ya(this)&&TV(this,a)&&!this.api.U().Z&&YYa(this);var b=this.NS.Wj();if(!g.IR(this.api.U())&&FR&&aZa(this,a))b&&a.preventDefault();else if(this.pL=!0,g.uv(this.api.getRootNode(),"ytp-touch-mode"),this.Gg.Bu(),this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)if(b=
this.api.Qb(),!(!this.api.Xh()||g.mG(b,2)&&g.WT(this.api)||g.mG(b,64))){b=Date.now()-this.DY;this.VE+=1;if(350>=b){this.lD=!0;b=this.api.getPlayerSize().width/3;var c=this.api.getRootNode().getBoundingClientRect(),d=a.targetTouches[0].clientX-c.left;c=a.targetTouches[0].clientY-c.top;var e=10*(this.VE-1);0<d&&d<b?(this.OF(-1,d,c,e),this.api.seekBy(-10*this.api.getPlaybackRate())):d>2*b&&d<3*b&&(this.OF(1,d,c,e),this.api.seekBy(10*this.api.getPlaybackRate()));a.preventDefault()}else JV&&this.api.U().Z&&
TV(this,a)&&a.preventDefault();this.DY=Date.now();this.O_.start()}};
g.k.Kaa=function(){this.MJ.Sz=!1;this.api.publish("rootnodemousedown",this.MJ)};
g.k.Gaa=function(a){if(this.api.U().L("web_fix_fine_scrubbing_false_play")){if(aZa(this,a)||this.MJ.Sz)return}else if(this.MJ.Sz||aZa(this,a))return;$Ya(this)||!TV(this,a)||this.ZH.isActive()||(YYa(this),a.preventDefault());this.lD&&(this.lD=!1)};
g.k.fP=function(){};
g.k.nG=function(){};
g.k.OF=function(){};
g.k.NF=function(){};
g.k.Pr=function(){var a=this.api.Qb();g.mG(a,2)&&g.WT(this.api)||(g.oL(a)?this.api.pauseVideo():(this.pn&&(a=this.pn.C,document.activeElement===a.element&&this.api.publish("largeplaybuttonclicked",a.element)),this.api.rA(),this.api.playVideo(),this.pn&&document.activeElement===this.pn.C.element&&(null==(a=this.MO())?a=0:a.playButton?(a.playButton.focus(),a=!0):a=!1,a||this.api.getRootNode().focus())))};
g.k.Haa=function(a){var b=this,c=this.api.getPresentingPlayerType();if(!ZYa(this,lC(a)))if(a=this.api.U(),(this.api.U().L("player_doubletap_to_seek")||this.api.U().Z)&&this.lD)this.lD=!1;else if(a.Gb&&3!==c)try{this.api.toggleFullscreen().catch(function(d){b.cE(d)})}catch(d){this.cE(d)}};
g.k.cE=function(a){String(a).includes("fullscreen error")?g.eF(a):g.dF(a)};
g.k.Iaa=function(a){bZa(this,.3,a.scale);a.preventDefault()};
g.k.Jaa=function(a){bZa(this,.1,a.scale)};
g.k.Tb=function(){var a=this.api.kb().getPlayerSize(),b=this.api.getRootNode(),c=650<=a.width;this.Gg.resize();g.yv(b,"ytp-fullscreen",this.api.isFullscreen());g.yv(b,"ytp-large-width-mode",c);g.yv(b,"ytp-small-mode",this.Kg());g.yv(b,"ytp-tiny-mode",this.lJ());g.yv(b,"ytp-big-mode",this.Ah());this.wg&&this.wg.resize(a)};
g.k.hk=function(a){this.Ac(a.state);this.hq()};
g.k.vB=da(6);g.k.xO=function(){var a=!!this.BE&&!this.api.If()&&!this.bR,b=2===this.api.getPresentingPlayerType(),c=this.api.U();if(b){if(fib&&c.L("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=EV(this.api.yb());a&&(a=(a=b.player.getVideoData(2))?a.isListed&&!g.gJ(b.player.U()):!1);return a}return a&&(c.Rm||this.api.isFullscreen()||c.fl)};
g.k.hq=function(){var a=this.xO();this.Ln!==a&&(this.Ln=a,g.yv(this.api.getRootNode(),"ytp-hide-info-bar",!a))};
g.k.Ac=function(a){var b=a.isCued()||this.api.Hn()&&3!==this.api.getPresentingPlayerType();b!==this.isCued&&(this.isCued=b,this.JS&&this.Pc(this.JS),this.JS=this.T(this.api.kb(),"touchstart",this.Laa,void 0,b));var c=this.Gg,d=a.isPlaying()&&!g.mG(a,32)||this.api.rE();IV(c,128,!d);c=this.Gg;d=3===this.api.getPresentingPlayerType();IV(c,256,d);c=this.api.getRootNode();g.mG(a,2)?d=[Y2.ENDED]:(d=[],g.mG(a,8)?d.push(Y2.PLAYING):g.mG(a,4)&&d.push(Y2.PAUSED),g.mG(a,1)&&!g.mG(a,32)&&d.push(Y2.BUFFERING),
g.mG(a,32)&&d.push(Y2.SEEKING),g.mG(a,64)&&d.push(Y2.UNSTARTED));g.Xb(this.QM,d)||(g.xv(c,this.QM),this.QM=d,g.vv(c,d));d=this.api.U();var e=g.mG(a,2);a:{var f=this.api.U();var h=f.controlsType;switch(h){case "2":case "0":f=!1;break a}f="3"===h&&!g.mG(a,2)||this.isCued||(2!==this.api.getPresentingPlayerType()?0:Qhb(EV(this.api.yb())))||this.api.Zz()||g.IR(f)&&2===this.api.getPresentingPlayerType()?!1:!0}g.yv(c,"ytp-hide-controls",!f);g.yv(c,"ytp-native-controls","3"===d.controlsType&&!b&&!e&&!this.eP);
g.mG(a,128)&&!g.IR(d)?(this.wg||(this.wg=new g.MV(this.api),g.O(this,this.wg),g.cU(this.api,this.wg.element,4)),this.wg.B(a.Ig),this.wg.show()):this.wg&&(this.wg.dispose(),this.wg=null)};
g.k.Dq=function(){return this.api.Hk()&&this.api.Wo()?(this.api.sB(!1,!1),!0):this.api.If()?(g.XT(this.api,!0),!0):!1};
g.k.onMutedAutoplayChange=function(a){this.eP=a;this.gq()};
g.k.Ah=function(){return!1};
g.k.Kg=function(){return!this.Ah()&&(this.api.getPlayerSize().width<this.x0||290>this.api.getPlayerSize().height)};
g.k.lJ=function(){return this.Kg()&&(240>this.api.getPlayerSize().width||140>this.api.getPlayerSize().height)};
g.k.xm=function(){return this.pL};
g.k.tp=function(){return null};
g.k.XW=function(){return null};
g.k.Dn=function(){var a=this.api.kb().getPlayerSize();return new g.ws(0,0,a.width,a.height)};
g.k.handleGlobalKeyDown=function(){return!1};
g.k.handleGlobalKeyUp=function(){return!1};
g.k.Wt=function(){};
g.k.showControls=function(a){void 0!==a&&this.api.kb().XK(a)};
g.k.Bu=function(){};
g.k.MO=function(){return null};g.y(UV,g.wF);g.k=UV.prototype;g.k.hm=function(){return 1E3*this.api.getDuration(this.Eo,!1)};
g.k.stop=function(){this.j&&this.Fd.Pc(this.j)};
g.k.Nc=function(){var a=this.api.getProgressState(this.Eo);this.B={seekableStart:a.seekableStart,seekableEnd:a.seekableEnd,current:this.api.getCurrentTime(this.Eo,!1)};this.publish("h")};
g.k.getProgressState=function(){return this.B};
g.k.I4=function(a){g.oG(a,2)&&this.publish("g")};g.y(g.VV,g.W);g.VV.prototype.show=function(){g.W.prototype.show.call(this);g.mv(this.j)};
g.VV.prototype.hide=function(){this.B.stop();g.W.prototype.hide.call(this)};
g.VV.prototype.nG=function(a){a?g.mG(this.J.Qb(),64)||WV(this,dxa(),"Oynat"):(a=this.J.getVideoData(),a.isLivePlayback&&!a.allowLiveDvr?WV(this,hxa(),"Canl\u0131 oynatmay\u0131 durdur"):WV(this,axa(),"Duraklat"))};g.y(eZa,g.W);g.k=eZa.prototype;g.k.jG=function(a){a?this.j=TT(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.tv(this.J.getRootNode(),"ytp-cards-teaser-shown")&&!g.IR(this.J.U())||(this.B.show(),g.jE("iv-button-shown"))};
g.k.Lb=function(){g.jE("iv-button-hidden");this.B.hide()};
g.k.Wj=function(){return this.Eb&&4!==this.B.state};
g.k.va=function(){this.j&&this.j();g.W.prototype.va.call(this)};
g.k.D$=function(){g.jE("iv-button-mouseover")};
g.k.onClicked=function(a){this.J.Hk();var b=g.tv(this.J.getRootNode(),"ytp-cards-teaser-shown");g.jE("iv-teaser-clicked",b);var c;if(null==(c=this.J.getVideoData())?0:g.rT(c)){var d;a=null==(d=this.J.getVideoData())?void 0:g.sT(d);(null==a?0:a.onIconTapCommand)&&this.J.gb("innertubeCommand",a.onIconTapCommand)}else d=0===a.screenX&&0===a.screenY,this.J.sB(!this.J.Wo(),d,"YOUTUBE_DRAWER_MANUAL_OPEN")};g.y(fZa,g.W);g.k=fZa.prototype;g.k.q1=function(){this.J.Hk()&&this.J.Wo()&&this.Wj()&&this.Lb()};
g.k.yS=function(){this.Lb();!this.J.Hk()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Sg.Lb();g.jE("iv-teaser-clicked",null!=this.j);if(this.onClickCommand)this.J.gb("innertubeCommand",this.onClickCommand);else{var a;(null==(a=this.J.getVideoData())?0:g.rT(a))||this.J.sB(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")}};
g.k.K4=function(){g.jE("iv-teaser-mouseover");this.j&&this.j.stop()};
g.k.kba=function(a){this.J.U().L("player_new_info_card_format")&&!g.IR(this.J.U())?this.Sg.Lb():this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Sg.od();this.j||!a||this.J.Wo()||this.B&&this.B.isActive()||(this.od(a),g.jE("iv-teaser-shown"))};
g.k.od=function(a){this.onClickCommand=a.onClickCommand;this.updateValue("text",a.teaserText);this.element.setAttribute("dir",g.Dv(a.teaserText));this.D.show();this.B=new g.lv(function(){g.uv(this.J.getRootNode(),"ytp-cards-teaser-shown");this.J.L("player_new_info_card_format")&&!g.IR(this.J.U())&&this.Sg.Lb();this.uM()},0,this);
this.B.start();this.Sg.jG(!1);this.j=new g.lv(this.Lb,580+a.durationMs,this);this.j.start();this.G.push(this.listen("mouseover",this.HU,this));this.G.push(this.listen("mouseout",this.GU,this))};
g.k.uM=function(){if(!this.J.U().L("player_new_info_card_format")&&g.IR(this.J.U())&&this.Eb){var a=this.Sg.element.offsetLeft,b=g.tf("ytp-cards-button-icon"),c=this.J.isFullscreen()?54:36;if(b){var d=a+b.offsetLeft;this.element.style.marginRight=this.Sg.element.offsetParent.offsetWidth-a-b.offsetLeft-c+"px";this.element.style.marginLeft=d+"px"}}};
g.k.m6=function(){g.IR(this.J.U())&&this.J.Kg()&&this.Eb&&this.Y.start()};
g.k.HU=function(){this.K.stop();this.j&&this.j.isActive()&&this.N.start()};
g.k.GU=function(){this.N.stop();this.j&&!this.j.isActive()&&this.K.start()};
g.k.R$=function(){this.j&&this.j.stop()};
g.k.Q$=function(){this.Lb()};
g.k.J4=function(){this.Lb()};
g.k.Lb=function(){!this.j||this.C&&this.C.isActive()||(g.jE("iv-teaser-hidden"),this.D.hide(),g.wv(this.J.getRootNode(),"ytp-cards-teaser-shown"),this.C=new g.lv(function(){for(var a=g.u(this.G),b=a.next();!b.done;b=a.next())this.Pc(b.value);this.G=[];this.j&&(this.j.dispose(),this.j=null);this.Sg.jG(!0);!this.J.Hk()&&this.J.U().L("enable_error_corrections_infocards_icon_web")&&this.Sg.Lb()},330,this),this.C.start())};
g.k.Wj=function(){return this.Eb&&4!==this.D.state};
g.k.va=function(){var a=this.J.getRootNode();a&&g.wv(a,"ytp-cards-teaser-shown");g.wb(this.B,this.C,this.j);g.W.prototype.va.call(this)};var o3={},YV=(o3.BUTTON="ytp-button",o3.TITLE_NOTIFICATIONS="ytp-title-notifications",o3.TITLE_NOTIFICATIONS_ON="ytp-title-notifications-on",o3.TITLE_NOTIFICATIONS_OFF="ytp-title-notifications-off",o3.NOTIFICATIONS_ENABLED="ytp-notifications-enabled",o3);g.y(gZa,g.W);
gZa.prototype.onClick=function(){this.api.logClick(this.element);var a=!this.j;this.updateValue("label",a?"Her yeni videoyla ilgili bildirim almay\u0131 durdurun":"Her yeni videoyla ilgili bildirim al\u0131n");this.updateValue("pressed",a);hZa(this,a)};g.Va("yt.pubsub.publish",g.jE);g.y(g.ZV,g.W);g.ZV.prototype.D=function(){window.location.reload()};
g.ZV.prototype.j=function(){g.uv(this.element,"ytp-sb-subscribed")};
g.ZV.prototype.B=function(){g.wv(this.element,"ytp-sb-subscribed")};g.y(lZa,g.W);g.k=lZa.prototype;g.k.i$=function(a){this.api.logClick(this.j);var b=this.api.U();b.B||b.Wa?nZa(this)&&(this.isExpanded()?this.MH():this.kI()):g.Me($V(this));a.preventDefault()};
g.k.GR=function(){pZa(this);this.channel.classList.remove("ytp-title-expanded")};
g.k.isExpanded=function(){return this.channel.classList.contains("ytp-title-expanded")};
g.k.kI=function(){if(nZa(this)&&!this.isExpanded()){this.updateValue("flyoutUnfocusable","false");this.updateValue("channelTitleFocusable","0");this.updateValue("shouldHideExpandedTitleForA11y","false");this.updateValue("shouldHideExpandedSubtitleForA11y","false");this.C&&this.C.stop();this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&this.api.logVisibility(this.channelName,!0);this.subscribeButton&&(this.subscribeButton.show(),this.api.logVisibility(this.subscribeButton.element,!0));
var a=this.api.getVideoData();this.B&&a.Kl&&a.subscribed&&(this.B.show(),this.api.logVisibility(this.B.element,!0));this.channel.classList.add("ytp-title-expanded");this.channel.classList.add("ytp-title-show-expanded")}};
g.k.MH=function(){this.updateValue("flyoutUnfocusable","true");this.updateValue("channelTitleFocusable","-1");this.updateValue("shouldHideExpandedTitleForA11y","true");this.updateValue("shouldHideExpandedSubtitleForA11y","true");this.C&&this.C.start()};
g.k.Sa=function(){var a=this.api.U();g.DF(this,!this.api.Yc());var b=this.api.getVideoData(),c=this.api.U(),d=this.api.getVideoData();this.D=!1;var e=!!d.videoId&&!!d.Dc&&!!d.profilePicture;2===this.api.getPresentingPlayerType()?this.D=e&&!!d.isListed&&!!d.author:g.IR(c)&&(this.D=e&&!g.ET(d)&&!c.C&&!(c.Z&&200>this.api.getPlayerSize().width));c=b.profilePicture;a=g.IR(a)?b.expandedTitle:b.author;c=void 0===c?"":c;a=void 0===a?"":a;this.D?(this.K!==c&&(this.j.style.backgroundImage="url("+c+")",this.K=
c),this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",$V(this)),this.updateValue("channelLogoLabel",g.KJ("$CHANNEL_NAME foto\u011fraf\u0131",{CHANNEL_NAME:a})),g.uv(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.wv(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,this.D&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Bl);this.updateValue("expandedTitle",b.expandedTitle);this.api.L("web_player_ve_conversion_fixes_for_channel_info")||
this.updateValue("channelTitleLink",$V(this));this.updateValue("expandedSubtitle",b.expandedSubtitle)};
g.k.Hc=function(a){g.W.prototype.Hc.call(this,a);this.api.logVisibility(this.j,this.D&&a)};g.y(aW,g.EF);aW.prototype.CZ=function(){this.publish("size-change")};
aW.prototype.focus=function(){this.content.focus()};
aW.prototype.yZ=function(){this.publish("back")};g.y(g.bW,aW);g.k=g.bW.prototype;g.k.Rc=function(a,b){if(void 0===b?0:b)this.items.push(a),this.menuItems.element.appendChild(a.element);else{b=g.Tb(this.items,a,qZa);if(0<=b)return;b=~b;g.Pb(this.items,b,0,a);Ef(this.menuItems.element,a.element,b)}a.subscribe("size-change",this.LQ,this);this.menuItems.publish("size-change")};
g.k.jh=function(a){a.unsubscribe("size-change",this.LQ,this);this.Ma()||(g.Hb(this.items,a),this.menuItems.element.removeChild(a.element),this.menuItems.publish("size-change"))};
g.k.LQ=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("menuitemradio"===c.getAttribute("role")){if("true"===c.getAttribute("aria-checked")){a=b;break}}else break}this.items[a].focus()};
g.k.pp=function(){return this.items.length};g.y(dW,g.iU);dW.prototype.j=function(a){a.defaultPrevented||39!==a.keyCode||(this.element.click(),a.preventDefault())};g.y(rZa,g.W);g.k=rZa.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.L4=function(a){var b=lC(a),c=g.Nf(this.closeButton.element,b),d=g.Nf(this.element,b);a=this.j&&g.Nf(this.j,b)&&g.DG(a);b&&(d||a)&&!c||this.hide()};
g.k.M4=function(){jZa(g.UR(this.Ua.U()),"user_info_panel",function(){window.location.reload()})};
g.k.Sa=function(){var a=this.Ua.U(),b={USER_NAME:a.userDisplayName,USER_EMAIL:a.Li};this.updateValue("icon",bxa());this.updateValue("watchingAsUsername",g.KJ("$USER_NAME hesab\u0131yla izleniyor",b));a.Li?this.updateValue("watchingAsEmail",g.KJ("($USER_EMAIL)",b)):this.updateValue("watchingAsEmail","")};g.y(tZa,g.bW);g.k=tZa.prototype;g.k.p6=function(){this.Fb.Lb()};
g.k.n$=function(){PVa(this.fz.element)};
g.k.z$=function(){gW(this,this.J.getDebugText(!0))&&WV(this.Xd,Mwa())};
g.k.A$=function(){gW(this,this.J.getVideoEmbedCode())&&WV(this.Xd,Qwa());this.J.logClick(this.yn.element);Wxa("EMBED",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.B$=function(){gW(this,this.J.getVideoUrl(!0,!0))&&WV(this.Xd,MF());this.J.logClick(this.getVideoUrl.element);Wxa("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.C$=function(){gW(this,this.J.getVideoUrl(!1,!0))&&WV(this.Xd,MF());this.J.logClick(this.En.element);Wxa("COPY_PASTE",this.J.getVideoData().videoId,this.J.getPlaylistId()||"")};
g.k.onLoopChange=function(a){var b;null==(b=this.Uk)||sU(b,a)};
g.k.K$=function(){this.J.setLoopVideo(this.Uk.getValue());this.Fb.Lb();this.J.logClick(this.Uk.element)};
g.k.Caa=function(a){this.J.reportPlaybackIssue();if(g.tU(a,this.J,!WR(this.J.U()))){a=this.J;var b=a.app.getFeedbackProductData();a.wc("onFeedbackStartRequest",b);a.isFullscreen()&&a.toggleFullscreen()}this.Fb.Lb()};
g.k.Waa=function(){g.KT(this.J,"isVideoInfoVisible",[])?g.KT(this.J,"hideVideoInfo",[]):g.KT(this.J,"showVideoInfo",[]);this.Fb.Lb()};
g.k.Vaa=function(){this.rl&&(this.KG||(this.KG=new rZa(this.J,this.rl.element),g.O(this,this.KG),g.cU(this.J,this.KG.element,4)),this.KG.show(),this.Fb.Lb(),this.J.logClick(this.rl.element))};
g.k.onVideoDataChange=function(a,b){this.kG(b)};
g.k.kG=function(a){var b=this.J.U(),c=2===this.J.getPresentingPlayerType(),d=!c||a.isListed;d=!b.qa&&!!a.videoId&&d;"play"!==b.playerStyle?b="https://support.google.com/youtube/?p=report_playback":(b={contact_type:"playbackissue",html5:1,ei:a.eventId,v:a.videoId,p:"movies_playback"},a.B&&(b.fmt=a.B.itag),a.clientPlaybackNonce&&(b.cpn=a.clientPlaybackNonce),a.La&&(b.partnerid=a.La),b=g.Mn("//support.google.com/googleplay/",b));g.DF(this.yn,d&&a.allowEmbed);g.DF(this.getVideoUrl,d);g.DF(this.En,d&&
!a.isLivePlayback);this.PF.Ld(b,"href");var e;null==(e=this.Uk)||g.DF(e,!a.isLivePlayback&&!c);var f;null==(f=this.rl)||g.DF(f,!c)};
g.k.Hc=function(a){g.bW.prototype.Hc.call(this,a);this.J.logVisibility(this.yn.element,a);this.J.logVisibility(this.getVideoUrl.element,a);this.J.logVisibility(this.En.element,a);this.Uk&&this.J.logVisibility(this.Uk.element,a);this.rl&&this.J.logVisibility(this.rl.element,a)};g.y(g.hW,g.gU);g.k=g.hW.prototype;g.k.show=function(){g.gU.prototype.show.call(this);this.MB()};
g.k.hide=function(){g.gU.prototype.hide.call(this);1<this.j.length&&g.iW(this)};
g.k.MB=function(){xZa(this);this.Eb&&(vZa(this),g.Ks(this.element,this.size))};
g.k.yj=function(){var a=this.j.pop();wZa(this,a,this.j[this.j.length-1],!0)};
g.k.N4=function(a){if(!a.defaultPrevented)switch(a.keyCode){case 27:this.Lb();a.preventDefault();break;case 37:1<this.j.length&&this.yj();a.preventDefault();break;case 39:a.preventDefault()}};
g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()};
g.k.va=function(){g.gU.prototype.va.call(this);this.G&&this.G.dispose();this.K&&this.K.dispose()};g.y(AZa,g.hW);g.k=AZa.prototype;g.k.P4=function(a){var b=lC(a);if(!(b&&(Qf(b,"a")||Qf(b,null,"ytp-no-contextmenu"))||this.Eb)){var c;this.Ba=(a=null==(c=a.touches)?void 0:c.item(0))?new g.Ge(a.clientX,a.clientY):new g.Ge(0,0);this.ra.start()}};
g.k.ZZ=function(){this.ra.stop()};
g.k.pba=function(){this.open(this.Ba)};
g.k.SW=function(){if(this.C&&uZa(this.C)){var a=uZa(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 tZa(this.J,this,this.Xd),g.O(this,this.C),g.fW(this,this.C));this.C.onLoopChange(this.J.getLoopVideo());g.hW.prototype.show.call(this);this.J.logVisibility(this.element,!0);this.C.Hc(!0)};
g.k.hide=function(){zZa(this);g.hW.prototype.hide.call(this);this.J.logVisibility(this.element,!1);this.C&&this.C.Hc(!1)};
g.k.l$=function(a){var b=lC(a);this.Eb||b&&(Qf(b,"a")||Qf(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.hW.prototype.od.call(this,a)};
g.k.open=function(a){BZa(this);var b=this.J.getVideoData();g.yv(this.element,"ytp-dni",b.Kf);this.element.style.left="";this.element.style.top="";a.x++;a.y++;g.hW.prototype.od.call(this);var c=document.body;b=new qs(0,Infinity,Infinity,0);var d=jf(c);for(var e=d.j.body,f=d.j.documentElement,h=Vba(d.j);c=oia(c);)if((!g.Rc||0!=c.clientHeight||c!=e)&&c!=e&&c!=f&&"visible"!=Es(c,"overflow")){var l=g.Is(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=Uba(d.parentWindow||d.defaultView||window);b.right=Math.min(b.right,e+d.width);b.bottom=Math.min(b.bottom,h+d.height);d=0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;a=a.clone();b=b.clone();d&&(h=b,e=5,65==(e&65)&&(a.x<d.left||a.x>=d.right)&&(e&=-2),132==(e&132)&&(a.y<d.top||a.y>=d.bottom)&&(e&=
-5),a.x<d.left&&e&1&&(a.x=d.left),e&16&&(f=a.x,a.x<d.left&&(a.x=d.left),a.x+h.width>d.right&&(h.width=Math.min(d.right-a.x,f+h.width-d.left),h.width=Math.max(h.width,0))),a.x+h.width>d.right&&e&1&&(a.x=Math.max(d.right-h.width,d.left)),a.y<d.top&&e&4&&(a.y=d.top),e&32&&(f=a.y,a.y<d.top&&(a.y=d.top),a.y+h.height>d.bottom&&(h.height=Math.min(d.bottom-a.y,f+h.height-d.top),h.height=Math.max(h.height,0))),a.y+h.height>d.bottom&&e&4&&(a.y=Math.max(d.bottom-h.height,d.top)));d=new g.ws(0,0,0,0);d.left=
a.x;d.top=a.y;d.width=b.width;d.height=b.height;g.Gs(this.element,new g.Ge(d.left,d.top));g.pC(this.D);this.D.T(document,"contextmenu",this.t$);this.D.T(this.J,"fullscreentoggled",this.onFullscreenToggled);this.D.T(this.J,"pageTransition",this.O4)};
g.k.t$=function(a){if(!a.defaultPrevented){var b=lC(a);g.Nf(this.element,b)||this.Lb();this.J.U().disableNativeContextMenu&&a.preventDefault()}};
g.k.onFullscreenToggled=function(){this.Lb();BZa(this)};
g.k.O4=function(){this.Lb()};g.y(jW,g.W);jW.prototype.onClick=function(){var a=this,b,c,d,e;return g.H(function(f){if(1==f.j)return b=a.api.U(),c=a.api.getVideoData(),d=a.api.getPlaylistId(),e=b.getVideoUrl(c.videoId,d,void 0,!0),g.z(f,EZa(a,e),2);f.B&&DZa(a);a.api.logClick(a.element);g.Aa(f)})};
jW.prototype.Sa=function(){this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3  c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Ba\u011flant\u0131y\u0131 kopyala");this.visible=CZa(this);g.yv(this.element,"ytp-copylink-button-visible",
this.visible);g.DF(this,this.visible);this.tooltip.Ph();this.api.logVisibility(this.element,this.visible&&this.Z)};
jW.prototype.Hc=function(a){g.W.prototype.Hc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
jW.prototype.va=function(){g.W.prototype.va.call(this);g.wv(this.element,"ytp-copylink-button-visible")};g.y(kW,g.W);kW.prototype.show=function(){g.W.prototype.show.call(this);g.mv(this.B)};
kW.prototype.hide=function(){this.D.stop();this.C=0;g.wv(this.element,"ytp-chapter-seek");g.wv(this.element,"ytp-time-seeking");g.W.prototype.hide.call(this)};
kW.prototype.OF=function(a,b,c,d){this.C=a===this.K?this.C+d:d;this.K=a;var e=-1===a?this.Y:this.N;e&&this.J.logClick(e);this.G?this.B.stop():g.ov(this.B);this.D.start();this.element.setAttribute("data-side",-1===a?"back":"forward");var f=3*this.J.kb().getPlayerSize().height;e=this.J.kb().getPlayerSize();e=e.width/3-3*e.height;this.j.style.width=f+"px";this.j.style.height=f+"px";1===a?(this.j.style.left="",this.j.style.right=e+"px"):-1===a&&(this.j.style.right="",this.j.style.left=e+"px");var h=2.5*
f;f=h/2;var l=this.Fa("ytp-doubletap-ripple");l.style.width=h+"px";l.style.height=h+"px";1===a?(a=this.J.kb().getPlayerSize().width-b+Math.abs(e),l.style.left="",l.style.right=a-f+"px"):-1===a&&(a=Math.abs(e)+b,l.style.right="",l.style.left=a-f+"px");l.style.top="calc((33% + "+Math.round(c)+"px) - "+f+"px)";if(c=this.Fa("ytp-doubletap-ripple"))c.classList.remove("ytp-doubletap-ripple"),c.classList.add("ytp-doubletap-ripple");FZa(this,this.G?this.C:d)};g.y(mW,g.hW);mW.prototype.open=function(a,b){this.initialize(a.items)&&this.od(b,!!b)};
mW.prototype.initialize=function(a){g.cW(this.Ue);if(void 0===a||0===a.length)return!1;var b=a.length;a=g.u(a);for(var c=a.next();!c.done;c=a.next())this.Rc(c.value,b--);return!0};
mW.prototype.Rc=function(a,b){a.menuNavigationItemRenderer?IZa(this,a.menuNavigationItemRenderer,b):a.menuServiceItemRenderer&&JZa(this,a.menuServiceItemRenderer,b)};g.y(LZa,LU);g.k=LZa.prototype;g.k.aaa=function(a){this.fb||(this.fb=new mW(this.J),g.O(this,this.fb));var b,c;if(null==(b=this.pc)?0:null==(c=b.menu)?0:c.menuRenderer)this.fb.open(this.pc.menu.menuRenderer,a.target),a.preventDefault()};
g.k.E$=function(){this.J.gb("innertubeCommand",this.Jd);this.J.logClick(this.infoButton.element)};
g.k.zx=function(){return!!this.j};
g.k.eL=function(){return!!this.j};
g.k.YE=function(a){a.target===this.dismissButton.element||a.target===this.overflowButton.element||a.target===this.infoButton.element?a.preventDefault():(this.Dc&&this.J.gb("innertubeCommand",this.Dc),MU(this,!1))};
g.k.Qt=function(){MU(this,!0);var a,b;(null==(a=this.j)?0:null==(b=a.bannerData)?0:b.dismissedStatusKey)&&this.Jb.push(this.j.bannerData.dismissedStatusKey);this.kB()};
g.k.BU=function(){this.kB();pW(this)};
g.k.Lca=function(a){var b=this,c;if(a.id!==(null==(c=this.j)?void 0:c.identifier)){this.kB();c=g.u(this.Ga);for(var d=c.next();!d.done;d=c.next()){var e=d.value,f=void 0,h=void 0;if((d=null==(f=e)?void 0:null==(h=f.bannerData)?void 0:h.itemData)&&e.identifier===a.id){h=f=void 0;var l=(null==(f=e)?void 0:null==(h=f.bannerData)?void 0:h.dismissedStatusKey)||"";if(this.Jb.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();KU(this);g.DF(this.Da,!d.stayInApp);XZa(this);NZa(this);oW(this);this.Dc=g.V(d.onTapCommand,hF);if(e=g.V(d.menuOnTap,hF))this.pc=g.V(e,xlb);e=void 0;this.banner.update({thumbnail:null==(e=(d.thumbnailSources||[])[0])?void 0:e.url,title:d.productTitle,price:d.priceReplacementText?d.priceReplacementText:d.price,salesOriginalPrice:QZa(this),priceDropReferencePrice:RZa(this),promotionText:PZa(this),priceA11yText:SZa(this),affiliateDisclaimer:d.affiliateDisclaimer,vendor:TZa(this)});
l=h=f=e=void 0;(null==(e=d)?0:null==(f=e.hiddenProductOptions)?0:f.showDropCountdown)&&(null==(h=d)?0:null==(l=h.hiddenProductOptions)?0:l.dropTimestampMs)&&(this.Gb=new g.lv(function(){WZa(b)},1E3),this.Da.hide(),this.countdownTimer.show(),WZa(this));
this.J.L("web_player_enable_featured_product_banner_exclusives_on_desktop")&&MZa(this)&&(this.Pb=new g.lv(function(){OZa(b)},1E3),OZa(this))}}}};
g.k.kB=function(){this.j&&(this.j=void 0,this.Bk())};
g.k.onVideoDataChange=function(a,b){var c=this;"dataloaded"===a&&pW(this);a=this.J.L("web_player_enable_vod_featured_product_banner_on_desktop");var d,e,f=null==b?void 0:null==(d=b.getPlayerResponse())?void 0:null==(e=d.videoDetails)?void 0:e.isLiveContent;if(a||f){var h,l,m;b=g.V(null==(h=b.getWatchNextResponse())?void 0:null==(l=h.playerOverlays)?void 0:null==(m=l.playerOverlayRenderer)?void 0:m.productsInVideoOverlayRenderer,vlb);this.J.L("web_player_enable_info_button_in_banner_on_desktop")&&
a&&!f?this.infoButton.show():this.infoButton.hide();this.J.L("web_player_enable_overflow_button_in_banner_on_desktop")&&(this.overflowButton.show(),this.dismissButton.hide(),this.infoButton.hide());var n=null==b?void 0:b.featuredProductsEntityKey;this.trendingOfferEntityKey=null==b?void 0:b.trendingOfferEntityKey;var p;if(h=null==b?void 0:null==(p=b.dismissButton)?void 0:p.trackingParams)this.J.setTrackingParams(this.dismissButton.element,h),this.G=!0;var q;(p=null==b?void 0:null==(q=b.dismissButton)?
void 0:q.a11yLabel)&&this.dismissButton.element.setAttribute("aria-label",g.HF(p));this.Jd=null==b?void 0:b.onClickCommand;this.Ga.length||(VZa(this,n),oW(this));var r;null==(r=this.Sc)||r.call(this);this.Sc=g.ZS.subscribe(function(){VZa(c,n);oW(c)})}else{var t;
null==(t=this.Sc)||t.call(this);this.kB()}};
g.k.va=function(){pW(this);XZa(this);NZa(this);LU.prototype.va.call(this)};g.y(b_a,g.W);b_a.prototype.onClick=function(){this.J.logClick(this.element,this.B)};g.y(c_a,g.gU);g.k=c_a.prototype;g.k.show=function(){g.gU.prototype.show.call(this);this.J.publish("infopaneldetailvisibilitychange",!0);this.J.logVisibility(this.element,!0);d_a(this,!0)};
g.k.hide=function(){g.gU.prototype.hide.call(this);this.J.publish("infopaneldetailvisibilitychange",!1);this.J.logVisibility(this.element,!1);d_a(this,!1)};
g.k.getId=function(){return this.D};
g.k.pp=function(){return this.itemData.length};
g.k.onVideoDataChange=function(a,b){if(b){var c,d,e,f;this.update({title:(null==(c=b.El)?void 0:null==(d=c.title)?void 0:d.content)||"",body:(null==(e=b.El)?void 0:null==(f=e.bodyText)?void 0:f.content)||""});var h;a=(null==(h=b.El)?void 0:h.trackingParams)||null;this.J.setTrackingParams(this.element,a);h=g.u(this.itemData);for(a=h.next();!a.done;a=h.next())a.value.dispose();this.itemData=[];var l;if(null==(l=b.El)?0:l.ctaButtons)for(b=g.u(b.El.ctaButtons),l=b.next();!l.done;l=b.next())if(l=g.V(l.value,
jkb))l=new b_a(this.J,l,this.j),l.qe&&(this.itemData.push(l),l.Ja(this.items))}};
g.k.va=function(){this.hide();g.gU.prototype.va.call(this)};g.y(g_a,g.W);g.k=g_a.prototype;g.k.onVideoDataChange=function(a,b){f_a(this,b);this.Ee&&i_a(this,this.Ee)};
g.k.S4=function(a){var b=this.J.getVideoData();this.videoId!==b.videoId&&f_a(this,b);i_a(this,a.state);this.Ee=a.state};
g.k.DZ=function(a){(this.D=a)?this.hide():this.j&&this.show()};
g.k.R4=function(){this.B||this.od();this.showControls=!0};
g.k.Q4=function(){this.B||this.Lb();this.showControls=!1};
g.k.od=function(){this.j&&!this.D&&(this.C.show(),this.J.publish("infopanelpreviewvisibilitychange",!0),this.J.logVisibility(this.element,!0))};
g.k.Lb=function(){this.j&&!this.D&&(this.C.hide(),this.J.publish("infopanelpreviewvisibilitychange",!1),this.J.logVisibility(this.element,!1))};
g.k.Pca=function(){this.B=!1;this.showControls||this.Lb()};var nnb={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(nnb).reduce(function(a,b){a[nnb[b]]=b;return a},{});
var onb={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(onb).reduce(function(a,b){a[onb[b]]=b;return a},{});
var pnb={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(pnb).reduce(function(a,b){a[pnb[b]]=b;return a},{});var qnb,rnb;qnb=[{option:"#fff",text:"Beyaz"},{option:"#ff0",text:"Sar\u0131"},{option:"#0f0",text:"Ye\u015fil"},{option:"#0ff",text:"Camg\u00f6be\u011fi"},{option:"#00f",text:"Mavi"},{option:"#f0f",text:"Macenta"},{option:"#f00",text:"K\u0131rm\u0131z\u0131"},{option:"#080808",text:"Siyah"}];rnb=[{option:0,text:qW(0)},{option:.25,text:qW(.25)},{option:.5,text:qW(.5)},{option:.75,text:qW(.75)},{option:1,text:qW(1)}];
g.tW=[{option:"fontFamily",text:"Yaz\u0131 tipi ailesi",options:[{option:1,text:"Tek Aral\u0131kl\u0131 Serif"},{option:2,text:"Orant\u0131l\u0131 Serif"},{option:3,text:"Tek Aral\u0131kl\u0131 Sans-Serif"},{option:4,text:"Orant\u0131l\u0131 Sans-Serif"},{option:5,text:"Klasik"},{option:6,text:"El Yaz\u0131s\u0131"},{option:7,text:"K\u00fc\u00e7\u00fck Boyutlu B\u00fcy\u00fck Harfler"}]},{option:"color",text:"Yaz\u0131 tipi rengi",options:qnb},{option:"fontSizeIncrement",text:"Yaz\u0131 tipi boyutu",
options:[{option:-2,text:qW(.5)},{option:-1,text:qW(.75)},{option:0,text:qW(1)},{option:1,text:qW(1.5)},{option:2,text:qW(2)},{option:3,text:qW(3)},{option:4,text:qW(4)}]},{option:"background",text:"Arka plan rengi",options:qnb},{option:"backgroundOpacity",text:"Arka plan opakl\u0131\u011f\u0131",options:rnb},{option:"windowColor",text:"Pencere rengi",options:qnb},{option:"windowOpacity",text:"Pencere opakl\u0131\u011f\u0131",options:rnb},{option:"charEdgeStyle",text:"Karakter kenar stili",options:[{option:0,
text:"Hi\u00e7biri"},{option:4,text:"G\u00f6lge"},{option:1,text:"Y\u00fckseltilmi\u015f"},{option:2,text:"Bast\u0131r\u0131lm\u0131\u015f"},{option:3,text:"\u00c7er\u00e7eve"}]},{option:"textOpacity",text:"Yaz\u0131 tipi opakl\u0131\u011f\u0131",options:[{option:.25,text:qW(.25)},{option:.5,text:qW(.5)},{option:.75,text:qW(.75)},{option:1,text:qW(1)}]}];var snb=[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.y(o_a,g.vK);g.k=o_a.prototype;
g.k.FX=function(a){a.repeat||(this.C.cJ=!1);var b=!1,c=a.keyCode,d=lC(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey&&(!g.OT(this.api.app)||snb.includes(c)),f=!1,h=!1,l=this.api.U();a.defaultPrevented?(e=!1,h=!0):l.Re&&!g.OT(this.api.app)&&(e=!1);if(9===c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"===d.tagName||"A"===d.tagName||"INPUT"===d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!==m&&"button"!==m&&0!==m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b=
"slider"===d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),d=38===c?d.previousSibling:d.nextSibling,"slider"===m?b=!0:e&&("option"===m?(d&&"option"===d.getAttribute("role")&&d.focus(),f=b=!0):m&&0===m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0===d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if(e&&!f)switch(c){case 38:f=Math.min(this.api.getVolume()+5,100);XV(this.Xd,f,!1);this.api.setVolume(f);h=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);
XV(this.Xd,f,!0);this.api.setVolume(f);h=f=!0;break;case 36:this.api.Xh()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),h=f=!0);break;case 35:this.api.Xh()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),h=f=!0)}}b&&sW(this,!0);(b||h)&&this.Gg.Bu();(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.wc("onKeyPress",a))};
g.k.GX=function(a){this.handleGlobalKeyUp(a.keyCode,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)&&a.preventDefault()};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){this.api.publish("keyboardserviceglobalkeyup",{keyCode:a,shiftKey:b,ctrlKey:c,altKey:d,metaKey:e,key:f,code:h});b=!1;if(this.C.cJ)return b;(c=g.aU(this.api.yb()))&&(c=c.pu)&&c.Eb&&(c.AX(a),b=!0);switch(a){case 9:sW(this,!0);b=!0;break;case 32:if(this.api.L("web_speedmaster_spacebar_control")&&!this.G&&!this.api.U().Re){var l,m;a=null==(l=this.progressBar)?void 0:null==(m=l.B)?void 0:m.isEnabled;b=this.Pr(a)}}return b};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){l||(this.C.cJ=!1);var m=!1,n=this.api.U();if(n.Re&&!g.OT(this.api.app))return m;var p=g.aU(this.api.yb());if(p&&(p=p.pu)&&p.Eb)switch(a){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:m=p.zX(a)}n.K||m||(m=f||String.fromCharCode(a).toLowerCase(),this.B+=m,0==="awesome".indexOf(this.B)?(m=!0,7===this.B.length&&Yka(this.api.getRootNode(),"ytp-color-party")):(this.B=m,m=0==="awesome".indexOf(this.B)));if(!m&&(!g.OT(this.api.app)||
snb.includes(a))){var q=this.api.getVideoData(),r,t;p=null==(r=this.progressBar)?void 0:null==(t=r.B)?void 0:t.isEnabled;r=q?q.wk:[];t=PY?d:c;switch(a){case 80:b&&!n.Ra&&(WV(this.Xd,exa(),"\u00d6nceki"),this.api.previousVideo(),m=!0);break;case 78:b&&!n.Ra&&(WV(this.Xd,Ywa(),"Sonraki"),this.api.nextVideo(),m=!0);break;case 74:this.api.Xh()&&(this.api.startSeekCsiAction(),this.j?lW(this.j,-1,10):WV(this.Xd,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,
S:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),m=!0);break;case 76:this.api.Xh()&&(this.api.startSeekCsiAction(),this.j?lW(this.j,1,10):WV(this.Xd,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),m=!0);break;case 37:this.api.Xh()&&(this.api.startSeekCsiAction(),t?(t=l_a(r,1E3*this.api.getCurrentTime()),-1!==t&&null!=this.j&&(GZa(this.j,-1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,53),m=!0)):(this.j?lW(this.j,-1,5):WV(this.Xd,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}),
this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),m=!0));break;case 39:this.api.Xh()&&(this.api.startSeekCsiAction(),t?(t=k_a(r,1E3*this.api.getCurrentTime()),-1!==t&&null!=this.j&&(GZa(this.j,1,r[t].title),this.api.seekTo(r[t].startTime/1E3,void 0,void 0,void 0,52),m=!0)):(null!=this.j?lW(this.j,1,5):WV(this.Xd,{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}),
this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),m=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),XV(this.Xd,this.api.getVolume(),!1)):(this.api.mute(),XV(this.Xd,0,!0));m=!0;break;case 32:m=this.api.L("web_speedmaster_spacebar_control")?!this.api.U().Ra:this.Pr(p);break;case 75:m=this.Pr(p);break;case 190:b?n.enableSpeedOptions&&(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m+.25,!0),cZa(this.Xd,!1),m=!0):this.api.Xh()&&(this.step(1),m=!0);break;case 188:b?n.enableSpeedOptions&&
(m=this.api.getPlaybackRate(),this.api.setPlaybackRate(m-.25,!0),cZa(this.Xd,!0),m=!0):this.api.Xh()&&(this.step(-1),m=!0);break;case 70:LVa(this.api)&&(this.api.toggleFullscreen().catch(function(){}),m=!0);
break;case 27:p?(this.progressBar.Iv(),m=!0):this.K()&&(m=!0)}if("3"!==n.controlsType)switch(a){case 67:g.BV(this.api.yb())&&(n=this.api.getOption("captions","track"),this.api.toggleSubtitles(),dZa(this.Xd,!n||n&&!n.displayName),m=!0);break;case 79:uW(this,"textOpacity");break;case 87:uW(this,"windowOpacity");break;case 187:case 61:uW(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:uW(this,"fontSizeIncrement",!0,!0)}var v;b||c||d||(48<=a&&57>=a?v=a-48:96<=a&&105>=a&&(v=a-96));null!=v&&this.api.Xh()&&
(this.api.startSeekCsiAction(),n=this.api.getProgressState(),this.api.seekTo(v/10*(n.seekableEnd-n.seekableStart)+n.seekableStart,void 0,void 0,void 0,81),m=!0);m&&this.Gg.Bu()}this.G||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.Xh();if(this.api.Qb().isPaused()){var b=this.api.getVideoData().B;b&&(b=b.video)&&this.api.seekBy(a/(b.fps||30),void 0,void 0,0<a?77:78)}};
g.k.Pr=function(a){if(!this.api.U().Ra){var b;var c,d=null==(b=this.api.getVideoData())?void 0:null==(c=b.getPlayerResponse())?void 0:c.playabilityStatus;if(d){var e;b="PLAYBACK_MODE_PAUSED_ONLY"===(null==(e=g.V(d.miniplayer,Ilb))?void 0:e.playbackMode)}else b=!1;b&&this.api.gb("onExpandMiniplayer");a?this.progressBar.dO():(a=!g.oL(this.api.Qb()),this.Xd.nG(a),a?this.api.playVideo():this.api.pauseVideo());return!0}return!1};
g.k.va=function(){g.ov(this.D);g.vK.prototype.va.call(this)};g.y(g.vW,g.W);g.vW.prototype.Jr=da(12);g.vW.prototype.Sa=function(){var a=this.J.U(),b=a.C||this.J.L("web_player_hide_overflow_button_if_empty_menu")&&this.Zh.isEmpty();a=g.IR(a)&&g.$T(this.J)&&g.mG(this.J.Qb(),128);var c=this.J.getPlayerSize();this.visible=this.J.Kg()&&!a&&240<=c.width&&!g.ET(this.J.getVideoData())&&!b&&!this.j&&!this.J.Yc();g.yv(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.J.Ph();this.J.logVisibility(this.element,this.visible&&this.Z)};
g.vW.prototype.Hc=function(a){g.W.prototype.Hc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};
g.vW.prototype.va=function(){g.W.prototype.va.call(this);g.wv(this.element,"ytp-overflow-button-visible")};g.y(p_a,g.gU);g.k=p_a.prototype;g.k.T4=function(a){a=lC(a);g.Nf(this.element,a)&&(g.Nf(this.j,a)||g.Nf(this.closeButton,a)||hU(this))};
g.k.Lb=function(){g.gU.prototype.Lb.call(this);this.J.Xl(this.element)};
g.k.show=function(){this.Eb&&this.J.publish("OVERFLOW_PANEL_OPENED");g.gU.prototype.show.call(this);this.element.setAttribute("aria-modal","true");r_a(this,!0)};
g.k.hide=function(){g.gU.prototype.hide.call(this);this.element.removeAttribute("aria-modal");r_a(this,!1)};
g.k.onFullscreenToggled=function(a){!a&&this.Wj()&&hU(this)};
g.k.isEmpty=function(){return 0===this.actionButtons.length};
g.k.focus=function(){for(var a=g.u(this.actionButtons),b=a.next();!b.done;b=a.next())if(b=b.value,b.Eb){b.focus();break}};g.y(s_a,g.W);s_a.prototype.onClick=function(a){g.tU(a,this.api)&&this.api.playVideoAt(this.index)};g.y(t_a,g.gU);g.k=t_a.prototype;g.k.show=function(){g.gU.prototype.show.call(this);this.C.T(this.api,"videodatachange",this.vM);this.C.T(this.api,"onPlaylistUpdate",this.vM);this.vM()};
g.k.hide=function(){g.gU.prototype.hide.call(this);g.pC(this.C);this.updatePlaylist(null)};
g.k.vM=function(){this.updatePlaylist(this.api.getPlaylist());this.api.U().C&&(this.Fa("ytp-playlist-menu-title-name").removeAttribute("href"),this.D&&(this.Pc(this.D),this.D=null))};
g.k.RK=function(){var a=this.playlist,b=a.author,c=b?"haz\u0131rlayan: $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",d={CURRENT_POSITION:String(a.index+1),PLAYLIST_LENGTH:String(a.getLength())};b&&(d.AUTHOR=b);this.update({title:a.title,subtitle:g.KJ(c,d),playlisturl:this.api.getVideoUrl(!0)});b=a.B;if(b===this.G)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.j[a.index];else{c=g.u(this.j);for(d=c.next();!d.done;d=c.next())d.value.dispose();
c=a.getLength();this.j=[];for(d=0;d<c;d++){var e=new s_a(this.api,a,d);this.j.push(e);e.Ja(this.items)}this.selected=this.j[a.index];this.G=b}this.selected&&this.selected.element.setAttribute("aria-checked","true")};
g.k.oba=function(a){var b=this.api.getVideoUrl(!0);g.uU(b,this.api,a)};
g.k.updatePlaylist=function(a){this.playlist!==a?(this.playlist&&this.playlist.unsubscribe("shuffle",this.RK,this),this.playlist=a,this.G=null,a?(a.subscribe("shuffle",this.RK,this),this.RK()):this.Eb&&this.hide()):this.playlist&&this.RK()};
g.k.focus=function(){this.selected.focus()};
g.k.va=function(){this.hide();g.gU.prototype.va.call(this)};g.y(wW,g.W);wW.prototype.hide=function(){g.W.prototype.hide.call(this);this.Hc(!1);this.api.Ph()};
wW.prototype.Sa=function(){var a=g.IR(this.api.U());g.yv(this.element,"ytp-playlist-menu-button-tiny",400>this.api.kb().getPlayerSize().width&&!a);this.api.Yc()?this.hide():this.playlist&&2!==this.api.getPresentingPlayerType()?(this.update({text:g.KJ("$CURRENT_POSITION/$PLAYLIST_LENGTH",{CURRENT_POSITION:String(this.playlist.index+1),PLAYLIST_LENGTH:String(this.playlist.getLength())}),title:g.KJ("Oynatma listesi: $PLAYLIST_NAME",{PLAYLIST_NAME:this.playlist.title})}),this.Eb||(this.show(),this.api.Ph()),
this.visible=!0,this.Hc(!0)):this.Eb&&this.hide()};
wW.prototype.Hc=function(a){g.W.prototype.Hc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
wW.prototype.j=function(){this.playlist&&this.playlist.unsubscribe("shuffle",this.Sa,this);(this.playlist=this.api.getPlaylist())&&this.playlist.subscribe("shuffle",this.Sa,this);this.Sa()};g.y(u_a,g.W);g.k=u_a.prototype;g.k.V4=function(){this.C?y_a(this):x_a(this)};
g.k.U4=function(){this.C?(xW(this),this.G=!0):x_a(this)};
g.k.N9=function(){this.D=!0;this.gG(1);this.J.publish("promotooltipacceptbuttonclicked",this.acceptButton);xW(this);this.j&&this.J.logClick(this.acceptButton)};
g.k.r$=function(){this.D=!0;this.gG(2);xW(this);this.j&&this.J.logClick(this.dismissButton)};
g.k.W4=function(a){if(1===this.J.getPresentingPlayerType()||2===this.J.getPresentingPlayerType()&&this.K){var b=!0,c=g.tf("ytp-ad-overlay-ad-info-dialog-container"),d=lC(a);if(this.B&&d&&g.Nf(this.B,d))this.B=null;else{1===this.J.getPresentingPlayerType()&&d&&Array.from(d.classList).forEach(function(l){l.startsWith("ytp-ad")&&(b=!1)});
var e=z_a(this.tooltipRenderer),f;if("TOOLTIP_DISMISS_TYPE_TAP_ANYWHERE"===(null==(f=this.tooltipRenderer.dismissStrategy)?void 0:f.type))e&&(b=b&&!g.Nf(this.element,d));else{var h;"TOOLTIP_DISMISS_TYPE_TAP_INTERNAL"===(null==(h=this.tooltipRenderer.dismissStrategy)?void 0:h.type)&&(b=e?!1:b&&g.Nf(this.element,d))}this.targetElement&&this.Eb&&!c&&(!d||b&&g.DG(a))&&(this.D=!0,xW(this))}}};
g.k.gG=function(a){var b=this.tooltipRenderer.promoConfig;if(b){switch(a){case 0:var c;if(null==(c=b.impressionEndpoints)?0:c.length)var d=b.impressionEndpoints[0];break;case 1:d=b.acceptCommand;break;case 2:d=b.dismissCommand}var e;a=null==(e=g.V(d,ikb))?void 0:e.feedbackToken;d&&a&&(e={feedbackTokens:[a]},a=this.J.im(),(null==a?0:oya(d,a.XN))&&FH(a,d,e))}};
g.k.Tb=function(){this.G||(this.targetElement||(this.targetElement=v_a(this)),y_a(this))};
var w_a={"ytp-settings-button":g.gxa()};g.y(yW,g.W);yW.prototype.onStateChange=function(a){this.Bc(a.state)};
yW.prototype.Bc=function(a){g.DF(this,g.mG(a,2))};
yW.prototype.onClick=function(){this.J.Qb();this.J.playVideo()};g.y(zW,g.W);zW.prototype.onClick=function(a){this.api.logClick(this.element);var b=g.Mn(this.api.U().Ga,{focusSearch:"true"}),c={};g.KT(this.api,"addEmbedsConversionTrackingParams",[c]);g.eP(c,"emb_search");b=g.Mn(b,c);var d;(c=null==(d=this.api.getVideoData().aea)?void 0:d.params)&&(b=g.Mn(b,{bp:c}));g.Me(b);a.preventDefault()};
zW.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.kb().getPlayerSize().width;a=g.IR(a)&&c>=this.B&&!a.C&&!b.isAd()&&!this.api.Yc()}else a=!1;this.visible=a;g.DF(this,this.visible);g.yv(this.element,"ytp-search-button-visible",this.visible);g.yv(this.element,"ytp-show-search-title",!this.api.Kg());this.api.logVisibility(this.element,this.visible&&this.Z)};
zW.prototype.Hc=function(a){g.W.prototype.Hc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.y(g.AW,g.W);g.k=g.AW.prototype;g.k.Kr=da(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){B_a(a,f)})}catch(f){f instanceof Error&&B_a(this,f)}else this.Te.Dq(),hU(this.B,this.element,!1);
this.api.logClick(this.element)};
g.k.Sa=function(){var a=this.api.U(),b=this.api.Yc();g.yv(this.element,"ytp-show-share-title",g.IR(a)&&!b);this.Te.Ah()&&b?(a=(this.api.kb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.zs(this.element,"right",a+"px")):b&&g.zs(this.element,"right","0px");this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});
this.visible=A_a(this);g.yv(this.element,"ytp-share-button-visible",this.visible);g.DF(this,this.visible);this.tooltip.Ph();this.api.logVisibility(this.element,A_a(this)&&this.Z)};
g.k.Hc=function(a){g.W.prototype.Hc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};
g.k.va=function(){g.W.prototype.va.call(this);g.wv(this.element,"ytp-share-button-visible")};g.y(D_a,g.gU);g.k=D_a.prototype;g.k.X4=function(a){a=lC(a);g.Nf(this.G,a)||g.Nf(this.closeButton,a)||hU(this)};
g.k.Lb=function(){g.gU.prototype.Lb.call(this);this.tooltip.Xl(this.element);this.api.logVisibility(this.j,!1);for(var a=g.u(this.C),b=a.next();!b.done;b=a.next())b=b.value,this.api.hasVe(b.element)&&this.api.logVisibility(b.element,!1)};
g.k.show=function(){var a=this.Eb;g.gU.prototype.show.call(this);this.Sa();a||this.api.gb("onSharePanelOpened")};
g.k.m9=function(){this.Eb&&this.Sa()};
g.k.Sa=function(){var a=this;g.uv(this.element,"ytp-share-panel-loading");g.wv(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),c=this.api.getPlaylistId()&&this.D.checked;b.getSharePanelCommand&&FH(this.api.im(),b.getSharePanelCommand,{includeListId:c}).then(function(d){a.Ma()||(g.wv(a.element,"ytp-share-panel-loading"),F_a(a,d))});
b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.KJ("$URL ba\u011flant\u0131s\u0131n\u0131 payla\u015f",{URL:b}));PVa(this.j);this.api.logVisibility(this.j,!0)};
g.k.onFullscreenToggled=function(a){!a&&this.Wj()&&hU(this)};
g.k.focus=function(){this.j.focus()};
g.k.va=function(){g.gU.prototype.va.call(this);E_a(this)};g.y(I_a,LU);g.k=I_a.prototype;g.k.va=function(){N_a(this);LU.prototype.va.call(this)};
g.k.YE=function(a){a.target!==this.dismissButton.element&&(MU(this,!1),this.J.gb("innertubeCommand",this.onClickCommand))};
g.k.Qt=function(){this.Va=!0;MU(this,!0);this.Bk()};
g.k.iaa=function(a){this.N=a;this.Bk()};
g.k.onVideoDataChange=function(a,b){if(a=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.Va=!1,this.Ba=!0,this.qa=this.Y=!1,N_a(this),M_a(this,!1),this.B=this.j=!1,CW(this),J_a(this);if(a||!b.videoId)this.G=this.D=!1;var c,d;if(null==b?0:null==(c=b.getPlayerResponse())?0:null==(d=c.videoDetails)?0:d.isLiveContent)this.Yf(!1);else{var e,f,h;b=g.V(null==(e=b.getWatchNextResponse())?void 0:null==(f=e.playerOverlays)?void 0:null==(h=f.playerOverlayRenderer)?void 0:h.productsInVideoOverlayRenderer,
vlb);this.N=this.enabled=!1;if(b){if(this.J.L("web_player_enable_vod_featured_product_banner_on_desktop")&&(e=null==b?void 0:b.featuredProductsEntityKey)){f=g.ZS.getState().entities;var l;if(null==(l=yO(f,"featuredProductsEntity",e))?0:l.productsData){this.Yf(!1);return}}this.enabled=!0;if(!this.D){var m;l=null==(m=b.badgeInteractionLogging)?void 0:m.trackingParams;(this.D=!!l)&&this.J.setTrackingParams(this.badge.element,l||null)}if(!this.G){var n;if(this.G=!(null==(n=b.dismissButton)||!n.trackingParams)){var p;
this.J.setTrackingParams(this.dismissButton.element,(null==(p=b.dismissButton)?void 0:p.trackingParams)||null)}}b.isContentForward&&(m=b.productsData,M_a(this,!0),J_a(this),m=L_a(this,m),n=[],0<m.length&&n.push(m[0]),1<m.length&&(p=new g.W({I:"div",S:"ytp-suggested-action-more-products-icon"}),g.O(this,p),n.push(p),n.push.apply(n,g.qa(m.slice(1)))),this.K=new g.W({I:"div",V:n,S:"ytp-suggested-action-content-forward-container"}),g.O(this,this.K),this.La.element.append(this.K.element));this.text=g.HF(b.text);
var q;if(m=null==(q=b.dismissButton)?void 0:q.a11yLabel)this.Ra=g.HF(m);this.onClickCommand=b.onClickCommand;this.timing=b.timing;this.lf()}BWa(this);KU(this);this.Bk()}};
g.k.zx=function(){return!this.N&&this.enabled&&!this.Va&&!this.J.Kg()&&!this.zb&&(this.qa||this.Ba)};
g.k.VJ=function(a){LU.prototype.VJ.call(this,a);if(this.j||this.B)this.timing&&BW(this.timing.preview)&&(this.j=!1,CW(this),this.B=!1,CW(this),this.J.sf("shopping_overlay_preview_collapsed"),this.J.sf("shopping_overlay_preview_expanded"),a=DW(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),BW(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.J.sf("shopping_overlay_expanded"),a.end=1E3*this.timing.expanded.endSec),this.J.lf([a])),
this.Y=!0,KU(this);CW(this)};
g.k.Yf=function(a){(this.qa=a)?(JU(this),KU(this,!1)):(N_a(this),this.Na.start());this.Bk()};
g.k.lf=function(a){var b=this.timing;a=(void 0===a?0:a)+this.J.getCurrentTime();var c=[],d=b.visible,e=b.preview;b=b.expanded;BW(d)&&(G_a(d,a),c.push(DW(d.startSec,d.endSec,"shopping_overlay_visible")));BW(e)&&(G_a(e,a),d=e.startSec+1,c.push(DW(e.startSec,d,"shopping_overlay_preview_collapsed")),c.push(DW(d,e.endSec,"shopping_overlay_preview_expanded")));BW(b)&&(G_a(b,a),c.push(DW(b.startSec,b.endSec,"shopping_overlay_expanded")));this.J.lf(c)};g.y(P_a,g.W);
P_a.prototype.Sa=function(){var a=this.api.U();g.DF(this,g.IR(a)&&this.api.Yc());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Eb);var b=this.api.getVideoData(),c=!1;2===this.api.getPresentingPlayerType()?c=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.Dc&&!!b.profilePicture:g.IR(a)&&(c=!!b.videoId&&!!b.Dc&&!!b.profilePicture&&!g.ET(b)&&!a.C&&!(a.Z&&200>this.api.getPlayerSize().width));var d=b.profilePicture;a=g.IR(a)?b.expandedTitle:b.author;d=void 0===d?"":d;a=void 0===
a?"":a;c?(this.B!==d&&(this.j.style.backgroundImage="url("+d+")",this.B=d),this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelLink",EW(this)),this.updateValue("channelLogoLabel",g.KJ("$CHANNEL_NAME foto\u011fraf\u0131",{CHANNEL_NAME:a})),g.uv(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.wv(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,c&&this.Z);this.api.L("web_player_ve_conversion_fixes_for_channel_info")&&
this.api.logVisibility(this.channelName,c&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=b.Bl);this.updateValue("expandedTitle",b.expandedTitle);this.api.L("web_player_ve_conversion_fixes_for_channel_info")||this.updateValue("channelTitleLink",EW(this))};g.y(FW,g.gU);FW.prototype.show=function(){g.gU.prototype.show.call(this);this.j.start()};
FW.prototype.hide=function(){g.gU.prototype.hide.call(this);this.j.stop()};
FW.prototype.jt=function(a,b){"dataloaded"===a&&((this.Li=b.Li,this.Bf=b.Bf,isNaN(this.Li)||isNaN(this.Bf))?this.C&&(this.J.sf("intro"),this.J.removeEventListener(g.EJ("intro"),this.K),this.J.removeEventListener(g.FJ("intro"),this.G),this.J.removeEventListener("onShowControls",this.D),this.hide(),this.C=!1):(this.J.addEventListener(g.EJ("intro"),this.K),this.J.addEventListener(g.FJ("intro"),this.G),this.J.addEventListener("onShowControls",this.D),a=new g.DJ(this.Li,this.Bf,{priority:9,namespace:"intro"}),
this.J.lf([a]),this.C=!0))};g.y(GW,g.W);GW.prototype.onClick=function(){this.J.mu()};
GW.prototype.Sa=function(){var a=!0;g.IR(this.J.U())&&(a=a&&480<=this.J.kb().getPlayerSize().width);g.DF(this,a);this.updateValue("icon",this.J.Vh()?{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,X:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.y(R_a,g.W);R_a.prototype.va=function(){this.j=null;g.W.prototype.va.call(this)};g.y(HW,g.W);HW.prototype.onClick=function(){this.J.gb("innertubeCommand",this.B)};
HW.prototype.N=function(a){a!==this.G&&(this.update({title:a,ariaLabel:a}),this.G=a);a?this.show():this.hide()};
HW.prototype.K=function(){this.j.disabled=null==this.B;g.yv(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.Nc()};g.y(IW,HW);IW.prototype.onClickCommand=function(a){g.V(a,YS)&&this.Nc()};
IW.prototype.updateVideoData=function(a,b){var c,d,e;a=g.V(null==(c=b.getWatchNextResponse())?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.decoratedPlayerBarRenderer,$Sa);var f;this.B=null==(f=g.V(null==a?void 0:a.playerBarActionButton,g.yM))?void 0:f.command;HW.prototype.K.call(this)};
IW.prototype.Nc=function(){var a="",b=this.D.j,c,d="clips"===(null==(c=this.J.getLoopRange())?void 0:c.type);if(1<b.length&&!d){a=1E3*this.J.getProgressState().current;c=rW(b,a);a=b[c].title||"B\u00f6l\u00fcmler";if(c!==this.currentIndex||this.C)this.J.gb("innertubeCommand",b[c].onActiveCommand),this.currentIndex=c;this.C=!1}else this.C=!0;HW.prototype.N.call(this,a)};g.y(JW,g.W);JW.prototype.G=function(a){g.mG(a.state,32)?U_a(this,this.api.Vj()):this.Eb&&(g.mG(a.state,16)||g.mG(a.state,1))||this.j.hide()};
JW.prototype.Xf=function(){var a=this.api.Qb();(g.mG(a,32)||g.mG(a,16))&&V_a(this)};
JW.prototype.K=function(){this.C=NaN;V_a(this)};
JW.prototype.hide=function(){this.B&&U_a(this,null);g.W.prototype.hide.call(this)};g.y(W_a,g.W);g.k=W_a.prototype;g.k.onClick=function(){var a=this;if(this.J.U().Gb||this.J.U().Z){this.J.logClick(this.element);try{this.J.toggleFullscreen().catch(function(b){a.cE(b)})}catch(b){this.cE(b)}}else hU(this.message,this.element,!0)};
g.k.cE=function(a){String(a).includes("fullscreen error")?g.eF(a):g.dF(a);this.BQ()};
g.k.BQ=function(){this.disable();this.message.od(this.element,!0)};
g.k.Uw=function(){fC()===this.J.getRootNode()?this.B.start():(this.B.stop(),this.message&&this.message.hide())};
g.k.g6=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=.9*window.screen.width,b=.9*window.screen.height,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!==a>b){var e=c;c=d;d=e}a>c&&b>d&&this.BQ()}};
g.k.disable=function(){var a=this;if(!this.message){var b=(null!=dC(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)?"Tam ekran kullan\u0131lam\u0131yor. $BEGIN_LINKDaha Fazla Bilgi Edinin$END_LINK":"Taray\u0131c\u0131n\u0131z tam ekran\u0131 desteklemiyor. $BEGIN_LINKDaha Fazla Bilgi Edinin$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.gU(this.J,{I:"div",Ka:["ytp-popup","ytp-generic-popup"],X:{role:"alert",tabindex:"0"},V:[b[0],
{I:"a",X:{href:"https://support.google.com/youtube/answer/6276924",target:this.J.U().Y},xa:b[2]},b[4]]},100,!0);this.message.hide();g.O(this,this.message);this.message.subscribe("show",function(c){a.Te.oD(a.message,c)});
g.cU(this.J,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}};
g.k.Sa=function(){var a=LVa(this.J),b=this.J.U().Z&&250>this.J.getPlayerSize().width;g.DF(this,a&&!b);this.J.logVisibility(this.element,this.Eb)};
g.k.Hm=function(a){if(a){var b={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{I:"g",
S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.UT(this.J,"Tam ekrandan \u00e7\u0131k","f");this.update({"data-title-no-tooltip":"Tam ekrandan \u00e7\u0131k"});document.activeElement===this.element&&this.J.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(c){g.eF(c)})}else b={I:"svg",
X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"g",S:"ytp-fullscreen-button-corner-0",V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-1",V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-2",V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",S:"ytp-fullscreen-button-corner-3",
V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.UT(this.J,"Tam ekran","f"),this.update({"data-title-no-tooltip":"Tam ekran"});a=this.message?null:a;this.update({title:a,icon:b});this.Te.Ne().Ph()};
g.k.va=function(){this.message||((0,this.j)(),this.j=null);g.W.prototype.va.call(this)};g.y(KW,g.W);KW.prototype.onClick=function(){this.J.logClick(this.element);this.J.seekBy(this.j,!0);var a=0<this.j?1:-1,b=Math.abs(this.j),c=this.J.xi().Ev;c&&lW(c,a,b);this.B.isActive()?this.C=!0:(a=["ytp-jump-spin"],0>this.j&&a.push("backwards"),this.element.classList.add.apply(this.element.classList,g.qa(a)),g.mv(this.B))};g.y(LW,HW);LW.prototype.onClickCommand=function(a){g.V(a,tlb)&&this.Nc()};
LW.prototype.updateVideoData=function(){var a,b;this.B=null==(a=Y_a(this))?void 0:null==(b=a.onTap)?void 0:b.innertubeCommand;HW.prototype.K.call(this)};
LW.prototype.Nc=function(){var a="",b=this.D.K,c,d=null==(c=Y_a(this))?void 0:c.headerTitle;c=d?g.HF(d):"";var e;d="clips"===(null==(e=this.J.getLoopRange())?void 0:e.type);1<b.length&&!d&&(a=1E3*this.J.getProgressState().current,e=j_a(b,a),a=null!=e?b[e].title:c,null!=e&&e!==this.currentIndex&&(this.J.gb("innertubeCommand",b[e].onActiveCommand),this.currentIndex=e));HW.prototype.N.call(this,a)};g.y(MW,g.W);MW.prototype.onClick=function(){this.J.gb("onCollapseMiniplayer");this.J.logClick(this.element)};
MW.prototype.Sa=function(){this.visible=!this.J.isFullscreen();g.DF(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)};
MW.prototype.Hc=function(a){g.W.prototype.Hc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.y(g.NW,g.W);g.k=g.NW.prototype;g.k.IU=function(a){this.visible=300<=a.width||this.Da;g.DF(this,this.visible);this.J.logVisibility(this.element,this.visible&&this.Z)};
g.k.S$=function(){this.J.U().Va?this.J.isMuted()?this.J.unMute():this.J.mute():hU(this.message,this.element,!0);this.J.logClick(this.element)};
g.k.onVolumeChange=function(a){this.setVolume(a.volume,a.muted)};
g.k.setVolume=function(a,b){var c=this,d=b?0:a/100,e=this.J.U();a=0===d?1:50<a?1:0;if(this.G!==a){var f=this.ra;isNaN(f)?a0a(this,a):TWa(this.Ga,function(l){a0a(c,f+(c.G-f)*l)},250);
this.G=a}d=0===d?1:0;if(this.D!==d){var h=this.Y;isNaN(h)?b0a(this,d):TWa(this.qa,function(l){b0a(c,h+(c.D-h)*l)},250);
this.D=d}e.Va&&(e=g.UT(this.J,"Sessiz","m"),d=g.UT(this.J,"Sesi a\u00e7","m"),this.updateValue("title",b?d:e),this.update({"data-title-no-tooltip":b?"Sesi a\u00e7":"Sessiz"}),this.tooltip.Ph())};
g.k.Hc=function(a){g.W.prototype.Hc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};
var Z_a=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],$_a=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.y(g.OW,g.W);g.OW.prototype.onStateChange=function(a){this.Bc(a.state)};
g.OW.prototype.Bc=function(a){var b=g.mT(this.J.getVideoData()),c=!1;g.oL(a)?a=b?4:2:g.mG(a,2)?(a=3,c=b):a=1;this.element.disabled=c;if(this.j!==a){b=null;switch(a){case 2:b=g.UT(this.J,"Duraklat","k");this.update({"data-title-no-tooltip":"Duraklat"});break;case 3:b="Tekrar Oynat";this.update({"data-title-no-tooltip":"Tekrar Oynat"});break;case 1:b=g.UT(this.J,"Oynat","k");this.update({"data-title-no-tooltip":"Oynat"});break;case 4:b="Canl\u0131 oynatmay\u0131 durdur",this.update({"data-title-no-tooltip":"Canl\u0131 oynatmay\u0131 durdur"})}3===
a?this.update({title:b,icon:c0a(a)}):(this.update({title:b}),(b=c0a(a))&&this.j&&3!==this.j?VWa(this.transition,this.element,b):this.updateValue("icon",b));this.tooltip.Ph();this.j=a}};
g.OW.prototype.onVideoDataChange=function(){g.yv(this.element,"ytp-play-button-playlist",g.$T(this.J))};
g.OW.prototype.Pr=function(a){this.J.logClick(this.element);if(g.oL(this.J.Qb()))this.J.pauseVideo();else{if(this.J.isMinimized()&&this.J.Qb().isCued()){var b={},c;if(null==(c=this.J.getVideoData())?0:c.G)b.cttAuthInfo={token:this.J.getVideoData().G,videoId:this.J.getVideoData().videoId};BH("direct_playback",b);this.J.zi().timerName="direct_playback"}else 3===this.j&&mV(this.J.zi());this.J.playVideo()}this.J.isMinimized()&&"click"===(null==a?void 0:a.type)&&this.element.blur()};g.y(g.PW,g.W);g.k=g.PW.prototype;g.k.onVideoDataChange=function(){e0a(this);this.D&&(this.Pc(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.Y4);this.C=f0a(this);d0a(this);this.wM(this.J.kb().getPlayerSize())};
g.k.wM=function(a){a=void 0===a?this.J.kb().getPlayerSize():a;var b,c="clips"===(null==(b=this.J.getLoopRange())?void 0:b.type);a=(g.$T(this.J)||this.j&&g.dU(this.J)&&!this.J.L("web_hide_next_button")||g0a(this))&&!c&&(this.j||400<=a.width);g.DF(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.tU(a,this.J):a.preventDefault();b&&(this.j&&5===this.J.getPresentingPlayerType()?this.J.publish("ytoprerollinternstitialnext"):this.j?(mV(this.J.zi()),this.J.publish("playlistnextbuttonclicked",this.element),this.J.nextVideo(!0)):this.C?this.J.seekTo(0):(mV(this.J.zi()),this.J.publish("playlistprevbuttonclicked",this.element),this.J.previousVideo(!0)))};
g.k.Y4=function(){var a=f0a(this);a!==this.C&&(this.C=a,d0a(this))};
g.k.va=function(){this.B&&(this.B(),this.B=null);e0a(this);g.W.prototype.va.call(this)};g.y(i0a,g.W);g.k=i0a.prototype;g.k.a5=function(a){this.yM(a.pageX);this.xM(a.pageX+a.deltaX);j0a(this)};
g.k.yM=function(a){this.qa=a-this.Na};
g.k.xM=function(a){a-=this.Na;!isNaN(this.qa)&&0<this.thumbnails.length&&(this.Y=a-this.qa,0<this.thumbnails.length&&0!==this.Y&&(this.C=this.N+this.Y,a=o0a(this,this.C),this.C<=this.j/2&&this.C>=n0a(this)?(this.api.seekTo(a,!1,void 0,void 0,25),g.zs(this.Ba,"transform","translateX("+(this.C-this.j/2)+"px)"),h0a(this,a)):this.C=this.N))};
g.k.Z4=function(){this.ra&&(this.ra.Sz=!0);var a=300>(0,g.$C)()-this.Va;if(5>Math.abs(this.Y)&&!a){this.Va=(0,g.$C)();a=this.qa+this.Y;var b=this.j/2-a;this.yM(a);this.xM(a+b);j0a(this);this.api.logClick(this.G)}j0a(this)};
g.k.NA=function(){QW(this,this.api.getCurrentTime())};
g.k.play=function(a){this.api.seekTo(o0a(this,this.C),void 0,void 0,void 0,26);this.api.playVideo();a&&this.api.logClick(this.playButton)};
g.k.onExit=function(a){this.api.seekTo(this.Ra,void 0,void 0,void 0,63);this.api.playVideo();a&&this.api.logClick(this.dismissButton)};
g.k.Tb=function(a,b){this.Na=a;this.j=b;QW(this,this.api.getCurrentTime())};
g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Ra=this.api.getCurrentTime(),h0a(this,this.Ra),g.yv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.La=this.T(this.element,"wheel",this.a5),this.logVisibility(this.isEnabled))};
g.k.disable=function(){this.isEnabled=!1;this.hide();g.yv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.La&&this.Pc(this.La);this.logVisibility(this.isEnabled)};
g.k.reset=function(){this.disable();this.D=[];this.Da=!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.va=function(){for(;this.B.length;){var a=void 0;null==(a=this.B.pop())||a.dispose()}g.W.prototype.va.call(this)};
g.y(k0a,g.W);g.y(l0a,g.W);g.y(p0a,g.W);g.y(RW,g.W);RW.prototype.Ib=function(a){return"PLAY_PROGRESS"===a?this.K:"LOAD_PROGRESS"===a?this.G:"LIVE_BUFFER"===a?this.D:this.B};s0a.prototype.update=function(a,b,c,d){c=void 0===c?0:c;this.width=b;this.D=c;this.j=b-c-(void 0===d?0:d);this.position=g.ye(a,c,c+this.j);this.C=this.position-c;this.B=this.C/this.j};g.y(t0a,g.W);g.y(g.UW,g.EF);g.k=g.UW.prototype;
g.k.t1=function(){var a=!1,b=this.api.getVideoData();if(!b)return a;this.api.sf("timedMarkerCueRange");w0a(this);for(var c=g.u(b.Ae),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,f=null==(e=this.Na[d])?void 0:e.markerType;e=void 0;var h=null==(e=this.Na[d])?void 0:e.markers;if(!h)break;if("MARKER_TYPE_TIMESTAMPS"===f){a=g.u(h);for(f=a.next();!f.done;f=a.next()){e=f.value;f=new t0a;h=void 0;f.title=(null==(h=e.title)?void 0:h.simpleText)||"";f.timeRangeStartMillis=Number(e.startMillis);f.j=
Number(e.durationMillis);var l=h=void 0;f.onActiveCommand=null!=(l=null==(h=e.onActive)?void 0:h.innertubeCommand)?l:void 0;C0a(this,f)}D0a(this,this.K);a=this.K;f=this.Ud;e=[];h=null;for(l=0;l<a.length;l++){var m=a[l].timeRangeStartMillis;if(!isNaN(m)&&a[l].onActiveCommand){var n=void 0,p=null!=(n=a[l].j)?n:1E4;h&&h.end>m&&(h.end=m);m=m_a(m,m+p);e.push(m);h=m;f[m.id]=a[l].onActiveCommand}}this.api.lf(e);this.Bf=this.Na[d];a=!0}else if("MARKER_TYPE_HEATMAP"===f){d=this.Na[d];p=n=e=m=l=h=void 0;if(d&&
d.markers){f=null!=(e=null==(p=d.markersMetadata)?void 0:null==(n=p.heatmapMetadata)?void 0:n.minHeightDp)?e:0;e=null!=(h=null==(m=d.markersMetadata)?void 0:null==(l=m.heatmapMetadata)?void 0:l.maxHeightDp)?h:60;h=this.j.length;l=null;for(m=0;m<h;m++){p=this.j[m].startTime;var q=m===h-1?Infinity:this.j[m+1].startTime;m===this.G.length&&v0a(this);n=[];l&&n.push(l);for(var r=g.u(d.markers),t=r.next();!t.done;t=r.next()){t=t.value;var v=Number(t.startMillis);v>=p&&v<=q&&n.push(t)}0<e&&(this.ra.style.height=
e+"px");p=this.G[m];q=n;t=f;var w=e,A=0===m;A=void 0===A?!1:A;q0a(p,w);r=q;v=p.j;A=void 0===A?!1:A;var C=1E3/r.length,F=[];F.push({x:0,y:100});for(var G=0;G<r.length;G++){var L=(G+.5)*C,M=100-g.ye(100*(r[G].intensityScoreNormalized||0),t/v*100,w/v*100);0!==G||A||F.push({x:0,y:M});F.push({x:L,y:M});G===r.length-1&&F.push({x:1E3,y:M})}F.push({x:1E3,y:100});r=F;q=0===q.length?"":Gza(r);p.C.setAttribute("d",q);p.qe=""!==q;g.yv(p.api.getRootNode(),"ytp-heat-map",p.qe);0<n.length&&(l=n[n.length-1])}g.VW(this)}e=
void 0;f=[];if(d=null==(e=d.markersDecoration)?void 0:e.timedMarkerDecorations)for(d=g.u(d),e=d.next();!e.done;e=d.next())e=e.value,m=l=h=void 0,f.push({visibleTimeRangeStartMillis:null!=(h=e.visibleTimeRangeStartMillis)?h:-1,visibleTimeRangeEndMillis:null!=(l=e.visibleTimeRangeEndMillis)?l:-1,decorationTimeMillis:null!=(m=e.decorationTimeMillis)?m:NaN,label:e.label?g.HF(e.label):""});d=f;this.heatMarkersDecorations=d}}b.hV=this.K;g.yv(this.element,"ytp-timed-markers-enabled",a);return a};
g.k.Tb=function(){g.VW(this);YW(this);D0a(this,this.K);if(this.B){var a=g.Is(this.element).x||0;this.B.Tb(a,this.N)}};
g.k.onClickCommand=function(a){if(a=g.V(a,YS)){var b=a.key;a.isVisible&&b&&c1a(this,b)}};
g.k.nba=function(a){this.api.gb("innertubeCommand",this.Ud[a.id])};
g.k.Nc=function(){YW(this);var a=this.api.getCurrentTime();(a<this.clipStart||a>this.clipEnd)&&this.KK()};
g.k.P2=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.jt=function(a,b){this.updateVideoData(b,"newdata"===a)};
g.k.g8=function(){this.jt("newdata",this.api.getVideoData())};
g.k.updateVideoData=function(a,b){b=void 0===b?!1:b;var c=!!a&&a.qe();c&&(DT(a)||i1a(this)?this.Ae=!1:this.Ae=a.allowLiveDvr,g.yv(this.api.getRootNode(),"ytp-enable-live-buffer",!(null==a||!DT(a))));t1a(this,this.api.Xh());if(b){if(c){b=a.clipEnd;this.clipStart=a.clipStart;this.clipEnd=b;bX(this);for(ZW(this,this.qa,this.fb);0<this.G.length;)this.G.pop().dispose();this.heatMarkersDecorations=[];this.zb={};var d;null==(d=this.B)||d.reset();gX(this);g.yv(this.api.getRootNode(),"ytp-fine-scrubbing-exp",
TW(this))}else this.KK();this.Uh()}if(a){var e;d="clips"===(null==(e=this.Db)?void 0:e.type);if(e=!a.isLivePlayback){e=this.api.getVideoData();b=g.bTa(e);c=y0a(e);var f;e=null!=b||null!=c&&0<c.length||0<(null==(f=e.wy)?void 0:f.length)}if(e&&!d){f=this.api.getVideoData();d=g.bTa(f);e=!1;if(null==d?0:d.markersMap){e=this.api.getVideoData();var h;e.Px=(null==(h=d.visibleOnLoad)?void 0:h.key)||e.Px;h=g.u(d.markersMap);for(d=h.next();!d.done;d=h.next())d=d.value,d.key&&d.value&&(this.zb[d.key]=d.value,
d.value.onChapterRepeat&&(e.Zda=d.value.onChapterRepeat));null!=e.Px&&c1a(this,e.Px);e=!0}var l;if(0<(null==(l=f.wy)?void 0:l.length)){l=g.ZS.getState().entities;h=g.u(f.wy);for(d=h.next();!d.done;d=h.next()){d=d.value;c=void 0;b=null==(c=yO(l,"macroMarkersListEntity",d))?void 0:c.markersList;var m=c=void 0;if("MARKER_TYPE_TIMESTAMPS"===(null==(c=b)?void 0:c.markerType)||"MARKER_TYPE_HEATMAP"===(null==(m=b)?void 0:m.markerType))this.Na[d]=b}e=this.t1()||e}!e&&(l=y0a(f))&&(A0a(this,l),f.wk=this.j,
z0a(this));j1a(this,null);a.hT&&0===this.G.length&&(a=a.hT,l=a.key,a.isVisible&&l&&c1a(this,l))}else u0a(this),w0a(this)}YW(this)};
g.k.h8=function(a){this.Y&&!g.mG(a.state,32)&&3!==this.api.getPresentingPlayerType()&&this.Y.cancel();var b;(null==(b=this.B)?0:b.isEnabled)&&g.mG(a.state,8)&&this.api.pauseVideo()};
g.k.sT=function(a){var b=!!this.Db!==!!a,c=this.Db;this.Db=a;j1a(this,c);"clips"!==(null==a?void 0:a.type)&&a||(a?(this.updateValue("clipstarticon",Xwa()),this.updateValue("clipendicon",Xwa()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",Pwa()),this.updateValue("clipendicon",Owa()),this.updateValue("clipstarttitle","Videonun tamam\u0131n\u0131 izle"),this.updateValue("clipendtitle","Videonun tamam\u0131n\u0131 izle")),b&&(this.updateVideoData(this.api.getVideoData(),
!0),g.VW(this)),bX(this));ZW(this,this.qa,this.fb)};
g.k.naa=function(a,b,c){var d=g.Is(this.element),e=XW(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=GG(this.C,Number(c.getAttribute("data-position")),0)*e+g.Is(this.progressBar).x);this.bb.x=a-d.x;this.bb.y=b-d.y;a=XW(this);c=aX(this,a);b=0;var m;if(null==(m=this.api.getVideoData())?0:DT(m))(m=this.api.getProgressState().seekableEnd)&&c>m&&(c=m,a.position=GG(this.C,m)*XW(this).j),b=this.C.B;
i1a(this)&&(b=this.C.B);m=f||g.CG(this.Ae?c-this.C.j:c-b);b=a.position+this.Rf;c-=this.api.Lc();var n;if(null==(n=this.B)||!n.isEnabled)if(this.api.Vj()){if(1<this.j.length){n=$W(this,this.bb.x,!0);if(!this.Db)for(d=0;d<this.j.length;)g.yv(this.j[d].j,"ytp-exp-chapter-hover-effect",d===n),d++;if(1<this.G.length)for(d=0;d<this.j.length;d++)g.yv(this.G[d].element,"ytp-heatmap-hover",d===n)}if(0<this.K.length)for(n=this.bb.x,d=g.u(this.K),e=d.next();!e.done;e=d.next())e=e.value,h=WW(this,e.timeRangeStartMillis/
(1E3*this.C.j),XW(this)),g.yv(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.Bf?(n=j_a(this.K,1E3*c),n=null!=n?this.K[n].title:""):(n=rW(this.j,1E3*c),n=this.j[n].title):(n=rW(this.j,1E3*c),n=this.j[n].title);n||(l+=16*d);.6===this.tooltip.scale&&(l=n?110:126);d=rW(this.j,1E3*c);this.Wa=k1a(this,c,d)?d:k1a(this,c,d+1)?d+1:-1;g.yv(this.api.getRootNode(),"ytp-progress-bar-snap",-1!==this.Wa&&1<this.j.length);d=!1;
e=g.u(this.heatMarkersDecorations);for(h=e.next();!h.done;h=e.next()){h=h.value;var p=1E3*c;p>=h.visibleTimeRangeStartMillis&&p<=h.visibleTimeRangeEndMillis&&(n=h.label,m=g.CG(h.decorationTimeMillis/1E3),d=!0)}this.hd!==d&&(this.hd=d,this.api.logVisibility(this.Jd,this.hd));g.yv(this.api.getRootNode(),"ytp-progress-bar-decoration",d);d=320*this.tooltip.scale;e=n.length*(this.D?8.55:5.7);e=e<=d?e:d;h=e<160*this.tooltip.scale;d=3;!h&&e/2>a.position&&(d=1);!h&&e/2>this.N-a.position&&(d=2);this.api.U().Z&&
(l-=10);this.G.length&&this.G[0].qe&&(l-=14*(this.D?2:1),this.Da||(this.Da=!0,this.api.logVisibility(this.ra,this.Da)));var q;if(TW(this)&&((null==(q=this.B)?0:q.isEnabled)||0<this.Va)){var r;l-=(null==(r=this.B)?0:r.isEnabled)?dX(this):this.Va}q=void 0;TW(this)&&(q="Hassas sarma i\u015flemi i\u00e7in ekran\u0131 yukar\u0131 kayd\u0131r\u0131n",this.Ga||(this.Ga=!0,this.api.logVisibility(this.Sc,this.Ga)));this.tooltip.iL(b,c,m,!!f,l,n,d,q)}else this.tooltip.iL(b,c,m,!!f,l);g.uv(this.api.getRootNode(),
"ytp-progress-bar-hover");h1a(this)};
g.k.maa=function(){this.Uh();g.wv(this.api.getRootNode(),"ytp-progress-bar-hover");this.Da&&(this.Da=!1,this.api.logVisibility(this.ra,this.Da));this.Ga&&(this.Ga=!1,this.api.logVisibility(this.Sc,this.Ga))};
g.k.jaa=function(a,b){TW(this)&&this.B&&(this.B.Da?QW(this.B,this.api.getCurrentTime()):m0a(this.B),this.B.show(),g.yv(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.B.isEnabled));this.wd&&(this.wd.dispose(),this.wd=null);this.Sf=b;1<this.j.length&&-1!==this.Wa?this.api.seekTo(this.j[this.Wa].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(aX(this,XW(this)),!1,void 0,void 0,7);g.uv(this.element,"ytp-drag");(this.Ie=g.oL(this.api.Qb()))&&this.api.pauseVideo()};
g.k.oaa=function(){if(TW(this)&&this.B){var a=dX(this);this.Va>=.5*a?(this.B.enable(),QW(this.B,this.api.getCurrentTime()),s1a(this,a)):gX(this)}if(g.mG(this.api.Qb(),32)||3===this.api.getPresentingPlayerType()){var b;if(null==(b=this.B)?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(1<this.j.length&&-1!==this.Wa)this.api.seekTo(this.j[this.Wa].startTime/1E3,void 0,void 0,void 0,7);else{a=aX(this,XW(this));this.api.seekTo(a,void 0,void 0,void 0,7);b=g.u(this.heatMarkersDecorations);
for(var c=b.next();!c.done;c=b.next())c=c.value,1E3*a>=c.visibleTimeRangeStartMillis&&1E3*a<=c.visibleTimeRangeEndMillis&&this.api.logClick(this.Jd)}g.wv(this.element,"ytp-drag");this.Ie&&!g.mG(this.api.Qb(),2)&&this.api.playVideo()}}};
g.k.paa=function(a,b){a=XW(this);a=aX(this,a);this.api.seekTo(a,!1,void 0,void 0,7);var c;TW(this)&&(null==(c=this.B)?0:c.Da)&&(QW(this.B,a),this.B.isEnabled||(this.Va=g.ye(this.Sf-b-10,0,dX(this)),s1a(this,this.Va)))};
g.k.Uh=function(){this.tooltip.gP()};
g.k.AZ=function(){this.Db||(this.updateValue("clipstarticon",Nwa()),this.updateValue("clipendicon",Nwa()),g.uv(this.element,"ytp-clip-hover"))};
g.k.zZ=function(){this.Db||(this.updateValue("clipstarticon",Pwa()),this.updateValue("clipendicon",Owa()),g.wv(this.element,"ytp-clip-hover"))};
g.k.KK=function(){this.clipStart=0;this.clipEnd=Infinity;bX(this);ZW(this,this.qa,this.fb)};
g.k.Lda=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.La[c]){var d=g.yf("DIV");b.tooltip&&d.setAttribute("data-tooltip",b.tooltip);this.La[c]=b;this.Pb[c]=d;g.rv(d,b.style);l1a(this,c);this.api.U().L("disable_ad_markers_on_content_progress_bar")||this.j[0].C.appendChild(d)}}else r1a(this,b)};
g.k.lca=function(a){a=g.u(a);for(var b=a.next();!b.done;b=a.next())r1a(this,b.value)};
g.k.Iv=function(a){this.B&&(this.B.onExit(null!=a),gX(this))};
g.k.dO=function(a){this.B&&(this.B.play(null!=a),gX(this))};
g.k.va=function(){t1a(this,!1);g.EF.prototype.va.call(this)};g.y(hX,g.W);hX.prototype.isActive=function(){return!!this.J.getOption("remote","casting")};
hX.prototype.Sa=function(){var a=!1;this.J.getOptions().includes("remote")&&(a=1<this.J.getOption("remote","receivers").length);g.DF(this,a&&400<=this.J.kb().getPlayerSize().width);this.J.logVisibility(this.element,this.Eb);var b=1;a&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{I:"path",Cc:!0,X:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",
fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.Lwa())}g.yv(this.element,"ytp-remote-button-active",this.isActive())}};
hX.prototype.B=function(){if(this.J.getOption("remote","quickCast"))this.J.setOption("remote","quickCast",!0);else{var a=this.Fb,b=this.element;if(a.Wj())a.Lb();else{a.initialize();a:{var c=g.u(a.Ue.items);for(var d=c.next();!d.done;d=c.next())if(d=d.value,1===d.priority){c=d;break a}c=null}c&&(c.open(),a.od(b));a.od(b)}}this.J.logClick(this.element)};g.y(iX,g.W);iX.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.DF(this,a);this.J.logVisibility(this.element,a)};
iX.prototype.C=function(){if(this.Fb.Eb)this.Fb.Lb();else{var a=g.BV(this.J.yb());a&&!a.loaded&&(a.Oh("tracklist",{includeAsr:!0}).length||a.load());this.J.logClick(this.element);this.Fb.od(this.element)}};
iX.prototype.updateBadge=function(){var a=this.J.isHdr(),b=this.J.getPresentingPlayerType(),c=2!==b&&3!==b,d=g.bU(this.J),e=c&&!!g.aU(this.J.yb());b=e&&1===d.displayMode;d=e&&2===d.displayMode;c=(e=b||d)||!c?null:this.J.getPlaybackQuality();g.yv(this.element,"ytp-hdr-quality-badge",a);g.yv(this.element,"ytp-hd-quality-badge",!a&&("hd1080"===c||"hd1440"===c));g.yv(this.element,"ytp-4k-quality-badge",!a&&"hd2160"===c);g.yv(this.element,"ytp-5k-quality-badge",!a&&"hd2880"===c);g.yv(this.element,"ytp-8k-quality-badge",
!a&&"highres"===c);g.yv(this.element,"ytp-3d-badge-grey",!a&&e&&b);g.yv(this.element,"ytp-3d-badge",!a&&e&&d)};g.y(jX,rU);jX.prototype.isLoaded=function(){var a=g.HV(this.J.yb());return void 0!==a&&a.loaded};
jX.prototype.Sa=function(){void 0!==g.HV(this.J.yb())&&3!==this.J.getPresentingPlayerType()?this.j||(this.Fb.Rc(this),this.j=!0):this.j&&(this.Fb.jh(this),this.j=!1);sU(this,this.isLoaded())};
jX.prototype.onSelect=function(a){this.isLoaded();a?this.J.loadModule("annotations_module"):this.J.unloadModule("annotations_module");this.J.publish("annotationvisibility",a)};
jX.prototype.va=function(){this.j&&this.Fb.jh(this);rU.prototype.va.call(this)};g.y(g.kX,g.iU);g.k=g.kX.prototype;g.k.open=function(){g.fW(this.Fb,this.B)};
g.k.Hj=function(a){v1a(this);var b=this.options[a];b&&(b.element.setAttribute("aria-checked","true"),this.Ld(this.Dk(a)),this.C=a)};
g.k.jN=function(a,b,c){var d=this;b=new g.iU({I:"div",Ka:["ytp-menuitem"],X:{tabindex:"0",role:"menuitemradio","aria-checked":c?"true":"false"},V:[{I:"div",Ka:["ytp-menuitem-label"],xa:"{{label}}"}]},b,this.Dk(a,!0));b.listen("click",function(){d.nh(a)});
return b};
g.k.enable=function(a){this.K?a||(this.K=!1,this.Qx(!1)):a&&(this.K=!0,this.Qx(!0))};
g.k.Qx=function(a){a?this.Fb.Rc(this):this.Fb.jh(this)};
g.k.nh=function(a){this.publish("select",a)};
g.k.Dk=function(a){return a.toString()};
g.k.Q2=function(a){a.defaultPrevented||39!==a.keyCode||(this.open(),a.preventDefault())};
g.k.va=function(){this.K&&this.Fb.jh(this);g.iU.prototype.va.call(this);for(var a=g.u(Object.keys(this.options)),b=a.next();!b.done;b=a.next())this.options[b.value].dispose()};g.y(mX,g.kX);mX.prototype.Sa=function(){var a=this.J.getAvailableAudioTracks();1<a.length?(g.lX(this,g.Rr(a,this.j)),this.tracks=g.bc(a,this.j,this),this.countLabel.Ld(a.length?" ("+a.length+")":""),this.publish("size-change"),this.Hj(this.j(this.J.getAudioTrack())),this.enable(!0)):this.enable(!1)};
mX.prototype.nh=function(a){g.kX.prototype.nh.call(this,a);this.J.setAudioTrack(this.tracks[a]);this.Fb.yj()};
mX.prototype.j=function(a){return a.toString()};g.y(nX,rU);
nX.prototype.B=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a&&g.dU(this.J))this.j||(this.Fb.Rc(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.Fb.jh(this);this.j=!1;a=g.u(this.C);for(var b=a.next();!b.done;b=
a.next())this.Pc(b.value)}};
nX.prototype.D=function(a){sU(this,1!==a)};
nX.prototype.onSelect=function(a){this.J.PK(a?2:1);this.j&&(this.J.logVisibility(this.element,this.j),this.J.logClick(this.element))};
nX.prototype.va=function(){this.j&&this.Fb.jh(this);rU.prototype.va.call(this)};g.y(w1a,g.iU);w1a.prototype.onClick=function(a){a.preventDefault();var b,c;null==(b=g.QT(this.J))||null==(c=b.tp())||c.Lb();var d,e;null==(d=g.QT(this.J))||null==(e=d.XW())||e.od(a.target)};g.y(x1a,g.kX);g.k=x1a.prototype;
g.k.eC=function(){var a=this.J.getPresentingPlayerType();if(2!==a&&3!==a){this.Ba=this.J.Ss();a=this.J.getAvailableQualityLevels();if(this.j){this.D={};var b=g.KT(this.J,"getAvailableQualityData",[]);b=g.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,this.D[c.qualityLabel]=c;b=Object.keys(this.D);"auto"===a[a.length-1]&&b.push("auto");this.Ga=new Set(a)}else if(this.G){c=g.KT(this.J,"getAvailableQualityData",[]);b=[];c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.Y[d.quality]=
d,d.quality&&b.push(d.quality);"auto"===a[a.length-1]&&b.push("auto")}else b=a;g.sVa(this.J)&&this.J.Vv()&&b.unshift("missing-qualities");tVa(this.J)&&b.unshift("inline-survey");g.lX(this,b);a=this.J.getVideoData().cotn?!0:!1;c=this.ra.Wh();c=!g.ZR(this.J.U())||!(void 0===a?0:a)||!(void 0===c||c);a=this.B;c=void 0===c?!1:c;c=void 0===c?!1:c;a.RX&&(a=a.Fa("ytp-panel-footer"),g.yv(a,"ytp-panel-hide-footer",c));if(b.length){this.tT();this.enable(!0);return}}this.enable(!1)};
g.k.tT=function(){if(this.j){var a=this.J.getPreferredQuality();this.Ga.has(a)&&(this.N=this.J.getPlaybackQuality(),this.qa=this.J.getPlaybackQualityLabel(),"auto"===a?(this.Hj(a),this.Ld(this.Dk(a))):this.Hj(this.qa))}else a=this.J.getPreferredQuality(),this.options[a]&&(this.N=this.J.getPlaybackQuality(),this.Hj(a),"auto"===a&&this.Ld(this.Dk(a)))};
g.k.nh=function(a){if("missing-qualities"!==a){g.kX.prototype.nh.call(this,a);var b=this.j?this.D[a]:this.Y[a];var c=null==b?void 0:b.quality,d=null==b?void 0:b.formatId,e=null==b?void 0:b.paygatedQualityDetails;b=null==e?void 0:e.endpoint;if(e){var f;e=null==(f=this.options[a])?void 0:f.element;this.J.logClick(e)}if(this.j){var h,l;if(null==(h=g.V(b,g.ckb))?0:null==(l=h.popup)?0:l.notificationActionRenderer)this.J.gb("innertubeCommand",b);else if(b){this.J.gb("innertubeCommand",b);return}d?this.J.setPlaybackQuality(c,
d):this.J.setPlaybackQuality(c)}else{if(this.G){var m,n;if(null==(m=g.V(b,g.ckb))?0:null==(n=m.popup)?0:n.notificationActionRenderer)this.J.gb("innertubeCommand",b);else if(b){this.J.gb("innertubeCommand",b);return}}this.J.setPlaybackQuality(a)}this.Fb.Lb();this.eC()}};
g.k.open=function(){for(var a=g.u(Object.values(this.options)),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;this.J.hasVe(null==(c=b)?void 0:c.element)&&(c=void 0,this.J.logVisibility(null==(c=b)?void 0:c.element,!0))}g.kX.prototype.open.call(this);this.J.logClick(this.element)};
g.k.jN=function(a,b,c){var d=this;if("missing-qualities"===a)return new g.iU({I:"a",Ka:["ytp-menuitem"],X:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.J.U().Y,tabindex:"0",role:"menuitemradio"},V:[{I:"div",Ka:["ytp-menuitem-label"],xa:"{{label}}"}]},b,this.Dk(a));if("inline-survey"!==a){var e,f=null==(e=this.j?this.D[a]:this.Y[a])?void 0:e.paygatedQualityDetails;e=null==f?void 0:f.veType;f=null==f?void 0:f.trackingParams;b=g.kX.prototype.jN.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:"\u0130yi g\u00f6r\u00fcn\u00fcyor mu?"}];c=g.u([!0,!1]);f=c.next();for(e={};!f.done;e={iP:void 0},f=c.next())e.iP=f.value,f=new g.W({I:"span",S:"ytp-menuitem-inline-survey-response",V:[e.iP?Wwa():Rwa()],X:{tabindex:"0",role:"button"}}),f.listen("click",function(h){return function(){var l=h.iP,m=g.PT(d.J.app);m&&(m.ma("iqsr",{tu:l}),m.getVideoData().O1=!0);d.Fb.Lb();d.eC()}}(e)),
a.push(f);
return new g.iU({I:"div",S:"ytp-menuitem",X:{"aria-disabled":"true"},V:[{I:"div",Ka:["ytp-menuitem-label"],V:a}]},b)};
g.k.Dk=function(a,b){b=void 0===b?!1:b;if("missing-qualities"===a)return{I:"div",xa:"Se\u00e7enekler eksik mi?"};if("inline-survey"===a)return"";var c=this.G||this.j?[A1a(this,a,b,!1)]:[z1a(this,a)];var d=this.J.getPreferredQuality();b||"auto"!==d||"auto"!==a||(c.push(" "),this.j?c.push(A1a(this,this.qa,b,!0,["ytp-menu-label-secondary"])):this.G?c.push(A1a(this,this.N,b,!0,["ytp-menu-label-secondary"])):c.push(z1a(this,this.N,["ytp-menu-label-secondary"])));return{I:"div",V:c}};g.y(oX,g.W);g.k=oX.prototype;g.k.init=function(){this.xx(this.j);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.D)};
g.k.T2=function(a){if(!a.defaultPrevented){switch(a.keyCode){case 37:case 40:var b=-this.Y;break;case 39:case 38:b=this.Y;break;default:return}this.xx(this.j+b);a.preventDefault()}};
g.k.R2=function(a){var b=this.j;b+=0>(a.deltaX||-a.deltaY)?-this.N:this.N;this.xx(b);a.preventDefault()};
g.k.S2=function(a){a=(a-g.Is(this.C).x)/this.qa*this.range+this.B;this.xx(a)};
g.k.xx=function(a,b){b=void 0===b?"":b;a=g.ye(a,this.B,this.D);""===b&&(b=a.toString());this.updateValue("valuenow",a);this.updateValue("valuetext",b);this.ra.style.left=(a-this.B)/this.range*(this.qa-this.Ga)+"px";this.j=a};
g.k.focus=function(){this.Da.focus()};g.y(pX,oX);pX.prototype.Ba=function(){this.J.setPlaybackRate(this.j,!0)};
pX.prototype.xx=function(a){oX.prototype.xx.call(this,a,C1a(this,a).toString());this.G&&(B1a(this),this.La())};
pX.prototype.updateValues=function(){var a=this.J.getPlaybackRate();C1a(this,this.j)!==a&&(this.xx(a),B1a(this))};g.y(D1a,g.EF);D1a.prototype.focus=function(){this.j.focus()};g.y(E1a,aW);g.y(F1a,g.kX);g.k=F1a.prototype;g.k.Dk=function(a){return"1"===a?"Normal":a.toLocaleString()};
g.k.Sa=function(){var a=this.J.getPresentingPlayerType();this.enable(2!==a&&3!==a);J1a(this)};
g.k.Qx=function(a){g.kX.prototype.Qx.call(this,a);a?(this.N=this.T(this.J,"onPlaybackRateChange",this.onPlaybackRateChange),J1a(this),H1a(this,this.J.getPlaybackRate())):(this.Pc(this.N),this.N=null)};
g.k.onPlaybackRateChange=function(a){var b=this.J.getPlaybackRate();this.G.includes(b)||I1a(this,b);H1a(this,a)};
g.k.nh=function(a){g.kX.prototype.nh.call(this,a);a===this.j?this.J.setPlaybackRate(this.D,!0):this.J.setPlaybackRate(Number(a),!0);this.Fb.yj()};g.y(L1a,g.kX);g.k=L1a.prototype;g.k.Hj=function(a){g.kX.prototype.Hj.call(this,a)};
g.k.uT=function(a){return a.option.toString()};
g.k.getOption=function(a){return this.settings[a]};
g.k.Dk=function(a){return this.getOption(a).text||""};
g.k.nh=function(a){g.kX.prototype.nh.call(this,a);this.publish("settingChange",this.N,this.settings[a].option)};g.y(qX,g.bW);qX.prototype.kh=function(a){for(var b=g.u(Object.keys(a)),c=b.next();!c.done;c=b.next()){var d=c.value;if(c=this.Ot[d]){var e=a[d].toString();d=!!a[d+"Override"];c.options[e]&&(c.Hj(e),c.D.element.setAttribute("aria-checked",String(!d)),c.j.element.setAttribute("aria-checked",String(d)))}}};
qX.prototype.jk=function(a,b){this.publish("settingChange",a,b)};g.y(rX,g.kX);rX.prototype.j=function(a){return a.languageCode};
rX.prototype.Dk=function(a){return this.languages[a].languageName||""};
rX.prototype.nh=function(a){this.publish("select",a);this.J.logClick(this.element);g.iW(this.Fb)};g.y(O1a,g.kX);g.k=O1a.prototype;g.k.fC=function(a){return g.id(a)?"__off__":a.displayName};
g.k.Dk=function(a){return"__off__"===a?"Kapal\u0131":"__translate__"===a?"Otomatik \u00e7evir":"__contribute__"===a?"Altyaz\u0131 ekle":"__correction__"===a?"Altyaz\u0131 d\u00fczeltmeleri \u00f6ner":("__off__"===a?{}:this.tracks[a]).displayName};
g.k.nh=function(a){if("__translate__"===a)this.j.open();else if("__contribute__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var b=g.LNa(this.J.U(),this.J.getVideoData());g.NG(b)}else if("__correction__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();var c=P1a(this);sX(this,c);g.kX.prototype.nh.call(this,this.fC(c));var d,e;c=null==(b=this.J.getVideoData().getPlayerResponse())?void 0:null==(d=b.captions)?void 0:null==(e=d.playerCaptionsTracklistRenderer)?
void 0:e.openTranscriptCommand;this.J.gb("innertubeCommand",c);this.Fb.yj();this.D&&this.J.logClick(this.D)}else{if("__correction__"===a){this.J.pauseVideo();this.J.isFullscreen()&&this.J.toggleFullscreen();b=P1a(this);sX(this,b);g.kX.prototype.nh.call(this,this.fC(b));var f,h;b=null==(c=this.J.getVideoData().getPlayerResponse())?void 0:null==(f=c.captions)?void 0:null==(h=f.playerCaptionsTracklistRenderer)?void 0:h.openTranscriptCommand;this.J.gb("innertubeCommand",b)}else this.J.logClick(this.element),
sX(this,"__off__"===a?{}:this.tracks[a]),g.kX.prototype.nh.call(this,a);this.Fb.yj()}};
g.k.Sa=function(){var a=this.J.getOptions();a=a&&-1!==a.indexOf("captions");var b=this.J.getVideoData(),c=b&&b.Mu,d,e=!(null==(d=this.J.getVideoData())||!g.CT(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.bc(d,this.fC,this);e=g.Rr(d,this.fC);var m,n;P1a(this)&&(null==(f=b.getPlayerResponse())?0:null==(m=f.captions)?0:null==(n=m.playerCaptionsTracklistRenderer)?
0:n.openTranscriptCommand)&&e.push("__correction__");if(l.length&&!g.id(h)){if((f=h.translationLanguage)&&f.languageName){var p=f.languageName;f=l.findIndex(function(q){return q.languageName===p});
Aaa(l,f)}M1a(this.j,l);e.push("__translate__")}f=this.fC(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.lX(this,e);this.Hj(f);h&&h.translationLanguage?this.j.Hj(this.j.j(h.translationLanguage)):v1a(this.j);a&&this.G.kh(this.J.getSubtitlesUserSettings());this.countLabel.Ld(d&&d.length?" ("+d.length+")":"");this.publish("size-change");this.J.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)};
g.k.U2=function(a){var b=this.J.getOption("captions","track");b=g.md(b);b.translationLanguage=this.j.languages[a];sX(this,b)};
g.k.jk=function(a,b){if("reset"===a)this.J.resetSubtitlesUserSettings();else{var c={};c[a]=b;this.J.updateSubtitlesUserSettings(c)}N1a(this,!0);this.N.start();this.G.kh(this.J.getSubtitlesUserSettings())};
g.k.Uaa=function(a){a||g.ov(this.N)};
g.k.va=function(){g.ov(this.N);g.kX.prototype.va.call(this)};
g.k.open=function(){g.kX.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.y(Q1a,g.hW);g.k=Q1a.prototype;
g.k.initialize=function(){if(!this.isInitialized){var a=this.J.U();this.isInitialized=!0;try{this.sR=new x1a(this.J,this)}catch(c){g.eF(Error("QualityMenuItem creation failed"))}g.O(this,this.sR);var b=new O1a(this.J,this);g.O(this,b);a.C||(b=new jX(this.J,this),g.O(this,b));a.enableSpeedOptions&&(b=new F1a(this.J,this),g.O(this,b));(g.IR(a)||a.K)&&(a.B||a.Wa)&&(b=new w1a(this.J,this),g.O(this,b));a.Ae&&!a.L("web_player_move_autonav_toggle")&&(a=new nX(this.J,this),g.O(this,a));a=new mX(this.J,this);
g.O(this,a);this.J.publish("settingsMenuInitialized");u1a(this.settingsButton,this.Ue.pp())}};
g.k.Rc=function(a){this.initialize();this.Ue.Rc(a);u1a(this.settingsButton,this.Ue.pp())};
g.k.jh=function(a){this.Eb&&1>=this.Ue.pp()&&this.hide();this.Ue.jh(a);u1a(this.settingsButton,this.Ue.pp())};
g.k.od=function(a){this.initialize();0<this.Ue.pp()&&g.hW.prototype.od.call(this,a)};
g.k.Lb=function(){this.pK?this.pK=!1:g.hW.prototype.Lb.call(this)};
g.k.show=function(){g.hW.prototype.show.call(this);g.uv(this.J.getRootNode(),"ytp-settings-shown")};
g.k.hide=function(){g.hW.prototype.hide.call(this);g.wv(this.J.getRootNode(),"ytp-settings-shown")};
g.k.Yf=function(a){this.J.logVisibility(this.element,a);this.J.publish("settingsMenuVisibilityChanged",a)};g.y(g.tX,g.W);g.tX.prototype.onClick=function(){if(S1a(this)&&(this.J.toggleSubtitles(),this.J.logClick(this.element),!this.isEnabled())){var a=!1,b=g.yC(g.xC(),65);g.ZR(this.J.U())&&null!=b&&(a=!b);a&&this.J.U().L("web_player_nitrate_promo_tooltip")&&this.J.publish("showpromotooltip",this.element)}};
g.tX.prototype.j=function(a){var b,c;null==(b=g.QT(this.J))||null==(c=b.tp())||c.od(a)};
g.tX.prototype.isEnabled=function(){return!!this.J.getOption("captions","track").displayName};
g.tX.prototype.Sa=function(){var a=S1a(this),b=300;this.J.U().Z&&(b=480);if(this.J.U().K){this.updateValue("title",g.UT(this.J,"Altyaz\u0131lar","c"));this.update({"data-title-no-tooltip":"Altyaz\u0131lar"});var c=a}else{if(a)null==(c=this.Fa("ytp-subtitles-button-icon"))||c.setAttribute("fill-opacity","1"),this.updateValue("title",g.UT(this.J,"Altyaz\u0131lar","c")),this.update({"data-title-no-tooltip":"Altyaz\u0131lar"});else{var d;null==(d=this.Fa("ytp-subtitles-button-icon"))||d.setAttribute("fill-opacity",
"0.3");this.updateValue("title","Altyaz\u0131lar kullan\u0131lam\u0131yor");this.update({"data-title-no-tooltip":"Altyaz\u0131lar kullan\u0131lam\u0131yor"})}c=!0}this.tooltip.Ph();c=c&&this.J.kb().getPlayerSize().width>=b;g.DF(this,c);this.J.logVisibility(this.element,c);a?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)};g.y(g.vX,g.W);g.k=g.vX.prototype;
g.k.Nc=function(){var a=this.api.kb().getPlayerSize().width,b=this.N;this.api.U().Z&&(b=400);b=a>=b&&(!xX(this)||!g.mG(this.api.Qb(),64));g.DF(this,b);g.yv(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var c=this.api.getCurrentTime(b,!1);this.B&&(c-=a.airingStart);wX(this)&&(c-=this.Db.startTimeMs/1E3);c=g.CG(c);this.C!==c&&(this.updateValue("currenttime",c),this.C=c);b=wX(this)?g.CG((this.Db.endTimeMs-this.Db.startTimeMs)/
1E3):g.CG(this.api.getDuration(b,!1));this.D!==b&&(this.updateValue("duration",b),this.D=b)}a=a.isAtLiveHead;!xX(this)||this.K===a&&this.G===this.isPremiere||(this.K=a,this.G=this.isPremiere,this.Nc(),b=this.liveBadge.element,b.disabled=a,this.liveBadge.Ld(this.isPremiere?"\u0130lk g\u00f6sterim":"Canl\u0131"),a?this.j&&(this.j(),this.j=null,b.removeAttribute("title")):(b.title="Canl\u0131 yay\u0131na atla.",this.j=g.ST(this.tooltip,this.liveBadge.element)));a=this.api.getLoopRange();b=this.Db!==
a;this.Db=a;b&&uX(this)};
g.k.onLoopRangeChange=function(a){var b=this.Db!==a;this.Db=a;b&&(this.Nc(),uX(this))};
g.k.xba=function(){this.api.setLoopRange(null)};
g.k.onVideoDataChange=function(a,b,c){this.updateVideoData((this.api.U().L("enable_topsoil_wta_for_halftime")||this.api.U().L("enable_topsoil_wta_for_halftime_live_infra"))&&2===c?this.api.getVideoData(1):b);this.Nc();uX(this)};
g.k.updateVideoData=function(a){this.pE=a.isLivePlayback&&!a.zb;this.B=DT(a);this.isPremiere=a.isPremiere;g.yv(this.element,"ytp-live",xX(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.va=function(){this.j&&this.j();g.W.prototype.va.call(this)};g.y(U1a,g.W);g.k=U1a.prototype;g.k.Uw=function(){var a=this.api.Ah();this.C!==a&&(this.C=a,T1a(this,this.api.getVolume(),this.api.isMuted()))};
g.k.vT=function(a){g.DF(this,350<=a.width)};
g.k.X2=function(a){if(!a.defaultPrevented){var b=a.keyCode,c=null;37===b?c=this.volume-5:39===b?c=this.volume+5:36===b?c=0:35===b&&(c=100);null!==c&&(c=g.ye(c,0,100),0===c?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(c)),a.preventDefault())}};
g.k.V2=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.api.setVolume(this.volume+(0>b?-10:10)):this.api.setVolume(this.volume+g.ye(b/10,-10,10));a.preventDefault()};
g.k.Zaa=function(){yX(this,this.j,!0,this.B,this.api.xm());this.Y=this.volume;this.api.isMuted()&&this.api.unMute()};
g.k.W2=function(a){var b=this.C?78:52,c=this.C?18:12;a-=g.Is(this.N).x;this.api.setVolume(100*g.ye((a-c/2)/(b-c),0,1))};
g.k.Yaa=function(){yX(this,this.j,!1,this.B,this.api.xm());0===this.volume&&(this.api.mute(),this.api.setVolume(this.Y))};
g.k.onVolumeChange=function(a){T1a(this,a.volume,a.muted)};
g.k.bW=function(){yX(this,this.j,this.isDragging,this.B,this.api.xm())};
g.k.va=function(){g.W.prototype.va.call(this);g.wv(this.K,"ytp-volume-slider-active")};g.y(zX,g.W);
zX.prototype.onVideoDataChange=function(){var a=this.api.U();this.visible=!!this.api.getVideoData().videoId&&!g.ET(this.api.getVideoData(1));g.DF(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.Pc(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.uv(this.element,"no-link"));this.Tb()};
zX.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.DG(a),!1,!0,!0);if(g.IR(b)){var d={};g.IR(b)&&g.KT(this.api,"addEmbedsConversionTrackingParams",[d]);c=g.Mn(c,g.eP(d,"emb_logo"))}g.uU(c,this.api,a);this.api.L("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
zX.prototype.Tb=function(){var a={I:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{I:"path",Cc:!0,S:"ytp-svg-fill",X:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]};
this.api.Yc()&&(a={I:"svg",X:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{I:"path",X:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z",
fill:"#fff"}}]});a.X=Object.assign({},a.X,{"aria-hidden":"true"});this.updateValue("logoSvg",a)};
zX.prototype.Hc=function(a){g.W.prototype.Hc.call(this,a);this.api.logVisibility(this.element,this.visible&&a)};g.y(W1a,g.vK);g.k=W1a.prototype;g.k.Xf=function(){if(this.J.L("web_player_max_seekable_on_ended")||!g.mG(this.J.Qb(),2))this.progressBar.Nc(),this.Ba.Nc()};
g.k.IA=function(){this.SS();this.Gg.B?this.Xf():this.progressBar.Uh()};
g.k.Y2=function(){this.Xf();this.Z.start()};
g.k.SS=function(){var a;if(a=!this.J.U().B){a=this.progressBar;var b=2*a.N*g.YR();a=300>1E3*a.C.getLength()/a.api.getPlaybackRate()/b}a=a&&this.J.Qb().isPlaying()&&!!window.requestAnimationFrame;b=!a;this.Gg.B||(a=b=!1);b?this.ra||(this.ra=this.T(this.J,"progresssync",this.Xf)):this.ra&&(this.Pc(this.ra),this.ra=null);a?this.Z.isActive()||this.Z.start():this.Z.stop()};
g.k.Tb=function(){var a=this.J.Ah(),b=this.J.kb().getPlayerSize(),c=Y1a(this),d=Math.max(b.width-2*c,100);if(this.fb!==b.width||this.bb!==a){this.fb=b.width;this.bb=a;var e=Z1a(this);this.C.element.style.width=e+"px";this.C.element.style.left=c+"px";g.q1a(this.progressBar,c,e,a);this.J.Ne().wT=e}c=this.B;d=Math.min(570*(a?1.5:1),d);a=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-$1a(this))));c.maxWidth=d;c.maxHeight=a;c.MB();this.SS();this.J.U().L("html5_player_dynamic_bottom_gradient")&&Q_a(this.Wa,
b.height)};
g.k.onVideoDataChange=function(){var a=this.J.getVideoData();this.Na.style.background=a.Kf?a.jp:"";this.qa&&X_a(this.qa,a.showSeekingControls);this.Y&&X_a(this.Y,a.showSeekingControls)};
g.k.Ib=function(){return this.C.element};g.y(a2a,LU);g.k=a2a.prototype;g.k.YE=function(a){a.target!==this.dismissButton.element&&(this.onClickCommand&&this.J.gb("innertubeCommand",this.onClickCommand),this.Qt())};
g.k.Qt=function(){this.enabled=!1;this.ra.hide()};
g.k.onVideoDataChange=function(a,b){"dataloaded"===a&&b2a(this);a=[];var c,d,e,f;if(b=null==(f=g.V(null==(c=b.getWatchNextResponse())?void 0:null==(d=c.playerOverlays)?void 0:null==(e=d.playerOverlayRenderer)?void 0:e.suggestedActionsRenderer,Rlb))?void 0:f.suggestedActions)for(c=g.u(b),d=c.next();!d.done;d=c.next())(d=g.V(d.value,Slb))&&g.V(d.trigger,Qlb)&&a.push(d);if(0!==a.length){c=[];a=g.u(a);for(d=a.next();!d.done;d=a.next())if(d=d.value,e=g.V(d.trigger,Qlb))f=(f=d.title)?g.HF(f):"View Chapters",
b=e.timeRangeStartMillis,e=e.timeRangeEndMillis,null!=b&&null!=e&&d.tapCommand&&(c.push(new g.DJ(b,e,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=d.tapCommand);this.J.lf(c)}};
g.k.zx=function(){return this.enabled};
g.k.Yf=function(){this.enabled?this.Na.start():JU(this);this.Bk()};
g.k.va=function(){b2a(this);LU.prototype.va.call(this)};var p3={},AX=(p3.CHANNEL_NAME="ytp-title-channel-name",p3.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",p3.LINK="ytp-title-link",p3.SESSIONLINK="yt-uix-sessionlink",p3.SUBTEXT="ytp-title-subtext",p3.TEXT="ytp-title-text",p3.TITLE="ytp-title",p3);g.y(BX,g.W);BX.prototype.onClick=function(a){this.api.logClick(this.element);var b=this.api.U(),c=this.api.getVideoUrl(!g.DG(a),!1,!0);g.IR(b)&&(b={},g.KT(this.api,"addEmbedsConversionTrackingParams",[b]),c=g.Mn(c,g.eP(b,"emb_title")));g.uU(c,this.api,a)};
BX.prototype.Sa=function(){var a=this.api.getVideoData(),b=this.api.U();this.updateValue("title",a.title);var c={I:"a",S:AX.CHANNEL_NAME,X:{href:"{{channelLink}}",target:"_blank"},xa:"{{channelName}}"};this.api.U().C&&(c={I:"span",S:AX.CHANNEL_NAME,xa:"{{channelName}}",X:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",c);c2a(this);2===this.api.getPresentingPlayerType()&&(c=this.api.getVideoData(),c.videoId&&c.isListed&&c.author&&c.Dc&&c.profilePicture?(this.updateValue("channelLink",
c.Dc),this.updateValue("channelName",c.author),this.updateValue("channelTitleFocusable","0")):c2a(this));c=b.externalFullscreen||!this.api.isFullscreen()&&b.fl;g.yv(this.link,AX.FULLERSCREEN_LINK,c);b.qa||!a.videoId||c||g.ET(a)||b.C?this.j&&(this.updateValue("url",null),this.Pc(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.IR(b)?a.expandedTitle:
a.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.y(g.CX,g.W);g.k=g.CX.prototype;g.k.setEnabled=function(a){if(null!=this.type)if(a)switch(this.type){case 3:case 2:e2a(this);this.K.show();break;default:this.K.show()}else this.K.hide();this.Y=a};
g.k.iL=function(a,b,c,d,e,f,h,l){if(!this.Na||this.env.Z){3===this.type&&this.Uh();1!==this.type&&(g.rv(this.element,"ytp-tooltip ytp-bottom"),(T_a(this.api)||this.api.isInline())&&g.uv(this.element,"ytp-rounded-tooltip"),this.type=1,this.Y&&this.K.show(),this.B&&this.B.dispose(),(this.B=this.api.Vj())&&this.B.subscribe("l",this.HZ,this));if(l){var m=g.Ls(this.bg).height||this.Ba;this.Ra.style.bottom=m+2+"px"}this.update({text:c,title:null!=f?f:"",eduText:null!=l?l:""});g.yv(this.text,"ytp-tooltip-text-no-title",
1===this.type&&!f);this.api.isInline()&&g.uv(this.text,"ytp-modern-tooltip-text");g.yv(this.element,"ytp-text-detail",!!d);c=-1;this.B&&(c=ES(this.B,this.N*this.scale),this.env.L("web_l3_storyboard")&&4===this.B.levels.length&&(c=this.B.levels.length-1),c=uTa(this.B,c,b));g2a(this,c);if(h)switch(b=g.Ls(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"}f2a(this,!!d,a,e)}};
g.k.gP=function(){1===this.type&&this.Uh()};
g.k.oG=function(a,b){if(this.type)if(3===this.type)this.Uh();else return;d2a(this,a,3,b)};
g.k.Ph=function(){this.j&&!this.qa&&this.j.hasAttribute("title")&&(this.C=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.Y&&e2a(this))};
g.k.HZ=function(a,b){a<=this.D&&this.D<=b&&(a=this.D,this.D=NaN,g2a(this,a))};
g.k.c9=function(){sTa(this.B,this.D,this.N*this.scale)};
g.k.Uh=function(){switch(this.type){case 2:var a=this.j;a.removeEventListener("mouseout",this.ra);a.addEventListener("mouseover",this.G);a.removeEventListener("blur",this.ra);a.addEventListener("focus",this.G);h2a(this);break;case 3:h2a(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.HZ,this),this.B=null),this.api.removeEventListener("videoready",this.Ga),this.Da.stop()}this.type=null;this.Y&&this.K.hide()};
g.k.Xl=function(){if(this.j)for(var a=0;a<arguments.length;a++)g.Nf(arguments[a],this.j)&&this.Uh()};
g.k.va=function(){null!=this.type&&this.Uh();this.B&&this.B.dispose();g.W.prototype.va.call(this)};g.y(j2a,g.W);g.k=j2a.prototype;g.k.gC=function(){this.visible=k2a(this);g.DF(this,this.visible);this.icon&&m2a(this,this.icon);this.J.logVisibility(this.element,this.visible&&this.Z)};
g.k.oe=function(){return this.J.getVideoData().videoId};
g.k.onClick=function(){this.J.logClick(this.element);var a=this.J.U(),b=this.oe();a.Ba?i2a(this):l2a(this,b)};
g.k.onReset=function(){this.isRequestPending=this.j=!1;this.Sa(2);this.gC()};
g.k.Sa=function(a,b){var c=this.J.U();m2a(this,a);b?this.update({title:b,image:null}):c.userDisplayName?(a={USER_NAME:c.userDisplayName},this.update({title:this.j?g.KJ("$USER_NAME olarak eklendi",a):g.KJ("Daha sonra $USER_NAME olarak izleyin",a),image:nSa(c)})):this.update({title:"Daha sonra izle",image:null});this.J.Ph()};
g.k.Hc=function(a){g.W.prototype.Hc.call(this,a);this.J.logVisibility(this.element,this.visible&&a)};g.y(g.DX,g.SV);g.k=g.DX.prototype;
g.k.init=function(){var a=this;this.Xd=new g.VV(this.api);this.Ev=new kW(this.api);this.di=new g.W({I:"div",S:"ytp-chrome-top"});this.tooltip=new g.CX(this.api,this);this.channelAvatar=new lZa(this.api);this.title=new BX(this.api);this.Og=new g.AF({I:"div",S:"ytp-chrome-top-buttons"});this.Sg=new eZa(this.api,this.di.element);this.Dg="1"===this.api.U().controlsType?new W1a(this.api,this,this.Gg):null;this.contextMenu=new AZa(this.api,this.Xd);this.yD=new g.W({I:"div",X:{tabindex:"0"}});this.xD=new g.W({I:"div",
X:{tabindex:"0"}});var b=this.api.kb(),c=this.api.U(),d=this.api.getVideoData();this.Yq&&(g.uv(this.api.getRootNode(),"ytp-embed"),g.uv(this.api.getRootNode(),"ytp-embed-playlist"),this.gJ&&(g.uv(this.api.getRootNode(),"ytp-embed-overlays-autohide"),g.uv(this.contextMenu.element,"ytp-embed-overlays-autohide")),this.vN=60,this.wN=89);this.api.U().C&&g.uv(this.api.getRootNode(),"ytp-embed-pfl");this.api.U().B&&(g.uv(this.api.getRootNode(),"ytp-mobile"),this.api.U().Z&&g.uv(this.api.getRootNode(),"ytp-embed-mobile"));
this.ri=d&&d.getEmbeddedPlayerResponse();g.O(this,this.Xd);g.cU(this.api,this.Xd.element,4);g.O(this,this.Ev);g.cU(this.api,this.Ev.element,4);d=new g.W({I:"div",S:"ytp-gradient-top"});g.O(this,d);g.cU(this.api,d.element,1);this.oL=new g.gG(d,250,!0,100);g.O(this,this.oL);g.O(this,this.di);g.cU(this.api,this.di.element,1);this.nL=new g.gG(this.di,250,!0,100);g.O(this,this.nL);g.O(this,this.tooltip);g.cU(this.api,this.tooltip.element,4);var e=new t_a(this.api);g.O(this,e);g.cU(this.api,e.element,5);
e.subscribe("show",function(m){a.pz(e,m)});
this.EG.push(e);this.XA=new wW(this.api,e);g.O(this,this.XA);this.Yq||this.XA.Ja(this.di.element);g.O(this,this.channelAvatar);this.channelAvatar.Ja(this.di.element);g.O(this,this.title);this.title.Ja(this.di.element);this.Yq&&(d=new P_a(this.api),g.O(this,d),d.Ja(this.di.element));g.O(this,this.Og);this.Og.Ja(this.di.element);var f=new D_a(this.api,this);g.O(this,f);g.cU(this.api,f.element,5);f.subscribe("show",function(m){a.pz(f,m)});
this.EG.push(f);this.searchButton=new zW(this.api);g.O(this,this.searchButton);this.searchButton.Ja(this.Og.element);this.Ho=new j2a(this.api);g.O(this,this.Ho);this.Ho.Ja(this.Og.element);this.shareButton=new g.AW(this.api,this,f);g.O(this,this.shareButton);this.shareButton.Ja(this.Og.element);this.jn=new jW(this.api,this);g.O(this,this.jn);this.jn.Ja(this.Og.element);this.Yq&&this.XA.Ja(this.Og.element);g.O(this,this.Sg);this.Sg.Ja(this.Og.element);c.Po&&(d=new FW(this.api),g.O(this,d),g.cU(this.api,
d.element,4));c.C||(d=new fZa(this.api,this.Sg),g.O(this,d),d.Ja(this.Og.element));this.Zh=new p_a(this.api);g.O(this,this.Zh);g.cU(this.api,this.Zh.element,5);this.Zh.subscribe("show",function(){a.pz(a.Zh,a.Zh.Wj())});
this.EG.push(this.Zh);this.overflowButton=new g.vW(this.api,this.Zh);g.O(this,this.overflowButton);this.overflowButton.Ja(this.Og.element);this.Dg&&g.O(this,this.Dg);"3"===c.controlsType&&(d=new yW(this.api),g.O(this,d),g.cU(this.api,d.element,9));g.O(this,this.contextMenu);this.contextMenu.subscribe("show",this.D1,this);d=new HG(this.api,new UV(this.api));g.O(this,d);g.cU(this.api,d.element,4);this.yD.listen("focus",this.k7,this);g.O(this,this.yD);this.xD.listen("focus",this.l7,this);g.O(this,this.xD);
var h;(this.yw=c.Fl?null:new o_a(this.api,b,this.contextMenu,this.Gg,this.Xd,this.Ev,function(){return a.Dq()},null==(h=this.Dg)?void 0:h.progressBar))&&g.O(this,this.yw);
this.Yq||(this.LW=new LZa(this.api),g.O(this,this.LW),g.cU(this.api,this.LW.element,4),this.s0=new I_a(this.api),g.O(this,this.s0),g.cU(this.api,this.s0.element,4));this.H0=new a2a(this.api);g.O(this,this.H0);g.cU(this.api,this.H0.element,4);if(this.Yq){var l=new c_a(this.api,this.api.U().Wa);g.O(this,l);g.cU(this.api,l.element,5);l.subscribe("show",function(m){a.pz(l,m)});
b=new g_a(this.api,l);g.O(this,b);g.cU(this.api,b.element,4)}this.TE.push(this.Xd.element);this.T(this.api,"fullscreentoggled",this.Uw);this.T(this.api,"offlineslatestatechange",function(){a.api.rE()&&IV(a.Gg,128,!1)});
this.T(this.api,"cardstatechange",function(){a.gq()});
this.T(this.api,"resize",this.m$);this.T(this.api,"videoplayerreset",this.onReset);this.T(this.api,"showpromotooltip",this.M$);g.SV.prototype.init.call(this)};
g.k.Ne=function(){return this.tooltip};
g.k.MO=function(){return this.Dg};
g.k.pz=function(a,b){b?this.dD=a:this.dD=null;this.gq()};
g.k.oD=function(a,b){if(b)this.Pt.push(a);else for(b=this.Pt.length;0<=b;b--)if(this.Pt[b]===a){this.Pt.splice(b,1);break}IV(this.Gg,64,0<this.Pt.length)};
g.k.AB=function(){this.api.Hk()&&this.api.Wo();return!!this.dD||n2a(this)||g.SV.prototype.AB.call(this)};
g.k.uB=da(4);g.k.Kr=da(8);g.k.Jr=da(11);g.k.gq=function(){var a=!this.AB(),b=a&&this.api.Hk()&&!g.mG(this.api.Qb(),2)&&!g.ET(this.api.getVideoData())&&!this.api.U().C&&!this.api.Yc(),c=this.Yq&&g.$T(this.api)&&g.mG(this.api.Qb(),128);a||c?(this.nL.show(),this.oL.show()):(this.nL.hide(),this.oL.hide(),this.api.Xl(this.di.element));b?this.Sg.od():this.Sg.Lb();this.Dg&&X1a(this.Dg,this.aR||!a);this.api.L("web_player_hide_overflow_button_if_empty_menu")&&o2a(this);g.SV.prototype.gq.call(this)};
g.k.Wt=function(a,b,c,d,e){a.style.left="";a.style.top="";a.style.bottom="";var f=g.Ls(a),h=d||this.Dg&&g.Nf(this.Dg.Ib(),b),l=d=null;null!=c&&h||(d=g.Ls(b),l=g.Js(b,this.api.getRootNode()),null==c&&(c=l.x+d.width/2));c-=f.width/2;h?(b=this.Dg,d=Y1a(b),l=Z1a(b),h=this.api.kb().getPlayerSize().height,c=g.ye(c,d,d+l-f.width),f=h-$1a(b)-f.height):g.Nf(this.di.element,b)?(b=this.api.kb().getPlayerSize().width,c=g.ye(c,12,b-f.width-12),f=this.Ah()?this.wN:this.vN,"gvn"===this.api.U().playerStyle&&(f+=
20),this.Yq&&(f-=this.Ah()?26:18)):(b=this.api.kb().getPlayerSize(),c=g.ye(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.IA=function(a){a&&(this.api.Xl(this.di.element),this.Dg&&this.api.Xl(this.Dg.Ib()));this.gJ&&(g.yv(this.contextMenu.element,"ytp-autohide",a),g.yv(this.contextMenu.element,"ytp-autohide-active",!0));g.SV.prototype.IA.call(this,a)};
g.k.oQ=function(){g.SV.prototype.oQ.call(this);this.gJ&&(g.yv(this.contextMenu.element,"ytp-autohide-active",!1),this.gJ&&(this.contextMenu.hide(),this.Zh&&this.Zh.hide()))};
g.k.Dn=function(a,b){var c=this.api.kb().getPlayerSize();c=new g.ws(0,0,c.width,c.height);if(a||this.Gg.B&&!this.AB()){if(this.api.U().Rm||b)a=this.Ah()?this.wN:this.vN,c.top+=a,c.height-=a;this.Dg&&(c.height-=$1a(this.Dg))}return c};
g.k.Uw=function(a){var b=this.api.getRootNode();a?b.parentElement?(b.setAttribute("aria-label","Tam Ekranda YouTube Video Oynat\u0131c\u0131s\u0131"),this.api.U().externalFullscreen||(b.parentElement.insertBefore(this.yD.element,b),b.parentElement.insertBefore(this.xD.element,b.nextSibling))):g.dF(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Oynat\u0131c\u0131s\u0131"),this.yD.detach(),this.xD.detach());this.Tb();this.hq()};
g.k.Ah=function(){var a=this.api.U();return this.api.isFullscreen()&&!a.Z||!1};
g.k.showControls=function(a){this.GN=!a;this.gq()};
g.k.Tb=function(){var a=this.Ah();this.tooltip.scale=a?1.5:1;this.contextMenu&&g.yv(this.contextMenu.element,"ytp-big-mode",a);this.gq();this.api.L("web_player_hide_overflow_button_if_empty_menu")||o2a(this);this.hq();var b=this.api.Yc();b&&a?(a=(this.api.kb().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.zs(this.di.element,"padding-left",a+"px"),g.zs(this.di.element,"padding-right",a+"px")):b&&(g.zs(this.di.element,"padding-left",""),g.zs(this.di.element,"padding-right",""));g.SV.prototype.Tb.call(this)};
g.k.xO=function(){if(n2a(this)&&!g.$T(this.api))return!1;var a=this.api.getVideoData();return!g.IR(this.api.U())||2===this.api.getPresentingPlayerType()||!this.ri||((a=this.ri||a.ri)?(a=a.embedPreview)?(a=a.thumbnailPreviewRenderer,a=a.videoDetails&&g.V(a.videoDetails,uUa)||null):a=null:a=null,a&&a.collapsedRenderer&&a.expandedRenderer)?g.SV.prototype.xO.call(this):!1};
g.k.hq=function(){g.SV.prototype.hq.call(this);this.api.logVisibility(this.title.element,!!this.Ln);this.XA&&this.XA.Hc(!!this.Ln);this.channelAvatar.Hc(!!this.Ln);this.overflowButton&&this.overflowButton.Hc(this.Kg()&&!!this.Ln);this.shareButton&&this.shareButton.Hc(!this.Kg()&&!!this.Ln);this.Ho&&this.Ho.Hc(!this.Kg()&&!!this.Ln);this.searchButton&&this.searchButton.Hc(!this.Kg()&&!!this.Ln);this.jn&&this.jn.Hc(!this.Kg()&&!!this.Ln);if(!this.Ln){this.api.Xl(this.di.element);for(var a=0;a<this.EG.length;a++){var b=
this.EG[a];b.Wj()&&b.Lb()}}};
g.k.Ac=function(a){this.Dg&&X1a(this.Dg,this.AB());this.gq();g.SV.prototype.Ac.call(this,a)};
g.k.handleGlobalKeyDown=function(a,b,c,d,e,f,h,l){return this.yw?this.yw.handleGlobalKeyDown(a,b,c,d,e,f,h,l):!1};
g.k.handleGlobalKeyUp=function(a,b,c,d,e,f,h){return this.yw?this.yw.handleGlobalKeyUp(a,b,c,d,e,f,h):!1};
g.k.Dq=function(){if(this.contextMenu.Eb)return this.contextMenu.Lb(),!0;if(this.Pt.length)return this.Pt[this.Pt.length-1].Lb(),!0;if(this.dD)return this.dD.Lb(),!0;this.Dg&&this.api.Xl(this.Dg.Ib());this.Og&&this.api.Xl(this.Og.element);return g.SV.prototype.Dq.call(this)};
g.k.ZR=function(a,b){this.VP=b;this.oD(a,b);this.D1()};
g.k.D1=function(){var a=this.VP||this.contextMenu.Wj();this.eN!==a&&(this.eN=a,this.api.gb("onAutonavPauseRequest",this.eN))};
g.k.k7=function(){p2a(this,this.api.getRootNode(),!0).focus()};
g.k.l7=function(){p2a(this,this.api.getRootNode(),!1).focus()};
g.k.tp=function(){return this.Dg&&this.Dg.B};
g.k.Bu=function(){this.Gg.Bu()};
g.k.fP=function(){this.Xd.hide()};
g.k.nG=function(a){this.Xd.nG(!g.oL(a))};
g.k.OF=function(a,b,c,d){this.Ev.OF(a,b,c,d)};
g.k.NF=function(a,b){GZa(this.Ev,a,b)};
g.k.m$=function(){q2a(this,!0)};
g.k.onReset=function(){o2a(this)};
g.k.M$=function(a){q2a(this,!1,a)};
g.k.XW=function(){return this.contextMenu};
g.k.Jy=function(a){var b;if(null!=(b=this.Dg)){for(var c=Number(a.element.getAttribute("data-priority"))||0,d=0,e=g.u(b.j.element.children),f=e.next();!(f.done||c<(Number(f.value.getAttribute("data-priority"))||0));f=e.next())d++;a.Ja(b.j.element,d)}};
g.k.Iv=function(){var a,b=null==(a=this.Dg)?void 0:a.progressBar;if(b){var c;(null==(c=b.B)?0:c.isEnabled)&&b.Iv()}};g.y(g.EX,g.qV);g.EX.prototype.ll=function(){return!1};
g.EX.prototype.create=function(){var a=this.player.U();g.JG(a)&&a.B?this.chrome=new g.SV(this.player):this.chrome=new g.DX(this.player);g.O(this,this.chrome);this.chrome.init();this.player.Cg("ux")};
g.EX.prototype.xi=function(){return this.chrome};var s2a=!1;g.y(GX,g.I);GX.prototype.C=function(a,b){if(b){b=b instanceof g.zP?b:HX(this,b);var c;(null==(c=this.j.get(a))?void 0:BP(c.location))!==BP(b)&&this.j.set(a,new A2a(b,a))}else this.j.delete(a)};
GX.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=BP(b.location),r=a.B===JX(r);if(r){q.Ia(4);break}return g.z(q,y2a(a,a.B?2:0),5);case 5:if(c=q.B)a.C(0,c),EOa(c)&&a.C(1,DP(c));case 4:g.Ca(q,3);break;case 2:d=g.Da(q);g.eF(d);if(!a.B){q.Ia(3);break}a.B=!1;return g.z(q,a.load(),7);case 7:return q.return();case 3:if(!a.W.experiments.jb("html5_onesie_probe_ec_hosts")){q.Ia(0);break}g.Ba(q,9);e=a;f=e.C;h=3;return g.z(q,
y2a(a,1),11);case 11:return f.call(e,h,q.B),l=a,m=l.C,n=4,g.z(q,y2a(a,2),12);case 12:m.call(l,n,q.B);g.Ca(q,0);break;case 9:p=g.Da(q),g.eF(p),g.Aa(q)}})};
GX.prototype.N=function(){var a=this,b,c;return g.H(function(d){g.mv(a.Z);b=g.YI(a.W.experiments,"html5_onesie_prewarm_max_lact_ms");if(tE()>=b)return d.return();(c=a.j.get(0))&&w2a(a,c);g.Aa(d)})};
var t2a={k2a:0,w5a:1,A3a:2,y5a:3,jva:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};var q3={},d9a=(q3["1h"]=8,q3["9h"]=4,q3["1"]=8,q3["9"]=4,q3["("]=4,q3.h=2,q3.H=2,q3),r3={},e9a=(r3.o=3,r3.O=3,r3.so=3,r3.a=1,r3.ah=1,r3.A=1,r3.m=1,r3.M=1,r3.sa=1,r3.mac3=7,r3.MAC3=7,r3.meac3=5,r3.MEAC3=5,r3),s3={},f9a=(s3.o=0,s3.O=0,s3.a=0,s3.ah=0,s3.A=0,s3.m=1,s3.M=1,s3.mac3=1,s3.MAC3=1,s3.meac3=1,s3.MEAC3=1,s3.so=4,s3.sa=4,s3);var t3={},E2a=(t3["140"]={numChannels:2},t3["141"]={numChannels:2},t3["251"]={audioSampleRate:48E3,numChannels:2},t3["380"]={numChannels:6},t3["328"]={numChannels:6},t3),u3={},B2a=(u3["1"]='video/mp4; codecs="av01.0.08M.08"',u3["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',u3["9"]='video/webm; codecs="vp9"',u3["("]='video/webm; codecs="vp9"',u3["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',u3.h='video/mp4; codecs="avc1.64001e"',u3.H='video/mp4; codecs="avc1.64001e"',u3.o=
'audio/webm; codecs="opus"',u3.a='audio/mp4; codecs="mp4a.40.2"',u3.ah='audio/mp4; codecs="mp4a.40.2"',u3.mac3='audio/mp4; codecs="ac-3"; channels=6',u3.meac3='audio/mp4; codecs="ec-3"; channels=6',u3),v3={},C2a=(v3["337"]={width:3840,height:2160,bitrate:3E7,fps:30},v3["336"]={width:2560,height:1440,bitrate:15E6,fps:30},v3["335"]={width:1920,height:1080,bitrate:75E5,fps:30},v3["702"]={width:7680,height:4320,bitrate:4E7,fps:60},v3["701"]={width:3840,height:2160,bitrate:2E7,fps:60},v3["700"]={width:2560,
height:1440,bitrate:1E7,fps:60},v3["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},v3["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},v3["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},v3["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},v3["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},v3["360"]={width:1920,height:1080,bitrate:5331E3,
fps:30,cryptoblockformat:"subsample"},v3["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},v3["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},v3["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},v3["315"]={width:3840,height:2160,bitrate:2E7,fps:60},v3["308"]={width:2560,height:1440,bitrate:1E7,fps:60},v3["303"]={width:1920,height:1080,bitrate:5E6,fps:60},v3["302"]={width:1280,height:720,bitrate:25E5,
fps:60},v3["299"]={width:1920,height:1080,bitrate:75E5,fps:60},v3["298"]={width:1280,height:720,bitrate:35E5,fps:60},v3["571"]={width:7680,height:4320,bitrate:3E7,fps:60},v3["401"]={width:3840,height:2160,bitrate:15E6,fps:60},v3["400"]={width:2560,height:1440,bitrate:75E5,fps:60},v3["399"]={width:1920,height:1080,bitrate:2E6,fps:60},v3["398"]={width:1280,height:720,bitrate:1E6,fps:60},v3["397"]={width:854,height:480,bitrate:4E5,fps:30},v3["396"]={width:640,height:360,bitrate:25E4,fps:30},v3["313"]=
{width:3840,height:2160,bitrate:8E6,fps:30},v3["271"]={width:2560,height:1440,bitrate:4E6,fps:30},v3["248"]={width:1920,height:1080,bitrate:2E6,fps:30},v3["247"]={width:1280,height:720,bitrate:15E5,fps:30},v3["244"]={width:854,height:480,bitrate:52E4,fps:30},v3["243"]={width:640,height:360,bitrate:28E4,fps:30},v3["137"]={width:1920,height:1080,bitrate:4E6,fps:30},v3["136"]={width:1280,height:720,bitrate:3E6,fps:30},v3["135"]={width:854,height:480,bitrate:1E6,fps:30},v3["385"]={width:1920,height:1080,
bitrate:6503313,fps:60},v3["376"]={width:1280,height:720,bitrate:5706960,fps:60},v3["384"]={width:1280,height:720,bitrate:3660979,fps:60},v3["225"]={width:1280,height:720,bitrate:5805E3,fps:30},v3["224"]={width:1280,height:720,bitrate:453E4,fps:30},v3["145"]={width:1280,height:720,bitrate:2682052,fps:30},v3);var LX,KX,MX=[["337","336","335"],["702","701","700"],["315","308","303","302"],["299","298"]],M2a=[["571","401","400","399","398"],["313","271","248","247"],["137","136"]],N2a=["571 401 400 399 398 397 396".split(" "),"313 271 248 247 781 777 244 243".split(" "),["137","136","135"]],O2a=[["411","410","409"],["360","358","357","274"],["385","376","384"],["225","224","145"]],P2a=["412","359"],Q2a=[["140"],["251"],["380"],["328"]],Ceb="781 780 779 777 776 775 244 243 242".split(" "),w3={},I2a=(w3["398"]=
["397","396","395","394"],w3["247"]=["244","243","242"],w3["136"]=["135","134","133","160"],w3["141"]=["140"],w3["251"]=["250"],w3),x3={},J2a=(x3["135"]=["134","133","160"],x3["243"]=["242"],x3["781"]=["780","779"],x3["777"]=["776","775"],x3["396"]=["395","394"],x3["141"]=["140"],x3["251"]=["250"],x3),y3={},K2a=(y3["274"]=["317","273","318","280","279"],y3["145"]=["144","222","223","143","142"],y3["141"]=["149"],y3["140"]=["149"],y3["380"]=["381"],y3["328"]=["329"],y3),z3={},G2a=(z3["133"]=240,z3["134"]=
360,z3["135"]=480,z3["136"]=720,z3["137"]=1080,z3["242"]=240,z3["243"]=360,z3["244"]=480,z3["247"]=720,z3["248"]=1080,z3["298"]=720,z3["299"]=1080,z3["302"]=720,z3["303"]=1080,z3["395"]=240,z3["396"]=360,z3["397"]=480,z3["398"]=720,z3["399"]=1080,z3);var NX=[],seb=!1;g.W_=Kd(function(){var a="";try{var b=g.yf("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.y(OX,g.I);OX.prototype.K=function(){null!=this.j&&this.app.getVideoData()!==this.j&&MS(this.j)&&bfb(this.app,this.j,void 0,void 0,this.B)};
OX.prototype.G=function(){if(null!=this.j&&this.app.getVideoData()!==this.j&&null!=this.tb&&null!=this.C&&null!=this.D&&MS(this.j)){var a=U2a(this.tb,this.C,this.D);null==a?bfb(this.app,this.j,void 0,void 0,this.B):(this.tb.ma("sgap",a),this.tb.getVideoData().Y&&I0(this.tb,!1))}};
OX.prototype.N=function(a){var b=this.app.Xc();if(b){var c=this.app.getCurrentTime();5<Math.abs(c-a.end/1E3)&&b.ma("glrs",{cmt:c});b.seekTo(0,{seekSource:58});b.ma("glrre",{cmt:c})}};
OX.prototype.va=function(){this.j=null;g.I.prototype.va.call(this)};g.y(g.PX,gL);g.k=g.PX.prototype;g.k.isView=function(){return!0};
g.k.FR=function(){var a=this.mediaElement.getCurrentTime();if(a<this.start)try{var b=this.mediaElement.Rh(),c=RK(b,a);return!(this.start<c)}catch(d){}return!1};
g.k.Rv=function(){return UK(this.mediaElement.Rv(),this.start,this.end)};
g.k.Rh=function(){return UK(this.mediaElement.Rh(),this.start,this.end)};
g.k.VD=function(){return UK(this.mediaElement.VD(),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.FR()){this.mediaElement.getCurrentTime();try{this.mediaElement.setCurrentTime(this.start)}catch(a){}}return this.mediaElement.play()};
g.k.jc=function(){var a=gL.prototype.jc.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.fH=function(){return this.mediaElement.fH()};
g.k.activate=function(a){this.mediaElement.activate(a)};
g.k.Nq=function(){return this.mediaElement.Nq()};
g.k.playVideo=function(){return this.mediaElement.playVideo()};
g.k.UN=function(){this.mediaElement.UN()};
g.k.RN=function(){this.mediaElement.RN()};
g.k.Wu=function(){return this.mediaElement.Wu()};
g.k.Ib=function(){return this.mediaElement.Ib()};
g.k.Gf=function(){return this.mediaElement.Gf()};
g.k.hH=function(a){this.mediaElement.hH(a)};
g.k.LK=function(){this.mediaElement.LK()};
g.k.getPlaybackRate=function(){return this.mediaElement.getPlaybackRate()};
g.k.setPlaybackRate=function(a){return this.mediaElement.setPlaybackRate(a)};
g.k.Us=function(){return this.mediaElement.Us()};
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.Uf=function(){return this.mediaElement.Uf()};
g.k.isEnded=function(){return this.mediaElement.isEnded()};
g.k.zI=function(){return this.mediaElement.zI()};
g.k.tB=function(a){this.mediaElement.tB(a)};
g.k.gH=function(){return this.mediaElement.gH()};
g.k.load=function(){this.mediaElement.load()};
g.k.pause=function(){this.mediaElement.pause()};
g.k.Fk=function(){return this.mediaElement.Fk()};
g.k.AI=function(){return this.mediaElement.AI()};
g.k.Xg=function(){return this.mediaElement.Xg()};
g.k.wf=function(){return this.mediaElement.wf()};
g.k.getVideoPlaybackQuality=function(){return this.mediaElement.getVideoPlaybackQuality()};
g.k.Vh=function(){return this.mediaElement.Vh()};
g.k.mu=function(){return this.mediaElement.mu()};
g.k.togglePictureInPicture=function(){this.mediaElement.togglePictureInPicture()};
g.k.Ws=function(){return this.mediaElement.Ws()};
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.RC=da(29);g.k.yG=da(31);g.k.zG=da(33);g.k.Vy=da(35);g.k.rD=function(){return this.mediaElement.rD()};
g.k.qs=function(a){this.mediaElement.qs(a)};
g.k.XD=function(a){return this.mediaElement.XD(a)};
g.k.uP=function(){return this.mediaElement.uP()};
g.k.stopVideo=function(){this.mediaElement.stopVideo()};
g.k.YN=function(a){this.mediaElement.YN(a)};
g.k.audioTracks=function(){return this.mediaElement.audioTracks()};
g.k.XR=function(a){this.mediaElement.XR(a)};g.y(X2a,g.I);g.k=X2a.prototype;g.k.getStatus=function(){return this.status};
g.k.dn=function(){var a=this.j.getVideoData(),b=this.B.getVideoData(),c;if((c=a.C)&&!(c=!a.j)){c=a.j;for(var d=!1,e=!1,f=g.u(Object.values(c.j)),h=f.next();!h.done;h=f.next())h=h.value,h.info.audio&&h.index.isLoaded()&&(d=!0),h.info.video&&h.index.isLoaded()&&(e=!0);c.j["0"]&&(e=!0);c=d&&e}if(c)if(this.j.Xe()){f=T2a(this.policy,this.j,this.B,this.Lm);h=Y2a(this);c=h.E6;e=h.qZ;d=h.pW;h=h.oZ;if(!this.N){var l=1E3*this.B.Pi(),m=this.j.Pi();m=1E3*(d-c-m);f&&"in-the-past"===f.msg&&(m=0);a=a.isAd();this.B.IF(l,
m,a);this.N=!0}f?(b="cannot_apply"+f.msg,delete f.msg,this.Bg(b,f)):2===this.status.status?g3a(this):(a=this.j.Nq())&&dL(a)&&(!$K(a)&&g.PB()?this.Bg("mse_closed"):b.j&&tP(b.j)&&a.B&&!a.B.vI()?this.Bg("encr_upgrade"):(b=this.j.Xe(),b.isEnded()?this.Bg("elem_ended"):0>e?this.Bg("next_player_future"):(this.K=d,this.currentVideoDuration=d-c,this.C=sDa(a,c,d,!0),this.D=sDa(a,e,h,!1),a=this.B.getVideoData().clientPlaybackNonce,this.j.ma("gaplessPrep",{cpn:a}),c3a(this.j,this.C,!1,d3a(this)),this.j.setMediaElement(Z2a(b,
c,d,!this.j.getVideoData().isAd())),RX(this,2),g3a(this))))}else this.Bg("no-elem")};
g.k.Rx=function(a){var b=a===f3a(this).hS,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;QK(a.Ke(),d-.01)&&(RX(this,4),c.l0(!1),(1===this.G?this.j:this.B).ma("sbh",{}),b.l0(!0),0!==this.G&&(this.j.getVideoData().nV=!0));a=this.D.B;if(this.D.j.isActive&&a.isActive&&(RX(this,5),0!==this.G)){this.j.ma("sbs",{});var e;if(null!=(e=this.B)&&$S(e.videoData)&&e.videoData.L("html5_gapless_append_early")){var f;null!=(f=e.ya)&&f.rf()}}}};
g.k.KZ=function(){this.zt()&&this.Bg("player-reload-after-handoff")};
g.k.Bg=function(a,b){b=void 0===b?{}:b;if(!this.Ma()&&6!==this.status.status){var c=4<=this.status.status&&"player-reload-after-handoff"!==a;this.status={status:Infinity,error:a};if(this.j&&this.B){var d=this.B.getVideoData().clientPlaybackNonce;this.j.ue(new oK("dai.transitionfailure",Object.assign(b,{cpn:d,transitionTimeMs:this.Lm,msg:a})));I0(this.j,c)}this.eq.reject(a);this.dispose()}};
g.k.zt=function(){return 4<=this.status.status&&6>this.status.status};
g.k.va=function(){e3a(this);this.j.unsubscribe("newelementrequired",this.KZ,this);if(this.C){var a=this.C.B;this.C.j.Sd.unsubscribe("updateend",this.Rx,this);a.Sd.unsubscribe("updateend",this.Rx,this)}g.I.prototype.va.call(this)};
g.k.xT=function(a){g.oG(a,128)&&this.Bg("player-error-event")};g.y(i3a,g.I);g.k=i3a.prototype;g.k.clearQueue=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.D&&this.D.reject("Queue cleared");b&&this.B&&I0(this.B,!1);TX(this,a)};
g.k.Ct=function(){return!this.j};
g.k.uE=function(a){return this.j===a};
g.k.zt=function(){var a;return(null==(a=this.C)?void 0:a.zt())||!1};
g.k.va=function(){TX(this);g.I.prototype.va.call(this)};g.y(r3a,g.wF);g.k=r3a.prototype;g.k.getVisibilityState=function(a,b,c,d,e,f,h){return a?4:n3a()?3:b?2:c?1:d?5:e?7:f?8:h?9:0};
g.k.Hm=function(a){this.fullscreen!==a&&(this.fullscreen=a,this.Yf())};
g.k.setMinimized=function(a){this.B!==a&&(this.B=a,this.Yf())};
g.k.setInline=function(a){this.inline!==a&&(this.inline=a,this.Yf())};
g.k.wB=function(a){this.pictureInPicture!==a&&(this.pictureInPicture=a,this.Yf())};
g.k.setSqueezeback=function(a){this.C!==a&&(this.C=a,this.Yf())};
g.k.Vh=function(){return this.j};
g.k.isFullscreen=function(){return 0!==this.fullscreen};
g.k.yz=function(){return this.fullscreen};
g.k.isMinimized=function(){return this.B};
g.k.isInline=function(){return this.inline};
g.k.isBackground=function(){return n3a()};
g.k.xt=function(){return this.pictureInPicture};
g.k.Xz=function(){return!1};
g.k.eA=function(){return this.C};
g.k.Yf=function(){this.publish("visibilitychange");var a=this.getVisibilityState(this.Vh(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.xt(),this.Xz(),this.eA());a!==this.G&&this.publish("visibilitystatechange");this.G=a};
g.k.va=function(){q3a(this.D);g.wF.prototype.va.call(this)};g.k=s3a.prototype;g.k.LA=function(){this.xhr.status&&(this.status=this.xhr.status);var a=this.xhr.readyState;a===this.xhr.HEADERS_RECEIVED&&this.Cb.Yw();O3a&&this.G.push(a+"."+this.B)};
g.k.onError=function(){this.C=!0;this.onDone()};
g.k.onDone=function(){this.Ma||(this.D=!0,this.Cb.xr())};
g.k.Wv=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.GD=function(){return+this.getResponseHeader("content-length")};
g.k.Bn=function(){return this.B};
g.k.jx=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Qk=function(){return 0<this.j.getLength()};
g.k.yx=function(){var a=this.j;this.j=new JN;return a};
g.k.uK=function(){return this.j};
g.k.abort=function(){this.Ma=!0;this.xhr.abort()};
g.k.EB=function(){return!0};
g.k.GK=function(){return this.C};
g.k.wf=function(){return""};
var O3a=!1;g.YX.prototype.info=function(){};
g.YX.prototype.debug=function(){};
var w3a=new Map;g.y(ZX,g.I);ZX.prototype.Ak=function(){if(!this.Af.length)return[];var a=this.Af;this.Af=[];this.C=g.Ab(a).info;return a};
ZX.prototype.tF=function(){return this.Af};
ZX.prototype.va=function(){g.I.prototype.va.call(this);this.j=null;this.Af.length=0;this.eb.length=0;this.C=null};g.y(aY,g.I);g.k=aY.prototype;g.k.Hq=function(){return Array.from(this.Wc.keys())};
g.k.fu=function(a){a=this.Wc.get(a);var b=a.Af;a.Oy+=b.getLength();a.Af=new JN;return b};
g.k.Jg=function(a){return this.Wc.get(a).Jg};
g.k.hw=function(a){return this.Wc.get(a).hw};
g.k.OA=function(a,b,c){this.Wc.get(a)||D3a(this,a,b);b=this.Wc.get(a);this.manifest?(a=F3a(this,a,c),E3a(this,c.Ap,b,a)):(c.Nn?b.gY=c.Fr:b.QE.push(c),b.RR.push(c))};
g.k.Cn=function(a){var b;return(null==(b=this.Wc.get(a))?void 0:b.eb)||[]};
g.k.EA=function(){for(var a=g.u(this.Wc.values()),b=a.next();!b.done;b=a.next())b=b.value,b.pR&&(b.Xf&&b.Xf(),b.pR=!1)};
g.k.Op=function(a,b){this.logger.debug(function(){return"[onMediaEnd] formatId: "+b});
var c=this.Wc.get(b);if(bY){if(c&&!c.Jg){if(c.sj.get(a))c.sj.get(a).Yz=!0;else{var d;(null==(d=this.mf)?0:d.hd)&&c.sj.set(a,{data:new JN,xH:0,Yz:!0})}c.hw=!0}}else c&&!c.hw&&(c.hw=!0)};
g.k.Ak=function(a){if(bY){var b=this.Wc.get(a);if(b)for(var c=g.u(b.sj),d=c.next();!d.done;d=c.next()){var e=g.u(d.value);d=e.next().value;e=e.next().value;var f=b.rG.get(d);if(sQ(f[0])){if(!e.Yz)continue;var h=f,l=e.data;l.getLength();f=0;var m=[];h=g.u(h);for(var n=h.next();!n.done;n=h.next()){n=n.value;var p=n.B,q=LN(l,f,p);f+=p;m.push(new JQ(n,q))}b.Hw.push.apply(b.Hw,g.qa(m))}else if(!f[0].range||0<e.data.getLength())l=void 0,f=f[0],m=e.xH,h=e.data,f.range||(l=e.Yz),n=h.getLength(),l=new JQ(APa(f,
f.Rb+m,n,l),h),e.xH+=l.info.B,b.Hw.push(l);b.sj.get(d).data=new JN;e.Yz&&b.sj.delete(d)}a=this.Wc.get(a);if(!a)return[];b=a.Hw;a.Hw=[];c=g.u(b);for(d=c.next();!d.done;d=c.next())a.Oy+=d.value.info.B;return b||[]}c=null==(b=this.Wc.get(a))?void 0:b.Zf;if(!c)return[];this.mm(a,c);return c.Ak()};
g.k.Yk=function(a){if(bY)return dY(this,a);var b,c,d;return!!(null==(c=null==(b=this.Wc.get(a))?void 0:b.Zf)?0:null==(d=c.tF())?0:d.length)||dY(this,a)};
g.k.mm=function(a,b){for(;dY(this,a);){var c=this.fu(a);var d=a;d=this.Wc.get(d).Jg&&!B3a(this,d);$X(b,c,d&&C3a(this,a))}};
g.k.va=function(){g.I.prototype.va.call(this);for(var a=g.u(this.Wc.keys()),b=a.next();!b.done;b=a.next())y3a(this,b.value);var c;if(null==(c=this.mf)?0:c.Jd)for(a=g.u(this.Wc.values()),b=a.next();!b.done;b=a.next())b=b.value,b.sj.clear(),b.rG.clear(),b.Hw.length=0,b.eb.length=0,b.RR.length=0,b.QE.length=0;this.Wc.clear()};
var bY=!1;g.y(gY,g.I);g.k=gY.prototype;g.k.enqueue=function(a,b){if(a.D!==this)return!1;if(0===this.segments.length||(void 0===b?0:b))this.j=a;this.segments.push(a);return!0};
g.k.uf=function(){return this.qc||0};
g.k.Ri=function(){return this.C||0};
g.k.removeAll=function(){for(;this.segments.length;){var a=void 0;null==(a=this.segments.pop())||a.dispose()}this.B.clear()};
g.k.va=function(){this.removeAll();g.I.prototype.va.call(this)};
g.y(S3a,g.I);g.k=S3a.prototype;g.k.uf=function(){return this.qc};
g.k.Ri=function(){return this.B};
g.k.getType=function(){return this.type};
g.k.getVideoData=function(){return this.videoData};
g.k.kG=function(a){pUa(a);this.videoData=a};
g.k.va=function(){T3a(this);g.I.prototype.va.call(this)};g.y(g.jY,g.I);g.k=g.jY.prototype;
g.k.onCueRangeEnter=function(a){this.Va.push(a);var b=a.getId(),c=""===b;this.zb.add(a.B);var d=this.G.get(b);if(!c&&(this.oa.ma("sdai",{enterAdCueRange:1}),yT(this.oa.getVideoData())&&(null==d?0:d.cA)))return;if(this.bb&&!this.j)this.bb=!1,!c&&d&&(c=this.oa.getCurrentTime(),nY(this,{me:a,isAd:!0,Zq:!0,Ih:c,adCpn:b},{isAd:!1,Zq:!1,Ih:c}),this.K=d.cpn,this.api.publish("serverstitchedvideochange",d.bd,d.PC),this.oa.ma("sdai",mY("midab",d)),this.Ba=1),this.Da=!1;else if(this.j){if(this.j.Zq)this.oa.ma("sdai",{a_pair_of_same_transition_occurs_enter:1,
acpn:this.j.adCpn,transitionTime:this.j.Ih,cpn:b,currentTime:this.oa.getCurrentTime()}),d=this.oa.getCurrentTime(),a={me:a,isAd:!c,Zq:!0,Ih:d,adCpn:b},b={me:this.j.me,isAd:this.j.isAd,Zq:!1,Ih:d,adCpn:this.j.adCpn},this.j.me&&this.zb.delete(this.j.me.B),nY(this,a,b);else{if(this.j.me===a){this.oa.ma("sdai",{same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.Ih,cpn:b,currentTime:this.oa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===
b){b&&this.oa.ma("sdai",{dchtsc:b});this.j=void 0;return}a={me:a,isAd:!c,Zq:!0,Ih:this.oa.getCurrentTime(),adCpn:b};nY(this,a,this.j)}this.j=void 0;this.Da=!1}else this.j={me:a,isAd:!c,Zq:!0,Ih:this.oa.getCurrentTime(),adCpn:b}};
g.k.onCueRangeExit=function(a){var b=a.getId(),c=""===b,d=this.G.get(b);if(yT(this.oa.getVideoData())&&!c&&d){if(d.cA)return;d.cA=!0;this.D.clear();if(this.W.L("html5_lifa_no_rewatch_ad_sbc"))if(this.oa.nN()){var e=d.qc;this.oa.xR(e/1E3,(e+d.durationMs)/1E3)}else this.oa.ma("lifa",{remove:0})}if(this.zb.has(a.B))if(this.zb.delete(a.B),this.Va=this.Va.filter(function(f){return f!==a}),this.bb&&(this.Da=this.bb=!1,this.oa.ma("sdai",{cref:1})),this.j){if(this.j.Zq){if(this.j.me===a){this.oa.ma("sdai",
{same_cue_range_pair_exit:1,
acpn:this.j.adCpn,transitionTime:this.j.Ih,cpn:b,currentTime:this.oa.getCurrentTime(),cueRangeStartTime:a.start,cueRangeEndTime:a.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.oa.ma("sdai",{dchtsc:b});this.j=void 0;return}b={me:a,isAd:!c,Zq:!1,Ih:this.oa.getCurrentTime(),adCpn:b};nY(this,this.j,b)}else this.oa.ma("sdai",{a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.Ih,upcomingCpn:b,contentCpn:this.oa.getVideoData().clientPlaybackNonce,currentTime:this.oa.getCurrentTime()});
this.j=void 0;this.Da=!1}else this.j={me:a,isAd:!c,Zq:!1,Ih:this.oa.getCurrentTime(),adCpn:b};else this.oa.ma("sdai",{ignore_single_exit:1})};
g.k.seekTo=function(a,b,c,d){a=void 0===a?0:a;b=void 0===b?{}:b;c=void 0===c?!1:c;d=void 0===d?null:d;if(yT(this.oa.getVideoData())&&this.W.L("html5_lifa_ad_removed_ne")&&a<=this.fb/1E3)this.oa.pauseVideo(),this.fb=0,this.Da=!0,N_(this.oa),this.oa.seekTo(a),this.oa.playVideo();else if(this.Da=!0,c)V3a(this,a,b);else{c=this.api.Xc();var e=c===this.rb?this.Gb:null;qY(this,!1);this.pc=a;this.Xb=b;null!=d&&this.Pb.start(d);c&&(this.Gb=e||c.getPlayerState(),$db(c),this.rb=c)}};
g.k.va=function(){qY(this,!1);h4a(this);i4a(this);g.I.prototype.va.call(this)};
g.k.fS=function(a){this.Jd=a;this.oa.ma("sdai",{swebm:a})};
g.k.Ok=function(a,b,c,d){if(c&&b){var e;this.W.L("html5_ssdai_use_media_time")?e=sY(this,d):e=this.D.get(a);e&&(e.locations||(e.locations=new Map),d=Number(b.split(";")[0]),c=new g.zP(c),this.Wa&&this.oa.ma("sdai",{hdlredir:1,itag:b,seg:a,hostport:BP(c)}),e.locations.set(d,c))}};
g.k.MI=function(a,b,c,d,e,f){var h=3===d;e=k4a(this,a,b,d,c,f);if(!e)return uY(this,b,h),e=g.j4a(this,b)?"undec":"ncp",this.oa.ma("sdai",{gvprp:e,mt:a,seg:b,tt:d,itag:c,ce:f}),null;h||this.D.set(b,e);a=e.Tl;var l;d=(null==(l=tY(this,b-1,d))?void 0:l.Hs)||"";""===d&&this.oa.ma("sdai",{eds:1});l=vR(e.ssdaiAdsConfig||"")||void 0;c=this.oa.getVideoData();var m;f=(null==(m=c.B)?void 0:m.containerType)||0;m=c.vC[f];b=e.Bx&&b>=e.Bx?e.Bx:void 0;return{Fm:{lH:a?o4a(this,a):[],yV:l,Hs:d,w0:b,I1:$e(m.split(";")[0]),
J1:m.split(";")[1]||""}}};
g.k.KO=function(a){a:{if(!this.qn){var b=sY(this,a);if(!(yT(this.oa.getVideoData())&&(null==b?0:b.cA)))break a}b=void 0}if(!b)return this.oa.ma("sdai",{gvprp:"ncp",mt:a}),null;a=b.Tl;b=vR(b.ssdaiAdsConfig||"")||void 0;var c=this.oa.getVideoData(),d,e=(null==(d=c.B)?void 0:d.containerType)||0;d=c.vC[e];return{lH:a?o4a(this,a):[],yV:b,I1:$e(d.split(";")[0]),J1:d.split(";")[1]||""}};
g.k.wz=function(a,b,c,d,e,f){var h=Number(c.split(";")[0]);e=3===d;a=k4a(this,a,b,d,c,f);this.Wa&&this.oa.ma("sdai",{gdu:1,seg:b,itag:h,pb:""+!!a});if(!a)return uY(this,b,e),null;a.locations||(a.locations=new Map);if(!a.locations.has(h)){var l,m;f=null==(l=a.videoData.getPlayerResponse())?void 0:null==(m=l.streamingData)?void 0:m.adaptiveFormats;if(!f)return this.oa.ma("sdai",{gdu:"noadpfmts",seg:b,itag:h}),uY(this,b,e),null;l=f.find(function(v){return v.itag===h});
if(!l||!l.url){var n=a.videoData.videoId;a=[];d=g.u(f);for(var p=d.next();!p.done;p=d.next())a.push(p.value.itag);this.oa.ma("sdai",{gdu:"nofmt",seg:b,vid:n,itag:h,fullitag:c,itags:a.join(",")});uY(this,b,e);return null}a.locations.set(h,new g.zP(l.url,!0))}l=a.locations.get(h);if(!l)return this.oa.ma("sdai",{gdu:"nourl",seg:b,itag:h}),uY(this,b,e),null;l=new lQ(l);this.Jd&&(l.get("dvc")?this.oa.ma("sdai",{dvc:l.get("dvc")||""}):l.set("dvc","webm"));var q;(m=null==(q=tY(this,b-1,d))?void 0:q.Hs)&&
l.set("daistate",m);a.Bx&&b>=a.Bx&&l.set("skipsq",""+a.Bx);(m=this.oa.getVideoData().clientPlaybackNonce)&&l.set("cpn",m);q=[];a.Tl&&(q=o4a(this,a.Tl),0<q.length&&l.set("acpns",q.join(",")));e||this.D.set(b,a);e=null;e=l.get("aids");var r;if(((null==(p=e)?void 0:null==(r=p.split(","))?void 0:r.length)||0)!==q.length)if(a.Tl){var t;this.oa.ma("sdai",{acpns_aids_nm:1,ids:q4a(this,a.Tl).join("_"),acpns:q.join("_"),aids:null==(t=e)?void 0:t.replace(/,/g,"_"),cpn:m,trackType:d})}else this.oa.ma("sdai",
{acpns_aids_nm:"noAdBreakId",cpn:m});d=l.Oe();2048<(null==d?void 0:d.length)&&this.oa.ma("sdai",{urltoolong:1,sq:b,itag:h,len:d.length});this.Wa&&(d&&(r=a.cpn,p=a.Tl,s4a(this,r,p),p&&!this.Ae.has(p)&&(r=p4a(this,r,p),t=r4a(this,p),this.oa.ma("sdai",{iofa:r}),this.oa.ma("sdai",{noawnzd:t-r}),this.oa.ma("sdai",{acpns:q.join("."),aids:null==(n=e)?void 0:n.replace(/,/g,".")}),this.Ae.add(p))),this.oa.ma("sdai",{gdu:"v",seg:b,itag:c,ast:a.qc.toFixed(3),alen:a.durationMs.toFixed(3),acpn:a.cpn,avid:a.videoData.videoId}));
return d};
g.k.bG=function(a,b,c){var d=rY(this,a,c);return(d=d?(d.qc+d.durationMs)/1E3:0)&&b>d?(this.nu(a,c,!0),this.oa.seekTo(d),!0):!1};
g.k.nu=function(a,b,c){c=void 0===c?!1:c;if(a=rY(this,a,b)){var d=void 0,e=a.Tl;if(e){this.oa.ma("sdai",{skipadonsq:b,sts:c,abid:e,acpn:a.cpn,avid:a.videoData.videoId});c=this.Y.get(e);if(!c)return;c=g.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,e.Bx=b,e.qc>a.qc&&(d=e)}this.ra=a.cpn;l4a(this);b=this.oa.getCurrentTime();c4a(this,a,d,b,b,!1,!0)}};
g.k.IR=function(){for(var a=g.u(this.Z),b=a.next();!b.done;b=a.next())b.value.Bx=NaN;l4a(this);this.oa.ma("sdai",{rsac:"resetSkipAd",sac:this.ra});this.ra=""};
g.k.HG=da(42);
g.k.RQ=function(a,b,c,d,e,f,h,l,m){m&&(h?this.Za.set(a,{Hs:m,Hy:l}):this.Na.set(a,{Hs:m,Hy:l}));if(h){if(d.length&&e.length)for(this.ra&&this.ra===d[0]&&this.oa.ma("sdai",{skipfail:1,sq:a,acpn:this.ra}),a=b+this.Ys(),h=0;h<d.length;h++)if(m=d[h],l=a,a=l+e[h],m=this.G.get(m))l-=f[h],m.PC=null!=m.PC?Math.min(m.PC,l):l;if(d.length&&e.length)for(b=1E3*(b+this.Ys()),c=0;c<d.length;c++)if(a=d[c],h=1E3*e[c],a===this.oa.getVideoData().clientPlaybackNonce)n4a(this,b,b+h,!1),b+=h;else if(this.ke.has(a)||(this.oa.ma("sdai",
{adCpnFromEmsg:1}),this.ke.add(a)),l=0,c<f.length&&(l=1E3*f[c]),(m=this.B.get(a))&&m.start<=b&&m.end>=b+h)b=m.end;else{var n=!1;m?(b<m.start?m.start=b-l:m.end<b+h&&(m.end=b+h),this.oa.Qh.sync()):(m=b4a(b-l,b+h,a),this.B.set(a,m),this.oa.ma("sdai",{newAdCR:1,cpn:a,startTime:m.start,endTime:m.end}),n=!0);b=m.end;n4a(this,m.start,m.end,!0);if(n)for(this.oa.addCueRange(m),a=this.oa.tD("serverstitchedcuerange",36E5),a=g.u(a),h=a.next();!h.done;h=a.next())this.B.delete(h.value.getId())}else 5!==c&&4!==
c||n4a(this,1E3*(b+this.Ys()),1E3*(b+this.Ys())+5E3,!1)}};
g.k.ID=da(44);g.k.Ys=function(){return this.oa.Ys()};
g.k.IE=function(a){this.oa.ma("timelineerror",{e:a})};
g.k.bE=function(a){this.Ga&&this.qa&&this.La.push(this.qa);a&&this.qa&&this.Sc.push(this.qa);this.qa=null;this.oa.bE(a)};
g.k.OI=function(a){if(this.qn||a.identifier&&this.Re.has(a.identifier))this.Wa&&this.oa.ma("sdai",{startnoad:a.identifier}),lY(this);else if(Ps(this.La,function(c){return c.identifier===a.identifier}))this.oa.ma("sdai",{timedoutcp:1}),this.N.start(0);
else if(Ps(this.Sc,function(c){return c.identifier===a.identifier}))this.oa.ma("sdai",{fetchedcp:1}),lY(this);
else if(this.N.isActive()){var b;this.oa.ma("sdai",{racingcp:(null==(b=this.qa)?void 0:b.identifier)+"_"+a.identifier})}else this.hd=(new Date).getTime()/1E3,this.Wa&&this.oa.ma("sdai",{adf:1}),(b=5E3,"predictStart"===a.event)&&(b-=a.j),this.Jb=Math.max(b,15E3),this.Ga=!1,this.N.start(this.Jb),this.qa=a,this.Na.clear(),this.Za.clear(),this.Ra.clear(),this.Hb=[]};
g.k.gt=function(a,b){if(!rY(this,a,b)||this.qn)return!1;this.qn=!0;0<this.Ba&&(this.Ba=0,this.K="",this.api.publish("serverstitchedvideochange"));this.oa.YH({reason:"disablessdai",sq:b});return!0};
g.k.Uv=function(){this.oa.ma("sdai",{rstdaist:1});this.Na.clear();this.Za.clear();this.Ra.clear()};
g.k.Ut=function(a){this.Re.add(a);var b;(null==(b=this.qa)?void 0:b.identifier)===a&&lY(this)};
g.k.oO=function(){return this.Ba};
g.k.rO=function(){return this.K};
g.k.Rt=function(a){var b=EV(this.api.yb());return b?b.Rt(a):!1};
g.k.TN=function(a){return this.qn?!1:!!sY(this,a)};
g.k.rS=function(){this.oa.pauseVideo();var a=this.oa.getCurrentTime(),b=pY(this,a,1);if(b.hn)return b.hn.cA=!0,this.D.clear(),N_(this.oa),this.oa.seekTo(a),this.oa.playVideo(),!0;this.oa.ma("sdai",{skipFail:a});return!1};
var $3a=0;g.y(v4a,g.I);g.k=v4a.prototype;
g.k.addPlayerResponseForAssociation=function(a){var b=new g.LS(this.api.U(),a.playerVars);b.zD=!0;if(a=a.RH)b.RH=a,b.clientPlaybackNonce=a.cpn;a=b.clientPlaybackNonce;this.api.ma("ssap",{aprfa:a+"_"+b.videoId});if(a){this.iz.set(a,b);var c=this.timeline.B.get(a);if(null==c?0:c.length){c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,b.qj=d.uf(),d.kG(b)}if(!qcb(this.oa.lc(b.videoId))){var e;this.api.ma("ssap",{nlc:a,nlcc:null==(e=this.timeline.j)?void 0:e.videoData.clientPlaybackNonce})}this.oa.PD().PH(a,b,
2)}};
g.k.dF=function(){this.Z=!0};
g.k.finishSegmentByCpn=function(a,b,c){c=void 0===c?3:c;this.jS&&this.Jv&&a===this.Jv&&(this.api.ma("ssap",{reloadp:this.Jv}),N_(this.oa),this.Jv="",this.UW=!0);if(this.bf===b)return[];this.api.U().uc()&&this.api.ma("ssap",{fsbc:a+";"+b,fsbcr:this.Z?5:c,fsbct:this.api.getCurrentTime().toFixed()});this.j=b;var d=!1;if(this.ek.has(a)&&(d=t4a(this,c),!d))return[a];var e=this.timeline.B.get(b);if(e){e.sort(function(l,m){return l.uf()-m.uf()});
var f=g.u(e);for(e=f.next();!e.done;e=f.next()){e=e.value;var h=this.oa.getCurrentTime();this.api.L("html5_ssap_get_current_time_refactor")&&(h*=1E3);if(e.uf()>=h){this.C.set(a,c);if(c=this.Oj.get(a))this.oa.removeCueRange(c),this.Oj.delete(a);this.K.set(a,(0,g.$C)());if(c=this.Oj.get(b))for(c=c.getId().split(","),c=g.u(c),f=c.next();!f.done;f=c.next())f=f.value,f!==b&&this.ek.has(f)&&(this.ek.delete(f),this.qG.add(f));this.oa.seekTo(e.uf()/1E3);(d||this.api.L("html5_ssap_always_resume_after_finish_segment"))&&
this.api.playVideo(1);return[a]}}}return[]};
g.k.gX=function(){var a=this.timeline.j;if(!a)return 0;var b=a.Ri();a=g.u(a.j.values());for(var c=a.next();!c.done;c=a.next()){c=g.u(c.value);for(var d=c.next();!d.done;d=c.next())d=d.value,d.Ri()>b&&(b=d.Ri())}return b/1E3};
g.k.Od=function(){var a=1E3*this.oa.getCurrentTime();return(a=wY(this,a))&&1===a.getType()?a.uf()/1E3:0};
g.k.Zz=function(){var a=this.timeline.B.get(this.bf);return(null==a?0:a.length)?a[0].C:!1};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;var c=y4a(this,this.oa.getCurrentTime());this.oa.seekTo(a+c/1E3,b)};
g.k.onCueRangeEnter=function(a){if(!this.G.has(a.getId())){for(var b=a.getId().split(","),c=0;c<b.length&&this.j&&b[c]!==this.j;){var d=b[c];this.ek.has(d)&&(this.ek.delete(d),this.qG.add(d));c++}if(b.length>c+1)for(d=c+1;d<b.length;d++)this.B.push(b[d]);b=b[c];this.ek.has(b)&&D4a(this,b);this.qG.has(b)||E4a(this,b);b=g.u(this.Oj.values());for(c=b.next();!c.done;c=b.next())c=c.value,c.start<=a.start&&!this.G.has(a.getId())&&this.G.add(c.getId())}};
g.k.oO=function(){return this.N};
g.k.rO=function(){return this.bf};
g.k.va=function(){this.iz.clear();this.ek.clear();this.G.clear();this.C.clear();this.K.clear();this.qG.clear();this.B=[];u4a(this);this.j="";g.pC(this.events);g.I.prototype.va.call(this)};g.y(M4a,g.I);g.k=M4a.prototype;g.k.onCueRangeEnter=function(a){if(this.j===this.api.Xc()){var b=this.K.get(a);b?S4a(this,b.target,b.Lm,a):this.ue("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:a.toString()})}else if(b=this.B.find(function(e){return e.Ks.me===a})){var c=b.Ks,d=c.target;
c=c.Lm;d?S4a(this,d,c,a):R4a(this,b.Yd,c,a)}};
g.k.onQueuedVideoLoaded=function(){var a=this.N;FY(this);if(a){if(!EY(this,a)){var b=this.api.Xc();this.ue("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:null==b?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+a.playerVars.cpn})}this.api.Xc().addCueRange(a.Ks.me)}};
g.k.seekTo=function(a,b,c,d){a=void 0===a?0:a;b=void 0===b?{}:b;d=void 0===d?null:d;if(void 0===c?0:c)L4a(this,a,b);else{c=this.api.Xc();var e=c===this.D?this.G:null;GY(this,!1);this.qa=a;this.Y=b;null!=d&&this.Z.start(d);c&&(this.G=e||c.getPlayerState(),$db(c),this.D=c)}};
g.k.hk=function(a){g.oG(a,128)&&X4a(this)};
g.k.isManifestless=function(){return VS(this.j.getVideoData())};
g.k.va=function(){GY(this,!1);Z4a(this);g.I.prototype.va.call(this)};
g.k.ue=function(a,b){this.j.ue(new oK(a,b))};
var N4a=0;var $4a="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.y(JY,g.I);g.k=JY.prototype;g.k.get=function(a){HY(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);HY(this);a={key:a,value:b,expire:Infinity};c&&isFinite(c)&&(c*=1E3,a.expire=(0,g.$C)()+c);for(this.data.push(a);this.data.length>this.C;)(c=this.data.shift())&&KY(this,c,!0);IY(this)};
g.k.remove=function(a,b){b=void 0===b?!1:b;var c=this.data.find(function(d){return d.key===a});
c&&(KY(this,c,b),g.Jb(this.data,function(d){return d.key===a}),IY(this))};
g.k.removeAll=function(a){if(a=void 0===a?!1:a)for(var b=g.u(this.data),c=b.next();!c.done;c=b.next())KY(this,c.value,a);this.data=[];IY(this)};
g.k.va=function(){var a=this;g.I.prototype.va.call(this);this.data.forEach(function(b){KY(a,b,!0)});
this.data=[]};g.y(LY,g.I);LY.prototype.sI=function(a){if(a)return this.B.get(a)};
LY.prototype.va=function(){this.j.removeAll();this.B.removeAll();g.I.prototype.va.call(this)};g.y(d5a,g.I);d5a.prototype.va=function(){g.I.prototype.va.call(this);this.j=null;this.B&&this.B.disconnect()};g.tnb=Kd(function(){var a=window.AudioContext||window.webkitAudioContext;try{return new a}catch(b){return b.name}});var A3;A3={};g.MY=(A3.STOP_EVENT_PROPAGATION="html5-stop-propagation",A3.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",A3.IV_DRAWER_OPEN="ytp-iv-drawer-open",A3.MAIN_VIDEO="html5-main-video",A3.VIDEO_CONTAINER="html5-video-container",A3.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",A3.HOUSE_BRAND="house-brand",A3);g.y(h5a,g.W);g.k=h5a.prototype;g.k.qs=function(){g.vv(this.element,g.Ia.apply(0,arguments))};
g.k.Cj=function(){this.zc&&(this.zc.removeEventListener("focus",this.zQ),g.Ff(this.zc),this.zc=null)};
g.k.PN=function(){this.Ma();var a=this.app.U();a.Um||this.qs("tag-pool-enabled");a.K&&this.qs(g.MY.HOUSE_BRAND);"gvn"===a.playerStyle&&(this.qs("ytp-gvn"),this.element.style.backgroundColor="transparent");a.pc&&(this.EN=g.hE("yt-dom-content-change",this.resize,this));this.T(window,"orientationchange",this.resize,this);this.T(window,"resize",this.resize,this)};
g.k.XK=function(a){g.MR(this.app.U());this.ZI=!a;NY(this)};
g.k.resize=function(){if(this.zc){var a=this.Th();if(!a.isEmpty()){var b=!g.Je(a,this.ZA.getSize()),c=m5a(this);b&&(this.ZA.width=a.width,this.ZA.height=a.height);a=this.app.U();(c||b||a.pc)&&this.app.Ua.publish("resize",this.getPlayerSize())}}};
g.k.jt=function(a,b){this.updateVideoData(b)};
g.k.updateVideoData=function(a){if(this.zc){var b=this.app.U();pD&&(this.zc.setAttribute("x-webkit-airplay","allow"),a.title?this.zc.setAttribute("title",a.title):this.zc.removeAttribute("title"));this.zc.setAttribute("controlslist","nodownload");b.Sr&&a.videoId&&(this.zc.poster=a.Yg("default.jpg"))}b=g.iT(a,"yt:bgcolor");this.ez.style.backgroundColor=b?b:"";this.XP=cqa(g.iT(a,"yt:stretch"));this.YP=cqa(g.iT(a,"yt:crop"),!0);g.yv(this.element,"ytp-dni",a.Kf);this.resize()};
g.k.setGlobalCrop=function(a){this.QO=cqa(a,!0);this.resize()};
g.k.setCenterCrop=function(a){this.WV=a;this.resize()};
g.k.Hm=function(){};
g.k.getPlayerSize=function(){var a=this.app.U(),b=this.app.Ua.isFullscreen(),c=a.externalFullscreen&&g.IR(a);if(b&&OB()&&!c)return new g.Ie(window.outerWidth,window.outerHeight);if(b||a.Ro){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.NE&&this.NE.media===a||(this.NE=window.matchMedia(a));var d=this.NE&&this.NE.matches}if(d)return new g.Ie(window.innerWidth,window.innerHeight)}else if(!isNaN(this.wD.width)&&!isNaN(this.wD.height))return this.wD.clone();
return new g.Ie(this.element.clientWidth,this.element.clientHeight)};
g.k.Th=function(){var a=this.app.U().L("enable_desktop_player_underlay"),b=this.getPlayerSize(),c=g.YI(this.app.U().experiments,"player_underlay_min_player_width");return a&&this.mR&&b.width>c?new g.Ie(b.width*g.YI(this.app.U().experiments,"player_underlay_video_width_fraction"),b.height):b};
g.k.getVideoAspectRatio=function(){return isNaN(this.XP)?j5a(this):this.XP};
g.k.getVideoContentRect=function(a){var b=this.Th();a=k5a(this,b,this.getVideoAspectRatio(),a);return new g.ws((b.width-a.width)/2,(b.height-a.height)/2,a.width,a.height)};
g.k.yB=function(a){this.mR=a;this.resize()};
g.k.tE=function(){return this.zK};
g.k.onMutedAutoplayChange=function(){NY(this)};
g.k.setInternalSize=function(a){g.Je(this.wD,a)||(this.wD=a,this.resize())};
g.k.va=function(){this.EN&&g.iE(this.EN);this.Cj();g.W.prototype.va.call(this)};g.k=n5a.prototype;g.k.click=function(a,b){this.elements.has(a);this.j.has(a);var c=g.aF();c&&a.visualElement&&g.tF(c,a.visualElement,b)};
g.k.createClientVe=function(a,b,c,d){var e=this;d=void 0===d?!1:d;this.elements.has(a);this.elements.add(a);c=Ava(c);a.visualElement=c;var f=g.aF(),h=g.$E();f&&h&&(g.AB("combine_ve_grafts")?ZO(XO(),c,h):g.gB(g.mF)(void 0,f,h,c));b.addOnDisposeCallback(function(){e.destroyVe(a)});
d&&this.B.add(a)};
g.k.createServerVe=function(a,b,c){var d=this;c=void 0===c?!1:c;this.elements.has(a);this.elements.add(a);b.addOnDisposeCallback(function(){d.destroyVe(a)});
c&&this.B.add(a)};
g.k.destroyVe=function(a){this.elements.has(a);this.elements.delete(a);this.C.delete(a);this.j.delete(a);this.B.delete(a)};
g.k.mW=function(a,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,YO(XO(),a),o5a(this))};
g.k.setTrackingParams=function(a,b){this.elements.has(a);b&&(a.visualElement=g.ZE(b))};
g.k.hasVe=function(a){return this.elements.has(a)};p5a.prototype.setPlaybackRate=function(a){this.playbackRate=Math.max(1,a)};
p5a.prototype.getPlaybackRate=function(){return this.playbackRate};SY.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=x5a(this,this.videoTrack,a,this.videoTrack.Sb,b);b=x5a(this,this.audioTrack,this.policy.Ie?a:f,e,b);a=Math.max(a,f,b);this.G=!0;this.manifest.isManifestless&&(v5a(this,this.videoTrack,c),v5a(this,this.audioTrack,d));return a};
SY.prototype.Uf=function(){return this.G};
SY.prototype.dS=function(a){this.C=a};
var w5a=2/24;var B5a=0;g.k=bZ.prototype;g.k.Yw=function(){this.fb=this.now();KRa(this.xd,this.fb);this.Cb.Yw()};
g.k.Vt=function(a,b){var c=this.policy.j?(0,g.$C)():0;cZ(this,a,b);10>a-this.D&&this.On()||this.Qu(a,b);this.Cb.Vt(a,b);this.policy.j&&(a=(0,g.$C)()-c,this.Gb+=a,this.rb=Math.max(a,this.rb))};
g.k.Qu=function(a,b){var c=(a-this.D)/1E3,d=b-this.C;this.Is||(MRa(this.xd,c,d),this.mx(c,d));this.D=a;this.C=b};
g.k.xr=function(){this.ra&&C5a(this);this.Cb.xr()};
g.k.wr=function(a){this.ra||(this.ra=this.K-this.Pb+a,this.pc=this.K,this.Dc=this.Z)};
g.k.Wr=function(){var a={rn:this.requestNumber,rt:(this.Z-this.j).toFixed(),lb:this.K,stall:(1E3*this.B).toFixed(),ht:(this.fb-this.j).toFixed(),elt:(this.Y-this.j).toFixed(),elb:this.Na,d:E5a(this)};this.url&&r2a(a,this.url);this.policy.j&&(a.mph=this.rb.toFixed(),a.tph=this.Gb.toFixed());a.ulb=this.Va;a.ult=this.Ga;a.abw=this.Ra;return a};
g.k.now=function(){return(0,g.$C)()};
g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};
var aZ;g.y(dZ,bZ);g.k=dZ.prototype;g.k.Wr=function(){var a=bZ.prototype.Wr.call(this);a.pb=this.sD;a.pt=(1E3*this.La).toFixed();a.se=this.Xb;return a};
g.k.Iq=function(){var a=this.Cb;this.bb||(this.bb=a.Iq?a.Iq():1);return this.bb};
g.k.kJ=function(){return this.Vk?1!==this.Iq():!1};
g.k.jQ=function(a,b,c){if(!this.Jb){this.Jb=!0;if(!this.Is){cZ(this,a,b);this.Qu(a,b);var d=this.Iq();this.Xb=c;2===d?this.Is||(this.Ga?zR(this.xd,this.Ga/1E3,this.Va,.25):zR(this.xd,b/(c||this.Ra),b,.01),BR(this.xd,b,this.B)):1===d&&(c=(a-this.j)/1E3,!(c<=this.policy.B)&&this.policy.B||this.zb||this.policy.D||!this.On()||H5a(this,c,b),this.On()&&BR(this.xd,b,this.B));AR(this.xd,(a-this.j)/1E3||.01,this.C,this.La,this.gp)}this.deactivate()}};
g.k.Qu=function(a,b){var c=(a-this.D)/1E3,d=b-this.C,e=this.Iq();this.isActive?1===e&&((0<d||this.policy.C)&&(.2<c||1024>d)?(this.B+=c,0<d&&.2<c&&H5a(this,.05,d),this.zb=!0):0<d&&(H5a(this,c,d),this.zb=!0)):I5a(this,b)&&(1===e&&(c=(a-this.j)/1E3,this.Vk&&M5a(this,this.now()),this.Hb||this.Is||this.xd.N.Lj(1,c)),this.Y=a,this.Na=b,this.isActive=!0);bZ.prototype.Qu.call(this,a,b)};
g.k.QJ=function(a){if(!this.Is){cZ(this,a,this.K);var b=(a-this.j)/1E3;2!==this.Iq()&&this.On()&&(this.B+=(a-this.D)/1E3,BR(this.xd,this.C,this.B));AR(this.xd,b,this.C,this.La,this.gp,!0);a=(a-this.D)/1E3;MRa(this.xd,a,0);this.mx(a,0)}};
g.k.On=function(){return I5a(this,this.C)};
g.k.oX=function(){this.Vk&&M5a(this,this.now());return this.Da};
g.k.nw=function(){return this.C>this.ZQ&&I5a(this,this.C)};
g.k.GI=function(){return this.Za};
g.k.AR=function(a){a=void 0===a?this.now():a;if(this.Vk){M5a(this,a);if(this.bb?this.kJ():this.G!==this.qa){var b=this.qa;if(a<b){this.Za=this.qa;return}}else b=this.G;b=Math.max(b,this.Da)}else b=this.Da;var c=this.sD-this.C;0>c&&(c=0);c=1E3*(c*this.snapshot.stall+c/this.snapshot.byterate);this.Za=c=this.On()?c+a:c+Math.max(a,b)};
g.k.qI=function(){return this.now()-this.Y};
g.k.EO=function(){return 1E3*(this.C-this.Na)/this.qI()||0};
g.k.pX=function(){return this.Y};eZ.prototype.feed=function(a){KN(this.j,a);this.rf()};
eZ.prototype.rf=function(){if(this.D){if(!this.j.getLength())return;var a=this.j.split(this.C-this.B),b=a.YI;a=a.Km;if(!this.Cb.wr(this.D,b,this.B,this.C))return;this.B+=b.getLength();this.j=a;this.B===this.C&&(this.D=this.C=this.B=void 0)}for(;;){var c=0;a=g.u(N5a(this.j,c));b=a.next().value;c=a.next().value;c=g.u(N5a(this.j,c));a=c.next().value;c=c.next().value;if(0>b||0>a)break;if(!(c+a<=this.j.totalLength)){if(!(this.Cb.wr&&c+1<=this.j.totalLength))break;c=this.j.split(c).Km;this.Cb.wr(b,c,0,
a)&&(this.D=b,this.B=c.getLength(),this.C=a,this.j=new JN([]));break}a=this.j.split(c).Km.split(a);c=a.Km;this.Cb.QA(b,a.YI);this.j=c}};
eZ.prototype.dispose=function(){this.j=new JN};g.k=fZ.prototype;g.k.nO=function(){return 0};
g.k.uI=function(){return null};
g.k.dX=function(){return null};
g.k.Dt=function(){return 1<=this.state};
g.k.isComplete=function(){return 3<=this.state};
g.k.tm=function(){return 5===this.state};
g.k.onStateChange=function(){};
g.k.Bc=function(a){var b=this.state;this.state=a;this.onStateChange(b);this.callback&&this.callback(this,b)};
g.k.EA=function(a){a&&this.state<a?this.Bc(a):this.callback&&this.callback(this,this.state)};
g.k.Ma=function(){return-1===this.state};
g.k.Dd=function(){var a="";this.info.eb.forEach(function(b){a+=b.Dd()+"."});
return a.slice(0,-1)};
g.k.dispose=function(){this.Ma()||(this.info.eb[0].j.C=!1,this.Bc(-1))};
g.k.JO=function(){return 0};
g.k.Mn=function(){return!1};g.k=Q5a.prototype;
g.k.ZF=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w;return g.H(function(A){if(1==A.j){a.status=200;b=a.j.get("docid");c=Te(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 P5a(a.j.get("ck"),a.j.get("civ")));h=a.range;l=Math.floor(h.start/e);m=Math.floor(h.end/e);n=l}if(5!=A.j)return n<=m?g.z(A,nTa(b,c,d,n,f),5):A.Ia(0);p=A.B;if(void 0===p)throw Error("invariant: data is undefined");q=n*e;
r=(n+1)*e;t=Math.max(0,h.start-q);v=Math.min(h.end+1,r)-(t+q);w=new Uint8Array(p.buffer,t,v);a.B.append(w);a.loaded+=v;a.loaded<h.length&&a.Cb.Vt((0,g.$C)(),a.loaded);n++;return A.Ia(2)})};
g.k.getResponseHeader=function(a){return"content-type"===a?this.j.get("type"):""};
g.k.abort=function(){};
g.k.Wv=function(){return!0};
g.k.GD=function(){return this.range.length};
g.k.Bn=function(){return this.loaded};
g.k.jx=function(){return!!this.loaded};
g.k.Qk=function(){return!!this.B.getLength()};
g.k.yx=function(){var a=this.B;this.B=new JN;return a};
g.k.uK=function(){return this.B};
g.k.EB=function(){return!0};
g.k.GK=function(){return!!this.error};
g.k.wf=function(){return this.error};g.k=S5a.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,cra)};
g.k.onDone=function(){this.Ma()||this.Cb.xr()};
g.k.getResponseHeader=function(a){return this.responseHeaders?this.responseHeaders.get(a):null};
g.k.Wv=function(){return!!this.responseHeaders};
g.k.Bn=function(){return this.B};
g.k.GD=function(){return+this.getResponseHeader("content-length")};
g.k.jx=function(){return 200<=this.status&&300>this.status&&!!this.B};
g.k.Qk=function(){return!!this.j.getLength()};
g.k.yx=function(){this.Qk();var a=this.j;this.j=new JN;return a};
g.k.uK=function(){this.Qk();return this.j};
g.k.Ma=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.EB=function(){return!0};
g.k.GK=function(){return this.K};
g.k.wf=function(){return this.errorMessage};g.k=T5a.prototype;g.k.onDone=function(){if(!this.Ma){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(a){}this.j=!0;this.Cb.xr()}};
g.k.LA=function(){2===this.xhr.readyState&&this.Cb.Yw()};
g.k.Xf=function(a){this.Ma||(this.status=this.xhr.status,this.j||(this.B=a.loaded),this.Cb.Vt((0,g.$C)(),a.loaded))};
g.k.Wv=function(){return 2<=this.xhr.readyState};
g.k.getResponseHeader=function(a){try{return this.xhr.getResponseHeader(a)}catch(b){return g.eF(Error("Could not read XHR header "+a)),""}};
g.k.GD=function(){return+this.getResponseHeader("content-length")};
g.k.Bn=function(){return this.B};
g.k.jx=function(){return 200<=this.status&&300>this.status&&this.j&&!!this.B};
g.k.Qk=function(){return this.j&&!!this.response&&!!this.response.byteLength};
g.k.yx=function(){this.Qk();var a=this.response;this.response=void 0;return new JN([new Uint8Array(a)])};
g.k.uK=function(){this.Qk();return new JN([new Uint8Array(this.response)])};
g.k.abort=function(){this.Ma=!0;this.xhr.abort()};
g.k.EB=function(){return!1};
g.k.GK=function(){return!1};
g.k.wf=function(){return""};g.y(hZ,g.I);g.k=hZ.prototype;g.k.oca=function(){if(!this.Ma()){var a=(0,g.$C)(),b=!1;if(this.timing.On()){if(this.G)return;var c=this.timing.GI();this.timing.AR();var d=this.timing.GI();d-c>=.8*this.policy.mj?(this.j++,this.logger.debug(function(){return"Mispredicted by "+(d-c).toFixed(0)}),b=5<=this.j):this.j=0}else{var e=a-this.timing.oX();
0<e&&(this.j+=1);a=LPa(iZ(this),!1)*this.policy.OG;(b=e>1E3*a)&&this.logger.debug(function(){return"Elbow late by "+e.toFixed(3)})}0<this.j&&this.Cb.IX();
b?this.JB(!1):this.B.start()}};
g.k.JB=function(a){this.C=!0;a&&(a=iZ(this),a.C+=1);this.Cb.Gy();this.lastError="net.timeout";jZ(this)};
g.k.canRetry=function(a){var b=iZ(this);a=a?this.policy.Ku:this.policy.Tf;return b.timedOut<this.policy.Nu&&b.j<a};
g.k.Xg=function(){return this.lastError};
g.k.Qv=function(){return this.j};
g.k.dispose=function(){this.B.dispose();g.I.prototype.dispose.call(this)};g.y(UY,fZ);g.k=UY.prototype;g.k.qp=function(){return this.timing.requestNumber};
g.k.Oe=function(){return this.ge.Oe()};
g.k.Jq=function(){var a=X5a(this.Gd);if(this.zl){var b=this.zl,c=b.j.getLength();a.ulen=c;0<c&&(b=VN(b.j,0),a.ubyte=b,1===c&&0===b&&(a.b248180278=!0))}this.zg&&(a.rc=this.policy.fl?this.zg:this.zg.toString());this.policy.Gb&&this.R0&&(a.tr=this.R0);a.itag=this.info.eb[0].j.info.itag;a.ml=""+ +this.info.eb[0].j.gg();a.sq=""+this.info.eb[0].Pa;this.ge&&(a.ifi=""+ +EOa(this.info.resource.C));410!==this.zg&&500!==this.zg&&503!==this.zg||(a.fmt_unav="true");var d;(c=this.errorMessage||(null==(d=this.xhr)?
void 0:d.wf()))&&(a.msg=c);this.vG&&(a.smb="1");this.info.Cp()&&(a.sdai="1");return a};
g.k.YW=function(){return J5a(this.timing)};
g.k.wf=function(){return this.xhr.wf()||""};
g.k.nw=function(){return this.isComplete()||this.timing.nw()};
g.k.Vt=function(){!this.Ma()&&this.xhr&&(this.zg=this.xhr.status,this.policy.No&&this.Zf&&this.mm(!1),this.Yk()?this.EA(2):!this.UX&&this.nw()&&(this.EA(),this.UX=!0))};
g.k.Yw=function(){if(!this.Ma()&&this.xhr){if(!this.Yy&&this.xhr.Wv()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var a=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Yy=((0,g.$C)()-a)/1E3}this.xhr.Wv()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.LC&&!YNa()&&g.sC("yt-player-headers-readable",!0,2592E3);a=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis"));this.zp=a||this.zp;this.Uq=b||this.Uq}};
g.k.xr=function(){var a=this.xhr;if(!this.Ma()&&a){this.zg=a.status;a=this.ZO(a);if(this.policy.Gb){var b;null==(b=this.Nw)||b.stop()}5===a?jZ(this.Gd):this.Bc(a);this.Gd.B.stop()}};
g.k.ZO=function(a){var b=this;s6a(this);if(kZ(this.Gd,this.xhr.status,this.kp?this.timing.Ba||this.uL:this.xhr.jx()))return 5;var c="";if(o6a(this)){var d=a.uK();d.getLength()<=this.policy.Mo&&(c=p6a(this,MN(d)))}if(c)return KPa(iZ(this.Gd)),this.info.Ok(this.ge,c),3;c=a.Bn();if(this.zl){this.mm(!0);s6a(this);if(kZ(this.Gd,this.xhr.status,this.timing.Ba||this.uL))return 5;if(!this.j1){if(this.uL)return KPa(iZ(this.Gd)),3;this.Gd.lastError="net.closed";return 5}}else{if(kZ(this.Gd,this.xhr.status,
this.xhr.jx()))return 5;if((d=this.info.C)&&d!==c||a.GK())return this.Gd.lastError="net.closed",5;this.mm(!0)}d=O5a(this)?a.getResponseHeader("X-Bandwidth-Est"):0;if(a=O5a(this)?a.getResponseHeader("X-Bandwidth-Est3"):0)this.f0=!0,this.policy.zC&&(d=a);W5a(this.Gd,c,d?Number(d):0);this.logger.debug(function(){var e=b.timing;return"Succeeded, rtpd="+(1E3*e.La+e.j-Date.now()).toFixed(0)});
return 4};
g.k.canRetry=function(){this.Ma();var a=this.info.Cp();return this.Gd.canRetry(a)};
g.k.onStateChange=function(){this.isComplete()&&(this.policy.Pm?this.Gy():this.timing.deactivate())};
g.k.JB=function(a){this.Gd.JB(a)};
g.k.IX=function(){this.callback&&this.callback(this,this.state)};
g.k.Qv=function(){return this.Gd.Qv()};
g.k.dispose=function(){fZ.prototype.dispose.call(this);this.Gd.dispose();var a;null==(a=this.Nw)||a.dispose();this.policy.Pm||this.Gy()};
g.k.Gy=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()};
g.k.Mn=function(){return this.info.Mn()};
g.k.Ak=function(){if(!this.tF().length)return[];this.cP=!0;return this.Zf.Ak()};
g.k.Yk=function(){if(1>this.state)return!1;if(this.Zf&&this.Zf.Af.length)return!0;var a;return(null==(a=this.xhr)?0:a.Qk())?!0:!1};
g.k.tF=function(){this.mm(!1);return this.Zf?this.Zf.tF():[]};
g.k.mm=function(a){try{if(a||this.xhr.Wv()&&this.xhr.Qk()&&!o6a(this)&&!this.UA)this.Zf||(this.Zf=new ZX(this.policy,this.info.eb)),this.xhr.Qk()&&(this.zl?this.zl.feed(this.xhr.yx()):$X(this.Zf,this.xhr.yx(),a&&!this.xhr.Qk()))}catch(b){this.zl?n6a(this,b):g.eF(b)}};
g.k.QA=function(a,b){switch(a){case 21:a=b.split(1).Km;q6a(this,a);break;case 22:this.j1=!0;$X(this.Zf,new JN([]),!0);break;case 43:if(a=iO(new cO(b),1))this.info.Ok(this.ge,a),this.uL=!0;break;case 45:b=qXa(new cO(b));a=b.OR;b=b.PR;a&&b&&(this.yH=a/b);break;case 44:this.pB=h6a(new cO(b));var c,d,e;!this.timing.Ba&&4===(null==(c=this.pB)?void 0:c.action)&&(null==(d=this.pB)?0:null==(e=d.V_)?0:e.kp)&&(this.kp=this.pB.V_.kp);break;case 53:this.policy.Gb&&(a=e6a(new cO(b)).Lp)&&(this.Nw||(this.Lp=a,
this.Nw=new g.lv(this.cZ,a,this)),this.Nw.start());break;case 60:this.kA=dXa(new cO(b));break;case 64:this.policy.Ey&&(a=cXa(new cO(b)),this.policy.Tt(a));break;case 58:this.policy.wk&&(a=BXa(new cO(b)))&&(this.cq=a)}};
g.k.wr=function(a,b,c,d){c||this.timing.wr(d);if(21!==a)return!1;if(a=this.policy.No)if(d=b.getLength()+c===d,a*=this.info.eb[0].j.info.sb,!d&&b.getLength()<a)return!1;if(!c){if(1===b.getLength())return!0;b=b.split(1).Km}q6a(this,b);return!0};
g.k.Bn=function(){return this.xhr.Bn()};
g.k.nO=function(){return this.Yy};
g.k.Iq=function(){return this.kJ()?2:1};
g.k.kJ=function(){if(!this.policy.Z.bj||!isNaN(this.info.Zg)&&0<this.info.Zg)return!1;if(!this.xhr.Wv())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.zl)var a=!this.info.C;else this.xhr.GD()?a=!1:(a=this.xhr.getResponseHeader("content-type"),a="audio/mp4"===a||"video/mp4"===a||"video/webm"===a);if(!a)return!1;if(isNaN(this.info.Zg))if(a=this.xhr.getResponseHeader("x-head-seqnum"),!a)this.logger.debug("No x-head-seqnum, cannot tell if head segment.");else if(Number(a)>
this.info.eb[0].Pa)return!1;return!0};
g.k.JO=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0};
g.k.uI=function(){this.xhr&&(this.zp=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.zp};
g.k.dX=function(){this.xhr&&(this.Uq=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.Uq};
g.k.Xg=function(){return this.Gd.Xg()};
g.k.cZ=function(){!this.Ma()&&this.xhr&&(this.R0="heartbeat",this.JB(!1))};nZ.prototype.QA=function(a,b){b.getLength();switch(a){case 20:a=new cO(b);a={Ap:fO(a,1),videoId:iO(a,2),itag:fO(a,3),lmt:fO(a,4),xtags:iO(a,5),qB:fO(a,6),Nn:gO(a,8),Gr:fO(a,9),lnb:fO(a,10),startMs:fO(a,11),durationMs:fO(a,12),Fr:fO(a,14),timeRange:jO(a,15,tXa),Dj:fO(a,16),RJ:fO(a,17),clipId:iO(a,1E3)};this.IQ(a);break;case 21:this.GQ(b,!1);break;case 22:this.Op(b);break;case 31:a=mO(b,pXa);this.KA(a);break;case 52:a=mO(b,f6a);this.MA(a);break;default:this.xQ(a,b)}};
nZ.prototype.IQ=function(){};
nZ.prototype.xQ=function(){};g.y(oZ,bZ);g.k=oZ.prototype;g.k.Qu=function(a,b){var c=(a-this.D)/1E3,d=b-this.C;this.On()?0<d&&(this.qa&&(.2<c||1024>d?(this.B+=c,.2<c&&zR(this.xd,.05,d,.05)):zR(this.xd,c,d,c)),this.Da&&(this.G+=d,this.La+=c)):(this.xd.N.Lj(1,(a-this.j)/1E3),this.Y=a,this.Na=b);bZ.prototype.Qu.call(this,a,b)};
g.k.jQ=function(a,b){cZ(this,a,b);this.Qu(a,b);this.qa&&(a=this.G*this.snapshot.stall+this.G/this.snapshot.byterate,this.On()&&BR(this.xd,this.G,this.B),AR(this.xd,this.La,this.G,a,!1))};
g.k.QJ=function(a){cZ(this,a,this.K);var b=(a-this.D)/1E3;MRa(this.xd,b,0);this.mx(b,0);if(this.qa){var c=this.G*this.snapshot.stall+this.G/this.snapshot.byterate;this.On()&&(this.B+=(a-this.D)/1E3,BR(this.xd,this.G,this.B));AR(this.xd,this.La+b,this.G,c,!1,!0)}};
g.k.mF=function(a){a=a.gN||2147483647;2!==(a&2)&&(this.Da=!1);1===(a&1)&&(this.qa=!0)};
g.k.eF=function(a){a=a.gN||2147483647;2===(a&2)&&(this.Da=!1);1===(a&1)&&(this.qa=!1)};
g.k.pX=function(){return this.Y};
g.k.qI=function(){var a=this.Da?this.now()-this.D:0;return Math.max(1E3*this.La+a,1)};
g.k.EO=function(){return 1E3*this.G/this.qI()};
g.k.On=function(){return 2048<this.C};
g.k.Wr=function(){var a=bZ.prototype.Wr.call(this);a.rbw=this.EO();a.rbe=+this.Da;a.gbe=+this.qa;return a};
g.k.AR=function(){};
g.k.GI=function(){return NaN};
g.k.oX=function(){return this.j+1E3*this.snapshot.delay};g.y(y6a,nZ);g.k=y6a.prototype;
g.k.xQ=function(a,b){b.getLength();switch(a){case 35:this.Pp(b);break;case 44:this.iF(b);break;case 43:this.QQ(b);break;case 53:this.OQ(b);break;case 55:a=new cO(b);(a={timeline:jO(a,1,v6a),yca:jO(a,2,zXa)},a.timeline)&&a.timeline.Q0&&this.Cb.TQ(a.timeline.Q0,a.timeline.Wca,a.yca);break;case 57:this.hF(b);break;case 42:this.AQ(b);break;case 45:this.kF(b);break;case 59:this.gF(b);break;case 51:this.lF(b);break;case 49:this.mF(b);break;case 50:this.eF(b);break;case 47:this.jF(b);break;case 58:this.Bm(b)}};
g.k.lF=function(a){a=new cO(a);a={Epb:lO(a,1,b6a),Dpb:lO(a,2,b6a)};this.Cb.lF(a)};
g.k.gF=function(a){var b=new cO(a);a=kO(b,1);var c=kO(b,2);b=kO(b,3);this.Cb.gF(a,c,b)};
g.k.kF=function(a){a=qXa(new cO(a));this.Cb.kF(a)};
g.k.jF=function(a){a=mO(a,yXa);this.Cb.jF(a)};
g.k.AQ=function(a){a=new cO(a);a={videoId:iO(a,1),formatId:jO(a,2,b6a),endTimeMs:fO(a,3),pnb:fO(a,4),mimeType:iO(a,5),hY:jO(a,6,Y5a),indexRange:jO(a,7,Y5a),fO:jO(a,8,k6a)};this.Cb.AQ(a)};
g.k.hF=function(a){a=zXa(new cO(a));this.Cb.hF(a)};
g.k.Pp=function(a){a=l6a(new cO(a));this.Cb.Pp(a)};
g.k.OQ=function(a){a=e6a(new cO(a));this.Cb.OQ(a)};
g.k.iF=function(a){a=h6a(new cO(a));this.Cb.iF(a)};
g.k.QQ=function(a){a={redirectUrl:iO(new cO(a),1)};this.Cb.QQ(a)};
g.k.GQ=function(a){var b=VN(a,0);if(1!==a.getLength()){a=a.split(1).Km;var c=this.B[b]||null;c&&H3a(this.Cb.Wf,b,c,a)}};
g.k.Op=function(a){a=VN(a,0);var b=this.B[a]||null;b&&this.Cb.Op(a,b)};
g.k.MA=function(a){this.Cb.MA(a)};
g.k.IQ=function(a){var b=a.Ap,c=a.Nn,d=a.qB,e=a.RJ,f=a.Dj,h=a.Gr,l=a.startMs,m=a.durationMs,n=a.timeRange,p=a.Fr,q=a.clipId,r=t6a(a);a=Gmb.has(BK[""+a.itag]);this.B[b]=r;this.Cb.OA(r,a,{Ap:b,Nn:!!c,qB:null!=d?d:-1,Gr:null!=h?h:-1,startMs:null!=l?l:-1,durationMs:null!=m?m:-1,Fr:p,RJ:e,Dj:f,clipId:q,timeRange:n})};
g.k.mF=function(a){a={gN:fO(new cO(a),1)};this.Cb.mF(a)};
g.k.eF=function(a){a={gN:fO(new cO(a),1)};this.Cb.eF(a)};
g.k.KA=function(a){this.Cb.KA(a)};
g.k.Bm=function(a){a=BXa(new cO(a));this.Cb.Bm(a)};g.y(pZ,g.I);g.k=pZ.prototype;g.k.Vt=function(){!this.Ma()&&this.xhr&&(this.mm(),d$a(this.Cb,this))};
g.k.Yw=function(){};
g.k.xr=function(){if(!this.Ma()&&this.xhr){var a=this.ZO();5===a?jZ(this.Gd):this.Bc(a);this.Gd.B.stop();var b;null==(b=this.RF)||b.stop()}};
g.k.ZO=function(){if(kZ(this.Gd,this.xhr.status,this.xhr.jx(),this.info.Bt()))return 5;this.mm();if(this.W_)return 3;W5a(this.Gd,this.xhr.Bn(),0);this.policy.zb&&i$a(this.Cb);return 4};
g.k.mm=function(){var a=this.xhr;if(a.Qk()){a=a.yx();var b=a.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+b});
this.zl.feed(a)}};
g.k.QA=function(a,b){this.zca.QA(a,b)};
g.k.wr=function(a,b,c,d){c||this.He.wr(d);return!1};
g.k.Pp=function(a){this.Cb.Pp(a)};
g.k.OQ=function(a){if(this.policy.enableServerDrivenRequestCancellation){var b;null==(b=this.RF)||b.dispose();this.BR=a;a.s_&&(this.RF=new g.lv(this.bZ,a.s_,this));this.bZ()}};
g.k.bZ=function(){var a;if(null!=(a=this.BR)&&a.items){var b;null==(b=this.RF)||b.start();if(this.He.On()){a=this.He.qI();b=this.He.EO();var c=A6a(this,a);if(!(b>c.KJ||0<c.aQ&&this.info.sO()>c.aQ)){this.CR=(0,g.$C)();var d;null==(d=this.RF)||d.stop();this.policy.zb&&(d=this.Cb,a={uv:Math.round(b*a/1E3),Gx:a},d.policy.zb&&(d.Ba=a,d.Wp++));this.Gd.JB(!1)}}}};
g.k.iF=function(a){this.Cb.iF(a)};
g.k.QQ=function(a){this.W_=!0;this.info.resource.Ok(this.ge,a.redirectUrl)};
g.k.mF=function(a){this.He instanceof oZ&&this.He.mF(a)};
g.k.eF=function(a){this.He instanceof oZ&&this.He.eF(a)};
g.k.TQ=function(a,b,c){this.Cb.TQ(a,b,c,this.qp())};
g.k.AQ=function(a){if(wV(this.policy)){var b=a.formatId,c=t6a({itag:b.itag,lmt:b.lmt,xtags:b.xtags}),d,e,f=new mQ((null==(d=a.hY)?void 0:d.first)||0,(null==(e=a.hY)?void 0:e.zY)||0),h,l;d=new mQ((null==(h=a.indexRange)?void 0:h.first)||0,(null==(l=a.indexRange)?void 0:l.zY)||0);this.manifest.N.get(c)||(c=a.fO||{},c.mimeType=a.mimeType,c.itag=b.itag,c.lastModified=""+(b.lmt||0),c.xtags=b.xtags,a=this.manifest,b=SQ(""),c=RQ(c,null),PQ(a,new NQ(b,c,f,d)))}};
g.k.kF=function(a){this.Cb.kF(a)};
g.k.KA=function(a){this.Cb.KA(a)};
g.k.gF=function(a,b,c){this.Cb.gF(a,b,c)};
g.k.hF=function(a){this.Cb.hF(a)};
g.k.lF=function(a){this.policy.Om&&this.Cb.lF(a)};
g.k.jF=function(a){this.Cb.jF(a,this.qp())};
g.k.Bm=function(a){this.policy.EF&&this.Cb.Bm(a)};
g.k.canRetry=function(){this.Ma();return this.Gd.canRetry(!1)};
g.k.dispose=function(){if(!this.Ma()){g.I.prototype.dispose.call(this);this.Gd.dispose();var a;null==(a=this.RF)||a.dispose();this.Bc(-1);this.Gy()}};
g.k.Bc=function(a){this.state=a;d$a(this.Cb,this)};
g.k.Bt=function(){return this.info.Bt()};
g.k.OA=function(a,b,c){c.clipId&&(this.clipId=c.clipId);this.policy.K&&!b&&(this.il=c.Gr,this.dG=c.startMs);this.Wf.OA(a,b,c);this.Wf.Wc.get(a).OC=!0};
g.k.Op=function(a,b){this.Wf.Op(a,b)};
g.k.MA=function(a){this.requestIdentifier=a};
g.k.Ak=function(a){return this.Wf.Ak(a)};
g.k.Cn=function(a){return this.Wf.Cn(a)};
g.k.Yk=function(a){return this.Wf.Yk(a)};
g.k.Hq=function(){return this.Wf.Hq()};
g.k.Iq=function(){return 1};
g.k.qp=function(){return this.He.requestNumber};
g.k.FO=function(){return this.requestIdentifier};
g.k.WW=function(){return this.clipId};
g.k.Oe=function(){return this.ge.Oe()};
g.k.wZ=function(){this.Gy()};
g.k.Gy=function(){this.He.deactivate();var a;null==(a=this.xhr)||a.abort()};
g.k.isComplete=function(){return 3<=this.state};
g.k.uY=function(){return 3===this.state};
g.k.tm=function(){return 5===this.state};
g.k.vY=function(){return 4===this.state};
g.k.VX=function(){return this.isComplete()};
g.k.Dt=function(){return 1<=this.state};
g.k.Mn=function(){return!1};
g.k.Qv=function(){return 0};
g.k.VW=function(){var a;return null==(a=this.info.data)?void 0:a.kN};
g.k.IX=function(){};
g.k.qX=function(){return l9a(this.info)};
g.k.Xg=function(){return this.Gd.Xg()};
g.k.Jq=function(){var a=X5a(this.Gd);Object.assign(a,m9a(this.info));a.req="sabr";a.rn=this.qp();var b;if(null==(b=this.xhr)?0:b.status)a.rc=this.policy.fl?this.xhr.status:this.xhr.status.toString();var c;(b=null==(c=this.xhr)?void 0:c.wf())&&(a.msg=b);this.CR&&(c=A6a(this,this.CR-this.He.pX()),a.letm=c.Z8,a.mrbps=c.KJ,a.mram=c.aQ);return a};
g.k.sX=function(){return{il:this.il,dG:this.dG,Cp:this.info.Cp()}};B6a.prototype.tick=function(a,b){this.ticks[a]=b?window.performance.timing.navigationStart+b:(0,g.$C)()};g.y(M6a,g.wF);g.k=M6a.prototype;
g.k.KQ=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.Hy);this.N.RQ(a.Pa,a.startTime,this.B,d,e,f,c,l,h)}if(c){if(b&&!this.Ba.has(a.Pa)){c=a.startTime;d=[];for(e=0;e<b.j.length;e++)f=b.j[e],h=c,c=h+b.B[e],d.push({startTime:h,endTime:c,adCpn:f});this.Ba.set(a.Pa,d)}this.policy.ke&&(c=this.ra&&a.Pa===this.ra.Pa+1,this.ra=a,d=this.j&&a.Pa===this.j.Pa+1,d=this.j&&c&&d&&"stop"!==this.j.Ug.event&&"predictStart"!==this.j.Ug.event,e=a.Ug||null,f=this.qa.j.index.Ed()<=
a.Pa,h=this.manifest.isManifestless&&this.policy.Jp,e?(this.j={Ug:e,Pa:a.Pa,eE:!!b},f?rZ(this,e,a.Pa):h&&(c?d?rZ(this,e,a.Pa):"continue"===e.event||"stop"===e.event?R6a(this,a):rZ(this,e,a.Pa):rZ(this,e,a.Pa))):(d&&R6a(this,a),4===this.B&&sZ(this,5,"qend")))}};
g.k.JQ=function(a,b,c){var d=this.qa.j.index.Ed()<=b;this.j={Ug:a,Pa:b,eE:c};d&&rZ(this,a,b)};
g.k.Uv=function(){this.N&&this.N.Uv()};
g.k.ma=function(a,b){this.ya.ma(a,b)};
g.k.Mr=function(a,b){var c=this.qa.j.index.Bi(a),d;if(d=0<=c){var e;d=(null==(e=tY(b.Vc,c,2))?void 0:e.Hs)||""}if(d)return b.nu(a,c),P6a(this.ya,a,a,c),this.ma("sdai",{cmskpad:1,t:a.toFixed(3),sq:c}),!0;this.ma("sdai",{cmskpad:0,t:a.toFixed(3),sq:c});return!1};g.y(wZ,g.I);wZ.prototype.Co=function(a,b,c){c=void 0===c?{}:c;this.policy.gj=eRa(a,c,this.D,void 0===b?!1:b)};U6a.prototype.XJ=function(a){var b=this;if(this.policy.Dy){var c=new Set(a);c.size===this.Da.size&&[].concat(g.qa(c)).every(function(d){return b.Da.has(d)})||(this.ya.ma("lwnmow",{itagDenylist:[].concat(g.qa(a)).join(",")}),this.ya.sx(!!c.size),this.Y=-1,this.Da=c,BZ(this,this.j),this.Ra=!0)}};
U6a.prototype.Co=function(a,b,c){c=void 0===c?{}:c;var d=this.policy.gj;this.G.Co(a,void 0===b?!1:b,c);if(d!==this.policy.gj){BZ(this,this.j);CZ(this);var e,f;d>this.policy.gj&&(null==(e=this.C)?0:EK(e.info))&&(null==(f=this.nextVideo)||!EK(f.info))&&(this.qa=!0)}};l7a.prototype.zO=function(a){var b=IK(a.info.j.info,this.manifest.dc),c=a.info.Pa+this.C,d=1E3*a.info.startTime;if(this.policy.Na)try{d=this.policy.Na?1E3*dQa(a):1E3*a.info.startTime}catch(h){.99<Math.random()&&this.logger&&(d=UN(a.j).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:a.info.Dd(),encodedDataView:g.Gg(d,4)})),d=1E3*a.info.startTime}var e=a.info.clipId;if(this.policy.Na){if(a.info.j.wm())var f=a.info.duration;else-1===a.D&&(a.D=gQa(a)),f=a.D||a.info.duration;f*=1E3}else f=
1E3*a.info.duration;this.policy.Na&&(0>d||0>f)&&this.logger&&(this.logger({missingSegInfo:a.info.Dd(),startTimeMs:d,durationMs:f}),0>d&&(d=1E3*a.info.startTime),0>f&&(f=1E3*a.info.duration));return{formatId:b,Pa:c,startTimeMs:d,clipId:e,P6:f}};
l7a.prototype.aq=function(a){this.timestampOffset=a};w7a.prototype.dispose=function(){this.ra=!0};
w7a.prototype.Ma=function(){return this.ra};
g.y(JZ,Error);var jeb=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]);MZ.prototype.skip=function(a){this.offset+=a};
MZ.prototype.jm=function(){return this.offset};g.k=P7a.prototype;g.k.nX=function(){return this.B};
g.k.ao=function(){return this.B.length?this.B[this.B.length-1]:null};
g.k.Jk=function(){this.B=[];OZ(this);O7a(this)};
g.k.fu=function(){this.Za=this.B.shift().info};
g.k.Cn=function(){return g.Rr(this.B,function(a){return a.info})};
g.k.yh=function(){return!!this.K.info.audio};
g.k.getDuration=function(){return this.K.index.Vs()};g.y(TY,fZ);g.k=TY.prototype;g.k.onStateChange=function(){this.Ma()&&(cY(this.Wf,this.formatId),this.j.dispose())};
g.k.Jq=function(){var a=A3a(this.Wf,this.formatId),b;var c=(null==(b=this.Wf.Wc.get(this.formatId))?void 0:b.bytesReceived)||0;var d;b=(null==(d=this.Wf.Wc.get(this.formatId))?void 0:d.Oy)||0;return{expected:a,received:c,bytesShifted:b,sliceLength:B3a(this.Wf,this.formatId),isAnyMediaEndReceived:this.Wf.hw(this.formatId)}};
g.k.YW=function(){return 0};
g.k.nw=function(){return!0};
g.k.Ak=function(){return this.Wf.Ak(this.formatId)};
g.k.tF=function(){return[]};
g.k.Yk=function(){return this.Wf.Yk(this.formatId)};
g.k.Xg=function(){return this.lastError};
g.k.Qv=function(){return 0};g.k=h8a.prototype;g.k.ao=function(){return this.D.ao()};
g.k.fu=function(a){this.D.fu(a);var b;null!=(b=this.N)&&(b.j=p7a(b,b.md,b.SA,b.j,a),b.B=a);this.sb=Math.max(this.sb,a.info.j.info.sb||0)};
g.k.getDuration=function(){if(this.policy.B){var a=this.ya.Sh();if(a)return yY(a)}return this.j.index.Vs()};
g.k.Jk=function(){VY(this);this.D.Jk()};
g.k.AO=function(){return this.D};
g.k.isRequestPending=function(a){return this.C.length?a===this.C[this.C.length-1].info.eb[0].Pa:!1};
g.k.aq=function(a){var b;null==(b=this.N)||b.aq(a)};g.y(c_,g.I);c_.prototype.AP=function(a,b){if(!a_(a)||!a.j.gg())return!1;var c=this.C.Ra||w8a(a)||b<=this.policy.KB||this.C.qa;this.logger.debug(function(){return"ready to adapt: "+c+", upgrade pending: "+w8a(a)+", health: "+b});
return c};
c_.prototype.Ga=function(){if(!(15<this.ra++)){var a,b,c=(null==(a=this.videoTrack.B)?void 0:a.j)||(null==(b=this.audioTrack.B)?void 0:b.j);if(c){a=Math.ceil(Math.min(1E5,.1*DR(this.schedule)));d_(this,new wQ([new qQ(6,c,new mQ(0,a-1),"goodputProbe",0)]));var d;null==(d=this.N)||d.start()}}};
c_.prototype.gt=function(a){var b=this,c=a.info.eb[0].j,d=a.Xg();if(CP(c.resource.j)){var e=g.Hg(a.wf(),3);this.ya.ma("dldbrerr",{em:e||"none"})}a.Mn()&&FX("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+a.qp(),"gp",function(l){b.ya.ma("pathprobe",l)},function(l){b.ya.handleError(l.errorCode,l.details,l.severity)});
e=a.info.eb[0].Pa;var f=Q6a(this.j,a.info.eb[0].C,e);"net.badstatus"===d&&(this.K+=1);if(a.canRetry()){if(!(a.info.resource.B>=this.policy.Ku&&this.B&&a.info.Cp()&&"net.badstatus"===d&&this.B.gt(f,e))){e=(c.info.video&&1<c.resource.B||410===a.zg||500===a.zg||503===a.zg)&&!(0<yZ(this.C.G).size)&&!CP(c.resource.j);f=a.Jq();var h=c.info.video?this.videoTrack:this.audioTrack;e&&(f.stun="1");this.ya.handleError(d,f);this.Ma()||(e&&(this.logger.debug(function(){return"Stunning format "+c.info.id}),DZ(this.C,
c)),ZZ(h,a),this.ya.rf())}}else h=1,this.B&&a.info.Cp()&&"net.badstatus"===d&&this.B.gt(f,e)&&(h=0),this.manifest.isLive&&"net.badstatus"===a.Xg()&&this.K<=2*this.policy.Tf?(ZQa(this.manifest),this.manifest.Zd||this.manifest.isPremiere?ZY(this.ya,0,{yd:"badStatusWorkaround"}):this.manifest.C?ZY(this.ya,this.manifest.bb,{yd:"badStatusWorkaround",
wq:!0}):C_(this.ya)):this.ya.handleError(d,a.Jq(),h)};
c_.prototype.va=function(){g.I.prototype.va.call(this)};
var J8a=2/24;g.y(h_,g.I);h_.prototype.WJ=function(a,b,c){var d;var e="m"===(null==(d=this.B)?void 0:d.reason)?"m":this.B&&U8a(this,this.B)?this.B.reason:"a";this.ya.WJ(new vZ(a,e,c));g_(this.ya,b,a,!0)};
h_.prototype.Z_=function(a){for(var b=g.u(this.Z),c=b.next();!c.done;c=b.next())if(c=c.value,c.id===a)return this.D=[c],this.K=this.manifest.j[a],this.mf.B&&(this.Y=!0),new vZ(this.K,"m");this.D=[];return null};
h_.prototype.Co=function(a,b,c){c=void 0===c?{}:c;this.j.Co(a,void 0===b?!1:b,c)};var h9a={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};i_.prototype.Bt=function(){return 1===this.requestType};
i_.prototype.sO=function(){var a;return(null==(a=this.Cb)?void 0:a.sO())||0};
i_.prototype.Cp=function(){var a;return!(null==(a=this.data)||!a.Fm)};g.y(j_,g.I);j_.prototype.encrypt=function(a){(0,g.$C)();return q9a(this).encrypt(a,this.iv)};
j_.prototype.decrypt=function(a,b){(0,g.$C)();return q9a(this).decrypt(a,b)};r9a.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.Cm.Td("omd_s");e=new Uint8Array(16);b?c?h=new uR(c,a):h=new tR(a):f=new sR(a);case 2:if(!d.j.length||!d.j[0].isEncrypted){p.Ia(4);break}l=d.j.shift();if(!f){m=h.decrypt(MN(l.buffer),e);p.Ia(5);break}return g.z(p,f.decrypt(MN(l.buffer),e),6);case 6:m=p.B;case 5:n=m;for(var q=0;q<e.length;q++)if(255===e[q])e[q]=0;else{e[q]+=1;break}q=d.Cm;
var r=l.videoId,t=l.Ap,v=l.formatId,w=new JN([n]),A;null==(A=k_(q.jd,r))||H3a(A,t,v,w);p.Ia(2);break;case 4:d.Cm.Td("omd_c"),l_(d),d.B=!1,d.Cm.HQ(),g.Aa(p)}})};
r9a.prototype.enqueue=function(a,b,c,d,e){this.j.push({videoId:a,Ap:b,formatId:c,buffer:d,isEncrypted:e});this.B||l_(this)};var B9a=!!Uint8Array.prototype.copyWithin,m_=[],s9a=[],v9a=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],o_=[],n_=[],p_=[],t9a=[];g.y(D9a,nZ);g.k=D9a.prototype;g.k.HQ=function(){this.jd.HQ()};
g.k.xQ=function(a,b){switch(a){case 10:var c=mO(b,iXa);a=c.Dba;var d=!1;switch(a){case 0:this.D=!c.p_.P8;this.iv=c.p_.iv;break;case 2:break;case 23:var e=this.jd;c=c.x9;e.Td("omp_r");c.videoId&&(e.Xt=c.videoId);e.Xt!==e.videoData.videoId&&(e.videoData.Wda=e.Xt,e.ma("ompp","vid."+e.Xt));e.UP=!0;break;case 24:c=this.jd;c.Td("omp_c");c.UP=!1;c.VF=!1;var f=null==(e=c.Ag)?void 0:e.get(c.Xt);c.notifySubscribers(c.Xt);null!=f&&(f.j=!0);r_(c);break;default:d=!0}this.jd.nm&&this.jd.ma("ombup","id.10;pt."+
a+";len."+b.getLength()+(d?";ignored.1":""));this.C=a;break;case 11:G9a(this,b);break;case 12:this.GQ(b,!0);break;case 37:b=mO(b,aXa);(b.b6||b.XS)&&b.videoId&&this.jd.TW.set(b.videoId,b);break;case 60:this.EQ(b);break;case 64:this.Tt(b);break;case 47:this.L("html5_server_playback_start_policy")&&(b=mO(b,yXa),this.jd.playbackStartPolicy=b);break;case 35:this.Pp(b);break;default:this.jd.nm&&this.jd.ma("ombup","id."+a+";len."+b.getLength()+";ignored.1")}};
g.k.KA=function(a){this.jd.LY=a};
g.k.EQ=function(a){a=mO(a,dXa);this.jd.EQ(a)};
g.k.Tt=function(a){this.L("html5_enable_lawnmower_messaging")&&(a=mO(a,cXa),this.jd.Tt(a))};
g.k.IQ=function(a){var b=a.Ap,c=a.Nn,d=a.qB,e=a.Dj,f=a.Gr,h=a.startMs,l=a.durationMs,m=a.timeRange,n=a.Fr,p=t6a(a),q=Gmb.has(BK[""+a.itag]);c&&this.Td(q?"oais_r":"ovis_r");var r=void 0!==this.j[p];this.jd.nm&&this.jd.ma("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,OX:!1,yh:q,headers:[]});this.j[p].headers.push(a);this.jd.OA(t,p,q,{Ap:b,Nn:!!c,qB:null!=d?d:-1,Gr:null!=f?f:-1,startMs:null!=h?h:-1,durationMs:null!=l?l:-1,Fr:null!=n?n:0,Dj:e,timeRange:m})};
g.k.GQ=function(a,b){var c=VN(a,0);this.jd.nm&&this.jd.ma("ombup","id."+(b?12:21)+";len."+a.getLength()+";hid."+c);if(1!==a.getLength()){a=a.split(1).Km;var d=this.B[c]||null,e=this.G[c]||"";d&&(this.Gh(this.j[d].yh?"oafs_r":"ovfs_r"),this.queue.enqueue(e,c,d,a,b))}};
g.k.Op=function(a){var b=VN(a,0);this.jd.nm&&this.jd.ma("ombup","id.22;len."+a.getLength()+";hid."+b);a=this.B[b]||null;var c=this.G[b]||"";if(a)if(this.L("html5_use_ump_request_slicer")){var d=this.queue;d.j.push({videoId:c,Ap:b,formatId:a,isEncrypted:!1,m7:!0});d.B||l_(d)}else this.jd.Op(c,b,a)};
g.k.MA=function(a){this.jd.MA(a)};
g.k.NQ=function(a,b){var c=this,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C;return g.H(function(F){switch(F.j){case 1:c.jd.NQ();d=MN(a);if(!b){f=d;F.Ia(2);break}return g.z(F,Q9a(c.jd,d,c.iv),3);case 3:f=F.B;case 2:e=f;if(!c.jd.enableCompression){F.Ia(4);break}h=c.jd.U();m=null==(l=performance)?void 0:l.now();return g.z(F,C9a(e,h.Id),5);case 5:e=F.B,c.jd.ma("decompression",{ds:"DecompressionStream"in window,wasm:!!h.Id,rt:(null==(n=performance)?NaN:n.now())-m});case 4:try{p=mO(e,xXa)}catch(G){return q=G instanceof
Error?{name:G.name,message:G.message}:{},q.webcrypto=""+ +!!BN(),q.enc=""+ +c.D,r=new oK("onesie.response.parse",q),F.return(Promise.reject(r))}if(1!==p.e_)return t={st:p.e_,webcrypto:""+ +!!BN(),textencoder:""+ +!!g.Ta.TextEncoder},v=new oK("onesie.response.badproxystatus",t),F.return(Promise.reject(v));if(200!==p.bY)return w={st:p.bY},A=new oK("onesie.response.badstatus",w),F.return(Promise.reject(A));C=g.$N(p.body);return F.return(C)}})};
g.k.Pp=function(a){this.L("html5_consume_onesie_next_request_policy_for_sabr")&&(a=mO(a,l6a),this.jd.Pp(a))};
g.k.Td=function(a){this.jd.Td(a)};
g.k.Gh=function(a){return this.jd.Gh(a)};
g.k.L=function(a){return this.jd.L(a)};g.y(t_,g.I);g.k=t_.prototype;g.k.WW=function(){return""};
g.k.Hq=function(a){var b,c;return(null==(c=null==(b=this.Ag)?void 0:b.get(a))?void 0:c.Hq())||[]};
g.k.Yk=function(a,b){var c;return!(null==(c=k_(this,b))||!c.Yk(a))};
g.k.Ak=function(a,b){var c;return(null==(c=k_(this,b))?void 0:c.Ak(a))||[]};
g.k.Cn=function(a,b){var c;return(null==(c=k_(this,b))?void 0:c.Cn(a))||[]};
g.k.Bc=function(a){this.state=a;this.notifySubscribers()};
g.k.Bt=function(){return!1};
g.k.Td=function(a){this.oa.Td(a)};
g.k.Gh=function(a){return this.oa.Gh(a)};
g.k.wr=function(a,b,c,d){c||this.He.wr(d);return!1};
g.k.QA=function(a,b){this.Cm.QA(a,b)};
g.k.yQ=function(){this.Td("orfb");this.hJ=!0;if(R9a(this)&&this.xhr){var a={rc:this.xhr.status,lb:this.xhr.Bn(),rt:(1E3*J5a(this.He)).toFixed(),shost:g.hn(this.WQ),trigger:"o1"};this.ma("pathprobe",nK(a))}};
g.k.NQ=function(){this.Td("opr_r");this.TX=!0};
g.k.OA=function(a,b,c,d){if(this.Ag){if(!this.Ag.has(a)){var e=new aY(this);this.Ag.set(a,e);g.O(this,e)}var f;null==(f=this.Ag.get(a))||f.OA(b,c,d)}r_(this)};
g.k.EQ=function(a){this.kA=a};
g.k.Tt=function(a){this.W.Tt(a)};
g.k.Pp=function(a){a.videoId&&this.pZ.set(a.videoId,a)};
g.k.HQ=function(){if(this.Ag)for(var a=g.u(this.Ag.keys()),b=a.next();!b.done;b=a.next()){var c=void 0;null==(c=this.Ag.get(b.value))||c.EA()}};
g.k.ma=function(a,b,c){this.oa.ma(a,b,void 0===c?!1:c)};
g.k.Op=function(a,b,c){var d;null==(d=k_(this,a))||d.Op(b,c)};
g.k.MA=function(a){this.N_.set(a.videoId,a)};
g.k.fetch=function(){var a=this,b,c,d,e,f,h,l,m,n,p,q,r,t,v,w,A,C,F,G,L;return g.H(function(M){switch(M.j){case 1:a.logger.debug("Onesie fetch started.");a.JG?a.tN.start():a.pF.start();a.Td("or_i");b=a.W.experiments.jb("html5_onesie_verbose_timing");c={};d=(0,g.$C)();e=function(R){b&&(c[R]=(0,g.$C)()-d)};
e("loc_s");if(f=I9a(a.videoData,a.Mz)){M.Ia(2);break}e("loc_async");h=g.YI(a.W.experiments,"html5_onesie_redirector_timeout_ms");return g.z(M,J9a(a.videoData,a.Mz,h),3);case 3:f=M.B;case 2:if(!f)return a.logger.info("Onesie URL creation failed."),l={url:"0"},m=new oK("onesie.unavailable.hotconfig",l),a.lj(m),M.return(a.eq);a.b0=BP(f);e("loc_e");n=g.gS(a.W,g.xT(a.videoData));if(!n.j){p=n.getValue();M.Ia(4);break}return g.z(M,n.j,5);case 5:p=M.B;case 4:q=p;e("oauth");r=L9a(a.playerRequest,a.W,a.videoData,
q,JX(a.b0));g.Ba(M,6);if(!F9a(a,r)){e("or_s_sync");a.lK=N9a(r,a.oF,a.W,a.oa,a.NN.onesieUstreamerConfig,null==(t=a.videoData.d_)?void 0:t.Go);M.Ia(8);break}e("or_s_async");return g.z(M,P9a(r,a.oF,a.W,a.oa,a.NN.onesieUstreamerConfig,null==(v=a.videoData.d_)?void 0:v.Go),9);case 9:a.lK=M.B;case 8:g.Ca(M,7);break;case 6:return w=g.Da(M),a.logger.info("Failed to create OnesieRequestProto."),a.lj(w),M.return(a.eq);case 7:return e("or_e"),b&&a.ma("oreqvt",c),a.enableCompression=a.lK.qP.VN,a.Td("osor"),A=
$Xa(),C=g.uO(a.lK,lXa),F={method:"POST",body:C,headers:{"Content-Type":"text/plain",Referer:location.origin}},G=a.L("html5_onesie_media_capabilities"),K9a(f,a.videoData,T9a(a),G),a.logger.debug("Starting Onesie network request."),a.nm&&a.ma("ombrs","1"),L=a.oa.U().schedule,a.He=new dZ(a,{xd:L,WN:a.nm,mx:function(R,ea){a.oa.KF(R,ea)},
gp:a.L("html5_disable_variability_reporting_for_onesie")}),f.set("rn",""+a.He.requestNumber),a.WQ=f.Oe(),F5a(a.He,a.WQ),a.Td("or_p"),a.xhr=U5a(new lQ(f),A,a.He,oR,F),a.c_.start(),M.return(a.eq)}})};
g.k.Iq=function(){return this.L("html5_onesie_streaming_bw")?2:1};
g.k.Yw=function(){this.Td("orh_r")};
g.k.Vt=function(){!this.hJ&&this.xhr.Bn()&&this.yQ();if(this.Wz&&!this.JG){var a;null==(a=this.kK)||a.start()}this.mm()};
g.k.xr=function(){this.logger.debug("onXhrDone");this.mm();if(!this.Ma()){var a=s_(this),b=this.xhr;a.rc=b.status;if(b.wf()){var c="onesie.net";a.msg=b.wf()}else 400<=b.status?c="onesie.net.badstatus":b.jx()?this.TX||(c="onesie.response.noplayerresponse"):c=204===b.status?"onesie.net.nocontent":"onesie.net.connect";c?this.lj(new oK(c,a)):(this.Td("or_fs"),this.He.jQ((0,g.$C)(),b.Bn(),0),this.Bc(4),this.nm&&this.ma("rqs",a));this.nm&&this.ma("ombre","ok."+ +!c);this.VF=!1;r_(this);E9a(this.Cm);if(!this.JG){this.pF.stop();
var d;null==(d=this.kK)||d.stop()}var e;if(c=null==(e=this.Mz)?void 0:z2a(e))for(e=0;e<c.length;e++)this.ma("pathprobe",c[e])}};
g.k.VW=function(){};
g.k.wZ=function(){if(this.playerResponse){var a;null==(a=this.xhr)||a.abort()}};
g.k.U=function(){return this.W};
g.k.L=function(a){return this.W.L(a)};
g.k.u9=function(){if(R9a(this)&&this.Mz&&(!this.hJ||this.L("html5_onesie_probe_ec_hosts"))){var a=this.Mz;if(a.W.experiments.jb("html5_onesie_probe_ec_hosts")){var b,c=null==(b=a.j.get(3))?void 0:BP(b.location);c&&IX(a,c,"osc",this);var d;(c=null==(d=a.j.get(4))?void 0:BP(d.location))&&IX(a,c,"ocy",this)}else{var e;(d=null==(e=a.j.get(1))?void 0:BP(e.location))&&IX(a,d,"o2",this);(d=null==(c=a.j.get(2))?void 0:BP(c.location))&&IX(a,d,"o3",this)}}};
g.k.i6=function(){if(!this.Ma()&&!this.isComplete()){if(this.Wz){if(1E3<(0,g.$C)()-this.He.Z){var a;null==(a=this.He)||a.QJ((0,g.$C)());a=s_(this);if(this.W.uc()&&this.xhr instanceof s3a){var b=this.xhr;a.xrs=b.xhr.readyState;a.xpb=b.j.getLength();a.xdc=b.D;O3a&&(a.xrst=b.G.join("_"))}this.lj(new oK("net.timeout",a))}}else 1E4<(0,g.$C)()-this.He.j&&(null==(b=this.He)||b.QJ((0,g.$C)()),this.XO());this.isComplete()||this.tN.start()}};
g.k.XO=function(){this.logger.info("Onesie request timed out");this.VF=!1;if(!r_(this)){var a=s_(this);a.timeout="1";this.lj(new oK("onesie.request",a))}};
g.k.lj=function(a){var b=this;a=qK(a);this.Wz?this.oa.ue(a):(this.eq.reject(a),this.Wz=!0);E9a(this.Cm);this.JG||this.pF.stop();this.Td("or_fe");var c,d;null==(c=this.Mz)||null==(d=z2a(c))||d.forEach(function(e){b.ma("pathprobe",e)});
this.Bc(5);this.dispose()};
g.k.isComplete=function(){return 3<=this.state};
g.k.vY=function(){return 4===this.state};
g.k.VX=function(a){var b,c;return this.isComplete()||!!(null==(b=this.Ag)?0:null==(c=b.get(a))?0:c.j)};
g.k.uY=function(){return!1};
g.k.tm=function(){return 5===this.state};
g.k.notifySubscribers=function(a){for(var b=0;b<this.xG.length;b++)a&&this.xG[b].oe()!==a||d$a(this.xG[b],this)};
g.k.qX=function(){var a,b;return(null==(a=this.lK)?void 0:null==(b=a.zs)?void 0:b.lR)||0};
g.k.va=function(){this.playerResponse="";var a;null==(a=this.xhr)||a.abort();E9a(this.Cm);this.zl.dispose();var b;null==(b=this.kK)||b.dispose();this.Bc(-1);this.xG=[];g.I.prototype.va.call(this)};
g.k.mm=function(){try{var a=this.xhr;102400<a.Bn()&&!this.qY&&(this.Td("or100k"),this.qY=!0);if(a.Qk()){var b=a.yx(),c=b.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+c});
this.nm&&this.ma("ombrss","len."+c);this.zl.feed(b)}if(this.Ag)for(var d=g.u(this.Ag.keys()),e=d.next();!e.done;e=d.next()){var f=e.value;a=void 0;null==(a=this.Ag.get(f))||a.EA();this.notifySubscribers(f)}}catch(h){this.lj(h)}};
g.k.qp=function(){return this.He.requestNumber};
g.k.FO=function(a){return this.N_.get(a)};
g.k.sX=function(){return{il:-1,dG:-1,Cp:!1}};g.y(V9a,g.I);g.k=V9a.prototype;g.k.WF=function(a){this.qa=void 0;i$a(this);f$a(this,a)};
g.k.zP=function(a){return 0===this.j.length?!1:50>Math.abs(this.j[0].qX()-a)};
g.k.gt=function(a){if(a instanceof t_)this.j.pop();else{var b=1;a.canRetry()&&(this.j.pop(),null==a||a.dispose(),b=0);this.ya.handleError(a.Xg(),a.Jq(),b)}};
g.k.Pp=function(a){this.B=a;this.qa=(0,g.$C)()+(a.backoffTimeMs||0)};
g.k.iF=function(a){if(void 0!==a.action&&(0!==a.action||!this.Da)){var b={};b.reason=a.bca;b.action=a.action;switch(a.action){case 1:this.ya.YH(b);break;case 0:this.Da=!0;this.ya.XH(b);break;case 2:this.ya.handleError("sabr.config",b,1)}}};
g.k.TQ=function(a,b,c,d){if(this.policy.B){this.ya.ma("ssap",{rn:d,v:b,tl:k$a(a)});var e=this.ya.Sh();a={As:a,context:c,version:b};this.policy.jj&&g$a(this,c);e?h$a(this,e,a):(this.ya.ma("ssap",{cacheclips:1,rn:d,v:b}),this.K=a)}};
g.k.hF=function(){};
g.k.kF=function(a){if(void 0!==a.OR&&a.PR){var b=a.OR/a.PR;this.audioTrack.Z=!1;this.videoTrack.Z=!1;var c={yd:"sabr_seek",nJ:!0,qS:!0};a.seekSource&&(c.seekSource=a.seekSource);ZY(this.ya,b,c)}};
g.k.KA=function(a){a.WI&&a.XI&&$Qa(this.manifest,a.WI,a.XI)};
g.k.Bm=function(a){this.ya.Bm(a)};
g.k.gF=function(a,b,c){this.policy.j&&this.ya.ma("sabrctxtplc",{start:a?a.join("_"):"",stop:b?b.join("_"):"",discard:c?c.join("_"):""});if(a){a=g.u(a);for(var d=a.next();!d.done;d=a.next())this.pm.add(d.value)}if(b)for(b=g.u(b),a=b.next();!a.done;a=b.next())a=a.value,this.pm.has(a)&&this.pm.delete(a);if(c)for(c=g.u(c),b=c.next();!b.done;b=c.next())b=b.value,this.videoData.sabrContextUpdates.has(b)&&(this.videoData.sabrContextUpdates.delete(b),3===b&&(this.videoData.Dy=""))};
g.k.lF=function(){};
g.k.jF=function(a,b){cYa(this.policy,a,4,b)};
g.k.oe=function(){return this.oa.oe()||""};
g.k.sO=function(){var a=1E3*XZ(this.audioTrack,!0),b=1E3*XZ(this.videoTrack,!0);return Math.min(a,b)};
g.k.Am=function(a,b){this.ya.ma(a,b)};
g.k.SI=function(a){C$a(this.ya,d7a(this.ra,a))};
g.k.va=function(){g.I.prototype.va.call(this);this.B=void 0;f$a(this,!0);this.j=[]};l$a.prototype.rf=function(a,b){if(this.D)return q$a(this,b);if(b=$Y(a)){var c=b.B;c&&c.D&&c.j&&(a=a.C.length?a.C[0]:null)&&2<=a.state&&!a.tm()&&0===a.info.Zg&&(this.D=a,this.N=c,this.B=b.info,this.K=this.startTimeSecs=Date.now()/1E3,this.G=this.B.startTime)}return NaN};
l$a.prototype.clear=function(){this.B=this.N=this.D=null;this.j=this.G=this.K=this.startTimeSecs=NaN;this.C=!1};g.y(g.x_,g.I);g.k=g.x_.prototype;g.k.initialize=function(a,b,c){this.logger.debug(function(){return"Initialized, t="+a});
a=a||0;wV(this.policy)||(b=EZ(this.j),F$a(this.oa,new vZ(b.video,b.reason)),this.oa.Vw(new vZ(b.audio,b.reason)));this.manifest.isManifestless&&Q8a(this.D);this.K&&n$a(this.K,this.videoTrack.j);b=isNaN(this.currentTime)?0:this.currentTime;var d=!this.manifest.isManifestless;this.policy.Fp&&(d=d||this.manifest.Zd);this.currentTime=d?a:b;if(this.policy.C){var e;(null==(e=this.ra)?0:U9a(e,this.oe()||""))&&u$a(this)&&t$a(this,this.videoTrack)&&t$a(this,this.audioTrack)&&j$a(this.qa,this.ra)}else this.Ba&&
(v$a(this,this.videoTrack),v$a(this,this.audioTrack),z3a(this.Ba),delete this.Ba);c?(this.policy.Ae?(this.zb=c,A_(this,c)):A_(this,!1),g.mv(this.KE)):(c=0===this.currentTime,f_(this.D,this.videoTrack,this.videoTrack.j,c),f_(this.D,this.audioTrack,this.audioTrack.j,c),this.policy.C&&Y9a(this.qa,!0),this.seek(this.currentTime,{}).wl(function(){}),this.timing.tick("gv"));
(this.manifest.jf||this.manifest.Ci||this.manifest.bb||this.manifest.Pb||this.manifest.pc)&&this.oa.JF(this.manifest)};
g.k.resume=function(){if(this.isSuspended||this.Dp){this.logger.debug("Resumed.");this.WH=this.Dp=this.isSuspended=!1;try{this.rf()}catch(a){g.dF(a)}}};
g.k.mz=function(a){a=void 0===a?!1:a;this.logger.debug("detaching media source");y$a(this);cL(this.oa)&&(this.Z=NaN);a?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Ga&&this.ma("loader",{setsmb:1}),this.policy.Ba=!0):this.policy.Ae?A_(this,this.zb):A_(this,!1);this.Jk()};
g.k.setAudioTrack=function(a,b,c){c=void 0===c?!1:c;if(!this.Ma()){var d=!isNaN(b);c&&d&&(this.audioTrack.Y=Date.now(),this.policy.pc&&(this.Va=!0));if(wV(this.policy)){var e=this.C.Z_(a.id);this.logger.debug(function(){return"Logging new audio format: "+e.j.info.id});
this.oa.Vw(e)}else{var f=c7a(this.j,a.id,d);this.logger.debug(function(){return"Logging new audio format: "+f.audio.info.id});
this.oa.Vw(new vZ(f.audio,f.reason))}if(d&&(c=this.audioTrack.j.index.Bi(b),this.ma("setAudio",{id:a.id,cmt:b,sq:c}),0<=c)){u8a(this.audioTrack,c,NaN,NaN);XQ(this.manifest,c,!1);return}this.oa.zo()}};
g.k.setPlaybackRate=function(a){a!==this.Y.getPlaybackRate()&&this.Y.setPlaybackRate(a)};
g.k.WJ=function(a){var b=a.j.info.yh();this.logger.debug(function(){return"New "+(b?"audio":"video")+" format from SABR: "+MK(a.j.info)});
b?this.oa.Vw(a):F$a(this.oa,a)};
g.k.SI=function(a){tQ(a.eb[a.eb.length-1])&&C$a(this,d7a(this.j,a.eb[0].j))};
g.k.DI=function(){return this.oa.DI()};
g.k.Bm=function(a){this.oa.Bm(a)};
g.k.Dz=function(){return this.oa.Dz()};
g.k.gm=function(){return this.oa.gm()};
g.k.VQ=function(a){this.oa.VQ(a)};
g.k.Nba=function(){var a,b=null==(a=this.oa.Xe())?void 0:a.getCurrentTime();b?this.oa.ma("rms",{cta:b}):g.mv(this.Jb)};
g.k.rf=function(){B$a(this);if(this.Qa&&$K(this.Qa)&&!this.Qa.Xj()){var a=RZ(this.videoTrack);a=this.policy.TA&&a&&rQ(a);this.manifest.isManifestless&&this.manifest.C&&UQ(this.manifest)?(this.Z=UQ(this.manifest),this.Qa.jl(this.Z)):YQ(this.manifest)&&!a?isNaN(this.Z)?(this.Z=this.currentTime+3600,this.Qa.jl(this.Z)):this.Z<=this.currentTime+1800&&(this.Z=Math.max(this.Z+1800,this.currentTime+3600),this.Qa.jl(this.Z)):this.Qa.isView||(a=Math.max(this.audioTrack.getDuration(),this.videoTrack.getDuration()),
(!isFinite(this.Z)||this.Z!==a)&&0<a&&(this.Qa.jl(a),this.Z=a))}if(!this.Ma())if(UQa(this.manifest)&&this.manifest.tm()){var b=this.manifest;this.handleError("manifest.net.retryexhausted",b.Za?{rc:b.zg}:{rc:b.zg.toString()},1)}else if(this.policy.C)a:{try{c$a(this.qa);this.manifest.isManifestless&&this.policy.G&&YY(this.B);if(wV(this.policy)&&!XK()&&this.policy.Ml&&this.Qa&&!dL(this.Qa)&&this.videoTrack.Ga&&this.audioTrack.Ga){this.ma("ssap",{delaysb:1,v:this.videoTrack.j.info.id,vf:this.videoTrack.j.info.qb,
a:this.audioTrack.j.info.id,af:this.audioTrack.j.info.qb});var c=this.Qa,d=this.videoTrack.j,e=this.audioTrack.j;!dL(c)&&e&&d&&(pDa(c,d.info,e.info,this.policy.fb),z$a(this,c))}var f;(null==(f=this.Qa)?0:dL(f))&&this.xF();wV(this.policy)||z_(this);Y9a(this.qa)}catch(l){g.eF(l);b=l;if(this.policy.gA&&b.message.includes("changeType")){this.ma("ssap",{exp:b.name,msg:b.message,s:b.stack});break a}this.XH({reason:"exp",ename:b.name,emsg:b.message})}S$a(this);g.mv(this.Za)}else if(!this.manifest.B||!A8a(this.videoTrack)&&
!A8a(this.audioTrack)||(this.videoTrack.G||this.audioTrack.G)&&this.policy.Za?c=!1:(this.Jk(),this.oa.seekTo(Infinity,{yd:"checkLoaderTracksSync",wq:!0}),c=!0),!c){B$a(this);this.manifest.isManifestless&&(B8a(this.videoTrack),B8a(this.audioTrack),YY(this.B),(c=$Y(this.videoTrack))&&c.B&&(c=c.B.D&&!this.policy.Rj,this.ma(c===this.policy.Z.bj?"strm":"strmbug",{strm:c,sfmp4:this.policy.Z.bj,dfs:this.policy.Rj},!0)));if(this.Qa)this.xF();else if(this.policy.D){var h;c=!1;if(this.policy.sy)for(d=g.u([this.videoTrack,
this.audioTrack]),e=d.next();!e.done;e=d.next()){f=e.value;for(e=$Y(f);e&&f.ao()!==RZ(f);e=$Y(f))f.fu(e);c=c||!!e}else(b=$Y(this.videoTrack))&&this.videoTrack.fu(b),(h=$Y(this.audioTrack))&&this.audioTrack.fu(h);UZ(this.videoTrack)&&UZ(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(b||h||c)&&B_(this)}z_(this);f_(this.D,this.videoTrack,this.videoTrack.j,!1);f_(this.D,this.audioTrack,this.audioTrack.j,!1);this.policy.yy||E$a(this,this.videoTrack,this.audioTrack);K8a(this.D,
this.videoTrack,this.audioTrack);K8a(this.D,this.audioTrack,this.videoTrack);S$a(this);this.K&&(b=this.K,b.D?(h=b.K+b.policy.Mu,b.C||(h=Math.min(h,b.startTimeSecs+b.policy.tj)),b=Math.max(0,1E3*h-Date.now())):b=NaN,isNaN(b)||g.mv(this.Pb,b));g.mv(this.Za)}};
g.k.XH=function(a){this.oa.XH(a)};
g.k.YH=function(a){this.oa.YH(a)};
g.k.xF=function(){var a=this;if(this.Qa){var b=this.Qa.j,c=this.Qa.B,d=H$a(this);if(d){if(this.policy.Eu){if(!b.Kv()){var e=$Y(this.audioTrack);if(e){var f=w_(this,this.audioTrack,b,e.info);if(this.policy.Xb&&!f)return;K$a(this,b,e)}}if(!c.Kv()&&(e=$Y(this.videoTrack))){f=w_(this,this.videoTrack,c,e.info);if(this.policy.Xb&&!f)return;K$a(this,c,e)}}this.Vo||(this.Vo=(0,g.$C)(),this.logger.debug(function(){return"Appends pause start "+a.Vo+" reason "+d}),this.policy.j&&this.ma("apdps",{r:d}))}else this.Vo&&
(G$a(this,this.Vo),this.Vo=0),I$a(this),e=!1,this.policy.B&&b_(this.videoTrack)||!M$a(this,this.videoTrack,c)||(e=!0,E6a(this.timing),I6a(this.timing)),this.Qa&&!this.Qa.Jg()&&(this.policy.B&&b_(this.audioTrack)||!M$a(this,this.audioTrack,b)||(e=!0,F6a(this.timing),J6a(this.timing)),!this.Ma()&&this.Qa&&(!this.policy.Ra&&UZ(this.videoTrack)&&UZ(this.audioTrack)&&$K(this.Qa)&&!this.Qa.Xj()&&(c=!1,c=RZ(this.audioTrack),this.policy.B?(b=null==(f=this.Ub)?void 0:xY(f,1E3*c.C),c=!(!b||b.clipId!==c.clipId),
this.ma("ssap",{eos:c})):(c=c.j,c=c===this.manifest.j[c.info.id]),c&&(this.logger.debug("Setting EOS"),rDa(this.Qa),LRa(this.schedule))),e&&!this.Qa.isAsync()&&B_(this)))}};
g.k.Z2=function(a){var b=this,c;if(this.policy.pc&&a===(null==(c=this.Qa)?void 0:c.j)&&this.Wa){var d;this.oa.ma("asl",{l:this.Wa-this.currentTime,xtag:null==(d=RZ(this.audioTrack))?void 0:d.j.info.j});this.Va=!1;this.Wa=0}a.qm()&&0===a.Ke().length&&(a.Ty(),this.Qa&&!this.Qa.qm()&&(this.oa.U().uc()&&this.oa.ma("rms",{ld:"seek"}),this.Qa.N=performance.now(),this.oa.eO(),this.oa.U().uc()&&g.mv(this.Jb)));if(this.policy.Da&&this.Qa){c=a===this.Qa.j;var e=a.xI();if(e){if(!e.Rb||e.hf)c=a.jc({a:c}),c.omt=
(this.getCurrentTime()+this.Lc()).toFixed(3),c.to=this.Lc(),this.ma("sbu",c);e.hf&&!a.Xj()&&setTimeout(function(){var f=a.Ke(),h=PK(f,e.startTime+J8a),l=PK(f,b.currentTime);(0>h||h!==l)&&b.ma("sbu_mismatch",{b:OK(f),c:b.currentTime,s:e.Dd()})},0)}}this.rf()};
g.k.W9=function(a){if(this.Qa){var b=RZ(a===this.Qa.j?this.audioTrack:this.videoTrack);if(a=a.GO())for(var c=0;c<a.length;c++)this.ma("appendedbuffer",{i:c,b:g.Gg(a[c].subarray(0,4096),3)});a=void 0;b&&(a=vQ(b));this.handleError("fmt.unplayable",a,1)}};
g.k.Ww=function(a){this.oa.Ww(a)};
g.k.KQ=function(a,b,c){this.manifest.isManifestless&&e8a(this,b,c,!!a.info.video,!0)};
g.k.JQ=function(a,b,c,d){a.info.video&&this.G.JQ(b,c,d)};
g.k.XJ=function(a){this.j.XJ(a)};
g.k.YD=da(19);g.k.bL=function(a){this.Ub=a;var b;null!=(b=this.audioTrack.N)&&(b.Vc=a);null!=(b=this.videoTrack.N)&&(b.Vc=a);b=this.qa;b.K&&(b.ya.ma("ssap",{addcacheclips:1,v:b.K.version,tl:k$a(b.K.As)}),h$a(b,a,b.K),b.K=void 0)};
g.k.Sh=function(){return this.Ub};
g.k.jJ=function(){return this.videoTrack.Z||this.audioTrack.Z};
g.k.seek=function(a,b){if(this.Ma())return kg();if(this.jJ())return kg("seeking to head");B$a(this);this.Hp=(0,g.$C)();wV(this.policy)||z_(this,a);this.Qa&&this.Qa.j&&this.Qa.B&&!this.oa.getVideoData().nV&&(this.Qa.j.isLocked()||this.Qa.B.isLocked())&&this.oa.zo({reattachOnLockedBuffer:1,vsb:""+this.Qa.B.isLocked(),asb:""+this.Qa.j.isLocked()});var c=this.currentTime;this.currentTime=this.B.seek(a,b);tZ(this.G,a,c);B_(this);return jg(this.currentTime)};
g.k.zP=function(a){return this.policy.C&&this.qa.zP(a)};
g.k.WF=function(a){this.qa.WF(a)};
g.k.getCurrentTime=function(){return this.currentTime};
g.k.qO=function(){return this.audioTrack.j.info};
g.k.HD=function(){return this.videoTrack.j.info};
g.k.pO=function(){return this.audioTrack.j.info.qb};
g.k.tO=function(){return this.videoTrack.j.info.qb};
g.k.va=function(){try{this.mz();VY(this.audioTrack);VY(this.videoTrack);var a;null==(a=this.audioTrack.N)||t7a(a);var b;null==(b=this.videoTrack.N)||t7a(b);g.I.prototype.va.call(this)}catch(c){g.dF(c)}};
g.k.handleError=function(a,b,c){c=void 0===c?0:c;var d=pK(c);if("fmt.unplayable"===a&&this.manifest.isLive){this.policy.Eu=!1;var e=this.manifest;if(e.isManifestless)for(var f in e.j)e.j[f].index.segments=[]}b=new oK(a,b,c);g.fb(this);nK(b.details);this.oa.handleError(b);"html5.invalidstate"!==a&&"fmt.unplayable"!==b.errorCode&&"fmt.unparseable"!==a&&d&&this.dispose()};
g.k.jc=function(){var a=RZ(this.audioTrack),b=RZ(this.videoTrack);a={lct:this.currentTime.toFixed(3),lsk:this.B.Uf(),lmf:this.j.j.isLocked(),lbw:NRa(this.schedule).toFixed(3),lhd:CR(this.schedule).toFixed(3),lst:(1E9*(this.schedule.G.Qi()||0)).toFixed(3),laa:a?a.Dd():"",lva:b?b.Dd():"",lar:this.audioTrack.B?this.audioTrack.B.Dd():"",lvr:this.videoTrack.B?this.videoTrack.B.Dd():"",laq:""+VZ(this.audioTrack),lvq:""+VZ(this.videoTrack)};this.Qa&&!this.Qa.Jg()&&this.Qa.j&&this.Qa.B&&(a.lab=OK(this.Qa.j.Ke()),
a.lvb=OK(this.Qa.B.Ke()));this.Vo&&(a.lapt=((0,g.$C)()-this.Vo).toFixed(0),a.lapr=H$a(this));this.La&&(a.lapmbht=((0,g.$C)()-this.La).toFixed(0));return a};
g.k.Jk=function(){try{this.policy.C&&this.qa.WF(!1),this.audioTrack.Jk(),this.videoTrack.Jk()}catch(a){g.dF(a)}this.policy.D=""};
g.k.lO=function(){return QY(this.Y)};
g.k.ma=function(a,b,c){this.oa.ma(a,b,void 0===c?!1:c)};
g.k.oe=function(){return this.oa.oe()};
g.k.wq=function(a,b){a/=b;isNaN(this.timestampOffset)&&Y$a(this,a-Math.min(a,this.policy.QG));return(a-this.timestampOffset)*b};
g.k.Lc=function(){return this.timestampOffset};
g.k.Uf=function(){return this.B.Uf()};
g.k.Uv=function(){this.G.Uv()};
g.k.Co=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?{}:c;wV(this.policy)?this.C.Co(a,b,c):this.j.Co(a,b,c)};
g.k.bG=function(a,b){if(!this.N)return!1;var c=this.videoTrack.j.index.Bi(a);return this.N.bG(a,b,c)};
g.k.Mr=function(a,b){if(this.N&&this.G.Mr(a,this.N))return Y$a(this,this.timestampOffset-b),B_(this),!0;b=this.videoTrack.j.index.Bi(a);this.handleError("ad.skipfailed",{dec:!!this.N,t:a.toFixed(3),sq:b});return!1};
g.k.getManifest=function(){return this.manifest};
g.k.isOffline=function(){return!!this.oa.getVideoData().cotn};
g.k.KF=function(a,b){this.oa.KF(a,b)};
g.k.ER=function(a){var b=this.oa.getVideoData().gi;if(b){var c=this.D;c.lh=a;c.gi=b;C_(this)}};
g.k.DJ=function(a){this.videoTrack.Z=!1;this.audioTrack.Z=!1;this.B.B=!1;this.oa.DJ(a)};
g.k.dS=function(a){this.B.dS(a-this.Lc())};
g.k.yN=function(){this.oa.yN()};
g.k.CJ=function(a){a!==this.policy.Re&&((this.policy.Re=a)||this.rf())};
g.k.xR=function(a,b){var c=this.audioTrack.Sb,d=this.videoTrack.Sb;c&&d&&(c.remove(a,b),d.remove(a,b))};
g.k.zo=function(a){this.oa.zo(a)};
g.k.sx=function(a){this.oa.sx(a)};g.k=g.D_.prototype;g.k.wz=function(a,b,c,d,e,f){return this.Vc.wz(a,b,c,d,e,f)};
g.k.MI=function(a,b,c,d,e,f){return this.Vc.MI(a,b,c,d,e,f)};
g.k.KO=function(a){return this.Vc.KO(a)};
g.k.OI=function(a){this.Vc.OI(a)};
g.k.gt=function(a,b){return this.Vc.gt(a,b)};
g.k.Uv=function(){this.Vc.Uv()};
g.k.bG=function(a,b,c){return this.Vc.bG(a,b,c)};
g.k.nu=function(a,b){this.Vc.nu(a,b)};
g.k.IR=function(){this.Vc.IR()};
g.k.ID=da(43);g.k.Ok=function(a,b,c,d){this.Vc.Ok(a,b,c,d)};
g.k.HG=da(41);g.k.RQ=function(a,b,c,d,e,f,h,l,m){this.Vc.RQ(a,b,c,d,e,f,h,l,m)};
g.k.fS=function(a){this.Vc.fS(a)};
g.k.Rt=function(a){return this.Vc.Rt(a)};
g.k.TN=function(a){return this.Vc.TN(a)};g.y(E_,g.wF);g.y(F_,E_);F_.prototype.K=function(a,b){if(a&&b){var c=1*Number(On(a,"cpi"))+1;isNaN(c)||0>=c||c<this.C?(this.D.stop(),this.B.stop(),this.C=-1,this.j={}):(c>this.C&&(this.C=c,g.id(this.j)||(this.j={},this.D.stop(),this.B.stop())),this.j[b]=a,g.mv(this.B))}};
F_.prototype.G=function(){for(var a=g.u(Object.keys(this.j)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.publish;for(var d=this.C,e=this.j[c].match(fn),f=[],h=g.u(e[6].split("&")),l=h.next();!l.done;l=h.next())l=l.value,0===l.indexOf("cpi=")?f.push("cpi="+d.toString()):0===l.indexOf("ek=")?f.push("ek="+g.Se(c)):f.push(l);e[6]="?"+f.join("&");c="skd://"+e.slice(2).join("");e=2*c.length;d=new Uint8Array(e+4);d[0]=e%256;d[1]=(e-d[0])/256;for(e=0;e<c.length;++e)d[2*e+4]=c.charCodeAt(e);b.call(this,
"rotated_need_key_info_ready",new KZ(d,"fairplay",!0))}this.j={}};
F_.prototype.va=function(){this.j={};E_.prototype.va.call(this)};g.y(G_,E_);
G_.prototype.G=function(a){var b;a:{if((b=a.cryptoPeriodIndex)&&0<this.j.length)for(var c=g.u(this.j),d=c.next();!d.done;d=c.next())if(b===d.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}if(!b){b=(0,g.$C)();a:{c=a.cryptoPeriodIndex;if(!isNaN(c)){d=g.u(this.C.values());for(var e=d.next();!e.done;e=d.next())if(1>=Math.abs(e.value.cryptoPeriodIndex-c)){c=!0;break a}}c=!1}c?(c=a.j,c=1E3*Math.max(0,Math.random()*((isNaN(c)?120:c)-30))):c=0;this.publish("log_qoe",{wvagt:"delay."+c,cpi:a.cryptoPeriodIndex,reqlen:this.j.length,
ignore:this.D});0>=c?bab(this,a):this.D||(this.j.push({time:b+c,info:a}),g.mv(this.B,c))}};
G_.prototype.va=function(){this.j=[];E_.prototype.va.call(this)};var B3={},jab=(B3.DRM_TRACK_TYPE_AUDIO="AUDIO",B3.DRM_TRACK_TYPE_SD="SD",B3.DRM_TRACK_TYPE_HD="HD",B3.DRM_TRACK_TYPE_UHD1="UHD1",B3);g.y(fab,g.I);g.y(lab,g.wF);g.k=lab.prototype;g.k.Np=function(a){var b=this;this.Ma()||0>=a.size||(a.forEach(function(c,d){var e=eR(b.B)?d:c;d=new Uint8Array(eR(b.B)?c:d);eR(b.B)&&Cab(d);c=g.Gg(d,4);Cab(d);d=g.Gg(d,4);b.j[c]?b.j[c].status=e:b.j[d]?b.j[d].status=e:b.j[c]={type:"",status:e}}),xab(this,","),H_(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))};
g.k.error=function(a,b,c,d){this.Ma()||(this.publish("licenseerror",a,b,c,d),"drm.provision"===a&&(a=(Date.now()-this.K)/1E3,this.K=NaN,this.publish("ctmp","provf",{et:a.toFixed(3)})));pK(b)&&this.dispose()};
g.k.shouldRetry=function(a,b){return this.Da&&this.N?!1:!a&&this.requestNumber===b.requestNumber};
g.k.va=function(){this.j={};g.wF.prototype.va.call(this)};
g.k.jc=function(){var a={ctype:this.Y.contentType||"",length:this.Y.initData.length,requestedKeyIds:this.Ga,cryptoPeriodIndex:this.cryptoPeriodIndex};this.C&&(a.keyStatuses=this.j);return a};
g.k.getInfo=function(){var a=this.D.join();if(I_(this)){var b=new Set,c;for(c in this.j)"usable"!==this.j[c].status&&b.add(this.j[c].type);a+="/UKS."+Array.from(b)}return a+="/"+this.cryptoPeriodIndex};
g.k.Oe=function(){return this.url};g.y(J_,g.I);g.k=J_.prototype;g.k.b3=function(a){if(this.G){var b=a.messageType||"license-request";this.G(new Uint8Array(a.message),b)}};
g.k.Np=function(){this.N&&this.N(this.j.keyStatuses)};
g.k.onClosed=function(){this.Ma()||g.NB("xboxone")&&this.C&&this.C("closed")};
g.k.RZ=function(a){this.G&&this.G(a.message,"license-request")};
g.k.QZ=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.PZ=function(){this.K&&this.K()};
g.k.update=function(a){var b=this;if(this.j)return(mR.isActive()?mR.al("emeupd",function(){return b.j.update(a)}):this.j.update(a)).then(null,AO(function(c){Eab(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 IB()};
g.k.va=function(){this.j&&(this.Y?this.j.close().catch(g.eF):this.j.close());this.element=null;g.I.prototype.va.call(this)};g.y(K_,g.I);g.k=K_.prototype;g.k.cN=function(){var a=this;if(this.j.keySystemAccess)return(mR.isActive()?mR.al("emenew",function(){return a.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(c){if(!a.Ma())if(a.B=c,mR.isActive())mR.al("emeset",function(){return a.element.setMediaKeys(c)});
else{var d;null==(d=a.element)||d.setMediaKeys(c)}});
if(dR(this.j))this.C=new (cR())(this.j.keySystem);else if(fR(this.j)){this.C=new (cR())(this.j.keySystem);var b;null==(b=this.element)||b.webkitSetMediaKeys(this.C)}else mR.isActive()&&this.ma("emev",{v:"01b"}),oC(this.G,this.element,["keymessage","webkitkeymessage"],this.f3),oC(this.G,this.element,["keyerror","webkitkeyerror"],this.e3),oC(this.G,this.element,["keyadded","webkitkeyadded"],this.d3);return null};
g.k.setServerCertificate=function(){return this.B.setServerCertificate?"widevine"===this.j.flavor&&this.j.Ml?this.B.setServerCertificate(this.j.Ml):hR(this.j)&&this.j.Wa?this.B.setServerCertificate(this.j.Wa):null:null};
g.k.createSession=function(a,b){var c=a.initData;if(this.j.keySystemAccess){b&&b("createsession");var d=this.B.createSession();gR(this.j)?c=Fab(c,this.j.Wa):hR(this.j)&&(c=aab(c)||new Uint8Array(0));b&&b("genreq");var e=mR.isActive()?mR.al("emegen",function(){return d.generateRequest(a.contentType,c)}):d.generateRequest(a.contentType,c);
var f=new J_(null,null,null,d,null,this.N);e.then(function(){b&&b("genreqsuccess")},AO(function(l){Eab(f,"t.generateRequest",l)}));
return f}if(dR(this.j))return Hab(this,c);if(fR(this.j))return Gab(this,c);if(null==(e=this.element)?0:e.generateKeyRequest)this.element.generateKeyRequest(this.j.keySystem,c);else{var h;null==(h=this.element)||h.webkitGenerateKeyRequest(this.j.keySystem,c)}return this.D=new J_(this.element,this.j,c,null,null,this.N)};
g.k.f3=function(a){var b=Iab(this,a);b&&b.RZ(a)};
g.k.e3=function(a){var b=Iab(this,a);b&&b.QZ(a)};
g.k.d3=function(a){var b=Iab(this,a);b&&b.PZ(a)};
g.k.getMetrics=function(){if(this.B&&this.B.getMetrics)try{var a=this.B.getMetrics()}catch(b){}return a};
g.k.va=function(){this.C=this.B=null;var a;null==(a=this.D)||a.dispose();a=g.u(Object.values(this.K));for(var b=a.next();!b.done;b=a.next())b.value.dispose();this.K={};g.I.prototype.va.call(this);delete this.element};g.k=L_.prototype;g.k.get=function(a){a=this.findIndex(a);return-1!==a?this.values[a]:null};
g.k.remove=function(a){a=this.findIndex(a);-1!==a&&(this.keys.splice(a,1),this.values.splice(a,1))};
g.k.removeAll=function(){this.keys=[];this.values=[]};
g.k.set=function(a,b){var c=this.findIndex(a);-1!==c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
g.k.findIndex=function(a){return g.Eb(this.keys,function(b){return g.Xb(a,b)})};g.y(Lab,g.wF);g.k=Lab.prototype;g.k.v$=function(a){this.dj({onecpt:1});a.initData&&Oab(this,new Uint8Array(a.initData),a.initDataType)};
g.k.U$=function(a){this.dj({onndky:1});Oab(this,a.initData,a.contentType)};
g.k.Ww=function(a){this.dj({onneedkeyinfo:1});this.W.L("html5_eme_loader_sync")&&(this.N.get(a.initData)||this.N.set(a.initData,a));Nab(this,a)};
g.k.xV=function(a){this.C.push(a);M_(this)};
g.k.createSession=function(a){var b=Qab(this)?I7a(a):g.Gg(a.initData);this.B.get(b);this.Ga=!0;a=new lab(this.videoData,this.W,a,this.drmSessionId);this.B.set(b,a);a.subscribe("ctmp",this.UJ,this);a.subscribe("keystatuseschange",this.Np,this);a.subscribe("licenseerror",this.ZJ,this);a.subscribe("newlicense",this.MZ,this);a.subscribe("newsession",this.NZ,this);a.subscribe("sessionready",this.XZ,this);a.subscribe("fairplay_next_need_key_info",this.GZ,this);this.W.L("html5_enable_vp9_fairplay")&&a.subscribe("qualitychange",
this.US,this);this.W.L("html5_enable_sabr_drm_hd720p")&&a.subscribe("sabrlicenseconstraint",this.Naa,this);pab(a,this.D)};
g.k.MZ=function(a){this.Ma()||(this.dj({onnelcswhb:1}),a&&!this.heartbeatParams&&(this.heartbeatParams=a,this.publish("heartbeatparams",a)))};
g.k.NZ=function(){this.Ma()||(this.dj({newlcssn:1}),this.C.shift(),this.Ga=!1,M_(this))};
g.k.XZ=function(){if(dR(this.j)&&(this.dj({onsnrdy:1}),this.Na--,0===this.Na)){var a=this.qa,b,c;null==(b=a.element)||null==(c=b.msSetMediaKeys)||c.call(b,a.C)}};
g.k.Np=function(a){if(!this.Ma()){!this.La&&this.videoData.L("html5_log_drm_metrics_on_key_statuses")&&(Rab(this),this.La=!0);this.dj({onksch:1});var b=this.US;if(!I_(a)&&g.qD&&"com.microsoft.playready"===a.B.keySystem&&navigator.requestMediaKeySystemAccess)var c="large";else{c=[];var d=!0;if(I_(a))for(var e=g.u(Object.keys(a.j)),f=e.next();!f.done;f=e.next())f=f.value,"usable"===a.j[f].status&&c.push(a.j[f].type),"unknown"!==a.j[f].status&&(d=!1);if(!I_(a)||d)c=a.D;c=wab(c)}b.call(this,c);this.publish("keystatuseschange",
a)}};
g.k.UJ=function(a,b){this.Ma()||this.publish("ctmp",a,b)};
g.k.GZ=function(a,b){this.Ma()||this.publish("fairplay_next_need_key_info",a,b)};
g.k.ZJ=function(a,b,c,d){this.Ma()||(this.videoData.L("html5_log_drm_metrics_on_error")&&Rab(this),this.publish("licenseerror",a,b,c,d))};
g.k.Nv=function(){return this.Z};
g.k.US=function(a){var b=g.kP("auto",a,!1,"l");if(this.videoData.Dl){if(hOa(this.Z,b))return}else if(iOa(this.Z,a))return;this.Z=b;this.publish("qualitychange");this.dj({updtlq:a})};
g.k.Naa=function(a){this.videoData.sabrLicenseConstraint=a};
g.k.va=function(){this.j.keySystemAccess&&this.element&&(this.Ba?this.element.setMediaKeys(null).catch(g.eF):this.element.setMediaKeys(null));this.element=null;this.C=[];for(var a=g.u(this.B.values()),b=a.next();!b.done;b=a.next())b=b.value,b.unsubscribe("ctmp",this.UJ,this),b.unsubscribe("keystatuseschange",this.Np,this),b.unsubscribe("licenseerror",this.ZJ,this),b.unsubscribe("newlicense",this.MZ,this),b.unsubscribe("newsession",this.NZ,this),b.unsubscribe("sessionready",this.XZ,this),b.unsubscribe("fairplay_next_need_key_info",
this.GZ,this),this.W.L("html5_enable_vp9_fairplay")&&b.unsubscribe("qualitychange",this.US,this),b.dispose();this.B.clear();this.K.removeAll();this.N.removeAll();this.heartbeatParams=null;g.wF.prototype.va.call(this)};
g.k.jc=function(){for(var a={systemInfo:this.j.jc(),sessions:[]},b=g.u(this.B.values()),c=b.next();!c.done;c=b.next())a.sessions.push(c.value.jc());return a};
g.k.getInfo=function(){return 0>=this.B.size?"no session":""+this.B.values().next().value.getInfo()+(this.G?"/KR":"")};
g.k.dj=function(a,b){b=void 0===b?!1:b;this.Ma()||(nK(a),(this.W.uc()||b)&&this.publish("ctmp","drmlog",a))};g.y(Sab,g.I);g.k=Sab.prototype;g.k.cI=function(){return!!this.CE};
g.k.mJ=function(){return this.B};
g.k.handleError=function(a){var b=this;Yab(this,a);if(("html5.invalidstate"!==a.errorCode&&"fmt.unplayable"!==a.errorCode&&"fmt.unparseable"!==a.errorCode||!Xab(this,a.errorCode,a.details))&&!bbb(this,a)){if("yt"!==this.Ea.ra&&$ab(this,a)&&this.videoData.So&&(0,g.$C)()/1E3>this.videoData.So&&"hm"===this.Ea.ra){var c=Object.assign({e:a.errorCode},a.details);c.stalesigexp="1";c.expire=this.videoData.So;c.init=this.videoData.qT/1E3;c.now=(0,g.$C)()/1E3;c.systelapsed=((0,g.$C)()-this.videoData.qT)/1E3;
a=new oK(a.errorCode,c,2);this.oa.cg(a.errorCode,2,"SIGNATURE_EXPIRED",nK(a.details))}if(pK(a.severity)){var d;c=null==(d=this.oa.ya)?void 0:d.j.j;if(this.Ea.L("html5_use_network_error_code_enums"))if(Zab(a)&&c&&c.isLocked())var e="FORMAT_UNAVAILABLE";else{if(!this.Ea.K&&"auth"===a.errorCode&&429===a.details.rc){e="TOO_MANY_REQUESTS";var f="6"}}else Zab(a)&&c&&c.isLocked()?e="FORMAT_UNAVAILABLE":this.Ea.K||"auth"!==a.errorCode||"429"!==a.details.rc||(e="TOO_MANY_REQUESTS",f="6");this.oa.cg(a.errorCode,
a.severity,e,nK(a.details),f)}else this.oa.publish("nonfatalerror",a),d=/^pp/.test(this.videoData.clientPlaybackNonce),this.ue(a.errorCode,a.details),d&&"manifest.net.connect"===a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.$C)(),FX(a,"manifest",function(h){b.G=!0;b.ma("pathprobe",h)},function(h){b.ue(h.errorCode,h.details)}))}};
g.k.ma=function(a,b){this.oa.lc().ma(a,b)};
g.k.ue=function(a,b){b=nK(b);this.oa.lc().ue(a,b)};ebb.prototype.kO=function(a){return a?{m_:pbb(this,a)}:{m_:KS}};
ebb.prototype.L=function(a){return this.W.L(a)};g.y(Q_,g.I);Q_.prototype.onError=function(a){if("player.fatalexception"!==a||this.provider.L("html5_exception_to_health"))"sabr.fallback"===a&&(this.encounteredSabrFallback=!0),a.match(unb)?this.networkErrorCount++:this.nonNetworkErrorCount++};
Q_.prototype.send=function(){if(!(this.C||0>this.j)){vbb(this);var a=g.TM(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",c=this.playerState.Ig;this.playerState.isError()?b=c&&"auth"===c.errorCode?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.mG(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.mG(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.mG(this.playerState,16)||g.mG(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.mG(this.playerState,1)&&g.mG(this.playerState,
4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.mG(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.mG(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.mG(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");c=eeb[hT(this.provider.videoData)];a:switch(this.provider.W.playerCanaryState){case "canary":var d="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":d="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:d="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var e=wbb(this.provider),
f=0>this.B?a:this.B-this.j;a=this.provider.W.Sf+36E5<(0,g.$C)();b={started:0<=this.B,stateAtSend:b,joinLatencySecs:f,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:d,playerCanaryStage:e,isAd:this.provider.videoData.isAd(),liveMode:c,hasDrm:!!g.gT(this.provider.videoData),isGapless:this.provider.videoData.Y,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai,
encounteredSabrFallback:this.encounteredSabrFallback,isSabr:US(this.provider.videoData)};a||g.MC("html5PlayerHealthEvent",b);this.C=!0;this.dispose()}};
Q_.prototype.va=function(){this.C||this.send();window.removeEventListener("error",this.JA);window.removeEventListener("unhandledrejection",this.JA);g.I.prototype.va.call(this)};
var unb=/\bnet\b/;var xbb=/[?&]cpn=/;var Cbb=Math.pow(10,8);g.y(g.T_,g.I);g.k=g.T_.prototype;g.k.j8=function(){var a=g.TM(this.provider);Fbb(this,a)};
g.k.ND=function(){return this.Na};
g.k.SD=function(){return{aB:this.aB,bB:this.bB}};
g.k.iG=function(a,b){this.aB=a;this.bB=b};
g.k.JF=function(a){this.j.lwc=[[a.jf?a.jf.toFixed():"",a.Ci?a.Ci.toFixed():"",a.bb?(1E3*a.bb).toFixed():"",a.Pb?(1E3*a.Pb).toFixed():"",a.pc?(1E3*a.pc).toFixed():""].join(":")]};
g.k.reportStats=function(a){a=void 0===a?NaN:a;if(!this.Ma()&&(a=0<=a?a:g.TM(this.provider),-1<["PL","B","S"].indexOf(this.Ee)&&(!g.id(this.j)||a>=this.G+30)&&(g.S_(this,a,"vps",[this.Ee]),this.G=a),!g.id(this.j))){7E3===this.sequenceNumber&&g.eF(Error("Sent over 7000 pings"));if(!(7E3<=this.sequenceNumber)){U_(this,a);var b=a,c=this.provider.oa.aE(),d=c.droppedVideoFrames||0,e=c.totalVideoFrames||0,f=d-this.aB,h=e&&!this.bB;d>c.totalVideoFrames||5E3<f?Mbb(this,"html5.badframedropcount","df."+d+";tf."+
c.totalVideoFrames):(0<f||h)&&g.S_(this,b,"df",[f]);this.aB=d;this.bB=e;0<this.Z&&(g.S_(this,a,"glf",[this.Z]),this.Z=0);$2.isActive()&&(a=$2.RW(),0<Object.keys(a).length&&this.ma("profile",a));this.Hb&&V_(this,"lwnmow");this.provider.W.uc()&&this.provider.L("html5_record_now")&&this.ma("now",{wt:(0,g.$C)()});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.ra&&(a.cdocid=this.ra);this.provider.videoData.cotn&&(a.cotn=this.provider.videoData.cotn);a.el=tT(this.provider.videoData);a.content_v=vT(this.provider.videoData);a.ns=this.provider.W.ra;a.fexp=sRa(this.provider.W.experiments).toString();a.cl=(627399198).toString();(b=this.provider.videoData.adFormat||this.adFormat)&&(a.adformat=b);(b=hT(this.provider.videoData))&&(a.live=b);this.provider.videoData.Ti()&&
(a.drm=1,this.provider.videoData.K&&(a.drm_system=enb[this.provider.videoData.K.flavor]||0),this.provider.videoData.Cl&&(a.drm_product=this.provider.videoData.Cl));pB()&&this.provider.videoData.G&&(a.ctt=this.provider.videoData.G,a.cttype=this.provider.videoData.Nm,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.S1&&(a.dai_fallback=
"1")):this.provider.videoData.bd?a.dai="cs":this.provider.videoData.JC&&(a.dai="disabled");a.seq=this.sequenceNumber++;if(this.provider.videoData.tW){if(b=this.provider.videoData.tW,a&&b)for("3pp"===b.ns&&(a.ns="3pp"),c=g.u(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,this.wd.has(d)||(a[d]=b[d])}else a.event="streamingstats",a.docid=this.provider.videoData.videoId,a.ei=this.provider.videoData.eventId;b={cpn:a.cpn,sequenceNumber:a.seq,serializedWatchEndpointLoggingContext:this.provider.videoData.bea};
this.provider.videoData.playerResponseCpn&&(b.playerResponseCpn=this.provider.videoData.playerResponseCpn);R_.length&&(b.decoderInfo=R_);this.provider.oa.Sh()&&(b.transitionStitchType=4,this.Ba&&(b.timestampOffsetMsecs=this.Ba));this.remoteControlMode&&(b.remoteControlMode=this.remoteControlMode);this.remoteConnectedDevices.length&&(b.remoteConnectedDevices=this.remoteConnectedDevices);b=g.uO(b,cOa);a.qclc=g.Gg(b,4);this.zb&&(a.embargoed="1");g.od(a,this.provider.W.j);a=g.Mn("//"+this.provider.W.Wm+
"/api/stats/qoe",a);c=b="";d=g.u(Object.keys(this.j));for(e=d.next();!e.done;e=d.next())e=e.value,null===this.j[e]?g.eF(new g.AC("Stats report key has invalid value",e)):(e="&"+e+"="+this.j[e].join(","),100<e.length?c+=e:b+=e);Ibb(this,a+b,c.replace(/ /g,"%20"))}this.j={}}};
g.k.sx=function(a){this.Hb=a};
g.k.k0=function(){if(this.provider.videoData.K){var a=this.provider.videoData.K;V_(this,"eme-"+(a.keySystemAccess?"final":dR(a)?"ms":gR(a)?"ytfp":fR(a)?"safarifp":"nonfinal"))}};
g.k.nF=function(a){var b=g.TM(this.provider),c=[a.j.id,a.B,this.Dc,a.reason];a.token&&c.push(a.token);g.S_(this,b,"vfs",c);this.Dc=a.j.id;c=this.provider.oa.getPlayerSize();if(0<c.width&&0<c.height){c=[Math.round(c.width),Math.round(c.height)];var d=g.YR();1<d&&c.push(d);g.S_(this,b,"view",c)}this.Za||(this.provider.W.uc()&&V_(this,"rqs2"),this.provider.videoData.j&&qP(this.provider.videoData.j)&&(this.j.preload=["1"]));this.C=this.Za=!0;"m"===a.reason&&100===++this.ke&&Nbb(this,2);g.S_(this,b,"vps",
[this.Ee]);this.reportStats(b)};
g.k.XE=function(a){var b=g.TM(this.provider);if(a.j.id!==this.Ra){var c=[a.j.id,this.Ra,a.reason];a.token&&c.push(a.token);g.S_(this,b,"afs",c);this.Ra=a.j.id}};
g.k.St=da(47);g.k.qo=function(a){this.zb=a};
g.k.onPlaybackRateChange=function(a){var b=g.TM(this.provider);a&&a!==this.pc&&(g.S_(this,b,"rate",[a]),this.pc=a);this.reportStats(b)};
g.k.Wn=da(26);g.k.getPlayerState=function(a){if(g.mG(a,128))return"ER";if(g.mG(a,2048))return"B";if(g.mG(a,512))return"SU";if(g.mG(a,16)||g.mG(a,32))return"S";if(g.oL(a)&&g.mG(a,64))return"B";var b=vnb[qL(a)];g.iJ(this.provider.W)&&"B"===b&&3===this.provider.oa.getVisibilityState()&&(b="SU");"B"===b&&g.mG(a,4)&&(b="PB");return b};
g.k.va=function(){g.I.prototype.va.call(this);g.zB(this.K);g.zB(this.Jb)};
g.k.IK=function(a){this.isOffline=a;g.S_(this,g.TM(this.provider),"is_offline",[this.isOffline?"1":"0"])};
g.k.ma=function(a,b,c){var d=this.j.ctmp||[],e=-1!==this.hd.indexOf(a);e||this.hd.push(a);if(!c||!e){var f="string"!==typeof b?nK(b):b;f=Obb(f);if(!c&&!/^t[.]/.test(f)){var h=1E3*g.TM(this.provider);f="t."+h.toFixed()+";"+f}d.push(a+":"+f);this.logger.debug(function(){return"ctmp "+a+" "+f});
this.j.ctmp=d;Jbb(this);return h}};
g.k.IF=function(a,b,c){this.D={xca:Number(this.ma("glrem",{nst:a.toFixed(),rem:b.toFixed(),ca:+c})),rZ:a,hca:b,isAd:c}};
g.k.lx=function(a,b,c){g.S_(this,g.TM(this.provider),"ad_playback",[a,b,c])};
g.k.resume=function(){var a=this;this.provider.W.uc()&&this.ma("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.K)?Kbb(this):this.K=g.xB(function(){a.reportStats()},1E4)};
var C3={},vnb=(C3[5]="N",C3[-1]="N",C3[3]="B",C3[0]="EN",C3[2]="PA",C3[1]="PL",C3),R_=[];Qbb.prototype.gX=function(){return this.j};
Qbb.prototype.update=function(){if(this.N){var a=this.provider.oa.Pi()||0,b=g.TM(this.provider);a>=this.provider.oa.getDuration()-.1&&(this.previouslyEnded=!0);if(a!==this.j||Tbb(this,a,b)){var c;if(!(c=a<this.j||a-this.j>b-this.Ip+2||Tbb(this,a,b))){c=this.provider.oa.getVolume();var d=c!==this.Y,e=this.provider.oa.isMuted()?1:0;e!==this.Z?(this.Z=e,c=!0):(!d||0<=this.D||(this.Y=c,this.D=b),c=b-this.D,0<=this.D&&2<c?(this.D=-1,c=!0):c=!1)}c&&(Y_(this),this.C=a);this.Ip=b;this.j=a}}};Vbb.prototype.send=function(a){var b=this;if(!this.Za){var c=Xbb(this),d=g.Mn(this.uri,c);this.W.L("vss_through_gel_double")&&Ybb(d);this.ra&&!this.W.L("html5_simplify_pings")?ccb(this,d):Wbb(this,a).then(function(e){b.ra&&(e=e||{},e.method="POST",e.postParams={atr:b.attestationResponse});Bbb(d,e,{token:b.Y,ES:b.Hb,mdxEnvironment:b.mdxEnvironment},b.W,a,b.Ba,b.isFinal&&b.Tf||b.Ga||b.C&&b.eg)});
this.Za=!0}};
Vbb.prototype.B=function(a){void 0===a&&(a=NaN);return Number(a.toFixed(3)).toString()};
var D3={},acb=(D3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,D3.LIVING_ROOM_APP_MODE_MAIN=1,D3.LIVING_ROOM_APP_MODE_KIDS=2,D3.LIVING_ROOM_APP_MODE_MUSIC=3,D3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,D3.LIVING_ROOM_APP_MODE_GAMING=5,D3),E3={},$bb=(E3.EMBEDDED_PLAYER_MODE_UNKNOWN=0,E3.EMBEDDED_PLAYER_MODE_DEFAULT=1,E3.EMBEDDED_PLAYER_MODE_PFP=2,E3.EMBEDDED_PLAYER_MODE_PFL=3,E3),F3={},Ubb=(F3[0]=0,F3[1]=1,F3[2]=2,F3[3]=3,F3);g.y($_,g.I);g.k=$_.prototype;g.k.Xf=function(){this.j.update();icb(this)&&dcb(this)};
g.k.va=function(){g.I.prototype.va.call(this);d0(this);Rbb(this.j)};
g.k.jc=function(){return Xbb(a0(this,"playback"))};
g.k.Du=function(){this.provider.videoData.N.eventLabel=tT(this.provider.videoData);this.provider.videoData.N.playerStyle=this.provider.W.playerStyle;this.provider.videoData.mj&&(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.mj;a.isAd=b};
g.k.Ai=function(a){var b=a0(this,"engage");b.qa=a;return Zbb(b,ocb(this.provider))};ncb.prototype.isEmpty=function(){return this.endTime===this.startTime};f0.prototype.L=function(a){return this.W.L(a)};
f0.prototype.getCurrentTime=function(){if(g.BT(this.videoData)){var a=this.oa.Sh();if(a){var b=this.oa.getCurrentTime(),c;a=((null==(c=xY(a,1E3*b))?void 0:c.Wk)||0)/1E3;return b-a}}return this.oa.getCurrentTime()};
f0.prototype.Pi=function(){if(g.BT(this.videoData)){var a=this.oa.Sh();if(a){var b=this.oa.Pi(),c;a=(null==(c=xY(a,1E3*b))?NaN:c.Wk)/1E3||0;return b-a}}return this.oa.Pi()};
var pcb={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.y(g.g0,g.I);g.k=g.g0.prototype;g.k.Xf=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Vg){var a;null==(a=this.C.get(this.Vg))||a.Xf()}else this.j&&this.j.Xf()};
g.k.qo=function(a){this.qoe&&this.qoe.qo(a)};
g.k.ue=function(a,b){this.qoe&&Mbb(this.qoe,a,b);if(this.B)this.B.onError(a)};
g.k.nF=function(a){this.qoe&&this.qoe.nF(a)};
g.k.XE=function(a){this.qoe&&this.qoe.XE(a)};
g.k.onPlaybackRateChange=function(a){if(this.qoe)this.qoe.onPlaybackRateChange(a);this.j&&Y_(this.j.j)};
g.k.St=da(46);g.k.ma=function(a,b,c){this.qoe&&this.qoe.ma(a,b,c)};
g.k.IF=function(a,b,c){this.qoe&&this.qoe.IF(a,b,c)};
g.k.JF=function(a){var b;null==(b=this.qoe)||b.JF(a)};
g.k.sx=function(a){this.qoe&&this.qoe.sx(a)};
g.k.lx=function(a,b,c){this.qoe&&this.qoe.lx(a,b,c)};
g.k.Wn=da(25);g.k.ND=function(){if(this.qoe)return this.qoe.ND()};
g.k.jc=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Vg){var a;null==(a=this.C.get(this.Vg))||a.jc()}else if(this.j)return this.j.jc();return{}};
g.k.SD=function(){var a;return null==(a=this.qoe)?void 0:a.SD()};
g.k.iG=function(a,b){var c;null==(c=this.qoe)||c.iG(a,b)};
g.k.Ai=function(a){return this.j?this.j.Ai(a):function(){}};
g.k.Du=function(){this.j&&this.j.Du()};
g.k.getVideoData=function(){return this.provider.videoData};
g.k.resume=function(){this.qoe&&this.qoe.resume()};g.y(h0,g.I);h0.prototype.PH=function(a,b,c){if(this.j.has(a)){var d=this.j.get(a);if(b.videoId&&!qcb(d))this.B.ma("ssap",{rlc:a}),J4a(this,a);else return}if(!this.j.has(a)){d=new f0(b,this.W,this.oa);var e=Math.round(1E3*g.TM(this.B.provider));d=new g.g0(d,e);qcb(d)||this.B.ma("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.ra=h}rcb(d);2===c&&this.B.lx(a,b.wd||"",b.breakType||0)}};
h0.prototype.lc=function(a){a=a||this.Vg;return this.j.get(a)||this.B};g.y(i0,g.I);g.k=i0.prototype;g.k.lf=function(a,b){this.sync();b&&2E3<=this.j.array.length&&this.tD("captions",1E4);b=this.j;if(1<a.length&&a.length>b.array.length)b.array=b.array.concat(a),b.array.sort(b.j);else{a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,!b.array.length||0<b.j(c,b.array[b.array.length-1])?b.array.push(c):g.Zb(b.array,c,b.j)}this.C=NaN;this.sync()};
g.k.xo=function(a){1E4<a.length&&g.eF(new g.AC("Over 10k cueRanges removal occurs with a sample: ",a[0]));if(!this.Ma()){var b=new Set(a);this.B=this.B.filter(function(c){return!b.has(c)});
Ecb(this.j,b);this.sync()}};
g.k.tD=function(a,b){var c=(isNaN(this.C)?g.mG(this.G(),2)?0x8000000000000:1E3*this.Z():this.C)-b;b=this.gm().filter(function(d){return d.namespace===a&&d.end<c});
this.xo(b);return b};
g.k.gm=function(){return this.Ma()?[]:this.j.array};
g.k.reset=function(){this.started=!1;this.D.stop();this.j.array=[];this.B=[];this.sync()};
g.k.sf=function(a){var b=this.gm().filter(function(c){return c.namespace===a});
this.xo(b);return b};
g.k.IB=function(a){var b=[],c=Bcb(this.j,0x7ffffffffffff),d=[];c=g.u(c);for(var e=c.next();!e.done;e=c.next())e=e.value,e.active&&e.playerType===a&&d.push(e);b=b.concat(this.gI(d));Hcb(this,b);b=[];d=[];c=g.u(this.B);for(e=c.next();!e.done;e=c.next())e=e.value,e.active&&e.playerType===a&&0x7ffffffffffff===e.start&&d.push(e);b=b.concat(this.jI(d));Hcb(this,b)};
g.k.gI=function(a){var b=[];if(!a.length)return b;for(var c=0;c<a.length;c++){var d=a[c];d.active&&-1===this.B.indexOf(d)&&(this.B.push(d),b.push([1,d]))}return b};
g.k.jI=function(a){var b=[];if(!a.length)return b;a.sort(g.BBa);a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,this.B.splice(this.B.indexOf(c),1),b.push([2,c]);return b};
g.k.sync=function(){this.K=!0;if(!this.N){for(var a=3;this.K&&a;)this.K=!1,this.N=!0,this.pY(),this.N=!1,a--;this.G().isPlaying()&&(a=Dcb(this.j,this.C),!isNaN(a)&&0x7ffffffffffff>a&&(a=(a-this.C)/this.ra(),this.D.start(a)))}};
g.k.pY=function(){if(this.started&&!this.Ma()){this.D.stop();var a=this.G();g.mG(a,32)&&this.qa.start();for(var b=g.mG(this.G(),2)?0x8000000000000:1E3*this.Z(),c=g.mG(a,2),d=[],e=[],f=g.u(this.B),h=f.next();!h.done;h=f.next())h=h.value,h.active&&(c?0x8000000000000>h.end:!h.contains(b))&&e.push(h);d=d.concat(this.jI(e));f=e=null;c?(a=Bcb(this.j,0x7ffffffffffff),e=a.filter(function(l){return 0x8000000000000>l.end}),f=Ccb(this.j)):a=this.C<=b&&FDa(a)?Acb(this.j,this.C,b):Bcb(this.j,b);
d=d.concat(this.gI(a));e&&(d=d.concat(this.jI(e)));f&&(d=d.concat(this.gI(f)));this.C=b;Hcb(this,d)}};
g.k.va=function(){this.B=[];this.j.array=[];g.I.prototype.va.call(this)};
g.QX.fJ(i0,{lf:"crmacr",gI:"crmncr",jI:"crmxcr",pY:"crmis",xo:"crmrcr"});g.y(l0,g.wF);l0.prototype.er=function(){return this.N};
l0.prototype.Lq=function(){return Math.max(this.Z()-m0(this)*this.j,this.videoData.Od())};g.y(q0,g.I);q0.prototype.rf=function(){var a=this,b=this.oa.Xe(),c=this.oa.getPlayerState();if(b&&!c.isError()){var d=b.getCurrentTime(),e=8===c.state&&d>this.j,f=g.mG(c,8)&&g.mG(c,16),h=this.oa.Fn().isBackground()||c.isSuspended();r0(this,this.fb,f&&!h,e,"qoe.slowseek",function(){},"timeout");
var l=isFinite(this.j);l=f&&l&&zDa(b,this.j);var m=!d||10<Math.abs(d-this.j);r0(this,this.rb,l&&m&&!h,e,"qoe.slowseek",function(){b.seekTo(a.j)},"set_cmt");
m=l&&QK(b.Rh(),this.j);var n=this.oa.ya;l=!n||!n.policy.Ra;var p=function(){b.seekTo(a.j+.001)};
r0(this,this.Ra,m&&l&&!h,e,"qoe.slowseek",p,"jiggle_cmt");l=function(){return N_(a.oa)};
r0(this,this.Wa,m&&!h,e,"qoe.slowseek",l,"new_elem");var q=FDa(c);m=g.pL(c);var r=b.Rh(),t=PK(r,d),v=0<=t&&r.end(t)>d+5,w=q&&m&&v,A=this.oa.getVideoData();r0(this,this.Va,.002>d&&.002>this.j&&f&&g.iJ(this.W)&&g.uT(A)&&!h,e,"qoe.slowseek",l,"slow_seek_shorts");r0(this,this.qa,A.Rk()&&f&&!h&&!A.Ga,e,"qoe.slowseek",l,"slow_seek_gapless_shorts");r0(this,this.Ba,w&&!h,q&&!m,"qoe.longrebuffer",p,"jiggle_cmt");r0(this,this.Ga,w&&!h,q&&!m,"qoe.longrebuffer",l,"new_elem_nnr");if(n){var C=n.getCurrentTime();
f=b.Rv();f=kDa(f,C);f=!n.Uf()&&d===f;r0(this,this.Jb,q&&m&&f&&!h,q&&!m&&!f,"qoe.longrebuffer",function(){b.seekTo(C)},"seek_to_loader")}f={};
p=PK(r,Math.max(d-3.5,0));w=0<=p&&d>r.end(p)-1.1;var F=0<=p&&p+1<r.length?r.start(p+1)-r.end(p):9999;f.mindex=t;f.disIndex=p;f.isdisc=0<=p&&w&&11>F;f.close2edge=w;f.gapsize=F;f.buflen=r.length;this.D&&(f.seekSour=this.D);r0(this,this.Da,q&&m&&!h,q&&!m,"qoe.longrebuffer",function(){},"timeout",f);
f=c.isSuspended();f=y_(this.oa)&&!f;r0(this,this.N,f,!f,"qoe.start15s",function(){a.oa.Cg("ad")},"ads_preroll_timeout");
p=.5>d-this.C;w=A.isAd()&&q&&!m&&p;f=function(){var G=a.oa,L=G.Bd.Xc();(!L||!G.videoData.isAd()||L.getVideoData().bd!==G.getVideoData().bd)&&G.videoData.Jf||G.cg("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+G.videoData.videoId)};
r0(this,this.zb,w,!w,"ad.rebuftimeout",f,"skip_slow_ad");p=A.isAd()&&m&&QK(b.Rh(),d+5)&&p;r0(this,this.Hb,p,!p,"ad.rebuftimeout",f,"skip_slow_ad_buf");r0(this,this.Gb,g.oL(c)&&g.mG(c,64)&&!h,e,"qoe.start15s",function(){},"timeout");
r0(this,this.La,!!n&&!n.Qa&&g.oL(c),e,"qoe.start15s",l,"newElemMse");f=TK(r,0);p=g.mG(c,16)||g.mG(c,32);f=!h&&g.oL(c)&&m&&!p&&(g.mG(c,64)||0===d)&&5<f;r0(this,this.bb,g.uT(A)&&f,q&&!m,"qoe.longrebuffer",function(){a.oa.zo()},"reset_media_source");
r0(this,this.Za,g.uT(A)&&f,q&&!m,"qoe.longrebuffer",l,"reset_media_element");0===this.C&&(this.K=d);f=m&&0===this.j&&1<d&&d===this.K;r0(this,this.Na,g.uT(A)&&f,q&&!m,"qoe.slowseek",function(){b.seekTo(0)},"reseek_after_time_jump");
h=g.oL(c)&&!h;v=6>SX(this.oa)-d&&!v&&this.oa.zt();r0(this,this.Z,A.Rk()&&h&&m&&v,q&&!m,"qoe.longrebuffer",function(){N_(a.oa,!1,!0)},"handoff_end_long_buffer_reload");
n=(null==n?void 0:Z$a(n))||NaN;n=1<r.length||!isNaN(n)&&n-.1<=d;r0(this,this.Y,$S(A)&&h&&m&&n,q&&!m,"qoe.longrebuffer",l,"gapless_slice_append_stuck");n=0<=t&&2<=r.end(t);c=$S(A)&&this.oa.D0&&n&&!A.Ga&&h&&(m||g.mG(c,8)&&g.mG(c,16));r0(this,this.ra,c,e,"qoe.start15s",l,"gapless_slow_start");this.C=d;this.G.start()}};
q0.prototype.ue=function(a,b,c){b=this.jc(b);b.wn=c;b.wdup=this.B[a]?"1":"0";this.oa.ue(new oK(a,b));this.B[a]=!0};
q0.prototype.jc=function(a){a=Object.assign(this.oa.jc(!0),a.jc());this.j&&(a.stt=this.j.toFixed(3));this.oa.getVideoData().isLivePlayback&&(a.ct=this.oa.getCurrentTime().toFixed(3),a.to=this.oa.Lc().toFixed(3));delete a.uga;delete a.euri;delete a.referrer;delete a.fexp;delete a.vm;return a};
o0.prototype.reset=function(){this.j=this.B=this.C=this.startTimestamp=0;this.D=!1};
o0.prototype.test=function(a){if(!this.G||this.B)return!1;if(!a)return this.reset(),!1;a=(0,g.$C)();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};
o0.prototype.jc=function(){var a={},b=(0,g.$C)();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.y(Wcb,g.I);g.k=Wcb.prototype;g.k.setMediaElement=function(a){(this.mediaElement=a)?(this.mediaElement&&(this.G||this.D||!this.mediaElement.FR()||this.seekTo(.01,{yd:"seektimeline_setupMediaElement"})),s0(this)):t0(this)};
g.k.getCurrentTime=function(){return!isNaN(this.j)&&isFinite(this.j)?this.j:this.mediaElement&&idb(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0};
g.k.Pi=function(){return this.getCurrentTime()-this.Lc()};
g.k.Lq=function(){return this.B?this.B.Lq():Infinity};
g.k.isAtLiveHead=function(a){if(!this.B)return!1;void 0===a&&(a=this.getCurrentTime());return n0(this.B,a)};
g.k.er=function(){return!!this.B&&this.B.er()};
g.k.seekTo=function(a,b){var c=void 0===b?{}:b;b=void 0===c.GG?!1:c.GG;var d=void 0===c.MS?0:c.MS,e=void 0===c.cw?!1:c.cw,f=void 0===c.FS?0:c.FS,h=void 0===c.yd?"":c.yd,l=void 0===c.seekSource?void 0:c.seekSource,m=void 0===c.nJ?!1:c.nJ,n=void 0===c.qS?!1:c.qS;if(void 0===c.wq?0:c.wq)a+=this.Lc();if(c=a<this.La&&!!this.ya){this.oa.ma("sdai",{sk2bk:a.toFixed(3),mt:(a-this.timestampOffset).toFixed(3),lstadj:this.La.toFixed(3)});this.La=NaN;this.timestampOffset-=1E3;var p;if(null!=(p=this.ya)){Y$a(p,
p.timestampOffset-1E3);var q=p.manifest,r=new Set;for(w in q.j){var t=q.j[w].index,v=t.Lv();v&&!r.has(v)&&(v.startTime+=1E3,v.endTime=v.startTime+v.duration,r.add(v));t.segments.length&&(v=t.segments[t.segments.length-1],t.segments=[],t.segments.push(v))}p.N&&p.N.IR();tZ(p.G,0,0,!0)}}var w=a;(p=!isFinite(w)||(this.B?n0(this.B,w):w>=this.Le())||!g.mT(this.videoData))||this.oa.ma("seeknotallowed",{st:w,mst:this.Le()});if(!p)return this.C&&(this.C=null,fdb(this)),jg(this.getCurrentTime());if(.005>Math.abs(a-
this.j)&&this.qa)return this.G;h&&(w=a,(this.W.uc()||this.L("html5_log_seek_reasons"))&&this.oa.ma("seekreason",{reason:h,tgt:w}));l&&(this.ra.D=l);this.qa&&t0(this);this.G||(this.G=new fL);a&&!isFinite(a)&&Zcb(this,!1);(h=n||c)||(h=a,h=!(this.videoData.isLivePlayback&&this.videoData.C&&!this.videoData.C.j&&!(this.mediaElement&&0<this.mediaElement.Fk()&&0<uDa(this.mediaElement))||VS(this.videoData)&&this.Od()===this.Le(!1)?0:isFinite(h)||!VS(this.videoData)));h||(a=hdb(this,a,e));a&&!isFinite(a)&&
Zcb(this,!1);this.D=a;this.Ra=f;this.j=a;this.Z=0;this.B&&(e=this.B,f=a,Qcb(e,f,!1),Rcb(e,f));e=this.oa;f=a;h={GG:b,seekSource:l};e.Zc.D=f;n=e.WC;n.mediaTime=f;n.j=!0;h.GG&&$db(e,h);h=f>e.videoData.endSeconds&&f>e.videoData.limitedPlaybackDurationInSeconds;e.Cq&&h&&isFinite(f)&&Odb(e);f<e.Le()-.01&&(h=mL(e.playerState,2),g.mG(h,8)&&(h=mL(h,4)),e.Ac(h));e.publish("SEEK_TO",e,f);this.G&&(b?d&&this.Va.start(d):(b={nJ:m,seekSource:l},this.qa=!0,Vcb(this,b)));(b=this.oa.Cq)&&a>b.start&&Odb(this.oa);return this.G};
g.k.Le=function(a){if(!this.videoData.isLivePlayback)return peb(this.oa);var b;return DT(this.videoData)&&(null==(b=this.mediaElement)?0:b.isPaused())&&this.videoData.j?(a=this.getCurrentTime(),HUa(1E3*this.df(a))+a):VS(this.videoData)&&this.videoData.Za&&this.videoData.j?this.videoData.j.Le()+this.timestampOffset:this.videoData.C&&this.videoData.C.j?!a&&this.B?this.B.Lq():peb(this.oa)+this.timestampOffset:this.mediaElement?QB()?HUa(this.mediaElement.gH().getTime()):uDa(this.mediaElement)+this.timestampOffset||
this.timestampOffset:this.timestampOffset};
g.k.Od=function(){if(g.BT(this.videoData)){var a=this.oa;g.BT(a.videoData);var b,c;return null!=(c=null==(b=a.Ub)?void 0:b.Od())?c:a.videoData.Od()}b=this.videoData?this.videoData.Od()+this.timestampOffset:this.timestampOffset;return DT(this.videoData)&&this.videoData.j&&(c=Number(null==(a=this.videoData.progressBarStartPosition)?void 0:a.utcTimeMillis)/1E3,a=this.getCurrentTime(),a=this.df(a)-a,!isNaN(c)&&!isNaN(a))?Math.max(b,c-a):b};
g.k.eO=function(){this.G||this.seekTo(this.D,{yd:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})};
g.k.jJ=function(){return this.qa&&!isFinite(this.j)};
g.k.va=function(){$cb(this,null);this.ra.dispose();g.I.prototype.va.call(this)};
g.k.jc=function(){var a={};this.ya&&Object.assign(a,this.ya.jc());this.mediaElement&&Object.assign(a,this.mediaElement.jc());return a};
g.k.UQ=function(a){this.timestampOffset=a};
g.k.getStreamTimeOffset=function(){return VS(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0};
g.k.Lc=function(){return this.timestampOffset};
g.k.df=function(a){return this.videoData.j.df(a-this.timestampOffset)};
g.k.Ov=function(){if(!this.mediaElement)return 0;if(nT(this.videoData)){var a=this.mediaElement,b=a.Rh();a=(0<SK(b)&&a.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.Od();b=this.Le()-this.Od();return Math.max(0,Math.min(1,a/b))}return this.mediaElement.Ov()};
g.k.Vw=function(a){this.K&&(this.K.j=a)};
g.k.L=function(a){return this.W&&this.W.L(a)};v0.prototype.Dt=function(){return this.started};
v0.prototype.start=function(){this.started=!0};
v0.prototype.reset=function(){this.j=this.started=!1};var rdb=!1;g.y(g.z0,g.wF);g.k=g.z0.prototype;g.k.va=function(){this.logger.debug("dispose");g.zB(this.wK);q3a(this.Yf);this.visibility.unsubscribe("visibilitystatechange",this.Yf);Fdb(this);D0(this);g.Zu.Mj(this.ix);this.Cj();this.Mf=null;g.vb(this.videoData);g.vb(this.Kk);g.wb(this.L9);this.Cq=null;g.wF.prototype.va.call(this)};
g.k.lx=function(a,b,c,d){this.lc().lx(a,b,c);this.L("html5_log_media_perf_info")&&this.ma("adloudness",{ld:d.toFixed(3),cpn:a})};
g.k.pO=function(){var a;return null==(a=this.ya)?void 0:a.pO()};
g.k.tO=function(){var a;return null==(a=this.ya)?void 0:a.tO()};
g.k.HD=function(){var a;return null==(a=this.ya)?void 0:a.HD()};
g.k.qO=function(){var a;return null==(a=this.ya)?void 0:a.qO()};
g.k.Ti=function(){return this.videoData.Ti()};
g.k.PD=function(){return this.qA};
g.k.PH=function(){!this.pA||this.pA.Ma();this.pA=new g.g0(new f0(this.videoData,this.W,this));this.qA=new h0(this.W,this,this.pA)};
g.k.getVideoData=function(){return this.videoData};
g.k.U=function(){return this.W};
g.k.kO=function(){return this.nk.kO(this.Mf)};
g.k.lc=function(a){if(this.L("html5_enable_logging_controller_by_videoid")&&a)a:{for(var b=this.qA,c=g.u(b.j.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.getVideoData().videoId===a){a=d;break a}a=b.B}else a=this.qA.lc();return a};
g.k.Fn=function(){return this.visibility};
g.k.Xe=function(){return this.mediaElement};
g.k.uN=function(){if(this.videoData.isLoaded()){var a=this.Kk;0<g.YI(a.Ea.experiments,"html5_player_min_build_cl")&&627399198<g.YI(a.Ea.experiments,"html5_player_min_build_cl")&&abb(a,"oldplayer");Kdb(this)}else this.videoData.Ki||this.videoData.Vm?this.At&&g.iJ(this.W)&&this.videoData.isLivePlayback||(this.videoData.Ki?iUa(this.videoData):(a=this.lc(),a.qoe&&(a=a.qoe,V_(a,"protected"),a.provider.videoData.K?a.k0():a.provider.videoData.subscribe("dataloaded",a.k0,a)),gUa(this.videoData))):!this.videoData.loading&&
this.d6&&Hdb(this)};
g.k.bL=function(a){this.Ub=a;this.ya&&this.ya.bL(a)};
g.k.Bz=da(16);g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.isBackground=function(){return this.visibility.isBackground()};
g.k.sendAbandonmentPing=function(){g.mG(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.UR(!0),Fdb(this),g.Zu.Mj(this.ix))};
g.k.Fo=function(){scb(this.lc())};
g.k.cg=function(a,b,c,d,e,f){this.logger.debug(function(){return"set player error: ec="+a+", detail="+e});
var h,l;g.gd(smb,c)?h=c:c?l=c:h="GENERIC_WITHOUT_LINK";d=(d||"")+(";a6s."+QH());if("auth"===a||"drm.auth"===a||"heartbeat.stop"===a)c&&(d+=";r."+c.replaceAll(" ","_")),f&&(d+="sr."+f.replaceAll(" ","_"));b={errorCode:a,errorDetail:e,errorMessage:l||g.OV[h]||"",ZN:h,vn:f||"",FK:d,hI:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=a;C0(this,"dataloaderror");this.Ac(kL(this.playerState,128,b));g.Zu.Mj(this.ix);D0(this);this.uo()};
g.k.Cg=function(a){this.Rp=this.Rp.filter(function(b){return a!==b});
this.logger.debug(function(){return"set preroll ready for "+a});
this.L("html5_send_preroll_ready_csi_ping")&&!this.Hn()&&this.Kb.Gh("pl_pr");this.Ar.Dt()&&Idb(this)};
g.k.Hn=function(){var a;(a=!!this.Rp.length)||(a=this.Qh.j.array[0],a=!!a&&-0x8000000000000>=a.start);return a};
g.k.er=function(){return this.Zc.er()};
g.k.isPlaying=function(){return this.playerState.isPlaying()};
g.k.sE=function(){return this.playerState.sE()&&this.videoData.Gl};
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.Iz.compose(a.videoData.xX);a=nP(a)}else a="auto";return a};
g.k.QD=da(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.Ib()===this.mediaElement.Ib()&&(a.isView()||this.mediaElement.isView())){if(a.isView()||!this.mediaElement.isView())g.pC(this.PB),this.mediaElement=a,this.mediaElement.oa=this,aeb(this),this.Zc.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Cj();if(!this.playerState.isError()){var b=mL(this.playerState,512);g.mG(b,8)&&!g.mG(b,2)&&(b=lL(b,1));a.isView()&&(b=mL(b,64));this.Ac(b)}this.mediaElement=
a;this.mediaElement.oa=this;dS(this.W)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);aeb(this);this.Zc.setMediaElement(this.mediaElement);this.L("html5_prewarm_media_source")&&!this.Kk.cI()&&vDa(this.mediaElement)}};
g.k.Cj=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.logger.debug("remove media element");if(this.mediaElement){var c=this.getCurrentTime();0<c&&(this.Zc.D=c);this.Zc.setMediaElement(null);!a&&cL(this)?Wdb(this):XX(this);this.ya&&(B_(this.ya),H0(this,b));this.Ew.stop();if(this.mediaElement&&(!this.Ar.Dt()||this.playerState.isError()||g.mG(this.playerState,2)||this.Ac(lL(this.playerState,512)),this.mediaElement)){g.pC(this.PB);if(a||!this.mediaElement.isView())this.L("html5_rebase_video_to_ad_timeline")&&
this.Kb.yu("mesv_s"),this.mediaElement.stopVideo(),J0(this);this.mediaElement=this.mediaElement.oa=null}}};
g.k.playVideo=function(a){a=void 0===a?!1:a;var b=this,c,d,e,f,h,l;return g.H(function(m){if(1==m.j){b.logger.debug("start play video");var n=window.google_image_requests;n&&10<n.length&&(window.google_image_requests=n.slice(-10));if(g.mG(b.playerState,128))return m.return();if(b.Kk.mJ())return b.publish("signatureexpired"),m.return();b.mediaElement&&AY(b.lc());Ndb(b);(g.mG(b.playerState,64)||a)&&b.Ac(lL(b.playerState,8));return b.Ar.j&&b.mediaElement?b.Mf||!b.sF?m.Ia(2):g.z(m,b.sF,3):m.return()}if(2!=
m.j&&g.mG(b.playerState,128))return m.return();if(!b.videoData.C)return b.videoData.isLivePlayback&&!g.xRa(b.W.G,!0)?(c="html5.unsupportedlive",d=2):(c=b.videoData.Ti()?"fmt.unplayable":"fmt.noneavailable",d=1),g.eF(Error("selectableFormats")),b.cg(c,d,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),m.return();if(b.Vh()&&b.videoData.C.j)return b.logger.debug("rebuild playbackData for airplay"),m.return(B0(b));if(TS(b.videoData)&&(e=b.getCurrentTime()<b.Od()-15,f=g.mT(b.videoData)&&b.playerState.isPaused(),
h=g.mG(b.playerState,1024),n=b.Zc,n.videoData.dc()&&AT(n.videoData)||h||!e&&!f||(f?(b.logger.debug("seek to head for live because of live-only"),b.seekTo(Infinity,{yd:"videoplayer_unpauseLiveOnly"})):(b.logger.debug("seek to min seekable for live because of out of window"),b.seekTo(b.Od(),{yd:"videoplayer_outOfWindow"}))),!b.isAtLiveHead(void 0,!0)&&b.er()&&(b.logger.debug("seek to head for live because pegged to live"),l={yd:"videoplayer_peggedToLive",seekSource:34},b.seekTo(Infinity,l)),g.mG(b.playerState,
256)&&b.videoData.Ga&&b.Zc.jJ()))return b.Ac(nL(b.playerState,8,4)),m.return();g.mG(b.playerState,4)&&g.mG(b.playerState,16)&&b.Ac(nL(b.playerState,9,4));if(y0(b))return heb(b),m.return();geb(b);g.Aa(m)})};
g.k.zo=function(a){this.logger.debug("reset media source");a&&this.ue(new oK("qoe.restart",a));this.Ac(lL(this.playerState,2048));XX(this);a=this.videoData.j&&tP(this.videoData.j);var b=this.mediaElement&&this.mediaElement.isView();a||b?(this.ya&&x$a(this.ya),N_(this)):(y0(this),g.oL(this.playerState)&&this.playVideo())};
g.k.Ss=function(){if(!this.Mf)return[];var a=gbb(this.nk,this.Mf,this.Nv());return this.Mf.j.Ss(a)};
g.k.FD=function(){if(!this.Mf)return[];var a=gbb(this.nk,this.Mf,this.Nv());return this.Mf.j.FD(a)};
g.k.Nv=function(){var a=this.Be?this.Be.Nv():dUa(this.videoData)&&this.videoData.j&&tP(this.videoData.j)?this.videoData.Dl?KS:Jab:KS;this.LR&&(a=a.compose(anb));return a};
g.k.sI=function(){var a=this.oe(),b=this.Bd.Nd().videoId;return this.Bd.Nt.sI(a)||this.Bd.Nt.sI(b)};
g.k.getUserPlaybackQualityPreference=function(){return this.videoData.C&&!this.videoData.C.j?nP(this.videoData.Iz):mP[fP()]};
g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()};
g.k.setUserAudio51Preference=function(a,b){this.videoData.Sf!==a&&(this.ma("toggle51",{pref:a}),this.videoData.Sf=a,g.sC("yt-player-audio51",a,b?31536E3:2592E3),O_(this))};
g.k.getUserAudio51Preference=function(){var a=1;$R(this.W)&&this.L("html5_ytv_surround_toggle_default_off")&&(a=0);var b;return null!=(b=g.tC("yt-player-audio51"))?b:a};
g.k.setProximaLatencyPreference=function(a){var b=this.getProximaLatencyPreference();this.ma("proxima",{pref:a});g.sC("yt-player-proxima-pref",a,31536E3);b!==a&&(this.Zc.Za=!0,this.seekTo(Infinity,{yd:"videoplayer_proximaSeekToHead",seekSource:34}))};
g.k.getProximaLatencyPreference=function(){var a;return null!=(a=QNa())?a:0};
g.k.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible};
g.k.getAvailableAudioTracks=function(){return g.BT(this.videoData)&&this.Ub?A4a(this.Ub).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()};
g.k.getAudioTrack=function(){if(Tdb(this)){var a=Vdb(this);if(a)return a}return this.videoData.getAudioTrack()};
g.k.UE=function(){if(US(this.videoData)&&this.videoData.L("html5_trigger_loader_when_idle_network")){var a;null!=(a=this.ya)&&a.rf()}};
g.k.mz=function(){if(this.ya){var a=this.ya,b=a.mz;var c=this.videoData;c=c.L("html5_ssdai_use_post_for_media")&&c.enableServerStitchedDai?!1:VS(c)&&c.Jf&&!c.isAd();b.call(a,c)}};
g.k.Nq=function(){return this.Qa};
g.k.Ww=function(a){this.logger.debug("onNeedKeyInfo");this.VA.set(a.initData,a);this.Be&&(this.Be.Ww(a),this.L("html5_eme_loader_sync")||this.VA.remove(a.initData))};
g.k.VQ=function(a){this.videoData.fA=g.kP("auto",a,!1,"u");x0(this)};
g.k.Vw=function(a){var b,c;if(this.L("html5_prefer_language_over_codec")&&(null==(b=this.videoData.D)?0:b.kc)&&a.j.info.qb!==this.videoData.D.qb&&(null==(c=a.j.info.kc)?void 0:c.id)!==this.videoData.D.kc.id){var d;this.ma("lac",{prev:this.videoData.D.itag,plang:this.videoData.D.kc.id,"new":a.j.info.itag,nlang:null==(d=a.j.info.kc)?void 0:d.id})}b=a.reason;c=a.j.info;d=a.token;var e=this.lc(a.videoId),f=g.BT(this.videoData)?e.getVideoData():this.videoData;if(c!==f.D){var h=!f.D;f.D=c;"m"!==b&&"t"!==
b&&(b=h?"i":"a");var l="m"===b||"t"===b;e.XE(new dbb(f,c,b,"",d));this.publish("internalaudioformatchange",f,!h&&l)}this.Zc.Vw(a.j.index)};
g.k.aK=function(a){this.publish("localmediachange",a)};
g.k.Co=function(a){a=void 0===a?{}:a;var b;null==(b=this.ya)||b.Co(this.W,eUa(this.videoData),a)};
g.k.mJ=function(){return this.Kk.mJ()};
g.k.handleError=function(a){this.Kk.handleError(a)};
g.k.cI=function(){return this.Kk.cI()};
g.k.DJ=function(a){this.NB?(this.ma("utcSeekingFallback",{source:"streamTime",timeSeconds:this.NB}),this.seekTo(this.NB,{yd:"utcSeekingFallback_streamTime"}),this.NB=0):isNaN(this.df())||(a=this.df()-a,a=this.getCurrentTime()-a,this.ma("utcSeekingFallback",{source:"estimate",timeSeconds:a}),this.seekTo(a,{yd:"utcSeekingFallback_estimate"}))};
g.k.pauseVideo=function(a){a=void 0===a?!1:a;if((g.mG(this.playerState,64)||g.mG(this.playerState,2))&&!a)if(g.mG(this.playerState,8))this.Ac(nL(this.playerState,4,8));else if(this.sE())y0(this);else return;g.mG(this.playerState,128)||(a?this.Ac(lL(this.playerState,256)):this.Ac(nL(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.mT(this.videoData)&&this.ya&&H0(this,!1)};
g.k.stopVideo=function(){this.pauseVideo();this.ya&&(H0(this,!1),this.ya.Jk())};
g.k.uo=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;if(cL(this)&&b){var c;null==(c=this.mediaElement)||c.uo()}else{var d;null==(d=this.mediaElement)||d.stopVideo()}J0(this);D0(this);g.mG(this.playerState,128)||(a?this.Ac(mL(mL(lL(this.playerState,4),8),16)):this.Ac(kL(this.playerState)));this.videoData.videoId&&this.W.Na.remove(this.videoData.videoId)};
g.k.seekTo=function(a,b){b=void 0===b?{}:b;this.logger.debug(function(){return"SeekTo "+a+", "+JSON.stringify(b)});
g.mG(this.playerState,2)&&y0(this);b.Tob&&this.Ac(lL(this.playerState,2048));this.Zc.seekTo(a,b);this.Qh.sync()};
g.k.lQ=function(){this.publish("onAbnormalityDetected")};
g.k.getCurrentTime=function(){return this.Zc.getCurrentTime()};
g.k.Pi=function(){return this.Zc.Pi()};
g.k.Lq=function(){return this.Zc.Lq()};
g.k.getPlaylistSequenceForTime=function(a){return this.videoData.getPlaylistSequenceForTime(a-this.Lc())};
g.k.Az=function(){var a=NaN;this.mediaElement&&(a=this.mediaElement.Az());return 0<=a?a:this.getCurrentTime()};
g.k.df=function(){var a;return(null==(a=this.videoData.j)?0:a.df)?this.videoData.j.df(this.getCurrentTime()-this.Lc()):this.mediaElement&&(a=this.mediaElement.gH())&&(a=a.getTime(),!isNaN(a))?a/1E3+this.getCurrentTime():NaN};
g.k.getDuration=function(){return g.BT(this.videoData)&&this.Ub?yY(this.Ub):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Lc():this.Le()?this.Le():0};
g.k.WD=function(){var a=new xcb;this.ya?(PRa(this.W.schedule,a),T$a(this.ya,a)):this.mediaElement&&(a.tv=hL(this.mediaElement));a.Qr=this.Qr;a.Au=this.Au;a.C=this.isAtLiveHead()&&this.isPlaying()?Bdb(this):NaN;return a};
g.k.KF=function(a,b){this.Au+=a;this.Qr+=b};
g.k.Ov=function(){return this.mediaElement?g.mT(this.videoData)?1:nT(this.videoData)?this.isAtLiveHead()||this.er()?1:this.Zc.Ov():this.mediaElement.Ov():0};
g.k.jc=function(a){var b={};if(void 0===a?0:a){Object.assign(b,this.lc().jc());this.mediaElement&&(Object.assign(b,this.mediaElement.jc()),Object.assign(b,this.aE()));this.ya&&Object.assign(b,this.ya.jc());this.Be&&(b.drm=JSON.stringify(this.Be.jc()));b.state=this.playerState.state.toString(16);g.mG(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.Ig));this.Hn()&&(b.prerolls=this.Rp.join(","));this.videoData.Jd&&(b.ismb=this.videoData.Jd);"UNKNOWN"!==this.videoData.latencyClass&&
(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)b.is_mosaic=1;this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(b.playerResponseCpn=this.videoData.playerResponseCpn);this.Bd.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&&
WQ(this.videoData.j)&&(b.segduration=WQ(this.videoData.j)),a=this.Zc,b.lat=a.K?JWa(a.K.D):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.Pf.toFixed(3);if(a=g.bV(this))b.optimal_format=a.video.qualityLabel;b.user_qual=fP();b.release_version="youtube.player.web_20240423_01_RC00";g.BT(this.videoData)&&this.Ub&&(b.ssap=BY(this.Ub))}b.debug_videoId=this.videoData.videoId;return b};
g.k.addCueRange=function(a){this.Iy([a])};
g.k.removeCueRange=function(a){this.Qh.xo([a])};
g.k.tD=function(a,b){return this.Qh.tD(a,b)};
g.k.Iy=function(a,b){this.Qh.lf(a,b)};
g.k.MF=function(a){this.Qh.xo(a)};
g.k.gm=function(){return this.Qh.gm()||[]};
g.k.Vh=function(){return this.visibility.Vh()};
g.k.mu=function(){this.mediaElement&&this.mediaElement.mu()};
g.k.wba=function(){C0(this)};
g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()};
g.k.gK=function(a){var b=a.target.Gf();if(this.mediaElement&&this.mediaElement.Gf()&&this.mediaElement.Gf()===b){meb(this,a.type);switch(a.type){case "error":var c=CDa(this.mediaElement)||"",d=this.mediaElement.wf();if("capability.changed"===c){this.L("html5_restart_on_capability_change")?(this.ma("capchg",{msg:d}),N_(this,!0)):B0(this);return}if(this.mediaElement.hasError()&&Xab(this.Kk,c,{msg:d}))return;if(this.isBackground()&&4===this.mediaElement.Xg()){this.uo();E0(this,"unplayable");return}break;
case "durationchange":c=this.mediaElement.getDuration();isFinite(c)&&(!this.Qa||0<c)&&1!==c&&this.jl(c);break;case "ratechange":this.ya&&this.ya.setPlaybackRate(this.mediaElement.getPlaybackRate());Fcb(this.Qh);this.lc().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":oeb(this);this.publish("onLoadedMetadata");ceb(this);c=this.df();this.videoData.vA&&(this.videoData.vA=c);break;case "loadstart":ceb(this);break;case "progress":case "suspend":this.Nc();this.publish("onLoadProgress",
this,this.Ov());break;case "playing":this.Kb.yu("plev");this.QR&&(this.QR=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{yd:"videoplayer_onPlaying"})));break;case "timeupdate":c=this.mediaElement&&!this.mediaElement.getCurrentTime();d=this.mediaElement&&0===this.mediaElement.Fk();if(c&&(!this.PJ||d))return;this.PJ=this.PJ||!!this.mediaElement.getCurrentTime();beb(this);this.Nc();if(!this.mediaElement||this.mediaElement.Gf()!==b)return;this.publish("onVideoProgress",
this,this.getCurrentTime());break;case "waiting":if(0<this.mediaElement.Rv().length&&0===this.mediaElement.Rh().length&&0<this.mediaElement.getCurrentTime()&&5>this.mediaElement.getCurrentTime()&&this.ya)return;if(this.L("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||2<this.mediaElement.Fk()||!this.mediaElement.Uf()&&QK(this.mediaElement.Rh(),this.mediaElement.getCurrentTime()))){var e=this.mediaElement.jc();e.bh=hL(this.mediaElement).toFixed(3);this.ma("uwe",e)}if(g.BT(this.videoData)&&
this.Ub){e=this.Ub;var f=this.mediaElement.getCurrentTime();if(!e.ek.has(e.bf)){var h=0,l=0,m=e.timeline.B.get(e.bf);if(null==m?0:m.length)for(m=g.u(m).next();!m.done;){l=m.value;h=l.uf();l=l.Ri();break}if(!(0<l&&l>1E3*f+e.qa)&&(l=C4a(e,h))){f=!1;h=void 0;l=g.u(l.segments);for(m=l.next();!m.done;m=l.next()){m=m.value;if(f){h=m;break}m.videoData.clientPlaybackNonce===e.bf&&(f=!0)}l=void 0;h?l=h.videoData.clientPlaybackNonce:f&&(l=null==(c=e.timeline.j)?void 0:c.videoData.clientPlaybackNonce);l?e.finishSegmentByCpn(e.bf,
l,2):e.api.ma("ssap",{mfnc:1,mfncc:null==(d=e.timeline.j)?void 0:d.videoData.clientPlaybackNonce})}}}break;case "resize":oeb(this);this.videoData.B&&"auto"===this.videoData.B.video.quality&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.HV&&g.mG(this.playerState,8)&&!g.mG(this.playerState,1024)&&0===this.getCurrentTime()&&g.VC){E0(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Gf()===b){kdb(this.Zc,a,this.Ub||void 0);this.publish("videoelementevent",
a);b=this.playerState;d=this.WC;f=this.mediaElement;c=this.videoData.clientPlaybackNonce;l=g.BT(this.videoData)&&this.Ub?yY(this.Ub):void 0;if(!g.mG(b,128)){e=b.state;f=f?f:a.target;h=f.getCurrentTime();if(!g.mG(b,64)||"ended"!==a.type&&"pause"!==a.type)if(l=l||f.getDuration(),l=f.isEnded()||1<h&&1.1>Math.abs(h-l),m="pause"===a.type&&f.isEnded(),h="ended"===a.type||"waiting"===a.type||"timeupdate"===a.type&&!g.mG(b,4)&&!j0(d,h),m||l&&h)0<f.AI()&&f.Gf()&&(e=14);else switch(a.type){case "error":CDa(f)&&
(e|=128);break;case "pause":g.mG(b,256)?(e^=256)||(e=64):g.mG(b,32)||g.mG(b,2)||g.mG(b,4)||(e=4,g.mG(b,1)&&g.mG(b,8)&&(e|=1));break;case "playing":h=e;e=(e|8)&-1093;h&4?(e|=1,jL(d,f)):j0(d,f.getCurrentTime())&&(e&=-2);g.mG(b,1)&&jL(d,f)&&(e|=1);break;case "seeking":e|=16;g.mG(b,8)&&(e|=1);e&=-3;break;case "seeked":e&=-17;jL(d,f);break;case "waiting":g.mG(b,2)||(e|=1);jL(d,f);break;case "timeupdate":h=g.mG(b,16),l=g.mG(b,4),(g.mG(b,8)||h)&&!l&&j0(d,f.getCurrentTime())&&(e=8),jL(d,f)&&(e|=1)}d=e;e=
null;d&128&&(e=a.target,f=CDa(e),h=1,f?("capability.changed"===f&&(h=2),l="GENERIC_WITHOUT_LINK",m=e.jc(),m.mediaElem="1",/AUDIO_RENDERER/.test(e.wf())&&(l="HTML5_AUDIO_RENDERER_ERROR"),e={errorCode:f,errorMessage:g.OV[l]||"",ZN:l,FK:nK(m),hI:h,cpn:b.Ig?b.Ig.cpn:""}):e=null,e&&(e.cpn=c));b=kL(b,d,e)}!g.mG(this.playerState,1)&&g.mG(b,1)&&leb(this,"evt"+a.type);this.Ac(b)}}};
g.k.R9=function(a){a="available"===a.j.availability;a!==this.mE&&(this.mE=a,this.publish("airplayavailabilitychange"))};
g.k.S9=function(){var a=(0,g.$C)(),b=this.mediaElement.Vh();this.ma("airplay",{ia:b});!b&&!isNaN(this.qJ)&&2E3>a-this.qJ||(this.qJ=a,b!==this.Vh()&&(a=this.visibility,a.j!==b&&(a.j=b,a.Yf()),this.ma("airplay",{rbld:b}),O_(this)),this.publish("airplayactivechange"))};
g.k.bE=function(a){if(this.ya){var b=this.ya,c=b.G,d=b.currentTime,e=Date.now()-c.Y;c.Y=NaN;c.ma("sdai",{adfetchdone:a,d:e});a&&!isNaN(c.K)&&3!==c.B&&P6a(c.ya,d,c.K,c.G);c.policy.K?c.C=NaN:c.D=NaN;sZ(c,4,3===c.B?"adfps":"adf");B_(b)}};
g.k.Nc=function(a){var b=this;a=void 0===a?!1:a;if(this.mediaElement&&this.videoData){cdb(this.Zc,this.isPlaying());var c=this.getCurrentTime();!this.ya||g.mG(this.playerState,4)&&g.mT(this.videoData)||US(this.videoData)&&g.mG(this.playerState,32)||V$a(this.ya,c);5<c&&(this.Zc.D=c);var d=g.IC();d?g.Zu.Mj(this.ix):g.yB(this.ix);var e=this.mediaElement.isPaused();if((g.pL(this.playerState)||!e||DT(this.videoData))&&!g.mG(this.playerState,128)){var f=function(){if(b.mediaElement&&!g.mG(b.playerState,
128)){b.W.uc()&&meb(b,"pfx");var h=b.getCurrentTime(),l=hL(b.mediaElement),m=g.mG(b.playerState,8),n=j0(b.WC,h),p=DDa(b.WC,h,(0,g.$C)(),l);m&&n?b.Ac(mL(b.playerState,1)):m&&p?(m=b.getDuration(),n=TS(b.videoData),m&&1.1>Math.abs(m-h)?(b.ma("setended",{ct:h,bh:l,dur:m,live:n}),b.mediaElement.Us()?(b.logger.debug("seek to 0 because of looping"),b.seekTo(0,{yd:"videoplayer_loop"})):VX(b)):(g.pL(b.playerState)||leb(b,"progress_fix"),b.Ac(lL(b.playerState,1)))):(m&&!n&&!p&&0<h&&(m=(Date.now()-b.CE)/1E3,
n=b.getDuration(),h>n-1&&b.ma("misspg",{t:h.toFixed(2),d:n.toFixed(2),r:m.toFixed(2),bh:l.toFixed(2)})),b.playerState.isPaused()&&g.pL(b.playerState)&&5<hL(b.mediaElement)&&b.Ac(mL(b.playerState,1)));b.Nc()}};
0===this.mediaElement.Rv().length?this.ix=d?g.Zu.Mi(f,100):g.wB(f,100):this.ix=d?g.Zu.Mi(f,500):g.wB(f,500)}this.videoData.PG=c;!a&&this.isPlaying()&&feb(this);obb(this.nk,this.Mf,this.Xe(),this.isBackground())&&x0(this);this.publish("progresssync",this,a);e&&DT(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}};
g.k.X7=function(){this.cg("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))};
g.k.ND=function(){return this.lc().ND()};
g.k.lO=function(){return this.ya?this.ya.lO():DR(this.W.schedule,!0)};
g.k.Ac=function(a){if(g.EDa(this.playerState,a))this.W.uc()&&a.seekSource!==this.playerState.seekSource&&this.ma("ssdiff",{ps:(this.playerState.seekSource||"").toString(),ns:(a.seekSource||"").toString()});else{this.logger.debug(function(){return"Setting state "+a.toString()});
var b=new g.lG(a,this.playerState);this.playerState=a;neb(this);var c=!this.yK.length;this.yK.push(b);var d=this.mediaElement&&this.mediaElement.Uf();d=8===b.HA.state&&!d;g.oG(b,1)&&d&&g.mG(this.playerState,8)&&!g.mG(this.playerState,64)&&this.ya&&(w$a(this.ya),this.mediaElement&&5<=hL(this.mediaElement)&&mbb(this.nk,this.Mf)&&x0(this));(d=g.YI(this.W.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.mG(a,1)&&(g.mG(a,8)||g.mG(a,16))?this.RM.start(d):this.RM.stop();(0>nG(b,8)||g.oG(b,1024))&&
this.Ew.stop();!g.oG(b,8)||this.videoData.Ga||g.mG(b.state,1024)||this.Ew.start();g.mG(b.state,8)&&0>nG(b,16)&&!g.mG(b.state,32)&&!g.mG(b.state,2)&&this.playVideo();g.mG(b.state,2)&&nT(this.videoData)&&(this.jl(this.getCurrentTime()),this.Nc(!0));g.oG(b,2)&&this.UR(!0);g.oG(b,128)&&this.uo();this.videoData.j&&this.videoData.isLivePlayback&&!this.v1&&(0>nG(b,8)?VQa(this.videoData.j):g.oG(b,8)&&this.videoData.j.resume());adb(this.Zc,b);H4a(this.lc(),b);if(c&&!this.Ma())try{for(var e=g.u(this.yK),f=
e.next();!f.done;f=e.next()){var h=f.value;Gcb(this.Qh,h);this.publish("statechange",h)}}finally{this.yK.length=0}}};
g.k.aF=function(){this.videoData.isLivePlayback||this.L("html5_disable_connection_issue_event")||this.publish("connectionissue")};
g.k.PQ=function(){this.Kb.tick("qoes")};
g.k.eO=function(){this.Zc.eO()};
g.k.ZJ=function(a,b,c,d){a:{var e=this.Kk;d=void 0===d?"LICENSE":d;c=c.substr(0,256);var f=pK(b);"drm.keyerror"===a&&this.Be&&1<this.Be.B.keys.length&&96>e.D&&(a="drm.sessionlimitexhausted",f=!1);if(f)if(e.videoData.B&&e.videoData.B.video.isHdr())cbb(e,a);else{if(e.oa.cg(a,b,d,c),Uab(e,{detail:c}))break a}else e.ue(a,{detail:c});"drm.sessionlimitexhausted"===a&&(e.ma("retrydrm",{sessionLimitExhausted:1}),e.D++,keb(e.oa))}};
g.k.G$=function(){var a=this,b=g.YI(this.W.experiments,"html5_license_constraint_delay"),c=Ypa();b&&c?(b=new g.lv(function(){F0(a);C0(a)},b),g.O(this,b),b.start()):(F0(this),C0(this))};
g.k.cF=function(a){this.publish("heartbeatparams",a)};
g.k.Np=function(a){this.ma("keystatuses",yab(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=zab(b,c);d=I_(a)?Aab(a,d):a.D.includes(d)}else{a:{b=zab(b,c);for(d in a.j)if("output-restricted"===a.j[d].status){var e=a.j[d].type;if(""===b||"AUDIO"===e||b===e){d=!0;break a}}d=!1}d=!d}if(this.L("html5_enable_vp9_fairplay")){if(c)if(a.Z){var f;if(null==(f=this.Be)?0:hR(f.j))if(null==(c=this.Be))c=
0;else{b=f=void 0;e=g.u(c.B.values());for(var h=e.next();!h.done;h=e.next())h=h.value,f||(f=Bab(h,"SD")),b||(b=Bab(h,"AUDIO"));c.dj({sd:f,audio:b});c="output-restricted"===f||"output-restricted"===b}else c=!d;if(c){this.ma("drm",{dshdr:1});cbb(this.Kk);return}}else{this.videoData.yC||(this.videoData.yC=!0,this.ma("drm",{dphdr:1}),N_(this,!0));return}var l;if(null==(l=this.Be)?0:hR(l.j))return}else if(l=a.Z&&d,c&&!l){cbb(this.Kk);return}d||Aab(a,"AUDIO")&&Aab(a,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),
a=yab(a),this.LR?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.L("html5_report_fatal_drm_restricted_error_killswitch")||this.cg("drm.keyerror",2,void 0,"info."+a)):(this.LR=!0,this.ue(new oK("qoe.restart",Object.assign({},{retrydrm:1},a))),x0(this),keb(this)))};
g.k.I$=function(){if(!this.videoData.Ga&&this.mediaElement&&!this.isBackground()){var a="0";0<this.mediaElement.Fk()&&5<=hL(this.mediaElement)&&this.videoData.C&&this.videoData.C.j&&(this.Ac(lL(this.playerState,1)),leb(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),a="1");neb(this);var b=this.videoData.C;a={restartmsg:a,mfmt:!dUa(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].le)||this.Be),mfmtinfo:!this.videoData.B,prerolls:this.Hn()?this.Rp.join(","):
"0"};if(this.Be){b=this.Be;if(0>=b.B.size){var c="ns;";b.Y||(c+="nr;");b=c+="ql."+b.C.length}else b=yab(b.B.values().next().value),b=nK(b);a.drmp=b}var d;Object.assign(a,(null==(d=this.ya)?void 0:d.jc())||{});var e;Object.assign(a,(null==(e=this.mediaElement)?void 0:e.jc())||{});this.lc().ue("qoe.start15s",nK(a));this.publish("loadsofttimeout")}};
g.k.jl=function(a){this.videoData.lengthSeconds!==a&&(this.videoData.lengthSeconds=a,C0(this))};
g.k.UR=function(a){var b=this;a=void 0===a?!1:a;if(!this.sH)if(zH("att_s","player_att")||DH("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.Ia(2);break}return g.z(l,g.Cza(),3);case 3:d=!l.B;case 2:if(d)return l.return();g.Ba(l,4);e=vcb(b.lc());if(!e)throw Error();f={};return g.z(l,g.Bza((f.cpn=b.videoData.clientPlaybackNonce,f.encryptedVideoId=b.videoData.videoId||"",f)),6);case 6:h=l.B;if(b.sH)throw Error();
b.sH=!0;var m=[h.challenge];h.error?m.push("r1c="+h.error):m.push("r1a="+h.webResponse);var n;void 0!==(null==(n=h.adblockReporting)?void 0:n.reportingStatus)&&m.push("r6a="+h.adblockReporting.reportingStatus);var p;void 0!==(null==(p=h.adblockReporting)?void 0:p.broadSpectrumDetectionResult)&&m.push("r6b="+h.adblockReporting.broadSpectrumDetectionResult);e(m.join("&"));DH("att_f",void 0,"player_att");g.Ca(l,0);break;case 4:g.Da(l),DH("att_e",void 0,"player_att"),g.Aa(l)}})})().then(function(){});
else{var c=new g.MNa(this.videoData);if("c1a"in c.zq&&!g.cP.isInitialized()){DH("att_wb",void 0,"player_att");2===this.dN&&.01>Math.random()&&g.eF(Error("Botguard not available after 2 attempts"));if(a)return;if(5>this.dN){g.mv(this.rH);this.dN++;return}}(c=g.NNa(c))?(DH("att_f",void 0,"player_att"),ucb(this.lc(),c),this.sH=!0):DH("att_e",void 0,"player_att")}};
g.k.Le=function(a){return this.Zc.Le(void 0===a?!1:a)};
g.k.Od=function(){return this.Zc.Od()};
g.k.Lc=function(){return this.Zc?this.Zc.Lc():0};
g.k.getStreamTimeOffset=function(){return this.Zc?this.Zc.getStreamTimeOffset():0};
g.k.Ys=function(){var a=0;this.W.L("web_player_ss_media_time_offset")&&(a=0===this.getStreamTimeOffset()?this.Lc():this.getStreamTimeOffset());return a};
g.k.setPlaybackRate=function(a){var b;this.playbackRate!==a&&hbb(this.nk,null==(b=this.videoData.C)?void 0:b.videoInfos)&&(this.playbackRate=a,x0(this));this.playbackRate=a;this.mediaElement&&this.mediaElement.setPlaybackRate(a)};
g.k.getPlaybackRate=function(){return this.playbackRate};
g.k.getPlaybackQuality=function(){var a="unknown";if(this.videoData.B&&(a=this.videoData.B.video.quality,"auto"===a&&this.mediaElement)){var b=Gdb(this);b&&0<b.videoHeight&&(a=cDa(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.Du=function(){this.lc().Du()};
g.k.sendVideoStatsEngageEvent=function(a,b){var c=this.lc();c.j?(c=a0(c.j,"engage"),c.qa=a,c.send(b)):b&&b()};
g.k.Ai=function(a){return this.lc().Ai(a)};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;return TS(this.videoData)&&(this.LX||b)?this.Zc.isAtLiveHead(a):!1};
g.k.Mq=function(){var a=this.Le(),b=this.getCurrentTime(),c;(c=!TS(this.videoData))||(c=this.Zc,c=!(c.B&&c.B.C));return c||this.er()||isNaN(a)||isNaN(b)?0:Math.max(0,a-b)};
g.k.Wn=da(24);g.k.St=da(45);g.k.qo=function(a){this.lc().qo(a)};
g.k.sx=function(a){this.lc().sx(a)};
g.k.JF=function(a){this.lc().JF(a)};
g.k.aE=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}};
g.k.setLoop=function(a){this.loop=a;this.mediaElement&&dS(this.W)&&this.mediaElement.setLoop(a);this.ya&&this.L("html5_loop_skip_set_end_of_stream")&&(a?this.ya.policy.Ra=!0:x$a(this.ya))};
g.k.Us=function(){return this.mediaElement&&dS(this.W)?this.mediaElement.Us():this.loop};
g.k.UQ=function(a){this.ma("timestamp",{o:a.toString()});this.Zc.UQ(a)};
g.k.Td=function(a){this.Kb.tick(a)};
g.k.Gh=function(a){return this.Kb.Gh(a)};
g.k.yu=function(a){this.Kb.yu(a)};
g.k.ma=function(a,b,c){c=void 0===c?!1:c;this.lc().ma(a,b,c)};
g.k.iB=function(a,b,c){c=void 0===c?!1:c;this.lc().ma(a,b,c)};
g.k.ue=function(a){this.lc().ue(a.errorCode,nK(a.details));a=a.errorCode;if(this.videoData.isLivePlayback&&("qoe.longrebuffer"===a||"qoe.slowseek"===a)){a=this.ya?i8a(this.ya.videoTrack):{};var b,c;this.ma("lasoe",Object.assign(this.ya?i8a(this.ya.audioTrack):{},null==(b=this.Qa)?void 0:null==(c=b.j)?void 0:c.wI()));var d,e;this.ma("lvsoe",Object.assign(a,null==(d=this.Qa)?void 0:null==(e=d.B)?void 0:e.wI()))}};
g.k.IF=function(a,b,c){this.lc().IF(a,b,c)};
g.k.XH=function(a){this.videoData.sZ=!0;this.ue(new oK("sabr.fallback",a));N_(this,!0)};
g.k.YH=function(a){this.videoData.S1=!0;this.ue(new oK("qoe.restart",a));N_(this,!0)};
g.k.getPlayerSize=function(){return this.pG.getPlayerSize()};
g.k.Th=function(){return this.pG.Th()};
g.k.zi=function(){return this.Kb};
g.k.Pq=function(){return this.Bd.Pq()};
g.k.getVolume=function(){return this.Bd.getVolume()};
g.k.nE=function(){return this.Bd.nE()};
g.k.isMuted=function(){return this.Bd.isMuted()};
g.k.vz=function(){return this.Bd.vz()};
g.k.LD=function(){return this.Bd.LD()};
g.k.AD=function(){return this.Bd.AD()};
g.k.L=function(a){return this.W.L(a)};
g.k.Mr=function(){var a=this.getCurrentTime(),b=a-this.Lc();var c=this.mediaElement?SK(this.mediaElement.Rh()):0;c=Math.floor(Math.max(c-b,0))+100;var d;if(null==(d=this.ya)?0:d.bG(b,this.Le()))return this.ma("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var e;return(null==(e=this.ya)?0:e.Mr(b,c))?(this.ma("sdai",{skipad:1,ct:b.toFixed(3),adj:c.toFixed(3)}),mdb(this.Zc,a),!0):!1};
g.k.uc=function(){return this.W.uc()};
g.k.DI=function(){if(this.L("html5_generate_content_po_token")&&this.videoData.videoId)return this.videoData.uca||this.Bd.bQ(this.videoData.videoId);this.Bd.RS();return this.W.eg||""};
g.k.oe=function(){return this.videoData.videoId};
g.k.Dz=function(){return this.Bd.Zw};
g.k.zt=function(){return this.Bd.zt()};
g.k.ER=function(a,b){this.ma("requestUtcSeek",{time:a});var c;null==(c=this.ya)||c.ER(a);b&&(this.NB=b)};
g.k.yN=function(){this.NB=0};
g.k.Bm=function(a){this.Bd.Bm(a)};
g.k.xR=function(a,b){var c;null==(c=this.ya)||c.xR(a,b)};
g.k.nN=function(){var a=this.Nq();return!!a&&a.nN()};
g.k.Sh=function(){return this.Ub};
g.k.iG=function(a,b){this.lc().iG(a,b)};
g.k.SD=function(){return this.lc().SD()};
g.k.LO=function(){return this.videoData.zV};
g.k.aL=function(a){this.videoData.zV=a};
g.k.uE=function(){return this.Bd.uE(this)};g.y(g.K0,g.I);g.K0.create=function(a,b,c,d){try{var e="string"===typeof a?a:"player"+g.fb(a),f=G3[e];if(f){try{f.dispose()}catch(l){g.dF(l)}G3[e]=null}var h=new g.K0(a,b,c,d);h.addOnDisposeCallback(function(){G3[e]=null;h.l1&&h.l1()});
return G3[e]=h}catch(l){throw g.dF(l),(l&&l instanceof Error?l:Error(String(l))).stack;}};
g.k=g.K0.prototype;g.k.Fn=function(){return this.visibility};
g.k.getVisibilityState=function(a,b,c,d,e,f,h){return this.visibility.getVisibilityState(a,b,c,d,e,f,h)};
g.k.im=function(){this.rP||(this.rP=g.PH(eU(),yNa()));return this.rP};
g.k.Cj=function(){if(this.mediaElement){this.RB&&(this.events.Pc(this.RB),this.RB=null);g.pC(this.Mt);this.tb&&this.tb.Cj(!0);this.template.Cj();try{this.L("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.LK()}catch(a){g.eF(a)}this.mediaElement=null}};
g.k.Xc=function(){return this.tb};
g.k.ox=function(){var a=this;this.tb!==this.wb&&(this.logger.debug(function(){var b,c;return"release presenting player, type "+(null==(b=a.tb)?void 0:b.getPlayerType())+", vid "+(null==(c=a.tb)?void 0:c.getVideoData().videoId)}),WX(this,this.wb))};
g.k.jz=function(a,b,c){var d=this,e=this.Kb;2===a&&(e=new KXa(this.W));return new g.z0(this.W,a,e,this.template,function(f,h,l){d.Ua.publish(f,h,l)},function(){return d.Ua.getVisibilityState()},this.visibility,this,b,c)};
g.k.X9=function(){Q0(this)||(this.logger.debug("application playback ready"),this.Zp(5))};
g.k.eaa=function(a){if(!Q0(this)){this.logger.debug("playback ready");jfb(this);var b=a.getPlayerState();a.sE()?this.pauseVideo():g.oL(b)&&this.playVideo()}};
g.k.canPlayType=function(a){return sK(a)};
g.k.U=function(){return this.W};
g.k.getVideoData=function(){return this.tb.getVideoData()};
g.k.YD=da(18);g.k.Nd=function(){return this.wb.getVideoData()};
g.k.getVideoLoadedFraction=function(a){a=g.PT(this,a);return a?g.CT(a.getVideoData())?1:(a=a.Xe())?a.Ov():0:0};
g.k.kb=function(){return this.template};
g.k.yb=function(){return this.Qd};
g.k.zi=function(){return this.Kb};
g.k.xB=function(a){var b=g.PT(this,1);b&&VX(b,a)};
g.k.Pq=function(){return this.Qd.Pq()};
g.k.getVolume=function(){return Math.round(this.Ua.getVolume())};
g.k.nE=function(){return this.Ua.isFullscreen()};
g.k.isMuted=function(){return this.Ua.isMuted()};
g.k.LD=function(){if(this.W.L("html5_enable_embedded_player_visibility_signals")&&g.IR(this.W)&&this.YS){var a=this.YS;a=null==a.j?null:Math.round(100*a.j)/100;if(null!=a)return a}};
g.k.AD=function(){if(this.W.L("html5_enable_embedded_player_visibility_signals")&&g.IR(this.W)){var a=this.template.getPlayerSize();if(0<a.height&&0<a.width){a=[Math.round(a.width),Math.round(a.height)];var b=g.YR();1<b&&a.push(b);return a.join(":")}}};
g.k.vz=function(){if(this.tb===this.wb&&this.Db)return this.Db.postId};
g.k.eca=function(){var a=this;this.L("use_rta_only_for_player")||(g.iJ(this.W)?g.gS(this.W,g.xT(this.getVideoData())).then(function(b){fU(eU(),b);YUa(a.getVideoData(),a.W,a.im())}):YUa(this.getVideoData(),this.W,this.im()))};
g.k.iO=function(a){var b=this;return g.H(function(c){return b.YA?c.return(b.YA.iO(a)):c.return(Promise.reject("web po not available"))})};
g.k.RS=function(){this.YA&&this.YA.RS()};
g.k.bQ=function(a){return this.YA?this.YA.bQ(a):""};
g.k.bS=function(a){this.YA=a};
g.k.CF=function(a){1===a&&(this.Kb.tick("vr"),deb(this.tb),LXa(this.Kb,this.tb.getVideoData(),ifb(this)),EYa(this.Qd));var b=this.W;(eS(b)&&b.N||g.OR(b))&&(this.Jf()||this.Ua.gb("onAdStateChange",a))};
g.k.setLoopVideo=function(a){this.tb===this.wb&&this.tb.Us()!==a&&(this.tb.setLoop(a),this.Ua.gb("onLoopChange",a))};
g.k.getLoopVideo=function(){return this.tb.Us()};
g.k.setLoopRange=function(a){var b=!1;!!this.Db!==!!a?b=!0:this.Db&&a&&(b=this.Db.startTimeMs!==a.startTimeMs||this.Db.endTimeMs!==a.endTimeMs||this.Db.postId!==a.postId||this.Db.type!==a.type);if(b){if(this.tb&&$S(this.getVideoData())){b=(null==a?void 0:a.endTimeMs)||-1;var c;null==(c=g.PT(this))||c.ma("slr",{et:b})}this.wb.Qh.sf("applooprange");if(a)c=new g.DJ(a.startTimeMs,a.endTimeMs,{id:"looprange",namespace:"applooprange"}),this.wb.addCueRange(c);else{this.Nd().clipConfig=void 0;var d,e;"repeatChapter"!==
(null==(d=this.Db)?void 0:d.type)||isNaN(Number(null==(e=this.Db)?void 0:e.loopCount))||(c={loopCount:String(this.Db.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.MC("repeatChapterLoopEvent",c))}this.Db=a;this.Ua.gb("onLoopRangeChange",a||void 0);this.tb===this.wb&&(this.VK(),this.tb.Fo())}};
g.k.getLoopRange=function(){return this.Db};
g.k.VK=function(){if(this.tb&&$S(this.getVideoData())){var a;null==(a=g.PT(this))||a.ma("slrre",{})}this.Db&&this.tb===this.wb&&(Teb(this,this.wb.getCurrentTime())?this.Db.loopCount=0:Xeb(this))};
g.k.setPlaybackRate=function(a,b){isNaN(a)||(a=xeb(this,a),this.wb.getPlaybackRate()!==a&&(this.wb.setPlaybackRate(a),b&&!this.W.D&&g.sC("yt-player-playback-rate",a),this.Ua.Em("onPlaybackRateChange",a)))};
g.k.getCurrentTime=function(a,b){b=void 0===b?!0:b;if(3===this.getPresentingPlayerType())return ZT(this.Qd).getCurrentTime();var c=2===a&&this.getVideoData().enableServerStitchedDai,d=g.BT(this.getVideoData());a=c||d?g.PT(this):g.PT(this,a);if(!a)return 0;if(d&&this.Ub)return b=this.Ub,a=a.getCurrentTime(),b=y4a(b,a),a-b/1E3;if(b){if(c&&this.xe&&(b=this.xe.fb/1E3,0!==b))return b;a=P0(this,a);return Z0(this,a.getCurrentTime(),a)}c&&this.xe?(b=this.xe,a=a.getCurrentTime(),a=(b=f4a(b,1E3*a))?a-b.start/
1E3:a):a=a.getCurrentTime();return a};
g.k.Az=function(){var a=g.PT(this);if(!a)return 0;a=P0(this,a);return Z0(this,a.Az(),a)};
g.k.getDuration=function(a,b){b=void 0===b?!0:b;var c=this.getVideoData(),d=2===a&&c.enableServerStitchedDai,e=g.BT(c);var f=d||e?g.PT(this):g.PT(this,a);if(!f)return 0;if(c.hasProgressBarBoundaries()&&!d&&!e){var h,l=Number(null==(h=c.progressBarStartPosition)?void 0:h.utcTimeMillis),m;c=Number(null==(m=c.progressBarEndPosition)?void 0:m.utcTimeMillis);if(!isNaN(l)&&!isNaN(c))return(c-l)/1E3}if(e&&this.Ub)return this.L("html5_ssap_get_current_time_refactor")?(b=this.Ub,d=1E3*b.oa.getCurrentTime(),
b=(b=x4a(b,d))?(b.Ri()-b.uf())/1E3:0):b=z4a(this.Ub,f.getCurrentTime()),1===a&&0===b?f.getDuration():b;if(b)return f=O0(this,f),Z0(this,f.getDuration(),f);d&&this.xe?(a=this.xe,f=f.getCurrentTime(),f=(f=oY(a,1E3*f))?f.durationMs/1E3:0):f=f.getDuration();return f};
g.k.df=function(a){var b=g.PT(this,a);return b?this.Jf(b)?(b=O0(this,b),b.df()-b.getCurrentTime()+this.getCurrentTime(a)):b.df():0};
g.k.addPlayerResponseForAssociation=function(a){this.Ub&&this.Ub.addPlayerResponseForAssociation(a)};
g.k.finishSegmentByCpn=function(a,b){return this.Ub?this.Ub.finishSegmentByCpn(a,b):[]};
g.k.PN=function(){this.template.PN();var a=this.Ua;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=wqa(this.template.element))&&this.events.T(this.template,a,this.onFullscreenChange);this.events.T(window,"resize",this.Eaa)};
g.k.getDebugText=function(a){var b=this.wb.jc(a);if(this.tb&&this.tb!==this.wb){for(var c=this.tb.jc(a),d=g.u(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b["ad"+e]=c[e];if(a){c=b;d={};if(e=kf(document,"movie_player"))d.bounds=e.getBoundingClientRect(),d["class"]=e.className;e={};var f=g.tf("video-ads");f?(pfb(f,e),e.html=f.outerHTML):e.missing=1;f={};var h=g.tf("videoAdUiSkipContainer"),l=g.tf("ytp-ad-skip-button-container"),m=h||l;m?(pfb(m,f),f.ima=h?1:0,f.bulleit=l?1:0):f.missing=1;
d=JSON.stringify({player:d,videoAds:e,skipButton:f});c.ad_skipBtnDbgInfo=d}}a&&this.mediaElement&&(b["0sz"]=""+(0===+this.mediaElement.getSize().area()),b.op=this.mediaElement.XD("opacity"),c=this.mediaElement.Ws().y+this.mediaElement.getSize().height,b.yof=""+(0>=+c),b.dis=this.mediaElement.XD("display"));a&&((a=(0,g.W_)())&&(b.gpu=a),(a=this.W.playerStyle)&&(b.ps=a),this.W.Wa&&(b.webview=1));b.debug_playbackQuality=this.Ua.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_20240423_01_RC00"},b=this.Qb().Ig;b&&(a.player_error_code=b.errorCode,a.player_error_details=JSON.stringify(b.errorDetail));return a};
g.k.getPresentingPlayerType=function(a){if(1===this.appState)return 1;if(Q0(this))return 3;var b;if(a&&(null==(b=this.xe)?0:e4a(b,this.getCurrentTime())))return 2;var c;return g.BT(this.getVideoData())&&(null==(c=this.Ub)?0:B4a(c))?2:g.PT(this).getPlayerType()};
g.k.Zz=function(){return g.BT(this.getVideoData())&&this.Ub?this.Ub.Zz():!1};
g.k.Qb=function(a){return 3===this.getPresentingPlayerType()?ZT(this.Qd).Ee:g.PT(this,a).getPlayerState()};
g.k.getAppState=function(){return this.appState};
g.k.gK=function(a){switch(a.type){case "loadedmetadata":this.SK.start();a=g.u(this.oB);for(var b=a.next();!b.done;b=a.next())b=b.value,gfb(this,b.id,b.Sda,b.Rda,void 0,!1);this.oB=[];break;case "loadstart":this.Kb.yu("gv");break;case "progress":case "timeupdate":2<=SK(a.target.Rh())&&this.Kb.yu("l2s");break;case "playing":g.bS&&this.SK.start();if(g.iJ(this.W))a=!1;else{b=g.aU(this.yb());a="none"===this.mediaElement.XD("display")||0===this.mediaElement.getSize().area();var c=OY(this.template),d=this.tb.getVideoData(),
e=g.JG(this.W);d=aT(d);b=!c||b||e||d||this.W.rb;a=a&&!b}a&&(this.tb.ma("hidden",{},!0),this.getVideoData().Xb||(this.getVideoData().Xb=1,this.LZ(),this.tb.playVideo()))}};
g.k.onLoadProgress=function(a,b){this.Ua.wc("onLoadProgress",b)};
g.k.cba=function(){this.Ua.publish("playbackstalledatstart")};
g.k.onVideoProgress=function(a,b){a=P0(this,a);b=Z0(this,a.getCurrentTime(),a);this.Ua.wc("onVideoProgress",b)};
g.k.onAutoplayBlocked=function(){this.Ua.wc("onAutoplayBlocked")};
g.k.raa=function(){this.Ua.publish("progresssync")};
g.k.daa=function(){this.Ua.wc("onPlaybackPauseAtStart")};
g.k.Z9=function(a){if(1===this.getPresentingPlayerType()){g.oG(a,1)&&!g.mG(a.state,64)&&this.Nd().isLivePlayback&&this.wb.isAtLiveHead()&&1<this.Ua.getPlaybackRate()&&this.setPlaybackRate(1,!0);if(g.oG(a,2)){if(this.Db&&this.Db.endTimeMs>=1E3*(this.getDuration()-1)){Xeb(this);return}Keb(this)}if(g.mG(a.state,128)){var b=a.state;this.cancelPlayback(5);b=b.Ig;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.Ua.Em("onError",mVa(b.errorCode));this.Ua.wc("onDetailedError",{errorCode:b.errorCode,
errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.ZN,cpn:b.cpn});6048E5<(0,g.$C)()-this.W.Sf&&this.Ua.wc("onReloadRequired")}b={};if(a.state.isPlaying()&&!g.pL(a.state)&&!zH("pbresume","ad_to_video")&&zH("_start","ad_to_video")){var c=this.getVideoData();b.clientPlaybackNonce=c.clientPlaybackNonce;c.videoId&&(b.videoId=c.videoId);g.AH(b,"ad_to_video");CH("pbresume",void 0,"ad_to_video");EYa(this.Qd)}this.Ua.publish("applicationplayerstatechange",a)}};
g.k.b_=function(a){3!==this.getPresentingPlayerType()&&this.Ua.publish("presentingplayerstatechange",a)};
g.k.hk=function(a){N0(this,qL(a.state));g.mG(a.state,1024)&&this.Ua.isMutedByMutedAutoplay()&&(X0(this,{muted:!1,volume:this.Hi.volume},!1),Y0(this,!1))};
g.k.V9=function(a,b,c){"newdata"===a&&zeb(this);b=c.clipConfig;"dataloaded"===a&&b&&null!=b.startTimeMs&&null!=b.endTimeMs&&this.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})};
g.k.XE=function(){this.Ua.wc("onPlaybackAudioChange",this.Ua.getAudioTrack().kc.name)};
g.k.nF=function(a){var b=this.tb.getVideoData();a===b&&this.Ua.Em("onPlaybackQualityChange",a.B.video.quality)};
g.k.onVideoDataChange=function(a,b,c){this.logger.debug(function(){return"on video data change "+a+", player type "+b.getPlayerType()+", vid "+c.videoId});
this.W.uc()&&b.ma("vdc",{type:a,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""});b===this.wb&&(this.W.qj=c.oauthToken);if(b===this.wb){this.getVideoData().enableServerStitchedDai&&!this.xe?this.xe=new g.jY(this.Ua,this.W,this.wb):!this.getVideoData().enableServerStitchedDai&&this.xe&&(this.xe.dispose(),this.xe=null);if(this.W.uc()&&g.BT(c)){var d,e;b.ma("ssap",{vdctype:a,vid:c.videoId||"",cpn:this.getVideoData().clientPlaybackNonce||"",tlcpn:(null==(d=this.Tp.j)?void 0:null==(e=d.getVideoData())?
void 0:e.clientPlaybackNonce)||""})}var f,h;!g.BT(this.getVideoData())||"newdata"!==a&&"dataloaded"!==a||this.getVideoData().clientPlaybackNonce===(null==(f=this.Tp.j)?void 0:null==(h=f.getVideoData())?void 0:h.clientPlaybackNonce)?!g.BT(this.getVideoData())&&this.Ub&&(this.W.uc()&&b.ma("ssap",{tlmdis:2,vid:c.videoId||"",cpn:c.clientPlaybackNonce||""}),this.Ub.dispose(),this.Ub=null):(Q3a(this.Tp),d=iY(this.Tp,1,0,1E3*this.getDuration(1),this.getVideoData()),this.Tp.enqueue(d,!0),hY(this.Tp,0,1E3*
this.getDuration(1),[d]),R3a(this.Tp,this.getVideoData().clientPlaybackNonce,[d]),this.Ub&&(this.Ub.dispose(),this.Ub=null,this.W.uc()&&b.ma("ssap",{tlmdis:1})),this.W.uc()&&b.ma("ssap",{tlmcreate:1}),this.Ub=new v4a(this.Ua,this.Tp,this.wb),this.wb.bL(this.Ub))}if("newdata"===a)this.logger.debug("new video data, destroy modules"),DV(this.Qd,2),this.Ua.publish("videoplayerreset",b);else{if(!this.mediaElement)return;"dataloaded"===a&&(this.tb===this.wb?(dSa(c.Ea,c.rT),Peb(this)):Neb(this));1===b.getPlayerType()&&
(this.W.Va&&ofb(this),this.getVideoData().isLivePlayback&&!this.W.Qp&&this.Bg("html5.unsupportedlive",2,"DEVICE_FALLBACK"),c.isLoaded()&&((sUa(c)||this.getVideoData().Iu)&&this.Ua.publish("legacyadtrackingpingchange",this.getVideoData()),c.hasProgressBarBoundaries()&&afb(this)));this.Ua.publish("videodatachange",a,c,b.getPlayerType())}this.Ua.wc("onVideoDataChange",{type:a,playertype:b.getPlayerType()});this.VK();(d=c.YF)?this.Wq.mW(d,c.clientPlaybackNonce):o5a(this.Wq)};
g.k.HH=function(){S0(this,null);this.Ua.wc("onPlaylistUpdate")};
g.k.qaa=function(a){delete this.EK[a.getId()];this.wb.removeCueRange(a);a:{a=this.getVideoData();var b,c,d,e,f,h,l,m,n,p,q=(null==(b=a.Ra)?void 0:null==(c=b.contents)?void 0:null==(d=c.singleColumnWatchNextResults)?void 0:null==(e=d.autoplay)?void 0:null==(f=e.autoplay)?void 0:f.sets)||(null==(h=a.Ra)?void 0:null==(l=h.contents)?void 0:null==(m=l.twoColumnWatchNextResults)?void 0:null==(n=m.autoplay)?void 0:null==(p=n.autoplay)?void 0:p.sets);if(q)for(b=g.u(q),c=b.next();!c.done;c=b.next())if(c=c.value,
e=d=void 0,c=c.autoplayVideo||(null==(d=c.autoplayVideoRenderer)?void 0:null==(e=d.autoplayEndpointRenderer)?void 0:e.endpoint),d=g.V(c,g.WS),f=e=void 0,null!=c&&(null==(e=d)?void 0:e.videoId)===a.videoId&&(null==(f=d)?0:f.continuePlayback)){a=c;break a}a=null}(b=g.V(a,g.WS))&&this.Ua.gb("onPlayVideo",{sessionData:{autonav:"1",itct:null==a?void 0:a.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})};
g.k.Zp=function(a){var b=this;a!==this.appState&&(this.logger.debug(function(){return"app state change "+b.appState+" -> "+a}),2===a&&1===this.getPresentingPlayerType()&&(N0(this,-1),N0(this,5)),this.appState=a,this.Ua.publish("appstatechange",a))};
g.k.Bg=function(a,b,c,d,e){this.wb.cg(a,b,c,d,e)};
g.k.Lr=function(a,b){this.wb.handleError(new oK(a,b))};
g.k.isAtLiveHead=function(a,b){b=void 0===b?!1:b;var c=g.PT(this,a);if(!c)return!1;a=O0(this,c);c=P0(this,c);return a!==c?a.isAtLiveHead(Z0(this,c.getCurrentTime(),c),!0):a.isAtLiveHead(void 0,b)};
g.k.Mq=function(){var a=g.PT(this);return a?O0(this,a).Mq():0};
g.k.seekTo=function(a,b,c,d,e){b=!1!==b;if(d=g.PT(this,d))2===this.appState&&V0(this),this.Jf(d)?$0(this)?this.xe.seekTo(a,{seekSource:e},b,c):this.Vc.seekTo(a,{seekSource:e},b,c):g.BT(this.getVideoData())&&this.Ub?this.Ub.seekTo(a,{GG:!b,MS:c,yd:"application",seekSource:e}):d.seekTo(a,{GG:!b,MS:c,yd:"application",seekSource:e})};
g.k.seekBy=function(a,b,c,d){this.seekTo(this.getCurrentTime()+a,b,c,d)};
g.k.NA=function(){this.Ua.wc("SEEK_COMPLETE")};
g.k.lQ=function(){this.Ua.gb("onAbnormalityDetected")};
g.k.Raa=function(a,b){var c=a.getVideoData();if(1===this.appState||2===this.appState)c.startSeconds=b;2===this.appState?g.mG(a.getPlayerState(),512)||V0(this):this.Ua.wc("SEEK_TO",b)};
g.k.onAirPlayActiveChange=function(){this.Ua.publish("airplayactivechange");this.W.L("html5_external_airplay_events")&&this.Ua.wc("onAirPlayActiveChange",this.Ua.Vh())};
g.k.onAirPlayAvailabilityChange=function(){this.Ua.publish("airplayavailabilitychange");this.W.L("html5_external_airplay_events")&&this.Ua.wc("onAirPlayAvailabilityChange",this.Ua.mE())};
g.k.showAirplayPicker=function(){var a;null==(a=this.tb)||a.mu()};
g.k.pQ=function(){this.Ua.publish("beginseeking")};
g.k.vQ=function(){this.Ua.publish("endseeking")};
g.k.getStoryboardFormat=function(a){return(a=g.PT(this,a))?O0(this,a).getVideoData().getStoryboardFormat():null};
g.k.Vj=function(a){return(a=g.PT(this,a))?O0(this,a).getVideoData().Vj():null};
g.k.Jf=function(a){a=a||this.tb;var b=!1;if(a){a=a.getVideoData();if($0(this))a=a===this.xe.oa.getVideoData();else a:if(b=this.Vc,a===b.j.getVideoData()&&b.B.length)a=!0;else{b=g.u(b.B);for(var c=b.next();!c.done;c=b.next())if(a.bd===c.value.bd){a=!0;break a}a=!1}b=a}return b};
g.k.QC=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=$0(this),n;null==(n=g.PT(this))||n.ma("appattl",{sstm:this.xe?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:m});l=m?a4a(this.xe,a,b,c,d,e,f,h):Q4a(this.Vc,a,c,d,e,f);this.logger.debug(function(){return"Video added to timeline id="+a.video_id+" timelinePlaybackId="+l});
return l};
g.k.jE=function(a,b,c,d,e,f,h){if($0(this)){var l=a4a(this.xe,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.Ut=function(a){var b;null==(b=this.xe)||b.Ut(a)};
g.k.Sy=function(a,b){a=void 0===a?-1:a;b=void 0===b?Infinity:b;$0(this)||Z4a(this.Vc,a,b)};
g.k.IG=function(a,b,c){if($0(this)){var d=this.xe,e=d.Dc.get(a);e?(void 0===c&&(c=e.Yd),e.durationMs=b,e.Yd=c):d.IE("Invalid_timelinePlaybackId_"+a+"_specified")}else{d=this.Vc;e=null;for(var f=g.u(d.B),h=f.next();!h.done;h=f.next())if(h=h.value,h.bd===a){e=h;break}e?(void 0===c&&(c=e.Yd),Y4a(d,e,b,c)):CY(d,"InvalidTimelinePlaybackId timelinePlaybackId="+a)}};
g.k.enqueueVideoByPlayerVars=function(a,b,c,d){c=void 0===c?Infinity:c;d=void 0===d?"":d;this.Jf();a=new g.LS(this.W,a);d&&(a.bd=d);bfb(this,a,b,c)};
g.k.queueNextVideo=function(a,b,c,d,e){c=void 0===c?NaN:c;a=this.preloadVideoByPlayerVars(a,void 0===b?1:b,c,void 0===d?"":d,void 0===e?"":e);b=this.Xc();a&&b&&(this.L("html5_check_queue_on_data_loaded")?this.U().supportsGaplessShorts()&&b.getVideoData().Y&&(c=this.EL,d=this.Ck.N,c.C!==a&&(c.tb=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=U2a(b,a,this.Ck.N),null!=c?(b.ma("sgap",c),b.getVideoData().Y&&I0(b,!1)):(a=a.getVideoData(),b=this.EL,b.j!==
a&&(b.j=a,b.B=1,a.isLoaded()?b.K():b.j.subscribe("dataloaded",b.K,b)))))};
g.k.eI=function(a,b,c,d){var e=this;c=void 0===c?0:c;d=void 0===d?0:d;var f=g.PT(this);f&&(O0(this,f).v1=!0);j3a(this.Ck,a,b,c,d).then(function(){e.Ua.wc("onQueuedVideoLoaded")},function(){})};
g.k.Ct=function(){return this.Ck.Ct()};
g.k.uE=function(a){return this.Ck.uE(a)};
g.k.clearQueue=function(a,b){a=void 0===a?!1:a;b=void 0===b?!1:b;this.logger.debug("Clearing queue");this.Ck.clearQueue(a,b)};
g.k.loadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;if(2===b&&this.Nd().enableServerStitchedDai&&this.wb&&!y_(this.wb)){var f;null==(f=this.wb)||f.ma("lvonss",{vid:(null==a?void 0:a.videoId)||"",ptype:b});return!1}var h=!1;f=new g.LS(this.W,a);g.aS(this.W)&&!f.Xk&&mV(this.Kb);var l,m=this.Kb,n=null!=(l=f.Na)?l:"";m.timerName=n;this.Kb.Gh("pl_i");this.L("web_player_early_cpn")&&f.clientPlaybackNonce&&this.Kb.infoGel({clientPlaybackNonce:f.clientPlaybackNonce});if(this.U().supportsGaplessShorts()&&
!this.L("html5_shorts_gapless_always_fallback")){l=m3a(this.Ck,f,b);if(null==l){N0(this,-1);a=this.Ck;a.app.U().L("html5_gapless_new_slr")?Veb(a.app,"gaplessshortslooprange"):a.app.setLoopRange(null);a.app.getVideoData().zC=!0;var p,q;null==(p=a.j)||null==(q=p.ya)||q.resume();var r;null==(r=a.j)||AY(r.lc());c={yd:"gapless_to_next_video",seekSource:60};var t;null==(t=a.app.Xc())||t.seekTo(l3a(a),c);if(!a.app.Qb(b).isPlaying()){var v;null==(v=g.PT(a.app))||v.playVideo(!0)}a.K();return!0}t=this.L("html5_shorts_gapless_preload_fallback");
v=this.Ck.j;t&&v&&!v.Ma()&&(p=v.getVideoData(),p=this.W.L("html5_autonav_autoplay_in_preload_key")?b1(this,b,p):c1(this,b,p.videoId,p.bd),this.hx.set(p,v,3600));this.Ck.clearQueue(t);var w;null==(w=g.PT(this))||w.ma("sgap",{f:l})}if(e){for(;f.zm.length&&f.zm[0].isExpired();)f.zm.shift();h=f.zm.length-1;h=0<h&&e.B(f.zm[h])&&e.B(f.zm[h-1]);f.zm.push(e)}c||(a&&PXa(a)?(WR(this.W)&&!this.wi&&(a.fetch=0),S0(this,a)):this.playlist&&S0(this,null),a&&(this.wi=WB(!1,a.external_list)),WR(this.W)&&!this.wi&&
T0(this));this.Ua.publish("loadvideo");b=this.Kt(f,b,d);h&&this.Bg("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+f.zm.join()).replace(/[;:,]/g,"_"));return b};
g.k.preloadVideoByPlayerVars=function(a,b,c,d,e){b=void 0===b?1:b;c=void 0===c?NaN:c;d=void 0===d?"":d;e=void 0===e?"":e;var f="";if(this.W.L("html5_autonav_autoplay_in_preload_key"))f=dfb(this,b,a,e);else{var h=$B(a);f=c1(this,b,h,e)}if(this.hx.get(f))return this.logger.debug(function(){return"already preloaded "+f}),null;
a=new g.LS(this.W,a);e&&(a.bd=e);return cfb(this,a,b,c,d)};
g.k.setMinimized=function(a){this.visibility.setMinimized(a);a=this.Qd;a=a.J.U().showMiniplayerUiWhenMinimized?a.Ge.get("miniplayer"):void 0;a&&(this.isMinimized()?a.load():a.unload());this.Ua.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.Ge.get("inline_preview"):void 0;a&&(this.isInline()?a.load():a.unload(),this.Ua.gb("onInlinePreviewModeChange"))};
g.k.wB=function(a){var b=this.W.L("html5_block_pip_non_mse")&&"undefined"===typeof MediaSource,c=this.W.Gl&&this.W.L("html5_block_pip_with_events")||b;a&&c&&this.getVideoData()&&!this.getVideoData().backgroundable?this.hO&&b?this.hO.start():this.SV():this.visibility.wB(a)};
g.k.setSqueezeback=function(a){this.visibility.setSqueezeback(a)};
g.k.SV=function(){var a,b=null==(a=this.mediaElement)?void 0:a.Ib();b&&gC(b).catch(function(c){return g.eF(c)})};
g.k.Oaa=function(){this.mediaElement.Ib();"picture-in-picture"===this.mediaElement.Ib().webkitPresentationMode?this.wB(!0):this.wB(!1)};
g.k.togglePictureInPicture=function(){var a=g.PT(this);a&&a.togglePictureInPicture()};
g.k.Kt=function(a,b,c){b=void 0===b?1:b;this.logger.debug(function(){return"start load video, id "+a.videoId+", type "+b});
zH("_start",this.Kb.timerName)||g.gB(kH)(void 0,this.Kb.timerName);var d=!1,e=Seb(this,b,a,!1);e?(d=!0,a.dispose()):(e=Meb(this,b,a,c),(this.L("html5_onesie")||this.L("html5_load_before_stop"))&&A0(e)&&g.UX(e),this.SK.stop(),1===b&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),WX(this,e));e===this.wb&&(this.W.qj=a.oauthToken);if(!A0(e))return!1;if(e===this.wb){this.Zp(1);c=V0(this);if(d&&this.L("html5_player_preload_ad_fix")&&1===e.getPlayerType()&&e.Sp.j)this.onVideoDataChange("dataloaded",
e,e.getVideoData());return c}Ndb(e);return!0};
g.k.cueVideoByPlayerVars=function(a,b){var c=this;b=void 0===b?1:b;if(this.Nd().enableServerStitchedDai&&this.wb&&!y_(this.wb)&&a&&0<Object.keys(a).length){var d;null==(d=this.wb)||d.ma("qvonss",{vid:(null==a?void 0:a.videoId)||"",ptype:b})}else if(a&&PXa(a))if(this.ow=!0,S0(this,a),(a=g.nV(this.playlist))&&a.qe())e1(this,a,b);else this.playlist.onReady(function(){U0(c)});
else{b||(b=this.getPresentingPlayerType());1===b&&this.HH();d=new g.LS(this.W,a);var e=g.IR(this.W)&&!this.W.qa&&1===b&&!d.isAd()&&!d.wd;this.Ua.publish("cuevideo");e?(this.Xc().getVideoData().loading=!0,WXa(d,a?a:{}).then(function(f){e1(c,f,b)}),d.dispose()):e1(this,d,b)}};
g.k.Io=function(a,b,c,d,e,f,h){if(!a&&!c)throw Error("Playback source is invalid");if(KR(this.W)||g.gJ(this.W))return b=b||{},b.lact=tE(),b.vis=this.Ua.getVisibilityState(),this.Ua.gb("onPlayVideo",{videoId:a,watchEndpoint:f,sessionData:b,listId:c}),!1;NXa(this.Kb);this.Kb.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.ow=!0;efb(this,a,b,c,d)};
g.k.loadPlaylist=function(a,b,c,d){this.ow=!1;efb(this,a,b,c,d)};
g.k.ED=function(){if(this.Ua.isMutedByMutedAutoplay())return!1;if(3===this.getPresentingPlayerType())return!0;WR(this.W)&&!this.wi&&T0(this);return!(!this.playlist||!this.playlist.Pk())};
g.k.Rs=da(14);
g.k.nextVideo=function(a,b){var c=g.XS(this.wb.getVideoData());g.dU(this.Ua)&&c?this.Io(c.videoId,b?c.pD:c.sessionData,c.playlistId,b,void 0,c.GV||void 0):this.wi?this.Ua.wc("onPlaylistNext"):3===this.getPresentingPlayerType()?ZT(this.Qd).nextVideo():this.playlist&&(WR(this.W)&&!this.Ua.isFullscreen()?$eb(this,"yt.www.watch.lists.next"):(this.playlist.Pk(a)&&SXa(this.playlist,QXa(this.playlist)),this.playlist.loaded?(a=b&&this.W.L("html5_player_autonav_logging"),b&&this.Ua.publish("playlistautonextvideo"),this.Kt(g.nV(this.playlist,
void 0,b,a),1)):this.ow=!1))};
g.k.previousVideo=function(a){this.wi?this.Ua.wc("onPlaylistPrevious"):3===this.getPresentingPlayerType()?ZT(this.Qd).BK():this.playlist&&(WR(this.W)&&!this.Ua.isFullscreen()?$eb(this,"yt.www.watch.lists.prev"):(this.playlist.xp(a)&&SXa(this.playlist,RXa(this.playlist)),this.playlist.loaded?this.Kt(g.nV(this.playlist),1):this.ow=!1))};
g.k.playVideoAt=function(a){this.wi?this.Ua.wc("onPlaylistIndex",a):this.playlist&&(this.playlist.loaded?this.Kt(g.nV(this.playlist,a),1):this.ow=!1,SXa(this.playlist,a))};
g.k.getPlaylist=function(){return this.playlist};
g.k.RD=da(22);g.k.T9=function(a){this.Ua.wc("onCueRangeEnter",a.getId())};
g.k.U9=function(a){this.Ua.wc("onCueRangeExit",a.getId())};
g.k.Iy=function(a,b,c){var d=g.PT(this,b);if(d){var e=this.Nd();if(g.BT(e)){if(1===b&&this.Ub)for(var f=vY(this.Ub,e.clientPlaybackNonce),h=g.u(a),l=h.next();!l.done;l=h.next())l=l.value,l.start+=f,l.end+=f,l.Wk=f,l.C=e.clientPlaybackNonce;e=g.u(a);for(f=e.next();!f.done;f=e.next())h=void 0,f.value.playerType=null!=(h=b)?h:1}d.Iy(a,c);b&&this.getPresentingPlayerType()!==b||M0(this,"cuerangesadded",a)}};
g.k.MF=function(a,b){var c=g.PT(this,b);c&&(c.MF(a),b&&this.getPresentingPlayerType()!==b||M0(this,"cuerangesremoved",a))};
g.k.IB=function(){var a=(this.Xc()||this.wb).Qh;a&&a.IB(this.getPresentingPlayerType())};
g.k.Y9=function(){function a(){var d=b.screenLayer||(b.isMinimized()?3:0),e=g.aF(d);if(e&&"UNDEFINED_CSN"!==e){var f=b.W.L("web_player_attach_player_response_ve"),h=b.W.L("web_playback_associated_ve");if(b.W.L("il_via_jspb")){d=new CA;var l=b.getVideoData().clientPlaybackNonce;l=Q(d,1,l);Q(l,3,e);b.getVideoData().ra&&(f||h)&&(f=g.ZE(b.getVideoData().ra),g.qF(e,f),h&&(e=f.getAsJspb(),rk(d,eA,2,e)));if(b.getVideoData().queueInfo){e=b.getVideoData().queueInfo;h=new BA;if(null==e?0:e.enqueueingVe)(null==
e?0:e.enqueueingVe.trackingParams)?(f=g.ZE(e.enqueueingVe.trackingParams),f=f.getAsJspb(),rk(h,eA,1,f)):g.eF(new g.AC("Cannot map enqueueingVe from a client VE "));(null==e?0:e.enqueueingCsn)&&Q(h,2,e.enqueueingCsn);(null==e?0:e.clientEnqueueingTimeMs)&&Gk(h,3,Number(e.clientEnqueueingTimeMs));rk(d,BA,4,h)}e={};b.L("web_playback_associated_log_ctt")&&b.getVideoData().G&&(e.cttAuthInfo={token:b.getVideoData().G,videoId:b.getVideoData().videoId});xva(d,e)}else d={cpn:b.getVideoData().clientPlaybackNonce,
csn:e},b.getVideoData().ra&&(f||h)&&(f=g.ZE(b.getVideoData().ra),g.qF(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.MC("playbackAssociated",d,e)}else g.eF(new g.AC("CSN Missing or undefined during playback association"))}
var b=this;this.getPresentingPlayerType();LXa(this.Kb,this.tb.getVideoData(),ifb(this));R0(this)&&this.W.D&&"embedded"===tT(this.Nd())&&this.TY&&.01>Math.random()&&g.MC("autoplayTriggered",{intentional:this.oY});this.TY=!1;EYa(this.Qd);this.L("web_player_defer_ad")&&Oeb(this);this.Ua.wc("onPlaybackStartExternal");(this.W.L("mweb_client_log_screen_associated"),TR(this.W))||a();var c={};this.getVideoData().G&&(c.cttAuthInfo={token:this.getVideoData().G,videoId:this.getVideoData().videoId});c.sampleRate=
20;BH("player_att",c);if(this.getVideoData().botguardData||this.L("fetch_att_independently"))g.ZR(this.W)||"MWEB"===g.nR(this.W)?g.FC(g.HC(),function(){W0(b)}):W0(this);
this.VK();Web(this)};
g.k.dF=function(){this.Ua.publish("internalAbandon");a1(this)};
g.k.onApiChange=function(){this.W.N&&this.tb?this.Ua.Em("onApiChange",this.tb.getPlayerType()):this.Ua.Em("onApiChange")};
g.k.P$=function(){var a=this.mediaElement;a={volume:g.ye(Math.floor(100*a.getVolume()),0,100),muted:a.zI()};a.muted||Y0(this,!1);this.Hi=g.md(a);this.Ua.wc("onVolumeChange",a)};
g.k.mutedAutoplay=function(){var a=this.getVideoData().videoId;isNaN(this.eQ)&&(this.eQ=this.getVideoData().startSeconds);a&&(this.loadVideoByPlayerVars({video_id:a,playmuted:!0,start:this.eQ}),this.Ua.wc("onMutedAutoplayStarts"))};
g.k.onFullscreenChange=function(){var a=kfb(this);this.Hm(a?1:0);mfb(this,!!a)};
g.k.Hm=function(a){var b=!!a,c=!!this.yz()!==b;this.visibility.Hm(a);this.template.Hm(b);this.L("html5_media_fullscreen")&&!b&&this.mediaElement&&kfb(this)===this.mediaElement.Ib()&&this.mediaElement.rD();this.template.resize();c&&this.Kb.tick("fsc");c&&(this.Ua.publish("fullscreentoggled",b),a=this.Nd(),b={fullscreen:b,videoId:a.LM||a.videoId,time:this.getCurrentTime()},this.Ua.getPlaylistId()&&(b.listId=this.Ua.getPlaylistId()),this.Ua.wc("onFullscreenChange",b))};
g.k.isFullscreen=function(){return this.visibility.isFullscreen()};
g.k.yz=function(){return this.visibility.yz()};
g.k.Eaa=function(){this.tb&&(0!==this.yz()&&1!==this.yz()||this.Hm(kfb(this)?1:0),this.W.Gl&&this.getVideoData()&&!this.getVideoData().backgroundable&&this.mediaElement&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&this.mediaElement.rD())};
g.k.H$=function(a){3!==this.getPresentingPlayerType()&&this.Ua.publish("liveviewshift",a)};
g.k.playVideo=function(a){this.logger.debug(function(){return"play video, player type "+a});
var b=g.PT(this,a);b&&(2===this.appState?(g.aS(this.W)&&mV(this.Kb),V0(this)):g.mG(b.getPlayerState(),2)?(this.seekTo(0),this.W.uc()&&b.ma("szro",{})):b.playVideo())};
g.k.pauseVideo=function(a,b){(a=g.PT(this,a))&&a.pauseVideo(b)};
g.k.stopVideo=function(a){a=void 0===a?!1:a;this.logger.debug(function(){return"stop video"});
var b=this.wb.getVideoData(),c=new g.LS(this.W,{video_id:b.LM||b.videoId,oauth_token:b.oauthToken});c.Z=g.md(b.Z);var d;!a||null!=(d=this.webPlayerContextConfig)&&d.disableStaleness||(c.fV=!0);this.cancelPlayback(6);e1(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.PT(this,b);d?2===b&&1===d.getPlayerType()&&(IUa(this.Nd())||g.BT(this.getVideoData()))?d.ma("canclpb",{r:"no_adpb_ssdai"}):(this.W.uc()&&d.ma("canclpb",{r:a}),1===this.appState||2===this.appState?this.logger.debug(function(){return"cancel playback end, app not started, state "+c.appState}):(d===this.tb&&(this.logger.debug("cancel playback, destroy modules"),DV(this.Qd,a)),1===b&&(d.stopVideo(),a1(this)),d.uo(void 0,6!==a),M0(this,"cuerangesremoved",d.gm()),d.Qh.reset(),this.Ck&&d.isGapless()&&
(d.Cj(!0),d.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")};
g.k.sendVideoStatsEngageEvent=function(a,b,c){(b=g.PT(this,b))&&mSa(this.W,a)?b.sendVideoStatsEngageEvent(a,c):c&&c()};
g.k.Ai=function(a){var b=g.PT(this);return b&&mSa(this.W,a)?b.Ai(a):null};
g.k.updatePlaylist=function(){WR(this.W)?T0(this):g.IR(this.W)&&Qeb(this);this.Ua.wc("onPlaylistUpdate")};
g.k.setSizeStyle=function(a,b){this.v0=a;this.EP=b;this.Ua.publish("sizestylechange",a,b);this.template.resize()};
g.k.xw=function(){return this.EP};
g.k.isMinimized=function(){return this.visibility.isMinimized()};
g.k.isInline=function(){return this.visibility.isInline()};
g.k.xt=function(){return this.visibility.xt()};
g.k.Xz=function(){return this.visibility.Xz()};
g.k.eA=function(){return this.visibility.eA()};
g.k.CP=function(){return this.v0};
g.k.getAdState=function(){if(3===this.getPresentingPlayerType())return ZT(this.Qd).getAdState();if(!this.Jf()){var a=EV(this.yb());if(a)return a.getAdState()}return-1};
g.k.Daa=function(a){var b=this.template.getVideoContentRect();xs(this.FY,b)||(this.FY=b,this.tb&&F0(this.tb),this.wb&&this.wb!==this.tb&&F0(this.wb),1===this.yz()&&this.qF&&mfb(this,!0));this.KP&&g.Je(this.KP,a)||(this.Ua.publish("appresize",a),this.KP=a)};
g.k.Xh=function(){return this.Ua.Xh()};
g.k.Xaa=function(){2===this.getPresentingPlayerType()&&this.Vc.isManifestless()?X4a(this.Vc):(this.xe&&(h4a(this.xe),a1(this)),Jeb(this,"signature"))};
g.k.LZ=function(){this.Cj();L0(this)};
g.k.V$=function(a){"manifest.net.badstatus"===a.errorCode&&a.details.rc===(this.W.experiments.jb("html5_use_network_error_code_enums")?401:"401")&&this.Ua.gb("onPlayerRequestAuthFailed")};
g.k.aF=function(){this.Ua.wc("CONNECTION_ISSUE")};
g.k.cF=function(a){this.Ua.publish("heartbeatparams",a)};
g.k.PK=function(a){this.Ua.gb("onAutonavChangeRequest",1!==a)};
g.k.Xe=function(){return this.mediaElement};
g.k.setBlackout=function(a){this.W.rb!==a&&(this.W.rb=a,this.tb&&(this.tb.Fo(),this.W.Va&&ofb(this),this.tb.qo(a)))};
g.k.X$=function(){var a=g.PT(this);if(a){var b=!this.Ua.rE();(a.LX=b)||a.Ew.stop();a.videoData.j&&(b?a.videoData.j.resume():VQa(a.videoData.j));a.ya&&(b?a.ya.resume():H0(a,!0));g.mG(a.playerState,2)||b?g.mG(a.playerState,512)&&b&&a.Ac(mL(a.playerState,512)):a.Ac(lL(a.playerState,512));a=a.lc();a.qoe&&(a=a.qoe,g.S_(a,g.TM(a.provider),"stream",[b?"A":"I"]))}};
g.k.onLoadedMetadata=function(){this.Ua.wc("onLoadedMetadata")};
g.k.onDrmOutputRestricted=function(){this.Ua.wc("onDrmOutputRestricted")};
g.k.rA=function(){this.oY=!0};
g.k.va=function(){this.Qd.dispose();this.h7.dispose();this.Vc.dispose();this.xe&&this.xe.dispose();this.Tp.removeAll();this.Tp.dispose();this.Ub&&this.Ub.dispose();this.wb.dispose();this.Cj();g.wb(g.cd(this.Vr),this.playlist);g.I.prototype.va.call(this)};
g.k.L=function(a){return this.W.L(a)};
g.k.setScreenLayer=function(a){this.screenLayer=a};
g.k.getInternalApi=function(){return this.Ua.getInternalApi()};
g.k.createSubtitlesModuleIfNeeded=function(){return this.Qd.createSubtitlesModuleIfNeeded()};
g.k.isOrchestrationLeader=function(){var a=GV(this.Qd);return a?a.isOrchestrationLeader():!1};
g.k.getVideoUrl=function(a,b,c,d,e){if(this.Db&&this.Db.postId)return a=this.W.getVideoUrl(a),a=Pn(a,"v"),a.replace("/watch","/clip/"+this.Db.postId);var f=this.Ua.Yc()||"shortspage"===this.W.La;return this.W.getVideoUrl(a,b,c,d,e,f)};
g.k.zt=function(){return this.Ck.zt()};
g.k.Bm=function(a){this.Ua.publish("spsumpstatuschange",a)};
g.k.UE=function(){try{for(var a=g.u(Object.values(this.Vr)),b=a.next();!b.done;b=a.next()){var c=b.value;c.Ma()||c.UE()}if(this.L("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var d=g.u(b5a(this.hx)),e=d.next();!e.done;e=d.next()){var f=e.value;f.Ma()||f.UE()}this.wb.UE()}catch(h){g.eF(h)}};
g.k.rS=function(){return this.xe?this.xe.rS():!1};
var G3={};var Cfb=/[&\?]action_proxy=1/,Bfb=/[&\?]token=([\w-]*)/,Dfb=/[&\?]video_id=([\w-]*)/,Efb=/[&\?]index=([\d-]*)/,Ffb=/[&\?]m_pos_ms=([\d-]*)/,Hfb=/[&\?]vvt=([\w-]*)/,tfb="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(" "),Gfb="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(" "),wfb={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"},xfb={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},zfb={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};h1.prototype.oA=function(a){this.player.zi().tick(a)};
h1.prototype.fetch=function(a,b){var c=this;if(!a.match(/\[BISCOTTI_ID\]/g))return this.B(a,b);var d=1===this.j;d&&this.oA("a_bid_s");var e=rfb();if(null!==e)return d&&this.oA("a_bid_f"),this.B(a,b,e);e=sfb();d&&ng(e,function(){c.oA("a_bid_f")});
return e.then(function(f){return c.B(a,b,f)})};
h1.prototype.B=function(a,b,c){var d=this,e=void 0===b?{}:b;b=e.Cv;var f=e.me,h=e.cueProcessedMs;c=void 0===c?"":c;var l=this.player.getVideoData(1);e=this.player.U().rj;var m={AD_BLOCK:this.j++,AD_BREAK_LENGTH:b?b.rh:0,AUTONAV_STATE:g1(this.player.U()),CA_TYPE:"image",CPN:l.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:1E3*this.player.Mq(),LACT:tE(),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.kb().Th().height,P_W:this.player.kb().Th().width,YT_REMOTE:e?e.join(","):""},n=mpa(lpa);Object.keys(n).forEach(function(q){null!=n[q]&&(m[q.toUpperCase()]=n[q].toString())});
""!==c&&(Oxa("biscotti id requested"),m.BISCOTTI_ID=c);c={};qB(a)&&(c.sts="19837",(b=this.player.U().forcedExperiments)&&(c.forced_experiments=b));var p=nB(g.Wu(a,m),c);return 2!==p.split("?").length?kg(Error("Invalid AdBreakInfo URL")):g.gS(this.player.U(),null==l?void 0:l.oauthToken).then(function(q){if(q&&pB()){var r=eU();fU(r,q)}q=d.player.im(r);r=Ifb(d,p,m,l.isMdxPlayback,h);return g.GH(q,r,"/youtubei/v1/player/ad_break").then(function(t){return t})})};
h1.prototype.reset=function(){this.C=this.j=1};g.y(Jfb,h1);
Jfb.prototype.B=function(a,b,c){b=void 0===b?{}:b;var d=b.Cv,e=b.me,f=b.cueProcessedMs;c=void 0===c?"":c;b=this.j;this.j++;var h=this.player.U().L("h5_disable_macro_substitution_in_get_ad_break")?a:Kfb(this,a,{Cv:d,me:e},c,b);if(2!==h.split("?").length)return Oxa("Invalid AdBreakInfo URL"),kg(Error("Invalid AdBreakInfo URL"));var l=this.player.getVideoData(1).isMdxPlayback,m=c;c=Bfb.exec(h);c=null!=c&&2<=c.length?c[1]:"";a=Cfb.test(h);e=Dfb.exec(h);e=null!=e&&2<=e.length?e[1]:"";var n=Efb.exec(h);
n=null!=n&&2<=n.length&&!Number.isNaN(Number(n[1]))?Number(n[1]):1;var p=Ffb.exec(h);p=null!=p&&2<=p.length?p[1]:"0";var q=SR(this.player.U().Ga),r=g.QG(this.player.getVideoData(1).ra,!0);vfb(this,r,h,""===m?"":m,this.player.U());m={splay:!1,lactMilliseconds:String(tE()),playerHeightPixels:Math.trunc(this.player.kb().Th().height),playerWidthPixels:Math.trunc(this.player.kb().Th().width),vis:Math.trunc(this.player.getVisibilityState()),signatureTimestamp:19837,autonavState:g1(this.player.U())};if(l){l=
{};var t=this.player.U().rj;yfb(l,t?t.join(","):"")&&(m.mdxContext=l)}if(l=Gfb.includes(q)?void 0:g.MB("PREF")){t=l.split(RegExp("[:&]"));for(var v=0,w=t.length;v<w;v++){var A=t[v].split("=");if(("SML"===A[0].toUpperCase()||"GSML"===A[0].toUpperCase())&&1<A.length&&"TRUE"===A[1].toUpperCase()){r.user.lockedSafetyMode=!0;break}}m.autoCaptionsDefaultOn=Afb(l)}h=Hfb.exec(h);(h=null!=h&&2<=h.length?h[1]:"")&&e&&(r.user.credentialTransferTokens=[{token:h,scope:"VIDEO"}]);h={contentPlaybackContext:m};m=
MUa(this.player.getVideoData(1));l=this.player.getVideoData(1).clientPlaybackNonce;f=void 0!==f?Math.round(f).toString():void 0;t=(null==d?0:d.context)?d.context:void 0;d=(d=Math.trunc(1E3*(d?d.rh:0)))?String(d):void 0;v=1E3*this.player.Mq();v=Number.isNaN(v)?0:Math.trunc(v);b={adBlock:b,params:c,breakIndex:n,breakPositionMs:p,clientPlaybackNonce:l,topLevelDomain:q,isProxyAdTagRequest:a,context:r,overridePlaybackContext:h,cueProcessedMs:f,videoId:e?e:void 0,liveTargetingParams:t,breakLengthMs:d,driftFromHeadMs:v?
String(v):void 0,currentMediaTimeMs:String(Math.round(1E3*this.player.getCurrentTime(1))),getAdBreakContext:m?m:void 0};return Lfb(this,b)};var wnb={A4a:"replaceUrlMacros",KZa:"onAboutThisAdPopupClosed",PDa:"executeCommand"};Mfb.prototype.Kq=function(){return"adPingingEndpoint"};
Mfb.prototype.Zs=function(a,b,c){ogb(this.Oa.get(),a,b,c)};Nfb.prototype.Kq=function(){return"changeEngagementPanelVisibilityAction"};
Nfb.prototype.Zs=function(a){this.J.gb("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:a})};Ofb.prototype.Kq=function(){return"loggingUrls"};
Ofb.prototype.Zs=function(a,b,c){a=g.u(a);for(var d=a.next();!d.done;d=a.next())d=d.value,ogb(this.Oa.get(),d.baseUrl,b,c,d.attributionSrcMode)};g.y(Qfb,g.I);g.y(j1,g.I);g.k=j1.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)kG("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.Ha.get().fk(a,b,c,d,e,f,h,l);this.Ta.get().fk(a,b,c,d,e,f,h,l);var m;null==(m=this.Df)||m.get().fk(a,b,c,d,e,f,h,l);this.B.fk(a,b,c,d,e,f,h,l);m=g.u(this.listeners);for(var n=m.next();!n.done;n=m.next())n.value.fk(a,b,c,d,e,f,h,l)}};
g.k.dF=function(){this.j&&this.Vn(this.j)};
g.k.Vn=function(a){this.j=void 0;for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Vn(a)};k1.prototype.tH=function(a,b,c,d,e){var f=this;Sfb(this,a,b,d,e,function(){f.contentCpn=null;f.adCpn=null;f.videoId=null;f.adVideoId=null;f.adFormat=null;f.C="AD_PLACEMENT_KIND_UNKNOWN";f.actionType="unknown_type";f.D=!1;f.B=!1;f.G=!b&&0===c})};
k1.prototype.reset=function(){return new k1(this.J)};g.y(m1,g.I);m1.prototype.addCueRange=function(a,b,c,d,e,f,h){f=void 0===f?3:f;h=void 0===h?1:h;this.j.has(a)?kG("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:a}):(a=new Vfb(a,b,c,d,f),this.j.set(a.id,{me:a,listener:e,Eo:h}),this.J.lf([a],h))};
m1.prototype.removeCueRange=function(a){var b=this.j.get(a);b?(this.J.xo([b.me],b.Eo),this.j.delete(b.me.id)):kG("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:a})};
m1.prototype.onCueRangeEnter=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeEnter(a.id)};
m1.prototype.onCueRangeExit=function(a){if(this.j.has(a.id))this.j.get(a.id).listener.onCueRangeExit(a.id)};
g.y(Vfb,g.DJ);n1.prototype.CF=function(a){this.J.CF(a)};
n1.prototype.Yt=function(a){var b=g.Ia.apply(1,arguments);"onAdStart"===a||"onAdEnd"===a?this.J.Em.apply(this.J,[a].concat(g.qa(b))):this.J.gb.apply(this.J,[a].concat(g.qa(b)))};o1.prototype.rd=function(a){return a&&q1(this)};
o1.prototype.kS=function(){return this.J.U().experiments.jb("h5_enable_generic_error_logging_event")};var bgb=null;g.y(agb,g.wF);agb.prototype.vO=function(a){return this.j.hasOwnProperty(a)?this.j[a].vO():{}};
g.Va("ytads.bulleit.getVideoMetadata",function(a){return s1().vO(a)});
g.Va("ytads.bulleit.triggerExternalActivityEvent",function(a,b,c){var d=s1();c=$fb(c);null!==c&&d.publish(c,{queryId:a,viewabilityString:b})});g.k=t1.prototype;
g.k.Hh=function(a,b){if(!this.j.has(a))return{};if("seek"===b){b=this.J.U().L("html5_dai_enable_active_view_creating_completed_adblock");b=void 0===b?!1:b;var c=Ur(Vu).LI(a,{});c?Ut(c):b&&(a=Ur(Vu).LF(null,ls(),!1,a),a.bk=3,Nja([a]));return{}}b=dgb(b);if(null===b)return{};var d=this.J.Xc(),e=d&&Gdb(d);if(!e)return{};p1(this.Ca.get())?(d=this.J.getPresentingPlayerType(!0),d=null==(c=this.J.getVideoData(d))?void 0:c.isAd()):d=this.J.U().L("enable_server_stitched_dai")?2===this.J.getPresentingPlayerType(!0):2===
d.getPlayerType();if(!d)return{};c={opt_adElement:e,opt_fullscreen:this.Ha.get().isFullscreen()};return Nka(b,a,c)};
g.k.Rw=function(a){var b;null==(b=this.j.get(a.queryId))||b.Rw()};
g.k.Qw=function(a){var b;null==(b=this.j.get(a.queryId))||b.Qw()};
g.k.Sw=function(a){var b;null==(b=this.j.get(a.queryId))||b.Sw()};
g.k.Ow=function(a){var b;null==(b=this.j.get(a.queryId))||b.Ow()};
g.k.Pw=function(a){var b;null==(b=this.j.get(a.queryId))||b.Pw()};jgb.prototype.send=function(a,b,c,d){try{kgb(this,a,b,c,void 0===d?!1:d)}catch(e){}};g.y(lgb,jgb);var xnb=pa(["attributionsrc"]);
mgb.prototype.send=function(a,b,c,d){var e=!1;try{var f=new g.xp(a);if(!this.Ca.get().J.U().experiments.jb("replace_client_url_parsing_with_server_signal")&&"2"===f.B.get("ase")||"ATTRIBUTION_SRC_MODE_LABEL_CHROME"===d||"ATTRIBUTION_SRC_MODE_XHR_OPTION"===d)e=!0,a=xta(a);else if("1"===f.B.get("ase")&&"video_10s_engaged_view"===f.B.get("label")){g.eF(Error("Unexpected OT1 traffic for the Chrome API."));var h=document.createElement("img");Mba([new te(xnb[0].toLowerCase())],h,"attributionsrc",a+"&asr=1")}d=
e;var l=a.match(fn);if("https"===l[1])var m=a;else l[1]="https",m=dn("https",l[2],l[3],l[4],l[5],l[6],l[7]);var n=Rka(m);l=[];qB(m)&&(l.push({headerType:"USER_AUTH"}),l.push({headerType:"PLUS_PAGE_ID"}),l.push({headerType:"VISITOR_ID"}),l.push({headerType:"EOM_VISITOR_ID"}),l.push({headerType:"AUTH_USER"}),l.push({headerType:"DATASYNC_ID"}));!this.Ca.get().J.U().experiments.jb("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(p){}};y1.prototype.Ai=function(){var a=this.J.Xc();return a&&(a=a.Ai(1))?a:null};g.y(z1,g.I);g.k=z1.prototype;g.k.uh=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.WM.clear();this.MP=null;this.Nr.get().clear()};
g.k.Vn=function(){};
g.k.Me=function(a){var b=this.J.getVideoData(a);return b?this.uH(b,a||this.J.getPresentingPlayerType(!0)):null};
g.k.vba=function(a,b,c,d,e){"nPpU29QrbiU"===b.videoId&&jK(this,"ads_ssm_vdc_s",{pt:c,dvt:a});SM(this.Ca.get())&&"dataloaded"!==a||vgb(this,b,c);if(q1(this.Ca.get())&&"newdata"===a&&void 0!==e){a=this.uh();var f=b.clientPlaybackNonce,h={};mK(this,"rte",(h.ec=f,h.xc=null==d?void 0:d.clientPlaybackNonce,h.tr=e,h.pt=c,h.ia=f!==a,h.ctp=lK(f),h));b=b.clientPlaybackNonce;d=null==d?void 0:d.clientPlaybackNonce;e=wgb(e);if(1!==e)if(void 0!==d)for(c=g.u(this.listeners),a=c.next();!a.done;a=c.next())a.value.iK(d,
b,e);else kG("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:b,transitionReason:String(e)});e=g.u(this.listeners);for(d=e.next();!d.done;d=e.next())d.value.hK(b)}};
g.k.Saa=function(a,b){void 0!==a&&(this.MP=a,void 0===b?kG("Expected ad video start time on SS video changed"):this.WM.set(a,b));var c=this.J.getPresentingPlayerType(!0),d=this.J.getVideoData(c);this.J.getVideoData(1).ma("ads_ssvc",{pt:c,cpn:null==d?void 0:d.clientPlaybackNonce,crtt:this.J.getCurrentTime(1,!1),atlh:this.J.isAtLiveHead(),adstt:b});d?vgb(this,d,c):kG("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.J.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:a})};
g.k.uH=function(a,b){var c=a.author,d=a.clientPlaybackNonce,e=a.isListed,f=a.bd,h=a.title,l=a.Wi,m=a.Bj,n=a.isMdxPlayback,p=a.Nm,q=a.mdxEnvironment,r=a.isAutonav,t=a.Yp,v=a.Xk,w=a.Xo,A=a.videoId||"",C=a.profilePicture||"",F=a.Bl||"",G=a.Rk()||!1;a=a.zv||void 0;f=this.Nr.get().j.get(f)||{layoutId:null,slotId:null};var L=this.J.getVideoData(1),M=L.dc();L=L.getPlayerResponse();b=1E3*this.J.getDuration(b);var R=1E3*this.J.getDuration(1),ea,ma,oa=(null==L?void 0:null==(ea=L.playerConfig)?void 0:null==
(ma=ea.daiConfig)?void 0:ma.enableDai)||!1,ia,va;ea=(null==L?void 0:null==(ia=L.playerConfig)?void 0:null==(va=ia.daiConfig)?void 0:va.enablePreroll)||!1;return Object.assign({},f,{videoId:A,author:c,clientPlaybackNonce:d,Kba:b,Es:R,daiEnabled:oa,qW:ea,isListed:e,dc:M,profilePicture:C,title:h,Bl:F,Wi:l,Bj:m,zv:a,isMdxPlayback:n,Nm:p,mdxEnvironment:q,isAutonav:r,Yp:t,Xk:v,Xo:w,Rk:G})};
g.k.va=function(){this.listeners.length=0;this.Dv=null;g.I.prototype.va.call(this)};g.y(A1,g.I);g.k=A1.prototype;g.k.fk=function(){var a=this;q1(this.Ca.get())||(this.j=Ld(function(){a.J.Ma()||a.J.Cg("ad",1)}))};
g.k.Vn=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.tQ=function(){};
g.k.playVideo=function(){this.J.playVideo()};
g.k.pauseVideo=function(){this.J.pauseVideo()};
g.k.resumeVideo=function(a){this.Pn(a)&&this.J.playVideo()};
g.k.Pn=function(a){return 2===this.J.getPlayerState(a)};
g.k.getCurrentTimeSec=function(a,b){var c=this.Ta.get().MP;return 2!==a||b||null===c?this.J.getCurrentTime(a,b):ygb(this,c)};
g.k.getVolume=function(){return this.J.getVolume()};
g.k.isMuted=function(){return this.J.isMuted()};
g.k.getPresentingPlayerType=function(){return this.J.getPresentingPlayerType(!0)};
g.k.getPlayerState=function(a){return this.J.getPlayerState(a)};
g.k.isFullscreen=function(){return this.J.isFullscreen()};
g.k.isAtLiveHead=function(){return this.J.isAtLiveHead()};
g.k.yB=function(a){this.J.yB(a)};
g.k.saa=function(){var a=this.J.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(a,!1);if(2===a){a=g.u(this.listeners);for(var c=a.next();!c.done;c=a.next())c.value.Di(b)}else if(1===a)for(a=g.u(this.cD),c=a.next();!c.done;c=a.next())c.value.tQ(b)};
g.k.haa=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ei(a,this.getPresentingPlayerType())};
g.k.onFullscreenToggled=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.onFullscreenToggled(a)};
g.k.onVolumeChange=function(){for(var a=g.u(this.listeners),b=a.next();!b.done;b=a.next())b.value.onVolumeChange()};
g.k.hh=function(){for(var a=this.J.isMinimized(),b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.hh(a)};
g.k.vj=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.vj(a)};
g.k.Tb=function(){for(var a=this.J.kb().Th(),b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.Ui(a)};
g.k.uj=function(a){for(var b=g.u(this.listeners),c=b.next();!c.done;c=b.next())c.value.uj(a)};
g.k.xj=function(){for(var a=g.u(this.listeners),b=a.next();!b.done;b=a.next())b.value.xj()};g.y(Cgb,g.I);g.y(E1,g.I);E1.prototype.va=function(){this.Sn.Ma()||this.Sn.get().removeListener(this);g.I.prototype.va.call(this)};F1.prototype.fetch=function(a){var b=a.oW;return this.j.fetch(a.E1,{Cv:void 0===a.Cv?void 0:a.Cv,me:b,cueProcessedMs:void 0===a.cueProcessedMs?0:a.cueProcessedMs}).then(function(c){return Dgb(c,b)})};g.y(G1,g.I);g.k=G1.prototype;g.k.addListener=function(a){this.listeners.push(a)};
g.k.removeListener=function(a){this.listeners=this.listeners.filter(function(b){return b!==a})};
g.k.gL=function(a){Egb(this,a,1)};
g.k.onAdUxClicked=function(a,b){H1(this,function(c){c.fg(a,b)})};
g.k.nQ=function(a){H1(this,function(b){b.TO(a)})};
g.k.mQ=function(a){H1(this,function(b){b.SO(a)})};
g.k.Q9=function(a){H1(this,function(b){b.RI(a)})};I1.prototype.reduce=function(a){switch(a.event){case "unknown":return}var b=a.identifier;var c=this.j[b];c?b=c:(c={eD:null,HY:-Infinity},b=this.j[b]=c);c=a.startSecs+a.j/1E3;if(!(c<b.HY))if(b.HY=c,b.eD){if(c<b.eD.end){a:{c=b.eD;switch(a.event){case "start":case "continue":case "stop":break;default:a=null;break a}a=c.start+a.rh;a=c.end<=a?null:a}if(null!==a)for(b.eD.end=a,b=this.B,g.Zb(b.C.j,1E3*a),b=g.u(b.listeners),c=b.next();!c.done;c=b.next())c.value.EZ(a)}}else if(a=Fgb(a,this.C))c=a.M8,b.eD=
a.y6,Hgb(this.B,c)};
I1.prototype.updateTime=function(){};g.y(J1,g.I);g.k=J1.prototype;
g.k.fk=function(){this.G=new I1(this,Xfb(this.Ca.get()));this.C=new Ggb;var a=this.J.getVideoData(1);if(!a.enableServerStitchedDai){var b=this.J.getVideoData(1),c;(null==(c=this.j)?void 0:c.clientPlaybackNonce)!==b.clientPlaybackNonce&&(null!=this.j&&this.j.unsubscribe("cuepointupdated",this.uQ,this),b.subscribe("cuepointupdated",this.uQ,this),this.j=b)}this.sL.length=0;var d;b=(null==(d=a.j)?void 0:MQa(d,0))||[];d=g.u(b);for(b=d.next();!b.done;b=d.next())b=b.value,this.Rt(b)&&kG("Unexpected a GetAdBreak to go out without player waiting",
void 0,void 0,{cuePointId:b.identifier,cuePointEvent:b.event,contentCpn:a.clientPlaybackNonce})};
g.k.Vn=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.Rt=function(a){Jgb(this,a);this.G.reduce(a);a=this.D;this.D=!1;return a};
g.k.uQ=function(a){var b=this.J.getVideoData(1).isDaiEnabled();if(b||!g.gJ(this.J.U())){a=g.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Jgb(this,c),b?this.G.reduce(c):0!==this.J.getCurrentTime(1)&&"start"===c.event&&(this.Ca.get().J.U().experiments.jb("ignore_overlapping_cue_points_on_endemic_live_html5")&&(null==this.B?0:c.startSecs+c.rh>=this.B.startSecs&&c.startSecs<=this.B.startSecs+this.B.rh)?kG("Latest Endemic Live Web cue point overlaps with previous cue point"):(this.B=c,Hgb(this,
c)))}};
g.k.va=function(){null!=this.j&&(this.j.unsubscribe("cuepointupdated",this.uQ,this),this.j=null);this.listeners.length=0;this.sL.length=0;g.I.prototype.va.call(this)};K1.prototype.addPlayerResponseForAssociation=function(a){this.J.addPlayerResponseForAssociation(a)};g.k=M1.prototype;g.k.QC=function(a,b,c,d,e,f,h){return this.J.QC(a,b,c,d,e,f,h)};
g.k.Sy=function(a,b){this.J.Sy(a,b)};
g.k.IG=function(a,b,c){this.J.IG(a,b,c)};
g.k.Ut=function(a){this.J.Ut(a)};
g.k.jE=function(a,b,c,d,e,f,h){this.J.jE(a,b,c,d,e,f,h)};
g.k.Mr=function(){return this.J.Mr()};
g.k.finishSegmentByCpn=function(a,b){this.J.finishSegmentByCpn(a,b)};g.y(Mgb,g.I);g.y(Ngb,g.I);g.y(Ogb,g.I);g.y(Pgb,g.I);g.y(Qgb,g.I);g.y(Sgb,g.I);Sgb.prototype.C=function(){return this.B};g.y(Tgb,ZF);
Tgb.prototype.D=function(a){var b=a.content;if("shopping-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.gb("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.gb("updateKevlarOrC3Companion",{})}else if("action-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);
this.j.gb("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.gb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.gb("updateKevlarOrC3Companion",{})}else if("image-companion"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.gb("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.gb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.gb("updateKevlarOrC3Companion",{})}else if("top-banner-image-text-icon-buttoned"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.gb("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.gb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.gb("updateKevlarOrC3Companion",{})}else if("banner-image"===b.componentType)switch(a.actionType){case 1:case 2:a=this.j.getVideoData(1);this.j.gb("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.gb("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.gb("updateKevlarOrC3Companion",{})}else if("ads-engagement-panel"===b.componentType)switch(b=b.renderer,a.actionType){case 1:case 2:this.j.gb("updateEngagementPanelAction",b.addAction);this.j.gb("changeEngagementPanelVisibility",
b.expandAction);break;case 3:this.j.gb("changeEngagementPanelVisibility",b.hideAction),this.j.gb("updateEngagementPanelAction",b.removeAction)}};g.y(Ugb,dG);g.k=Ugb.prototype;
g.k.init=function(a,b,c){dG.prototype.init.call(this,a,b,c);g.zs(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.ra.classList.add("ytp-ad-timed-pie-countdown-unified"));this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){fG(this);dG.prototype.hide.call(this)};
g.k.show=function(){eG(this);dG.prototype.show.call(this)};
g.k.Vp=function(){this.hide()};
g.k.oo=function(){if(this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&g.zs(this.B,"stroke-dasharray",a.current/a.seekableEnd*this.C+" "+this.C)}};g.y(Vgb,FF);g.k=Vgb.prototype;
g.k.init=function(a,b,c){FF.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.yM))if(a=b.durationMilliseconds||0,"number"!==typeof a||0>=a)g.dF(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+a));else if(b.navigationEndpoint){var d=this.api.getVideoData(2);if(null!=d){var e=b.image.thumbnail.thumbnails;null!=e&&
0<e.length&&g.ec(g.Ye(e[0].url))&&(e[0].url=d.profilePicture,g.ec(g.Ye(d.profilePicture))&&u3a("VideoPlayer",239976093,"Expected non-empty profile picture."));e=b.backgroundImage.thumbnail.thumbnails;null!=e&&0<e.length&&g.ec(g.Ye(e[0].url))&&(e[0].url=d.Yg());e=b.headline;null!=e&&g.ec(g.Ye(e.text))&&(e.text=d.author)}this.Y.init(uF("ad-image"),b.image,c);this.G.init(uF("ad-text"),b.headline,c);this.C.init(uF("ad-text"),b.description,c);this.Na.init(uF("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.bb.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Cf.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.ra.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Da.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new PF(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,d);g.O(this,this.actionButton);this.actionButton.Ja(this.fb);this.actionButton.init(uF("button"),g.V(b.actionButton,g.yM),c);av(this.actionButton.element);d=iv(this.actionButton.element);hv(this.actionButton.element,
d+" This link opens in new tab");this.navigationEndpoint=b.navigationEndpoint;this.D.T(this.ra,"click",this.aO,this);this.D.T(this.Va,"click",this.aO,this);!this.api.U().L("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.U().B||this.D.T(this.Wa,"click",this.aO,this);this.j=this.nS?new AG(this.api,a):new BG(a);g.O(this,this.j);if(b.skipButton){if((a=g.V(b.skipButton,Pjb))&&this.j&&(this.skipButton=new pG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.j,this.dL),
g.O(this,this.skipButton),this.skipButton.Ja(this.element),this.skipButton.init(uF("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,Ojb))a=new yG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,!0,!1),a.Ja(this.Da),a.init(uF("simple-ad-badge"),c,this.macros),g.O(this,a);if(c=b.adInfoRenderer)if(c=g.V(c,wM))a=new bG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.element),a.Ja(this.Da),a.init(uF("ad-info-hover-text-button"),
c,this.macros),g.O(this,a)}}else b.nonskippableOverlayRenderer&&(a=g.V(b.nonskippableOverlayRenderer,xM))&&this.j&&(this.B=new iG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.j,!1),g.O(this,this.B),this.B.Ja(this.element),this.B.init(uF("ad-preview"),a,c));b.countdownRenderer&&(b=b.countdownRenderer,g.V(b,Qjb)&&this.j&&(c=new Ugb(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.j),g.O(this,c),c.Ja(this.element),c.init(uF("timed-pie-countdown"),g.V(b,Qjb),
this.macros)));this.show();this.element.focus()}else g.dF(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.dF(Error("AdActionInterstitialRenderer has no button."));else g.dF(Error("AdActionInterstitialRenderer has no background AdImage."));else g.dF(Error("AdActionInterstitialRenderer has no description AdText."));else g.dF(Error("AdActionInterstitialRenderer has no headline AdText."));else g.dF(Error("AdActionInterstitialRenderer has no image."))};
g.k.clear=function(){g.pC(this.D);this.hide()};
g.k.show=function(){Wgb(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();FF.prototype.show.call(this)};
g.k.hide=function(){Wgb(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();FF.prototype.hide.call(this)};
g.k.aO=function(){this.navigationEndpoint&&(this.layoutId?this.ib.executeCommand(this.navigationEndpoint,this.layoutId):g.dF(Error("Missing layoutId for ad action interstitial.")))};var ahb={iconType:"CLOSE"},Q1=new g.Ie(320,63);g.y($gb,FF);g.k=$gb.prototype;
g.k.init=function(a,b,c){FF.prototype.init.call(this,a,b,c);this.D=b;this.Y=g.Lb(this.D.onClickCommands||[]);this.Va=this.D.onErrorCommand||null;if(a=this.D.contentSupportedRenderer)a=this.D.contentSupportedRenderer,b=this.D.adInfoRenderer||null,g.V(a,Ljb)?(this.G=g.tf("ytp-ad-overlay-ad-info-button-container",this.C.element),bhb(this,b),a=dhb(this,g.V(a,Ljb))):g.V(a,Mjb)?(this.G=g.tf("ytp-ad-overlay-ad-info-button-container",this.B.element),bhb(this,b),a=ehb(this,g.V(a,Mjb))):g.V(a,Njb)?(this.G=
g.tf("ytp-ad-overlay-ad-info-button-container",this.j.element),bhb(this,b),a=fhb(this,g.V(a,Njb))):(g.dF(Error("InvideoOverlayAdRenderer content could not be initialized.")),a=!1);a&&(this.show(),ghb(this,!0))};
g.k.clear=function(){ghb(this,!1);this.Na.reset();this.ra=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.lba=function(){this.bb&&(this.layoutId?this.ib.executeCommand(this.bb,this.layoutId):g.dF(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()};
g.k.SL=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var a=this.D.closeButton.buttonRenderer;if(a.serviceEndpoint){a=[a.serviceEndpoint];break a}}a=[]}a=g.u(a);for(var b=a.next();!b.done;b=a.next())b=b.value,this.layoutId?this.ib.executeCommand(b,this.layoutId):g.dF(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)};
g.k.O9=function(){this.Wa||2!==this.api.getPlayerState(1)||this.api.playVideo()};
g.k.MQ=function(){this.Wa||2!==this.api.getPlayerState(1)||this.api.playVideo();this.api.MQ("invideo-overlay")};
g.k.P9=function(a){a.target===this.G&&g.tf("ytp-ad-button",this.fb.element).click()};g.y(hhb,dG);g.k=hhb.prototype;g.k.init=function(a,b,c){dG.prototype.init.call(this,a,b,c);a=b.durationMs;this.C=null==a||0===a?0:a+1E3*this.j.getProgressState().current;if(b.text)var d=b.text.templatedAdText;else b.staticMessage&&(d=b.staticMessage);this.messageText.init(uF("ad-text"),d,c);this.messageText.Ja(this.B.element);this.D.show(100);this.show()};
g.k.clear=function(){this.hide()};
g.k.hide=function(){ihb(this,!1);dG.prototype.hide.call(this);this.B.hide();this.messageText.hide();fG(this)};
g.k.show=function(){ihb(this,!0);dG.prototype.show.call(this);eG(this);this.B.show();this.messageText.show()};
g.k.Vp=function(){this.hide()};
g.k.oo=function(){if(null!=this.j){var a=this.j.getProgressState();null!=a&&null!=a.current&&(a=1E3*a.current,!this.ra&&a>=this.C?(this.D.hide(),this.ra=!0):this.messageText&&this.messageText.isTemplated()&&(a=Math.max(0,Math.ceil((this.C-a)/1E3)),a!==this.G&&(Fxa(this.messageText,{TIME_REMAINING:String(a)}),this.G=a)))}};g.y(jhb,FF);g.k=jhb.prototype;
g.k.init=function(a,b,c){FF.prototype.init.call(this,a,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.V(b.actionButton,g.yM)?(this.C.init(uF("ad-image"),b.image,c),this.B.init(uF("ad-text"),b.headline,c),this.D.init(uF("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 PF(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,
a),b.backgroundColor&&g.zs(this.element,"background-color",g.KG(b.backgroundColor)),g.O(this,this.actionButton),this.actionButton.Ja(this.G),this.actionButton.init(uF("button"),g.V(b.actionButton,g.yM),c),b=g.YI(this.api.U().experiments,"player_underlay_video_width_fraction"),this.api.U().L("place_shrunken_video_on_left_of_player")?(c=this.j,g.wv(c,"ytp-ad-underlay-left-container"),g.uv(c,"ytp-ad-underlay-right-container"),g.zs(this.j,"margin-left",Math.round(100*(b+.02))+"%")):(c=this.j,g.wv(c,"ytp-ad-underlay-right-container"),
g.uv(c,"ytp-ad-underlay-left-container")),g.zs(this.j,"width",Math.round(100*(1-b-.04))+"%"),this.api.tE()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.yT.bind(this)),this.api.addEventListener("resize",this.HX.bind(this))):g.dF(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.dF(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.dF(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.dF(Error("InstreamAdPlayerUnderlayRenderer has no image."))};
g.k.show=function(){khb(!0);this.actionButton&&this.actionButton.show();FF.prototype.show.call(this)};
g.k.hide=function(){khb(!1);this.actionButton&&this.actionButton.hide();FF.prototype.hide.call(this)};
g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.yT.bind(this));this.api.removeEventListener("resize",this.HX.bind(this));this.hide()};
g.k.onClick=function(a){FF.prototype.onClick.call(this,a);this.actionButton&&g.Nf(this.actionButton.element,a.target)&&this.api.pauseVideo()};
g.k.yT=function(a){"transitioning"===a?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):"visible"===a?this.j.classList.add("ytp-ad-underlay-clickable"):"hidden"===a&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))};
g.k.HX=function(a){1200<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):875<a.width?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium"));
g.zs(this.B.element,"font-size",a.width/40+"px")};g.y(R1,FF);
R1.prototype.init=function(a,b,c){FF.prototype.init.call(this,a,b,c);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.V(b.answer,g.yM)?(a=new PF(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),a.Ja(this.answer),a.init(uF("ytp-ad-survey-answer-button"),g.V(b.answer,g.yM),c),a.show()):b.answer&&g.V(b.answer,E2)&&(this.j=new YF(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,
["ytp-ad-survey-answer-toggle-button"]),this.j.Ja(this.answer),g.O(this,this.j),this.j.init(uF("survey-answer-button"),g.V(b.answer,E2),c));this.show()};
R1.prototype.aG=function(a){this.layoutId?tJ(this.ib,a,this.layoutId,this.macros):g.dF(new g.AC("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))};
R1.prototype.onClick=function(a){FF.prototype.onClick.call(this,a);if(this.api.U().L("supports_multi_step_on_desktop")&&null!==this.index)this.onSelected(this.index)};
R1.prototype.clear=function(){this.hide()};g.y(lhb,FF);lhb.prototype.init=function(a,b,c){FF.prototype.init.call(this,a,b,c);b.answer&&g.V(b.answer,E2)&&(this.button=new YF(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Ja(this.j),this.button.init(uF("survey-none-of-the-above-button"),g.V(b.answer,E2),c));this.show()};g.y(S1,PF);S1.prototype.init=function(a,b,c){PF.prototype.init.call(this,a,b,c);a=!1;b.text&&(b=g.HF(b.text),a=!g.ec(b));a||g.eF(Error("No submit text was present in the renderer."))};
S1.prototype.onClick=function(a){this.publish("l");PF.prototype.onClick.call(this,a)};g.y(T1,FF);
T1.prototype.init=function(a,b,c){FF.prototype.init.call(this,a,b,c);if(a=b.skipOrPreviewRenderer)g.V(a,GL)?(a=g.V(a,GL),c=new rG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.D,!0),c.Ja(this.skipOrPreview),c.init(uF("skip-button"),a,this.macros),g.O(this,c),this.j=c):g.V(a,xM)&&(a=g.V(a,xM),c=new iG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.D,!1),c.Ja(this.skipOrPreview),c.init(uF("ad-preview"),a,this.macros),Gxa(c),g.O(this,c),this.j=c);null==
this.j&&g.dF(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));b.submitButton&&(a=b.submitButton,g.V(a,g.yM)&&(a=g.V(a,g.yM),c=new S1(this.api,this.layoutId,this.interactionLoggingClientData,this.ib),c.Ja(this.submitButton),c.init(uF("survey-submit"),a,this.macros),g.O(this,c),this.B=c));if(a=b.adBadgeRenderer)a=g.V(a,Ojb),c=new yG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,!0,!1),c.Ja(this.C),c.init(uF("simple-ad-badge"),a,this.macros),
g.O(this,c);if(a=b.adDurationRemaining)a=g.V(a,Hjb),c=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.D,void 0),c.Ja(this.C),c.init(uF("ad-duration-remaining"),a,this.macros),g.O(this,c);(b=b.adInfoRenderer)&&g.V(b,wM)&&(a=new bG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.element),g.O(this,a),a.Ja(this.C),a.init(uF("ad-info-hover-text-button"),g.V(b,wM),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()};
T1.prototype.clear=function(){this.hide()};g.y(U1,FF);U1.prototype.init=function(a,b,c){FF.prototype.init.call(this,a,b,c);qhb(this)};
U1.prototype.show=function(){this.C=g.kb();FF.prototype.show.call(this)};
U1.prototype.K_=function(){};g.y(rhb,U1);g.k=rhb.prototype;g.k.init=function(a,b,c){var d=this;U1.prototype.init.call(this,a,b,c);b.questionText&&mhb(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.V(e,z2)&&nhb(d,g.V(e,z2),c,f)});
this.G=new Set(this.B.map(function(e){return e.j.j}));
(a=b.noneOfTheAbove)&&(a=g.V(a,Kjb))&&shb(this,a,c);b.surveyAdQuestionCommon&&phb(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.T(this.element,"change",this.onChange);this.show()};
g.k.K_=function(){thb(this,!1);this.D.B.subscribe("l",this.jba,this)};
g.k.onChange=function(a){a.target===this.noneOfTheAbove.button.j?uhb(this):this.G.has(a.target)&&(this.noneOfTheAbove.button.toggleButton(!1),thb(this,!0))};
g.k.jba=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.nd(e);e.loggingUrls=e.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=Nn(f.baseUrl,b));return f});
return e});
if(c){c=g.u(c);for(var d=c.next();!d.done;d=c.next())d=d.value,this.layoutId?tJ(this.ib,d,this.layoutId,this.macros):g.dF(Error("Missing layoutId for multi_select_question."))}this.api.U().L("supports_multi_step_on_desktop")&&this.ra(a)};
g.k.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.y(V1,U1);V1.prototype.init=function(a,b,c){var d=this;U1.prototype.init.call(this,a,b,c);b.questionText&&mhb(this,b.questionText);b.answers&&b.answers.forEach(function(e,f){g.V(e,z2)&&nhb(d,g.V(e,z2),c,f)});
b.surveyAdQuestionCommon?phb(this,b.surveyAdQuestionCommon):g.dF(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()};
V1.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.y(W1,FF);W1.prototype.init=function(a,b,c){var d=this;FF.prototype.init.call(this,a,b,c);if(this.api.U().L("supports_multi_step_on_desktop")){var e;this.conditioningRules=null!=(e=b.conditioningRules)?e:[];var f;this.B=null!=(f=b.questions)?f:[];var h;(null==(h=b.questions)?0:h.length)&&yhb(this,0)}else(b.questions||[]).forEach(function(l){g.V(l,vM)?whb(d,g.V(l,vM),c):g.V(l,uM)&&xhb(d,g.V(l,uM),c)});
this.show()};
W1.prototype.clear=function(){this.api.U().L("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())};
W1.prototype.D=function(a){var b=this;if(this.api.U().L("supports_multi_step_on_desktop")){var c;if(null==(c=this.conditioningRules)?0:c.length){var d;if(0===a.length)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(null==this.conditioningRules.find(function(e){return e.questionIndex===b.j}))g.dF(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);
else if(this.conditioningRules.forEach(function(e){if(e.questionIndex===b.j)switch(e.condition){case "CONDITION_ALL_OF":var f;if(null==(f=e.answerIndices)?0:f.every(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
break;case "CONDITION_ANY_OF":var h;if(null==(h=e.answerIndices)?0:h.some(function(l){return a.includes(l)}))d=e.nextQuestionIndex;
break;default:g.dF(Error("Expected specified condition in survey conditioning rules."))}}),null!=d)yhb(this,d);
else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else 1<this.questions.length&&g.dF(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 zhb=pa(['background-image:url("','");']);g.y(X1,FF);
X1.prototype.init=function(a,b,c){var d=this;FF.prototype.init.call(this,a,b,c);a=b.timeoutSeconds||0;if("number"!==typeof a||0>a)g.dF(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.yM))if(b.brandImage)if(b.backgroundImage&&g.V(b.backgroundImage,zM)&&g.V(b.backgroundImage,zM).landscape){this.layoutId||g.dF(Error("Missing layoutId for survey interstitial."));Ahb(this.interstitial,
g.V(b.backgroundImage,zM).landscape);Ahb(this.logoImage,b.brandImage);g.Of(this.text,g.HF(b.text));var e=["ytp-ad-survey-interstitial-action-button"];e.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new PF(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,e);g.O(this,this.actionButton);this.actionButton.Ja(this.B);this.actionButton.init(uF("button"),g.V(b.ctaButton,g.yM),c);this.actionButton.show();this.j=new AG(this.api,1E3*a);this.j.subscribe("g",function(){d.transition.hide()});
g.O(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.dF(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.dF(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.dF(Error("SurveyTextInterstitialRenderer has no button."));else g.dF(Error("SurveyTextInterstitialRenderer has no text."));else g.dF(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))};
X1.prototype.clear=function(){this.hide()};
X1.prototype.show=function(){Bhb(!0);FF.prototype.show.call(this)};
X1.prototype.hide=function(){Bhb(!1);FF.prototype.hide.call(this)};g.y(Y1,dG);g.k=Y1.prototype;
g.k.init=function(a,b){dG.prototype.init.call(this,a,b,{});if(b.durationMilliseconds){if(0>b.durationMilliseconds){g.dF(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+b.durationMilliseconds));return}this.B=b.durationMilliseconds}else this.B=this.j.hm();var c;if(null==(c=b.previewText)||!c.text||g.ec(b.previewText.text))g.dF(Error("No text is returned for AdPreview."));else{this.G=b.previewText;b.previewText.isTemplated||g.Of(this.C,b.previewText.text);var d;
if((null==(d=this.api.getVideoData(1))?0:d.Il)&&b.previewImage){var e,f;(a=(null==(f=Iza((null==(e=b.previewImage)?void 0:e.sources)||[],52,!1))?void 0:f.url)||"")&&a.length?(this.previewImage=new g.EF({I:"img",S:"ytp-preview-ad__image",X:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",a),g.O(this,this.previewImage),this.previewImage.Ja(this.element)):g.dF(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(){fG(this);dG.prototype.hide.call(this)};
g.k.show=function(){eG(this);dG.prototype.show.call(this)};
g.k.Vp=function(){this.hide()};
g.k.oo=function(){if(this.j){var a=this.j.getProgressState();if(null!=a&&a.current)if(a=1E3*a.current,a>=this.B)this.transition.hide();else{var b;if(null==(b=this.G)?0:b.isTemplated)if(b=Math.max(0,Math.ceil((this.B-a)/1E3)),b!==this.D){var c,d;(a=null==(c=this.G)?void 0:null==(d=c.text)?void 0:d.replace("{TIME_REMAINING}",String(b)))&&g.Of(this.C,a);this.D=b}}}};g.y(Z1,FF);
Z1.prototype.init=function(a,b){FF.prototype.init.call(this,a,b,{});var c,d;if((a=(null==(d=Iza((null==(c=b.image)?void 0:c.sources)||[],Chb(b),!0))?void 0:d.url)||"")&&a.length){c=this.Fa("ytp-ad-avatar");c.src=a;var e,f;if(d=null==(e=b.interaction)?void 0:null==(f=e.accessibility)?void 0:f.label)c.alt=d;switch(b.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s");
break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(b.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner");break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.dF(Error("Failed to get imageUrl in AdAvatar."))};
Z1.prototype.clear=function(){this.hide()};
Z1.prototype.onClick=function(a){FF.prototype.onClick.call(this,a)};g.y($1,FF);
$1.prototype.init=function(a,b){FF.prototype.init.call(this,a,b,{});var c;a=null==(c=b.label)?void 0:c.content;if((c=null!=a&&!g.ec(a))||b.iconImage){c&&(this.buttonText=new g.EF({I:"span",S:"ytp-ad-button__text",xa:a}),g.O(this,this.buttonText),this.buttonText.Ja(this.element));var d,e,f=(null==(d=b.interaction)?0:null==(e=d.accessibility)?0:e.label)||c?a:"";f&&hv(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.u(e.sources),
a=e.next();!a.done;a=e.next())if(a=a.value,c=void 0,null==(c=a.clientResource)?0:c.imageName){e=a;break a}e=void 0}if(e){var h;d={iconType:null==(h=e.clientResource)?void 0:h.imageName}}}h=OF(d);null!=h&&(this.buttonIcon=new g.EF({I:"span",S:"ytp-ad-button__icon",V:[h]}),g.O(this,this.buttonIcon),b.iconLeading?(Ef(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button__icon--leading")):(this.buttonIcon.Ja(this.element),this.buttonIcon.element.classList.add("ytp-ad-button__icon--trailing")))}this.element.classList.add("ytp-ad-button--style-filled");
switch(b.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button--size-large");break;default:this.element.classList.add("ytp-ad-button--size-default")}}else g.eF(Error("AdButton does not have label or an icon."))};
$1.prototype.clear=function(){this.hide()};
$1.prototype.onClick=function(a){FF.prototype.onClick.call(this,a)};g.y(a2,FF);a2.prototype.init=function(a,b){FF.prototype.init.call(this,a,b,{});if(a=b.content){g.Of(this.element,a);var c,d;b=(null==(c=b.interaction)?void 0:null==(d=c.accessibility)?void 0:d.label)||a;this.element.setAttribute("aria-label",b)}else g.dF(Error("AdSimpleAttributedString does not have text content"))};
a2.prototype.clear=function(){this.hide()};
a2.prototype.onClick=function(a){FF.prototype.onClick.call(this,a)};g.y(Fhb,dG);g.k=Fhb.prototype;
g.k.init=function(a,b){dG.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"),Ef(this.Fa("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(a=g.V(b.avatar,Rjb)){var c=b.headline;if(c){var d=b.description;if(d){var e=g.V(b.button,Sjb);e?(this.adAvatar.init(uF("ad-avatar"),a),this.headline.init(uF("ad-simple-attributed-string"),new Ehb(c)),this.description.init(uF("ad-simple-attributed-string"),new Ehb(d)),c.content&&20<c.content.length&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),
this.adButton.init(uF("ad-button"),e),this.B=b.startMs||0,this.api.tE()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.zT.bind(this)),eG(this)):g.dF(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.dF(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.dF(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.dF(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))};
g.k.oo=function(){if(this.j){var a=this.j.getProgressState();a&&a.current&&1E3*a.current>=this.B&&(fG(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}};
g.k.Vp=function(){this.clear()};
g.k.onClick=function(a){this.api.pauseVideo();dG.prototype.onClick.call(this,a)};
g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.zT.bind(this))};
g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();dG.prototype.show.call(this)};
g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();dG.prototype.hide.call(this)};
g.k.zT=function(a){"hidden"===a?this.show():this.hide()};g.y(Ghb,FF);g.k=Ghb.prototype;
g.k.init=function(a,b){FF.prototype.init.call(this,a,b,{});if(!b.label||g.ec(b.label))g.dF(Error("No label is returned for SkipAdButton."));else if(g.Of(this.D,b.label),a=OF({iconType:"SKIP_NEXT_NEW"}),null==a)g.dF(Error("Unable to retrieve icon for SkipAdButton"));else if(this.C=new g.EF({I:"span",S:"ytp-skip-ad-button__icon",V:[a]}),g.O(this,this.C),this.C.Ja(this.element),this.api.U().experiments.jb("enable_skip_to_next_messaging")&&(b=g.Ye(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(0===Mxa(a,{contentCpn:null!=(c=null==(b=this.api.getVideoData(1))?void 0:b.clientPlaybackNonce)?c:""})&&(this.api.U().L("enable_isk_gating")&&this.api.gb("onAbnormalityDetected"),this.api.U().L("ab_sa_ef")))return;FF.prototype.onClick.call(this,a);this.api.U().L("embeds_web_enable_ad_skipped_event_publishing")&&this.api.gb("onAdSkip");this.api.onAdUxClicked(this.componentType,this.layoutId)};
g.k.clear=function(){this.j.reset();this.hide()};
g.k.hide=function(){FF.prototype.hide.call(this)};
g.k.show=function(){this.j.start();FF.prototype.show.call(this);this.B&&this.api.U().experiments.jb("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.y(Hhb,dG);g.k=Hhb.prototype;
g.k.init=function(a,b){dG.prototype.init.call(this,a,b,{});var c=g.V(b.preskipState,Tjb);c?(a=g.V(b.skippableState,Vjb))?(null!=b.skipOffsetMilliseconds?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.eF(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.B.init(uF("preview-ad"),c),b=this.B,b.transition.show(100),b.show(),this.C.init(uF("skip-button"),a),this.show()):g.dF(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel.")):g.dF(Error("No AdPreviewViewModel is returned in SkipAdViewModel."))};
g.k.show=function(){eG(this);dG.prototype.show.call(this)};
g.k.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.C&&this.C.hide();fG(this);dG.prototype.hide.call(this)};
g.k.clear=function(){this.B&&this.B.clear();this.C&&this.C.clear();fG(this);dG.prototype.hide.call(this)};
g.k.Vp=function(){this.hide()};
g.k.oo=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var a;null!=(a=this.B)&&a.transition.hide();null!=(a=this.C)&&(a.transition.show(),a.show())}};g.y(b2,FF);
b2.prototype.init=function(a,b){FF.prototype.init.call(this,a,b,{});if(b.label){var c;(null==(c=b.label)?0:c.content)&&!g.ec(b.label.content)&&(this.linkText=new g.EF({I:"span",S:"ytp-visit-advertiser-link__text",xa:b.label.content}),g.O(this,this.linkText),this.linkText.Ja(this.element));var d,e;if(null==(d=b.interaction)?0:null==(e=d.accessibility)?0:e.label)hv(this.element,b.interaction.accessibility.label+" This link opens in new tab");else{var f;(null==(f=b.label)?0:f.content)&&!g.ec(b.label.content)&&hv(this.element,
b.label.content+" This link opens in new tab")}av(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.dF(Error("No label found in VisitAdvertiserLink."))};
b2.prototype.onClick=function(a){FF.prototype.onClick.call(this,a);this.api.onAdUxClicked(this.componentType,this.layoutId)};
b2.prototype.clear=function(){this.hide()};g.y(c2,FF);
c2.prototype.init=function(a,b,c,d){FF.prototype.init.call(this,a,b,{});b.skipOrPreview&&(c=b.skipOrPreview,a=g.V(c,Wjb),c=g.V(c,Tjb),a?(this.nu=new Hhb(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.j),g.O(this,this.nu),this.nu.Ja(this.D),this.nu.init(uF("skip-ad"),a)):c&&(this.C=new Y1(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.j,1),g.O(this,this.C),this.C.Ja(this.D),this.C.init(uF("ad-preview"),c),a=this.C,a.transition.show(100),a.show()));b.playerAdCard&&
(a=g.V(b.playerAdCard,Ujb))&&(this.playerAdCard=new Fhb(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.j),g.O(this,this.playerAdCard),this.playerAdCard.Ja(this.G),this.playerAdCard.init(uF("ad-avatar-lockup-card"),a));b.adBadgeRenderer&&(a=g.V(b.adBadgeRenderer,Ojb))&&(this.adBadge=new yG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,!0,!1),g.O(this,this.adBadge),this.adBadge.Ja(this.B),this.adBadge.init(uF("simple-ad-badge"),a,this.macros));b.adDurationRemaining&&
(a=g.V(b.adDurationRemaining,Hjb))&&(this.adDurationRemaining=new EG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.j,d.videoAdDurationSeconds),g.O(this,this.adDurationRemaining),this.adDurationRemaining.Ja(this.B),this.adDurationRemaining.init(uF("ad-duration-remaining"),a,this.macros));b.adInfoRenderer&&(d=g.V(b.adInfoRenderer,wM))&&(this.adInfoButton=new bG(this.api,this.layoutId,this.interactionLoggingClientData,this.ib,this.element),g.O(this,this.adInfoButton),this.adInfoButton.Ja(this.B),
this.adInfoButton.init(uF("ad-info-hover-text-button"),d,this.macros));b.visitAdvertiserLink&&(b=g.V(b.visitAdvertiserLink,Xjb))&&(this.visitAdvertiserLink=new b2(this.api,this.layoutId,this.interactionLoggingClientData,this.ib),g.O(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Ja(this.B),this.visitAdvertiserLink.init(uF("visit-advertiser-link"),b));this.show()};
c2.prototype.clear=function(){this.hide()};var ynb="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel banner-image top-banner-image-text-icon-buttoned".split(" "));g.y(d2,ZF);
d2.prototype.D=function(a){var b=a.id,c=a.content,d=c.componentType;if(!ynb.includes(d))switch(a.actionType){case 1:a=this.api;var e=this.ib,f=c.layoutId,h=c.interactionLoggingClientData,l=c instanceof YJ?c.nS:!1,m=c instanceof YJ||c instanceof zG?c.dL:!1;h=void 0===h?{}:h;l=void 0===l?!1:l;m=void 0===m?!1:m;switch(d){case "invideo-overlay":a=new $gb(a,f,h,e);break;case "player-overlay":a=new IG(a,f,h,e,new UV(a),m);break;case "player-overlay-layout":a=new c2(a,f,h,e,new UV(a));break;case "survey":a=
new W1(a,f,h,e);break;case "ad-action-interstitial":a=new Vgb(a,f,h,e,l,m);break;case "survey-interstitial":a=new X1(a,f,h,e);break;case "ad-message":a=new hhb(a,f,h,e,new UV(a,1));break;case "player-underlay":a=new jhb(a,f,h,e);break;default:a=null}if(!a){g.eF(Error("No UI component returned from ComponentFactory for type: "+d));break}g.ed(this.B,b)?g.eF(Error("Ad UI component already registered: "+b)):this.B[b]=a;a.bind(c);c instanceof xCa?this.C?this.C.append(a.MR):g.dF(Error("Underlay view was not created but UnderlayRenderer was created")):
this.G.append(a.MR);break;case 2:b=Ihb(this,a);if(null==b)break;b.bind(c);break;case 3:c=Ihb(this,a),null!=c&&(g.vb(c),g.ed(this.B,b)?(c=this.B,b in c&&delete c[b]):g.eF(Error("Ad UI component does not exist: "+b)))}};
d2.prototype.va=function(){g.wb(Object.values(this.B));this.B={};ZF.prototype.va.call(this)};g.y(Jhb,g.qV);g.k=Jhb.prototype;g.k.create=function(){try{Khb(this),this.load(),this.created=!0,Khb(this)}catch(a){kG(a instanceof Error?a:String(a))}};
g.k.load=function(){try{Nhb(this)}finally{q1(O1(this.j).Lk)&&this.player.Cg("ad",1)}};
g.k.destroy=function(){var a=this.player.getVideoData(1);this.j.j.Tw.Vn(a&&a.clientPlaybackNonce||"");this.unload();this.created=!1};
g.k.unload=function(){g.qV.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){kG(b instanceof Error?b:String(b))}if(null!=this.B){var a=this.B;this.B=null;a.dispose()}this.C.reset()};
g.k.ll=function(){return!1};
g.k.getAdState=function(){return-1};
g.k.getOptions=function(){return Object.values(wnb)};
g.k.Oh=function(a,b){b=void 0===b?{}:b;switch(a){case "replaceUrlMacros":return a=b,a.url?(b=ggb(this.player),Object.assign(b,a.Rmb),a=g.Wu(a.url,b)):a=null,a;case "onAboutThisAdPopupClosed":this.Mp(b);break;case "executeCommand":a=b;a.command&&a.layoutId&&this.executeCommand(a);break;default:return null}};
g.k.Rt=function(a){var b;return!(null==(b=this.j.j.Df)||!b.get().Rt(a))};
g.k.Mp=function(a){a.isMuted&&Oza(O1(this.j).Tk,O1(this.j).Un,a.layoutId);this.ls&&this.ls.Mp()};
g.k.executeCommand=function(a){O1(this.j).ib.executeCommand(a.command,a.layoutId)};g.Va("yt.player.Application.create",g.K0.create);g.Va("yt.player.Application.createAlternate",g.K0.create);Tva(Vva(),{lr:[{yA:/Unable to load player module/,weight:20},{yA:/Failed to fetch/,weight:500},{yA:/XHR API fetch failed/,weight:10},{yA:/JSON parsing failed after XHR fetch/,weight:10},{yA:/Retrying OnePlatform request/,weight:10},{yA:/CSN Missing or undefined during playback association/,weight:100}]});var znb=g.Xa("ytcsi.tick");znb&&znb("pe");g.pV("ad",Jhb);g.Anb=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.Va("yt.msgs_",g.Anb);g.y(g.g2,g.I);g.g2.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,g.$C)()};this.next()};
g.g2.prototype.stop=function(){this.delay.stop();this.config=void 0};
g.g2.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.$C)()-a;a=this.j;d=pla(a,e/d);if(0==d)a=a.C;else if(1==d)a=a.D;else{e=Fe(a.C,a.y1,d);var f=Fe(a.y1,a.y2,d);a=Fe(a.y2,a.D,d);e=Fe(e,f,d);f=Fe(f,a,d);a=Fe(e,f,d)}a=g.ye(a,0,1);this.callback(b+(c-b)*a);1>a&&this.delay.start()}};g.y(g.h2,g.W);g.k=g.h2.prototype;g.k.gE=function(){return 0<this.suggestionData.length};
g.k.j3=function(){this.B&&this.scrollTo(this.j-this.containerWidth)};
g.k.show=function(){g.W.prototype.show.call(this);Thb(this)};
g.k.l3=function(){this.B&&this.scrollTo(this.j+this.containerWidth)};
g.k.Uw=function(){this.Tb(this.api.kb().getPlayerSize())};
g.k.Tb=function(a){var b=this.api.Yc()?.5625:16/9,c=this.api.Ah();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));var d=(a-8*c)/c;b=Math.floor(d/b);for(var e=g.u(this.C),f=e.next();!f.done;f=e.next())f=f.value.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.i2(this)};
g.k.onVideoDataChange=function(){var a=this.api.U(),b=this.api.getVideoData();this.K=b.Kf?!1:a.D;this.suggestionData=b.suggestions?g.Ht(b.suggestions,function(c){return c&&!c.playlistId}):[];
Vhb(this);b.Kf?this.title.update({title:g.KJ("$DNI_RELATED_CHANNEL adl\u0131 kanal\u0131n di\u011fer videolar\u0131",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.api.Yc()?"Daha fazla k\u0131sa video":"Daha fazla video"})};
g.k.scrollTo=function(a){a=g.ye(a,this.containerWidth-this.suggestionData.length*(this.G+8),0);this.N.start(this.j,a,1E3);this.j=a;g.i2(this);Thb(this)};})(_yt_player);
